/* ═══════════════════════════════════════════════════════════════
   THE PEARL · Shared Theme System
   White & Gold Luxury Design · Life-OS
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
    --bg:             #fbfaf6;
    --bg-elevated:    rgba(255, 255, 255, 0.88);
    --bg-soft:        rgba(255, 255, 255, 0.68);
    --bg-glass:       rgba(255, 255, 255, 0.75);

    --border-subtle:  rgba(120, 97, 35, 0.15);
    --border-strong:  rgba(120, 97, 35, 0.28);
    --border-gold:    rgba(212, 175, 55, 0.45);

    --gold:           #d4af37;
    --gold-soft:      rgba(212, 175, 55, 0.18);
    --gold-strong:    #b8860b;
    --gold-light:     #f7e7a6;
    --gold-ink:       #2b2208;

    --text:           #111827;
    --text-muted:     #6b7280;
    --text-light:     #9ca3af;

    --danger:         #dc2626;
    --danger-bg:      rgba(220, 38, 38, 0.08);
    --success:        #16a34a;
    --success-bg:     rgba(22, 163, 74, 0.08);

    --shadow-xs:      0 2px 8px rgba(17, 24, 39, 0.06);
    --shadow-sm:      0 10px 24px rgba(17, 24, 39, 0.10);
    --shadow-md:      0 18px 46px rgba(17, 24, 39, 0.12);
    --shadow-lg:      0 26px 70px rgba(17, 24, 39, 0.16);
    --shadow-gold:    0 8px 32px rgba(212, 175, 55, 0.18);
    --shadow-soft:    0 2px 12px rgba(17, 24, 39, 0.06);

    --radius-sm:      10px;
    --radius-md:      14px;
    --radius-lg:      18px;
    --radius-xl:      22px;
    --pill:           9999px;

    --glass-blur:     blur(18px);
    --glass-blur-sm:  blur(10px);

    --transition-fast:   0.16s ease;
    --transition-normal: 0.3s ease;
    --transition-slow:   0.5s ease;
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Base Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ── Splash / Loading Screen ────────────────────────────────── */
.pearl-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 40%, #fffdf5 0%, #fbfaf6 50%, #f5f0e0 100%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.pearl-splash.pearl-splash-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.pearl-splash-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0%, #f7e7a6 30%, #d4af37 65%, #b8860b 100%);
    box-shadow:
        0 0 40px rgba(212, 175, 55, 0.35),
        0 0 80px rgba(212, 175, 55, 0.15),
        inset 0 -4px 12px rgba(184, 134, 11, 0.3),
        inset 0 4px 8px rgba(255, 255, 255, 0.6);
    animation: pearlSplashPulse 1.5s ease-in-out infinite, pearlSplashFloat 2.5s ease-in-out infinite;
}
.pearl-splash-title {
    margin-top: 24px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-strong);
    letter-spacing: 0.08em;
    opacity: 0.8;
    animation: pearlSplashFadeIn 0.8s ease-out 0.3s both;
}
.pearl-splash-shimmer {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    animation: pearlSplashShimmer 3s ease-in-out infinite;
}

@keyframes pearlSplashPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(212,175,55,0.35), 0 0 80px rgba(212,175,55,0.15), inset 0 -4px 12px rgba(184,134,11,0.3), inset 0 4px 8px rgba(255,255,255,0.6); }
    50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(212,175,55,0.45), 0 0 120px rgba(212,175,55,0.2), inset 0 -4px 12px rgba(184,134,11,0.3), inset 0 4px 8px rgba(255,255,255,0.6); }
}
@keyframes pearlSplashFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-8px) scale(1.04); }
    75% { transform: translateY(4px) scale(1.02); }
}
@keyframes pearlSplashFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 0.8; transform: translateY(0); }
}
@keyframes pearlSplashShimmer {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.4); opacity: 0.2; }
}

/* ── Pearl Orb Component ────────────────────────────────────── */
.pearl-orb-shell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pearl-orb-inner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0%, #f7e7a6 30%, #d4af37 65%, #b8860b 100%);
    box-shadow:
        0 0 24px rgba(212, 175, 55, 0.3),
        0 0 60px rgba(212, 175, 55, 0.1),
        inset 0 -3px 8px rgba(184, 134, 11, 0.25),
        inset 0 3px 6px rgba(255, 255, 255, 0.5);
    animation: pearlPulse 3s ease-in-out infinite;
}
.pearl-orb-inner.pearl-orb-lg {
    width: 90px;
    height: 90px;
    animation: pearlPulse 3s ease-in-out infinite, pearlFloat 6s ease-in-out infinite;
}
.pearl-orb-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.15);
    animation: pearlRingPulse 3s ease-in-out infinite;
}
.pearl-orb-ring-outer {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.08);
    animation: pearlRingPulse 3s ease-in-out infinite 0.5s;
}
.pearl-orb-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    animation: pearlGlow 4s ease-in-out infinite;
}

