:root {
  --bg: #fbf7ef;
  --surface: #fffdf8;
  --surface-2: #f3eadc;
  --surface-3: #efe1cf;
  --text: #171717;
  --muted: #6d645a;
  --line: rgba(23, 23, 23, .11);
  --accent: #a66b2f;
  --accent-2: #133d5f;
  --accent-3: #0d7b66;
  --glow-a: rgba(166, 107, 47, .16);
  --glow-b: rgba(19, 61, 95, .12);
  --hero-overlay: linear-gradient(145deg, rgba(11, 26, 44, .92), rgba(20, 51, 78, .78));
  --danger: #b42318;
  --success: #087443;
  --warning: #b7791f;
  --shadow: 0 18px 50px rgba(29, 20, 12, .10);
  --shadow-soft: 0 10px 30px rgba(29, 20, 12, .08);
  --radius: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --nav-h: 74px;
}

[data-style="royal"] {
  --bg: #fff7f6;
  --surface: #fffdfd;
  --surface-2: #f8e8e6;
  --surface-3: #f0d2ce;
  --text: #1b1215;
  --muted: #745e63;
  --line: rgba(95, 25, 37, .13);
  --accent: #b4234b;
  --accent-2: #3f1f67;
  --accent-3: #a46818;
  --glow-a: rgba(180, 35, 75, .17);
  --glow-b: rgba(63, 31, 103, .14);
  --hero-overlay: linear-gradient(145deg, rgba(44, 10, 21, .94), rgba(74, 31, 94, .74));
}

[data-theme="dark"] {
  --bg: #09111f;
  --surface: #111b2b;
  --surface-2: #162338;
  --surface-3: #1d2d45;
  --text: #f7f3e8;
  --muted: #b9b1a5;
  --line: rgba(255, 255, 255, .12);
  --accent: #d8a760;
  --accent-2: #8ac7ff;
  --accent-3: #64d6ba;
  --danger: #ff8378;
  --success: #65d89b;
  --warning: #ffd27a;
  --shadow: 0 18px 50px rgba(0, 0, 0, .34);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, .28);
}

[data-theme="dark"][data-style="royal"] {
  --bg: #100710;
  --surface: #1b101e;
  --surface-2: #29162d;
  --surface-3: #3a2140;
  --text: #fff5f5;
  --muted: #d7c0c5;
  --line: rgba(255, 221, 229, .14);
  --accent: #ff7aa2;
  --accent-2: #c6a5ff;
  --accent-3: #f2bd63;
  --glow-a: rgba(255, 122, 162, .15);
  --glow-b: rgba(198, 165, 255, .13);
  --hero-overlay: linear-gradient(145deg, rgba(26, 3, 16, .94), rgba(54, 21, 66, .80));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 10% -10%, var(--glow-a), transparent 32rem),
    radial-gradient(circle at 95% 5%, var(--glow-b), transparent 30rem),
    var(--bg);
  color: var(--text);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.noscript { padding: 1rem; text-align: center; background: #fee4e2; color: #7a271a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.serif { font-family: var(--font-serif); }
.accent { color: var(--accent); }

.reading-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%; z-index: 1000;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transition: width .12s ease;
}
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--shadow-soft);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s ease;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Auth */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-shell {
  width: min(1160px, 100%); min-height: 710px; display: grid; grid-template-columns: 1.03fr .97fr;
  border: 1px solid var(--line); border-radius: 34px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
}
.auth-art {
  position: relative; padding: 56px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  background:
    var(--hero-overlay),
    url('../images/editorial-wall.svg') center/cover no-repeat;
  color: #fff8ea;
}
.auth-art::after {
  content: ''; position: absolute; inset: 20px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 28px; pointer-events: none;
}
.brand-lockup { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); font-family: var(--font-serif); font-size: 1.25rem; }
.auth-copy { position: relative; z-index: 2; max-width: 520px; }
.auth-copy .eyebrow { color: #f3c985; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 800; color: var(--accent); }
.auth-copy h1 { font-family: var(--font-serif); font-size: clamp(2.4rem, 4vw, 4.8rem); line-height: .95; margin: 16px 0; letter-spacing: -.045em; }
.auth-copy p { font-size: 1.05rem; line-height: 1.75; color: rgba(255, 248, 234, .82); }
.editorial-chip-row { position: relative; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; }
.editorial-chip-row span { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.10); padding: 9px 12px; border-radius: 999px; font-size: .85rem; }
.auth-panel { padding: 46px; display: grid; align-content: center; position: relative; }
.auth-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.auth-card h2 { font-family: var(--font-serif); font-size: clamp(2rem, 3vw, 3rem); line-height: 1; margin: 0 0 10px; letter-spacing: -.035em; }
.auth-card > p { margin: 0 0 26px; color: var(--muted); line-height: 1.6; }
.auth-switch { margin-top: 22px; color: var(--muted); text-align: center; }
.auth-switch button { border: 0; background: none; color: var(--accent); font-weight: 800; }

.oauth-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.oauth-divider::before, .oauth-divider::after { content: ''; height: 1px; background: var(--line); }
.btn-google {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, white 8%); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 850;
  box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn-google:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 16px 38px color-mix(in srgb, var(--accent) 14%, transparent); }
.google-mark {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto;
  background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0 100%);
  color: #fff; font-weight: 900; font-family: Arial, sans-serif; font-size: .95rem;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22);
}
.google-mark.large { width: 44px; height: 44px; font-size: 1.25rem; }
.oauth-note { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.google-modal { width: min(520px, 100%); }
.google-modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.google-modal-head h2 { margin: 0 0 3px; }
.google-modal-head p { margin: 0; }
.google-account-note {
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  background: color-mix(in srgb, var(--surface-2) 58%, transparent); color: var(--muted);
  font-size: .88rem; line-height: 1.5;
}
.modal-actions.split { display: grid; grid-template-columns: 1fr 1fr; }
.google-profile-card { position: relative; overflow: hidden; }
.google-profile-card .google-mark { margin-bottom: 12px; }
.google-profile-card::after {
  content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -64px; top: -64px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%);
  pointer-events: none;
}
.theme-mini, .icon-btn, .nav-toggle {
  border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px;
  min-height: 40px; padding: 0 13px; box-shadow: var(--shadow-soft); display: inline-flex; align-items: center; gap: 8px;
}
.theme-mini:hover, .icon-btn:hover { transform: translateY(-1px); }

