/* ════════════════════════════════════════════════════════
   POK 2026 – Design System v2
   Art BSA · Kulturno društvo BSA
   Poletni orkestrski kamp
   ════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ─── Tokens (V35 – SMO-style) ─── */
:root {
  /* POK Brand */
  --pok-blue:        #1c86bf;
  --pok-blue-hover:  #15679a;
  --pok-blue-dark:   #1570a6;
  --pok-blue-light:  #e1f0f8;
  --pok-blue-subtle: #f2f8fc;
  --pok-cream:       #FCFFEB;
  --pok-lime:        #D2F245;
  --pok-lime-light:  #F4FBD9;
  --pok-peach:       #FEC693;
  --pok-peach-light: #FFF1E2;
  --pok-sky:         #B3CDFF;
  --pok-sky-light:   #E5EEFF;
  --pok-dark:        #1B2C43;
  --pok-navy:        #0D1B2A;
  --pok-navy-mid:    #142333;
  --pok-orange:      #f46409;
  --pok-orange-dark: #d45500;
  --pok-red:         #CF0E25;
  --pok-red-light:   #FBE3E6;
  --pok-green:       #22C55E;
  --pok-green-dark:  #16A34A;
  --pok-amber:       #F59E0B;
  --pok-success:     #34C759;
  --pok-success-bg:  #DCFCE7;
  --pok-warning:     #F59E0B;
  --pok-warning-bg:  #FEF3C7;
  --pok-danger:      #EF4444;
  --pok-danger-bg:   #FEE2E2;
  --pok-sidebar-w:   240px;
  --pok-radius-lg:   16px;
  --pok-radius-md:   12px;
  --pok-radius-sm:   8px;
  --pok-shadow-sm:   0 1px 3px rgba(15, 23, 42, 0.04);
  --pok-shadow-md:   0 4px 12px rgba(15, 23, 42, 0.06);
  --pok-shadow-lg:   0 8px 28px rgba(15, 23, 42, 0.08);
  --pok-font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --pok-font-display:'PP Neue World', 'Inter', sans-serif;
  --pok-font-mono:   'JetBrains Mono', monospace;
  --pok-ease:        cubic-bezier(0.4, 0, 0.2, 1);

  /* Surface */
  --bg:           var(--pok-cream);
  --white:        #FFFFFF;
  --border:       #E2E8F0;
  --border-light: #F1F5F9;

  /* Text */
  --text:       var(--pok-dark);
  --text-mid:   #4A5568;
  --text-light: #94A3B8;

  /* Sidebar (legacy alias) */
  --sidebar-w: var(--pok-sidebar-w);

  /* Radii (legacy aliases) */
  --r-sm: var(--pok-radius-sm);
  --r-md: var(--pok-radius-md);
  --r-lg: var(--pok-radius-lg);

  /* Shadows (legacy aliases) */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: var(--pok-shadow-sm);
  --shadow-md: var(--pok-shadow-md);
  --shadow-lg: var(--pok-shadow-lg);

  --transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--pok-font);
  background: var(--pok-cream);
  color: var(--pok-dark);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Pages WITH sidebar get left padding */
body:has(.nav) {
  padding-left: var(--pok-sidebar-w);
}

h1, h2, h3 {
  font-family: var(--pok-font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h4 {
  letter-spacing: -0.25px;
}

a {
  color: var(--pok-blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--pok-blue-dark); }


/* ════════════════════════════════════════════════════════
   SIDEBAR  (class="nav") – V35 bel sidebar
   ════════════════════════════════════════════════════════ */

.nav {
  width: var(--pok-sidebar-w);
  min-height: 100vh;
  background: #ffffff;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  font-family: var(--pok-font);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #E5E7EB transparent;
  z-index: 200;
}

/* ─── Sidebar brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid #E5E7EB;
  color: var(--pok-dark);
  font-family: var(--pok-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.nav-brand::before {
  content: "";
  display: inline-block;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--pok-blue), var(--pok-blue-hover));
  border-radius: 8px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.nav-brand:hover {
  background: var(--pok-blue-subtle);
  color: var(--pok-blue);
}
.nav-brand:focus-visible {
  outline: 2px solid var(--pok-blue);
  outline-offset: -2px;
}

/* Override: nav-brand must not inherit .nav a styles */
.nav a.nav-brand {
  padding: 1.1rem 1.2rem;
  min-height: auto;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pok-dark);
  border-left: none;
  background-color: transparent;
  border-bottom: 1px solid #E5E7EB;
}
.nav a.nav-brand:hover {
  background: var(--pok-blue-subtle);
  color: var(--pok-blue);
}

/* ─── Section headers */
.nav-section {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  padding: 0.9rem 1.2rem 0.4rem;
  font-weight: 600;
  border-top: none;
  margin-top: 0;
}
.nav-section:not(:first-of-type) {
  border-top: 1px solid #F1F5F9;
  margin-top: 0.5rem;
}

/* ─── Group header (Banka) */
.nav-group-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748B;
  cursor: default;
}
.nav-group-header svg { opacity: 0.6; }