@keyframes pearlPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
@keyframes pearlFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    33% { transform: translateY(-10px) scale(1.04); }
    66% { transform: translateY(5px) scale(1.02); }
}
@keyframes pearlRingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.5; }
}
@keyframes pearlGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ── Page Transitions ───────────────────────────────────────── */
.pearl-page-enter {
    animation: pageSlideIn 0.5s ease-out;
}
.pearl-page-enter-slow {
    animation: pageSlideIn 0.7s ease-out;
}
@keyframes pageSlideIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Stagger Animation for Lists/Grids ──────────────────────── */
.pearl-stagger { opacity: 0; animation: staggerFadeUp 0.45s ease-out forwards; }
.pearl-stagger:nth-child(1)  { animation-delay: 0.05s; }
.pearl-stagger:nth-child(2)  { animation-delay: 0.10s; }
.pearl-stagger:nth-child(3)  { animation-delay: 0.15s; }
.pearl-stagger:nth-child(4)  { animation-delay: 0.20s; }
.pearl-stagger:nth-child(5)  { animation-delay: 0.25s; }
.pearl-stagger:nth-child(6)  { animation-delay: 0.30s; }
.pearl-stagger:nth-child(7)  { animation-delay: 0.35s; }
.pearl-stagger:nth-child(8)  { animation-delay: 0.40s; }
.pearl-stagger:nth-child(9)  { animation-delay: 0.45s; }
.pearl-stagger:nth-child(10) { animation-delay: 0.50s; }
.pearl-stagger:nth-child(11) { animation-delay: 0.55s; }
.pearl-stagger:nth-child(12) { animation-delay: 0.60s; }
.pearl-stagger:nth-child(13) { animation-delay: 0.65s; }

@keyframes staggerFadeUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Glassmorphism Card ─────────────────────────────────────── */
.pearl-card {
    background: var(--bg-elevated);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.pearl-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-gold);
}
.pearl-card:active {
    transform: translateY(-2px);
}

.pearl-card-glow {
    position: relative;
    overflow: hidden;
}
.pearl-card-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212,175,55,0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.pearl-card-glow:hover::before {
    opacity: 1;
}

/* ── Button Styles ──────────────────────────────────────────── */
.pearl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid rgba(184, 138, 24, 0.55);
    border-radius: var(--pill);
    cursor: pointer;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-strong) 100%);
    color: #1f2937;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 50px rgba(17,24,39,0.14), 0 0 0 6px rgba(212,175,55,0.10);
    transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.pearl-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 22px 60px rgba(17,24,39,0.18), 0 0 0 8px rgba(212,175,55,0.14);
}
.pearl-btn:active {
    transform: translateY(0);
    filter: brightness(0.97);
}
.pearl-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pearl-btn:hover::after {
    opacity: 1;
}

.pearl-btn-ghost {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text);
    box-shadow: none;
    font-weight: 600;
}
.pearl-btn-ghost:hover {
    background: var(--gold-soft);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-xs);
}

/* ── Input Styles ───────────────────────────────────────────── */
.pearl-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(17,24,39,0.12);
    background: rgba(255,255,255,0.92);
    color: var(--text);
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform 0.12s ease;
}
.pearl-input::placeholder { color: rgba(107,114,128,0.7); }
.pearl-input:focus {
    outline: none;
    border-color: rgba(212,175,55,0.65);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.15), var(--shadow-soft);
    transform: translateY(-1px);
}