/* Forms */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; gap: 7px; }
.form-row label { font-size: .9rem; font-weight: 800; color: var(--text); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 16px;
  padding: 13px 14px; outline: none; transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-row textarea { resize: vertical; min-height: 140px; line-height: 1.65; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: rgba(166,107,47,.55); box-shadow: 0 0 0 4px rgba(166,107,47,.13); }
.form-error { color: var(--danger); font-size: .82rem; min-height: 1rem; }
.form-help { color: var(--muted); font-size: .83rem; line-height: 1.4; }
.form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.check-row { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--muted); }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }

.btn {
  border: 0; background: var(--text); color: var(--bg); border-radius: 999px; min-height: 46px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800;
  box-shadow: var(--shadow-soft); transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-accent { background: linear-gradient(135deg, var(--accent), #cb8f4a); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-soft { background: var(--surface-2); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { min-height: 36px; padding: 0 12px; font-size: .86rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Reader navigation */
.reader-nav {
  position: sticky; top: 0; z-index: 700; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.reader-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.03em; }
.reader-brand .brand-mark { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.reader-links { display: flex; align-items: center; gap: 3px; }
.reader-links a, .reader-links button.linklike {
  border: 0; background: none; color: var(--muted); padding: 10px 12px; border-radius: 999px; font-weight: 750; transition: .2s ease;
}
.reader-links a:hover, .reader-links a.active, .reader-links button.linklike:hover { color: var(--text); background: var(--surface-2); }
.reader-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

.page-wrap { padding: 34px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; align-items: stretch; }
.hero-feature {
  position: relative; min-height: 500px; border-radius: 32px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; align-items: end; background: var(--surface-2);
}
.hero-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.78)); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: clamp(24px, 4vw, 52px); max-width: 760px; }
.hero-content h1 { font-family: var(--font-serif); font-size: clamp(2.3rem, 5vw, 5.6rem); line-height: .96; letter-spacing: -.055em; margin: 14px 0; }
.hero-content p { color: rgba(255,255,255,.82); font-size: 1.06rem; line-height: 1.7; }
.hero-side { display: grid; gap: 18px; }
.side-card, .editor-note {
  border: 1px solid var(--line); border-radius: 26px; background: var(--surface); padding: 22px; box-shadow: var(--shadow-soft);
}
.editor-note { display: grid; align-content: center; background: linear-gradient(145deg, var(--surface), var(--surface-2)); }
.editor-note h2, .section-head h2, .page-title h1 { font-family: var(--font-serif); letter-spacing: -.04em; }
.editor-note h2 { font-size: 2.2rem; line-height: 1; margin: 10px 0; }
.side-post { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.side-post:last-child { border-bottom: 0; }
.side-post img { width: 92px; height: 74px; object-fit: cover; border-radius: 16px; }
.side-post h3 { margin: 4px 0 0; font-size: .98rem; line-height: 1.3; }

.section { margin-top: 52px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: clamp(2rem, 3vw, 3.3rem); }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 620px; line-height: 1.6; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.blog-card {
  border: 1px solid var(--line); background: var(--surface); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease; min-width: 0;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-card.list { display: grid; grid-template-columns: 300px 1fr; }
.card-img-wrap { position: relative; overflow: hidden; background: var(--surface-2); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; transition: transform .3s ease; }
.blog-card:hover img { transform: scale(1.035); }
.blog-card.list img { height: 100%; min-height: 240px; }
.card-body { padding: 20px; }
.card-body h3 { margin: 10px 0 10px; font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.08; letter-spacing: -.025em; }
.card-body p { color: var(--muted); line-height: 1.62; margin: 0 0 16px; }
.meta-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--muted); font-size: .83rem; }
.badge, .tag {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: .76rem; font-weight: 850; padding: 7px 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
}
.badge { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.tag { color: var(--muted); padding: 6px 9px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.save-btn.saved { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

.newsletter {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: center; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--accent-2) 55%, var(--text)));
  color: var(--bg); border-radius: 34px; padding: clamp(24px, 4vw, 48px); overflow: hidden; position: relative;
}
.newsletter::after { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -70px; top: -80px; background: rgba(255,255,255,.11); }
.newsletter h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 4rem); margin: 0 0 12px; line-height: .98; }
.newsletter p { color: color-mix(in srgb, var(--bg) 75%, transparent); line-height: 1.7; }
.newsletter-form { display: flex; gap: 12px; position: relative; z-index: 2; }
.newsletter-form input { flex: 1; min-height: 50px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.12); color: #fff; padding: 0 16px; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.72); }

