/* ===========================================
   AUTH COMPONENT STYLES
   - Account selection screen
   - New account creation screen
   - Business coming soon
   =========================================== */

/* --- AUTH CONTAINER --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    background: var(--bg-color);
}

.auth-box {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 20px 0;
}

.auth-box h2 {
    color: var(--gold);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.auth-box p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 30px 0;
}

/* --- USER LIST (Account Selection) --- */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 280px;
    overflow-y: auto;
    padding: 5px;
}

.user-card {
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: 16px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    font-family: var(--font-main);
    text-align: left;
    box-sizing: border-box;
}

.user-card:hover {
    border-color: var(--gold);
    background: rgba(207, 181, 106, 0.05);
    transform: translateY(-2px);
}

.user-card:active {
    transform: scale(0.98);
}

.user-card-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold) 0%, #E5C578 100%);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 16px;
    flex-shrink: 0;
}

.user-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 4px;
}

.user-card-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.user-card-status {
    font-size: 12px;
    color: var(--text-secondary);
}

/* --- BUSINESS ACCOUNT PREVIEW (in account list) --- */
.business-preview-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    cursor: not-allowed;
    margin-bottom: 20px;
}

.business-preview-card .user-card-avatar {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: var(--text-secondary);
}

.business-preview-card .coming-soon-badge {
    background: rgba(207, 181, 106, 0.2);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- ADD ACCOUNT BUTTON --- */
.btn-add-account,
.btn-secondary {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-account:hover,
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(207, 181, 106, 0.05);
}

/* --- ACCOUNT TYPE SELECTOR (Personal/Business toggle) --- */
.account-type-selector {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 14px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.account-type-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.account-type-btn:hover:not(.active) {
    color: white;
}

.account-type-btn.active {
    background: var(--gold);
    color: #000;
    box-shadow: 0 4px 15px rgba(207, 181, 106, 0.3);
}

/* --- BUSINESS COMING SOON SECTION --- */
.business-coming-soon {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.business-coming-soon .coming-soon-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.coming-soon-badge {
    background: rgba(207, 181, 106, 0.15);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(207, 181, 106, 0.3);
}

.business-coming-soon p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ===========================================
   AUTH LOGIN / PASSWORD SETUP SCREENS
   =========================================== */

/* --- USER HEADER (Login/Setup screens) --- */
.auth-user-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.auth-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold) 0%, #E5C578 100%);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 36px;
    box-shadow: 0 8px 25px rgba(207, 181, 106, 0.3);
}

.auth-user-header h2 {
    color: var(--text-primary);
    font-size: 22px;
    margin: 0;
}

/* --- SECURITY NOTICE (Password setup) --- */
.auth-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(207, 181, 106, 0.1);
    border: 1px solid rgba(207, 181, 106, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 25px;
}

.auth-notice i {
    font-size: 20px;
    color: var(--gold);
    flex-shrink: 0;
}

.auth-notice p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: left;
    line-height: 1.4;
}

/* --- INPUT GROUP --- */
.input-group {
    margin-bottom: 16px;
}

.input-group:last-of-type {
    margin-bottom: 25px;
}

/* ===========================================
   INVITE CODE INPUT STYLES
   =========================================== */

.invite-code-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.invite-icon {
    position: absolute;
    left: 16px;
    color: var(--gold);
    font-size: 18px;
    z-index: 1;
}

.invite-code-input {
    padding-left: 48px !important;
    padding-right: 48px !important;
    font-weight: 600;
    text-align: center;
}

