/* ═══════════════════════════════════════════════════════
   Erzurum Etkinlik — Tasarım Sistemi v3
   Modern • Canlı • Mobil Uyumlu
   ═══════════════════════════════════════════════════════ */

:root {
  /* ── Primary: Mor-Fuşya degrade ─────────────── */
  --primary:       #7c3aed;
  --primary-hover: #6d28d9;
  --primary-dark:  #5b21b6;
  --primary-light: #a78bfa;
  --primary-soft:  #f5f3ff;
  --primary-muted: #ede9fe;
  --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --primary-gradient-hover: linear-gradient(135deg, #6d28d9 0%, #be185d 100%);

  /* ── Secondary: Turuncu-Sarı vurgu ──────────── */
  --secondary:       #f59e0b;
  --secondary-hover: #d97706;
  --secondary-soft:  #fffbeb;
  --secondary-border:#fde68a;

  /* ── Accent: Turkuaz ────────────────────────── */
  --accent:        #0891b2;
  --accent-hover:  #0e7490;
  --accent-soft:   #ecfeff;
  --accent-muted:  #cffafe;

  /* ── Neutrals ───────────────────────────────── */
  --bg:          #fafbfc;
  --surface:     #ffffff;
  --surface-2:   #f8fafc;
  --border:      #e2e8f0;
  --border-focus:#a78bfa;
  --text:        #1e1b2e;
  --text-2:      #374151;
  --muted:       #6b7280;
  --faint:       #9ca3af;

  /* ── Semantic ───────────────────────────────── */
  --success:       #059669;
  --success-soft:  #ecfdf5;
  --success-border:#a7f3d0;
  --warn:          #d97706;
  --warn-soft:     #fffbeb;
  --warn-border:   #fde68a;
  --danger:        #dc2626;
  --danger-soft:   #fef2f2;
  --danger-border: #fecaca;

  /* ── Header ─────────────────────────────────── */
  --header-bg: linear-gradient(135deg, #312e81 0%, #7c3aed 50%, #db2777 100%);
  --header-text: #ffffff;

  /* ── Shape & Shadow ─────────────────────────── */
  --r:           14px;
  --r-sm:        10px;
  --r-xs:        6px;
  --shadow-xs:   0 1px 2px rgba(124,58,237,.04);
  --shadow:      0 1px 3px rgba(124,58,237,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(124,58,237,.08), 0 2px 4px rgba(0,0,0,.03);
  --shadow-lg:   0 12px 32px rgba(124,58,237,.1), 0 4px 8px rgba(0,0,0,.04);

  /* ── Typography ─────────────────────────────── */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* Legacy aliases for compatibility */
  --navy:   var(--primary-dark);
  --navy-2: var(--primary);
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.pwa-standalone .site-header {
  padding-top: env(safe-area-inset-top);
}
.pwa-standalone .main-content {
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

/* Embed mode: harici sayfada şeffaf render */
body.embed-mode {
  background: transparent !important;
  min-height: 0 !important;
  display: block !important;
}
body.embed-mode .site-header,
body.embed-mode .site-footer {
  display: none !important;
}
body.embed-mode .main-content {
  padding-top: .25rem;
  padding-bottom: .25rem;
  flex: none !important;
}
body.embed-mode .main-content > .container {
  max-width: 100%;
  padding: 0;
}
body.embed-mode .upload-form {
  margin-bottom: 0 !important;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ── Container ────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container--header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.container--footer { padding-top: 1.5rem; padding-bottom: 1.75rem; }

@media (max-width: 640px) {
  .container { padding: 0 1rem; }
}

/* ── Header ───────────────────────────────────── */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(124,58,237,.15);
}

.site-header .container--header { padding-top: .85rem; padding-bottom: .85rem; }

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none !important; color: #fff !important;
  font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px; height: 34px; border-radius: 999px;
  overflow: hidden;
  background-image: url("/static/images/site-logo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .25);
  border: 1px solid rgba(255, 255, 255, .3);
}

.site-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: .2rem;
}
.site-nav > a {
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: .85rem; font-weight: 500;
  padding: .45rem .75rem; border-radius: var(--r-xs);
  transition: all .15s;
}
.site-nav > a:hover { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }

.site-nav-logout { display: inline; margin: 0; padding: 0; }
.site-nav-logout-btn {
  background: transparent; border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.9); font-size: .85rem; font-weight: 500;
  padding: .4rem .75rem; border-radius: var(--r-xs);
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.site-nav-logout-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }

.settings-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.settings-menu-wrap--nav {
  margin-left: auto;
}
.settings-toggle {
  border-color: rgba(255,255,255,.35) !important;
  color: #fff !important;
  background: rgba(255,255,255,.06) !important;
}
.settings-toggle:hover { background: rgba(255,255,255,.15) !important; }
.settings-notification-text {
  font-size: .75rem;
  color: rgba(255,255,255,.95);
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}
.settings-notification-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 6px;
  background: #ef4444;
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.settings-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
  padding: 6px;
  z-index: 130;
}
.settings-menu-link {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: #111827;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: .6rem .75rem;
  font-size: .875rem;
  font-weight: 500;
}
.settings-menu-notification-count {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  border-radius: 999px;
  padding: 0 7px;
  background: #ef4444;
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.settings-menu-link:hover { background: #f3f4f6; color: #111827; text-decoration: none; }
.settings-menu-link.is-active { background: #ede9fe; color: #5b21b6; font-weight: 600; }
.settings-menu-form { margin: 0; }
.settings-menu-link-btn {
  cursor: pointer;
  font-family: inherit;
}

.mobile-only-install { display: none !important; }
@media (max-width: 768px) {
  .mobile-only-install { display: inline-flex !important; }
  .settings-notification-text { display: none; }
  .settings-menu-wrap--nav {
    margin-left: 0;
    width: 100%;
  }
  .settings-menu-wrap--nav .settings-toggle {
    width: 100%;
    justify-content: flex-start;
  }
  .settings-menu-wrap--nav .settings-menu {
    position: static;
    width: 100%;
    margin-top: .45rem;
  }
}

/* ── Mobile nav toggle ────────────────────────── */
.nav-toggle {
  display: none;
  background: transparent; border: none; cursor: pointer;
  padding: .5rem; color: #fff; line-height: 0;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .container--header {
    position: relative;
    gap: .5rem;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + .35rem);
    width: auto;
    order: 10;
    flex-direction: column; align-items: stretch;
    background: rgba(49,46,129,.95);
    border-radius: var(--r-sm);
    padding: .5rem;
    margin-top: 0;
    backdrop-filter: blur(8px);
    max-height: 75vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 140;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .28);
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: .6rem .85rem; border-radius: var(--r-xs); }
  .site-nav > a:hover { background: rgba(255,255,255,.1); }
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: .85rem;
}
.site-footer p { margin: 0; }

.main-content { flex: 1; padding: 2rem 0 3rem; }

@media (max-width: 640px) {
  .main-content { padding: 1.25rem 0 2rem; }
}

/* ── Typography ───────────────────────────────── */
.page-head { margin-bottom: 2rem; }

.page-title {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--text); margin: 0 0 .4rem; line-height: 1.25;
}
.page-title--public { font-size: clamp(1.5rem, 4vw, 2.1rem); }

.page-lead { margin: 0; color: var(--muted); font-size: .95rem; max-width: 52ch; line-height: 1.6; }

.section-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0 0 .75rem; }
.section-title--sm { font-size: 1rem; }

.text-muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-readable { line-height: 1.7; white-space: pre-wrap; }

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.1rem; font-size: .875rem; font-weight: 600;
  font-family: inherit; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); text-decoration: none !important;
  cursor: pointer; line-height: 1.3;
  transition: all .2s ease;
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-focus); box-shadow: var(--shadow); text-decoration: none !important; }
.btn:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary-gradient); border-color: transparent;
  color: #fff !important; box-shadow: 0 2px 8px rgba(124,58,237,.25);
}
.btn-primary:hover { background: var(--primary-gradient-hover); border-color: transparent; box-shadow: 0 4px 12px rgba(124,58,237,.3); }