.footer { border-top: 1px solid var(--line); padding: 34px 0; background: color-mix(in srgb, var(--surface) 72%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 24px; }
.footer h3 { margin: 0 0 10px; font-family: var(--font-serif); font-size: 1.6rem; }
.footer p, .footer a { color: var(--muted); line-height: 1.7; }
.footer-links { display: grid; gap: 8px; }

/* Listing */
.page-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.page-title h1 { font-size: clamp(2.4rem, 5vw, 5rem); line-height: .95; margin: 8px 0 0; }
.page-title p { color: var(--muted); line-height: 1.65; max-width: 720px; }
.filter-panel {
  border: 1px solid var(--line); border-radius: 26px; background: var(--surface); padding: 18px; box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: 1.4fr repeat(3, minmax(150px, .55fr)) auto; gap: 12px; align-items: end; margin-bottom: 24px;
}
.filter-panel .form-row { gap: 5px; }
.result-line { margin: 0 0 16px; color: var(--muted); font-weight: 700; }
.empty-state {
  border: 1px dashed var(--line); background: var(--surface); border-radius: 28px; padding: 44px; text-align: center; color: var(--muted);
}
.empty-state h3 { font-family: var(--font-serif); color: var(--text); font-size: 2rem; margin: 0 0 10px; }
.category-card {
  border: 1px solid var(--line); background: linear-gradient(145deg, var(--surface), var(--surface-2)); border-radius: 26px; padding: 24px; box-shadow: var(--shadow-soft);
  transition: transform .2s ease;
}
.category-card:hover { transform: translateY(-4px); }
.category-card h3 { font-family: var(--font-serif); font-size: 1.8rem; margin: 12px 0 8px; letter-spacing: -.03em; }
.category-card p { color: var(--muted); line-height: 1.65; }
.category-stat { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: var(--muted); }

/* Article */
.article-wrap { padding: 30px 0 70px; }
.article-hero { width: min(980px, calc(100% - 32px)); margin: 0 auto; text-align: center; }
.article-hero h1 { font-family: var(--font-serif); font-size: clamp(2.5rem, 6vw, 6rem); line-height: .94; letter-spacing: -.06em; margin: 18px 0; }
.article-hero p { color: var(--muted); font-size: 1.08rem; line-height: 1.75; max-width: 780px; margin: 0 auto 18px; }
.article-cover { width: min(1180px, calc(100% - 32px)); margin: 26px auto; border-radius: 34px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: clamp(280px, 48vw, 620px); object-fit: cover; }
.article-body { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.article-tools { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.article-content { font-size: 1.08rem; line-height: 1.9; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.article-content p { margin: 0 0 1.35rem; }
.article-content h2 { font-family: var(--font-serif); font-size: 2.1rem; line-height: 1.08; margin: 2.2rem 0 1rem; color: var(--text); letter-spacing: -.03em; }
.article-content blockquote { margin: 2rem 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 18px 18px 0; color: var(--text); }
.related-wrap { width: min(1180px, calc(100% - 32px)); margin: 54px auto 0; }

/* Admin */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 286px 1fr; }
.admin-sidebar {
  position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 93%, transparent);
  backdrop-filter: blur(16px); padding: 20px; display: flex; flex-direction: column; gap: 22px; z-index: 750;
}
.admin-logo { display: flex; align-items: center; gap: 12px; padding: 10px; }
.admin-logo .brand-mark { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.admin-logo strong { display: block; letter-spacing: -.03em; }
.admin-logo span { color: var(--muted); font-size: .82rem; }
.admin-nav { display: grid; gap: 7px; }
.admin-nav a, .admin-nav button {
  border: 0; background: none; text-align: left; color: var(--muted); border-radius: 16px; padding: 12px 13px; font-weight: 800;
  display: flex; align-items: center; gap: 10px; transition: .2s ease;
}
.admin-nav a:hover, .admin-nav a.active, .admin-nav button:hover { background: var(--surface-2); color: var(--text); }
.admin-spacer { flex: 1; }
.admin-main { min-width: 0; padding: 28px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; }
.admin-mobile-toggle { display: none; }
.admin-title h1 { font-family: var(--font-serif); font-size: clamp(2rem, 3vw, 3.8rem); line-height: 1; letter-spacing: -.05em; margin: 7px 0 4px; }
.admin-title p { margin: 0; color: var(--muted); line-height: 1.5; }
.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { border: 1px solid var(--line); background: var(--surface); border-radius: 24px; padding: 18px; box-shadow: var(--shadow-soft); }
.stat-card span { color: var(--muted); font-weight: 800; font-size: .82rem; }
.stat-card strong { display: block; font-size: 2rem; margin-top: 6px; letter-spacing: -.04em; }
.admin-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: 26px; padding: 20px; box-shadow: var(--shadow-soft); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.panel h2 { font-size: 1.2rem; margin: 0; letter-spacing: -.02em; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.admin-table th, .admin-table td { padding: 13px 11px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-table td { font-size: .9rem; }
.admin-table tr:hover td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.status-pill { border-radius: 999px; padding: 6px 9px; font-size: .75rem; font-weight: 900; display: inline-flex; }
.status-published { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.status-draft { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.table-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.admin-filter-panel { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(140px, .5fr)); gap: 12px; margin-bottom: 16px; }
.admin-form { max-width: 980px; }
.image-preview { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface-2); min-height: 220px; display: grid; place-items: center; color: var(--muted); }
.image-preview img { width: 100%; height: 280px; object-fit: cover; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.theme-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.theme-option {
  border: 1px solid var(--line); background: linear-gradient(145deg, var(--surface), var(--surface-2)); color: var(--text);
  border-radius: 22px; padding: 14px; text-align: left; box-shadow: var(--shadow-soft); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.theme-option:hover { transform: translateY(-2px); }
.theme-option.active { border-color: color-mix(in srgb, var(--accent) 62%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), var(--shadow-soft); }
.theme-swatch { display: flex; gap: 7px; margin-bottom: 12px; }
.theme-swatch span { width: 34px; height: 34px; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.theme-swatch.classic span:nth-child(1) { background: #fbf7ef; }
.theme-swatch.classic span:nth-child(2) { background: #a66b2f; }
.theme-swatch.classic span:nth-child(3) { background: #133d5f; }
.theme-swatch.royal span:nth-child(1) { background: #fff7f6; }
.theme-swatch.royal span:nth-child(2) { background: #b4234b; }
.theme-swatch.royal span:nth-child(3) { background: #3f1f67; }
.theme-option strong { display: block; margin-bottom: 5px; }
.theme-option small { color: var(--muted); line-height: 1.45; display: block; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.file-input { padding: 18px; border: 1px dashed var(--line); border-radius: 18px; background: var(--surface-2); }

/* Profile and cards */
.profile-card { border: 1px solid var(--line); background: var(--surface); border-radius: 30px; padding: 24px; box-shadow: var(--shadow-soft); }
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.avatar { width: 74px; height: 74px; border-radius: 24px; display: grid; place-items: center; font-size: 2rem; font-family: var(--font-serif); background: var(--surface-2); border: 1px solid var(--line); }
.info-list { display: grid; gap: 10px; }
.info-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.info-row strong { color: var(--text); text-align: right; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: start; }
.about-feature { border: 1px solid var(--line); background: linear-gradient(145deg, var(--surface), var(--surface-2)); border-radius: 34px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-soft); }
.about-feature h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.04em; margin: 0 0 16px; }
.about-feature p { color: var(--muted); line-height: 1.75; }

/* Toast + modal */
.toast-root { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 1200; }
.toast { min-width: 260px; max-width: 390px; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow); border-radius: 18px; padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; animation: toastIn .25s ease; }
.toast strong { display: block; margin-bottom: 2px; }
.toast p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.48); display: grid; place-items: center; padding: 20px; z-index: 1100; }
.modal { width: min(470px, 100%); border: 1px solid var(--line); background: var(--surface); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
.modal h2 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 2rem; }
.modal p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Responsive */
@media (max-width: 1080px) {
  .auth-shell, .hero-grid, .newsletter, .admin-grid, .contact-grid, .settings-grid { grid-template-columns: 1fr; }
  .auth-art { min-height: 420px; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .theme-option-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .reader-links {
    position: fixed; left: 16px; right: 16px; top: calc(var(--nav-h) + 12px); background: var(--surface); border: 1px solid var(--line);
    border-radius: 22px; padding: 12px; display: none; grid-template-columns: 1fr; box-shadow: var(--shadow); z-index: 800;
  }
  .reader-links.open { display: grid; }
  .reader-links a, .reader-links button.linklike { text-align: left; }
  .nav-toggle { display: inline-flex; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; transform: translateX(-105%); transition: transform .25s ease; width: 286px; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-mobile-toggle { display: inline-flex; }
  .admin-main { padding: 20px; }
  .form-2, .form-3, .admin-filter-panel, .filter-panel { grid-template-columns: 1fr; }
  .blog-card.list { grid-template-columns: 1fr; }
  .blog-card.list img { min-height: unset; height: 220px; }
}
@media (max-width: 680px) {
  .auth-page { padding: 0; }
  .auth-shell { border-radius: 0; min-height: 100vh; border: 0; }
  .auth-art, .auth-panel { padding: 30px 20px; }
  .grid-3, .grid-4, .footer-grid, .stat-grid { grid-template-columns: 1fr; }
  .page-title, .section-head, .admin-topbar, .panel-head { align-items: start; flex-direction: column; }
  .newsletter-form { flex-direction: column; }
  .article-tools { justify-content: stretch; }
  .article-tools .btn { width: 100%; }
  .hero-feature { min-height: 430px; }
  .reader-actions .theme-mini span { display: none; }
  .toast-root { left: 14px; right: 14px; }
  .toast { min-width: 0; width: 100%; }
}
.profile-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }

/* Mobile-first polish upgrade */
@media (max-width: 1200px) {
  .container { width: min(100% - 28px, 1040px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  body { overflow-x: hidden; }
  .container { width: min(100% - 24px, 820px); }

  .nav-inner { gap: 10px; }
  .reader-brand { min-width: 0; }
  .reader-brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
  .reader-actions { gap: 7px; }
  .reader-actions .btn, .reader-actions .theme-mini, .nav-toggle { min-height: 38px; padding-inline: 11px; }

  .reader-links {
    left: 12px;
    right: 12px;
    top: calc(var(--nav-h) + 8px);
    max-height: calc(100vh - var(--nav-h) - 24px);
    overflow-y: auto;
  }

  .page-wrap { padding: 22px 0 44px; }
  .hero-feature { min-height: 390px; border-radius: 26px; }
  .hero-content { padding: 26px; }
  .hero-side { grid-template-columns: 1fr; }
  .side-post { grid-template-columns: 82px 1fr; }
  .side-post img { width: 82px; height: 66px; }

  .newsletter { grid-template-columns: 1fr; border-radius: 26px; }
  .newsletter-form { display: grid; grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .settings-grid, .profile-grid, .admin-grid { grid-template-columns: 1fr !important; }

  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(310px, 86vw);
    height: 100dvh;
    transform: translateX(-110%);
    box-shadow: 26px 0 70px rgba(0,0,0,.28);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-mobile-toggle { display: inline-flex; }
  .admin-main { padding: 18px; }
  .admin-topbar { align-items: flex-start; }
  .admin-actions { width: 100%; }
  .admin-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 20px, 640px); }
  .auth-page { padding: 0; align-items: stretch; }
  .auth-shell { width: 100%; min-height: 100dvh; border-radius: 0; grid-template-columns: 1fr; }
  .auth-art { min-height: auto; padding: 28px 20px; gap: 26px; }
  .auth-art::after { inset: 12px; border-radius: 22px; }
  .auth-copy h1 { font-size: clamp(2rem, 12vw, 3.2rem); }
  .auth-copy p { font-size: .96rem; line-height: 1.6; }
  .editorial-chip-row { gap: 7px; }
  .editorial-chip-row span { font-size: .78rem; padding: 7px 10px; }
  .auth-panel { padding: 28px 20px 34px; }
  .auth-topline { margin-bottom: 18px; }

  .reader-nav { position: sticky; }
  .nav-inner { min-height: var(--nav-h); height: auto; padding: 8px 0; }
  .reader-brand .brand-mark { width: 40px; height: 40px; border-radius: 13px; }
  .reader-brand span:last-child { display: none; }
  .reader-actions { margin-left: auto; justify-content: flex-end; flex-wrap: wrap; }
  .reader-actions .btn-small { font-size: .82rem; }

  .hero-feature { min-height: 350px; border-radius: 22px; }
  .hero-content { padding: 22px; }
  .hero-content h1 { font-size: clamp(2.15rem, 12vw, 4rem); }
  .section { margin-top: 36px; }
  .section-head, .page-title, .admin-topbar, .panel-head { flex-direction: column; align-items: flex-start; }
  .section-head h2, .page-title h1 { width: 100%; }

  .grid-3, .grid-4, .filter-panel, .admin-filter-panel, .form-2, .form-3, .footer-grid, .stat-grid, .theme-option-grid { grid-template-columns: 1fr !important; }
  .blog-card.list { grid-template-columns: 1fr; }
  .blog-card img, .blog-card.list img { height: 205px; min-height: 0; }
  .card-body { padding: 17px; }
  .card-actions { align-items: stretch; flex-direction: column; }
  .card-actions .btn { width: 100%; }

  .filter-panel, .panel, .profile-card, .about-feature, .empty-state { border-radius: 22px; padding: 16px; }
  .newsletter { padding: 24px 18px; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form input, .newsletter-form .btn { width: 100%; }

  .article-wrap { padding-top: 18px; }
  .article-hero { width: min(100% - 20px, 640px); text-align: left; }
  .article-hero h1 { font-size: clamp(2.1rem, 12vw, 4.2rem); }
  .article-hero p { font-size: 1rem; }
  .article-cover { width: min(100% - 20px, 640px); border-radius: 22px; }
  .article-cover img { height: min(62vw, 360px); min-height: 220px; }
  .article-body { width: min(100% - 24px, 620px); }
  .article-content { font-size: 1rem; line-height: 1.78; }
  .article-content h2 { font-size: 1.65rem; }
  .article-tools { display: grid; grid-template-columns: 1fr; }

  .admin-main { padding: 14px; }
  .admin-title h1 { font-size: clamp(2rem, 12vw, 3rem); }
  .stat-card strong { font-size: 1.75rem; }
  .admin-table-wrap { margin-inline: -4px; padding-bottom: 4px; }
  .admin-table { min-width: 720px; }
  .image-preview { min-height: 170px; }
  .image-preview img { height: 210px; }

  .profile-head { align-items: flex-start; }
  .info-row { flex-direction: column; gap: 4px; }
  .info-row strong { text-align: left; overflow-wrap: anywhere; }

  .toast-root { left: 12px; right: 12px; bottom: 12px; }
  .toast { width: 100%; max-width: none; min-width: 0; }
  .modal-backdrop { padding: 12px; align-items: end; }
  .modal { border-radius: 22px; }
  .modal-actions { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .container { width: min(100% - 16px, 390px); }
  .reader-actions .theme-mini { width: 40px; padding: 0; justify-content: center; }
  .reader-actions .theme-mini::before { content: '◐'; }
  .reader-actions .theme-mini span { display: none; }
  .nav-toggle { width: 42px; padding: 0; justify-content: center; font-size: 0; }
  .nav-toggle::before { content: '☰'; font-size: .95rem; }
  .reader-actions .btn-small { min-height: 36px; padding-inline: 10px; }

  .auth-panel { padding-inline: 16px; }
  .auth-card h2 { font-size: 2rem; }
  .hero-feature { min-height: 320px; }
  .hero-content { padding: 18px; }
  .side-card, .editor-note { border-radius: 20px; padding: 16px; }
  .side-post { grid-template-columns: 72px 1fr; gap: 10px; }
  .side-post img { width: 72px; height: 58px; border-radius: 13px; }
  .blog-card { border-radius: 20px; }
  .blog-card img, .blog-card.list img { height: 185px; }
  .card-body h3 { font-size: 1.28rem; }
  .newsletter h2 { font-size: 2rem; }
  .footer { padding: 26px 0; }
  .back-to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}


/* Visual Pro Edition: premium magazine polish, liquid mobile UI, richer cards */
:root {
  --lux-grad: linear-gradient(135deg, var(--accent), var(--accent-2) 52%, var(--accent-3));
  --gold-grad: linear-gradient(135deg, #f9d88a, #b67a34 45%, #fff0bf);
  --glass: color-mix(in srgb, var(--surface) 78%, transparent);
  --glass-strong: color-mix(in srgb, var(--surface) 92%, transparent);
  --hairline: color-mix(in srgb, var(--line) 80%, transparent);
  --focus-ring: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

html { font-size: 16px; }
body {
  isolation: isolate;
  background:
    radial-gradient(circle at 4% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 30rem),
    radial-gradient(circle at 96% 7%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 32rem),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 96%, #fff), var(--bg));
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at top, black, transparent 72%);
}
body::after {
  content: '';
  position: fixed;
  width: 18rem;
  height: 18rem;
  right: -8rem;
  top: 34vh;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-3) 18%, transparent);
  filter: blur(48px);
  opacity: .8;
}

:focus-visible { outline: none; box-shadow: var(--focus-ring); }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--text); }
.container { width: min(1210px, calc(100% - 34px)); }

.brand-mark {
  position: relative;
  overflow: hidden;
  background: var(--lux-grad) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 16px 35px color-mix(in srgb, var(--accent) 18%, transparent);
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: -65% auto auto -20%;
  width: 55%;
  height: 230%;
  transform: rotate(28deg);
  background: rgba(255,255,255,.28);
}

.btn {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  transform: translateZ(0);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translateX(-130%);
  transition: transform .55s ease;
}
.btn:hover::after { transform: translateX(130%); }
.btn-accent {
  background: var(--lux-grad);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 23%, transparent);
}
.btn-soft, .btn-ghost, .theme-mini, .icon-btn, .nav-toggle {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* More premium auth screen */
.auth-page {
  padding: clamp(14px, 3vw, 30px);
}
.auth-shell {
  min-height: min(760px, calc(100vh - 36px));
  border-radius: clamp(24px, 4vw, 42px);
  background: var(--glass-strong);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 34px 90px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.35);
}
.auth-art {
  background:
    linear-gradient(135deg, rgba(7,15,28,.95), rgba(22,51,80,.78) 54%, rgba(132,78,28,.58)),
    url('../images/editorial-wall.svg') center/cover no-repeat;
}
.auth-art::before {
  content: 'DRAFTSCO JOURNAL';
  position: absolute;
  left: -18px;
  bottom: 82px;
  transform: rotate(-90deg);
  transform-origin: left bottom;
  font-size: .72rem;
  letter-spacing: .42em;
  color: rgba(255,255,255,.45);
  z-index: 2;
}
.auth-art::after {
  inset: 18px;
  border-color: rgba(255,255,255,.23);
  background:
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.18), transparent 12rem),
    linear-gradient(180deg, transparent, rgba(255,255,255,.035));
}
.auth-copy h1, .hero-content h1, .article-hero h1, .page-title h1, .section-head h2, .admin-title h1 {
  text-wrap: balance;
}
.auth-copy h1 { text-shadow: 0 18px 50px rgba(0,0,0,.35); }
.editorial-chip-row span {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
  backdrop-filter: blur(12px);
}
.auth-panel {
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 18rem),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface));
}
.auth-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 34px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.28);
}

/* Liquid reader navigation */
.reader-nav {
  top: 10px;
  width: min(1220px, calc(100% - 24px));
  margin: 10px auto 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 18px 55px rgba(0,0,0,.08);
}
.nav-inner { padding-inline: 12px; }
.reader-links {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 62%, transparent);
}
.reader-links a.active, .reader-links a:hover, .reader-links button.linklike:hover {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Hero visual upgrade */
.hero-grid { gap: 24px; align-items: stretch; }
.hero-feature {
  min-height: clamp(500px, 66vh, 720px);
  border-radius: 38px;
  box-shadow: 0 30px 90px rgba(0,0,0,.18);
  isolation: isolate;
}
.hero-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.25), transparent 15rem),
    linear-gradient(135deg, rgba(0,0,0,.18), transparent 44%);
}
.hero-feature::after {
  background: linear-gradient(180deg, rgba(0,0,0,.08) 10%, rgba(0,0,0,.30) 45%, rgba(0,0,0,.86));
  z-index: 1;
}
.hero-feature img { transform: scale(1.015); transition: transform .9s ease; }
.hero-feature:hover img { transform: scale(1.06); }
.hero-content { z-index: 2; }
.hero-content .badge, .article-hero .badge, .meta-row .badge, .badge {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  color: color-mix(in srgb, var(--accent) 82%, var(--text));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.hero-content .badge { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.25); }
.hero-kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 22px;
}
.hero-kpis span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.11);
  color: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  font-size: .86rem;
  font-weight: 800;
}
.editor-note, .side-card, .panel, .filter-panel, .profile-card, .about-feature, .empty-state, .contact-card, .settings-card {
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: 0 20px 55px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.22);
}
.editor-note {
  position: relative;
  overflow: hidden;
}
.editor-note::before {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  right: -62px;
  top: -62px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  filter: blur(4px);
}
.editor-note > * { position: relative; }

