/* Danube Doctors — coming-soon landing
   Skyline background + gold-shimmer DDD mark + wordmark. */

/* Self-hosted fonts (DSGVO-clean — no Google CDN) */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/cormorant-garamond-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gold:      #C4A265;
    --gold-soft: #d4b06a;
    --ink:       #0d0d0d;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body { height: 100%; }
body { overflow: hidden; }

/* ---------- hero ---------- */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('../img/dd-bg.jpg');
    background-image: image-set(
        url('../img/dd-bg.webp') type('image/webp') 1x,
        url('../img/dd-bg.jpg')  type('image/jpeg') 1x);
    background-image: -webkit-image-set(
        url('../img/dd-bg.webp') 1x,
        url('../img/dd-bg.jpg')  1x);
    background-size: cover;
    background-position: center;
    /* subtle blur softens the skyline so the gold logo + text reads as the
       focal point. Scale is bumped slightly to hide the soft blur edges. */
    filter: blur(6px);
    -webkit-filter: blur(6px);
    animation: dd-drift 28s ease-in-out infinite alternate;
}

@keyframes dd-drift {
    from { transform: scale(1.08) translate3d(0, 0, 0); }
    to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.hero__veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 55%,
            rgba(0,0,0,0.05) 0%,
            rgba(0,0,0,0.35) 45%,
            rgba(0,0,0,0.65) 90%),
        linear-gradient(180deg,
            rgba(0,0,0,0.30) 0%,
            rgba(0,0,0,0.10) 35%,
            rgba(0,0,0,0.40) 100%);
}

.hero__content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem 1.5rem 4rem;
    text-align: center;
    animation: dd-fade-up 1.2s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes dd-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- DDD mark (gold-shimmer mask) ---------- */

.ddd-mark {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    height: clamp(110px, 18vh, 200px);
    aspect-ratio: 600 / 458;
}
.ddd-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        #AA771C 0%,
        #C6A44E 15%,
        #FCF6BA 30%,
        #D4B060 45%,
        #B38728 60%,
        #FCF6BA 75%,
        #AA771C 100%);
    background-size: 300% auto;
    -webkit-mask-image: url('../img/ddd-mark.png');
            mask-image: url('../img/ddd-mark.png');
    -webkit-mask-size: contain;
            mask-size: contain;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    animation: gold-shimmer 4.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(170, 119, 28, 0.45));
}

/* ---------- wordmark ---------- */

.ddd-wordmark {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.6rem, 4vw, 3rem);
    letter-spacing: .22em;
    text-transform: uppercase;
    line-height: 1;
}

.gold-shimmer-text {
    background: linear-gradient(135deg,
        #AA771C 0%,
        #C6A44E 20%,
        #FCF6BA 40%,
        #D4B060 60%,
        #B38728 80%,
        #AA771C 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
    animation: gold-shimmer 4.5s ease-in-out infinite;
    text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}

@keyframes gold-shimmer {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 100% center; }
}

/* ---------- coming-soon pill ---------- */

.hero__cta {
    display: inline-flex;
    align-items: center;
    margin-top: .5rem;
    padding: .7rem 1.6rem;
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 999px;
    color: #fff;
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: rgba(0,0,0,0.12);
}

/* ---------- responsive ---------- */

@media (max-width: 600px) {
    .hero__content {
        gap: 1.1rem;
        padding: 2rem 1rem 3rem;
    }
    .ddd-mark {
        height: clamp(82px, 14vh, 130px);
    }
    .ddd-wordmark {
        font-size: clamp(1.15rem, 5vw, 1.7rem);
        letter-spacing: .2em;
    }
    .hero__cta {
        padding: .55rem 1.2rem;
        font-size: .68rem;
        letter-spacing: .28em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__bg { animation: none; }
    .hero__content { animation: none; }
    .ddd-mark::after,
    .gold-shimmer-text { animation: none; }
}

/* ---------- hero footer (Impressum / Datenschutz links) ---------- */

.hero-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.4rem;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .9rem;
    font-family: var(--sans);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.hero-footer a {
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: color .25s ease;
}

.hero-footer a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .35s ease;
}