.btn-secondary {
  background: var(--surface); border-color: var(--primary-light);
  color: var(--primary) !important;
}
.btn-secondary:hover { background: var(--primary-soft); border-color: var(--primary); }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff !important; box-shadow: 0 2px 6px rgba(220,38,38,.2); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2) !important; box-shadow: none; }
.btn-ghost:hover { background: rgba(124,58,237,.05); color: var(--primary) !important; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-sm { padding: .38rem .7rem; font-size: .8rem; }
.btn-lg { padding: .7rem 1.4rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-disabled, span.btn-disabled { opacity: .45; pointer-events: none; cursor: not-allowed; }

/* Loading state */
.btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading::after {
  content: ''; width: 14px; height: 14px; border: 2px solid transparent;
  border-top-color: currentColor; border-radius: 50%;
  animation: btn-spin .6s linear infinite; margin-left: .35rem;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Mobile full-width buttons */
@media (max-width: 480px) {
  .hero-actions .btn-lg { width: 100%; justify-content: center; }
  .container--header {
    flex-wrap: nowrap;
    align-items: center;
  }
  .brand {
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 52px);
  }
  .brand-text {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(.95rem, 3.8vw, 1.05rem);
  }
  .nav-toggle {
    margin-left: auto;
    flex-shrink: 0;
  }
}

/* ── Badge / Status ───────────────────────────── */
.badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: .2rem .55rem; border-radius: var(--r-xs);
}

.status-badge {
  display: inline-block; font-size: .75rem; font-weight: 600;
  padding: .22rem .65rem; border-radius: 999px;
  background: #f1f5f9; color: var(--muted);
}
.status-published { background: var(--success-soft); color: var(--success); }
.status-pending   { background: var(--warn-soft); color: var(--warn); }
.status-draft     { background: var(--primary-muted); color: var(--primary); }
.status-rejected  { background: var(--danger-soft); color: var(--danger); }
.status-archived  { background: #f3f4f6; color: #6b7280; }

/* ── Notice ───────────────────────────────────── */
.notice {
  padding: .85rem 1.1rem; border-radius: var(--r-sm);
  margin-bottom: 1rem; font-size: .9rem; line-height: 1.5;
  border: 1px solid var(--border);
}
.notice-error   { background: var(--danger-soft); border-color: var(--danger-border); color: #991b1b; }
.notice-success { background: var(--success-soft); border-color: var(--success-border); color: #065f46; }

/* ── Cards ────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
  box-shadow: var(--shadow); margin-bottom: 1.25rem;
}
.form-card--compact { padding: 1.1rem 1.25rem; }
.form-card--narrow { max-width: 460px; margin-left: auto; margin-right: auto; margin-top: 2rem; }
.form-card--caption { margin-top: .5rem; }
.form-card--submitter { border-left: 3px solid var(--primary); }

/* ── Event grid (kartlar) ─────────────────────── */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.event-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.event-select-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .6rem .85rem 0;
  font-size: .82rem;
  color: var(--text-2);
}
.event-select-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.badge-new {
  margin-left: auto;
  color: #065f46;
  background: #dcfce7;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.event-card-image-wrap { display: block; text-decoration: none; color: inherit; }

.event-card-image {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  background: var(--surface-2); display: block;
}
.event-card-image--empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: .85rem; aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
}

.event-card-body {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex; flex-direction: column; gap: .35rem; flex: 1;
}

.event-card-title { font-size: .95rem; font-weight: 700; margin: 0; line-height: 1.35; word-wrap: break-word; overflow-wrap: break-word; }
.event-card-title a { color: var(--text); text-decoration: none; }
.event-card-title a:hover { color: var(--primary); }

.event-meta { display: flex; flex-direction: column; gap: .15rem; font-size: .85rem; color: var(--muted); flex: 1; }
.event-meta-line strong { color: var(--text); font-weight: 600; }

.event-card-footer {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .5rem;
  margin-top: .5rem; padding-top: .65rem;
  border-top: 1px solid var(--border);
}

.empty-hint { color: var(--muted); font-size: .9rem; }

/* ── Stats ────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .85rem; margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.1rem .9rem;
  text-align: center; box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-value { display: block; font-size: 1.65rem; font-weight: 800; color: var(--primary); line-height: 1.15; }
.stat-label { font-size: .78rem; color: var(--muted); margin-top: .2rem; display: block; }

.source-pills {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .5rem .85rem;
  font-size: .88rem;
}

/* ── Toolbar / Filters ────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.toolbar--spaced { margin-bottom: 1.5rem; }
.bulk-select-bar { margin: -.35rem 0 1rem; }
.bulk-select-count { font-size: .9rem; color: var(--muted); }

.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem; margin-bottom: 1.75rem;
}
.filter-bar-label { font-size: .85rem; color: var(--muted); margin-right: .25rem; }
.dashboard-toolbar {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: linear-gradient(180deg, #fcfbff 0%, #ffffff 100%);
  padding: 1rem 1rem .55rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.dashboard-toolbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .65rem;
}
.dashboard-view-switch {
  display: inline-flex;
  gap: .35rem;
  padding: .25rem;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.dashboard-view-switch .filter-pill {
  margin: 0;
}
.dashboard-sort-form {
  display: grid;
  grid-template-columns: auto minmax(260px, 320px) auto;
  align-items: center;
  gap: .5rem;
}
.dashboard-select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: #fff;
  color: var(--text);
  padding: .4rem .55rem;
  font-size: .85rem;
}
.dashboard-sort-form .filter-bar-label {
  margin-right: 0;
  white-space: nowrap;
}
.dashboard-sort-form .btn {
  white-space: nowrap;
}
.dashboard-filter-pills {
  margin-bottom: .2rem;
}

.filter-pill {
  display: inline-block; padding: .35rem .75rem;
  border-radius: 999px; font-size: .85rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); text-decoration: none; transition: all .15s;
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; background: var(--primary-soft); }
.filter-pill.is-active { background: var(--primary-gradient); border-color: transparent; color: #fff; }

/* ── Dashboard sections ───────────────────────── */
.dashboard-section {
  margin-bottom: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.section-desc { margin: -.15rem 0 1rem; font-size: .88rem; color: var(--muted); }

@media (max-width: 640px) {
  .dashboard-section { padding: 1rem; }
}

/* ── Tables ───────────────────────────────────── */
.table-fallback { margin-top: 1.25rem; font-size: .88rem; }
.table-fallback summary { cursor: pointer; color: var(--muted); padding: .5rem 0; font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-sm); }

.data-table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
}
.data-table th, .data-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); text-align: left; }
.data-table th { font-weight: 600; color: var(--text-2); background: var(--surface-2); }
.data-table tr:last-child td { border-bottom: none; }
.data-table--compact th, .data-table--compact td { padding: .45rem .6rem; }
.dashboard-table-wrap {
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: #fff;
}
.dashboard-events-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}
.dashboard-events-table tbody tr:nth-child(even) {
  background: #fcfcff;
}
.dashboard-events-table tbody tr:hover {
  background: #f3f4ff;
}
.dashboard-col-title {
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-col-submitter {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile table card fallback */
@media (max-width: 640px) {
  .data-table { font-size: .8rem; }
  .data-table th, .data-table td { padding: .45rem .5rem; }
}

/* ── Stack form (admin edit, login) ───────────── */
.stack-form label {
  display: block; margin-bottom: 1rem;
  font-size: .88rem; font-weight: 600; color: var(--text-2);
}
.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%; margin-top: .35rem;
  padding: .6rem .8rem; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-family: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem 1rem;
}
.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .form-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   UPLOAD FORM
   ═══════════════════════════════════════════════════════ */
.upload-form { margin-bottom: 2rem; }
.upload-form .form-hint {
  margin: .35rem 0 1.4rem;
  font-size: .9rem;
  max-width: 66ch;
}

.page-head--form {
  margin-bottom: 1.15rem;
}
.page-head--form .page-title {
  max-width: 22ch;
}
.page-head--form .page-lead {
  max-width: 58ch;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 440px);
  gap: 2rem;
  align-items: start;
}
@media (max-width: 920px) {
  .upload-layout { grid-template-columns: 1fr; }
  .upload-sidebar {
    order: 0;
    position: static;
    top: auto;
  }
}

/* Field groups */
.field-group {
  border: none; margin: 0 0 1.5rem; padding: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.75rem; box-shadow: var(--shadow);
}
.field-group--compact { padding: 1.25rem; }

.field-group-title {
  font-size: .95rem; font-weight: 700; color: var(--text);
  margin: 0 0 1.25rem; padding: 0 0 .75rem;
  border-bottom: 1px solid var(--border);
}

.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }

.field-label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--text-2); margin-bottom: .4rem;
}

.req { color: var(--danger); font-weight: 700; }