/* Modern editorial cards */
.blog-card, .category-card, .stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  box-shadow: 0 18px 50px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.24);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.blog-card::before, .category-card::before, .stat-card::before, .panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34%);
  opacity: 0;
  transition: opacity .22s ease;
}
.blog-card:hover, .category-card:hover, .stat-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  box-shadow: 0 28px 75px rgba(0,0,0,.13);
}
.blog-card:hover::before, .category-card:hover::before, .stat-card:hover::before { opacity: 1; }
.card-img-wrap { position: relative; overflow: hidden; }
.card-img-wrap::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.38));
}
.blog-card img { transition: transform .55s ease, filter .55s ease; }
.blog-card:hover img { transform: scale(1.055); filter: saturate(1.05) contrast(1.04); }
.card-body h3 { text-wrap: balance; letter-spacing: -.025em; }
.tag {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 74%, transparent);
  color: var(--muted);
}
.meta-row { gap: 9px; }
.meta-row span:not(.badge) { color: color-mix(in srgb, var(--muted) 88%, var(--text)); }

/* Article polish */
.article-hero {
  padding-top: 18px;
}
.article-hero h1 {
  background: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--accent-2) 72%, var(--text)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.article-cover {
  box-shadow: 0 30px 90px rgba(0,0,0,.18);
  border: 1px solid var(--line);
}
.article-content {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(18px, 4vw, 34px);
  box-shadow: var(--shadow-soft);
}
.article-content p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4.2rem;
  line-height: .78;
  padding-right: 10px;
  color: var(--accent);
}
.reading-progress { height: 5px; background: var(--lux-grad); box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 35%, transparent); }

