/* ═══════════════════════════════════════════════════════════
   Nejdelší kvazivěta — site-wide design system
   Palette: dark amber glow, glassmorphism
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #070605;
  --bg-raised:    rgba(255,255,255,.06);
  --text:         #fff7ef;
  --text-muted:   rgba(255,247,239,.58);
  --text-dim:     rgba(255,247,239,.32);
  --accent:       #ffb35c;
  --accent-2:     #ff6a3d;
  --accent-3:     #ffd36a;
  --glass:        rgba(255,255,255,.07);
  --glass-hi:     rgba(255,255,255,.10);
  --border:       rgba(255,255,255,.11);
  --border-hi:    rgba(255,179,92,.28);
  --shadow:       0 20px 60px rgba(0,0,0,.5);
  --radius:       18px;
  --radius-sm:    12px;
  --nav-h:        64px;
  --nav-h-sm:     48px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Inline links in content — nav/btn/card links override as needed */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255,179,92,.35);
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
a:hover {
  color: var(--accent-3);
  text-decoration-color: rgba(255,211,106,.65);
}
a:focus-visible {
  outline: 2px solid rgba(255,179,92,.6);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  /* Override any theme-level header{} rule */
  display: block !important;
  padding: 0 !important;
  background: rgba(7,6,5,.9) !important;
  backdrop-filter: blur(22px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(130%) !important;
  border-bottom: 1px solid rgba(255,255,255,.09) !important;
  box-shadow: none;
  transition: box-shadow .3s;
}
.site-nav.scrolled {
  box-shadow: 0 2px 40px rgba(0,0,0,.65) !important;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 8px;
  transition: height .28s ease;
}
.site-nav.scrolled .nav-inner { height: var(--nav-h-sm); }

/* Brand */
.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 12px;
}
.nav-brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(125deg, #ffd36a 0%, #ff9a4d 55%, #ff6a3d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  transition: font-size .28s;
}
.site-nav.scrolled .nav-brand-title { font-size: 14px; }

.nav-brand-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,179,92,.48);
  line-height: 1;
  overflow: hidden;
  max-height: 16px;
  opacity: 1;
  transition: max-height .28s ease, opacity .2s ease;
}
.site-nav.scrolled .nav-brand-sub { max-height: 0; opacity: 0; }

/* Links */
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link {
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,247,239,.6);
  text-decoration: none;
  border-radius: 999px;
  transition: color .15s, background .15s;
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.08); }
.nav-link.active { color: var(--text); background: rgba(255,255,255,.09); font-weight: 600; }

.nav-btn {
  padding: 6px 15px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.15);
  color: rgba(255,247,239,.72);
  background: rgba(255,255,255,.06);
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
  letter-spacing: .01em;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-btn:hover {
  border-color: rgba(255,255,255,.32);
  color: var(--text);
  background: rgba(255,255,255,.1);
}
.nav-btn.active {
  border-color: rgba(255,255,255,.3);
  color: var(--text);
}
.nav-btn-accent {
  border-color: rgba(255,179,92,.32) !important;
  color: var(--accent) !important;
  background: rgba(255,179,92,.07) !important;
}
.nav-btn-accent:hover {
  border-color: var(--accent) !important;
  background: rgba(255,179,92,.15) !important;
  box-shadow: 0 0 0 3px rgba(255,179,92,.1) !important;
}
.nav-divider {
  width: 1px; height: 18px;
  background: rgba(255,255,255,.1);
  margin: 0 4px;
  flex-shrink: 0;
}

/* User widget (logged-in state) */
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-user-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,247,239,.42);
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav-badge-admin {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 1px 4px;
  border: 1px solid rgba(255,179,92,.28);
  border-radius: 4px;
  opacity: .8;
}

/* Disabled nav button with tooltip */
.nav-btn-disabled-wrap {
  position: relative;
  display: inline-flex;
}
.nav-btn-disabled-wrap button[disabled] {
  opacity: .38;
  cursor: not-allowed;
  pointer-events: none;
}
.nav-btn-disabled-wrap::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(20,18,16,.96);
  border: 1px solid rgba(255,179,92,.22);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 7px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 600;
}
.nav-btn-disabled-wrap:hover::after { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0;
  margin-top: 80px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text-muted); }