/* ── Navigation Sidebar ─────────────────────────────────────── */
.pearl-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(17, 24, 39, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pearl-nav-overlay.active { opacity: 1; visibility: visible; }

.pearl-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    z-index: 9999;
    background: rgba(255, 253, 245, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-subtle);
    box-shadow: 8px 0 40px rgba(17,24,39,0.10);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.pearl-nav.active { transform: translateX(0); }

.pearl-nav-header {
    padding: 24px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}
.pearl-nav-title {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pearl-nav-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.pearl-nav-close:hover {
    background: var(--gold-soft);
    border-color: var(--border-gold);
    color: var(--gold-strong);
}

.pearl-nav-list {
    list-style: none;
    padding: 12px 10px;
    flex: 1;
}
.pearl-nav-item {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: all var(--transition-fast);
    text-align: left;
    font-family: inherit;
}
.pearl-nav-item:hover {
    background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(212,175,55,0.02) 100%);
    color: var(--gold-strong);
}
.pearl-nav-item.active {
    background: linear-gradient(135deg, rgba(212,175,55,0.14) 0%, rgba(212,175,55,0.05) 100%);
    color: var(--gold-strong);
    font-weight: 700;
}
.pearl-nav-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}
.pearl-nav-item-label { flex: 1; }
.pearl-nav-item-pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--pill);
    background: var(--gold-soft);
    color: var(--gold-strong);
    letter-spacing: 0.03em;
}

.pearl-nav-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.72rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.5;
}

/* ── Top Bar ────────────────────────────────────────────────── */
.pearl-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(251, 250, 246, 0.85);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border-bottom: 1px solid var(--border-subtle);
}

.pearl-menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all var(--transition-fast);
}
.pearl-menu-toggle:hover {
    background: var(--gold-soft);
    border-color: var(--border-gold);
}
.pearl-menu-line {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: all var(--transition-normal);
}

/* ── Widget Grid (Dashboard) ────────────────────────────────── */
.pearl-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 8px 0;
}

.pearl-widget {
    background: var(--bg-elevated);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 16px 20px;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-spring), box-shadow var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.pearl-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-strong));
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.pearl-widget:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(212,175,55,0.15);
    border-color: var(--border-gold);
}
.pearl-widget:hover::before {
    opacity: 1;
}
.pearl-widget:active {
    transform: translateY(-2px) scale(1);
}

.pearl-widget-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft) 0%, rgba(212,175,55,0.06) 100%);
    color: var(--gold-strong);
    font-size: 1.4rem;
    transition: transform var(--transition-spring), background var(--transition-normal);
}
.pearl-widget:hover .pearl-widget-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(212,175,55,0.22) 0%, rgba(212,175,55,0.08) 100%);
}
.pearl-widget-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.pearl-widget-pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--pill);
    background: var(--gold-soft);
    color: var(--gold-strong);
    letter-spacing: 0.03em;
    display: inline-block;
}

/* ── Toast Notifications ────────────────────────────────────── */
.pearl-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pearl-toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    animation: toastSlideIn 0.35s var(--transition-spring);
    max-width: 340px;
}
.pearl-toast.toast-out {
    animation: toastSlideOut 0.3s ease forwards;
}
.pearl-toast.toast-success { border-left: 3px solid var(--success); }
.pearl-toast.toast-error { border-left: 3px solid var(--danger); }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastSlideOut {
    to { opacity: 0; transform: translateX(40px) scale(0.95); }
}

/* ── Progress Bar ───────────────────────────────────────────── */
.pearl-progress {
    width: 100%;
    height: 8px;
    border-radius: var(--pill);
    background: rgba(17,24,39,0.06);
    overflow: hidden;
    position: relative;
}
.pearl-progress-bar {
    height: 100%;
    border-radius: var(--pill);
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-strong));
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.pearl-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: progressShimmer 2s ease-in-out infinite;
}
@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ── Hero Section ───────────────────────────────────────────── */
.pearl-hero {
    text-align: center;
    padding: 40px 20px 30px;
}
.pearl-hero-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 50%, var(--gold) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s ease-in-out infinite;
    margin-top: 20px;
    letter-spacing: 0.04em;
}
.pearl-hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}
@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ── Floating Particles ─────────────────────────────────────── */
.pearl-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.pearl-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.25);
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ── Section Titles ─────────────────────────────────────────── */
.pearl-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pearl-section-title::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(212,175,55,0.4);
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.25);
    border-radius: var(--pill);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.4);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 540px) {
    .pearl-widget-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pearl-widget { padding: 20px 12px 16px; }
    .pearl-widget-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .pearl-hero-title { font-size: 1.6rem; }
}
@media (max-width: 380px) {
    .pearl-widget-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .pearl-splash { transition: opacity 0.1s ease; }
}

/* ── Utility Classes ────────────────────────────────────────── */
.pearl-hidden { display: none !important; }
.pearl-fade-in { animation: pageFadeIn 0.4s ease-out; }
.pearl-text-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pearl-glass {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.pearl-gold-border {
    border: 1px solid var(--border-gold);
}
.pearl-hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.pearl-hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