/* Admin command-room look */
.admin-shell {
  background:
    radial-gradient(circle at 82% 2%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 30rem),
    var(--bg);
}
.admin-sidebar {
  margin: 16px 0 16px 16px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 86%, transparent), color-mix(in srgb, var(--surface-2) 84%, transparent));
  box-shadow: 0 25px 75px rgba(0,0,0,.12);
}
.admin-nav a, .admin-nav button {
  border-radius: 18px;
}
.admin-nav a.active {
  background: var(--lux-grad);
  color: #fff;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 20%, transparent);
}
.admin-main { padding: 30px 32px; }
.admin-topbar {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}
.stat-card strong {
  background: var(--lux-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.admin-table th { color: color-mix(in srgb, var(--accent) 70%, var(--muted)); }
.admin-table tr:hover td { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* Better inputs */
.form-row input, .form-row textarea, .form-row select, .newsletter-form input {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border-color: color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus, .newsletter-form input:focus {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  box-shadow: var(--focus-ring);
}
.newsletter {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, var(--surface)), color-mix(in srgb, var(--accent-2) 10%, var(--surface)));
}
.newsletter::after {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  right: -80px;
  top: -100px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  filter: blur(10px);
}
.newsletter > * { position: relative; z-index: 1; }

/* Mobile visual upgrade */
@media (max-width: 900px) {
  .reader-nav {
    top: 0;
    width: 100%;
    margin: 0;
    border-radius: 0 0 24px 24px;
    border-left: 0;
    border-right: 0;
  }
  .reader-links {
    top: calc(var(--nav-h) + 8px);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(0,0,0,.18);
  }
  .admin-sidebar {
    margin: 0;
    border-radius: 0 26px 26px 0;
  }
  .admin-topbar { border-radius: 22px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 22px, 560px); }
  .auth-shell { min-height: auto; border-radius: 30px; }
  .auth-art { min-height: 300px; padding: 30px 24px; }
  .auth-panel { padding: 18px 16px 24px; }
  .auth-card { border-radius: 24px; }
  .hero-grid { gap: 16px; }
  .hero-feature { min-height: 61dvh; border-radius: 30px; }
  .hero-content { padding: 24px 20px 28px; }
  .hero-content h1 { font-size: clamp(2.35rem, 12.2vw, 4rem); }
  .hero-kpis { margin: 16px 0; gap: 7px; }
  .hero-kpis span { min-height: 34px; font-size: .76rem; padding-inline: 9px; }
  .section-head h2, .page-title h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
  .blog-card, .category-card, .panel, .editor-note, .side-card { border-radius: 24px; }
  .blog-card img, .blog-card.list img { height: clamp(185px, 52vw, 270px); }
  .mobile-reader-dock,.mobile-admin-dock {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--surface-2) 80%, transparent));
    border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
    box-shadow: 0 18px 60px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.28);
  }
  .mobile-reader-dock a b,.mobile-admin-dock a b,.mobile-admin-dock button b {
    width: 30px; height: 30px; display: grid; place-items: center; border-radius: 13px;
    background: color-mix(in srgb, var(--surface-2) 74%, transparent);
  }
  .mobile-reader-dock a.active,.mobile-admin-dock a.active {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
  }
  .mobile-reader-dock a.active b,.mobile-admin-dock a.active b {
    background: var(--lux-grad); color: #fff;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 24%, transparent);
  }
  .article-content { border-radius: 22px; padding: 20px 17px; }
  .article-content p:first-of-type::first-letter { font-size: 3.3rem; }
  .filter-panel { gap: 12px; }
}
@media (max-width: 430px) {
  .container { width: min(100% - 18px, 410px); }
  .auth-copy h1 { font-size: clamp(2.15rem, 12vw, 3.4rem); }
  .auth-copy p { font-size: .98rem; }
  .auth-art::before { display: none; }
  .hero-feature { min-height: 560px; }
  .hero-content .btn { width: 100%; }
  .hero-kpis { display: grid; grid-template-columns: 1fr 1fr; }
  .card-actions { gap: 9px; }
  .newsletter { border-radius: 24px; }
  .mobile-reader-dock a span,.mobile-admin-dock a span { font-size: .66rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .auth-shell, .hero-feature, .blog-card, .category-card, .panel, .stat-card { animation: riseIn .45s ease both; }
  @keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 560px) {
  .oauth-note { font-size: .74rem; }
  .google-modal-head { align-items: flex-start; }
  .modal-actions.split { grid-template-columns: 1fr; }
}


/* === Draftsco Visual Premium Refresh === */
:root {
  --deep-grad: radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 22rem), radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 28rem), linear-gradient(135deg, color-mix(in srgb, var(--bg) 92%, var(--surface)), var(--bg));
  --premium-border: color-mix(in srgb, var(--line) 78%, var(--accent) 22%);
  --ink-grad: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--accent-2) 56%, var(--text)) 55%, color-mix(in srgb, var(--accent) 55%, var(--text)));
}

