/* ============================================================
   DASHBOARD — Consistent with TarotBot theme
   ============================================================ */

/* ============================================
   PUBLIC NOTICE
   ============================================ */
.public-notice {
    width: min(1360px, calc(100% - 64px));
    margin: 0 auto 20px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--deep-ink);
    border: 1px solid rgba(212, 201, 184, .12);
    border-radius: 12px;
    font-size: 0.82rem;
    color: #b5cbc7;
}

.notice-icon { font-size: 1.1rem; }
.notice-text { color: var(--butter); font-weight: 500; }
.notice-divider { color: rgba(212, 201, 184, .15); }

.notice-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b5cbc7;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.notice-update {
    color: #7a9296;
    font-size: 0.72rem;
}

.notice-update i { margin-right: 4px; }


/* ============================================
   RECENT READINGS FILTER
   ============================================ */
.recent-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.recent-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a9296;
}

.recent-filter-label i {
    color: var(--butter);
    font-size: 0.55rem;
}

.select-wrapper {
    position: relative;
    display: inline-block;
}

.spread-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(189, 138, 45, 0.25);
    border-radius: 50px;
    padding: 5px 28px 5px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--deep-ink);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.spread-filter-select:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(189, 138, 45, 0.45);
}

.spread-filter-select:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(189, 138, 45, 0.15);
}

.select-chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
    color: var(--ochre);
    pointer-events: none;
}

.recent-filter-count {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    color: var(--ochre);
    letter-spacing: 0.04em;
    min-width: 60px;
}

@media (max-width: 768px) {
    .recent-filter {
        margin-left: 0;
        flex-wrap: wrap;
    }
}

/* ============================================
   STAT CARD SKELETON (initial load shimmer)
   ============================================ */
@keyframes stat-skeleton-shimmer {
    0%   { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.stat-skeleton {
    display: inline-block;
    width: 70px;
    height: 1.6em;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        rgba(212, 201, 184, 0.15) 0%,
        rgba(212, 201, 184, 0.35) 50%,
        rgba(212, 201, 184, 0.15) 100%
    );
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: stat-skeleton-shimmer 1.4s ease-in-out infinite;
    vertical-align: middle;
}

.dashboard-luxury .stat-skeleton {
    background: linear-gradient(
        90deg,
        rgba(184, 149, 106, 0.12) 0%,
        rgba(184, 149, 106, 0.30) 50%,
        rgba(184, 149, 106, 0.12) 100%
    );
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: stat-skeleton-shimmer 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .stat-skeleton { animation: none; }
    .spread-filter-select { transition: none; }
}

.privacy-footer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #7a9296;
}

.privacy-footer i {
    color: var(--butter);
    font-size: 0.6rem;
}

/* ============================================
   DASHBOARD HEADER
   ============================================ */
.dashboard-header {
    width: min(1360px, calc(100% - 64px));
    margin: 0 auto 28px;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--deep-ink);
    border: 1px solid rgba(212, 201, 184, .08);
    border-radius: 16px;
}

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

.header-icon {
    font-size: 2.4rem;
    color: var(--red);
    line-height: 1;
    display: inline-block;
}

.dashboard-header h1 {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 500;
    color: #f5f1e7;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-header h1 .brand-mark {
    color: var(--red);
    font-size: 2.4rem;
    font-weight: 700;
    display: inline-block;
    line-height: 1;
}

.dashboard-header h1 .brand-text {
    display: inline;
    color: #f5f1e7;
}

.dashboard-header h1 .brand-text span {
    color: var(--red);
}

.dashboard-header h1 .highlight {
    color: var(--red);
}

.dashboard-header h1 .header-subtitle {
    color: #b5cbc7;
    font-size: 0.9rem;
    font-family: var(--sans);
    font-weight: 400;
    margin-left: 4px;
    opacity: 0.7;
}