.field-input {
  display: block; width: 100%;
  padding: .62rem .85rem; font-size: .925rem;
  font-family: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.field-input::placeholder { color: var(--faint); }
select.field-input { cursor: pointer; }
textarea.field-input { resize: vertical; min-height: 5.5rem; }
.field-counter {
  margin: .4rem 0 0;
  font-size: .78rem;
  color: var(--muted);
  text-align: right;
}
.field-counter.is-over-limit { color: var(--danger); font-weight: 600; }

.field-row { display: grid; gap: 1rem; margin-bottom: 1.1rem; }
.field-row .field { margin-bottom: 0; }
.field-row--1 { grid-template-columns: 1fr; }
.field-row--2 { grid-template-columns: 1fr 1fr; }
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) {
  .field-row--2, .field-row--3 { grid-template-columns: 1fr; }
}
.field-row + .field { margin-top: 0; }
.venue-suggestions {
  margin-top: .38rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  max-height: 220px;
  overflow-y: auto;
}
.venue-suggestions.is-hidden { display: none; }
.venue-suggestion-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: .56rem .72rem;
  font-size: .88rem;
  cursor: pointer;
}
.venue-suggestion-item:last-child { border-bottom: 0; }
.venue-suggestion-item:hover,
.venue-suggestion-item:focus-visible {
  outline: none;
  background: var(--primary-soft);
}
.submit-validation-hint {
  margin: .15rem 0 0;
  font-size: .82rem;
  color: var(--danger);
  line-height: 1.45;
  display: none;
  text-align: left;
}
.submit-validation-hint.is-visible { display: block; }
.section-locked {
  position: relative;
  opacity: .58;
  pointer-events: none;
  filter: grayscale(.18);
}
.section-locked::before {
  content: attr(data-lock-reason);
  position: absolute;
  top: .7rem;
  right: .8rem;
  z-index: 4;
  font-size: .72rem;
  color: var(--primary);
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--primary-light);
  border-radius: var(--r-xs);
  padding: .2rem .45rem;
}

/* Upload sidebar */
.upload-sidebar { position: sticky; top: 5.5rem; }

.upload-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
  box-shadow: var(--shadow); margin-bottom: 1rem;
}
.upload-card--compact { padding: 1.1rem; }

.upload-editor-actions {
  margin-top: .75rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.upload-drop {
  position: relative;
  border: 2px dashed var(--primary-light); border-radius: var(--r);
  background: var(--primary-soft);
  transition: all .2s; cursor: pointer;
}
.upload-drop:hover { border-color: var(--primary); background: var(--primary-muted); }
.upload-drop.is-dragover { border-color: var(--primary); background: var(--primary-muted); border-style: solid; }

.upload-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }

.upload-drop-content {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem 1rem; text-align: center; pointer-events: none;
}

.upload-icon { width: 44px; height: 44px; color: var(--primary-light); margin-bottom: .75rem; }
.upload-drop-text { font-size: .9rem; color: var(--muted); margin: 0 0 .3rem; line-height: 1.5; }
.upload-drop-text strong { color: var(--primary); }
.upload-drop-hint { font-size: .78rem; color: var(--faint); margin: 0; }
.upload-select-btn {
  pointer-events: auto;
  margin: .35rem 0 .55rem;
  border: 1px solid var(--primary-light);
  background: #fff;
  color: var(--primary);
  border-radius: var(--r-sm);
  padding: .48rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.upload-select-btn:hover {
  background: var(--primary-soft);
}

.upload-preview { position: relative; }
.upload-preview img {
  width: 100%; display: block; border-radius: calc(var(--r) - 2px);
  max-height: 320px; object-fit: contain; background: var(--surface-2);
}
.upload-preview-remove {
  position: absolute; top: .5rem; right: .5rem; z-index: 3;
  width: 2rem; height: 2rem; border-radius: 50%;
  border: none; background: rgba(0,0,0,.6); color: #fff;
  font-size: 1.15rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: background .15s;
}
.upload-preview-remove:hover { background: rgba(0,0,0,.8); }

.upload-tip { font-size: .8rem; color: var(--muted); margin: .75rem 0 0; }

.consent-check {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .85rem; color: var(--muted); line-height: 1.5;
  margin-bottom: 1rem; cursor: pointer;
}
.consent-check input[type="checkbox"] {
  margin-top: .2rem; flex-shrink: 0;
  width: 1.1rem; height: 1.1rem; accent-color: var(--primary);
}

.upload-submit { font-size: 1rem; padding: .75rem 1.5rem; }
.upload-submit-row {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}
.upload-submit-row--inside { align-items: stretch; margin-top: .9rem; }
.upload-submit-row--inside .upload-submit { width: 100%; }
.submit-recaptcha-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}
.submit-recaptcha-wrap .g-recaptcha {
  transform-origin: center top;
}

.ig-live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: .2rem;
}
@media (max-width: 560px) {
  .ig-live-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .upload-card { padding: 1rem; }
  .upload-card--compact { padding: .9rem; }
  .ig-live-post-media { aspect-ratio: 4 / 5; }
  .ig-live-story-media {
    aspect-ratio: 9 / 13;
    max-height: 420px;
    margin: 0 auto;
  }
  .ig-live-caption { font-size: .7rem; }
  .ig-live-story-title { font-size: .84rem; }
  .ig-live-story-date { font-size: .78rem; }
  .ig-live-story-venue { font-size: .72rem; }
}
.ig-live-card {
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .55rem;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}
.ig-live-title {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ig-live-phone {
  position: relative;
  border: 1px solid #dbe1ea;
  border-radius: .85rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
}
.ig-live-post-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .6rem;
  border-bottom: 1px solid #eef2f7;
  font-size: .72rem;
}
.ig-live-avatar {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  overflow: hidden;
  display: block;
  object-fit: cover;
  background: #fff;
  border: 1px solid #dbe1ea;
  flex-shrink: 0;
}
.ig-live-avatar--sm {
  width: .95rem;
  height: .95rem;
}
.ig-live-username {
  font-weight: 700;
  color: #0f172a;
}
.ig-live-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: .86rem;
  height: .86rem;
  border-radius: 999px;
  background: #0ea5e9;
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  line-height: 1;
}
.ig-live-verified--sm {
  width: .78rem;
  height: .78rem;
  font-size: .54rem;
}
.ig-live-more {
  margin-left: auto;
  color: #64748b;
  letter-spacing: .08em;
}
.ig-live-post-media,
.ig-live-story-media {
  border: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #f3e8ff, #fce7f3);
  position: relative;
}
.ig-live-post-media { aspect-ratio: 4 / 5; }
.ig-live-story-media { aspect-ratio: 9 / 16; }
.ig-live-post-media img,
.ig-live-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.ig-live-post-media .ig-live-post-template,
.ig-live-story-media .ig-live-story-template {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}
.ig-live-post-fill,
.ig-live-story-fill {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  max-width: none;
  max-height: none;
  background: transparent;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(1);
}
.ig-live-post-crop,
.ig-live-story-crop {
  position: absolute;
  overflow: hidden;
  z-index: 2;
}
.ig-live-post-crop {
  left: 12.5%;
  top: 17.2%;
  width: 75%;
  height: 75.6%;
}
.ig-live-story-crop {
  left: 12.32%;
  top: 22.45%;
  width: 75.18%;
  height: 53.23%;
}
.ig-live-post-media.has-media img,
.ig-live-story-media.has-media img {
  display: block;
}
.ig-live-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: .8rem;
  text-align: center;
  padding: .8rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(236, 72, 153, .16), transparent 40%),
    radial-gradient(circle at 80% 78%, rgba(59, 130, 246, .17), transparent 40%);
}
.ig-live-post-media.has-media .ig-live-media-placeholder,
.ig-live-story-media.has-media .ig-live-media-placeholder {
  display: none;
}
.ig-live-post-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .52rem .12rem;
  color: #0f172a;
  font-size: .86rem;
}
.ig-live-post-save {
  margin-left: auto;
}
.ig-live-caption {
  margin: .22rem 0 .45rem;
  padding: 0 .54rem;
  font-size: .74rem;
  line-height: 1.4;
  color: #334155;
  min-height: 2.3em;
  white-space: pre-line;
}
.ig-live-story-top {
  position: absolute;
  z-index: 2;
  width: 100%;
  padding: .4rem .45rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, .45), rgba(15, 23, 42, 0));
}
.ig-live-story-progress {
  height: .13rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  margin-bottom: .3rem;
}
.ig-live-story-meta {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: #fff;
  font-size: .67rem;
}
.ig-live-story-time {
  margin-left: auto;
  opacity: .92;
}
.ig-live-story-text {
  position: absolute;
  z-index: 2;
  left: .45rem;
  right: .45rem;
  bottom: .6rem;
  margin: 0;
  padding: .32rem .4rem;
  border-radius: .38rem;
  background: rgba(15, 23, 42, .45);
  color: #fff;
  font-size: .72rem;
  line-height: 1.35;
  min-height: 2.1em;
  white-space: pre-line;
}