body {
  background: var(--deep-grad);
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(42px);
  opacity: .58;
}
body::before {
  width: 26rem;
  height: 26rem;
  left: -10rem;
  top: 8rem;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
body::after {
  width: 32rem;
  height: 32rem;
  right: -14rem;
  bottom: 4rem;
  background: color-mix(in srgb, var(--accent-2) 16%, transparent);
}

#app { isolation: isolate; }

.brand-mark,
.admin-logo .brand-mark,
.reader-brand .brand-mark {
  position: relative;
  overflow: hidden;
  background: var(--lux-grad) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--accent) 24%, transparent), inset 0 1px 0 rgba(255,255,255,.34) !important;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: -80% -35%;
  background: linear-gradient(115deg, transparent 36%, rgba(255,255,255,.48), transparent 63%);
  transform: translateX(-70%) rotate(6deg);
  transition: transform .75s ease;
}
.brand-lockup:hover .brand-mark::after,
.reader-brand:hover .brand-mark::after,
.admin-logo:hover .brand-mark::after { transform: translateX(85%) rotate(6deg); }

.auth-shell {
  border: 1px solid var(--premium-border);
  box-shadow: 0 44px 120px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.36);
}
.auth-art {
  background:
    linear-gradient(130deg, rgba(5,10,20,.94), rgba(21,45,76,.82) 42%, rgba(159,91,36,.64)),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.22), transparent 12rem),
    url('../images/editorial-wall.svg') center/cover no-repeat;
}
.auth-copy {
  padding: 18px;
  border-left: 2px solid rgba(255,255,255,.28);
  background: linear-gradient(90deg, rgba(255,255,255,.08), transparent 70%);
  border-radius: 24px;
}
.auth-copy h1,
.hero-content h1,
.page-title h1,
.section-head h2,
.admin-title h1 {
  letter-spacing: -.065em;
}
.auth-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-2) 38%, var(--surface))),
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 14rem);
  border-color: var(--premium-border);
}
.auth-card h2,
.section-head h2,
.page-title h1,
.admin-title h1 {
  background: var(--ink-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.form-row input,
.form-row textarea,
.form-row select {
  border-radius: 18px;
  min-height: 50px;
}

.reader-nav {
  border-color: var(--premium-border);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}
.reader-nav::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 32%, color-mix(in srgb, var(--accent-2) 10%, transparent));
  pointer-events: none;
  opacity: .75;
}
.reader-nav .nav-inner { position: relative; z-index: 1; }
.reader-links a,
.reader-links button.linklike,
.admin-nav a,
.admin-nav button { font-weight: 850; }