.dashboard-header h1 .effective-date {
    display: inline-block;
    padding: 0.2rem 1rem;
    background: rgba(212, 201, 184, .08);
    border: 1px solid rgba(212, 201, 184, .08);
    border-radius: 40px;
    font-size: 0.75rem;
    color: var(--butter);
    font-family: var(--mono);
    opacity: 0.7;
    margin-left: 8px;
}

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

.header-badge {
    padding: 4px 16px;
    background: rgba(212, 201, 184, .08);
    border: 1px solid rgba(212, 201, 184, .1);
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--butter);
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-badge i {
    color: var(--red);
    font-size: 0.65rem;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(212, 201, 184, .06);
    border: 1px solid rgba(212, 201, 184, .08);
    border-radius: 8px;
    color: #b5cbc7;
    cursor: pointer;
    transition: all .25s ease;
    font-size: 0.9rem;
}

.refresh-btn:hover {
    border-color: var(--butter);
    color: var(--butter);
    transform: rotate(45deg);
}

.refresh-btn:active { transform: rotate(90deg); }

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    width: min(1360px, calc(100% - 64px));
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 24px 20px;
    text-align: center;
    background: var(--deep-ink);
    border: 1px solid rgba(212, 201, 184, .06);
    border-radius: 16px;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--butter));
    opacity: 0;
    transition: opacity .3s ease;
}

.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
    border-color: rgba(212, 201, 184, .15);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 1.3rem;
    color: var(--butter);
    margin-bottom: 4px;
}

.stat-number {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: #f5f1e7;
    line-height: 1.2;
}

.stat-label {
    color: #b5cbc7;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* ============================================
   DASHBOARD GRID
   ============================================ */
.dashboard-grid {
    width: min(1360px, calc(100% - 64px));
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    background: var(--deep-ink);
    border: 1px solid rgba(212, 201, 184, .06);
    border-radius: 16px;
    padding: 24px 28px;
    transition: border-color .3s ease;
}

.section:hover { border-color: rgba(212, 201, 184, .12); }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.section-header h2 {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: #f5f1e7;
}

.section-header h2 i {
    margin-right: 10px;
    color: var(--red);
    font-size: 1.1rem;
}

.section-badge {
    padding: 2px 14px;
    background: rgba(212, 201, 184, .06);
    border: 1px solid rgba(212, 201, 184, .06);
    border-radius: 50px;
    font-size: 0.65rem;
    color: #b5cbc7;
}

/* ============================================
   TOP CARDS
   ============================================ */
.top-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(212, 201, 184, .04);
}

.top-card:last-child { border-bottom: none; }

.top-card .rank {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--butter);
    min-width: 30px;
    font-size: 0.8rem;
}

.top-card .card-name {
    flex: 1;
    font-size: 0.88rem;
    color: #e9efeb;
}

.top-card .card-count {
    color: #b5cbc7;
    font-size: 0.7rem;
    font-family: var(--mono);
    min-width: 35px;
    text-align: right;
}

.progress-bar {
    background: rgba(212, 201, 184, .06);
    border-radius: 20px;
    height: 5px;
    flex: 1;
    max-width: 100px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--red), var(--butter));
    transition: width .8s ease;
}

/* ============================================
   SPREAD LIST
   ============================================ */
.spread-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(212, 201, 184, .04);
}

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

.spread-item .spread-name {
    font-size: 0.85rem;
    color: #e9efeb;
    text-transform: capitalize;
}

.spread-item .spread-count {
    padding: 2px 14px;
    background: rgba(212, 201, 184, .06);
    border-radius: 50px;
    font-size: 0.7rem;
    color: #b5cbc7;
    font-family: var(--mono);
}

/* ============================================
   RECENT READINGS
   ============================================ */
.reading-item {
    padding: 14px 18px;
    margin-bottom: 10px;
    background: rgba(212, 201, 184, .03);
    border-radius: 12px;
    border-left: 3px solid var(--red);
    transition: all .3s ease;
}