/* Story template-aligned text overlays (erzurum_event_story_v1) */
.ig-live-story-title,
.ig-live-story-date,
.ig-live-story-venue {
  position: absolute;
  z-index: 3;
  left: 8.5%;
  right: 8.5%;
  margin: 0;
  color: rgba(20, 20, 20, .92);
  text-align: center;
  text-shadow: none;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
.ig-live-story-title {
  top: 18%;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: .92rem;
  line-height: 1.15;
  max-height: 2.4em;
  overflow: hidden;
}
.ig-live-story-title.is-multiline {
  top: 15.8%;
  font-size: .84rem;
  line-height: 1.1;
  max-height: 2.2em;
}
.ig-live-story-date {
  top: 80%;
  font-weight: 700;
  font-size: .82rem;
}
.ig-live-story-venue {
  top: 83.5%;
  font-weight: 600;
  font-size: .76rem;
  color: rgba(40, 40, 40, .88);
}

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

.admin-notif-dashboard {
  max-width: 1240px;
  margin: 0 auto;
}

.admin-notif-hero {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem 1.25rem;
  background:
    radial-gradient(circle at 16% 16%, rgba(124, 58, 237, .12), transparent 42%),
    radial-gradient(circle at 85% 85%, rgba(236, 72, 153, .11), transparent 42%),
    linear-gradient(160deg, #ffffff 0%, #f8f7ff 58%, #fff8fc 100%);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.admin-notif-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-notif-badge {
  margin-bottom: .45rem;
}

.admin-notif-title {
  margin: 0 0 .42rem;
  letter-spacing: -.02em;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
}

.admin-notif-lead {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.admin-notif-actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}

.admin-notif-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .85rem;
}

.admin-notif-stat-card {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  padding: .85rem .9rem;
}

.admin-notif-stat-label {
  margin: 0 0 .24rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}

.admin-notif-stat-value {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.15;
}

.admin-notif-push-state {
  margin-bottom: 1rem;
}

.admin-notif-alert {
  margin: 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  padding: .7rem .85rem;
  font-size: .9rem;
}

.admin-notif-alert--ok {
  background: var(--success-soft);
  border-color: var(--success-border);
  color: #065f46;
}

.admin-notif-alert--warn {
  background: var(--warn-soft);
  border-color: var(--warn-border);
  color: #92400e;
}

.admin-notif-alert--error {
  background: var(--danger-soft);
  border-color: var(--danger-border);
  color: #991b1b;
}

.admin-notif-error {
  margin-top: .75rem;
}

.admin-notif-list-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.admin-notif-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .85rem;
}

.admin-notif-list-title {
  margin: 0 0 .2rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.admin-notif-list-sub {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.admin-notif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: .8rem;
}

.admin-notif-item {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: .8rem .85rem;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, opacity .14s ease;
}

.admin-notif-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.admin-notif-item:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
  border-color: var(--primary);
}

.admin-notif-item.is-read {
  opacity: .72;
  background: var(--surface-2);
}

.admin-notif-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .6rem;
}

.admin-notif-item-title {
  margin: 0 0 .45rem;
  font-size: .98rem;
  line-height: 1.35;
  color: var(--text);
}

.admin-notif-item-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  color: #5b21b6;
  font-size: .72rem;
  font-weight: 700;
  padding: .18rem .5rem;
  white-space: nowrap;
}

.admin-notif-item-status.is-read {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.admin-notif-item-msg {
  margin: 0 0 .6rem;
  color: var(--text-2);
  font-size: .88rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.1em;
}

.admin-notif-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: .78rem;
  gap: .55rem;
}

.admin-notif-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary);
  flex: 0 0 auto;
}

.admin-notif-item.is-read .admin-notif-dot {
  background: #94a3b8;
}

.admin-notif-empty {
  border: 1px dashed var(--border-focus);
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, #fafaff 0%, #f8fafc 100%);
  padding: 1.4rem 1rem;
  text-align: center;
  grid-column: 1 / -1;
}

.admin-notif-empty-title {
  margin: 0 0 .35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.admin-notif-empty-text {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 980px) {
  .admin-notif-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .admin-notif-title {
    font-size: 1.4rem;
  }
  .admin-notif-list-card {
    padding: .85rem;
  }
  .admin-notif-stats {
    grid-template-columns: 1fr;
  }
  .admin-notif-actions .btn {
    flex: 1 1 auto;
    min-width: 180px;
  }
}

@media (max-width: 480px) {
  .admin-notif-hero,
  .admin-notif-list-card {
    padding: .8rem;
  }
  .admin-notif-actions {
    width: 100%;
  }
  .admin-notif-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 920px) {
  .upload-submit-row { align-items: stretch; }
  .upload-submit-row .upload-submit { width: 100%; }
}
@media (max-width: 560px) {
  .submit-recaptcha-wrap {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ═══════════════════════════════════════════════════════
   ADMIN DETAIL
   ═══════════════════════════════════════════════════════ */
.admin-breadcrumb { margin-bottom: .75rem; }
.breadcrumb-link { font-size: .88rem; text-decoration: none; color: var(--muted); }
.breadcrumb-link:hover { color: var(--primary); text-decoration: none; }

.admin-event-header { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.admin-event-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: .65rem; }
.admin-event-header-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-event-title { margin: 0 0 .4rem; }

.quick-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: .85rem;
}
.quick-status-card {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,246,255,.96));
  padding: .85rem .95rem;
}
.quick-status-card--accordion { padding: 0; overflow: hidden; }
.quick-status-summary {
  list-style: none;
  cursor: pointer;
  padding: .85rem .95rem;
}
.quick-status-summary::-webkit-details-marker { display: none; }
.quick-status-summary::after {
  content: "Detayları aç";
  display: inline-block;
  margin-top: .4rem;
  font-size: .76rem;
  color: var(--muted);
}
.quick-status-card--accordion[open] .quick-status-summary::after { content: "Detayları gizle"; }
.quick-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
}
.quick-status-title { font-size: .82rem; font-weight: 700; color: var(--muted); }
.quick-status-text { margin: .5rem 0 0; font-size: .9rem; line-height: 1.35; }
.quick-status-reasons {
  border-top: 1px solid var(--border);
  background: rgba(120, 82, 255, .04);
  padding: .7rem .95rem .85rem;
}
.quick-status-reason {
  font-size: .86rem;
  line-height: 1.35;
  padding: .45rem .55rem;
  border: 1px solid rgba(115, 126, 156, .24);
  border-radius: .5rem;
  background: rgba(255,255,255,.7);
}
.quick-status-reason + .quick-status-reason { margin-top: .45rem; }
.quick-status-reason--danger {
  border-color: rgba(220, 53, 69, .28);
  background: rgba(220, 53, 69, .08);
}
@media (max-width: 760px) {
  .quick-status-grid { grid-template-columns: 1fr; }
}

.event-detail-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.75rem; align-items: start; margin-bottom: 1.25rem;
}
@media (max-width: 960px) { .event-detail-split { grid-template-columns: 1fr; } }

.poster-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .poster-pair { grid-template-columns: 1fr; } }

.poster-label { font-size: .82rem; font-weight: 600; color: var(--muted); margin: 0 0 .4rem; }

.detail-img { width: 100%; border-radius: var(--r-sm); border: 1px solid var(--border); }
.detail-img--contain { max-height: 420px; object-fit: contain; background: var(--surface-2); }

.action-row { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; min-width: 0; }
.action-row > * { min-width: 0; }
.action-row--prominent { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.action-row--tools { margin-top: .85rem; }
.action-row--tools form { margin: 0; }

.caption-box, .caption-pre {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); padding: .9rem; border-radius: var(--r-sm);
  font-size: .88rem; white-space: pre-wrap; font-family: var(--mono);
  word-wrap: break-word; overflow-wrap: break-word;
}

.kv-list { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.kv-list li { margin-bottom: .4rem; }

.meta-readonly { margin: .5rem 0 1.25rem; font-size: .88rem; color: var(--muted); }

.status-actions {
  display: flex; flex-wrap: wrap; gap: .65rem;
  margin: 1.5rem 0 2rem; padding: 1.1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.status-actions form { margin: 0; }
.status-actions--header {
  margin: 0;
  padding: .7rem .85rem;
  border-radius: var(--r-sm);
  box-shadow: none;
}

/* ── Manual Poster Editor Modal ───────────────── */
.manual-editor-modal {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(30, 27, 46, .6);
  display: none; align-items: center; justify-content: center;
  padding: .6rem;
  backdrop-filter: blur(4px);
}
.manual-editor-modal.is-open { display: flex; }

.manual-editor-dialog {
  width: min(1040px, 96vw); max-height: 92vh; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1rem;
}
.manual-editor-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: .5rem;
}
.manual-editor-body {
  display: grid; grid-template-columns: minmax(280px, 1fr) 240px; gap: .8rem;
  max-height: calc(92vh - 90px);
  overflow: hidden;
}
@media (max-width: 960px) {
  .manual-editor-body { grid-template-columns: 1fr; }
}

.manual-editor-frame {
  height: min(64vh, 620px);
  aspect-ratio: 1080 / 1350;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  position: relative; border-radius: var(--r-sm); overflow: hidden;
}
.manual-editor-viewport {
  position: absolute;
  left: 12.6%;
  top: 17.2%;
  width: 74.8%;
  height: 75.6%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  z-index: 2;
}
.manual-editor-viewport:active { cursor: grabbing; }
.manual-editor-viewport img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  object-fit: cover;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(1);
  user-select: none; -webkit-user-drag: none; pointer-events: none;
  background: transparent;
}
.manual-editor-template {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.manual-editor-side label {
  display: block; margin-bottom: .55rem; font-weight: 600; font-size: .84rem; color: var(--text-2);
}
.manual-editor-side input,
.manual-editor-side select {
  width: 100%; margin-top: .28rem;
  padding: .55rem .65rem; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface);
}
@media (max-width: 640px) {
  .manual-editor-modal { padding: .35rem; }
  .manual-editor-dialog { width: 98vw; max-height: 95vh; padding: .7rem; }
  .manual-editor-body { max-height: calc(95vh - 74px); overflow: auto; }
  .manual-editor-frame { height: min(54vh, 500px); }
}

