:root {
    --navy-950: #04142f;
    --navy-900: #071f45;
    --navy-800: #0b2b5e;
    --navy-700: #123b78;
    --turquoise: #14c7c9;
    --turquoise-soft: #8ce9e5;
    --coral: #ff665f;
    --coral-dark: #e84e50;
    --yellow: #ffd447;
    --cream: #fffaf0;
    --white: #ffffff;
    --ink: #071f45;
    --muted: #9eb0cb;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.14);
    --shadow: 0 22px 60px rgba(1, 13, 35, 0.35);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --max-width: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 88% 8%, rgba(20, 199, 201, 0.12), transparent 22rem),
        radial-gradient(circle at 8% 34%, rgba(255, 102, 95, 0.08), transparent 25rem),
        var(--navy-950);
    color: var(--white);
    font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image: radial-gradient(rgba(255,255,255,.25) .7px, transparent .7px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, black, transparent 48%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.025em; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 999;
    left: 1rem;
    top: -5rem;
    padding: .75rem 1rem;
    background: var(--yellow);
    color: var(--ink);
    border-radius: 10px;
    font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    min-height: 78px;
    padding: .7rem clamp(1rem, 4vw, 4rem);
    border-bottom: 1px solid var(--border);
    background: rgba(4, 20, 47, .88);
    backdrop-filter: blur(20px);
}