.reading-item:hover {
    background: rgba(212, 201, 184, .06);
    border-left-color: var(--butter);
}

.reading-item:last-child { margin-bottom: 0; }

.reading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.reading-id {
    font-family: var(--mono);
    color: #7a9296;
    font-size: 0.7rem;
}

.reading-spread {
    padding: 2px 14px;
    background: rgba(212, 201, 184, .06);
    border-radius: 50px;
    font-size: 0.65rem;
    color: var(--butter);
    text-transform: capitalize;
}

/* ============================================
   USER AVATAR & CENSORED NAME STYLES
   ============================================ */
.reading-user {
    display: flex;
    align-items: center;
    margin: 4px 0 6px;
}

.user-avatar-image,
.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex: 0 0 32px;
}

.user-avatar-image {
    display: block;
    object-fit: cover;
    border: 2px solid var(--butter);
}

.user-avatar-placeholder {
    display: inline-grid;
    place-items: center;
    color: var(--butter);
    background: rgba(212, 201, 184, .12);
    border: 1px solid rgba(212, 201, 184, .25);
    font-size: .7rem;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
    user-select: none;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #e9efeb;
}

.user-name.censored {
    font-family: var(--mono);
    letter-spacing: 0.03em;
}

.user-name.censored .lock-icon {
    font-size: 0.55rem;
    opacity: 0.5;
    margin-left: 4px;
    color: #7a9296;
}

.privacy-badge {
    font-size: 0.6rem;
    color: #7a9296;
    opacity: 0.6;
}

.privacy-badge i {
    color: var(--butter);
}

/* ============================================
   READING CONTENT
   ============================================ */
.reading-question {
    color: #f5f1e7;
    margin: 6px 0 2px;
    font-weight: 500;
    font-size: 0.92rem;
}

.reading-cards {
    color: #b5cbc7;
    font-size: 0.8rem;
}

.reading-time {
    color: #7a9296;
    font-size: 0.65rem;
    margin-top: 4px;
    font-family: var(--mono);
}

.more-cards {
    color: #7a9296;
    font-size: 0.72rem;
    font-style: italic;
    opacity: 0.7;
    margin-left: 2px;
}

.reading-cards i {
    color: var(--gold, #b8956a);
    font-size: 0.85em;
    margin-right: 4px;
}

.reading-question i {
    font-size: 0.8em;
    margin-right: 4px;
    color: #b8956a;
    opacity: 0.7;
}

/* ============================================
   DASHBOARD FOOTER
   ============================================ */
.dashboard-footer {
    width: min(1360px, calc(100% - 64px));
    margin: 28px auto 0;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    background: var(--deep-ink);
    border: 1px solid rgba(212, 201, 184, .08);
    border-radius: 16px;
    color: #7a9296;
    font-size: 0.78rem;
}

.dashboard-footer .footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-footer .footer-left i {
    color: var(--red);
}

.dashboard-footer .footer-left .footer-icon {
    color: var(--red);
    font-size: 0.9rem;
}

.dashboard-footer .footer-separator {
    color: rgba(212, 201, 184, .08);
    font-size: 0.6rem;
}

.dashboard-footer .footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-footer .footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #b5cbc7;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid rgba(212, 201, 184, .06);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all .25s ease;
}

.dashboard-footer .footer-links a:hover {
    border-color: var(--butter);
    color: var(--butter);
    background: rgba(212, 201, 184, .04);
}

.dashboard-footer .footer-links a i {
    font-size: 0.65rem;
    color: var(--red);
}

.dashboard-footer .footer-links a.invite-link {
    border-color: rgba(212, 201, 184, .12);
    color: var(--butter);
    font-weight: 600;
}

.dashboard-footer .footer-links a.invite-link:hover {
    background: var(--butter);
    color: var(--deep-ink);
    border-color: var(--butter);
}

.dashboard-footer .footer-links a.invite-link:hover i {
    color: var(--deep-ink);
}