/* ── Public detail ────────────────────────────── */
.page-public-detail .container { max-width: 720px; }
.public-event-page { padding-bottom: 2rem; }

.public-event-hero { margin: 0 0 1.5rem; }
.public-event-hero img {
  width: 100%; display: block; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface-2);
  max-height: min(78vh, 900px); object-fit: contain;
}

.public-event-header .badge { margin-bottom: .5rem; }

.public-meta-list {
  list-style: none; padding: 0; margin: 0 0 1rem;
  font-size: .93rem; color: var(--muted);
}
.public-meta-list li { margin-bottom: .35rem; }
.meta-label { display: inline-block; min-width: 7rem; font-weight: 600; color: var(--text); }

.public-body { margin-bottom: 1.5rem; }
.public-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ── Hero (landing) ───────────────────────────── */
.hero--brand { padding: 3rem 0 1.5rem; }
.hero--brand .page-title { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Success ──────────────────────────────────── */
.success-panel .success-lead { color: var(--text); font-size: 1rem; }
.success-poster { max-width: 100%; border-radius: var(--r); border: 1px solid var(--border); margin-bottom: 1rem; }
.success-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }

/* ── Widget preview ───────────────────────────── */
.widget-preview-wrap { padding: 1.25rem; }

/* ── Report ───────────────────────────────────── */
.report-messages { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .88rem; }
.report-summary { margin: 0; font-size: .93rem; }

/* ── Honeypot ─────────────────────────────────── */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Misc helpers ─────────────────────────────── */
.small-print { font-size: .82rem; margin-top: .75rem; }

.calendar-actions-sticky {
  position: sticky;
  top: 76px;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ── Responsive nav ───────────────────────────── */
@media (max-width: 640px) {
  .site-nav:not(.is-open) { width: 100%; justify-content: flex-start; }
  .container--header { gap: .5rem; }
}

/* ── Global responsive safety ─────────────────── */
html, body { overflow-x: clip; } /* clip: prevents scroll but doesn't create BFC issues unlike hidden */

/* Prevent text overflow everywhere */
h1, h2, h3, h4, h5, h6, p, li, td, th, label, span {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Pre/code blocks: prevent horizontal overflow */
pre, code {
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: pre-wrap;
  max-width: 100%;
}
pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Ensure images don't cause horizontal scroll */
img, video, iframe, embed, object {
  max-width: 100%;
}

/* ── Print ────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .toolbar, .filter-bar { display: none; }
  .main-content { padding: 0; }
  body { background: #fff; }
}

/* ── Additional utility classes ───────────────── */
.action-grid {
  display: flex; flex-wrap: wrap; gap: .5rem;
  align-items: center;
}

.automation-settings-card .automation-toggle-form {
  display: flex;
  flex-direction: column;
  gap: .72rem;
}
.automation-settings-card .automation-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: .75rem .85rem;
  width: 100%;
}
.automation-settings-card .automation-toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: .2rem;
  accent-color: var(--primary);
  flex: 0 0 auto;
}
.automation-settings-card .automation-toggle-copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}
.automation-settings-card .automation-toggle-copy strong {
  display: block;
  color: var(--text);
  margin-bottom: .12rem;
}
.automation-settings-card .automation-toggle-copy small {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.automation-settings-card .automation-toggle-actions {
  margin-top: .2rem;
  justify-content: flex-start;
}
@media (max-width: 640px) {
  .automation-settings-card .automation-toggle-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Login page centered layout ───────────────── */

@media (max-width: 480px) {
  .form-card--narrow { margin-top: 1rem; padding: 1.25rem; }
  .action-row { gap: .4rem; }
  .status-actions { padding: .85rem; gap: .5rem; }
  .toolbar { gap: .5rem; }
  .hero--brand { padding: 2rem 0 1rem; }
}

/* ── Stat card accent stripe ──────────────────── */
.stat-card:nth-child(3n+1) { border-top: 3px solid var(--primary); }
.stat-card:nth-child(3n+2) { border-top: 3px solid var(--secondary); }
.stat-card:nth-child(3n) { border-top: 3px solid var(--accent); }

.notice-warning { background: var(--warn-soft); border-color: var(--warn-border); color: #92400e; }
.notice-info    { background: var(--accent-soft); border-color: var(--accent-muted); color: #0e7490; }

/* ══════════════════════════════════════════════════════════
   MODERNIZASYON EKLEMELERİ v4
   ══════════════════════════════════════════════════════════ */

/* ── Smooth scroll & focus ────────────────────────────────── */
html { scroll-behavior: smooth; }
:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

/* ── Nav enhancements ─────────────────────────────────────── */
.nav-link {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .8rem;
  border-radius: var(--r-xs);
  transition: all .15s;
  white-space: nowrap;
}
.nav-link.mobile-only-install {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  font-family: inherit;
  cursor: pointer;
}
.nav-link.mobile-only-install:hover {
  background: rgba(255,255,255,.18);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }
.nav-link--active { color: #fff !important; background: rgba(255,255,255,.15); font-weight: 600; }
.nav-link--cta {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff !important;
  font-weight: 600;
}
.nav-link--cta:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.4); }
.nav-divider {
  width: 1px; height: 20px;
  background: rgba(255,255,255,.2);
  margin: 0 .25rem;
  align-self: center;
}

/* ── Skeleton loading ─────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}

/* ── Toast bildirim ───────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: .5rem;
}
.toast {
  padding: .75rem 1.1rem; border-radius: var(--r-sm);
  background: #1e1b2e; color: #fff; font-size: .875rem;
  box-shadow: var(--shadow-lg); max-width: 320px;
  animation: toast-in .25s ease;
}
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Landing hero modernizasyonu ──────────────────────────── */
.hero--modern {
  padding: 3.5rem 0 2rem;
  text-align: left;
}
.hero--modern .page-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: .75rem;
}
.hero--modern .page-lead {
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-item { text-align: left; }
.hero-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1; }
.hero-stat-label { font-size: .82rem; color: var(--muted); margin-top: .2rem; }

/* ── Event list filter chips ──────────────────────────────── */
.type-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; align-items: center; }
.type-chip {
  padding: .3rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--muted); cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.type-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.type-chip.active,
.type-chip--active { background: var(--primary-gradient); border-color: transparent; color: #fff; }

/* ── Event card improvements ──────────────────────────────── */
.event-card--public { cursor: pointer; }
.event-card-image-wrap { position: relative; overflow: hidden; }
.event-card-image { transition: transform .35s ease; }
.event-card:hover .event-card-image { transform: scale(1.04); }
.event-type-chip {
  position: absolute; top: .65rem; left: .65rem;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  color: #fff; font-size: .72rem; font-weight: 700;
  padding: .22rem .6rem; border-radius: 999px;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ── Public event detail ──────────────────────────────────── */
.platform-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.platform-link-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--primary); color: var(--primary);
  font-size: .875rem; font-weight: 600; transition: all .15s;
  text-decoration: none;
}
.platform-link-btn:hover {
  background: var(--primary); color: #fff; text-decoration: none;
}
.sessions-list {
  list-style: none; padding: 0; margin: .5rem 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.session-badge {
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid var(--primary-muted);
  padding: .3rem .75rem; border-radius: var(--r-xs);
  font-size: .875rem; font-weight: 600;
}

/* ── Yayın Takvimi (inline CSS'i buraya taşındı) ──────────── */
.yt-head { margin-bottom: 1.5rem; }
.yt-head h1 { font-size: 1.6rem; font-weight: 800; margin: 0 0 .25rem; }
.yt-head p { color: var(--muted); font-size: .9rem; margin: 0; }

.tab-bar {
  display: flex; gap: 0; border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: .6rem 1.25rem; border: none; background: none; cursor: pointer;
  font-size: .875rem; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  white-space: nowrap; font-family: inherit; transition: all .15s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.yt-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.yt-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: .8rem; display: flex; flex-direction: column; gap: .7rem;
  box-shadow: var(--shadow); transition: box-shadow .2s;
}
.yt-card:hover { box-shadow: var(--shadow-md); }
.yt-card--suspect { border-left: 3px solid var(--danger); }
.yt-thumb-link { display: block; text-decoration: none; color: inherit; }
.yt-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.yt-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: .85rem;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
}
.yt-card-body { min-height: 0; }
.yt-card-title { font-weight: 700; font-size: 1rem; margin-bottom: .2rem; }
.yt-card-meta { font-size: .82rem; color: var(--muted); line-height: 1.7; }
.yt-card-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; flex-shrink: 0; }
.yt-platform-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .35rem; }
.yt-platform-tag {
  font-size: .72rem; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 4px; padding: .1rem .4rem; color: var(--text-2);
}
.yt-scheduled { font-size: .8rem; color: var(--primary); margin-top: .3rem; font-weight: 600; }
.yt-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.yt-empty .icon { font-size: 2.5rem; margin-bottom: .75rem; display: block; }

