/* ==========================================================================
   School ID Generator — global stylesheet (mobile-first, ~one file)
   ========================================================================== */

:root{
  --primary:#1e3a8a;
  --primary-700:#1e40af;
  --accent:#eab308;
  --ok:#16a34a;
  --warn:#f59e0b;
  --danger:#dc2626;
  --text:#111827;
  --muted:#64748b;
  --bg:#f8fafc;
  --panel:#ffffff;
  --line:#e5e7eb;
  --radius:10px;
  --shadow:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.06);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img{ max-width:100%; display:block; }
a{ color: var(--primary); text-decoration: none; }
a:hover{ text-decoration: underline; }
code{ background:#f1f5f9; padding:1px 5px; border-radius:4px; font-size:.9em; }
small{ font-size:.85em; }
.muted{ color: var(--muted); }
.small{ font-size:.85em; }

/* ----------- Top bar ---------- */
.topbar{
  position: sticky; top:0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  display:flex; align-items:center; gap: 12px; padding: 10px 16px;
}
.topbar .brand{ display:flex; align-items:center; gap:8px; color: var(--primary); font-weight: 700; }
.topbar .brand img{ width:28px; height: 28px; }
.topbar.mini{ padding: 8px 12px; }
.topbar.mini .mini-logo{ width: 36px; height: 36px; object-fit: contain; }
.topbar.mini .mini-school{ font-weight: 700; }
.topbar.mini .mini-class{ font-size: .85em; color: var(--muted); }

.nav{ display:flex; align-items:center; gap: 16px; margin-left: auto; flex-wrap: wrap; }
.nav a{ color: var(--text); padding: 6px 4px; }
.nav a:hover{ color: var(--primary); text-decoration: none; }
.nav-user{ display:flex; align-items:center; gap:6px; color: var(--muted); }
.nav-user img{ width:24px; height:24px; border-radius:50%; }
.nav-logout{ background:#fee2e2; color:#b91c1c; padding: 6px 10px !important; border-radius: 8px; }

.nav-toggle{
  display:none; background: none; border: 0; cursor: pointer; margin-left:auto;
  width: 38px; height: 38px; padding: 8px;
}
.nav-toggle span{ display:block; height:2px; background:#111; margin: 4px 0; }

@media (max-width: 760px){
  .nav-toggle{ display:block; }
  .nav{
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0;
    border-bottom: 1px solid var(--line); display: none;
  }
  body.nav-open .nav{ display:flex; }
  .nav a{ padding: 12px 16px; border-top: 1px solid var(--line); }
  .nav-user{ padding: 8px 16px; }
}

/* ----------- Page wrapper ---------- */
.page{ max-width: 1100px; margin: 0 auto; padding: 16px; }

.panel{
  background: var(--panel); border-radius: var(--radius);
  padding: 18px; margin: 14px 0; box-shadow: var(--shadow);
}
.panel.narrow{ max-width: 520px; margin: 32px auto; }
.header-row{ display:flex; align-items:center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.row{ display:flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.col{ display:flex; flex-direction: column; gap: 6px; }

/* ----------- Hero ---------- */
.hero{ background: linear-gradient(135deg, #eef2ff 0%, #fff 100%); padding: 48px 16px; }
.hero-inner{ max-width: 760px; margin: 0 auto; text-align: center; }
.hero-logo{ width: 86px; height: 86px; margin: 0 auto 10px; }
.hero h1{ font-size: 2.2rem; margin: 6px 0; }
.hero .lead{ color: var(--muted); max-width: 600px; margin: 6px auto 18px; }
.hero-cta{ display:flex; justify-content: center; gap: 10px; }
.features{ max-width: 1100px; margin: 0 auto; padding: 16px; }
.features h2{ text-align: center; margin: 12px 0 18px; }
.grid{ display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-feat{ background:#fff; padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.card-feat h3{ margin: 0 0 4px; color: var(--primary); }
.pricing-strip{ text-align: center; padding: 32px 16px; background: #f1f5f9; }

/* ----------- Buttons (compact, less chunky) ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 12px; border-radius: 7px; border: 1px solid #e5e7eb;
  background: #fff; color: var(--text); cursor: pointer; font-size: .88rem; line-height: 1.2;
  text-decoration: none; transition: background .15s, transform .05s;
  min-height: 32px;
}
.btn:hover{ background: #f3f4f6; }
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover{ background: var(--primary-700); }
.btn-ghost{ background: #fff; }
.btn-danger{ background: #fee2e2; color:#b91c1c; border-color:#fecaca; }
.btn-danger:hover{ background:#fecaca; }
.btn-warn{ background:#fef3c7; color:#92400e; border-color:#fde68a; }
.btn-ok{ background:#dcfce7; color:#166534; border-color:#bbf7d0; }
.danger-panel{ border-left:4px solid #dc2626; background:#fef2f2; }
.hero-panel{ background:linear-gradient(135deg,#eff6ff 0%,#fff 100%); border-left:4px solid #1e40af; }
.next-step{ margin-top:10px; padding:10px 14px; background:#fff; border:1px dashed #cbd5e1; border-radius:8px; display:flex; gap:12px; align-items:center; flex-wrap:wrap }
.next-step .btn{ margin-left:auto }
.section-h{ margin:24px 12px 6px; color:#475569; font-size:.9rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em }
.stat.stat-warn b{ color:#b45309 }
.stat.stat-warn{ border-color:#fde68a; background:#fffbeb }

/* Progress checklist on dashboard */
.checklist{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px }
.checklist li{ display:flex; gap:12px; align-items:center; padding:10px 12px; border:1px solid #e5e7eb; border-radius:8px; background:#fff }
.checklist li.step-done{ background:#f0fdf4; border-color:#bbf7d0 }
.checklist li.step-wip { background:#fffbeb; border-color:#fde68a }
.checklist li.step-todo{ background:#f8fafc; border-color:#e2e8f0 }
.checklist .ck-icon{ font-size:1.4rem; line-height:1 }
.checklist .ck-body{ flex:1; min-width:0 }
.checklist .ck-body strong{ display:block; line-height:1.2 }
.checklist .btn{ flex-shrink:0 }

/* Marketplace banner — "Get your IDs printed from ₹12" */
.ad-banner{ display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap;
  background:linear-gradient(135deg,#fef3c7 0%,#fffbeb 100%); border-left:4px solid #f59e0b }
.ad-banner .btn{ flex-shrink:0 }

/* Compact radios / checkboxes in form-heavy pages like preferences.php */
.compact-controls input[type=radio],
.compact-controls input[type=checkbox]{
  width:14px; height:14px; vertical-align:-2px; margin-right:6px; accent-color:#1e40af;
}
.compact-controls label{ font-weight:400 }

/* Selectable option card (used in orders + preferences for pose selector) */
.option-card{ display:flex; gap:8px; padding:10px; border:1px solid #e5e7eb; border-radius:8px; cursor:pointer; align-items:flex-start; background:#fff }
.option-card:hover{ border-color:#94a3b8 }
.option-card.sel{ border-color:#1e40af; background:#eff6ff }
.option-card input[type=radio], .option-card input[type=checkbox]{ margin-top:4px }
.opt-img{ width:60px; height:60px; object-fit:cover; border-radius:6px; flex-shrink:0 }

/* Inline help text size */
.compact-controls .muted.small { font-size:11px }

/* iOS-style settings row with toggle on the right */
.toggle-row{ display:flex; gap:14px; align-items:center; padding:12px 14px;
  border:1px solid #e5e7eb; border-radius:10px; background:#fff }
.toggle-row + .toggle-row{ margin-top:8px }
.toggle-row-body{ flex:1; min-width:0 }
.toggle-row-body strong{ display:block; font-size:14px }

/* Teacher bulk toolbar — compact, single row */
.bulk-toolbar{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:8px 0 4px; min-height:30px }
.bulk-all-toggle{ display:inline-flex; align-items:center; gap:4px; padding:4px 10px;
  background:#f1f5f9; border:1px solid #cbd5e1; border-radius:6px; cursor:pointer; font-size:12px }
.bulk-all-toggle input{ margin:0 }
.bulk-bar{ display:inline-flex; gap:8px; align-items:center; flex-wrap:wrap;
  background:#eef2ff; border:1px solid #c7d2fe; border-radius:8px; padding:4px 10px; font-size:12px }

/* Per-card selection checkbox — overlays the top-right corner of the card item.
   Sits ABOVE the visualization so it doesn't push the blue header strip down. */
.card-item{ position:relative }
.card-pick-cb{ position:absolute; top:4px; right:4px; z-index:3; width:18px; height:18px;
  background:#fff; border-radius:4px; box-shadow:0 1px 3px rgba(0,0,0,0.2); cursor:pointer }
.card-pick-cb:checked{ box-shadow:0 0 0 2px #1e40af }

/* Side tabs (front / back) for two-sided card designer */
.side-tabs{ display:flex; gap:6px; align-items:center; margin:0 0 8px }
.side-tab{ background:#f1f5f9; border:1px solid #cbd5e1; padding:6px 14px; border-radius:6px 6px 0 0;
  font-size:13px; font-weight:600; cursor:pointer; color:#475569 }
.side-tab.active{ background:#1e40af; color:#fff; border-color:#1e40af }

/* Flippable card-with-back preview (used in teacher/parent/admin) */
.flip-wrap{ position:relative; perspective:1200px; display:inline-block }
.flip-card{ position:relative; transition:transform .6s; transform-style:preserve-3d }
.flip-card.flipped{ transform:rotateY(180deg) }
.flip-card .flip-side{ position:absolute; inset:0; backface-visibility:hidden;
  -webkit-backface-visibility:hidden; background:#fff }
.flip-card .flip-back{ transform:rotateY(180deg) }
.flip-btn{ position:absolute; top:6px; right:6px; z-index:10;
  width:30px; height:30px; border-radius:50%; border:0; cursor:pointer;
  background:rgba(15,23,42,.7); color:#fff; font-size:14px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 1px 4px rgba(0,0,0,.3) }
.flip-btn:hover{ background:rgba(15,23,42,.9) }

/* Round shutter capture button — looks like a camera app */
.shutter-btn{
  position:relative; width:84px; height:84px; border-radius:50%; padding:0;
  background:transparent; border:0; cursor:pointer; display:flex;
  align-items:center; justify-content:center; flex-direction:column;
  margin:0 6px; touch-action:manipulation; -webkit-tap-highlight-color:transparent;
}
.shutter-btn:disabled{ opacity:.4; cursor:not-allowed }
.shutter-ring{
  position:absolute; inset:0; border-radius:50%;
  border:4px solid #fff; box-shadow:0 0 0 2px rgba(15,23,42,.4), 0 4px 12px rgba(0,0,0,.25);
}
.shutter-core{
  position:relative; width:56px; height:56px; border-radius:50%;
  background:#dc2626; transition:transform .08s ease;
}
.shutter-btn:active .shutter-core{ transform:scale(.85) }
.shutter-btn:disabled .shutter-core{ background:#94a3b8 }
.shutter-label{
  position:absolute; bottom:-22px; left:50%; transform:translateX(-50%);
  font-size:11px; font-weight:700; color:#0f172a; text-shadow:0 1px 0 rgba(255,255,255,.6);
  letter-spacing:.04em; text-transform:uppercase; pointer-events:none;
}

/* Camera-action row layout — keep shutter centred between switch / upload */
.camera-actions{
  display:flex; gap:10px; align-items:center; justify-content:center;
  margin-top:14px; padding-bottom:22px; /* room for the Capture label */
  flex-wrap:wrap;
}

/* Parent photo guide (school-provided sample image + instructions) */
.photo-guide{ display:flex; gap:10px; align-items:flex-start; padding:8px;
  background:#f0f9ff; border:1px solid #bae6fd; border-radius:8px; margin:6px 0 }
.photo-guide .guide-img{ width:80px; height:80px; object-fit:cover; border-radius:6px; flex-shrink:0 }

/* Make checkboxes uniform shape everywhere (not just inside compact-controls) */
input[type=checkbox], input[type=radio]{
  appearance:auto; -webkit-appearance:auto;
  accent-color:#1e40af;
  width:16px; height:16px;
  vertical-align:-3px;
  margin-right:6px;
  flex:0 0 auto;
}
/* Don't let .lbl checkbox labels stretch the box */
.lbl input[type=checkbox], .lbl input[type=radio]{ display:inline-block; }

/* File inputs must NOT overflow the panel on mobile.
   Native file picker chrome is unpredictable in width — we hide the giant
   "Choose file" button text by using a thin border + small font, and on
   mobile we constrain it inside its parent and let the text wrap. */
input[type=file]{
  max-width:100%; width:100%; box-sizing:border-box;
  font-size:12px; overflow:hidden; text-overflow:ellipsis;
}
input[type=file]::-webkit-file-upload-button{
  background:#fff; border:1px solid #cbd5e1; border-radius:6px;
  padding:4px 10px; cursor:pointer; font-size:12px; margin-right:8px;
}
input[type=file]::file-selector-button{
  background:#fff; border:1px solid #cbd5e1; border-radius:6px;
  padding:4px 10px; cursor:pointer; font-size:12px; margin-right:8px;
}

/* Panel and form-cell overflow guard — kills horizontal scroll on mobile */
html, body{ overflow-x:hidden; }
.panel, .export-card, .action-card, .option-card{ min-width:0; overflow:hidden; }
.panel *{ max-width:100%; }
.grid-2 > *, .grid > *{ min-width:0; }
.row, .row.gap{ min-width:0; }
.row.gap{ flex-wrap:wrap; }

/* Logo / signature side blocks shouldn't bleed out either */
.logo-block, .logo-side{ min-width:0 }
.logo-side input[type=file]{ max-width:100% }

/* Stack form rows vertically below 560px and clamp every input width */
@media (max-width:560px){
  input, select, textarea, button{ max-width:100%; box-sizing:border-box; }
  .grid-2{ grid-template-columns:1fr; }
}
.btn-lg{ padding: 9px 16px; font-size: .95rem; min-height: 38px; }
.btn-small{ padding: 4px 8px; font-size: .78rem; min-height: 26px; }
.btn-full{ width: 100%; }
.btn-wa{ background:#25d366; color:#fff; border:0; }
.btn-wa:hover{ background:#1ea854; color:#fff; }

/* ----------- Forms ---------- */
input, textarea, select{
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; background: #fff; min-height: 40px;
}
input:focus, textarea:focus, select:focus{ outline: 2px solid #c7d2fe; border-color: var(--primary); }
.lbl{ display:block; margin: 12px 0 4px; font-weight: 600; }

.inline-form{ margin-top: 12px; }
.inline-form .row{ gap: 8px; }
.inline-form input{ flex: 1; min-width: 200px; }

.grid-form{ display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: stretch; }
.grid-form .btn{ align-self: stretch; }

.flash{ padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.flash-ok{ background: #dcfce7; color: #166534; }
.flash-info{ background: #e0f2fe; color: #075985; }
.flash-err{ background: #fee2e2; color: #991b1b; }

/* ----------- Stats ---------- */
.stats .stat{
  background: #fff; border-radius: var(--radius); padding: 16px; text-align: center;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow);
}
.stats .stat b{ font-size: 1.6rem; color: var(--primary); display: block; }
.stats .stat span{ color: var(--muted); }
.actions .action-card{
  background: #fff; padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); display: block;
}
.actions .action-card h3{ margin: 0 0 4px; color: var(--primary); }

/* ----------- Pricing ---------- */
.price-box{ text-align: center; padding: 16px; background: #f1f5f9; border-radius: 8px; margin: 10px 0; }
.price-amt{ font-size: 2rem; font-weight: 700; color: var(--primary); }
.price-amt small{ font-size: .9rem; color: var(--muted); font-weight: 400; }
.discount-row{ display:flex; gap: 8px; }
.discount-row input{ flex: 1; }

/* ----------- Card designer ---------- */
.designer-grid{ display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px){ .designer-grid{ grid-template-columns: 1fr; } }
.pane{ background: #fff; padding: 12px; border-radius: 8px; border: 1px solid var(--line); }
.fields-tbl{ width: 100%; border-collapse: collapse; }
.fields-tbl th, .fields-tbl td{ border-bottom: 1px solid var(--line); padding: 4px; vertical-align: middle; }
.fields-tbl input, .fields-tbl select{ min-height: 32px; padding: 4px 6px; font-size: .9rem; }

.card-canvas-wrap{ overflow: auto; padding: 10px; background: #f1f5f9; border-radius: 8px; }
.card-canvas{ position: relative; margin: 0 auto; box-shadow: 0 2px 6px rgba(0,0,0,.15); border-radius: 8px; overflow: hidden; }
.card-canvas .el{ user-select: none; }

.actions-bar{ display:flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }

/* ----------- Lock toggle ---------- */
.lock-toggle{ display:flex; align-items: center; gap: 8px; }
.switch{ position: relative; display:inline-block; width: 44px; height: 24px; }
.switch input{ opacity: 0; width: 0; height: 0; position: absolute; }
.switch .slider{
  position: absolute; inset: 0; background: #cbd5e1; border-radius: 24px; cursor: pointer; transition:.2s;
}
.switch .slider:before{
  content:""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.switch input:checked + .slider{ background: var(--primary); }
.switch input:checked + .slider:before{ transform: translateX(20px); }

/* ----------- Teacher list ---------- */
.teacher-list{ display: grid; gap: 12px; }
.teacher-row{ background:#fff; border:1px solid var(--line); border-radius: 8px; padding: 12px; }
.t-head{ display:flex; justify-content: space-between; align-items:flex-start; gap: 8px; flex-wrap: wrap; }
.t-actions{ display:flex; gap: 6px; }
.link-row{ display:grid; grid-template-columns: 130px 1fr auto auto; gap: 8px; align-items: center; margin-top: 8px; }
.link-row .link-label{ font-size: .85em; color: var(--muted); }
.link-box code{ display: block; word-break: break-all; padding: 6px 8px; background:#f1f5f9; }
@media (max-width:700px){
  .link-row{ grid-template-columns: 1fr; }
  .link-row .link-label{ font-weight: 700; }
}

/* Pills */
.pill{ display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8em; font-weight: 600; }
.pill-pending{ background: #fef3c7; color: #92400e; }
.pill-approved, .pill-ok{ background: #dcfce7; color: #166534; }
.pill-rejected{ background: #fee2e2; color: #991b1b; }

/* ----------- Parent page ---------- */
.parent-bg{ background: #f1f5f9; min-height: 100vh; }
.parent-page, .teacher-page{ max-width: 720px; margin: 0 auto; padding: 12px; }
.parent-fields{ display: grid; gap: 8px; }
.parent-fields .field label{ display: block; font-size: .85em; color: var(--muted); margin-bottom: 2px; }

.sub-list{ display: grid; gap: 8px; }
.sub-item{ display:flex; gap: 10px; align-items: center; background:#fff; border:1px solid var(--line); border-radius: 8px; padding: 8px; }
.sub-item img, .sub-item .ph-placeholder{ width: 56px; height: 70px; object-fit: cover; border-radius: 6px; background: #f1f5f9; display:flex; align-items:center; justify-content:center; font-size: .7em; color: var(--muted); flex-shrink: 0; }
.sub-item .grow{ flex: 1; min-width: 0; }
.sub-name{ font-weight: 600; }

/* Camera */
.photo-section{ margin: 16px 0; }
.camera-wrap{
  position: relative; width: 100%; max-width: 360px; aspect-ratio: 3/4; margin: 8px 0;
  background: #000; border-radius: 12px; overflow: hidden;
}
.camera-wrap video{ width: 100%; height: 100%; object-fit: cover; display: block; }
/* Any SVG inside the camera wrap is treated as the alignment overlay */
.camera-wrap svg{ position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flash-warn{ position: absolute; left: 8px; right: 8px; bottom: 8px; display:flex; flex-direction: column; gap: 4px; pointer-events: none; }
.flash-warn span{ background: rgba(220,38,38,.92); color: #fff; padding: 4px 8px; border-radius: 6px; font-size: .8em; }
.cam-err{ display:flex; flex-direction:column; gap: 6px; align-items:center; justify-content:center; padding: 20px; color:#fff; height: 100%; text-align:center; }
.camera-actions{ display:flex; gap: 8px; flex-wrap: wrap; }
#photo-preview-wrap{ display:flex; gap: 12px; align-items: center; margin-top: 10px; }
#photo-preview{ width: 100px; height: 130px; object-fit: cover; border-radius: 6px; }

/* ----------- Cards grid (teacher / school) ---------- */
.cards-grid{
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  margin-top: 12px;
}
.card-item{
  background: #fff; padding: 12px; border-radius: 10px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  border-top: 4px solid #ddd;
}
.card-item.status-approved{ border-top-color: var(--ok); }
.card-item.status-pending{  border-top-color: var(--warn); }
.card-item.status-rejected{ border-top-color: var(--danger); }
.card-viz{ position: relative; background: #fff; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.card-meta{ display:flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.card-actions{ display:flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

.filter-row{ display:flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.filter-row select, .filter-row input{ flex: 1; min-width: 130px; }

/* ----------- Modal ---------- */
.modal{ position: fixed; inset: 0; background: rgba(15,23,42,.6); display:flex; align-items:center; justify-content:center; padding: 16px; z-index: 100; }
.modal[hidden]{ display: none; }
.modal-inner{ background: #fff; border-radius: 12px; padding: 20px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; position: relative; }
.modal-close{ position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 24px; cursor: pointer; color: #555; }
.modal-photo{ display:flex; gap: 12px; align-items:flex-start; margin: 6px 0 12px; }
.modal-photo img{ width: 100px; height: 130px; object-fit: cover; border-radius: 6px; background: #f3f4f6; }
.modal-actions{ display: flex; gap: 8px; margin-top: 16px; }

/* ----------- Exports ---------- */
.export-grid{ display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 14px; }
.export-card{ background: #f8fafc; border: 1px solid var(--line); padding: 14px; border-radius: 8px; }
.export-card h3{ margin: 0 0 4px; color: var(--primary); }

/* ----------- VCF ---------- */
.vcf-tbl{ width: 100%; border-collapse: collapse; margin: 8px 0; }
.vcf-tbl th, .vcf-tbl td{ border-bottom: 1px solid var(--line); padding: 4px; }

/* ----------- Dashboard logo + photo policy blocks ---------- */
.row.gap{ gap: 10px; }
.logo-block{
  display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start;
  margin-top: 14px; padding: 12px; background:#f8fafc; border:1px solid var(--line); border-radius: 8px;
}
.logo-preview img{ width: 84px; height: 84px; object-fit: contain; border:1px solid var(--line); border-radius:8px; background:#fff; }
.logo-empty{
  width:84px; height:84px; display:flex; align-items:center; justify-content:center;
  border:1px dashed var(--line); color: var(--muted); border-radius:8px; font-size:.78em; text-align:center; padding:6px;
}
.logo-side .lbl{ margin-top: 0; }
.logo-side input[type=file]{ width: auto; }

.policy-block{
  margin-top: 14px; padding: 10px 12px; background:#f8fafc;
  border:1px solid var(--line); border-radius: 8px;
}
.policy-block .lbl{ margin: 0; }
.policy-block p{ margin: 4px 0 8px; }
.policy-block .row{ row-gap: 6px; }
.policy-block label{ font-weight: 400; }

.grid-2{ display:grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.grid-3{ display:grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px){ .grid-2, .grid-3{ grid-template-columns: 1fr; } }

/* Coming-soon cards */
.soon-grid{ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.soon-card{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:14px; text-align:center; }
.soon-card h3{ margin: 6px 0 4px; }

/* Pill variants used across admin */
.pill-warn{ background:#fef3c7; color:#92400e; }
.pill-cart{ background:#e2e8f0; color:#334155; }
.pill-awaiting_payment{ background:#fef3c7; color:#92400e; }
.pill-paid{ background:#dbeafe; color:#1e40af; }
.pill-in_progress{ background:#fde68a; color:#854d0e; }
.pill-done{ background:#dcfce7; color:#166534; }
.pill-cancelled{ background:#fee2e2; color:#991b1b; }

/* Admin nav highlight */
.nav-admin{ background:#fef3c7; color:#92400e !important; padding: 4px 10px !important; border-radius: 8px; }

/* ----------- Footer ---------- */
.footer{ text-align: center; padding: 24px; color: var(--muted); font-size: .85em; }