.invite-status {
    position: absolute;
    right: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.invite-status.validating {
    color: var(--text-secondary);
}

.invite-status.valid {
    color: #4CAF50;
}

.invite-status.valid i {
    animation: checkBounce 0.3s ease;
}

.invite-status.invalid {
    color: #F44336;
}

.invite-status.error {
    color: #FF9800;
}

@keyframes checkBounce {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.invite-hint {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

.input-field {
    width: 100%;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-main);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.input-field::placeholder {
    color: var(--text-secondary);
}

.input-field:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(207, 181, 106, 0.1);
}

/* --- AUTH BUTTONS --- */
.btn-primary {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--gold) 0%, #B8973F 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(207, 181, 106, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary .btn-text,
.btn-primary .btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary .btn-loading {
    position: absolute;
    inset: 0;
}

/* --- BACK/CLOSE BUTTON --- */
.btn-close {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-close:hover {
    color: var(--text-primary);
}

/* ===========================================
   PASSKEY / BIOMETRIC AUTH STYLES
   =========================================== */

/* --- BIOMETRIC LOGIN BUTTON --- */
.btn-biometric {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #4A90D9 0%, #357ABD 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-biometric:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 217, 0.4);
}

.btn-biometric:active:not(:disabled) {
    transform: translateY(0);
}

.btn-biometric:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-biometric i {
    font-size: 20px;
}

/* --- AUTH DIVIDER --- */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider span {
    flex: 1;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    position: relative;
}

.auth-divider span::before,
.auth-divider span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span::before {
    left: 0;
}

.auth-divider span::after {
    right: 0;
}

/* --- PASSKEY SETUP SUCCESS SCREEN --- */
.auth-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-success-icon i {
    font-size: 40px;
    color: #4CAF50;
}

/* --- PASSKEY PROMO BOX --- */
.passkey-promo {
    background: rgba(74, 144, 217, 0.1);
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.passkey-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4A90D9 0%, #357ABD 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.passkey-icon i {
    font-size: 24px;
    color: white;
}

.passkey-benefits {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.passkey-benefits span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* --- HIDDEN CLASS --- */
.hidden {
    display: none !important;
}

/* --- SCROLLBAR STYLING --- */
.user-list::-webkit-scrollbar {
    width: 4px;
}

.user-list::-webkit-scrollbar-track {
    background: transparent;
}

.user-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.user-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===========================================
   PROFILE MODAL STYLES - ETHER.FI INSPIRED
   =========================================== */

/* --- PROFILE MODAL CONTENT --- */
.profile-modal-content {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-height) - env(safe-area-inset-bottom) - 40px);
    max-height: calc(100vh - var(--nav-height) - env(safe-area-inset-bottom) - 40px);
    padding: 15px 0 20px 0 !important;
}

/* --- PROFILE HEADER ROW --- */
.profile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.profile-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold) 0%, #E5C578 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000;
}

.profile-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-username {
    font-size: 13px;
    font-weight: 500;
    color: var(--gold);
    margin-top: 2px;
}

.profile-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--input-bg);
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.profile-close-btn:hover {
    background: var(--border-color-strong);
}

/* --- SCROLLABLE CONTENT --- */
.profile-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- SECTION LABELS --- */
.profile-section-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 10px 0 8px 0;
}

/* --- MENU ITEMS --- */
.profile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.profile-menu-item:hover {
    opacity: 0.7;
}

.profile-menu-item:active {
    opacity: 0.5;
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-item-left i {
    font-size: 18px;
    color: var(--text-secondary);
    width: 24px;
    text-align: center;
}

.menu-item-left span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.menu-arrow {
    font-size: 12px;
    color: var(--text-secondary);
}

/* --- WALLET CONNECT ITEM --- */
.wallet-connect-item {
    padding: 14px 16px;
    background: var(--input-bg);
    border-radius: 12px;
    margin-bottom: 10px;
}

.wallet-connect-item .menu-item-left span {
    color: var(--text-secondary);
    font-size: 14px;
}

.btn-connect-wallet {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    transition: opacity 0.2s;
}

.btn-connect-wallet:hover {
    opacity: 0.7;
}

/* --- MEMBERSHIP BADGE --- */
.membership-badge {
    background: rgba(74, 144, 217, 0.2);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.membership-badge.premium {
    background: rgba(207, 181, 106, 0.2);
    color: var(--gold);
}

/* --- INVITE FRIENDS BUTTON --- */
.btn-invite-friends {
    margin: 15px 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    border: none;
    border-radius: 30px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-invite-friends:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(207, 181, 106, 0.3);
}

.btn-invite-friends i {
    font-size: 16px;
}

/* --- DIVIDER --- */
.profile-divider {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
}

/* ===========================================
   INVITED FRIENDS / INVITE CENTER MODAL
   =========================================== */

.invited-friends-content {
    padding: 0 20px 20px;
}

/* --- Section Headers --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3 i {
    color: var(--gold);
    font-size: 16px;
}

.remaining-count,
.friends-count {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--input-bg);
    padding: 4px 10px;
    border-radius: 20px;
}

/* --- Invite Codes Section --- */
.invite-codes-section {
    padding-top: 10px;
}

.invite-codes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    min-height: 60px;
}

.invite-code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s;
}

.invite-code-item.active {
    border-color: rgba(207, 181, 106, 0.3);
    background: rgba(207, 181, 106, 0.05);
}

.invite-code-item.used {
    opacity: 0.6;
    padding: 10px 16px;
}

.code-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.code-value {
    font-size: 18px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 3px;
    color: var(--gold);
}

.invite-code-item.used .code-value {
    font-size: 14px;
    color: var(--text-secondary);
}

.code-status {
    font-size: 11px;
    color: var(--text-secondary);
}

.code-actions {
    display: flex;
    gap: 8px;
}