.hero-footer a:hover { color: #fff; }
.hero-footer a:hover::after { transform: scaleX(1); }

@media (max-width: 600px) {
    .hero-footer {
        bottom: 1rem;
        font-size: .62rem;
        letter-spacing: .18em;
        gap: .6rem;
    }
}

/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz)
   Dark theme with gold accents — distinct from omar-hamid.com.
   ============================================================ */

body.is-legal {
    overflow: auto;
    background:
        radial-gradient(ellipse 60% 40% at 18% 0%, rgba(196, 162, 101, 0.08), transparent 60%),
        radial-gradient(ellipse 50% 35% at 82% 12%, rgba(196, 162, 101, 0.06), transparent 60%),
        linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 40%, #060606 100%);
    color: #e8e8e8;
    min-height: 100vh;
}

.legal-shell {
    width: min(calc(100% - 36px), 920px);
    margin: 0 auto;
}

/* ---- legal header ---- */

.legal-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0;
    background: rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    border-bottom: 1px solid rgba(196, 162, 101, 0.12);
}

.legal-header__bar {
    width: min(calc(100% - 36px), 920px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
}

.legal-header__brand {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    text-decoration: none;
    color: #fff;
}

.legal-header__mark {
    position: relative;
    display: inline-block;
    width: 32px;
    height: calc(32px * 458 / 600);
    flex: 0 0 auto;
}

.legal-header__mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        #AA771C 0%,
        #C6A44E 25%,
        #FCF6BA 50%,
        #B38728 75%,
        #AA771C 100%);
    -webkit-mask-image: url('../img/ddd-mark.png');
            mask-image: url('../img/ddd-mark.png');
    -webkit-mask-size: contain;
            mask-size: contain;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
}

.legal-header__wordmark {
    font-family: var(--serif);
    font-weight: 500;
    font-size: .92rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #f0e6cf;
}

.legal-header__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--sans);
    font-size: .68rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(232, 232, 232, 0.6);
}

.legal-header__nav a {
    color: inherit;
    text-decoration: none;
    position: relative;
    padding-bottom: .15rem;
    transition: color .25s ease;
}

.legal-header__nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.legal-header__nav a:hover {
    color: #fff;
}

.legal-header__nav a:hover::after,
.legal-header__nav a.is-active::after {
    transform: scaleX(1);
}

/* ---- legal hero ---- */

.legal-hero {
    padding: clamp(4rem, 10vh, 7rem) 0 clamp(2.5rem, 6vh, 4rem);
    text-align: center;
}

.legal-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    font-family: var(--sans);
    font-size: .7rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--gold-soft);
    opacity: .85;
}

.legal-hero__eyebrow::before,
.legal-hero__eyebrow::after {
    content: '';
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.legal-hero__title {
    margin: 1.4rem 0 0;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 4rem);
    letter-spacing: .04em;
    line-height: 1;
    background: linear-gradient(135deg,
        #AA771C 0%,
        #C6A44E 20%,
        #FCF6BA 45%,
        #D4B060 65%,
        #B38728 85%,
        #AA771C 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;
    animation: gold-shimmer 6s ease-in-out infinite;
}

.legal-hero__lede {
    margin: 1.4rem auto 0;
    max-width: 38rem;
    font-size: .95rem;
    line-height: 1.85;
    color: rgba(232, 232, 232, 0.7);
}

.legal-hero__divider {
    margin: 2rem auto 0;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .6;
}

/* ---- legal content cards ---- */

.legal-content {
    padding: 0 0 clamp(4rem, 10vh, 6rem);
}

.legal-card {
    position: relative;
    margin-top: 1.25rem;
    padding: 1.9rem 1.9rem 1.7rem;
    border: 1px solid rgba(196, 162, 101, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008)),
        rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 1px 0 rgba(196, 162, 101, 0.06) inset,
        0 28px 60px -30px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.9rem;
    right: 1.9rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .4;
}