.page-wrap { padding-top: 28px; }
.hero-grid { position: relative; }
.hero-grid::before {
  content: 'DRAFTSCO';
  position: absolute;
  right: 4px;
  top: -38px;
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 950;
  letter-spacing: -.08em;
  color: color-mix(in srgb, var(--text) 6%, transparent);
  pointer-events: none;
  z-index: -1;
}
.hero-feature {
  border: 1px solid color-mix(in srgb, rgba(255,255,255,.34) 60%, var(--premium-border));
  box-shadow: 0 38px 110px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.22);
}
.hero-feature::before {
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,.34), transparent 16rem),
    radial-gradient(circle at 82% 0%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 20rem),
    linear-gradient(135deg, rgba(0,0,0,.08), transparent 43%);
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
}
.hero-content h1 {
  max-width: 870px;
  text-shadow: 0 22px 60px rgba(0,0,0,.45);
}
.hero-kpis span {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 10px 24px rgba(0,0,0,.12);
}
.editor-note,
.side-card {
  border-radius: 32px;
}
.side-post {
  border-radius: 20px;
  padding: 10px;
  border-bottom: 0;
  transition: transform .18s ease, background .18s ease;
}
.side-post:hover {
  transform: translateX(4px);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.side-post img { border-radius: 16px; }

.section {
  position: relative;
}
.section-head {
  padding: 2px 0 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.section-head p { max-width: 660px; }
.grid { align-items: stretch; }
.blog-card {
  border-radius: 30px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 52%, transparent)),
    radial-gradient(circle at 88% 5%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 13rem);
}
.blog-card .card-img-wrap {
  margin: 10px 10px 0;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.blog-card img { border-radius: inherit; }
.blog-card .card-body { padding: 18px 20px 20px; }
.blog-card .card-body h3 {
  font-size: clamp(1.1rem, 1.4vw, 1.42rem);
  line-height: 1.08;
}
.blog-card.list .card-img-wrap { margin: 10px 0 10px 10px; }
.card-actions .btn,
.table-actions .btn { box-shadow: none; }
.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.category-card::after,
.stat-card::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  right: -58px;
  bottom: -58px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  pointer-events: none;
}

