/* ============================================
   GOLD STAR GEMİ - ADMIN PANEL
   ============================================ */

:root {
  --navy: #0a2342;
  --navy-2: #1a3a5c;
  --navy-deep: #051a30;
  --crimson: #c8102e;
  --crimson-2: #a30d24;
  --gold: #d4a85a;
  --cream: #f5f1e8;
  --bg: #f7f8fa;
  --white: #ffffff;
  --ink: #1c1c1c;
  --muted: #6b7280;
  --line: #e5e7eb;
  --ok: #16a34a;
  --warn: #f59e0b;
  --danger: #dc2626;
  
  --f-display: 'Bodoni Moda', serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ LOGIN ============ */
.login-body {
  background: var(--navy-deep);
  min-height: 100vh;
}
.login-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-left {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--cream);
  padding: 60px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.login-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(212,168,90,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,90,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
}
.login-quote { position: relative; max-width: 480px; }
.login-logo {
  width: 80px;
  margin-bottom: 40px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.login-quote h1 {
  font-family: var(--f-display);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.login-quote h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.login-quote > p {
  color: rgba(245,241,232,0.7);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.login-features {
  display: grid;
  gap: 14px;
}
.login-features div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(245,241,232,0.85);
}
.login-features span { font-size: 20px; }

.login-right {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.login-card {
  width: 100%;
  max-width: 420px;
}
.login-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--crimson);
  font-weight: 700;
}
.login-card h2 {
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 600;
  color: var(--navy);
  margin: 12px 0 12px;
  letter-spacing: -0.5px;
}
.login-sub { color: var(--muted); margin-bottom: 36px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--f-body);
  font-size: 14px;
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--crimson);
}
.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.forgot { color: var(--crimson); font-weight: 500; }
.btn-login {
  width: 100%;
  padding: 16px;
  background: var(--crimson);
  color: var(--cream);
  border: none;
  border-radius: 6px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 4px 0 var(--crimson-2);
  transition: all .2s;
}
.btn-login:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--crimson-2);
}
.login-info {
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(212,168,90,0.15);
  border: 1px solid rgba(212,168,90,0.3);
  border-radius: 6px;
  font-size: 13px;
  color: var(--navy);
}
.back-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  transition: color .2s;
}
.back-link:hover { color: var(--crimson); }

/* ============ ADMIN BODY ============ */
.admin-body {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: var(--navy-deep);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  border-right: 1px solid rgba(245,241,232,0.05);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 24px;
  border-bottom: 1px solid rgba(245,241,232,0.08);
}
.sidebar-logo img { width: 42px; height: 42px; object-fit: contain; }
.sl-name {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 1px;
}
.sl-sub {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-top: 2px;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
  overflow-y: auto;
}
.nav-section { margin-bottom: 24px; }
.nav-label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(245,241,232,0.4);
  font-weight: 700;
  padding: 0 12px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  font-size: 14px;
  color: rgba(245,241,232,0.7);
  border-radius: 6px;
  margin-bottom: 2px;
  transition: all .15s;
  cursor: pointer;
}
.nav-item:hover {
  background: rgba(245,241,232,0.05);
  color: var(--cream);
}
.nav-item.active {
  background: var(--crimson);
  color: var(--cream);
}
.nav-item svg { flex-shrink: 0; }
.badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-top: 1px solid rgba(245,241,232,0.08);
}
.user-avatar {
  width: 38px;
  height: 38px;
  background: var(--crimson);
  color: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--f-display);
}
.user-name { font-size: 13px; font-weight: 600; color: var(--cream); }
.user-role { font-size: 11px; color: var(--gold); }
.logout-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(245,241,232,0.5);
  cursor: pointer;
  padding: 6px;
  transition: color .2s;
}
.logout-btn:hover { color: var(--crimson); }

/* MAIN */
.main {
  flex: 1;
  margin-left: 260px;
  min-width: 0;
}

/* TOPBAR */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.topbar h1 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 14px;
  width: 280px;
}
.search svg { color: var(--muted); }
.search input {
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  width: 100%;
  font-family: var(--f-body);
}
.search.big { width: 100%; max-width: 400px; padding: 12px 16px; }
.icon-btn {
  width: 38px;
  height: 38px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  color: var(--navy);
}
.ic-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--crimson);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

/* PAGES */
.page {
  display: none;
  padding: 32px;
}
.page.active { display: block; }