.db-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; margin-right: 4px; vertical-align: middle;
}
.db-dot.ok  { background: #4ade80; }
.db-dot.err { background: #f87171; }

/* Footer user area */
.footer-user {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-user-name {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}
.footer-sep { color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════
   ADMIN LAYOUT (moje.php)
   ═══════════════════════════════════════════════════════════ */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 680px) {
  .admin-layout { grid-template-columns: 1fr; }
}

.admin-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.admin-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,179,92,.12);
  border: 1px solid rgba(255,179,92,.25);
  color: var(--accent);
  font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.admin-username {
  font-size: 13px; font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}
.admin-nav-link:hover {
  background: rgba(255,255,255,.07);
  color: var(--text);
}
.admin-nav-link.active {
  background: rgba(255,179,92,.08);
  color: var(--accent);
}
.admin-nav-icon {
  font-size: 14px;
  opacity: .6;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.admin-content { min-width: 0; }

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.admin-action-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  transition: border-color .15s, background .15s, color .15s;
}
.admin-action-card:hover {
  border-color: var(--border-hi);
  background: var(--glass-hi);
  color: var(--text);
}
.admin-action-icon {
  font-size: 24px;
  color: var(--accent);
  opacity: .7;
}
.admin-action-card h3 {
  font-size: 15px; font-weight: 700;
  color: var(--text);
  margin: 0;
}
.admin-action-card p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}
.container-sm {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}
.page-body { padding: 52px 0 80px; }
.section { padding: 60px 0; }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
.section-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.15;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(125deg, #ffd36a 0%, #ff9a4d 55%, #ff6a3d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, box-shadow .15s, transform .1s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  letter-spacing: .01em;
  white-space: nowrap;
}
.btn-lg { padding: 13px 34px; font-size: 16px; }
.btn-sm { padding: 6px 16px; font-size: 12px; }

.btn-accent {
  background: linear-gradient(135deg, #ffd36a 0%, #ff9a4d 52%, #ff6a3d 100%);
  color: #1f0d06;
  box-shadow: 0 4px 20px rgba(255,140,60,.3);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #ffe080 0%, #ffb060 52%, #ff7a4d 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(255,140,60,.45);
}
.btn-ghost {
  background: rgba(255,255,255,.07);
  color: rgba(255,247,239,.75);
  border: 1.5px solid rgba(255,255,255,.13);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  color: var(--text);
  border-color: rgba(255,255,255,.24);
}
:focus-visible { outline: 3px solid var(--accent) !important; outline-offset: 2px; }

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card-site {
  background: linear-gradient(180deg, var(--glass-hi) 0%, var(--glass) 100%);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-site-body { padding: 28px 32px; }
.card-site-header {
  padding: 12px 32px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.04);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER (inner pages)
   ═══════════════════════════════════════════════════════════ */
.page-header {
  padding: 56px 0 44px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 44px;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.1;
}
.page-header h1 em {
  font-style: normal;
  background: linear-gradient(125deg, #ffd36a 0%, #ff9a4d 55%, #ff6a3d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header p { font-size: 15px; color: var(--text-muted); max-width: 560px; }

/* ═══════════════════════════════════════════════════════════
   HERO (homepage)
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}
/* Stage-light glows */
.hero::before {
  content: '';
  pointer-events: none;
  position: absolute;
  top: -60px; left: -60px;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,61,.24) 0%, transparent 65%);
  filter: blur(90px);
  animation: heroFloatA 14s ease-in-out infinite;
}
.hero::after {
  content: '';
  pointer-events: none;
  position: absolute;
  bottom: -80px; right: -60px;
  width: 580px; height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,179,92,.18) 0%, transparent 65%);
  filter: blur(100px);
  animation: heroFloatB 18s ease-in-out infinite;
}
@keyframes heroFloatA {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(55px, -45px); }
  66%       { transform: translate(-28px, 30px); }
}
@keyframes heroFloatB {
  0%, 100% { transform: translate(0, 0); }
  40%       { transform: translate(-55px, 38px); }
  72%       { transform: translate(32px, -24px); }
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--accent);
  opacity: .5;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin-bottom: 22px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(125deg, #ffd36a 0%, #ff9a4d 55%, #ff6a3d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 auto 36px;
  max-width: 520px;
  line-height: 1.65;
}
.hero-sub strong { color: var(--text); }
.hero-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* Hero stat row */
.hero-stats {
  display: flex;
  gap: 2px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 28px;
  text-align: center;
  min-width: 120px;
}
.hero-stat-num {
  font-size: 26px; font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(125deg, #ffd36a 0%, #ff9a4d 55%, #ff6a3d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.hero-stat-label {
  font-size: 11px; font-weight: 500;
  color: var(--text-dim);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════════════════
   MOTIF STRIP
   ═══════════════════════════════════════════════════════════ */
.motif-strip {
  background: rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 11px 0;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.motif-strip-inner {
  display: inline-flex;
  gap: 0;
  animation: scrollLeft 22s linear infinite;
  font-family: 'Courier New', monospace;
  font-size: 13px; font-weight: 700;
  letter-spacing: .18em;
}
.motif-strip-inner span { color: rgba(255,255,255,.08); margin: 0 14px; }
.motif-strip-inner .L { color: rgba(255,179,92,.55); }
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS — steps
   ═══════════════════════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.step-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.step-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 0 24px rgba(255,179,92,.07);
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,179,92,.1);
  border: 1px solid rgba(255,179,92,.22);
  color: var(--accent);
  font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.step-card code {
  font-family: 'Courier New', monospace;
  background: rgba(255,179,92,.1);
  padding: .1em .35em;
  border-radius: 4px;
  font-size: .85em;
  color: var(--accent-3);
}

/* ═══════════════════════════════════════════════════════════
   RULES CARDS
   ═══════════════════════════════════════════════════════════ */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.rule-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color .2s;
}
.rule-card:hover { border-color: var(--border-hi); }
.rule-icon { font-size: 19px; flex-shrink: 0; margin-top: 2px; }
.rule-card h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.rule-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════
   MANIFEST (stránka manifest.php)
   ═══════════════════════════════════════════════════════════ */
.manifest-body {}
.manifest-body .kq { color: var(--accent); font-style: normal; }
.manifest-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 0 0 24px;
  font-size: 18px;
  font-style: italic;
  color: rgba(255,247,239,.82);
  line-height: 1.7;
}
.manifest-body p {
  color: var(--text-muted);
  font-size: 15px; line-height: 1.75;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════
   MANIFEST SECTION (homepage)
   ═══════════════════════════════════════════════════════════ */
.manifest-section {
  background: linear-gradient(180deg, transparent 0%, rgba(255,179,92,.04) 50%, transparent 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.manifest-section blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 0 0 24px;
  font-size: 18px;
  font-style: italic;
  color: rgba(255,247,239,.82);
  line-height: 1.7;
}
.manifest-section p {
  color: var(--text-muted);
  font-size: 15px; line-height: 1.75;
  max-width: 700px;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════
   FORMS (login, etc.)
   ═══════════════════════════════════════════════════════════ */
.form-card {
  background: var(--glass-hi);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-title {
  font-size: 22px; font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text); margin-bottom: 8px;
}
.form-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.5; }
.form-footer { margin-top: 20px; text-align: center; font-size: 13px; color: var(--text-dim); }
.form-footer a { color: var(--accent); text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

.fld-f { margin-bottom: 18px; }
.fld-f label {
  display: block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); margin-bottom: 6px;
}
.fld-f input[type=text],
.fld-f input[type=email],
.fld-f input[type=password] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px;
  font-size: 14px; font-family: inherit;
  background: rgba(255,255,255,.06);
  color: var(--text);
  transition: border-color .12s, box-shadow .12s;
}
.fld-f input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,179,92,.12);
}
.fld-f input::placeholder { color: rgba(255,247,239,.28); }