.code-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--input-bg);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.code-actions button:hover {
    background: var(--gold);
    color: #000;
}

.code-used-icon {
    color: #4CAF50;
    font-size: 16px;
}

.used-codes-header {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 6px;
    padding-left: 4px;
}

.empty-codes {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.btn-generate-invite {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-generate-invite:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(207, 181, 106, 0.3);
}

.btn-generate-invite:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* --- Section Divider --- */
.invite-section-divider {
    height: 1px;
    background: var(--border-color);
    margin: 24px 0;
}

/* --- Invited Friends Section --- */
.invited-friends-section {
    margin-bottom: 10px;
}

.invited-friends-header {
    text-align: center;
    padding: 20px 0 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.invite-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.invite-total-count {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.invite-total-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.invite-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.invited-friends-list {
    min-height: 150px;
    max-height: 350px;
    overflow-y: auto;
}

.invited-friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.invited-friend-item:last-child {
    border-bottom: none;
}

.friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.friend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.friend-username {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.friend-joined {
    font-size: 12px;
    color: var(--text-secondary);
}

.friend-check {
    color: var(--success);
    font-size: 18px;
}

.btn-share-invite {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    transition: all 0.2s;
}

.btn-share-invite:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(207, 181, 106, 0.3);
}

/* Empty state for invited friends */
.invited-friends-list .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.invited-friends-list .empty-state i {
    font-size: 48px;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 15px;
}

.invited-friends-list .empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.invited-friends-list .empty-state p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.invited-friends-list .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    gap: 10px;
}

.invited-friends-list .loading-spinner i {
    font-size: 24px;
    color: var(--gold);
}

/* --- LOGOUT ITEM --- */
.logout-item .menu-item-left i,
.logout-item .menu-item-left span {
    color: var(--text-secondary);
}

.logout-item:hover .menu-item-left i,
.logout-item:hover .menu-item-left span {
    color: var(--danger);
}

/* --- CLOSE BUTTON BOTTOM --- */
.btn-close-modal-bottom {
    width: calc(100% - 40px);
    margin: 0 20px 10px 20px;
    padding: 16px;
    background: rgba(74, 144, 217, 0.15);
    border: none;
    border-radius: 30px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-close-modal-bottom:hover {
    background: rgba(74, 144, 217, 0.25);
}

/* --- LIGHT MODE OVERRIDES --- */
body[data-theme="light"] .profile-close-btn {
    background: rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .profile-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .wallet-connect-item {
    background: rgba(0, 0, 0, 0.03);
}

body[data-theme="light"] .btn-close-modal-bottom {
    background: rgba(74, 144, 217, 0.1);
}

/* ===========================================
   LEGACY PROFILE STYLES (keeping for compat)
   =========================================== */

/* --- PROFILE CARD --- */
.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold) 0%, #E5C578 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.profile-details h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.tier-badge {
    display: inline-block;
    background: rgba(207, 181, 106, 0.15);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

/* --- PROFILE STATS --- */
.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--input-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-item .label {
    color: var(--text-secondary);
    font-size: 13px;
}

.stat-item .value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

/* --- PROFILE ACTIONS --- */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- BUTTON STYLES --- */
.btn-danger {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 12px;
    color: var(--danger);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
}

.btn-danger:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: var(--danger);
}

.btn-outline-gold {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid rgba(207, 181, 106, 0.3);
    border-radius: 12px;
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-outline-gold:hover {
    background: rgba(207, 181, 106, 0.1);
    border-color: var(--gold);
}

.full-width {
    width: 100%;
}

/* ===========================================
   THEME SWITCHER STYLES
   =========================================== */

.profile-section-header {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin: 25px 0 12px 0;
}

.theme-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.theme-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.theme-option i {
    font-size: 24px;
}

.theme-option span {
    font-size: 13px;
    font-weight: 600;
}

.theme-option:hover {
    border-color: var(--gold-dim);
    color: var(--text-primary);
}

.theme-option.active {
    border-color: var(--gold);
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold);
}

.theme-option.active i {
    color: var(--gold);
}

/* ===========================================
   PUSH NOTIFICATION TOGGLE
   =========================================== */

.notification-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-status {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 70px;
    text-align: right;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--input-bg);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--gold);
    border-color: var(--gold);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
    background-color: #000;
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notification Hint */
.notification-hint {
    display: none;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 8px 20px;
    margin-top: -8px;
    opacity: 0.8;
}

/* ===========================================
   BIOMETRIC AUTH TOGGLE (Face ID / Fingerprint)
   =========================================== */

.biometric-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.biometric-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.biometric-status {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.biometric-status i {
    font-size: 16px;
}

.biometric-hint {
    display: none;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 0 0 8px 38px;
    margin-top: -8px;
    opacity: 0.8;
}

/* Enable Biometric Button */
.btn-enable-biometric {
    background: linear-gradient(135deg, #4A90D9 0%, #357ABD 100%);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-main);
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-enable-biometric:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3);
}

.btn-enable-biometric:active {
    transform: scale(0.98);
}

/* Test Deep Link Button */
.test-deeplink-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 40px);
    margin: 12px 20px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--gold) 0%, #B8973F 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.test-deeplink-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(207, 181, 106, 0.3);
}