/* ── Poster editor (inline CSS'i buraya taşındı) ──────────── */
.pe-wrap { max-width: 960px; margin: 0 auto; }
.pe-title { font-size: 1.4rem; font-weight: 800; margin-bottom: .25rem; letter-spacing: -.02em; }
.pe-sub { color: var(--muted); margin-bottom: 1.5rem; font-size: .9rem; }
.pe-info-bar {
  background: var(--primary-soft); border: 1px solid var(--primary-muted);
  border-radius: var(--r-sm); padding: .75rem 1rem;
  font-size: .875rem; color: var(--text); margin-bottom: 1rem;
}
.pe-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
@media (max-width: 720px) { .pe-layout { grid-template-columns: 1fr; } }
.pe-canvas-wrap {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.pe-canvas-wrap canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.pe-canvas-wrap canvas:active { cursor: grabbing; }
.pe-canvas-hint { font-size: .78rem; color: var(--faint); text-align: center; margin-top: .5rem; }
.pe-ctrl-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; }
.pe-ctrl-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 1rem; }
.pe-ctrl-row { margin-bottom: .9rem; }
.pe-ctrl-row label { display: block; font-size: .83rem; font-weight: 600; color: var(--text-2); margin-bottom: .35rem; }
.pe-ctrl-row input[type=range] { width: 100%; accent-color: var(--primary); cursor: pointer; }
.pe-ctrl-val { font-size: .78rem; color: var(--muted); text-align: right; }
.pe-btn-reset { width: 100%; padding: .55rem; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-sm); cursor: pointer; font-size: .875rem; color: var(--text-2); font-family: inherit; margin-top: .35rem; transition: all .15s; }
.pe-btn-reset:hover { background: var(--surface-2); border-color: var(--primary-light); }
.pe-btn-save { width: 100%; padding: .7rem; background: var(--primary-gradient); color: #fff; border: none; border-radius: var(--r-sm); cursor: pointer; font-size: .95rem; font-weight: 600; margin-top: .75rem; font-family: inherit; transition: opacity .15s; }
.pe-btn-save:hover { opacity: .9; }

/* ── Admin dashboard simplification ──────────────────────── */
.admin-quick-actions {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-bottom: 1.5rem;
}

/* ── Mobile improvements ──────────────────────────────────── */
@media (max-width: 640px) {
  .hero--modern { padding: 2rem 0 1.25rem; }
  .hero-stats { gap: 1rem; }
  .tab-btn { padding: .55rem .9rem; font-size: .82rem; }
  .yt-grid { grid-template-columns: 1fr; }
  .yt-card-actions { justify-content: flex-start; }
  .platform-links { flex-direction: column; }
  .platform-link-btn { justify-content: center; }
}

/* ── Genel overflow güvenliği ─────────────────────────────── */
.container { overflow-x: clip; }

/* ===== LANDING PAGE ===== */
.hero--modern {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-eyebrow {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: .75rem;
}
.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -.02em;
}
.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: .85;
  margin: 0 0 2rem;
  line-height: 1.5;
}
.hero--modern .hero-actions { gap: .75rem; }
.hero--modern .btn-outline {
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  background: transparent;
}
.hero--modern .btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
  font-size: .8rem;
  opacity: .65;
  flex-wrap: wrap;
}
.hero-stat strong { font-weight: 700; }
.hero-stat-sep { opacity: .4; }

/* Landing sections */
.landing-section { padding: 3rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.landing-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.section-link {
  font-size: .875rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }
.section-title--center { text-align: center; }
.landing-more { text-align: center; margin-top: 2rem; }
.landing-empty { text-align: center; padding: 4rem 1.5rem; }
.event-count-hint {
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  margin-top: 1.5rem;
}

/* How steps */
.landing-how {
  background: var(--surface-2);
  padding: 4rem 1.5rem;
  text-align: center;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 2.5rem auto 0;
}
.how-step { padding: 1.5rem; }
.how-step-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.how-step h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; }
.how-step p { font-size: .875rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* Platform tags (mini, no link) */
.platform-links--mini { margin-bottom: .75rem; }
.platform-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .2em .55em;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-right: .25rem;
  margin-bottom: .2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Event type chip variants */
.event-type-chip--lg {
  font-size: .8rem;
  padding: .3em .8em;
  margin-bottom: .75rem;
}

/* ===== PUBLIC EVENT DETAIL ===== */
.public-event-hero {
  margin: 0 0 1.5rem;
}
.public-event-hero img {
  width: 100%;
  display: block;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface-2);
  max-height: min(78vh, 900px);
  object-fit: contain;
}
.public-event-header { margin-bottom: 1.5rem; }
.page-title--public {
  font-size: clamp(1.4rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: .5rem 0 1rem;
}
.public-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.public-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .925rem;
}
.meta-icon { flex-shrink: 0; width: 1.25em; }
.meta-label {
  font-weight: 600;
  color: var(--clr-text-muted, #6b7280);
  min-width: 90px;
  flex-shrink: 0;
}

/* Ticket platforms on detail */
.public-tickets { margin: 2rem 0; }
.public-tickets-title {
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-text-muted, #6b7280);
  margin-bottom: .75rem;
}
.platform-link-btn--nolink {
  cursor: default;
  background: var(--clr-surface, #f3f4f6);
  color: var(--clr-text-muted, #6b7280);
}
.platform-link-btn--nolink:hover {
  transform: none;
  box-shadow: none;
}

/* Public actions */
.public-actions { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--clr-border, #e5e7eb); }

/* ===== EVENT LIST PAGE ===== */
.empty-state { text-align: center; padding: 4rem 1.5rem; }
.empty-state .empty-hint { margin-bottom: 1.5rem; }

/* ===== MOBILE OVERRIDES ===== */
@media (max-width: 640px) {
  .event-card {
    overflow: hidden;
  }
  .event-card-image-wrap {
    display: block;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
  }
  .event-card-image {
    display: block;
  }
  .event-card-body {
    position: relative;
    z-index: 2;
    background: var(--surface);
    margin-top: 0;
  }
  .event-card-body .event-type-chip {
    position: static;
    inset: auto;
    align-self: flex-start;
    margin-bottom: .15rem;
    background: var(--primary-soft);
    color: var(--primary-dark);
  }
  .hero--modern { padding: 3.5rem 1rem 3rem; min-height: auto; }
  .hero-title { font-size: 2rem; }
  .landing-section { padding: 2rem 1rem; }
  .landing-section-head { flex-direction: column; gap: .5rem; }
  .public-event-hero {
    border-radius: 0;
    margin-left: -1rem;
    margin-right: -1rem;
    max-height: none;
    overflow: visible;
  }
  .public-event-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .public-meta-list li { flex-wrap: wrap; }
  .meta-label { min-width: auto; }
  .platform-links { flex-direction: column; }
  .platform-link-btn { width: 100%; justify-content: space-between; }
  .how-steps { grid-template-columns: 1fr; gap: 1rem; }
}

/* ===== FORM MOBILE ENHANCEMENTS ===== */
.upload-form .field-input {
  font-size: 1rem; /* Prevents iOS zoom on focus (must be >= 16px) */
}
.upload-form .field-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.upload-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  line-height: 1.5;
  cursor: pointer;
}
.consent-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: .15rem;
  accent-color: var(--primary);
}
@media (max-width: 640px) {
  .upload-layout { grid-template-columns: 1fr; }
  .upload-sidebar { width: 100%; }
  .field-row--3 { grid-template-columns: 1fr 1fr; }
  .field-row--3 .field:last-child { grid-column: 1 / -1; }
}

/* ===== BADGE VARIANTS ===== */
.badge-yellow { background: #fff3cd; color: #856404; }
.badge-green  { background: #d1e7dd; color: #0a3622; }
.badge-red    { background: #f8d7da; color: #842029; }
.badge-blue   { background: #cfe2ff; color: #084298; }

/* ===== ADMIN QUICK ACTIONS ===== */
.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.75rem;
}
.admin-quick-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* ===== NOTICE VARIANTS ===== */
.notice-info {
  background: #cfe2ff;
  color: #084298;
  border-left-color: #084298;
}

/* ===== DETAILS/SUMMARY RESET ===== */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::marker { display: none; }

/* ===== AUTH PAGE (login) ===== */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, .75rem);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}
.auth-card--elevated {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,250,255,.98));
  border-color: rgba(139, 92, 246, .25);
}
.auth-logo {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 .25rem;
}
.auth-lead {
  text-align: center;
  font-size: .875rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form .btn-block { margin-top: .5rem; }
.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .25rem;
}
.auth-link {
  font-size: .87rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }

/* Password toggle */
.field-password-wrap { position: relative; }
.field-password-wrap .field-input { padding-right: 2.5rem; }
.field-password-toggle {
  position: absolute;
  right: .6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
}
.field-password-toggle:hover { color: var(--text); }

/* Notice success */
.notice-success {
  background: #d1fae5;
  color: #065f46;
  border-left-color: #10b981;
  padding: .75rem 1rem;
  border-left: 3px solid;
  border-radius: var(--r-xs);
  margin-bottom: 1rem;
  font-size: .9rem;
}

/* ===== ADMIN USERS PAGE ===== */
.au-section { margin-bottom: 2.5rem; }
.au-row--inactive { opacity: .5; }
.au-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.au-add-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }

/* Şifre sıfırlama modal */
.au-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.au-modal.is-open { display: flex; }
.au-modal-dialog {
  background: var(--surface);
  border-radius: var(--radius-lg, .75rem);
  padding: 1.75rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}
.au-modal-actions { display: flex; gap: .5rem; margin-top: .75rem; }
body.au-modal-open { overflow: hidden; }

.gemini-share-form {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  align-items: center;
}
.gemini-share-form label {
  font-size: .78rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

@media (max-width: 480px) {
  .auth-card { padding: 2rem 1.25rem; }
  .au-add-form .field-row--3 { grid-template-columns: 1fr; }
}

/* Admin login nav link — subtle stil */
.nav-link--admin-login {
  font-size: .8rem;
  opacity: .6;
  letter-spacing: .01em;
}
.nav-link--admin-login:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .nav-link--desktop-only {
    display: none !important;
  }
}

/* ===== POSTER EDITOR — RESİMSİZ DURUM ===== */
.no-poster-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  border: 2px dashed var(--border, #e5e7eb);
  border-radius: var(--radius, .5rem);
  background: var(--surface, #f9fafb);
  text-align: center;
  margin-bottom: 1rem;
}
.no-poster-icon { font-size: 3rem; margin-bottom: .75rem; }
.no-poster-text { font-size: .95rem; color: var(--muted); margin: 0 0 1rem; }

/* ===== INLINE STYLE REPLACEMENTS ===== */
.inline-form { display: inline; margin: 0; }
.is-hidden { display: none; }
.cursor-pointer { cursor: pointer; }
.small-print-top { margin-top: .5rem; }
.field-spaced-y { margin: .75rem 0; }
.notice-mb-1 { margin-bottom: 1rem; }
.mt-1 { margin-top: 1rem; }
.admin-autofill-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .7rem;
  align-items: end;
}
.admin-autofill-form .field-label { margin-bottom: 0; }
.admin-create-upload-layout {
  grid-template-columns: minmax(0, .92fr) minmax(320px, 380px);
}
.admin-upload-card { margin-bottom: 1rem; }
.admin-preview-card { position: sticky; top: 5.5rem; }
.admin-preview-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.admin-preview-list {
  list-style: none;
  margin: .8rem 0 0;
  padding: 0;
  display: grid;
  gap: .45rem;
  font-size: .85rem;
}
.admin-preview-list li {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .4rem .5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--surface);
}
.admin-preview-list strong { color: var(--text-2); }

@media (max-width: 920px) {
  .admin-create-upload-layout { grid-template-columns: 1fr; }
  .admin-preview-card { position: static; top: auto; }
}
@media (max-width: 640px) {
  .admin-autofill-form { grid-template-columns: 1fr; }
  .admin-autofill-form .btn { width: 100%; }
  .admin-quick-actions .btn { width: 100%; justify-content: center; }
  .notice, .page-lead, .section-desc, .small-print { overflow-wrap: anywhere; }
}
.mt-075 { margin-top: .75rem; }
.mt-12 { margin-top: 12px; }

