/* ============= SETTINGS SCREEN ============= */
.welcome-card {
    padding: 20px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius); margin-bottom: 20px; color: white;
}
.welcome-info { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.welcome-avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.welcome-info h3 { font-size: 18px; margin-bottom: 2px; }
.welcome-email { font-size: 12px; opacity: 0.8; }
.signin-note { display: flex; gap: 8px; align-items: center; font-size: 12px; opacity: 0.8; background: rgba(255,255,255,0.1); padding: 10px; border-radius: var(--radius-xs); margin-bottom: 12px; }
.upgrade-btn {
    width: 100%; padding: 12px; background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-xs);
    color: white; font-size: 14px; font-weight: 600; cursor: pointer;
}
.upgrade-btn:hover { background: rgba(255,255,255,0.3); }

.settings-section { margin-bottom: 20px; }
.settings-section h4 { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; padding-left: 4px; }
.settings-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: var(--card-bg); border-radius: var(--radius-sm); margin-bottom: 4px; cursor: pointer;
}
.settings-item:active { transform: scale(0.98); }
.settings-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.settings-icon.danger { background: var(--red-light); color: var(--red); }
.settings-info { flex: 1; }
.settings-info span { display: block; font-size: 14px; font-weight: 600; }
.settings-info small { color: var(--text-muted); font-size: 12px; }
.settings-item .fa-chevron-right { color: var(--text-muted); font-size: 12px; }

.about-app { text-align: center; padding: 24px; margin-top: 16px; }
.about-logo { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.about-logo i { font-size: 20px; color: var(--primary); }
.about-app h3 { font-size: 18px; margin-bottom: 4px; }
.about-app p { font-size: 13px; color: var(--text-secondary); }

/* Notifications */
.notif-card { padding: 16px; background: var(--card-bg); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 16px; }
.notif-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.notif-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.notif-title { display: block; font-weight: 600; font-size: 15px; }
.notif-status { color: var(--text-muted); }
.enable-btn { margin-left: auto; padding: 8px 16px; background: var(--primary); color: white; border: none; border-radius: var(--radius-xs); font-size: 13px; font-weight: 600; cursor: pointer; }
.notif-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.about-notif-card { padding: 16px; background: var(--bg); border-radius: var(--radius-sm); margin-top: 16px; }
.about-notif-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.about-notif-card ul { list-style: none; }
.about-notif-card li { font-size: 12px; color: var(--text-secondary); padding: 4px 0; }
.about-notif-card li::before { content: '• '; color: var(--primary); }

/* Passcode Settings */
.passcode-settings-card { text-align: center; padding: 24px; background: var(--card-bg); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 20px; }
.ps-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--primary); font-size: 20px; }
.passcode-settings-card h3 { font-size: 18px; margin-bottom: 4px; }
.passcode-settings-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.change-pass-btn { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--card-bg); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 8px; }
.remove-pass-btn { width: 100%; padding: 12px; border: none; border-radius: var(--radius-xs); background: var(--red); color: white; font-size: 14px; font-weight: 600; cursor: pointer; }
.about-passcode-card { padding: 16px; background: var(--bg); border-radius: var(--radius-sm); }
.about-passcode-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.about-passcode-card ul { list-style: none; }
.about-passcode-card li { font-size: 12px; color: var(--text-secondary); padding: 4px 0; }
.about-passcode-card li::before { content: '• '; color: var(--primary); }

/* Language & Currency */
.lang-note-card, .currency-note-card {
    padding: 16px; background: var(--primary-light); border-radius: var(--radius-sm);
    display: flex; gap: 12px; align-items: center; margin-bottom: 16px;
}
.lang-note-card i, .currency-note-card i { font-size: 24px; color: var(--primary); }
.lang-note-card h3, .currency-note-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.lang-note-card p, .currency-note-card p { font-size: 12px; color: var(--text-secondary); }
.lang-list, .currency-list { display: flex; flex-direction: column; gap: 8px; }
.lang-item, .currency-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: var(--card-bg); border-radius: var(--radius-sm); box-shadow: var(--shadow); cursor: pointer;
}
.lang-item.active, .currency-item.active { border: 2px solid var(--primary); }
.lang-flag { font-size: 24px; }
.lang-item .lang-name, .currency-item .currency-name { display: block; font-weight: 600; font-size: 14px; }
.lang-item small, .currency-item small { color: var(--text-muted); font-size: 12px; }
.lang-item .fa-check, .currency-item .fa-check { margin-left: auto; color: var(--primary); }
.coming-soon { font-size: 10px; background: var(--bg); padding: 2px 6px; border-radius: 4px; color: var(--text-muted); }
.currency-symbol { width: 36px; height: 36px; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 700; }

.profile-avatar {
    width: 80px; height: 80px; border-radius: 50%; background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; color: white; font-size: 32px;
}