.dashboard-footer .footer-links .link-separator {
    color: rgba(212, 201, 184, .06);
    font-size: 0.6rem;
}

/* ============================================
   LOADING & EMPTY STATE
   ============================================ */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #b5cbc7;
}

.spinner {
    border: 3px solid rgba(212, 201, 184, .06);
    border-top: 3px solid var(--butter);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #b5cbc7;
}

.empty-state .icon {
    font-size: 2.6rem;
    margin-bottom: 10px;
    opacity: 0.4;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeInUp 0.4s ease forwards;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .public-notice,
    .dashboard-header,
    .stats-grid,
    .dashboard-grid,
    .dashboard-footer {
        width: min(100% - 40px, 700px);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-header h1 { 
        font-size: 1.8rem; 
    }
    .dashboard-header h1 .brand-mark { 
        font-size: 2rem; 
    }
    .header-icon {
        font-size: 2rem;
    }

    .public-notice {
        font-size: 0.7rem;
        padding: 10px 16px;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .public-notice,
    .dashboard-header,
    .stats-grid,
    .dashboard-grid,
    .dashboard-footer {
        width: calc(100% - 32px);
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card { padding: 16px 12px; }
    .stat-number { font-size: 1.6rem; }

    .dashboard-header { 
        padding: 16px 18px; 
    }
    .dashboard-header h1 { 
        font-size: 1.4rem; 
    }
    .dashboard-header h1 .brand-mark { 
        font-size: 1.6rem; 
    }
    .dashboard-header h1 .header-subtitle { 
        font-size: 0.8rem; 
    }
    .dashboard-header h1 .effective-date {
        font-size: 0.65rem;
        padding: 0.15rem 0.8rem;
        margin-left: 4px;
    }
    .header-icon { 
        font-size: 1.6rem; 
    }

    .section { padding: 16px 18px; }
    .section-header h2 { font-size: 0.92rem; }
    .section-header h2 i {
        font-size: 0.95rem;
    }

    .top-card .card-name { font-size: 0.8rem; }
    .progress-bar { max-width: 60px; }

    .reading-item { padding: 12px 14px; }
    .reading-question { font-size: 0.82rem; }

    .dashboard-footer {
        flex-direction: column;
        text-align: center;
        font-size: 0.7rem;
    }

    .public-notice {
        font-size: 0.65rem;
        padding: 8px 12px;
        gap: 6px;
        flex-wrap: wrap;
    }

}

/* ============================================================
   CELESTIAL MARBLE THEME
   ============================================================ */
body.dashboard-luxury {
    --navy: #0b1d40;
    --royal: #163b73;
    --gold: #bd8a2d;
    --gold-light: #f3d583;
    --marble: #f7f4ed;
    --ink-blue: #13284f;
    background: #dfe5ec;
    color: var(--ink-blue);
}

.dashboard-luxury .app-container {
    max-width: 1440px;
    padding: 28px 20px 52px;
}

.dashboard-luxury .public-notice,
.dashboard-luxury .section,
.dashboard-luxury .dashboard-footer,
.dashboard-luxury .stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(241,238,226,.91));
    border: 1px solid rgba(189, 138, 45, .35);
    box-shadow: 0 12px 28px rgba(11, 29, 64, .10), inset 0 0 0 3px rgba(255,255,255,.55);
}

.dashboard-luxury .public-notice {
    width: min(1360px, calc(100% - 64px));
    color: #415376;
    border-radius: 4px;
}

.dashboard-luxury .notice-text,
.dashboard-luxury .notice-status,
.dashboard-luxury .notice-update,
.dashboard-luxury .privacy-footer { color: #31486f; }
.dashboard-luxury .notice-divider { color: rgba(19, 40, 79, .28); }
.dashboard-luxury .privacy-badge-header {
    background: rgba(189, 138, 45, .09);
    border-color: rgba(189, 138, 45, .26);
    color: #40506c;
}

.dashboard-luxury .dashboard-header {
    min-height: 280px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy) url('../assets/celestial-marble-dashboard.png') right center / cover no-repeat;
    border: 1px solid rgba(243, 213, 131, .8);
    border-radius: 6px;
    box-shadow: 0 18px 38px rgba(7, 19, 47, .25), inset 0 0 0 7px rgba(243,213,131,.20);
}

.dashboard-luxury .dashboard-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 20, 48, .96) 0%, rgba(11, 29, 64, .78) 38%, rgba(11,29,64,.10) 75%);
}