.page-greet {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.page-greet h2 {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.page-greet p { color: var(--muted); font-size: 14px; }

.btn-add {
  padding: 12px 20px;
  background: var(--navy);
  color: var(--cream);
  border: none;
  border-radius: 6px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background .2s;
}
.btn-add:hover { background: var(--crimson); }

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.sc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.sc-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}
.sc-icon-mini {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.sc-icon-mini.blue { background: #e0e7ff; }
.sc-icon-mini.red { background: rgba(200,16,46,0.1); }
.sc-icon-mini.green { background: #d1fae5; }
.sc-icon-mini.gold { background: rgba(212,168,90,0.2); }
.sc-val {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.sc-trend {
  font-size: 12px;
  font-weight: 500;
}
.sc-trend.up { color: var(--ok); }
.sc-trend.down { color: var(--danger); }

/* DASHBOARD GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel.full { grid-column: 1 / -1; }
.panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-head h3 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.panel-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--crimson);
  letter-spacing: 0.3px;
}
.panel-tag {
  background: var(--crimson);
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.panel-body { padding: 8px 0; }

.route-list { padding: 8px 0; }
.route-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}
.route-item:last-child { border-bottom: none; }
.route-dot {
  width: 10px;
  height: 10px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.2);
  flex-shrink: 0;
}
.route-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.route-info { flex: 1; }
.route-info strong { display: block; font-size: 14px; color: var(--navy); }
.route-info span { font-size: 12px; color: var(--muted); }
.route-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ok);
  padding: 4px 10px;
  background: rgba(22,163,74,0.1);
  border-radius: 4px;
}
.route-status.warn { color: var(--warn); background: rgba(245,158,11,0.1); }

/* RECENT QUOTES */
.recent-quote {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}
.recent-quote:last-child { border-bottom: none; }
.rq-icon {
  width: 38px;
  height: 38px;
  background: rgba(200,16,46,0.1);
  color: var(--crimson);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--f-display);
  font-size: 14px;
  flex-shrink: 0;
}
.rq-info { flex: 1; min-width: 0; }
.rq-info strong { display: block; font-size: 13px; color: var(--navy); font-weight: 600; }
.rq-info span { font-size: 12px; color: var(--muted); }
.rq-meta {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--f-mono);
  text-align: right;
}

/* CHART */
.chart {
  padding: 24px;
  position: relative;
}
.chart svg {
  width: 100%;
  height: 240px;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--f-mono);
}

.chip-group { display: flex; gap: 6px; }
.chip {
  padding: 6px 14px;
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  font-weight: 500;
  transition: all .15s;
}
.chip.active {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.select-filter {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--f-body);
  font-size: 13px;
  cursor: pointer;
}

/* TABLE */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.data-table td {
  padding: 16px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.data-table .empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.mono { font-family: var(--f-mono); font-size: 12px; color: var(--navy); font-weight: 600; }
.mono-sm { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-left: 8px; }

.status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
}
.status.active { background: rgba(59,130,246,0.1); color: #2563eb; }
.status.warn { background: rgba(245,158,11,0.1); color: var(--warn); }
.status.ok { background: rgba(22,163,74,0.1); color: var(--ok); }
.status.new { background: rgba(200,16,46,0.1); color: var(--crimson); }
.status.pending { background: rgba(212,168,90,0.15); color: #92400e; }

.prog {
  display: inline-block;
  width: 90px;
  height: 6px;
  background: var(--line);
  border-radius: 100px;
  vertical-align: middle;
  overflow: hidden;
}
.prog-bar {
  height: 100%;
  background: #2563eb;
  transition: width .3s;
}
.prog-bar.warn { background: var(--warn); }
.prog-bar.ok { background: var(--ok); }

.row-btn {
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--navy);
  transition: all .15s;
}
.row-btn:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* CUSTOMERS */
.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.cust-card {
  background: var(--white);
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: all .2s;
}
.cust-card:hover { border-color: var(--crimson); transform: translateY(-2px); }
.cust-logo {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.cust-card h4 {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.cust-card p { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.cust-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* SETTINGS */
.settings-info {
  background: rgba(212,168,90,0.15);
  border: 1px solid rgba(212,168,90,0.3);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--navy);
}
.service-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.se-card {
  background: var(--white);
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.se-card h5 {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.se-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.se-actions { display: flex; gap: 8px; }

/* FLEET */
.fleet-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.fs-item {
  background: var(--white);
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--line);
  text-align: center;
}
.fs-val {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--crimson);
  line-height: 1;
}
.fs-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 8px;
  font-weight: 600;
}

/* REPORTS */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.report-card {
  background: var(--white);
  padding: 28px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.rc-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.report-card h4 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.report-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  min-height: 50px;
}

/* SETTINGS FORM */
.settings-form { max-width: 800px; }
.settings-group {
  background: var(--white);
  padding: 28px;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.settings-group h4 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 4px; }
.settings-actions { display: flex; gap: 12px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-left { display: none; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s;
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .mobile-menu-btn { display: block; }
  .topbar { padding: 12px 16px; }
  .topbar h1 { font-size: 18px; }
  .breadcrumb { display: none; }
  .search { display: none; }
  .page { padding: 20px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fleet-stats { grid-template-columns: 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .login-right { padding: 30px 20px; }
  .login-card h2 { font-size: 28px; }
}

/* ============================================
   ADMIN PHP ADDITIONS · Images, Content, Quotes
   ============================================ */

.login-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 18px;
}

/* Sidebar badge */
.sb-link .badge {
  margin-left: auto;
  background: #c8102e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Topbar */
.topbar-right { display: flex; align-items: center; gap: 14px; }
.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f3f4f6;
  color: #0a2342;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.tb-btn:hover { background: #e5e7eb; }
.tb-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a2342, #1a3a5f);
  color: #d4a85a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px;
}
.qa-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #0a2342;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s;
}
.qa-card:hover {
  background: #fff;
  border-color: #c8102e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(200, 16, 46, 0.25);
}
.qa-card svg { color: #c8102e; flex-shrink: 0; }

/* Recent quotes */
.recent-quotes { padding: 8px 0; }
.rq-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.rq-item:last-child { border-bottom: none; }
.rq-info { display: flex; flex-direction: column; gap: 2px; }
.rq-info strong { color: #0a2342; font-size: 14px; }
.rq-info span { color: #6b7280; font-size: 12px; }
.rq-meta { text-align: right; }
.rq-no {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #c8102e;
  font-weight: 600;
}
.rq-date { font-size: 11px; color: #9ca3af; }

/* ============================================
   IMAGES PAGE
   ============================================ */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 24px;
}
.img-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.img-card:hover {
  border-color: #c8102e;
  box-shadow: 0 12px 30px -10px rgba(10, 35, 66, 0.18);
}
.img-preview {
  width: 100%;
  height: 180px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
}
.img-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #9ca3af;
}
.img-placeholder span {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.img-body { padding: 16px; }
.img-body h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #0a2342;
  font-weight: 600;
}
.img-body p {
  margin: 0 0 14px;
  font-size: 12px;
  color: #6b7280;
}
.img-actions { display: flex; gap: 8px; }
.btn-upload {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #c8102e, #a30c25);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-upload:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -4px rgba(200, 16, 46, 0.4); }
.btn-delete {
  padding: 9px 12px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-delete:hover { background: #dc2626; color: #fff; }

/* ============================================
   CONTENT PAGE
   ============================================ */
.content-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px;
  display: grid;
  gap: 22px;
  max-width: 900px;
}
.content-field {
  position: relative;
}
.content-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0a2342;
  margin-bottom: 8px;
}
.content-field label small {
  font-weight: 400;
  color: #9ca3af;
  margin-left: 6px;
}
.content-field label code {
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.content-field input,
.content-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.content-field input:focus,
.content-field textarea:focus {
  outline: none;
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}
.content-field textarea { resize: vertical; min-height: 80px; }
.save-indicator {
  position: absolute;
  top: 0; right: 0;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   QUOTES TABLE
   ============================================ */
.quotes-table-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: auto;
}
.quotes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.quotes-table th {
  text-align: left;
  padding: 14px 16px;
  background: #f9fafb;
  color: #6b7280;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid #e5e7eb;
}
.quotes-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
  vertical-align: top;
}
.quotes-table tbody tr:hover { background: #fafbfc; }
.quotes-table a { color: #c8102e; text-decoration: none; font-size: 12px; }
.quotes-table a:hover { text-decoration: underline; }
.row-btn {
  background: #f3f4f6;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 4px;
  transition: all 0.2s;
}
.row-btn:hover { background: #e5e7eb; }
.row-btn-del:hover { background: #fef2f2; color: #dc2626; }

.empty-state {
  padding: 40px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

/* ============================================
   PAGE HEAD
   ============================================ */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}
.page-head h2 {
  margin: 0 0 4px;
  font-family: 'Bodoni Moda', serif;
  font-size: 26px;
  color: #0a2342;
  font-weight: 600;
}
.page-head p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}
.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: linear-gradient(135deg, #0a2342, #1a3a5f);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary-sm:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -4px rgba(10, 35, 66, 0.3); }

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-info { padding: 20px; }
.settings-info > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}
.settings-info > div:last-child { border-bottom: none; }
.settings-info span { color: #6b7280; }
.settings-info strong { color: #0a2342; font-family: 'JetBrains Mono', monospace; font-size: 13px; }

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0a2342;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast-error { background: #dc2626; }

@media (max-width: 768px) {
  .images-grid { grid-template-columns: 1fr; padding: 16px; }
  .settings-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
}
