
    /* ==========================================
       SAFETY SETTINGS (safety.html)
    ========================================== */
    .safe-header {
        position: sticky; top: 0; left: 0; width: 100%; z-index: 100;
        display: flex; justify-content: space-between; align-items: center;
        padding: max(16px, env(safe-area-inset-top)) 20px 16px;
        background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line); color: #fff;
    }
    .safe-title { font-size: 16px; font-weight: 600; }
    .safe-icon-btn { 
        width: 36px; height: 36px; border-radius: 50%; background: transparent; 
        display: flex; align-items: center; justify-content: center; 
        color: #fff; font-size: 28px; cursor: pointer; transition: 0.2s; border: none;
    }
    .safe-icon-btn:active { background: rgba(255,255,255,0.1); transform: scale(0.9); }

    .safe-container { max-width: 600px; margin: 0 auto; padding: 20px 20px 100px; display: flex; flex-direction: column; gap: 24px; }
    .safe-section-title { font-size: 14px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }

    /* List Items */
    .safe-menu-box { background: var(--bg3); border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
    .safe-menu-item { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: 0.2s; }
    .safe-menu-item:last-child { border-bottom: none; }
    .safe-menu-item:active { background: var(--bg4); }
    .smi-left { display: flex; align-items: center; gap: 12px; }
    .smi-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
    .smi-text { display: flex; flex-direction: column; }
    .smi-title { font-size: 15px; font-weight: 600; color: #fff; }
    .smi-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
    .smi-badge { font-size: 11px; font-weight: 700; background: #17c964; color: #000; padding: 2px 6px; border-radius: 6px; margin-left: 8px; }

    /* Modal สำหรับเปลี่ยนรหัสผ่าน */
    .pwd-modal { display: none; position: fixed !important; inset: 0 !important; z-index: 1000000 !important; background: rgba(0,0,0,0.85); backdrop-filter: blur(20px); justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; }
    .pwd-content { width: 100%; max-width: 400px; background: #161616; border-radius: 28px; border: 1px solid var(--line); padding: 24px; animation: popIn 0.3s ease; }
    .pwd-header { text-align: center; font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 20px; }
    .pwd-input { width: 100%; background: var(--bg3); border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: #fff; font-size: 15px; outline: none; margin-bottom: 12px; box-sizing: border-box; }
    .pwd-input:focus { border-color: rgba(255,255,255,0.4); }
    .pwd-btn-group { display: flex; gap: 12px; margin-top: 10px; }
    .pwd-btn { flex: 1; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; }
    .pwd-btn.cancel { background: rgba(255,255,255,0.1); color: #fff; }
    .pwd-btn.save { background: #fff; color: #000; }
    .pwd-btn:active { transform: scale(0.95); }
    .pwd-mode { display: flex; gap: 6px; padding: 4px; background: rgba(255,255,255,0.06); border-radius: 14px; margin-bottom: 14px; }
    .pwd-mode-btn { flex: 1; border: 0; border-radius: 10px; padding: 9px 6px; background: transparent; color: #9a9a9a; font: 600 13px/1 inherit; cursor: pointer; }
    .pwd-mode-btn.active { background: rgba(255,255,255,0.14); color: #fff; }

    .safe-danger-btn {
        width: 100%; padding: 16px; border-radius: 16px; background: rgba(237, 73, 86, 0.1);
        border: 1px solid rgba(237, 73, 86, 0.2); color: #ed4956; font-size: 14px; font-weight: 700;
        display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: 0.2s;
        margin-top: 10px; font-family: inherit;
    }
    .safe-danger-btn:active { transform: scale(0.98); background: rgba(237, 73, 86, 0.15); }