/* ─── Nav links */
.nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.46rem 1.2rem;
  color: #475569;
  font-size: 0.855rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.13s, color 0.13s, border-color 0.13s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.nav a .nav-icon,
.nav a svg {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  opacity: 0.65;
}
.nav a:hover {
  background: var(--pok-blue-subtle);
  color: var(--pok-blue);
}
.nav a:hover .nav-icon,
.nav a:hover svg { opacity: 1; }

.nav a.active {
  background: var(--pok-blue-light);
  color: var(--pok-blue);
  border-left-color: var(--pok-blue);
  font-weight: 600;
}
.nav a.active .nav-icon,
.nav a.active svg { opacity: 1; }

/* ─── Sub-links */
.nav a.nav-sub {
  padding-left: 2.4rem;
  font-size: 0.825rem;
  color: #64748B;
}
.nav a.nav-sub:hover { color: var(--pok-blue); background: var(--pok-blue-subtle); }
.nav a.nav-sub.active { color: var(--pok-blue); background: var(--pok-blue-light); border-left-color: var(--pok-blue); }

/* ─── Inline count pill */
.nav-count {
  margin-left: auto;
  background: #E5E7EB;
  color: #64748B;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
  line-height: 1.6;
  flex-shrink: 0;
}
.nav a.active .nav-count {
  background: var(--pok-blue);
  color: #ffffff;
}

/* ─── Badge (unread / pending) */
.nav-badge {
  margin-left: 4px;
  background: var(--pok-danger);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}
.nav-badge.amber { background: var(--pok-warning); }

/* External links */
.nav a[target="_blank"] {
  color: var(--pok-blue) !important;
  opacity: 0.8;
}
.nav a[target="_blank"]:hover {
  opacity: 1;
  background: var(--pok-blue-subtle) !important;
}

/* Logout */
.nav a[href*="logout"] {
  margin-top: auto !important;
  color: #EF4444 !important;
  border-top: 1px solid #F1F5F9;
  padding-top: 0.6rem;
}
.nav a[href*="logout"]:hover {
  background: #FEE2E2 !important;
  color: #B91C1C !important;
}

/* Sidebar footer tag */
.nav::after {
  content: 'Art BSA · Kulturno društvo BSA';
  display: block;
  padding: 0.75rem 1.2rem;
  font-size: 0.62rem;
  color: #CBD5E1;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}


/* ════════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════════ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
}

.main {
  margin-left: var(--pok-sidebar-w);
}


/* ════════════════════════════════════════════════════════
   PAGE HEADER  (.header)
   ════════════════════════════════════════════════════════ */

.header {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: left;
  border-bottom: 3px solid var(--pok-blue);
}

.header h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.header p {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 400;
}

.header a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
}


/* ════════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════════ */

.card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.card h2 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.75rem;
}


/* ════════════════════════════════════════════════════════
   STAT BOXES
   ════════════════════════════════════════════════════════ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.stat-box {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--pok-blue);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-box h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.5px;
}

.stat-box p {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.stat-box.gold {
  border-left-color: var(--pok-orange);
}
.stat-box.gold h3 {
  color: var(--pok-orange-dark);
}

.stat-box.dark {
  background: var(--pok-navy);
  border-color: var(--pok-navy);
  border-left-color: var(--pok-blue);
}
.stat-box.dark h3 { color: var(--white); }
.stat-box.dark p  { color: rgba(255,255,255,0.45); }

.stat-box.green  { border-left-color: var(--pok-green); }
.stat-box.purple { border-left-color: #8B5CF6; }
.stat-box.red    { border-left-color: var(--pok-red); }
.stat-box.teal   { border-left-color: #14B8A6; }


/* ════════════════════════════════════════════════════════
   TABLES
   ════════════════════════════════════════════════════════ */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
}

table th {
  background: #F8FAFC;
  color: var(--text-mid);
  padding: 0.65rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

table th:first-child { border-radius: var(--r-sm) 0 0 0; }
table th:last-child  { border-radius: 0 var(--r-sm) 0 0; }

table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}

table tbody tr {
  transition: background var(--transition);
}