.legal-card__title {
    margin: 0 0 .35rem;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.5rem, 2.4vw, 1.95rem);
    letter-spacing: .02em;
    color: #f4ebd4;
}

.legal-card__intro {
    margin: .4rem 0 0;
    font-size: .92rem;
    line-height: 1.8;
    color: rgba(232, 232, 232, 0.7);
}

.legal-fields {
    display: grid;
    gap: 0;
    margin-top: 1.4rem;
}

.legal-field {
    display: grid;
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(196, 162, 101, 0.1);
}

.legal-field:first-child {
    padding-top: 0;
    border-top: 0;
}

.legal-field:last-child {
    padding-bottom: 0;
}

.legal-field__label {
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-soft);
    opacity: .85;
}

.legal-field__value {
    font-size: .92rem;
    line-height: 1.75;
    color: rgba(232, 232, 232, 0.82);
}

.legal-field__value strong {
    color: #f4ebd4;
    font-weight: 500;
}

.legal-field__value a {
    color: var(--gold-soft);
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 162, 101, 0.3);
    transition: border-color .25s ease, color .25s ease;
}

.legal-field__value a:hover {
    color: #f4ebd4;
    border-bottom-color: var(--gold);
}

.legal-field__value code,
.legal-field__code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: .82em;
    padding: .12em .42em;
    border: 1px solid rgba(196, 162, 101, 0.2);
    border-radius: 4px;
    background: rgba(196, 162, 101, 0.06);
    color: var(--gold-soft);
}

/* ---- legal footer ---- */

.legal-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid rgba(196, 162, 101, 0.1);
}

.legal-footer__bar {
    width: min(calc(100% - 36px), 920px);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--sans);
    font-size: .76rem;
    letter-spacing: .12em;
    color: rgba(232, 232, 232, 0.42);
}

.legal-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .66rem;
}

.legal-footer__links a {
    color: rgba(232, 232, 232, 0.6);
    text-decoration: none;
    transition: color .25s ease;
}

.legal-footer__links a:hover {
    color: var(--gold-soft);
}

@media (max-width: 700px) {
    .legal-header__nav {
        gap: 1rem;
        font-size: .62rem;
        letter-spacing: .18em;
    }
    .legal-header__wordmark {
        display: none;
    }
    .legal-card {
        padding: 1.4rem 1.3rem 1.3rem;
    }
    .legal-card::before {
        left: 1.3rem;
        right: 1.3rem;
    }
    .legal-field {
        grid-template-columns: 1fr;
        gap: .35rem;
        padding: 1rem 0;
    }
    .legal-footer__bar {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================================
   Admin / Analytics
   ============================================================= */

body.is-admin {
    overflow: auto;
    background:
        radial-gradient(ellipse 60% 40% at 18% 0%, rgba(196, 162, 101, 0.06), transparent 60%),
        radial-gradient(ellipse 50% 35% at 82% 12%, rgba(196, 162, 101, 0.04), transparent 60%),
        linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 40%, #060606 100%);
    color: #e8e8e8;
    min-height: 100vh;
}

/* ---- header chip + nav modifiers ---- */

.admin-header__chip {
    display: inline-block;
    margin-left: .55rem;
    padding: .12rem .55rem .14rem;
    font-family: var(--sans);
    font-size: .56rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(196, 162, 101, 0.35);
    border-radius: 999px;
    vertical-align: middle;
}

.admin-header__nav {
    gap: 1.4rem;
}

.admin-nav__logout {
    color: rgba(232, 232, 232, 0.45) !important;
    font-size: .62rem;
    letter-spacing: .22em;
}

.admin-nav__logout:hover {
    color: var(--gold-soft) !important;
}

/* ---- main shell ---- */

.admin-main {
    padding: clamp(2rem, 5vh, 3.5rem) 0 clamp(2rem, 5vh, 4rem);
}

.admin-content {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.admin-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(2rem, 6vh, 3.5rem) 0 1rem;
}

.admin-hero .legal-hero__eyebrow {
    margin-bottom: .8rem;
}

.admin-hero .legal-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0;
    text-align: left;
}

.admin-hero .legal-hero__lede {
    margin: .4rem 0 0;
    text-align: left;
    font-size: .92rem;
    color: rgba(232, 232, 232, 0.6);
}

/* ---- range picker ---- */

.admin-range {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem;
    background: rgba(20, 20, 20, 0.55);
    border: 1px solid rgba(196, 162, 101, 0.18);
    border-radius: 999px;
}

.admin-range a {
    padding: .42rem .95rem;
    font-family: var(--sans);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(232, 232, 232, 0.55);
    text-decoration: none;
    border-radius: 999px;
    transition: color .25s ease, background .25s ease;
}

.admin-range a:hover {
    color: #fff;
}

.admin-range a.is-active {
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
}

/* ---- panels (re-uses .legal-card) ---- */

.admin-panel {
    padding: 1.4rem 1.5rem;
}

.admin-panel .legal-card__title {
    margin: 0 0 1rem;
    font-size: .74rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(232, 232, 232, 0.6);
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
}

@media (max-width: 800px) {
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
}

.admin-empty {
    margin: 0;
    padding: 1rem 0;
    color: rgba(232, 232, 232, 0.4);
    font-size: .88rem;
    font-style: italic;
}

/* ---- KPI cards ---- */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.kpi {
    position: relative;
    padding: 1.2rem 1.3rem 1.1rem;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.85) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid rgba(196, 162, 101, 0.14);
    border-radius: 14px;
    overflow: hidden;
}