.brand { display: inline-flex; align-items: center; gap: .75rem; width: fit-content; font-size: clamp(.9rem, 1.5vw, 1.17rem); font-weight: 900; }
.brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 2px rgba(20,199,201,.38); }
.desktop-nav { display: flex; align-items: center; gap: 2rem; }
.desktop-nav a { position: relative; padding: .65rem 0; color: #d6e2f6; font-weight: 750; }
.desktop-nav a::after { content: ""; position: absolute; height: 3px; left: 50%; right: 50%; bottom: 0; border-radius: 5px; background: var(--turquoise); transition: .2s ease; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { left: 0; right: 0; }
.desktop-nav a.active { color: var(--white); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: .7rem; }
.avatar-link { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--turquoise); color: var(--ink); font-weight: 950; box-shadow: 0 0 0 3px rgba(20,199,201,.18); }
.install-button { border: 1px solid var(--border); background: transparent; padding: .55rem .8rem; border-radius: 999px; cursor: pointer; font-weight: 800; }

.site-main { width: min(100%, calc(var(--max-width) + 8rem)); margin: 0 auto; padding: 1.6rem clamp(1rem, 4vw, 4rem) 5rem; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; max-width: var(--max-width); margin: 0 auto; padding: 2.5rem 4rem 3rem; border-top: 1px solid var(--border); color: var(--muted); }
.site-footer strong { color: white; }
.site-footer p { margin: .4rem 0 0; }
.footer-links { display: flex; gap: 1.5rem; align-items: center; }
.footer-links a:hover { color: var(--turquoise); }
.mobile-nav { display: none; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .78rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .favorite-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.button-primary { background: var(--coral); color: white; box-shadow: 0 10px 26px rgba(255,102,95,.24); }
.button-primary:hover { background: var(--coral-dark); }
.button-ghost { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.26); color: white; }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.button-small { min-height: 40px; padding: .55rem .9rem; border-radius: 12px; }
.button-wide { width: 100%; }
.button-muted { background: rgba(255,255,255,.08); color: var(--muted); cursor: not-allowed; }
.button-muted:hover { transform: none; }

.eyebrow { display: inline-block; margin-bottom: .7rem; color: var(--turquoise); font-size: .77rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }

.hero-shell {
    position: relative;
    isolation: isolate;
    min-height: 410px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.8rem, 4vw, 4rem);
    border: 1px solid rgba(20,199,201,.28);
    border-radius: var(--radius-lg);
    background: linear-gradient(112deg, rgba(11,43,94,.98), rgba(7,31,69,.9));
    box-shadow: var(--shadow);
}
.hero-shell::before { content: ""; position: absolute; z-index: -1; width: 31rem; height: 31rem; right: -7rem; top: -10rem; border-radius: 50%; background: rgba(20,199,201,.15); }
.hero-shell::after { content: "✦"; position: absolute; z-index: -1; right: 8%; top: 14%; color: var(--yellow); font-size: 2rem; transform: rotate(10deg); }
.hero-copy { max-width: 690px; }
.hero-copy h1 { max-width: 760px; margin-bottom: 1rem; font-size: clamp(2.5rem, 6vw, 5rem); }
.hero-copy > p { max-width: 640px; color: #c8d5e8; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.5rem 0; }
.hero-meta span { padding: .45rem .75rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.06); font-size: .87rem; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: min(100%, 390px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; transform: rotate(2deg); box-shadow: 0 24px 80px rgba(1,13,35,.48); }

.catalog-section { padding-top: 3.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.4rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.catalog-heading { align-items: center; }
.search-form { display: flex; width: min(100%, 360px); height: 48px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.055); overflow: hidden; }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 1rem; color: white; background: transparent; }
.search-form input::placeholder { color: var(--muted); }
.search-form button { width: 52px; border: 0; background: transparent; cursor: pointer; color: var(--turquoise); font-size: 1.45rem; }
.catalog-row { margin: 2.2rem 0 3rem; }
.row-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .9rem; }
.row-heading h3 { margin: 0; font-size: 1.35rem; }
.row-heading span { color: var(--muted); font-size: .86rem; }
.card-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 24%); gap: 1rem; overflow-x: auto; padding: .15rem .1rem 1rem; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--turquoise) transparent; }
.activity-card { position: relative; scroll-snap-align: start; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.055); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.activity-card:hover { transform: translateY(-5px); border-color: rgba(20,199,201,.48); background: rgba(255,255,255,.075); }
.card-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-800); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.activity-card:hover .card-image img { transform: scale(1.035); }
.card-body { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .9rem 1rem 1rem; }
.card-body h4 { margin: 0 0 .32rem; font-size: 1.05rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .83rem; }
.favorite-button { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,.04); color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.favorite-button.active { color: var(--coral); border-color: rgba(255,102,95,.55); background: rgba(255,102,95,.12); }
.level-badge, .lock-badge, .complete-badge { position: absolute; top: .7rem; left: .7rem; padding: .42rem .64rem; border-radius: 999px; background: linear-gradient(135deg, #0b74df, #14a9ed); color: white; font-size: .72rem; font-weight: 950; letter-spacing: .02em; box-shadow: 0 5px 16px rgba(1,13,35,.28); backdrop-filter: blur(10px); }
.lock-badge { left: auto; right: .7rem; background: rgba(4,20,47,.9); }
.complete-badge { top: auto; bottom: .7rem; left: auto; right: .7rem; background: rgba(20,199,201,.94); color: var(--ink); }
.card-progress { position: absolute; height: 4px; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.08); }
.card-progress span, .linear-progress span { display: block; height: 100%; border-radius: inherit; background: var(--turquoise); }

.promise-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 4rem 0 1rem; padding: 1.3rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.promise-strip > div { padding: 1.4rem; }
.promise-strip span { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: .9rem; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 950; }
.promise-strip strong { display: block; margin-bottom: .35rem; font-size: 1.12rem; }
.promise-strip p { margin: 0; color: var(--muted); }

.detail-shell { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(360px, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: 2rem 0 4rem; }
.detail-image { position: relative; }
.detail-image::before { content: ""; position: absolute; inset: 8% -5% -6% 8%; z-index: -1; border-radius: 40%; background: rgba(20,199,201,.12); filter: blur(30px); }
.detail-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--muted); font-weight: 800; }
.back-link:hover { color: var(--turquoise); }
.detail-copy h1 { margin-bottom: 1rem; font-size: clamp(3rem, 7vw, 6rem); }
.detail-description { max-width: 650px; color: #c9d6e8; font-size: 1.15rem; }
.detail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: 1.8rem 0; }
.detail-stats div { padding: 1rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.detail-stats strong, .detail-stats span { display: block; }
.detail-stats strong { overflow: hidden; text-overflow: ellipsis; font-size: 1.18rem; }
.detail-stats span { color: var(--muted); font-size: .78rem; }
.locked-panel { padding: 1.2rem; border: 1px solid rgba(255,212,71,.38); border-radius: var(--radius); background: rgba(255,212,71,.07); }
.locked-panel p { color: var(--muted); }
.favorite-text-button { margin-top: .9rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.favorite-text-button.active { color: var(--coral); }
.preview-section { padding: 3rem 0; border-top: 1px solid var(--border); }
.preview-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: stretch; }
.preview-grid figure { margin: 0; padding: 1.4rem; border-radius: var(--radius); background: white; color: var(--ink); }
.preview-grid figure img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.preview-grid figcaption { padding-top: .7rem; text-align: center; font-weight: 850; }
.steps-overview { padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.steps-overview h3 { font-size: 1.6rem; }
.steps-overview ol { display: grid; gap: .7rem; padding-left: 1.5rem; color: #d6e2f6; }
.steps-overview li::marker { color: var(--turquoise); font-weight: 950; }

.tutorial-page { background: var(--navy-900); }
.tutorial-page .site-header { position: relative; grid-template-columns: 1fr auto; }
.tutorial-page .site-main { padding-top: 1rem; padding-bottom: 1rem; }
.tutorial-shell { min-height: calc(100dvh - 110px); display: flex; flex-direction: column; max-width: 1180px; margin: 0 auto; }
.tutorial-topline { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.tutorial-topline h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.5rem); }
.step-counter { color: #d5e2f4; font-weight: 850; }
.progress-dots { display: flex; justify-content: center; gap: .55rem; margin: .8rem 0 .9rem; }
.progress-dots span { width: 13px; height: 13px; border: 2px solid #6680a8; border-radius: 50%; transition: .2s ease; }
.progress-dots span.done { border-color: var(--turquoise); background: var(--turquoise); }
.progress-dots span.current { border-color: var(--coral); background: var(--coral); transform: scale(1.2); }
.tutorial-instruction { margin: 0 0 .9rem; text-align: center; font-size: clamp(1.1rem, 2.5vw, 1.55rem); font-weight: 900; }
.drawing-stage { position: relative; flex: 1; min-height: 300px; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); touch-action: pan-y; }
.drawing-stage > img { width: min(100%, 650px); max-height: 56vh; object-fit: contain; }
.tutorial-hint { padding: .7rem 1rem; text-align: center; color: #d5e2f4; }
.tutorial-controls { display: flex; justify-content: space-between; gap: 1rem; }
.tutorial-controls .button { min-width: 170px; }
.completion-card { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; padding: 2rem; text-align: center; color: var(--ink); background: rgba(255,255,255,.97); }
.completion-card[hidden] { display: none; }
.completion-card > span { color: var(--yellow); font-size: 3rem; animation: pop .5s ease both; }
.completion-card h2 { margin: .4rem 0; font-size: clamp(2rem, 5vw, 3.8rem); }
.completion-card p { max-width: 520px; }
.completion-card img { width: min(50vw, 260px); max-height: 280px; object-fit: contain; margin: .5rem 0 1rem; }
.completion-card div { display: flex; gap: .8rem; }
@keyframes pop { from { transform: scale(.4) rotate(-30deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }

.auth-shell { min-height: calc(100dvh - 150px); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.auth-art { max-width: 520px; justify-self: center; }
.auth-art img { width: min(80vw, 360px); margin: 0 auto 1.5rem; border-radius: 50%; }
.auth-art h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.auth-art p { color: var(--muted); font-size: 1.1rem; }
.auth-card { width: min(100%, 520px); justify-self: center; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255,255,255,.065); box-shadow: var(--shadow); }
.auth-card h2 { font-size: 2rem; }
.auth-card form, .admin-form { display: grid; gap: 1rem; }
label { display: grid; gap: .42rem; color: #dce6f5; font-weight: 750; }
input, textarea, select { width: 100%; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: .8rem .9rem; color: white; background: rgba(4,20,47,.75); }
textarea { resize: vertical; }
label small { color: var(--muted); font-weight: 500; }
.auth-switch { margin: 1.2rem 0 0; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--turquoise); font-weight: 850; }
.forgot-link { justify-self: end; margin-top: -.45rem; color: var(--turquoise); font-size: .86rem; font-weight: 800; }

.page-heading { padding: 3rem 0 2rem; }
.centered-heading { max-width: 780px; margin: 0 auto; text-align: center; }
.page-heading h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.page-heading p { color: var(--muted); font-size: 1.15rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; max-width: 980px; margin: 2rem auto 4rem; }
.price-card { position: relative; padding: clamp(1.5rem, 4vw, 2.7rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.price-card.featured { border-color: rgba(20,199,201,.58); background: linear-gradient(145deg, rgba(20,199,201,.12), rgba(255,255,255,.06)); }
.recommended { position: absolute; right: 1.3rem; top: 1.3rem; padding: .35rem .6rem; border-radius: 999px; background: var(--turquoise); color: var(--ink); font-size: .7rem; font-weight: 950; }
.price-card h2 { font-size: 1.8rem; }
.price { display: flex; align-items: baseline; gap: .3rem; min-height: 70px; margin: 1rem 0; }
.price span { color: var(--muted); }
.price strong { font-size: clamp(2.3rem, 5vw, 4rem); }
.price small { color: var(--muted); }
.price.pending { align-items: center; }
.price.pending strong { font-size: 1.8rem; }
.price-card ul { display: grid; gap: .7rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; color: #d8e3f3; }
.price-card li::before { content: "✓"; margin-right: .6rem; color: var(--turquoise); font-weight: 950; }
.annual-total { min-height: 1.5rem; margin: -.65rem 0 0; color: var(--muted); font-size: .9rem; }
.savings-label { display: inline-flex; margin: .75rem 0 0; padding: .3rem .58rem; border-radius: 999px; background: rgba(20,199,201,.14); color: var(--turquoise); font-size: .78rem; font-weight: 850; }
.pricing-note { max-width: 780px; margin: 0 auto 2rem; padding: 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; color: var(--muted); }
.subscription-active { display: flex; align-items: center; gap: 1rem; max-width: 760px; margin: 0 auto 1.5rem; padding: 1rem 1.3rem; border: 1px solid rgba(20,199,201,.38); border-radius: var(--radius); background: rgba(20,199,201,.09); }
.subscription-active > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--turquoise); color: var(--ink); font-weight: 950; }
.subscription-active p { margin: .2rem 0 0; color: var(--muted); }

.account-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 2.5rem 0; }
.account-heading h1 { margin-bottom: .6rem; font-size: clamp(2.4rem, 5vw, 4.6rem); }
.account-heading p { margin: 0; color: var(--muted); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.account-card { display: flex; gap: 1rem; min-height: 150px; padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.account-card h2 { margin-bottom: .4rem; }
.account-card p { margin-bottom: .3rem; color: #d5e2f5; }
.account-card small { color: var(--muted); }
.account-card a { display: inline-block; margin-top: .6rem; color: var(--turquoise); font-weight: 850; }
.card-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(20,199,201,.14); color: var(--turquoise); }
.status-active { color: var(--turquoise) !important; font-weight: 850; }
.continue-section { padding: 3rem 0; }
.account-activities { display: grid; gap: .8rem; }
.account-activities article { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; align-items: center; padding: .8rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.account-activities img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }
.account-activities h3, .account-activities p { margin-bottom: .35rem; }
.account-activities p { color: var(--muted); font-size: .86rem; }
.linear-progress { max-width: 340px; height: 5px; border-radius: 10px; background: rgba(255,255,255,.1); overflow: hidden; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; margin-bottom: 2rem; }
.stats-grid article { padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stats-grid strong, .stats-grid span { display: block; }
.stats-grid strong { font-size: 2.2rem; }
.stats-grid span { color: var(--muted); }
.admin-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.2rem; align-items: start; }
.admin-panel { padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.form-grid, .upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.checkbox-row label { display: flex; align-items: center; gap: .5rem; }
.checkbox-row input { width: auto; }
.admin-activity-list { display: grid; gap: .7rem; max-height: 760px; overflow: auto; }
.admin-activity-list article { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; padding: .7rem; border-radius: 14px; background: rgba(4,20,47,.45); }
.admin-activity-list img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.admin-activity-list strong, .admin-activity-list small, .admin-activity-list span { display: block; }
.admin-activity-list small, .admin-activity-list span { color: var(--muted); }
.admin-activity-list button { width: 34px; height: 34px; border: 1px solid rgba(255,102,95,.35); border-radius: 50%; background: rgba(255,102,95,.1); color: var(--coral); cursor: pointer; }

.empty-state, .not-found { padding: clamp(2rem, 5vw, 5rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.empty-state p, .not-found p { color: var(--muted); }
.not-found { max-width: 760px; margin: 4rem auto; }
.not-found img { width: 180px; height: 220px; object-fit: contain; margin: 0 auto 1rem; }
.not-found h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }

.flash-stack { position: fixed; z-index: 100; top: 90px; right: 1rem; display: grid; gap: .5rem; width: min(92vw, 420px); }
.flash { padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: rgba(7,31,69,.96); box-shadow: var(--shadow); animation: slide-in .25s ease both; }
.flash-success { border-color: rgba(20,199,201,.55); }
.flash-error { border-color: rgba(255,102,95,.65); }
.flash-info { border-color: rgba(255,212,71,.5); }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } }
.toast { position: fixed; z-index: 110; left: 50%; bottom: 1.2rem; transform: translate(-50%, 150%); max-width: 90vw; padding: .8rem 1rem; border-radius: 999px; background: white; color: var(--ink); font-weight: 850; box-shadow: var(--shadow); transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1050px) {
    .site-header { grid-template-columns: 1fr auto; }
    .desktop-nav { display: none; }
    .hero-shell { grid-template-columns: 1fr .65fr; min-height: 370px; }
    .card-scroller { grid-auto-columns: minmax(250px, 38%); }
    .admin-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .site-header { min-height: 66px; padding: .55rem 1rem; }
    .brand span { font-size: .82rem; max-width: 175px; line-height: 1.05; }
    .brand img { width: 40px; height: 40px; }
    .header-actions .button-ghost { display: none; }
    .site-main { padding: 1rem 1rem 3rem; }
    .site-footer { display: none; }
    .mobile-nav { position: fixed; z-index: 70; left: .7rem; right: .7rem; bottom: max(.6rem, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); min-height: 62px; padding: .3rem; border: 1px solid var(--border); border-radius: 20px; background: rgba(4,20,47,.95); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
    .mobile-nav a { display: grid; justify-items: center; align-content: center; gap: .1rem; border-radius: 15px; color: var(--muted); font-size: .68rem; font-weight: 850; }
    .mobile-nav a span { font-size: 1rem; }
    .mobile-nav a.active { background: rgba(20,199,201,.14); color: var(--turquoise); }
    .hero-shell { min-height: auto; grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
    .hero-copy h1 { font-size: 2.65rem; }
    .hero-art { grid-row: 1; }
    .hero-art img { width: min(66vw, 270px); }
    .hero-actions .button { flex: 1 1 150px; }
    .catalog-section { padding-top: 2.3rem; }
    .catalog-heading { align-items: stretch; flex-direction: column; gap: 1rem; }
    .search-form { width: 100%; }
    .card-scroller { margin-right: -1rem; padding-right: 1rem; grid-auto-columns: minmax(238px, 78%); }
    .promise-strip { grid-template-columns: 1fr; }
    .promise-strip > div { padding: .8rem; }
    .detail-shell { grid-template-columns: 1fr; gap: 2rem; padding-top: .5rem; }
    .detail-image { width: min(100%, 460px); margin: 0 auto; }
    .detail-copy h1 { font-size: 3.3rem; }
    .detail-stats { grid-template-columns: repeat(2, 1fr); }
    .detail-stats div { padding: .8rem .6rem; }
    .detail-stats strong { font-size: .96rem; }
    .preview-grid { grid-template-columns: 1fr; }
    .tutorial-page { padding-bottom: 0; }
    .tutorial-page .site-header { min-height: 58px; }
    .tutorial-page .brand span { display: none; }
    .tutorial-page .site-main { padding: .55rem .7rem calc(.7rem + env(safe-area-inset-bottom)); }
    .tutorial-shell { min-height: calc(100dvh - 72px - env(safe-area-inset-bottom)); }
    .tutorial-topline .eyebrow { display: none; }
    .tutorial-topline h1 { font-size: 1.25rem; }
    .step-counter { font-size: .8rem; }
    .progress-dots { gap: .38rem; margin: .55rem 0; }
    .progress-dots span { width: 10px; height: 10px; border-width: 1.5px; }
    .tutorial-instruction { min-height: 42px; margin-bottom: .5rem; font-size: 1.02rem; }
    .drawing-stage { min-height: 0; border-radius: 22px; }
    .drawing-stage > img { width: 100%; max-height: 51vh; }
    .tutorial-hint { padding: .4rem; font-size: .78rem; }
    .tutorial-controls { position: sticky; bottom: 0; padding-top: .3rem; background: var(--navy-900); }
    .tutorial-controls .button { flex: 1; min-width: 0; min-height: 51px; padding: .65rem; }
    .completion-card { padding: 1rem; }
    .completion-card img { width: min(55vw, 210px); max-height: 210px; }
    .completion-card div { width: 100%; }
    .completion-card .button { flex: 1; padding: .55rem; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-card { margin: 2rem auto; }
    .pricing-grid, .account-grid { grid-template-columns: 1fr; }
    .account-heading { align-items: flex-start; flex-direction: column; }
    .account-activities article { grid-template-columns: 68px 1fr; }
    .account-activities img { width: 68px; height: 68px; }
    .account-activities .button { grid-column: 1 / -1; }
    .form-grid, .upload-grid { grid-template-columns: 1fr; }
    .flash-stack { top: 74px; }
}

@media (max-width: 420px) {
    .brand span { max-width: 135px; }
    .install-button { display: none !important; }
    .hero-copy h1 { font-size: 2.25rem; }
    .hero-meta span { font-size: .75rem; }
    .card-scroller { grid-auto-columns: 86%; }
    .detail-stats { gap: .4rem; }
    .detail-stats span { font-size: .68rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid strong { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