.newsletter {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background:
    radial-gradient(circle at 12% 24%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 18rem),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 20rem),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 98%, transparent), color-mix(in srgb, var(--surface-2) 68%, transparent));
  color: var(--text);
}
.newsletter p { color: var(--muted); }
.newsletter-form input {
  color: var(--text);
  border-color: var(--premium-border);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}
.newsletter-form input::placeholder { color: var(--muted); }
.footer {
  margin-top: 54px;
  border-top: 1px solid var(--premium-border);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-2) 56%, transparent));
}
.footer h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0 0 8px;
}

.article-cover {
  border-radius: 34px;
  overflow: hidden;
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.9;
}
.article-content p { margin-bottom: 1.28em; }
.article-tools,
.related-posts { border-radius: 26px; }

.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30rem),
    radial-gradient(circle at 18% 100%, color-mix(in srgb, var(--accent-2) 13%, transparent), transparent 30rem),
    var(--bg);
}
.admin-sidebar {
  overflow: hidden;
}
.admin-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 42%, color-mix(in srgb, var(--accent-2) 9%, transparent));
  pointer-events: none;
}
.admin-sidebar > * { position: relative; }
.admin-topbar,
.panel,
.stat-card,
.settings-card,
.profile-card,
.contact-card,
.about-feature {
  border-color: var(--premium-border);
}
.stat-card {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  border-radius: 28px;
}
.stat-card span { font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.stat-card strong { font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: .9; }
.panel { border-radius: 30px; }
.admin-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}
.admin-table tr td {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.admin-table tr td:first-child { border-left: 1px solid var(--line); border-radius: 18px 0 0 18px; }
.admin-table tr td:last-child { border-right: 1px solid var(--line); border-radius: 0 18px 18px 0; }

.mobile-reader-dock,
.mobile-admin-dock { display: none; }

@media (max-width: 900px) {
  .auth-page { background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 19rem); }
  .reader-nav { border-radius: 0 0 28px 28px; }
  .reader-links { backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
  .admin-main { padding-bottom: 110px; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .page-wrap { padding-top: 14px; }
  .auth-shell { box-shadow: none; border-radius: 0; border: 0; }
  .auth-card { padding: 18px; }
  .auth-copy { padding: 14px; }
  .brand-lockup { font-size: 1.02rem; }
  .hero-grid::before { top: -18px; right: 10px; font-size: 4rem; }
  .hero-feature { min-height: min(560px, 72dvh); border-radius: 28px; }
  .hero-content { padding: 22px 18px 24px; }
  .hero-content h1 { line-height: .92; }
  .hero-kpis { grid-template-columns: 1fr; display: grid; }
  .editor-note, .side-card, .blog-card, .category-card, .panel, .stat-card { border-radius: 24px; }
  .blog-card .card-img-wrap { margin: 8px 8px 0; border-radius: 20px; }
  .blog-card .card-body { padding: 16px; }
  .section-head { align-items: start; }
  .newsletter { padding: 22px 16px; }
  .article-cover { border-radius: 24px; }
  .footer { padding-bottom: 110px; }
  .back-to-top { bottom: calc(100px + env(safe-area-inset-bottom)); }
  .toast-root { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .mobile-reader-dock,
  .mobile-admin-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 1150;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 7px;
    border-radius: 26px;
    border: 1px solid var(--premium-border);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    box-shadow: 0 18px 60px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.30);
  }
  .mobile-reader-dock a,
  .mobile-admin-dock a,
  .mobile-admin-dock button {
    border: 0;
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 56px;
    border-radius: 20px;
    font: inherit;
    text-align: center;
    font-weight: 850;
  }
  .mobile-reader-dock a b,
  .mobile-admin-dock a b,
  .mobile-admin-dock button b {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: color-mix(in srgb, var(--surface-2) 82%, transparent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.20);
  }
  .mobile-reader-dock a span,
  .mobile-admin-dock a span,
  .mobile-admin-dock button span { font-size: .66rem; line-height: 1; }
  .mobile-reader-dock a.active,
  .mobile-admin-dock a.active {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }
  .mobile-reader-dock a.active b,
  .mobile-admin-dock a.active b {
    color: #fff;
    background: var(--lux-grad);
  }
  .mobile-admin-dock button:active,
  .mobile-reader-dock a:active,
  .mobile-admin-dock a:active { transform: translateY(1px); }
}

@media (max-width: 420px) {
  .container { width: min(100% - 16px, 410px); }
  .auth-panel { padding-inline: 12px; }
  .auth-copy h1 { font-size: clamp(2.2rem, 13vw, 3.25rem); }
  .hero-feature { min-height: 535px; }
  .hero-content .badge { align-self: flex-start; }
  .mobile-reader-dock,
  .mobile-admin-dock { left: 7px; right: 7px; border-radius: 24px; }
  .mobile-reader-dock a,
  .mobile-admin-dock a,
  .mobile-admin-dock button { min-height: 54px; border-radius: 18px; }
}
