/* My Account viral dashboard — layout only; brand colors via var() from main.css */
.acct-page { min-height: 100vh; background: var(--background, #f8f9fb); color: var(--foreground, #1f2430); position: relative; overflow-x: hidden; }
.acct-shell { max-width: 560px; margin: 0 auto; padding: 1rem 1rem 3.5rem; }
.acct-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; gap: 0.5rem; }
.acct-topbar-brand { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.acct-kicker { margin: 0; color: var(--muted-foreground, #6b7280); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.acct-member-email { font-size: 0.75rem; color: var(--muted-foreground, #6b7280); word-break: break-all; }
.acct-ref-code { font-size: 0.7rem; color: var(--muted-foreground, #6b7280); }
.acct-ref-code strong { color: var(--primary, #1e3a8a); letter-spacing: 0.04em; }
.acct-logout { font-size: 0.75rem; color: var(--muted-foreground, #6b7280); text-decoration: none; font-weight: 600; white-space: nowrap; }
.acct-logout:hover { color: var(--primary, #1e3a8a); text-decoration: underline; }
.acct-hero { background: linear-gradient(155deg, color-mix(in srgb, var(--primary, #1e3a8a) 94%, black), var(--primary, #1e3a8a)); color: #fff; border-radius: 20px; padding: 1.4rem 1.2rem 1.25rem; margin-bottom: 0.75rem; box-shadow: 0 10px 30px color-mix(in srgb, var(--primary, #1e3a8a) 35%, transparent); position: relative; overflow: hidden; }
.acct-hero-rank-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; }
.acct-hero-rank { display: flex; align-items: center; gap: 0.6rem; }
.acct-hero-emoji { font-size: 2.1rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }
.acct-hero-rank-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; font-weight: 700; }
.acct-hero-rank-name { font-size: 1.15rem; font-weight: 800; }
.acct-hero-xp { font-size: 0.75rem; opacity: 0.85; text-align: right; }
.acct-hero-goal { font-size: 1.02rem; font-weight: 700; margin: 0 0 0.6rem; line-height: 1.35; }
.acct-hero-goal em { font-style: normal; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); text-underline-offset: 3px; }
.acct-hero-progress { height: 14px; background: rgba(255,255,255,0.22); border-radius: 999px; overflow: hidden; margin-bottom: 0.4rem; position: relative; }
.acct-hero-progress-bar { height: 100%; background: linear-gradient(90deg, #fff, #fde68a); border-radius: 999px; width: 0%; transition: width 0.7s cubic-bezier(.34,1.56,.64,1); }
.acct-hero-progress-labels { display: flex; justify-content: space-between; font-size: 0.7rem; opacity: 0.85; }
.acct-card { background: var(--card, #fff); border: 1px solid var(--border, #e6e8ee); border-radius: 16px; padding: 1.1rem; margin-bottom: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.acct-card h2 { margin: 0 0 0.6rem; font-size: 1rem; font-family: var(--font-serif, Georgia, serif); font-weight: 700; color: var(--foreground, #1f2430); display: flex; align-items: center; gap: 0.4rem; }
.acct-card--share { border: 1.5px solid color-mix(in srgb, var(--primary, #1e3a8a) 30%, var(--border, #e6e8ee)); }
.acct-copy-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.acct-copy-row input { flex: 1; min-width: 12rem; font-weight: 600; }
.acct-share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.75rem; }
@media (min-width: 400px) { .acct-share-grid { grid-template-columns: repeat(3, 1fr); } }
.acct-share-tap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.6rem 0.25rem; border-radius: 12px; border: 1px solid var(--border, #e6e8ee); background: var(--muted, #f1f3f7); color: var(--foreground, #1f2430); text-decoration: none; font-size: 0.68rem; font-weight: 700; }
.acct-share-tap:active { transform: scale(0.96); }
.acct-share-tap .em { font-size: 1.25rem; }
.acct-qr-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--border, #e6e8ee); }
.acct-qr-row img { width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--border, #e6e8ee); }
.acct-qr-hint { font-size: 0.75rem; color: var(--muted-foreground, #6b7280); }
.acct-levels-row { display: flex; justify-content: space-between; margin: 0.2rem 0 0.5rem; }
.acct-level-node { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; flex: 1; }
.acct-level-emoji { width: 2.1rem; height: 2.1rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; background: var(--muted, #f1f3f7); border: 2px solid var(--border, #e6e8ee); transition: all 0.3s ease; }
.acct-level-node.is-reached .acct-level-emoji { background: color-mix(in srgb, var(--primary, #1e3a8a) 15%, var(--card, #fff)); border-color: var(--primary, #1e3a8a); }
.acct-level-node.is-current .acct-level-emoji { animation: acctPulse 1.6s ease-in-out infinite; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary, #1e3a8a) 18%, transparent); }
.acct-level-name { font-size: 0.62rem; color: var(--muted-foreground, #6b7280); font-weight: 700; text-align: center; }
@keyframes acctPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.acct-achievements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.acct-achv { border: 1px solid var(--border, #e6e8ee); border-radius: 14px; padding: 0.75rem 0.5rem; text-align: center; background: var(--muted, #f1f3f7); position: relative; }
.acct-achv.is-unlocked { background: color-mix(in srgb, #ca8a04 12%, var(--card, #fff)); border-color: color-mix(in srgb, #ca8a04 45%, var(--border, #e6e8ee)); }
.acct-achv.is-locked { opacity: 0.55; }
.acct-achv .em { font-size: 1.4rem; display: block; margin-bottom: 0.25rem; }
.acct-achv .lbl { font-size: 0.65rem; font-weight: 700; }
.acct-achv .lock-pin { position: absolute; top: 6px; right: 8px; font-size: 0.7rem; }
.acct-mystery { display: flex; align-items: center; gap: 0.75rem; background: linear-gradient(120deg, #fff, var(--muted, #f1f3f7)); border: 1.5px dashed color-mix(in srgb, #ca8a04 60%, var(--border, #e6e8ee)); border-radius: 14px; padding: 0.9rem; }
.acct-mystery .em { font-size: 1.8rem; }
.acct-mystery strong { display: block; font-size: 0.9rem; }
.acct-mystery span { font-size: 0.78rem; color: var(--muted-foreground, #6b7280); }
.acct-mission { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border, #e6e8ee); }
.acct-mission:last-child { border-bottom: none; }
.acct-mission-check { width: 1.6rem; height: 1.6rem; border-radius: 999px; border: 2px solid var(--border, #e6e8ee); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.acct-mission-check.is-done { background: var(--accent-green, #16a34a); border-color: var(--accent-green, #16a34a); color: #fff; }
.acct-mission-body { flex: 1; min-width: 0; }
.acct-mission-title { font-size: 0.85rem; font-weight: 700; }
.acct-mission-sub { font-size: 0.72rem; color: var(--muted-foreground, #6b7280); }
.acct-mission-reward { font-size: 0.72rem; font-weight: 700; color: var(--accent-orange, #ea580c); white-space: nowrap; }
.acct-leader-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; font-size: 0.83rem; }
.acct-leader-row .pos { width: 1.6rem; font-weight: 800; color: var(--muted-foreground, #6b7280); }
.acct-leader-row .name { flex: 1; }
.acct-leader-row .pts { font-weight: 700; color: var(--primary, #1e3a8a); }
.acct-leader-row.is-you { background: color-mix(in srgb, var(--primary, #1e3a8a) 8%, transparent); border-radius: 10px; padding-left: 0.5rem; margin: 0 -0.5rem; }
.acct-percentile { font-size: 0.8rem; color: var(--muted-foreground, #6b7280); margin-top: 0.5rem; text-align: center; background: var(--muted, #f1f3f7); border-radius: 10px; padding: 0.5rem; }
.acct-activity-row { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0; font-size: 0.8rem; color: var(--foreground, #1f2430); }
.acct-activity-row .em { font-size: 1rem; }
.acct-activity-row .time { margin-left: auto; font-size: 0.7rem; color: var(--muted-foreground, #6b7280); white-space: nowrap; }
.acct-streak-row { display: flex; align-items: center; gap: 0.75rem; }
.acct-streak-flame { font-size: 1.6rem; }
.acct-streak-count { font-size: 1.15rem; font-weight: 800; }
.acct-streak-sub { font-size: 0.78rem; color: var(--muted-foreground, #6b7280); }
.acct-streak-days { display: flex; gap: 0.3rem; margin-top: 0.5rem; }
.acct-streak-day { width: 1.5rem; height: 1.5rem; border-radius: 6px; background: var(--muted, #f1f3f7); display: flex; align-items: center; justify-content: center; font-size: 0.68rem; border: 1px solid var(--border, #e6e8ee); }
.acct-streak-day.is-done { background: color-mix(in srgb, var(--accent-orange, #ea580c) 20%, var(--card, #fff)); border-color: var(--accent-orange, #ea580c); }
.acct-money-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.acct-money-stat { background: var(--muted, #f1f3f7); border-radius: 12px; padding: 0.7rem; }
.acct-money-stat p { margin: 0 0 0.15rem; color: var(--muted-foreground, #6b7280); font-size: 0.7rem; }
.acct-money-stat strong { font-size: 1.05rem; font-weight: 800; }
.acct-locked { border: 1px dashed var(--border, #e6e8ee); border-radius: 12px; padding: 0.8rem; text-align: center; color: var(--muted-foreground, #6b7280); font-size: 0.85rem; }
.acct-report-note { text-align: center; color: var(--muted-foreground, #6b7280); font-size: 0.78rem; margin: 0.4rem 0 0; }
.acct-payout-summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 0.2rem 0; }
.acct-payout-summary h2 { margin: 0; font-size: 0.85rem; color: var(--muted-foreground, #6b7280); font-weight: 700; }
.acct-payout-summary .chev { color: var(--muted-foreground, #6b7280); font-size: 0.8rem; transition: transform 0.2s ease; }
.acct-payout-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.acct-payout-body.is-open { max-height: 400px; }
.acct-no-min { color: var(--accent-green, #16a34a); font-weight: 600; font-size: 0.8rem; margin: 0.6rem 0 0.6rem; }
.acct-form label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.6rem; }
.acct-form label input { width: 100%; margin-top: 0.25rem; }
.acct-muted { color: var(--muted-foreground, #6b7280); font-size: 0.82rem; }
.acct-success { background: color-mix(in srgb, var(--accent-green, #16a34a) 12%, var(--card, #fff)); color: #047857; padding: 0.6rem 0.75rem; border-radius: 8px; font-size: 0.85rem; margin-bottom: 0.8rem; border: 1px solid color-mix(in srgb, var(--accent-green, #16a34a) 35%, transparent); }
.acct-hint { background: color-mix(in srgb, var(--primary, #1e3a8a) 8%, var(--card, #fff)); border: 1px solid color-mix(in srgb, var(--primary, #1e3a8a) 20%, var(--border, #e6e8ee)); border-radius: 12px; padding: 0.875rem; font-size: 0.9rem; }
#acctConfettiCanvas { position: fixed; inset: 0; pointer-events: none; z-index: 999; width: 100vw; height: 100vh; }
.acct-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(150%); background: var(--foreground, #1f2430); color: #fff; padding: 0.85rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; box-shadow: 0 8px 24px rgba(0,0,0,0.25); z-index: 1000; transition: transform 0.45s cubic-bezier(.34,1.56,.64,1); max-width: calc(100vw - 2rem); text-align: center; }
.acct-toast.is-shown { transform: translateX(-50%) translateY(0); }