table tbody tr:nth-child(even) { background: #FAFBFD; }
table tbody tr:hover            { background: #EFF6FF; }
table tbody tr:last-child td   { border-bottom: none; }

/* tfoot / totals */
table tfoot td {
  background: #F8FAFC;
  font-weight: 700;
  color: var(--text);
  border-top: 2px solid var(--border);
  padding: 0.7rem 1rem;
}

/* Money cells */
.money, td[style*="text-align:right"], td[align="right"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}


/* ════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--pok-font);
  font-weight: 600;
  font-size: 0.86rem;
  border-radius: var(--pok-radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s var(--pok-ease);
  background: var(--pok-blue);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(28, 134, 191, 0.2);
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.btn:hover {
  background: var(--pok-blue-hover);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(28, 134, 191, 0.3);
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
  box-shadow: none;
}

.btn svg { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; }

/* CTA / submit buttons */
.btn-cta,
button.btn[type="submit"]:not(.btn-secondary):not([name="save_admin_notes"]):not([name="add_payment"]) {
  background: var(--pok-orange);
}

.btn-cta:hover,
button.btn[type="submit"]:not(.btn-secondary):not([name="save_admin_notes"]):not([name="add_payment"]):hover {
  background: var(--pok-orange-dark);
  box-shadow: 0 4px 12px rgba(244,100,9,0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--pok-dark);
  border: 1px solid #CBD5E1;
  box-shadow: none;
}
.btn-secondary:hover {
  background: var(--pok-blue-subtle);
  border-color: var(--pok-blue);
  color: var(--pok-blue);
  transform: none;
}

.btn-danger {
  background: var(--pok-danger);
  color: #fff;
}
.btn-danger:hover {
  background: #DC2626;
  box-shadow: 0 4px 12px rgba(239,68,68,0.35);
}

.btn-success { background: var(--pok-success); color: #fff; }

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
}


/* ════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════ */

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--text-mid);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--pok-radius-sm);
  font-size: 0.86rem;
  font-family: var(--pok-font);
  background: #ffffff;
  color: var(--pok-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pok-blue);
  box-shadow: 0 0 0 3px rgba(28,134,191,0.15);
}

/* Global input/select/textarea styles */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="tel"],
select, textarea {
  border: 1px solid #CBD5E1;
  border-radius: var(--pok-radius-sm);
  font-family: var(--pok-font);
  font-size: 0.86rem;
  background: #ffffff;
  color: var(--pok-dark);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pok-blue);
  box-shadow: 0 0 0 3px rgba(28, 134, 191, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Form helpers */
.required::after {
  content: ' *';
  color: var(--pok-red);
}

.help-text {
  font-size: 0.73rem;
  color: var(--text-light);
  margin-top: 0.3rem;
  line-height: 1.5;
}

.error {
  font-size: 0.75rem;
  color: var(--pok-red);
  margin-top: 0.25rem;
}


/* ════════════════════════════════════════════════════════
   ALERTS
   ════════════════════════════════════════════════════════ */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-md);
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-size: 0.84rem;
  line-height: 1.5;
}