.test-deeplink-btn:active:not(:disabled) {
    transform: translateY(0);
}

.test-deeplink-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.test-deeplink-btn i {
    font-size: 14px;
}

/* ===========================================
   APP VERSION DISPLAY
   =========================================== */

.profile-version {
    text-align: center;
    padding: 30px 20px 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.version-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.6;
    letter-spacing: 0.3px;
}

.version-build {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.7;
    letter-spacing: 0.3px;
}

.version-date {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0.5;
    letter-spacing: 0.2px;
}

/* ===========================================
   QR CODE LOGIN STYLES
   =========================================== */

.btn-qr-login {
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-qr-login:hover {
    background: rgba(207, 181, 106, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.btn-qr-login:active {
    transform: scale(0.98);
}

.btn-qr-login i {
    font-size: 18px;
    color: var(--gold);
}

/* QR Login Container */
.qr-login-container {
    padding: 20px 0;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 0;
}

.qr-loading i {
    font-size: 32px;
    color: var(--gold);
}

.qr-loading p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* QR Instructions */
.qr-instructions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.qr-instructions i {
    font-size: 28px;
    color: var(--gold);
}

.qr-instructions p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.qr-instructions strong {
    color: var(--gold);
}

/* QR Code Wrapper */
.qr-code-wrapper {
    background: #1a1915;
    border: 2px solid var(--gold);
    border-radius: 16px;
    padding: 20px;
    display: inline-block;
    margin: 0 auto 20px;
}

.qr-code-wrapper canvas {
    display: block;
    border-radius: 8px;
}

/* QR Timer */
.qr-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.qr-timer i {
    font-size: 14px;
    color: var(--text-secondary);
}

.qr-timer span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* QR Status */
.qr-status {
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(207, 181, 106, 0.1);
    margin-bottom: 20px;
}

.status-waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.status-waiting i {
    color: var(--gold);
    animation: pulse 2s infinite;
}

.status-approved {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
}

.status-approved i {
    color: #4CAF50;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Light mode adjustments for QR */
[data-theme="light"] .qr-code-wrapper {
    background: #f5f5f0;
    border-color: var(--gold);
}

[data-theme="light"] .qr-status {
    background: rgba(207, 181, 106, 0.15);
}

/* ===========================================
   QR APPROVAL DIALOG (for approving device)
   =========================================== */

.qr-approval-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.qr-approval-overlay.active {
    opacity: 1;
}

.qr-approval-dialog {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.qr-approval-overlay.active .qr-approval-dialog {
    transform: scale(1);
}

.qr-approval-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(207, 181, 106, 0.2) 0%, rgba(207, 181, 106, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-approval-icon i {
    font-size: 32px;
    color: var(--gold);
}

.qr-approval-icon.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
}

.qr-approval-icon.success i {
    color: #4CAF50;
}

.qr-approval-dialog h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.qr-approval-dialog p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.qr-approval-dialog strong {
    color: var(--gold);
}

.qr-approval-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px !important;
}

.qr-approval-warning i {
    color: #FFC107;
    font-size: 16px;
}

.qr-approval-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-qr-deny,
.btn-qr-approve {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.btn-qr-deny {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.btn-qr-deny:hover {
    background: rgba(255, 107, 107, 0.2);
}

.btn-qr-approve {
    background: linear-gradient(135deg, #4CAF50 0%, #43A047 100%);
    color: white;
}

.btn-qr-approve:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-qr-approve:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Manual Code Display (on QR screen) */
.qr-manual-code {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.manual-code-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.manual-code-value {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold);
    background: rgba(207, 181, 106, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px dashed var(--gold);
}

/* Approval Code Input */
.approve-code-input-wrapper {
    margin: 20px 0;
}

.approve-code-input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-align: center;
    background: var(--input-bg, rgba(255, 255, 255, 0.05));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.approve-code-input:focus {
    border-color: var(--gold);
}

.approve-code-input::placeholder {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Light mode adjustments */
[data-theme="light"] .qr-approval-dialog {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .approve-code-input {
    background: #f5f5f0;
}