/* Google Sign-In Button */
.google-signin-btn {
    width: 100%; padding: 12px 16px;
    background: white; color: #3c4043;
    border: 1px solid #dadce0; border-radius: var(--radius-xs);
    font-size: 14px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 4px; transition: background 0.2s;
}
.google-signin-btn:hover { background: #f8f9fa; }
.dark .google-signin-btn { background: #3c4043; color: #e8eaed; border-color: #5f6368; }
.dark .google-signin-btn:hover { background: #4a4d51; }

/* ============= PROFILE CARD ============= */
.settings-profile-card {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 16px; background: var(--card-bg);
    border-radius: var(--radius); box-shadow: var(--shadow);
    margin-bottom: 12px;
}
.spc-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: white; flex-shrink: 0;
}
.spc-info { flex: 1; min-width: 0; }
.spc-name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spc-email { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spc-badge {
    display: inline-block; font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px;
    background: var(--primary-light); color: var(--primary);
    text-transform: uppercase; letter-spacing: 0.4px;
}
.spc-badge.synced { background: var(--green-light); color: var(--green); }
.spc-edit-btn {
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: var(--bg); color: var(--text-secondary); cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.spc-edit-btn:hover { background: var(--primary-light); color: var(--primary); }

/* ============= SIGN-IN BANNER ============= */
.settings-signin-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm); margin-bottom: 12px; color: white;
}
.settings-signin-banner i { font-size: 20px; flex-shrink: 0; }
.settings-signin-banner > div { flex: 1; }
.spc-google-btn {
    flex-shrink: 0; padding: 8px 12px !important; margin-top: 0 !important;
    font-size: 12px !important; white-space: nowrap;
    background: white !important; color: #3c4043 !important;
    border-color: transparent !important;
}

/* ============= QUICK STATS ROW ============= */
.settings-stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin-bottom: 16px;
}
.settings-stat {
    background: var(--card-bg); border-radius: var(--radius-xs);
    box-shadow: var(--shadow); padding: 12px 8px; text-align: center;
}
.ss-val { display: block; font-size: 20px; font-weight: 800; color: var(--primary); }
.ss-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }

/* ============= TOGGLE SWITCH ============= */
.settings-toggle {
    width: 40px; height: 22px; border-radius: 11px;
    background: var(--border); position: relative; cursor: pointer;
    transition: background 0.2s; flex-shrink: 0;
}
.settings-toggle::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px; border-radius: 50%;
    background: white; transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.settings-toggle.on { background: var(--primary); }
.settings-toggle.on::after { transform: translateX(18px); }

/* ============= SETTINGS BADGE ============= */
.settings-badge {
    font-size: 10px; font-weight: 700; padding: 3px 8px;
    border-radius: 10px; text-transform: uppercase; letter-spacing: 0.4px;
    flex-shrink: 0;
}
.settings-badge.coming { background: var(--orange-light); color: var(--orange); }
.settings-badge.new    { background: var(--green-light);  color: var(--green);  }

/* ============= ABOUT LINKS ============= */
.about-links { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 8px; }
.about-links a { color: var(--primary); font-size: 12px; text-decoration: none; }
.about-links span { color: var(--text-muted); font-size: 12px; }

.about-built-by { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.about-built-by a { color: var(--primary); font-weight: 600; text-decoration: none; }
.about-built-by a:hover { text-decoration: underline; }

/* ============= ABOUT APP & DEVELOPER CARDS ============= */
.about-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.dev-card {
    margin-bottom: 32px;
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.about-app-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    flex-shrink: 0;
}

.about-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.about-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.about-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Feature grid */
.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.about-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    border-radius: 10px;
    padding: 10px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.about-feature-item i {
    font-size: 16px;
    color: var(--primary);
}

/* Links row */
.about-links-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.about-links-row a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: 20px;
}

.about-links-row a:hover { opacity: 0.8; }

/* Developer card */
.dev-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.dev-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dev-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    background: var(--bg);
    border: 1.5px solid var(--border);
    padding: 7px 14px;
    border-radius: 20px;
    transition: all 0.2s;
}

.dev-link-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.dev-link-btn i { font-size: 13px; }

.about-copyright {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ============= ABOUT MODALS ============= */
.about-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.about-modal-backdrop.active { display: flex; }

.about-modal {
    background: var(--card-bg);
    border-radius: 24px 24px 0 0;
    padding: 12px 20px 40px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.about-modal-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.about-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.about-modal-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.about-modal-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.about-modal-close {
    margin-left: auto;
    background: var(--bg);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    flex-shrink: 0;
}

.about-modal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.about-modal-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Feature grid */
.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.about-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    border-radius: 10px;
    padding: 10px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.about-feature-item i { font-size: 16px; color: var(--primary); }

/* Changelog */
.about-changelog {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.changelog-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.changelog-ver {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Modal links */
.about-modal-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.about-modal-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    background: var(--primary-light);
    padding: 7px 14px;
    border-radius: 20px;
}

/* Developer avatar large */
.dev-avatar-lg {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Developer contact list */
.dev-contact-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.dev-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
}

.dev-contact-item:hover { background: var(--border); }

.dev-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.dev-contact-info { flex: 1; }
.dev-contact-info span { display: block; font-size: 14px; font-weight: 600; }
.dev-contact-info small { font-size: 12px; color: var(--text-muted); }
.dev-contact-item > .fa-arrow-up-right-from-square { font-size: 11px; color: var(--text-muted); }

.about-copyright {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