.kpi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.3rem;
    right: 1.3rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 162, 101, 0.45), transparent);
}

.kpi__label {
    font-family: var(--sans);
    font-size: .62rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(232, 232, 232, 0.55);
    margin: 0 0 .65rem;
}

.kpi__value {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 2.1rem;
    line-height: 1;
    color: #f4ecd6;
    letter-spacing: .01em;
}

.kpi__period {
    margin-top: .55rem;
    font-family: var(--sans);
    font-size: .72rem;
    color: rgba(232, 232, 232, 0.45);
}

.kpi__arrow {
    display: inline-block;
    margin-right: .25rem;
    font-size: .78rem;
    color: var(--gold);
}

.kpi__arrow.is-down {
    color: #c08383;
}

/* ---- bar chart (12 months) ---- */

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.bar {
    display: grid;
    grid-template-columns: 4.5rem 1fr 4rem;
    align-items: center;
    gap: .8rem;
}

.bar__label {
    font-family: var(--sans);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(232, 232, 232, 0.55);
}

.bar__fill {
    position: relative;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(196, 162, 101, 0.55), rgba(212, 176, 106, 0.85));
    box-shadow: 0 0 24px rgba(196, 162, 101, 0.18);
    min-width: 2px;
}

.bar__fill.is-empty {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.bar__value {
    font-family: var(--sans);
    font-variant-numeric: tabular-nums;
    font-size: .82rem;
    color: rgba(232, 232, 232, 0.78);
    text-align: right;
}

/* ---- sparkline (30 daily bars) ---- */

.sparkline {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.sparkline__bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 64px;
    padding: 4px 0;
}

.spark__bar {
    flex: 1 1 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    border-radius: 2px 2px 0 0;
    background: rgba(255, 255, 255, 0.05);
}

.spark__fill {
    width: 100%;
    background: linear-gradient(180deg, rgba(212, 176, 106, 0.9), rgba(196, 162, 101, 0.55));
    border-radius: 2px 2px 0 0;
    min-height: 1px;
}

.sparkline__legend {
    display: flex;
    justify-content: space-between;
    font-family: var(--sans);
    font-size: .66rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(232, 232, 232, 0.4);
}

/* ---- share lists (devices / browsers / countries) ---- */

.share-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.share-list__row {
    display: grid;
    grid-template-columns: 7rem 1fr 4rem;
    align-items: center;
    gap: .8rem;
}

.share-list__label {
    font-family: var(--sans);
    font-size: .82rem;
    color: #e0e0e0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-list__bar {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: rgba(196, 162, 101, 0.6);
    min-width: 2px;
}

.share-list__value {
    font-family: var(--sans);
    font-variant-numeric: tabular-nums;
    font-size: .78rem;
    color: rgba(232, 232, 232, 0.55);
    text-align: right;
}

/* ---- tables ---- */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sans);
    font-size: .82rem;
}