.dashboard-luxury .dashboard-header::after {
    content: '✦  ·  ✦  ·  ✦';
    position: absolute;
    inset: 12px 16px auto auto;
    color: rgba(243, 213, 131, .86);
    font-family: var(--serif);
    font-size: .78rem;
    letter-spacing: .48em;
}

.dashboard-luxury .hero-copy { max-width: 620px; }
.dashboard-luxury .hero-eyebrow {
    color: var(--gold-light);
    font-family: var(--mono);
    font-size: .67rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.dashboard-luxury .hero-description { color: rgba(246, 241, 224, .78); font-size: .9rem; margin-top: 10px; max-width: 390px; }
.dashboard-luxury .dashboard-header h1 { color: #fff9e8; font-size: clamp(2.3rem, 4vw, 3.35rem); }
.dashboard-luxury .dashboard-header h1 .brand-mark,
.dashboard-luxury .dashboard-header h1 .brand-text span { color: var(--gold-light); }
.dashboard-luxury .dashboard-header h1 .brand-text { color: #fff9e8; }
.dashboard-luxury .dashboard-header h1 .header-subtitle { color: #d4dded; }
.dashboard-luxury .header-badge { color: #fff3cc; background: rgba(7,20,48,.58); border-color: rgba(243,213,131,.38); }
.dashboard-luxury .header-badge i { color: var(--gold-light); }
.dashboard-luxury .refresh-btn { background: rgba(7,20,48,.58); border-color: rgba(243,213,131,.38); color: #fff3cc; }
.dashboard-luxury .refresh-btn:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ============================================
   LIVE BADGE PULSE (realtime data update indicator)
   ============================================ */
@keyframes live-pulse-glow {
    0%   { box-shadow: 0 0 0 0 rgba(243, 213, 131, 0.55); transform: scale(1); }
    35%  { box-shadow: 0 0 0 10px rgba(243, 213, 131, 0); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(243, 213, 131, 0); transform: scale(1); }
}

@keyframes live-pulse-icon {
    0%   { color: var(--gold-light); }
    35%  { color: #fff9e8; text-shadow: 0 0 8px rgba(243, 213, 131, 0.9); }
    100% { color: var(--gold-light); }
}

.header-badge.live-pulse {
    animation: live-pulse-glow 1.6s ease-out;
    border-color: var(--gold-light);
}

.header-badge.live-pulse i {
    animation: live-pulse-icon 1.6s ease-out;
}

.dashboard-luxury .stat-card { border-radius: 4px; padding: 27px 20px; }
.dashboard-luxury .stat-card::before { height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 1; }
.dashboard-luxury .stat-card:hover { border-color: var(--gold); box-shadow: 0 18px 30px rgba(11,29,64,.16); }
.dashboard-luxury .stat-icon, .dashboard-luxury .section-header h2 i { color: var(--gold); }
.dashboard-luxury .stat-number, .dashboard-luxury .section-header h2, .dashboard-luxury .top-card .card-name, .dashboard-luxury .spread-item .spread-name, .dashboard-luxury .reading-question, .dashboard-luxury .user-name { color: var(--ink-blue); }
.dashboard-luxury .stat-label, .dashboard-luxury .reading-cards, .dashboard-luxury .reading-time, .dashboard-luxury .reading-id { color: #53637d; }
.dashboard-luxury .section { border-radius: 4px; }
.dashboard-luxury .section-badge, .dashboard-luxury .reading-spread, .dashboard-luxury .spread-item .spread-count { background: rgba(22,59,115,.08); color: #274777; border: 1px solid rgba(22,59,115,.13); }
.dashboard-luxury .top-card, .dashboard-luxury .spread-item { border-color: rgba(19,40,79,.10); }
.dashboard-luxury .top-card .rank, .dashboard-luxury .top-card .card-count { color: #8b641d; }
.dashboard-luxury .progress-bar { background: rgba(22,59,115,.10); }
.dashboard-luxury .progress-bar .fill { background: linear-gradient(90deg, var(--royal), var(--gold-light)); }
.dashboard-luxury .reading-item { background: rgba(255,255,255,.56); border-left-color: var(--gold); }
.dashboard-luxury .reading-item:hover { background: #fffdf7; border-left-color: var(--royal); }
.dashboard-luxury .user-avatar { background: var(--royal) !important; border: 2px solid var(--gold-light); color: #fff; }
.dashboard-luxury .user-avatar-image { border-color: var(--gold-light); }
.dashboard-luxury .user-avatar-placeholder { color: var(--gold); background: rgba(22,59,115,.08); border-color: rgba(189,138,45,.45); }
.dashboard-luxury .sensitive-content { color: #53637d; font-style: italic; font-weight: 500; }
.dashboard-luxury .sensitive-content i { color: var(--gold); margin-right: 6px; font-size: .75em; }
.dashboard-luxury .privacy-badge i, .dashboard-luxury .user-name.censored .lock-icon { color: var(--gold); }
.dashboard-luxury .dashboard-footer { color: #53637d; border-radius: 4px; }
.dashboard-luxury .dashboard-footer .footer-left i, .dashboard-luxury .dashboard-footer .footer-icon, .dashboard-luxury .dashboard-footer .footer-links a i { color: var(--gold); }
.dashboard-luxury .dashboard-footer .footer-links a { color: #294975; border-color: rgba(22,59,115,.18); }
.dashboard-luxury .dashboard-footer .footer-links a:hover { color: #fff; background: var(--royal); border-color: var(--royal); }
.dashboard-luxury .dashboard-footer .footer-links a.invite-link { color: var(--ink-blue); border-color: rgba(189,138,45,.55); }
.dashboard-luxury .dashboard-footer .footer-links a.invite-link:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.skeleton-stack { display: grid; gap: 12px; padding: 14px 0; }
.skeleton-line { display: block; width: 72%; height: 13px; border-radius: 20px; background: linear-gradient(90deg, #e4e6e8 25%, #f8f7f1 37%, #e4e6e8 63%); background-size: 400% 100%; animation: shimmer 1.35s infinite; }
.skeleton-line.wide { width: 100%; height: 19px; }.skeleton-line.short { width: 38%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (max-width: 600px) {
    .dashboard-luxury .app-container { padding: 14px 8px 30px; }
    .dashboard-luxury .dashboard-header { min-height: 330px; background-position: 63% center; }
    .dashboard-luxury .dashboard-header::before { background: linear-gradient(90deg, rgba(7,20,48,.96), rgba(7,20,48,.74)); }
    .dashboard-luxury .hero-description { font-size: .83rem; }
}

@media (max-width: 400px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .stat-card { padding: 12px 8px; }
    .stat-number { font-size: 1.3rem; }
    .stat-label { font-size: 0.6rem; }
    .stat-icon { font-size: 1rem; }

    .public-notice {
        font-size: 0.55rem;
        padding: 6px 10px;
        gap: 4px;
    }
}

/* ============================================
   DASHBOARD PAGE BODY
   ============================================ */
body.dashboard-page {
    background: var(--paper);
}

body:has(.dashboard-header) {
    background: var(--paper);
}

.dashboard-shell {
    background: var(--paper);
    min-height: 100vh;
    padding: 28px 0 0;
}