.phone-prefix-row { display: flex; gap: .5rem; align-items: center; }
.phone-prefix-input { max-width: 84px; background: #f7f7f7; }

.text-danger-inline { color: var(--danger); }
.yt-card-meta-danger { margin-top: .35rem; color: var(--danger); }

.story-preview-image {
  max-width: 260px;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.action-row-spaced { margin-top: 10px; }

.manual-editor-frame {
  background-image: url('/static/templates/erzurum_event_overlay.png');
}
.manual-editor-canvas-full { width: 100%; height: 100%; }

.canvas-debug-text {
  font-size: .75rem;
  color: #e53e3e;
  margin-top: .25rem;
  min-height: 1rem;
}
.preview-note {
  font-size: .85rem;
  color: #495057;
  line-height: 1.6;
}
.ig-mockup-compact {
  max-width: 280px;
  margin: auto;
}

.queue-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(240px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: .35rem;
  align-items: start;
  scroll-snap-type: x proximity;
}
.queue-calendar-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .65rem;
}
.queue-calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.queue-calendar-nav strong {
  min-width: 180px;
  text-align: center;
}
.queue-calendar-day {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.queue-calendar-day-head {
  padding: .65rem .7rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.queue-calendar-day-head h3 {
  font-size: .95rem;
  margin: 0;
}
.queue-calendar-list {
  margin: 0;
  padding: .5rem;
  display: grid;
  gap: .5rem;
  max-height: 68vh;
  overflow-y: auto;
}
.queue-calendar-week.is-hidden,
.queue-calendar-dayview.is-hidden,
.queue-day-picker.is-hidden { display: none; }
.queue-day-picker {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  margin-top: .5rem;
}
.queue-day-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: .35rem .65rem;
  display: grid;
  gap: .08rem;
  white-space: nowrap;
  cursor: pointer;
}
.queue-day-chip small { color: var(--muted); font-size: .72rem; }
.queue-day-chip.is-active {
  background: var(--primary-soft);
  border-color: #c4b5fd;
}
.queue-time-group {
  border: 1px solid #ececf3;
  border-radius: .55rem;
  background: #fcfcff;
  padding: .35rem;
}
.queue-time-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  padding: .2rem .3rem .35rem;
  border-bottom: 1px dashed #e5e7eb;
  margin-bottom: .35rem;
  cursor: pointer;
  list-style: none;
}
.queue-time-group-head::-webkit-details-marker { display: none; }
.queue-time-group-head strong { font-size: .8rem; color: #111827; }
.queue-time-group-head span { font-size: .72rem; color: var(--muted); }
.queue-time-group-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
  min-width: 0;
}
.queue-calendar-item {
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: .45rem;
  padding: .55rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
}
.queue-calendar-time-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .35rem;
}
.queue-calendar-time {
  font-size: .8rem;
  font-weight: 800;
  color: var(--text-2);
}
.queue-calendar-body {
  min-width: 0;
  display: grid;
  gap: .3rem;
}
.queue-calendar-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.queue-calendar-title:hover {
  text-decoration: underline;
}
.queue-calendar-action {
  font-size: .68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .18rem .46rem;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: #fff;
}
.queue-calendar-action--post { background: #f3e8ff; border-color: #d8b4fe; color: #6b21a8; }
.queue-calendar-action--story { background: #ede9fe; border-color: #c4b5fd; color: #5b21b6; }
.queue-calendar-action--story_digest { background: #ecfeff; border-color: #67e8f9; color: #155e75; }
.queue-calendar-action--sync { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
.queue-calendar-action--publish { background: #dcfce7; border-color: #86efac; color: #166534; }
.queue-calendar-action--auto-publish { background: #fff7ed; border-color: #fdba74; color: #9a3412; }

.queue-calendar-preview {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: .42rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: .42rem;
  background: #fff;
  padding: .3rem;
}
.queue-preview-icon {
  justify-self: end;
  font-size: .82rem;
  color: #6b7280;
}
.queue-preview-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-day-panel {
  display: none;
  margin-top: .75rem;
}
.queue-day-panel.is-active { display: block; }
.queue-day-panel-list {
  margin-top: .45rem;
  display: grid;
  gap: .55rem;
}
.queue-calendar-month {
  margin-top: .9rem;
}
.queue-month-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .45rem;
  margin-bottom: .45rem;
}
.queue-month-head div {
  font-size: .76rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.queue-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .45rem;
}
.queue-month-cell {
  border: 1px solid var(--border);
  border-radius: .55rem;
  background: #fff;
  min-height: 124px;
  padding: .45rem;
}
.queue-month-cell[data-date] { cursor: pointer; }
.queue-month-cell--blank {
  background: transparent;
  border-style: dashed;
  opacity: .45;
}
.queue-month-cell-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .35rem;
}
.queue-month-cell-items {
  display: grid;
  gap: .2rem;
}
.queue-month-dotline {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
}
.queue-calendar-preview img {
  width: 56px;
  height: 56px;
  border-radius: .35rem;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #f8fafc;
}
.queue-calendar-preview span {
  font-size: .75rem;
  color: var(--text-2);
  line-height: 1.3;
}
.queue-calendar-preview:hover {
  border-color: #c4b5fd;
  box-shadow: 0 2px 10px rgba(124, 58, 237, .08);
}
.queue-calendar-item--queue-instagram { border-left-color: #7c3aed; background: #f5f1ff; }
.queue-calendar-item--queue-calendar { border-left-color: #0ea5e9; background: #eef9ff; }
.queue-calendar-item--queue-web { border-left-color: #16a34a; background: #f1fff5; }
.queue-calendar-item--auto-publish { border-left-color: #f59e0b; background: #fff9ed; }
.queue-calendar-empty {
  color: var(--muted);
  font-size: .84rem;
  padding: .45rem .2rem;
}
.queue-density-compact .queue-item-meta { display: none; }
.queue-density-compact .queue-time-group[open] .queue-time-group-items {
  display: grid;
  gap: .3rem;
}
.queue-density-compact .queue-calendar-preview {
  grid-template-columns: 1fr auto;
}
.queue-density-compact .queue-calendar-preview img {
  display: none;
}
.queue-density-compact .queue-preview-label {
  font-size: .72rem;
}
.queue-day-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.queue-day-modal.is-open { display: flex; }
.queue-day-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
}
.queue-day-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: .8rem;
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .2);
}
.queue-day-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.queue-day-modal__head h3 {
  margin: 0;
  font-size: 1rem;
}
.queue-day-modal__body {
  display: grid;
  gap: .55rem;
  padding: .9rem 1rem 1rem;
}
.queue-day-modal__item {
  display: grid;
  gap: .35rem;
  border: 1px solid var(--border);
  border-radius: .55rem;
  padding: .55rem .6rem;
  background: #fff;
}
.queue-day-modal__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.queue-day-modal__kind {
  color: var(--muted);
  font-size: .75rem;
}
.queue-day-modal__title {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.queue-day-modal__title:hover { color: var(--brand-700); }
.queue-day-modal__item small {
  color: var(--muted);
  font-size: .75rem;
}
.queue-day-modal__thumb {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
}
.queue-day-modal__thumb img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: .4rem;
  border: 1px solid var(--border);
}
.queue-day-modal__thumb span {
  color: var(--brand-700);
  font-size: .75rem;
}

.queue-item-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.queue-item-modal.is-open { display: flex; }
.queue-item-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
}
.queue-item-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: .85rem;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
}
.queue-item-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.queue-item-modal__head h3 {
  margin: 0;
  font-size: 1.02rem;
}
.queue-item-modal__body {
  padding: .95rem 1rem 1.1rem;
}
.queue-item-modal__card {
  display: grid;
  gap: .7rem;
}
.queue-item-modal__thumb {
  display: block;
  border: 1px solid var(--border);
  border-radius: .6rem;
  overflow: hidden;
  background: #f8fafc;
  max-height: min(56vh, 520px);
}
.queue-item-modal__thumb img {
  width: 100%;
  max-height: min(56vh, 520px);
  object-fit: contain;
  display: block;
}
.queue-item-modal__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  min-height: 180px;
}
.queue-item-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.queue-item-modal__pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
  padding: .2rem .55rem;
  font-size: .78rem;
  font-weight: 600;
}
.queue-item-modal__pill--kind {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #6b21a8;
}
.queue-item-modal__text {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}
.queue-item-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.special-days-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: .8rem;
  align-items: start;
}
.special-days-panel,
.special-days-calendar {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  padding: .75rem;
}
.special-days-calendar {
  overflow: hidden;
}
.special-days-calendar .queue-month-cell {
  min-height: 138px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.special-days-calendar .queue-month-cell-head strong {
  font-size: .98rem;
}
.special-days-calendar .queue-month-cell-head small {
  color: var(--muted);
}
.special-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: .6rem;
  padding: .8rem;
  display: grid;
  gap: .55rem;
  margin-bottom: .65rem;
  background: #f8fafc;
}
.special-dropzone.is-over {
  border-color: #7c3aed;
  background: #f3e8ff;
}
.special-asset-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
  max-height: 60vh;
  overflow: auto;
}
.special-asset-card {
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .45rem;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: .45rem;
  align-items: center;
  background: #fff;
  cursor: grab;
}
.special-asset-card img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: .35rem;
}
.special-asset-card small {
  display: block;
  font-size: .72rem;
  color: var(--muted);
}
.special-day-cell-list {
  display: grid;
  gap: .2rem;
  max-height: 108px;
  overflow: auto;
}
.special-scheduled-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .35rem;
  align-items: center;
  border: 1px solid #ececf3;
  border-radius: .4rem;
  padding: .2rem .35rem;
  font-size: .74rem;
  cursor: grab;
}
.special-scheduled-item a {
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.special-delete-btn {
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}
.queue-month-cell.is-over {
  outline: 2px dashed #7c3aed;
  outline-offset: 2px;
}

.special-day-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.special-day-modal.is-open {
  display: flex;
}
.special-day-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
}
.special-day-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: .8rem;
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .2);
}
.special-day-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.special-day-modal__head h3 {
  margin: 0;
  font-size: 1rem;
}
.special-day-modal__body {
  display: grid;
  gap: .55rem;
  padding: .9rem 1rem 1rem;
}
.special-day-modal__item {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr auto;
  gap: .65rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: .55rem;
  padding: .45rem;
}
.special-day-modal__thumb {
  display: block;
  border-radius: .45rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
}
.special-day-modal__item img {
  width: 100%;
  max-height: min(38vh, 280px);
  object-fit: contain;
  border-radius: .4rem;
  display: block;
}
.special-day-modal__item strong {
  display: block;
  font-size: .86rem;
  line-height: 1.3;
}
.special-day-modal__item small {
  color: var(--muted);
  font-size: .74rem;
}
@media (max-width: 760px) {
  .queue-day-modal {
    align-items: flex-end;
    padding: .45rem;
  }
  .queue-day-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: .75rem .75rem .35rem .35rem;
  }
  .special-day-modal {
    align-items: flex-end;
    padding: .45rem;
  }
  .special-day-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: .75rem .75rem .35rem .35rem;
  }
  .special-day-modal__item {
    grid-template-columns: 1fr;
  }
  .special-day-modal__item .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1500px) {
  .queue-calendar-grid {
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    overflow-x: visible;
  }
}
@media (max-width: 1200px) {
  .queue-calendar-grid {
    grid-template-columns: repeat(3, minmax(230px, 1fr));
    overflow-x: visible;
  }
}
@media (max-width: 900px) {
  .dashboard-toolbar-main {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-sort-form {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .dashboard-select {
    min-width: 0;
    width: 100%;
  }
  .dashboard-col-title {
    max-width: 240px;
  }
  .queue-calendar-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    overflow-x: visible;
  }
  .queue-calendar-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .queue-month-head div { font-size: .68rem; }
  .queue-month-cell { min-height: 108px; padding: .35rem; }
  .queue-month-cell-head strong { font-size: .82rem; }
  .queue-month-cell-head small { font-size: .64rem; }
  .queue-month-dotline { font-size: .66rem; }
  .special-days-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .queue-calendar-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .queue-calendar-preview {
    grid-template-columns: 48px 1fr;
  }
  .queue-calendar-preview img {
    width: 48px;
    height: 48px;
  }
  .queue-month-head div { font-size: .63rem; }
  .queue-month-cell { min-height: 96px; }
  .queue-day-modal__dialog,
  .special-day-modal__dialog,
  .queue-item-modal__dialog {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .queue-item-modal {
    align-items: flex-end;
    padding: .45rem;
  }
  .queue-item-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: .75rem .75rem .35rem .35rem;
  }
  .queue-item-modal__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

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