.admin-table thead th {
    padding: .55rem .6rem;
    border-bottom: 1px solid rgba(196, 162, 101, 0.18);
    font-weight: 500;
    font-size: .62rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(232, 232, 232, 0.5);
    text-align: left;
}

.admin-table tbody td {
    padding: .65rem .6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #d8d8d8;
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover td {
    background: rgba(196, 162, 101, 0.04);
}

.admin-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.admin-table thead .num {
    text-align: right;
}

.admin-cell--ellipsis {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-table--wide {
    table-layout: fixed;
}

@media (max-width: 800px) {
    .admin-table {
        font-size: .76rem;
    }
    .admin-table thead th,
    .admin-table tbody td {
        padding: .45rem .35rem;
    }
}

/* ---- admin footer ---- */

.admin-footer {
    margin-top: clamp(2rem, 5vh, 3.5rem);
}

.admin-footer__meta {
    color: rgba(232, 232, 232, 0.4);
    font-family: var(--sans);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* =============================================================
   Admin auth (setup + login)
   ============================================================= */

body.is-admin.admin-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.admin-auth__shell {
    width: 100%;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-auth__card {
    position: relative;
    width: 100%;
    padding: 2.4rem 2rem 2rem;
    background:
        linear-gradient(180deg, rgba(20, 20, 20, 0.9) 0%, rgba(8, 8, 8, 0.92) 100%);
    border: 1px solid rgba(196, 162, 101, 0.18);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-auth__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 162, 101, 0.55), transparent);
}

.admin-auth__mark {
    width: 38px;
    height: calc(38px * 458 / 600);
    display: block;
    margin: 0 auto 1.1rem;
}

.admin-auth__title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.8rem;
    text-align: center;
    margin: 0 0 .4rem;
    color: #f4ecd6;
    letter-spacing: .04em;
}

.admin-auth__lede {
    text-align: center;
    color: rgba(232, 232, 232, 0.55);
    font-size: .9rem;
    margin: 0 0 1.5rem;
    line-height: 1.55;
}

.admin-auth__error {
    margin: 0 0 1rem;
    padding: .7rem .9rem;
    background: rgba(192, 95, 95, 0.08);
    border: 1px solid rgba(192, 95, 95, 0.35);
    border-radius: 8px;
    color: #e7b7b7;
    font-size: .82rem;
    text-align: center;
}

.admin-auth__field {
    display: block;
    margin-bottom: .9rem;
}

.admin-auth__field span {
    display: block;
    font-family: var(--sans);
    font-size: .62rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(232, 232, 232, 0.55);
    margin-bottom: .35rem;
}

.admin-auth__field input {
    width: 100%;
    padding: .75rem .9rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(196, 162, 101, 0.22);
    border-radius: 8px;
    color: #fff;
    font-family: var(--sans);
    font-size: .98rem;
    letter-spacing: .04em;
    transition: border-color .2s ease, background .2s ease;
}

.admin-auth__field input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(196, 162, 101, 0.04);
}

.admin-auth__submit {
    display: block;
    width: 100%;
    margin-top: 1.2rem;
    padding: .8rem 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    color: var(--ink);
    border: none;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter .2s ease, transform .15s ease;
}

.admin-auth__submit:hover {
    filter: brightness(1.05);
}

.admin-auth__submit:active {
    transform: translateY(1px);
}