.form-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; color: var(--text-dim); font-size: 12px;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,.1);
}

/* ═══════════════════════════════════════════════════════════
   SENTENCES LIST
   ═══════════════════════════════════════════════════════════ */
.sentence-list { display: flex; flex-direction: column; gap: 10px; }
.sentence-row {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.sentence-row:hover {
  border-color: var(--border-hi);
  background: var(--glass-hi);
  box-shadow: 0 0 22px rgba(255,179,92,.07);
}
.sentence-row-text {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 19px;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--text);
}
.sentence-row-meta {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: var(--text-muted);
}
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.badge-green  { background: rgba(74,222,128,.1);  border: 1px solid rgba(74,222,128,.25);  color: #4ade80; }
.badge-amber  { background: rgba(255,179,92,.1);  border: 1px solid rgba(255,179,92,.25);  color: var(--accent); }
.badge-slate  { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: var(--text-muted); }
.badge-red    { background: rgba(248,113,113,.1);  border: 1px solid rgba(248,113,113,.25); color: #f87171; }
.badge-muted  { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════
   SUBMISSION LIST (moje-vety.php)
   ═══════════════════════════════════════════════════════════ */
.submission-list { display: flex; flex-direction: column; gap: 12px; }
.submission-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s;
}
.submission-card:hover { border-color: var(--border-hi); }
.submission-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.submission-id {
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  letter-spacing: .04em;
}
.submission-date {
  font-size: 11px; color: var(--text-dim);
  margin-left: auto;
}
.submission-surface {
  font-size: 15px; font-weight: 600;
  color: var(--text);
  font-family: 'Courier New', monospace;
  letter-spacing: .02em;
}
.submission-meta {
  font-size: 11px; color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════
   SENTENCE DETAIL
   ═══════════════════════════════════════════════════════════ */
.sentence-display {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.35;
  color: var(--text);
  padding: 36px 40px;
  background: linear-gradient(135deg, rgba(255,106,61,.06) 0%, rgba(255,179,92,.03) 100%);
  border-left: 4px solid;
  border-image: linear-gradient(to bottom, #ffd36a, #ff9a4d, #ff6a3d) 1;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.meta-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}
.meta-item-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); margin-bottom: 4px;
}
.meta-item-value {
  font-size: 18px; font-weight: 700;
  color: var(--text); line-height: 1.2;
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-dim);
}
.empty-state-icon { font-size: 44px; margin-bottom: 16px; opacity: .35; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   NOTICE / ALERT
   ═══════════════════════════════════════════════════════════ */
.alert {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.alert-warning {
  background: rgba(255,179,92,.08);
  border: 1px solid rgba(255,179,92,.22);
  color: rgba(255,247,239,.82);
}
.alert-ok {
  background: rgba(74,222,128,.07);
  border: 1px solid rgba(74,222,128,.22);
  color: rgba(255,247,239,.82);
}
.alert-ok a { color: #4ade80; }

/* ═══════════════════════════════════════════════════════════
   MISC UTILITIES
   ═══════════════════════════════════════════════════════════ */
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
.mb-24 { margin-bottom: 24px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  :root { --nav-h: 56px; --nav-h-sm: 44px; }
  .nav-inner, .site-nav.scrolled .nav-inner { padding: 8px 16px; height: auto; flex-wrap: wrap; }
  .nav-links { margin-left: 0; flex-wrap: wrap; max-width: 100%; }
  .container, .container-sm { padding: 0 16px; }
  .hero { padding: 72px 0 56px; }
  .page-header { padding: 40px 0 28px; }
  .page-body { padding: 36px 0 60px; }
  .form-card { padding: 28px 20px; }
  .sentence-display { padding: 24px 20px; font-size: 1.5rem; }
  .card-site-body { padding: 20px; }
  .nav-brand-sub { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER THEME TOGGLE
   ═══════════════════════════════════════════════════════════ */
.footer-theme {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-theme-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-right: 3px;
}
.footer-theme-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: transparent;
  transition: border-color .15s, color .15s, background .15s;
  letter-spacing: .01em;
  white-space: nowrap;
}
.footer-theme-btn:hover { border-color: var(--border-hi); color: var(--text-muted); }
.footer-theme-btn.active { border-color: var(--border-hi); color: var(--accent); background: var(--glass); }

/* ═══════════════════════════════════════════════════════════
   MOTIV 1 — světlý (aurora / indigo)
   ═══════════════════════════════════════════════════════════ */
html[data-theme="1"] {
  --bg:         #f3f0ff;
  --bg-raised:  rgba(99,102,241,.06);
  --text:       #1e1b4b;
  --text-muted: rgba(30,27,75,.62);
  --text-dim:   rgba(30,27,75,.38);
  --accent:     #5b21b6;
  --accent-2:   #7c3aed;
  --accent-3:   #4f46e5;
  --glass:      rgba(255,255,255,.75);
  --glass-hi:   rgba(255,255,255,.88);
  --border:     rgba(99,102,241,.14);
  --border-hi:  rgba(99,102,241,.38);
  --shadow:     0 20px 60px rgba(99,102,241,.12);
}

/* Nav — light */
html[data-theme="1"] .site-nav {
  background: rgba(248,245,255,.93) !important;
  border-bottom-color: rgba(99,102,241,.12) !important;
}
html[data-theme="1"] .site-nav.scrolled { box-shadow: 0 2px 36px rgba(99,102,241,.14) !important; }
html[data-theme="1"] .nav-brand-title {
  background: linear-gradient(125deg, #4f46e5 0%, #7c3aed 55%, #a21caf 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="1"] .nav-brand-sub { color: rgba(99,102,241,.5); }
html[data-theme="1"] .nav-link { color: rgba(30,27,75,.52); }
html[data-theme="1"] .nav-link:hover { background: rgba(99,102,241,.07); }
html[data-theme="1"] .nav-link.active { background: rgba(99,102,241,.1); }
html[data-theme="1"] .nav-btn {
  border-color: rgba(99,102,241,.2);
  color: rgba(30,27,75,.62);
  background: rgba(99,102,241,.05);
}
html[data-theme="1"] .nav-btn:hover { border-color: rgba(99,102,241,.4); color: var(--text); background: rgba(99,102,241,.1); }
html[data-theme="1"] .nav-btn.active { border-color: rgba(99,102,241,.35); color: var(--text); }
html[data-theme="1"] .nav-btn-accent {
  border-color: rgba(99,102,241,.32) !important;
  color: var(--accent) !important;
  background: rgba(99,102,241,.08) !important;
}
html[data-theme="1"] .nav-btn-accent:hover {
  border-color: var(--accent) !important;
  background: rgba(99,102,241,.15) !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1) !important;
}
html[data-theme="1"] .nav-divider { background: rgba(99,102,241,.15); }
html[data-theme="1"] .nav-badge-admin { border-color: rgba(91,33,182,.3); }

/* Footer — light */
html[data-theme="1"] .site-footer {
  background: rgba(243,240,255,.65);
  border-top-color: rgba(99,102,241,.12);
}

/* Links — light */
html[data-theme="1"] a { text-decoration-color: rgba(91,33,182,.28); }
html[data-theme="1"] a:hover { text-decoration-color: rgba(79,70,229,.5); }
html[data-theme="1"] a:focus-visible { outline-color: rgba(91,33,182,.6); }

/* Accent gradients → indigo */
html[data-theme="1"] .nav-brand-title,
html[data-theme="1"] .section-title em,
html[data-theme="1"] .page-header h1 em,
html[data-theme="1"] .hero h1 em,
html[data-theme="1"] .hero-stat-num {
  background: linear-gradient(125deg, #4f46e5 0%, #7c3aed 55%, #a21caf 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Buttons — light */
html[data-theme="1"] .btn-accent {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 52%, #a21caf 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.3);
}
html[data-theme="1"] .btn-accent:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 52%, #9333ea 100%);
  box-shadow: 0 6px 28px rgba(99,102,241,.45);
}
html[data-theme="1"] .btn-ghost {
  background: rgba(99,102,241,.07);
  color: rgba(30,27,75,.65);
  border-color: rgba(99,102,241,.17);
}
html[data-theme="1"] .btn-ghost:hover {
  background: rgba(99,102,241,.12);
  color: var(--text);
  border-color: rgba(99,102,241,.28);
}

/* Cards / page structure — light */
html[data-theme="1"] .page-header { border-bottom-color: rgba(99,102,241,.12); }
html[data-theme="1"] .card-site-header {
  border-bottom-color: rgba(99,102,241,.1);
  background: rgba(245,243,255,.7);
}

/* Hero glows — light */
html[data-theme="1"] .hero::before { background: radial-gradient(circle, rgba(99,102,241,.22) 0%, transparent 65%); }
html[data-theme="1"] .hero::after  { background: radial-gradient(circle, rgba(139,92,246,.18) 0%, transparent 65%); }

/* Steps — light */
html[data-theme="1"] .step-num { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.22); }
html[data-theme="1"] .step-card:hover { box-shadow: 0 0 24px rgba(99,102,241,.08); }

/* Sentence display — light */
html[data-theme="1"] .sentence-display {
  background: linear-gradient(135deg, rgba(99,102,241,.06) 0%, rgba(139,92,246,.03) 100%);
  border-image: linear-gradient(to bottom, #4f46e5, #7c3aed, #a21caf) 1;
}

/* Manifest — light */
html[data-theme="1"] .manifest-body blockquote,
html[data-theme="1"] .manifest-section blockquote { color: rgba(30,27,75,.72); }
html[data-theme="1"] .manifest-section {
  background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,.04) 50%, transparent 100%);
  border-top-color: rgba(99,102,241,.08);
  border-bottom-color: rgba(99,102,241,.08);
}

/* Motif strip — light */
html[data-theme="1"] .motif-strip {
  background: rgba(240,237,255,.6);
  border-top-color: rgba(99,102,241,.08);
  border-bottom-color: rgba(99,102,241,.08);
}
html[data-theme="1"] .motif-strip-inner span { color: rgba(30,27,75,.08); }
html[data-theme="1"] .motif-strip-inner .L   { color: rgba(99,102,241,.45); }

/* Forms — light */
html[data-theme="1"] .fld-f input[type=text],
html[data-theme="1"] .fld-f input[type=email],
html[data-theme="1"] .fld-f input[type=password] {
  border-color: rgba(99,102,241,.17);
  background: rgba(255,255,255,.72);
}
html[data-theme="1"] .fld-f input:focus { box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
html[data-theme="1"] .fld-f input::placeholder { color: rgba(30,27,75,.28); }
html[data-theme="1"] .form-divider::before,
html[data-theme="1"] .form-divider::after { background: rgba(99,102,241,.12); }

/* Admin — light */
html[data-theme="1"] .admin-avatar { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.25); }
html[data-theme="1"] .admin-nav-link:hover { background: rgba(99,102,241,.07); }
html[data-theme="1"] .admin-nav-link.active { background: rgba(99,102,241,.1); }

/* Alerts — light */
html[data-theme="1"] .alert-warning { color: #3730a3; }
html[data-theme="1"] .alert-ok { color: #166534; }

/* Sentence row glow — light */
html[data-theme="1"] .sentence-row:hover { box-shadow: 0 0 22px rgba(99,102,241,.07); }

/* Revision workflow uses the existing site cards and direct, wrapping navigation. */
.nav-inner, .site-nav.scrolled .nav-inner { height: auto; min-height: var(--nav-h-sm); padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.workflow { padding-top: 36px; padding-bottom: 60px; }
.workflow h1, .workflow h2, .workflow h3 { margin: 20px 0 12px; }
.workflow .card-site { margin: 20px 0; }
.workflow .sentence-text { font-size: 1.5rem; overflow-wrap: anywhere; }
.submission-summary { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 6px 16px; margin: 16px 0; }
.submission-summary dd { margin: 0; overflow-wrap: anywhere; }
.declaration { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; font-size: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; }
.plain-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-mutation { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.review-mutation label { display: flex; flex-direction: column; gap: 6px; flex-basis: 100%; }
.review-mutation textarea, .review-mutation input[type="text"] { width: 100%; box-sizing: border-box; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); padding: 10px; font: inherit; }
.review-mutation textarea { min-height: 90px; }
.review-mutation button:disabled { opacity: .45; cursor: default; }
@media (max-width: 680px) { .nav-links { justify-content: flex-start; } .nav-link { padding: 6px 9px; } .workflow { padding: 24px 16px 40px; } }
.admin-profile > div { min-width: 0; }
.admin-username, .page-header h1 { overflow-wrap: anywhere; }
.token-declaration dt { overflow-wrap: anywhere; }
.token-declaration .token-declaration { display: block; }
.token-declaration .token-declaration dd { margin-bottom: 8px; }
