/* ============================================
   Dashboard & Auth Styles
   ============================================ */

/* CSS Variable Aliases (for compatibility with style.css) */
:root {
    --gold: hsl(38, 92%, 50%);
    --gold-dark: hsl(38, 92%, 42%);
    --border-color: rgba(63, 63, 70, 0.5);
}

/* ============================================
   Hamburger Menu & Sidebar
   ============================================ */

.hamburger-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--gold);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, #0a0a0c 0%, #0f0f12 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-menu.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo .logo-icon {
    font-size: 1.5rem;
}

.sidebar-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-link.affiliate {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(234, 179, 8, 0.05));
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--gold);
}

.sidebar-link.affiliate:hover {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(234, 179, 8, 0.1));
}

/* Sidebar Auth Link - Logged In State */
.sidebar-auth-link.logged-in {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.sidebar-auth-link.logged-in:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
}

.sidebar-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

.sidebar-badge {
    margin-left: auto;
    padding: 4px 10px;
    background: var(--gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.sidebar-tagline {
    margin-top: 4px !important;
    font-style: italic;
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 16px;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background: var(--bg-secondary, #0c0c0f);
    border: 1px solid var(--border, rgba(63, 63, 70, 0.5));
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.auth-modal.active .auth-modal-content {
    transform: scale(1);
}

.auth-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-modal-header h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

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

.auth-modal-body {
    padding: 24px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: var(--bg-tertiary, #111114);
    border: 1px solid var(--border, rgba(63, 63, 70, 0.5));
    border-radius: 8px;
    color: #a1a1aa;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab:hover:not(.active) {
    background: var(--bg-secondary, #0c0c0f);
    color: #fafafa;
    border-color: var(--gold, #f59e0b);
}

.auth-tab.active {
    background: var(--gold, #f59e0b);
    border-color: var(--gold, #f59e0b);
    color: #09090b;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--gold);
}

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

.auth-field-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.auth-field-error {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 4px;
}

.auth-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 16px 0;
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--gold);
    cursor: pointer;
}

/* Bio Code Display */
.bio-code-display {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px dashed var(--gold);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin: 16px 0;
}

.bio-code-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.bio-code-value {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.bio-code-copy {
    background: var(--gold);
    color: var(--bg-primary);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.bio-verify-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.85rem;
}

.bio-verify-status.verified {
    color: #22c55e;
}

.bio-verify-status.unverified {
    color: var(--text-secondary);
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.dashboard-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.dashboard-user-info h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.dashboard-user-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

.dashboard-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dashboard-btn-primary {
    background: var(--gold);
    border: none;
    color: var(--bg-primary);
}

.dashboard-btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.dashboard-btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Dashboard Content */
.dashboard-content {
    padding: 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.stat-card-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* LC Balance Card */
.lc-balance-card {
    background: linear-gradient(135deg, #1a1506 0%, #2d2510 100%);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.lc-balance-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.lc-coin-icon {
    font-size: 2rem;
}

.lc-balance-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.lc-balance-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.lc-balance-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Referral Card */
.referral-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.referral-code-box {
    background: var(--bg-primary);
    border: 1px dashed var(--gold);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.referral-code-text {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.referral-copy-btn {
    background: var(--gold);
    color: var(--bg-primary);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.referral-stats {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.referral-stat {
    text-align: center;
}

.referral-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.referral-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Achievements */
.achievements-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.achievement-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.achievement-badge.earned {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent);
}

.achievement-badge.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.achievement-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.achievement-name {
    font-size: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.achievement-badge.earned .achievement-name {
    color: var(--text-primary);
}

/* Orders List */
.orders-section {
    margin-bottom: 24px;
}

.order-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.order-package {
    font-weight: 600;
    color: var(--text-primary);
}

.order-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.order-status.pending,
.order-status.processing {
    background: rgba(245, 158, 11, 0.2);
    color: var(--gold);
}

.order-status.failed,
.order-status.cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.order-details {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.order-detail {
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.order-amount {
    font-weight: 700;
    color: var(--gold);
}

.order-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.order-reorder {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.order-reorder:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

/* LC Transactions */
.lc-transactions {
    max-height: 300px;
    overflow-y: auto;
}

.lc-transaction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.lc-transaction:last-child {
    border-bottom: none;
}

.lc-tx-info {
    flex: 1;
}

.lc-tx-desc {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.lc-tx-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.lc-tx-amount {
    font-weight: 700;
    font-size: 0.9rem;
}

.lc-tx-amount.positive {
    color: #22c55e;
}

.lc-tx-amount.negative {
    color: #ef4444;
}

/* Leaderboard */
.leaderboard-section {
    margin-bottom: 24px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.leaderboard-item:nth-child(1) .leaderboard-rank {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}

.leaderboard-item:nth-child(2) .leaderboard-rank {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.leaderboard-item:nth-child(3) .leaderboard-rank {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
}

.leaderboard-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.leaderboard-orders {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Live Feed */
.live-feed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    max-width: 300px;
}

.live-feed-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.live-feed-icon {
    font-size: 1.25rem;
}

.live-feed-text {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.live-feed-time {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* Dashboard Nav Tabs */
.dashboard-nav {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-nav-tab {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.dashboard-nav-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-primary);
}

.dashboard-nav-tab:hover:not(.active) {
    border-color: var(--gold);
    color: var(--gold);
}

/* Dashboard Tab Content */
.dashboard-tab-content {
    display: none;
}

.dashboard-tab-content.active {
    display: block;
}

/* User Auth Button */
.user-auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.user-auth-btn .auth-btn-icon {
    filter: grayscale(1) brightness(1.5) sepia(1) hue-rotate(5deg) saturate(3);
}

.user-auth-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.user-auth-btn:hover .auth-btn-icon {
    filter: grayscale(1) brightness(1.8) sepia(1) hue-rotate(5deg) saturate(4);
}

.user-auth-btn.logged-in {
    border-color: var(--gold);
    color: var(--gold);
}

.user-auth-btn.logged-in .auth-btn-icon {
    filter: grayscale(1) brightness(1.8) sepia(1) hue-rotate(5deg) saturate(4);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 90%;
    width: 400px;
}

.toast {
    background: var(--bg-secondary, #0c0c0f);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: toastSlideIn 0.3s ease;
    pointer-events: auto;
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    color: var(--text-primary, #fafafa);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary, #a1a1aa);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary, #a1a1aa);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast.success {
    border-color: #22c55e;
}

.toast.success .toast-icon {
    color: #22c55e;
}

.toast.error {
    border-color: #ef4444;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.info {
    border-color: var(--gold);
}

.toast.info .toast-icon {
    color: var(--gold);
}

/* Bio Verification Card - Hide when verified */
.bio-verify-card.verified {
    display: none;
}

/* Achievement Help Button */
.achievement-help-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.achievement-help-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.achievement-help-btn span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-secondary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
}

.achievement-help-btn:hover span {
    background: var(--gold);
}

/* Achievement Progress List */
.achievement-progress-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
}

.achievement-progress-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.achievement-progress-item.unlocked {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.02));
}

.achievement-progress-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.achievement-progress-icon {
    font-size: 2rem;
    filter: grayscale(100%) opacity(0.4);
}

.achievement-progress-item.unlocked .achievement-progress-icon {
    filter: none;
}

.achievement-progress-info {
    flex: 1;
}

.achievement-progress-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.achievement-progress-item.unlocked .achievement-progress-name {
    color: var(--gold);
}

.achievement-progress-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.achievement-progress-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.achievement-progress-item.unlocked .achievement-progress-status {
    background: var(--gold);
    color: var(--bg-primary);
}

.achievement-progress-bar-container {
    background: var(--bg-secondary);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}

.achievement-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark, #d97706));
    border-radius: 6px;
    transition: width 0.5s ease;
}

.achievement-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Modal Close Button */
.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

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

/* Danger Zone */
.danger-zone .auth-submit:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

#deleteAccountModal .auth-submit:first-of-type:hover {
    background: #dc2626 !important;
}

#deleteAccountModal .auth-field-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 12px;
    color: #ef4444;
    font-size: 0.85rem;
    text-align: center;
}

/* ============================================
   Order Cards Enhancement
   ============================================ */
.order-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-item:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.order-key {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
}

.order-package-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 6px 0;
}

/* ============================================
   Order Details Modal
   ============================================ */
.order-detail-modal {
    padding: 24px;
    position: relative;
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-detail-key {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
}

.order-detail-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-detail-package {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.order-detail-package-icon {
    font-size: 2rem;
}

.order-detail-package-info {
    flex: 1;
}

.order-detail-package-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.order-detail-package-amount {
    font-size: 0.85rem;
    color: var(--text-secondary, #888);
}

.order-detail-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
}

/* Order Timeline */
.order-detail-timeline {
    position: relative;
    padding-left: 24px;
    margin-bottom: 24px;
}

.order-detail-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.timeline-item.done .timeline-dot {
    background: var(--gold);
    border-color: var(--gold);
}

.timeline-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
}

.timeline-time {
    font-size: 0.8rem;
    color: var(--text-secondary, #888);
}

.timeline-item:not(.done) .timeline-label,
.timeline-item:not(.done) .timeline-time {
    opacity: 0.5;
}

/* Order Info Grid */
.order-detail-info {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-info-row:last-child {
    border-bottom: none;
}

.order-info-label {
    font-size: 0.85rem;
    color: var(--text-secondary, #888);
}

.order-info-value {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

/* Reorder Button */
.order-detail-actions {
    text-align: center;
}

.btn-reorder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark, #d97706));
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reorder:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

/* ============================================
   Extra Stats Row (Streak & Favorite)
   ============================================ */
.extra-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.extra-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
}

#dashPurchaseStreak {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--gold);
    font-weight: 600;
}

.streak-fire {
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.extra-stat-label {
    color: var(--text-secondary, #888);
}

.extra-stat-value {
    color: #fff;
    font-weight: 500;
}

/* ============================================
   Order Filters
   ============================================ */
.order-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.order-filter-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary, #888);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.order-filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.order-filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    font-weight: 600;
}

.order-filter-btn .filter-count {
    margin-left: 6px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 0.7rem;
}

/* ============================================
   Infinity Scroll & Loading States
   ============================================ */
.orders-list {
    max-height: none;
    overflow: visible;
}

.loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-secondary, #888);
    font-size: 0.85rem;
    gap: 10px;
}

.loading-more .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.load-more-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-secondary, #888);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.load-more-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(245, 158, 11, 0.05);
}

.no-more-data {
    text-align: center;
    padding: 16px;
    color: var(--text-secondary, #666);
    font-size: 0.8rem;
    font-style: italic;
}

/* ============================================
   Mobile Responsive - Customer Dashboard
   ============================================ */

/* Hide all scrollbars in dashboard */
.dashboard-loaded::-webkit-scrollbar,
.dashboard-content::-webkit-scrollbar,
.dashboard-nav::-webkit-scrollbar,
.orders-list::-webkit-scrollbar,
.lc-transactions-list::-webkit-scrollbar {
    display: none;
}

.dashboard-loaded,
.dashboard-content,
.dashboard-nav,
.orders-list,
.lc-transactions-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 768px) {
    /* Dashboard as FULL PAGE on Mobile - Force it! */
    #dashboardModal {
        padding: 0 !important;
    }
    
    #dashboardModal.active {
        background: var(--bg-primary) !important;
    }
    
    #dashboardModal > .auth-modal-content {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    
    /* Dashboard Skeleton Full Page */
    .dashboard-skeleton {
        padding: 12px !important;
        min-height: 100vh !important;
    }
    
    /* Dashboard Loaded Container */
    .dashboard-loaded {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    /* Dashboard Header - Compact */
    .dashboard-header {
        padding: 10px 12px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: var(--bg-secondary) !important;
        border-bottom: 1px solid var(--border-color) !important;
        flex-shrink: 0 !important;
    }
    
    .dashboard-avatar,
    .dashboard-avatar-img {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }
    
    .dashboard-user-info h3 {
        font-size: 0.85rem !important;
    }
    
    .dashboard-user-info p {
        font-size: 0.65rem !important;
    }
    
    .dash-title-row {
        gap: 4px !important;
        margin-top: 2px !important;
    }
    
    .profile-title,
    .tier-badge {
        font-size: 0.6rem !important;
        padding: 1px 6px !important;
    }
    
    /* Dashboard Actions - Compact */
    .dashboard-actions {
        gap: 6px !important;
    }
    
    .dashboard-btn-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }
    
    /* Show home icon, hide text buttons on mobile */
    .dashboard-home-btn {
        display: flex !important;
    }
    
    .dashboard-close-text,
    .dashboard-logout-text {
        display: none !important;
    }
    
    /* Dashboard Nav Tabs - Compact */
    .dashboard-nav {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 10px !important;
        gap: 4px !important;
        background: var(--bg-secondary) !important;
        position: sticky !important;
        top: 57px !important;
        z-index: 9 !important;
        flex-shrink: 0 !important;
        margin-bottom: 12px !important;
    }
    
    .dashboard-nav-tab {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* Dashboard Content - Scrollable */
    .dashboard-content {
        padding: 12px !important;
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    /* Tier Card - Compact (padding/gap only, margin set separately below) */
    .tier-card-new {
        padding: 12px !important;
        gap: 10px !important;
    }
    
    .tier-icon-large {
        font-size: 1.8rem !important;
    }
    
    .tier-current-name {
        font-size: 1rem !important;
    }
    
    .tier-level {
        font-size: 0.55rem !important;
        padding: 1px 5px !important;
    }
    
    .tier-progress-text {
        font-size: 0.65rem !important;
    }
    
    .tier-next-info {
        font-size: 0.65rem !important;
    }
    
    /* Stats Grid - Compact */
    .stats-grid {
        gap: 8px !important;
        margin-bottom: 12px !important;
    }
    
    .stat-card {
        padding: 10px !important;
    }
    
    .stat-card-icon {
        font-size: 1rem !important;
    }
    
    .stat-card-value {
        font-size: 1rem !important;
    }
    
    .stat-card-label {
        font-size: 0.65rem !important;
    }
    
    /* LC Balance Card - Compact */
    .lc-balance-card {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .lc-coin-icon {
        font-size: 1.5rem !important;
    }
    
    .lc-balance-value {
        font-size: 1.4rem !important;
    }
    
    .lc-balance-title,
    .lc-balance-label {
        font-size: 0.65rem !important;
    }
    
    /* Weekly/Monthly Stats - Compact */
    .stats-period-card {
        padding: 10px !important;
        margin-bottom: 12px !important;
    }
    
    .stats-period-tab {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }
    
    .stats-period-value {
        font-size: 0.85rem !important;
    }
    
    .stats-period-label {
        font-size: 0.6rem !important;
    }
    
    /* Quick Top-up - Compact */
    .quick-topup-section {
        margin-bottom: 12px !important;
    }
    
    .quick-topup-btn {
        padding: 10px 6px !important;
    }
    
    .quick-topup-icon {
        font-size: 1.1rem !important;
    }
    
    .quick-topup-name {
        font-size: 0.6rem !important;
    }
    
    .quick-topup-amount {
        font-size: 0.75rem !important;
    }
    
    /* Bio Verification Card - Compact */
    .bio-verify-card {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    /* Referral Card - Compact */
    .referral-card {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .referral-code-text {
        font-size: 0.95rem !important;
    }
    
    .referral-stats {
        gap: 10px !important;
    }
    
    .referral-stat-value {
        font-size: 1rem !important;
    }
    
    .referral-stat-label {
        font-size: 0.6rem !important;
    }
    
    /* Extra Stats Row - Compact */
    .extra-stats-row {
        gap: 8px !important;
        margin-bottom: 12px !important;
    }
    
    .extra-stat {
        padding: 4px 10px !important;
        font-size: 0.7rem !important;
    }
    
    /* Section Titles - Compact */
    .section-title {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
    }
    
    /* ========================================
       ALL CARDS - Consistent Mobile Margins
       ======================================== */
    
    /* Overview Tab Cards */
    .lc-balance-card,
    .stats-period-card,
    .quick-topup-section,
    .bio-verify-card,
    .referral-card {
        margin-bottom: 12px !important;
    }
    
    /* Tier Card - needs more bottom margin */
    .tier-card-new {
        margin: 0 0 16px 0 !important;
    }
    
    /* Rank Card (has inline style) */
    .stat-card[style*="margin-bottom: 24px"] {
        margin-bottom: 12px !important;
    }
    
    /* Orders Tab */
    .orders-section {
        margin-bottom: 0 !important;
    }
    
    .orders-header {
        margin-bottom: 10px !important;
    }
    
    .order-filters {
        margin-bottom: 12px !important;
        gap: 6px !important;
    }
    
    .order-filter-btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }
    
    .export-btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }
    
    /* Achievements Tab */
    .achievements-section {
        margin-bottom: 0 !important;
    }
    
    .achievement-help-btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }
    
    /* Referrals Tab */
    .referral-code-box {
        padding: 10px !important;
        margin-top: 10px !important;
    }
    
    .referral-stats {
        margin-top: 12px !important;
        gap: 8px !important;
    }
    
    /* Danger Zone */
    .danger-zone {
        margin-top: 20px !important;
        padding-top: 16px !important;
    }
    
    .danger-zone p {
        font-size: 0.75rem !important;
        margin-bottom: 10px !important;
    }
    
    .danger-zone .auth-submit {
        padding: 10px 16px !important;
        font-size: 0.8rem !important;
    }
    
    /* LC Tab */
    .lc-summary-card {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .lc-summary-balance {
        gap: 12px !important;
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
    }
    
    .lc-big-icon {
        font-size: 2rem !important;
    }
    
    .lc-summary-label {
        font-size: 0.7rem !important;
    }
    
    .lc-summary-value {
        font-size: 1.3rem !important;
    }
    
    .lc-summary-stats {
        gap: 10px !important;
    }
    
    .lc-stat-icon {
        font-size: 1.2rem !important;
    }
    
    .lc-stat-value {
        font-size: 0.95rem !important;
    }
    
    .lc-stat-label {
        font-size: 0.6rem !important;
    }
    
    .lc-info-card {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .lc-info-title {
        font-size: 0.75rem !important;
        margin-bottom: 10px !important;
    }
    
    .lc-info-item {
        font-size: 0.65rem !important;
    }
    
    .lc-info-icon {
        font-size: 1rem !important;
    }
    
    .lc-transactions-list {
        gap: 8px !important;
    }
    
    .lc-transaction-item {
        padding: 10px !important;
    }
    
    .lc-transaction-icon {
        font-size: 1.2rem !important;
    }
    
    .lc-transaction-desc {
        font-size: 0.75rem !important;
    }
    
    .lc-transaction-date {
        font-size: 0.6rem !important;
    }
    
    .lc-transaction-amount {
        font-size: 0.8rem !important;
    }
    
    /* ========================================
       MODALS - Mobile Full Width
       ======================================== */
    
    /* Achievement Help Modal */
    #achievementHelpModal .auth-modal-content {
        max-width: 95% !important;
        max-height: 85vh !important;
        margin: auto !important;
        padding: 16px !important;
    }
    
    #achievementHelpModal h3 {
        font-size: 1rem !important;
    }
    
    #achievementHelpModal p {
        font-size: 0.75rem !important;
    }
    
    .achievement-progress-list {
        max-height: 60vh !important;
        overflow-y: auto !important;
    }
    
    .achievement-progress-item {
        padding: 10px !important;
        margin-bottom: 8px !important;
    }
    
    /* Delete Account Modal */
    #deleteAccountModal .auth-modal-content {
        max-width: 90% !important;
        padding: 20px !important;
    }
    
    #deleteAccountModal h3 {
        font-size: 1rem !important;
    }
    
    /* Order Detail Modal */
    #orderDetailModal .auth-modal-content {
        max-width: 95% !important;
        max-height: 85vh !important;
        padding: 14px !important;
    }
    
    .order-detail-modal {
        padding: 14px !important;
    }
    
    .order-detail-header {
        gap: 8px !important;
        margin-bottom: 14px !important;
    }
    
    .order-detail-key {
        font-size: 1rem !important;
    }
    
    .order-detail-package-name {
        font-size: 0.85rem !important;
    }
    
    .order-detail-price {
        font-size: 1rem !important;
    }
    
    .timeline-item {
        padding-left: 20px !important;
    }
    
    .timeline-label {
        font-size: 0.75rem !important;
    }
    
    .timeline-time {
        font-size: 0.65rem !important;
    }
    
    .btn-reorder {
        padding: 10px 16px !important;
        font-size: 0.8rem !important;
    }
    
    /* Settings Modal */
    #settingsModal .auth-modal-content {
        max-width: 95% !important;
        padding: 16px !important;
    }
    
    .settings-tabs {
        gap: 6px !important;
        margin-bottom: 16px !important;
    }
    
    .settings-tab {
        padding: 8px !important;
        font-size: 0.8rem !important;
    }
    
    /* Share Achievement Modal */
    #shareAchievementModal .auth-modal-content {
        max-width: 85% !important;
        padding: 20px !important;
    }
    
    .share-buttons {
        gap: 8px !important;
    }
    
    .share-btn {
        padding: 10px !important;
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    /* Even more compact for small phones */
    .dashboard-content {
        padding: 10px !important;
    }
    
    .dashboard-nav {
        padding: 8px !important;
        margin-bottom: 10px !important;
    }
    
    .dashboard-nav-tab {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }
    
    /* Tier Card 480px */
    .tier-card-new {
        padding: 10px !important;
        gap: 8px !important;
        margin: 0 0 14px 0 !important;
    }
    
    /* Stats Grid - 2 columns */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    
    .stat-card {
        padding: 8px !important;
    }
    
    .stat-card-icon {
        font-size: 0.9rem !important;
    }
    
    .stat-card-value {
        font-size: 0.9rem !important;
    }
    
    .stat-card-label {
        font-size: 0.6rem !important;
    }
    
    /* Tier Card even smaller - removed duplicate, using above */
    
    .tier-icon-large {
        font-size: 1.5rem !important;
    }
    
    .tier-current-name {
        font-size: 0.9rem !important;
    }
    
    /* LC Balance smaller */
    .lc-balance-card {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .lc-balance-value {
        font-size: 1.2rem !important;
    }
    
    .lc-coin-icon {
        font-size: 1.3rem !important;
    }
    
    /* Stats Period smaller */
    .stats-period-card {
        padding: 8px !important;
        margin-bottom: 10px !important;
    }
    
    .stats-period-grid {
        gap: 6px !important;
    }
    
    .stats-period-value {
        font-size: 0.75rem !important;
    }
    
    /* Quick topup smaller */
    .quick-topup-grid {
        gap: 6px !important;
    }
    
    .quick-topup-btn {
        padding: 8px 4px !important;
    }
    
    .quick-topup-icon {
        font-size: 1rem !important;
    }
    
    .quick-topup-amount {
        font-size: 0.7rem !important;
    }
    
    /* Achievements Grid */
    .achievements-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }
    
    .achievement-badge {
        padding: 8px 4px !important;
    }
    
    .achievement-icon {
        font-size: 1rem !important;
    }
    
    .achievement-name {
        font-size: 0.55rem !important;
    }
    
    /* Order Items - Card Style on Mobile */
    .orders-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .order-item {
        padding: 14px;
        margin-bottom: 0;
        border-radius: 14px;
        background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary, #18181b));
        border: 1px solid var(--border-color);
        position: relative;
        overflow: hidden;
    }
    
    .order-item::after {
        content: '›';
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        color: var(--text-muted);
        opacity: 0.5;
    }
    
    .order-item:active {
        transform: scale(0.98);
        border-color: var(--gold);
    }
    
    .order-header {
        flex-wrap: nowrap;
        gap: 10px;
        margin-bottom: 10px;
        padding-right: 20px;
    }
    
    .order-package {
        font-size: 0.95rem;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .order-status {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .order-details {
        flex-wrap: wrap;
        gap: 8px 12px;
        font-size: 0.8rem;
    }
    
    .order-detail {
        gap: 3px;
    }
    
    .order-footer {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .order-amount {
        font-size: 1rem;
    }
    
    .order-date {
        font-size: 0.7rem;
    }
    
    .order-key {
        font-size: 0.7rem;
    }
    
    .order-package-name {
        font-size: 0.9rem;
    }
    
    .order-detail {
        font-size: 0.8rem;
    }
    
    /* ========================================
       ADDITIONAL 480px MOBILE FIXES
       ======================================== */
    
    /* Referrals Tab */
    .referral-card {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .referral-code-box {
        padding: 8px !important;
        gap: 8px !important;
    }
    
    .referral-code-text {
        font-size: 0.85rem !important;
    }
    
    .referral-copy-btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }
    
    .referral-stats {
        gap: 6px !important;
        padding-top: 10px !important;
        margin-top: 10px !important;
    }
    
    .referral-stat-value {
        font-size: 0.9rem !important;
    }
    
    .referral-stat-label {
        font-size: 0.55rem !important;
    }
    
    /* Bio Verify Card */
    .bio-verify-card {
        padding: 12px !important;
    }
    
    .bio-code-display {
        padding: 10px !important;
    }
    
    .bio-code-label {
        font-size: 0.7rem !important;
    }
    
    .bio-code-value {
        font-size: 1rem !important;
    }
    
    .bio-code-copy {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }
    
    .bio-verify-status {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }
    
    /* Danger Zone */
    .danger-zone {
        margin-top: 16px !important;
        padding-top: 12px !important;
        padding: 12px !important;
    }
    
    /* LC Tab - More Compact */
    .lc-summary-card {
        padding: 10px !important;
    }
    
    .lc-summary-balance {
        gap: 10px !important;
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
    }
    
    .lc-big-icon {
        font-size: 1.8rem !important;
    }
    
    .lc-summary-value {
        font-size: 1.1rem !important;
    }
    
    .lc-summary-stat {
        gap: 6px !important;
    }
    
    .lc-info-card {
        padding: 10px !important;
    }
    
    .lc-info-grid {
        gap: 6px !important;
    }
    
    .lc-info-item {
        padding: 6px 8px !important;
        font-size: 0.6rem !important;
    }
    
    .lc-transaction-item {
        padding: 8px !important;
        gap: 8px !important;
    }
    
    .lc-transaction-icon {
        font-size: 1rem !important;
    }
    
    .lc-transaction-desc {
        font-size: 0.7rem !important;
    }
    
    .lc-transaction-date {
        font-size: 0.55rem !important;
    }
    
    .lc-transaction-amount {
        font-size: 0.75rem !important;
    }
    
    /* Modals - More Compact */
    #achievementHelpModal .auth-modal-content,
    #orderDetailModal .auth-modal-content,
    #settingsModal .auth-modal-content,
    #deleteAccountModal .auth-modal-content {
        padding: 12px !important;
        margin: 10px !important;
    }
    
    .modal-close-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 1.2rem !important;
    }
    
    /* Achievement Progress Modal */
    .achievement-progress-icon {
        font-size: 1.5rem !important;
    }
    
    .achievement-progress-name {
        font-size: 0.8rem !important;
    }
    
    .achievement-progress-desc {
        font-size: 0.65rem !important;
    }
    
    .achievement-progress-status {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
    }
    
    .achievement-progress-bar-container {
        height: 6px !important;
        margin-top: 8px !important;
    }
    
    .achievement-progress-text {
        font-size: 0.55rem !important;
        margin-top: 4px !important;
    }
    
    /* Order Detail Modal */
    .order-detail-header {
        padding: 10px !important;
        gap: 6px !important;
    }
    
    .order-detail-key {
        font-size: 0.9rem !important;
    }
    
    .order-detail-package-name {
        font-size: 0.8rem !important;
    }
    
    .order-detail-price {
        font-size: 0.9rem !important;
    }
    
    .order-timeline {
        padding: 0 10px 10px !important;
    }
    
    .timeline-item {
        padding-left: 16px !important;
        padding-bottom: 10px !important;
    }
    
    .timeline-label {
        font-size: 0.7rem !important;
    }
    
    .timeline-time {
        font-size: 0.6rem !important;
    }
    
    /* Settings Modal */
    .settings-tab {
        padding: 6px !important;
        font-size: 0.7rem !important;
    }
    
    .settings-content h4 {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
    }
    
    .settings-content .auth-input {
        padding: 10px !important;
        font-size: 0.8rem !important;
    }
    
    /* Extra Stats Row */
    .extra-stats-row {
        gap: 6px !important;
        padding: 8px 0 !important;
    }
    
    .extra-stat {
        font-size: 0.7rem !important;
    }
    
    .streak-fire {
        font-size: 0.8rem !important;
    }
    
    .order-amount {
        font-size: 0.85rem;
    }
    
    .order-date {
        font-size: 0.7rem;
    }
    
    /* Referral Card */
    .referral-card {
        padding: 16px;
    }
    
    .referral-code-value {
        font-size: 1rem;
    }
    
    /* LC Balance Card */
    .lc-balance-card {
        padding: 14px;
        margin-bottom: 14px;
    }
    
    .lc-balance-value {
        font-size: 1.6rem;
    }
    
    .lc-coin-icon {
        font-size: 1.6rem;
    }
    
    /* LC Summary Card */
    .lc-summary-card {
        padding: 14px;
        margin-bottom: 14px;
    }
    
    .lc-big-icon {
        font-size: 2.2rem;
    }
    
    .lc-summary-value {
        font-size: 1.5rem;
    }
    
    .lc-summary-balance {
        margin-bottom: 14px;
        padding-bottom: 14px;
    }
    
    .lc-summary-stats {
        gap: 12px;
    }
    
    .lc-stat-value {
        font-size: 1rem;
    }
    
    /* LC Info Card */
    .lc-info-card {
        padding: 14px;
    }
    
    .lc-info-title {
        font-size: 0.8rem;
    }
    
    .lc-info-item {
        font-size: 0.7rem;
    }
    
    /* LC Transactions */
    .lc-transaction-item {
        padding: 10px 12px;
    }
    
    .lc-transaction-icon {
        font-size: 1.3rem;
    }
    
    .lc-transaction-desc {
        font-size: 0.8rem;
    }
    
    /* Danger Zone */
    .danger-zone {
        padding-top: 20px;
        margin-top: 24px;
    }
    
    /* Quick Topup */
    .quick-topup-btn {
        padding: 10px 6px;
    }
    
    .quick-topup-icon {
        font-size: 1.2rem;
    }
    
    .quick-topup-name {
        font-size: 0.65rem;
    }
    
    .quick-topup-amount {
        font-size: 0.8rem;
    }
    
    /* Live Feed */
    .live-feed {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    /* Order Detail Modal */
    .order-detail-modal {
        padding: 16px;
    }
    
    .order-detail-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .order-detail-key {
        font-size: 1.1rem;
    }
    
    .order-detail-package {
        flex-wrap: wrap;
        padding: 12px;
    }
    
    .order-detail-package-icon {
        font-size: 1.5rem;
    }
    
    .order-detail-package-name {
        font-size: 0.9rem;
    }
    
    .order-detail-price {
        width: 100%;
        text-align: right;
        margin-top: 8px;
        font-size: 1.1rem;
    }
    
    .timeline-label {
        font-size: 0.85rem;
    }
    
    .timeline-time {
        font-size: 0.75rem;
    }
    
    .btn-reorder {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 0.85rem;
    }
    
    /* Extra Stats */
    .extra-stats-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .extra-stat {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   New Dashboard Features CSS
   ============================================ */

/* ============================================
   Skeleton Loading
   ============================================ */
.dashboard-skeleton {
    padding: 20px;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-info {
    flex: 1;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 8px;
}

.skeleton-title {
    width: 50%;
    height: 18px;
}

.skeleton-subtitle {
    width: 70%;
    height: 14px;
}

.skeleton-text {
    width: 40%;
    height: 10px;
}

.skeleton-tier-card {
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 20px;
}

.skeleton-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.skeleton-tab {
    flex: 1;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.skeleton-stat-card {
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Redesigned Tier Card
   ============================================ */
.tier-card-new {
    display: flex;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.08) 100%);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    gap: 16px;
    overflow: hidden;
    position: relative;
}

.tier-card-new::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.tier-card-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tier-icon-large {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.tier-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.tier-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-current-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}

.tier-level {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.tier-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tier-progress-bar-new {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.tier-progress-fill-new {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #FFA500);
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
}

.tier-progress-fill-new::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.tier-progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    min-width: 35px;
    text-align: right;
}

.tier-next-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.tier-next-info strong {
    color: var(--gold);
}

/* Profile Title & Tier Badge */
.dash-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.profile-title {
    font-size: 0.7rem;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.tier-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.tier-badge.bronze { background: rgba(205, 127, 50, 0.2); color: #CD7F32; }
.tier-badge.silver { background: rgba(192, 192, 192, 0.2); color: #C0C0C0; }
.tier-badge.gold { background: rgba(255, 215, 0, 0.2); color: #FFD700; }
.tier-badge.diamond { background: rgba(185, 242, 255, 0.2); color: #00CED1; }

/* Tier Progress Card */
.tier-progress-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.02));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.tier-current {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tier-icon {
    font-size: 1.5rem;
}

.tier-name {
    font-weight: 600;
    color: var(--text-primary);
}

.tier-progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.tier-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #FFA500);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.tier-next {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.tier-next-name {
    color: var(--text-primary);
    font-weight: 500;
}

/* Weekly/Monthly Stats */
.stats-period-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.stats-period-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.stats-period-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.stats-period-tab.active {
    background: var(--gold);
    color: #000;
}

.stats-period-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stats-period-item {
    text-align: center;
}

.stats-period-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stats-period-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Quick Top-up */
.quick-topup-section {
    margin-bottom: 20px;
}

.quick-topup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-topup-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-topup-btn:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.quick-topup-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.quick-topup-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.quick-topup-amount {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* LC Tab Styles */
.lc-summary-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.lc-summary-balance {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.lc-big-icon {
    font-size: 3rem;
}

.lc-summary-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lc-summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
}

.lc-summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lc-summary-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lc-stat-icon {
    font-size: 1.5rem;
}

.lc-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.lc-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.lc-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.lc-info-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.lc-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.lc-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.lc-info-icon {
    font-size: 1.2rem;
}

.lc-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lc-transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
}

.lc-transaction-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lc-transaction-icon {
    font-size: 1.5rem;
}

.lc-transaction-desc {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.lc-transaction-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.lc-transaction-amount {
    font-weight: 600;
}

.lc-transaction-amount.positive {
    color: #22c55e;
}

.lc-transaction-amount.negative {
    color: #ef4444;
}

/* Orders Header */
.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.export-btn {
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.export-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

/* Settings Modal */
.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.settings-tab {
    flex: 1;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.settings-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.settings-content {
    display: none;
}

.settings-content.active {
    display: block;
}

/* Dashboard Icon Button */
.dashboard-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-btn-icon:hover {
    background: var(--gold);
    border-color: var(--gold);
}

/* Hide home button on desktop, show text buttons */
.dashboard-home-btn {
    display: none;
}

.dashboard-close-text,
.dashboard-logout-text {
    display: inline-flex;
}

/* Support FAB */
.support-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.support-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.support-fab span {
    font-size: 1.8rem;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.share-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.share-btn span {
    font-size: 1.2rem;
}

.share-twitter {
    background: #1DA1F2;
    color: white;
}

.share-whatsapp {
    background: #25D366;
    color: white;
}

.share-copy {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Achievement Share Button */
.achievement-badge {
    position: relative;
}

.achievement-share-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 215, 0, 0.9);
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-badge.earned:hover .achievement-share-btn {
    opacity: 1;
}

.achievement-share-btn:hover {
    background: var(--gold);
    transform: scale(1.1);
}

/* Confetti Container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Milestone Celebration Overlay */
.milestone-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    animation: fadeIn 0.3s ease;
}

.milestone-content {
    text-align: center;
    animation: scaleIn 0.5s ease;
}

.milestone-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

.milestone-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
}

.milestone-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.milestone-close {
    padding: 12px 32px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

@keyframes scaleIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Mobile Responsive for new features */
@media (max-width: 480px) {
    .tier-progress-card {
        padding: 14px;
    }
    
    .tier-icon {
        font-size: 1.2rem;
    }
    
    .stats-period-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-topup-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .quick-topup-btn {
        padding: 12px 6px;
    }
    
    .quick-topup-icon {
        font-size: 1.2rem;
    }
    
    .lc-summary-card {
        padding: 16px;
    }
    
    .lc-big-icon {
        font-size: 2.5rem;
    }
    
    .lc-summary-value {
        font-size: 1.5rem;
    }
    
    .lc-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .support-fab {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
    
    .support-fab span {
        font-size: 1.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        flex-direction: row;
        justify-content: center;
    }
    
    .dashboard-actions {
        gap: 6px;
    }
    
    .dashboard-btn-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    /* Tier Card Mobile */
    .tier-card-new {
        padding: 14px;
        gap: 12px;
    }
    
    .tier-icon-large {
        font-size: 2.5rem;
    }
    
    .tier-current-name {
        font-size: 1rem;
    }
    
    .tier-level {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .tier-progress-text {
        font-size: 0.7rem;
    }
    
    .tier-next-info {
        font-size: 0.7rem;
    }
    
    /* Skeleton Mobile */
    .skeleton-avatar {
        width: 50px;
        height: 50px;
    }
    
    .skeleton-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .skeleton-stat-card {
        height: 70px;
    }
    
    /* Order Filters Mobile */
    .order-filter-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    /* Auth Fields in Modals */
    .auth-field {
        margin-bottom: 12px !important;
    }
    
    .auth-field label {
        font-size: 0.75rem !important;
        margin-bottom: 4px !important;
    }
    
    .auth-field input {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }
    
    /* Section Titles in Modals */
    .auth-modal h3 {
        font-size: 1rem !important;
    }
    
    .auth-modal p {
        font-size: 0.8rem !important;
    }
    
    /* Auth Submit Button */
    .auth-submit {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
    
    /* Share Achievement Modal - Smaller */
    #shareAchievementModal .auth-modal-content {
        max-width: 280px !important;
        padding: 16px !important;
    }
    
    #shareAchievementIcon {
        font-size: 3rem !important;
        margin-bottom: 12px !important;
    }
    
    #shareAchievementName {
        font-size: 0.95rem !important;
    }
    
    #shareAchievementDesc {
        font-size: 0.75rem !important;
    }
    
    .share-buttons {
        gap: 8px !important;
    }
    
    .share-btn {
        padding: 8px !important;
        font-size: 0.7rem !important;
    }
    
    .share-btn span {
        font-size: 1rem !important;
    }
}