.alert-success {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.alert-error {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.alert-info {
  background: #DBEAFE;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.alert-warning {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}


/* ════════════════════════════════════════════════════════
   STAT TILES  (V35 – dashboard, payments)
   ════════════════════════════════════════════════════════ */

.stat-tile {
  border-radius: var(--pok-radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--pok-shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
}
.stat-tile .stat-value {
  font-family: var(--pok-font-display);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-tile .stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0.85;
}
.stat-tile.cream  { background: var(--pok-cream); color: var(--pok-dark); border: 2px solid var(--pok-blue); }
.stat-tile.cream .stat-value { color: var(--pok-blue); }
.stat-tile.dark   { background: linear-gradient(135deg, #1B2C43, #0F1A2E); color: #ffffff; }
.stat-tile.red    { background: linear-gradient(135deg, #EF4444, #B91C1C); color: #ffffff; }
.stat-tile.green  { background: linear-gradient(135deg, #34C759, #22A24A); color: #ffffff; }
.stat-tile.blue   { background: linear-gradient(135deg, var(--pok-blue), var(--pok-blue-hover)); color: #ffffff; }
.stat-tile.orange { background: linear-gradient(135deg, #F46409, #B14706); color: #ffffff; }
.stat-tile.teal   { background: linear-gradient(135deg, #0D9488, #0F766E); color: #ffffff; }


/* ════════════════════════════════════════════════════════
   POK TABLE  (V35 – styled data tables)
   ════════════════════════════════════════════════════════ */

.pok-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: var(--pok-radius-md);
  overflow: hidden;
  box-shadow: var(--pok-shadow-sm);
  font-size: 0.86rem;
}
.pok-table thead th {
  background: #F8FAFC;
  color: #64748B;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #E2E8F0;
}
.pok-table tbody td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}
.pok-table tbody tr:hover { background: var(--pok-blue-subtle); }
.pok-table tbody tr:last-child td { border-bottom: none; }


/* ════════════════════════════════════════════════════════
   PROGRESS BARS
   ════════════════════════════════════════════════════════ */

.progress-bar-wrap {
  background: var(--border);
  border-radius: 100px;
  height: 16px;
  overflow: hidden;
}

.progress-bar {
  height: 16px;
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  min-width: 4px;
}


/* ════════════════════════════════════════════════════════
   BADGES / STATUS PILLS
   ════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--pok-font);
  white-space: nowrap;
}
.badge-success { background: var(--pok-success-bg); color: #15803D; }
.badge-warning  { background: var(--pok-warning-bg); color: #B45309; }
.badge-danger   { background: var(--pok-danger-bg);  color: #B91C1C; }
.badge-info     { background: var(--pok-blue-light);  color: var(--pok-blue); }
.badge-muted    { background: #F1F5F9; color: #475569; }

/* Status pills via inline spans */
span[style*="background:#d97706"],
span[style*="background: #d97706"] {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid #FDE68A !important;
}
span[style*="background:#059669"],
span[style*="background: #059669"] {
  background: #DCFCE7 !important;
  color: #15803D !important;
  border: 1px solid #BBF7D0 !important;
}
span[style*="background:#2563eb"],
span[style*="background: #2563eb"] {
  background: #DBEAFE !important;
  color: #1D4ED8 !important;
  border: 1px solid #BFDBFE !important;
}
span[style*="background:#dc2626"],
span[style*="background: #dc2626"] {
  background: #FEE2E2 !important;
  color: #B91C1C !important;
  border: 1px solid #FECACA !important;
}
span[style*="background:#6b7280"],
span[style*="background: #6b7280"] {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border: 1px solid #CBD5E1 !important;
}

/* Payment status pills */
span[style*="background:#dc2626"] { /* unpaid */
  background: #FEE2E2 !important;
  color: #B91C1C !important;
  border: 1px solid #FECACA !important;
}


/* ════════════════════════════════════════════════════════
   COUNTDOWN  (used in admin dashboard + index)
   ════════════════════════════════════════════════════════ */

.countdown-wrap {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cd-item {
  text-align: center;
}

.cd-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pok-blue);
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.cd-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-top: 0.2rem;
  font-weight: 600;
}


/* ════════════════════════════════════════════════════════
   LOGIN PAGE  (admin.php when not logged in)
   ════════════════════════════════════════════════════════ */

/* The login uses .container > .header + .card */
/* When there's no .nav, body has no sidebar padding */
body:not(:has(.nav)) .container {
  max-width: 480px;
  padding-top: 3rem;
}

body:not(:has(.nav)) .header {
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: none;
  border-bottom: none;
  background: var(--pok-blue);
  color: var(--white);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  margin-bottom: 0;
  position: relative;
}

body:not(:has(.nav)) .header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 4px;
  background: #D2F245;
  z-index: 1;
}

body:not(:has(.nav)) .header h1 {
  color: var(--white);
}

body:not(:has(.nav)) .header p {
  color: #B3CDFF;
}

body:not(:has(.nav)) .card:first-of-type {
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  border-top: none;
  box-shadow: var(--shadow-lg);
}


/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */

/* Override the inline-styled footer card */
.card[style*="background:#f0f0f0"],
.card[style*="background: #f0f0f0"] {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 1rem !important;
  margin-top: 0.5rem !important;
}

.card[style*="background:#f0f0f0"] p,
.card[style*="background: #f0f0f0"] p {
  color: var(--text-light) !important;
  font-size: 0.78rem !important;
}


/* ════════════════════════════════════════════════════════
   PUBLIC FORMS  (prijava-orkester / prijava-zbor / profil)
   ════════════════════════════════════════════════════════ */

/* When no nav (no sidebar), use centered max-width for forms */
body:not(:has(.nav)) {
  background: var(--bg);
}


/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  :root { --sidebar-w: 210px; }
  .container { padding: 1.5rem 1.5rem; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  body:has(.nav) {
    padding-left: 0;
    padding-top: 56px; /* topbar height */
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    height: 56px;
    overflow: hidden;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav::before {
    height: 56px;
    min-height: 56px;
    padding: 0 1rem 0 2.8rem;
    font-size: 0.9rem;
    background-position: 0.8rem center;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    white-space: nowrap;
  }

  .nav::after {
    display: none;
  }

  .nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    border-left: none;
    border-radius: var(--r-sm);
    flex-shrink: 0;
  }

  .nav a.active {
    background: rgba(28,134,191,0.3);
    border-left: none;
  }

  .nav a[href="projekti.php"],
  .nav a[href="prijava-orkester.php"],
  .nav a[href="prijava-zbor.php"] {
    border-top: none;
    margin-top: 0;
    padding-top: 0.45rem;
  }

  .nav a[href*="logout"] {
    margin-top: 0 !important;
    border-top: none;
    padding-top: 0.45rem;
  }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .container { padding: 1rem; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════
   UTILITY
   ════════════════════════════════════════════════════════ */

.text-muted  { color: var(--text-light); }
.text-blue   { color: var(--pok-blue); }
.text-green  { color: var(--pok-green-dark); }
.text-red    { color: var(--pok-red); }
.text-orange { color: var(--pok-orange); }
.text-mono   { font-variant-numeric: tabular-nums; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-sm       { gap: 0.5rem; }
.gap-md       { gap: 1rem; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════
   PRINT
   ════════════════════════════════════════════════════════ */

@media print {
  body:has(.nav) { padding-left: 0; }
  .nav { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .btn  { display: none; }

/* ════════════════════════════════════════════════════════
   V17 – Dashboard hero
   ════════════════════════════════════════════════════════ */

.dash-hero {
  background: linear-gradient(135deg, #0b1a2e 0%, #1B2C43 60%, #1C86BF 100%);
  color: #fff;
  border-radius: 20px;
  padding: 40px 44px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.dash-hero::before {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(28,134,191,.35), transparent 70%);
  pointer-events: none;
}
.dash-hero-label {
  font-size: 11px; letter-spacing: 2.5px; opacity: .65; font-weight: 600;
  text-transform: uppercase;
}
.dash-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 48px; font-weight: 800; line-height: 1.05;
  margin: 10px 0 8px; letter-spacing: -1px;
}
.dash-hero-sub { opacity: .7; font-size: 14px; }
.dash-hero-stats {
  display: flex; gap: 52px; margin-top: 26px; flex-wrap: wrap;
}
.dash-hero-stats > div strong {
  display: block; font-size: 46px; font-weight: 800; line-height: 1;
  letter-spacing: -1px;
}
.dash-hero-stats > div span {
  display: block; margin-top: 5px; font-size: 10px;
  letter-spacing: 2.5px; opacity: .55; font-weight: 600; text-transform: uppercase;
}
.dash-hero-stats .t-blue  strong { color: #6FB9E8; }
.dash-hero-stats .t-purple strong { color: #C6A8FF; }

/* ════════════════════════════════════════════════════════
   V17 – Status cards (dashboard)
   ════════════════════════════════════════════════════════ */

.status-card {
  border-radius: 14px; padding: 18px 14px; text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.status-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27,44,67,.1); }
.status-card .icon { margin-bottom: 10px; display: block; }
.status-num  { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.status-label { font-size: 11px; letter-spacing: 1.5px; color: #8892a6; font-weight: 600; text-transform: uppercase; margin-top: 6px; }

/* ════════════════════════════════════════════════════════
   V17 – Pack cards (dashboard)
   ════════════════════════════════════════════════════════ */

.pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pack-card { border-radius: 14px; padding: 20px; color: #fff; position: relative; overflow: hidden; }
.pack-blue   { background: linear-gradient(135deg, #1C86BF, #0f5a85); }
.pack-orange { background: linear-gradient(135deg, #F46409, #a73e04); }
.pack-title  { font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.pack-price  { opacity: .75; font-size: 12px; margin-top: 3px; }
.pack-body   { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
.pack-count  { font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.pack-total  { font-size: 16px; font-weight: 600; opacity: .9; }
.pack-total-row {
  display: flex; gap: 20px; align-items: baseline;
  padding: 14px 18px; margin-top: 12px;
  background: #FCFFEB; border-radius: 10px;
  font-size: 13px; color: #1B2C43; flex-wrap: wrap;
}
.pack-total-row span { font-weight: 600; letter-spacing: 1.5px; color: #8892a6; font-size: 11px; text-transform: uppercase; }
.pack-total-row b { font-size: 16px; font-weight: 700; }

/* ════════════════════════════════════════════════════════
   V17 – Countdown cards (colored-top)
   ════════════════════════════════════════════════════════ */

.count-card {
  background: #fff; border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(27,44,67,.06);
  border-top: 4px solid #1C86BF;
  border: 1px solid var(--border);
  border-top-width: 4px;
  transition: transform .15s, box-shadow .15s;
}
.count-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(27,44,67,.08); }
.count-blue   { border-top-color: #1C86BF !important; }
.count-orange { border-top-color: #F46409 !important; }
.count-green  { border-top-color: #10b981 !important; }
.count-purple { border-top-color: #7c3aed !important; }
.count-label  { font-size: 10px; letter-spacing: 2px; color: #8892a6; font-weight: 600; text-transform: uppercase; }
.count-date   { margin: 5px 0 12px; font-size: 14px; color: #1B2C43; font-weight: 600; }
.count-timer  { display: flex; gap: 16px; }
.count-timer > div { text-align: center; }
.count-timer b { font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; display: block; }
.count-blue   .count-timer b { color: #1C86BF; }
.count-orange .count-timer b { color: #F46409; }
.count-green  .count-timer b { color: #10b981; }
.count-purple .count-timer b { color: #7c3aed; }
.count-timer span { display: block; font-size: 9px; letter-spacing: 1.5px; color: #8892a6; margin-top: 3px; text-transform: uppercase; font-weight: 600; }

/* ════════════════════════════════════════════════════════
   V17 – Profile hero (profil.php)
   ════════════════════════════════════════════════════════ */

.profile-hero {
  background: linear-gradient(135deg, #1B2C43 0%, #1C86BF 100%);
  border-radius: 20px; padding: 32px 36px; color: #fff; margin-bottom: 22px;
}
.profile-hero-inner { display: flex; gap: 22px; align-items: center; }
.profile-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.3);
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 24px; font-weight: 800; letter-spacing: -1px;
}
.profile-hero-kicker { font-size: 10px; letter-spacing: 2.5px; opacity: .65; font-weight: 600; text-transform: uppercase; }
.profile-hero-title  { font-size: 34px; margin: 5px 0 7px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; }
.profile-hero-meta   { opacity: .8; font-size: 13px; }
.profile-hero-meta span + span { margin-left: 4px; }

/* ════════════════════════════════════════════════════════
   V17 – Info grid (profil.php stat cards)
   ════════════════════════════════════════════════════════ */

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.info-card {
  background: #fff; border-radius: 16px; padding: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(27,44,67,.05);
  transition: transform .15s, box-shadow .15s;
}
.info-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(27,44,67,.08); }
.info-icon { color: var(--pok-blue); margin-bottom: 12px; display: block; }
.info-pay  .info-icon  { color: #10b981; }
.info-notes .info-icon { color: #1C86BF; }
.info-status .info-icon { color: #F46409; }
.info-value {
  font-size: 30px; font-weight: 800; color: #1B2C43; line-height: 1.1; letter-spacing: -0.5px;
}
.info-status-text { font-size: 20px; }
.info-label { color: #8892a6; font-size: 12px; margin-top: 5px; font-weight: 500; }
.info-bar { height: 5px; background: #eef1f5; border-radius: 3px; margin-top: 12px; overflow: hidden; }
.info-bar > div { height: 100%; background: linear-gradient(90deg, #10b981, #34d399); border-radius: 3px; transition: width .4s; }

/* ════════════════════════════════════════════════════════
   V17 – Profile cards (section wrappers in profil.php)
   ════════════════════════════════════════════════════════ */

.profile-card {
  background: #fff; border-radius: 16px; padding: 26px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(27,44,67,.04);
  margin-bottom: 18px;
}
.profile-card h2, .profile-card h3 {
  font-size: 18px; font-weight: 700; color: #1B2C43;
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.profile-card h2 .icon, .profile-card h3 .icon { color: var(--pok-blue); }

/* ════════════════════════════════════════════════════════
   V17 – Form fields (profil.php)
   ════════════════════════════════════════════════════════ */

.field { margin-bottom: 14px; }
.field label {
  display: block; font-weight: 600; font-size: 13px;
  color: #1B2C43; margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1.5px solid #e2e7ee;
  border-radius: 10px; font-size: 14px; font-family: 'Inter', sans-serif;
  background: #fafbfd; color: #1B2C43;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--pok-blue);
  background: #fff; box-shadow: 0 0 0 3px rgba(28,134,191,.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-primary {
  background: linear-gradient(135deg, #1C86BF, #0f5a85);
  color: #fff; border: 0; padding: 11px 22px;
  border-radius: 10px; font-weight: 600; font-size: 14px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .1s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(28,134,191,.3); }

/* SVG icon helper */
.icon { vertical-align: middle; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════
   V19 – Profile layout wrapper
   ════════════════════════════════════════════════════════ */

.profile-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
@media (max-width: 720px) {
  .profile-wrap { padding: 20px 16px 48px; }
}

/* ════════════════════════════════════════════════════════
   V19 – Field grid (2-column form layout)
   ════════════════════════════════════════════════════════ */

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.field-grid .field-full { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .field-full { grid-column: 1; }
}

.field-grid .field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1B2C43;
  margin-bottom: 6px;
}
.field-grid .field input,
.field-grid .field select,
.field-grid .field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e7ee;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #fafbfd;
  color: #1B2C43;
  min-height: 42px;
  box-sizing: border-box;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field-grid .field input:focus,
.field-grid .field select:focus,
.field-grid .field textarea:focus {
  outline: none;
  border-color: #1C86BF;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(28,134,191,.12);
}
.field-grid .field textarea { min-height: 80px; resize: vertical; }

/* Width limiters */
.input-sm { max-width: 200px !important; }
.input-md { max-width: 320px !important; }

/* ════════════════════════════════════════════════════════
   V19 – Form actions row (right-aligned buttons)
   ════════════════════════════════════════════════════════ */

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef1f5;
}
.form-actions.left { justify-content: flex-start; }

/* Ensure .btn-primary is never full-width by default */
.btn-primary { width: auto; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; background: #9ca3af !important; transform: none !important; box-shadow: none !important; }

/* Ghost button */
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  font-family: 'Inter', sans-serif; cursor: pointer;
  background: #fff; color: #1B2C43;
  border: 1.5px solid #e2e7ee;
  transition: background .15s;
  text-decoration: none; min-height: 42px;
}
.btn-ghost:hover { background: #f5f7fa; color: #1B2C43; }

/* ════════════════════════════════════════════════════════
   V19 – Inline message form
   ════════════════════════════════════════════════════════ */

.msg-row { display: flex; gap: 10px; align-items: stretch; }
.msg-row input { flex: 1; padding: 10px 14px; border: 1.5px solid #e2e7ee; border-radius: 10px; font-size: 14px; font-family: 'Inter', sans-serif; background: #fafbfd; min-height: 42px; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
.msg-row input:focus { outline: none; border-color: #1C86BF; background: #fff; box-shadow: 0 0 0 3px rgba(28,134,191,.12); }
.msg-row .btn-primary { flex-shrink: 0; }
@media (max-width: 480px) { .msg-row { flex-wrap: wrap; } }

/* ════════════════════════════════════════════════════════
   V19 – Admin preview banner
   ════════════════════════════════════════════════════════ */

.admin-view-banner {
  background: #D2F245;
  border-bottom: 2px solid #bada36;
  padding: 10px 0;
}
.admin-view-banner-inner {
  max-width: 880px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 14px; font-weight: 500; color: #1B2C43;
}
.btn-ghost-dark {
  background: #1B2C43; color: #fff;
  padding: 6px 14px; border-radius: 8px;
  text-decoration: none; font-size: 13px; font-weight: 600;
  transition: background .15s;
}
.btn-ghost-dark:hover { background: #000; color: #fff; }

/* profile-card scroll margin */
.profile-card { scroll-margin-top: 20px; }

/* ════════════════════════════════════════════════════════
   V18 – Edit form, row actions, flash
   ════════════════════════════════════════════════════════ */

.edit-form { max-width: 1100px; }

.edit-form-actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, #EFF3F8 60%, transparent);
  padding: 16px 0 20px;
  z-index: 50;
}

.row-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.row-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px; border-radius: 7px;
  font-size: 12px; font-weight: 600;
  text-decoration: none; transition: background .12s;
  white-space: nowrap;
}
.row-link           { color: var(--pok-blue); }
.row-link:hover     { background: rgba(28,134,191,.1); color: var(--pok-blue); }
.row-link-edit      { color: var(--pok-orange); }
.row-link-edit:hover { background: rgba(244,100,9,.1); color: var(--pok-orange); }

.flash {
  padding: 13px 18px; border-radius: 10px; margin-bottom: 16px;
  font-weight: 500; font-size: 14px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.flash-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.flash-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #CF0E25; }
.flash a       { color: inherit; text-decoration: underline; font-weight: 700; }

.meta-info {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 14px 20px; background: #f5f7fa;
  border-radius: 12px; font-size: 12px; color: #8892a6;
  margin-top: 16px;
}
.meta-info b { color: var(--text); }
.meta-info code {
  background: #fff; padding: 1px 7px;
  border-radius: 5px; border: 1px solid #e2e7ee;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
}

/* ── V36 Pipeline ─────────────────────────────────────────────────── */
.pok-pipeline {
  display: flex; align-items: flex-start; gap: 0;
  padding: 1rem 1.25rem;
  background: var(--pok-cream);
  border-radius: var(--pok-radius-md);
  border: 1px solid #E5E7EB;
}
.pok-pipeline-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1 1 0; position: relative; min-width: 0;
}
.pok-pipeline-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.86rem;
  background: #E5E7EB; color: #94A3B8; border: 2px solid #E5E7EB;
  z-index: 2; transition: all 0.2s;
}
.pok-pipeline-circle svg { stroke: currentColor; flex-shrink: 0; }
.pok-pipeline-step--done .pok-pipeline-circle    { background: var(--pok-success); color:#fff; border-color: var(--pok-success); }
.pok-pipeline-step--current .pok-pipeline-circle { background: var(--pok-blue); color:#fff; border-color: var(--pok-blue); box-shadow: 0 0 0 4px rgba(28,134,191,0.18); animation: pok-pulse 2s ease-in-out infinite; }
.pok-pipeline-step--pending .pok-pipeline-circle  { background:#fff; color:#94A3B8; border-color:#CBD5E1; }
.pok-pipeline-step--blocked .pok-pipeline-circle  { background:#F1F5F9; color:#94A3B8; border-color:#E2E8F0; }
@keyframes pok-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(28,134,191,0.18); }
  50%     { box-shadow: 0 0 0 8px rgba(28,134,191,0.08); }
}
.pok-pipeline-label { margin-top: 0.5rem; text-align: center; }
.pok-pipeline-title { font-size: 0.78rem; font-weight: 600; color: var(--pok-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.pok-pipeline-hint  { font-size: 0.72rem; color: #64748B; margin-top: 2px; }
.pok-pipeline-step--done .pok-pipeline-title    { color: var(--pok-success); }
.pok-pipeline-step--current .pok-pipeline-title { color: var(--pok-blue); }
.pok-pipeline-step--blocked .pok-pipeline-title,
.pok-pipeline-step--blocked .pok-pipeline-hint  { color: #94A3B8; }
.pok-pipeline-connector {
  position: absolute; top: 16px; left: calc(50% + 16px); right: calc(-50% + 16px);
  height: 2px; background: #E5E7EB; z-index: 1;
}
.pok-pipeline-connector--done { background: var(--pok-success); }
.pok-pipeline--compact { padding: 4px 0; background: transparent; border: none; }
.pok-pipeline--compact .pok-pipeline-circle { width:18px; height:18px; font-size:0.66rem; }
.pok-pipeline--compact .pok-pipeline-circle svg { width:10px; height:10px; }
.pok-pipeline--compact .pok-pipeline-label { display:none; }
.pok-pipeline--compact .pok-pipeline-connector { top:9px; left:calc(50% + 9px); right:calc(-50% + 9px); }
.pok-pipeline-warning {
  margin-top: 0.75rem; padding: 0.6rem 0.85rem;
  background: var(--pok-warning-bg); color: #92400E;
  border-radius: var(--pok-radius-sm); font-size: 0.82rem;
  display: flex; align-items: center; gap: 0.45rem;
}
.pok-pipeline-warning svg { stroke: currentColor; flex-shrink: 0; }

/* ── V36 User Panel ───────────────────────────────────────────────── */
.pok-user-panel {
  background: #fff; border-radius: var(--pok-radius-lg);
  padding: 1.25rem 1.5rem; box-shadow: var(--pok-shadow-md);
  margin-bottom: 1.5rem;
}
.pok-user-panel-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:1rem; }
.pok-user-panel-title  { font-family:var(--pok-font-display); font-size:1.25rem; font-weight:700; color:var(--pok-dark); margin:0; }
.pok-user-panel-progress { display:flex; align-items:center; gap:0.6rem; }
.pok-user-panel-bar  { width:120px; height:6px; background:#E5E7EB; border-radius:999px; overflow:hidden; }
.pok-user-panel-fill { height:100%; background:linear-gradient(90deg,var(--pok-blue),var(--pok-success)); border-radius:999px; transition:width 0.4s; }
.pok-user-panel-percent { font-size:0.82rem; font-weight:600; color:var(--pok-blue); }
.pok-user-next {
  margin-top:1rem; display:flex; align-items:center; gap:1rem;
  padding:1rem 1.25rem; background:var(--pok-blue-subtle);
  border-radius:var(--pok-radius-md); border-left:3px solid var(--pok-blue);
}
.pok-user-next-icon { width:44px; height:44px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--pok-blue); }
.pok-user-next-text { flex:1; }
.pok-user-next-title { font-weight:700; font-size:1.02rem; color:var(--pok-dark); }
.pok-user-next-body  { font-size:0.86rem; color:#64748B; margin-top:2px; line-height:1.45; }
.pok-warning-inline {
  display:flex; align-items:center; gap:0.5rem;
  padding:0.6rem 0.85rem; background:var(--pok-warning-bg); color:#92400E;
  border-radius:var(--pok-radius-sm); font-size:0.83rem; margin-bottom:0.75rem;
}
.pok-warning-inline svg { stroke:currentColor; flex-shrink:0; }

/* ════════════════════════════════════════════════════════
   V73 – Mobilni admin: hamburger + predal (sidebar drawer)
   Te definicije so na koncu datoteke in povozijo starejša
   mobilna pravila za .nav zgoraj.
   ════════════════════════════════════════════════════════ */

.nav-burger {
  display: none;
  position: fixed;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 400;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: #1B2C43;
  color: #D2F245;
  font-size: 1.35rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(27, 44, 67, 0.35);
  cursor: pointer;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 40, 0.55);
  z-index: 250;
}

@media (max-width: 768px) {
  body:has(.nav) {
    padding-left: 0 !important;
    padding-top: 64px !important;   /* prostor za hamburger */
  }

  .nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    width: 290px !important;
    height: 100vh !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 0 2rem !important;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 6px 0 28px rgba(15, 25, 40, 0.35);
    z-index: 300;
    border-bottom: none !important;
  }

  .nav::before,
  .nav::after { display: none !important; }

  body.nav-open .nav { transform: translateX(0); }
  body.nav-open .nav-overlay { display: block; }

  .nav-burger { display: flex; }

  .nav a {
    padding: 0.65rem 1.2rem;
    font-size: 0.92rem;
    border-radius: 0;
    flex-shrink: 0;
  }
}

@media print {
  .nav-burger, .nav-overlay { display: none !important; }
}
