/* ===================================================
   WEBSHOP DEMO — MINIMALIST DESIGN SYSTEM
   =================================================== */

/* --- Design Tokens: Dark (default) --- */
:root {
  --bg:             #0a0a0a;
  --bg-blob:        #1a1a1a;
  --surface:        #141414;
  --surface-2:      #1c1c1c;
  --surface-3:      #242424;
  --border:         #2a2a2a;
  --border-hover:   #3c3c3c;
  --text:           #f0f0f0;
  --text-muted:     #888888;
  --text-dim:       #3a3a3a;
  --accent:         #10b981;
  --accent-hover:   #34d399;
  --accent-dim:     rgba(16, 185, 129, 0.12);
  --danger:         #ef4444;
  --danger-hover:   #dc2626;
  --shadow-sm:      0 1px 4px rgba(0, 0, 0, 0.5);
  --shadow-md:      0 4px 20px rgba(0, 0, 0, 0.55);
  --shadow-lg:      0 12px 48px rgba(0, 0, 0, 0.7);
  --r-sm:           8px;
  --r-md:           12px;
  --r-lg:           16px;
  --t:              0.25s ease;
}

/* --- Design Tokens: Light (system preference, not manually set to dark) --- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:           #f5f5f5;
    --bg-blob:      #e8e8e8;
    --surface:      #ffffff;
    --surface-2:    #f0f0f0;
    --surface-3:    #e8e8e8;
    --border:       #e0e0e0;
    --border-hover: #c8c8c8;
    --text:         #111111;
    --text-muted:   #666666;
    --text-dim:     #cccccc;
    --accent:       #059669;
    --accent-hover: #047857;
    --accent-dim:   rgba(5, 150, 105, 0.1);
    --danger:       #dc2626;
    --danger-hover: #b91c1c;
    --shadow-sm:    0 1px 4px rgba(0, 0, 0, 0.06);
    --shadow-md:    0 4px 20px rgba(0, 0, 0, 0.09);
    --shadow-lg:    0 12px 48px rgba(0, 0, 0, 0.13);
  }
}

/* --- Design Tokens: Light (manually forced) --- */
[data-theme="light"] {
  --bg:           #f5f5f5;
  --bg-blob:      #e8e8e8;
  --surface:      #ffffff;
  --surface-2:    #f0f0f0;
  --surface-3:    #e8e8e8;
  --border:       #e0e0e0;
  --border-hover: #c8c8c8;
  --text:         #111111;
  --text-muted:   #666666;
  --text-dim:     #cccccc;
  --accent:       #059669;
  --accent-hover: #047857;
  --accent-dim:   rgba(5, 150, 105, 0.1);
  --danger:       #dc2626;
  --danger-hover: #b91c1c;
  --shadow-sm:    0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md:    0 4px 20px rgba(0, 0, 0, 0.09);
  --shadow-lg:    0 12px 48px rgba(0, 0, 0, 0.13);
}

/* Theme toggle button in navbar */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, 0.6);
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: border-color var(--t), color var(--t), background var(--t);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

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

/* ─── Base ───────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Organic corner blobs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: var(--bg-blob);
  filter: blur(100px);
}
body::before {
  top: -280px;
  right: -280px;
  width: 680px;
  height: 680px;
}
body::after {
  bottom: -280px;
  left: -280px;
  width: 680px;
  height: 680px;
}

/* Content above blobs */
.navbar, main, .site-footer, .layout, .page-content, .item-detail {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ─── Navbar (always dark) ───────────────────────── */
.navbar {
  background: #0a0a0a;
  border-bottom: 1px solid #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

.nav-icon-btn {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--t);
}
.nav-icon-btn:hover { color: #ffffff; }

.badge {
  background: #10b981;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  letter-spacing: 0.03em;
}

/* ─── Currency switcher ───────────────────────────── */
.currency-switcher { display: flex; gap: 4px; flex-shrink: 0; }

.currency-btn {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  font-size: 0.8rem;
  transition: border-color var(--t), color var(--t), background var(--t);
  letter-spacing: 0.03em;
}
.currency-btn:hover,
.currency-btn.active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

/* ─── Account dropdown ───────────────────────────── */
.nav-account {
  position: relative;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.account-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-sm);
  padding: 7px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color var(--t), color var(--t), background var(--t);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width: 175px;
  z-index: 200;
  overflow: hidden;
}
.dropdown-menu.show { display: block; }

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background var(--t), color var(--t);
}
.dropdown-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.dropdown-item:hover { background: var(--surface-3); color: var(--accent); }

/* ─── Layout: sidebar + store ────────────────────── */
.layout {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 60px);
}

.sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 28px 20px;
  min-height: 100%;
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-section h4 {
  margin-bottom: 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.search-input {
  width: 100%;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.category-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  cursor: pointer;
  transition: color var(--t);
}
.category-label:hover { color: var(--text); }
.category-label input[type="checkbox"] { accent-color: var(--accent); }

.filter-btn {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  transition: background var(--t);
  letter-spacing: 0.03em;
}
.filter-btn:hover { background: var(--accent-hover); }

.filter-reset {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--t);
  text-decoration: none;
}
.filter-reset:hover { color: var(--text); }

/* ─── Store (product area) ───────────────────────── */
.store {
  flex: 1;
  min-width: 0;
  padding: 36px 32px;
}

.store-heading {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

/* ─── Product card ───────────────────────────────── */
.product-card-wrap { position: relative; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-img-placeholder {
  background: var(--surface-2);
  width: 100%;
  height: 160px;
  border-radius: var(--r-sm);
}
.product-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.product-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}
.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.product-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: auto;
}

/* ─── Wishlist button (card overlay) ─────────────── */
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.wishlist-btn.active,
.wishlist-btn:hover { color: var(--danger); border-color: var(--danger); }

/* Wishlist button when inside item detail (not absolutely placed) */
.item-actions .wishlist-btn {
  position: static;
  border-radius: var(--r-sm);
  width: auto;
  height: auto;
  padding: 9px 18px;
  font-size: 0.85rem;
  gap: 6px;
  justify-content: flex-start;
}

.wl-form { margin: 0; }

/* ─── Stock badge ────────────────────────────────── */
.stock-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.in-stock  { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.out-stock { background: rgba(239, 68, 68, 0.10);  color: var(--danger); }

/* ─── Primary button ─────────────────────────────── */
.add-to-cart {
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--t);
  letter-spacing: 0.03em;
  width: 100%;
  display: block;
}
.add-to-cart:hover  { background: var(--accent-hover); }
.add-to-cart:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Secondary & danger buttons ─────────────────── */
.btn-secondary {
  display: inline-block;
  padding: 9px 20px;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-danger {
  display: inline-block;
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--t), color var(--t);
}
.btn-danger:hover { background: var(--danger); color: #ffffff; }

/* ─── Form elements ──────────────────────────────── */
.form-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Number input — hide spin arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type="number"] { -moz-appearance: textfield; }

.qty-input {
  width: 80px;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
  font-family: inherit;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.qty-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* ─── Generic page wrapper ───────────────────────── */
.page-content {
  max-width: 1000px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}
.page-content h2 {
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
}

/* ─── Cart / data tables ─────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }

.cart-table th,
.cart-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.88rem;
}
.cart-table thead th {
  background: var(--surface-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  font-weight: 600;
}
.cart-table tfoot td {
  border-bottom: none;
  padding-top: 16px;
  font-size: 0.92rem;
}
.cart-table tfoot tr:last-child td {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

/* ─── Checkout ───────────────────────────────────── */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.checkout-form { display: flex; flex-direction: column; gap: 12px; }

/* ─── Coupon box ─────────────────────────────────── */
.coupon-box {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px dashed var(--border-hover);
  border-radius: var(--r-md);
}
.coupon-box h4 {
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.coupon-tag {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  margin-left: 8px;
}

/* ─── Admin panel ────────────────────────────────── */
.admin-nav { display: flex; gap: 6px; margin-bottom: 2rem; flex-wrap: wrap; }

.admin-tab {
  padding: 8px 18px;
  border: 1px solid var(--border-hover);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: background var(--t), color var(--t), border-color var(--t);
  display: inline-block;
  letter-spacing: 0.03em;
}
.admin-tab.active,
.admin-tab:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* ─── Pagination ─────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.page-btn {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.page-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* ─── Profile sections ───────────────────────────── */
.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  margin-bottom: 20px;
}
.profile-section h3 {
  margin-bottom: 18px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ─── Alerts ─────────────────────────────────────── */
.alert-success {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.alert-error {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.22);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
  font-size: 0.88rem;
}

/* ─── Item detail page ───────────────────────────── */
.item-detail {
  max-width: 1000px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}
.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--t);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-link:hover { color: var(--text); }

.item-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.item-detail-img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.item-detail-placeholder {
  width: 100%;
  height: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.item-info { display: flex; flex-direction: column; gap: 14px; }

.item-category {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.item-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.item-price-old {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.item-description {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.9rem;
}
.item-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* ─── Reviews ────────────────────────────────────── */
.reviews-section {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.reviews-section h3 { margin-bottom: 1.5rem; font-size: 1.1rem; }

.review-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 2.5rem; }

.review-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--text);
  resize: vertical;
  outline: none;
  font-family: inherit;
  transition: border-color var(--t), box-shadow var(--t);
}
.review-textarea::placeholder { color: var(--text-muted); }
.review-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.reviews-list { display: flex; flex-direction: column; gap: 12px; margin-top: 1rem; }

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.stars { color: #f59e0b; font-size: 1rem; }
.review-date {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-left: auto;
}
.no-reviews { color: var(--text-muted); font-size: 0.88rem; }

/* ─── Category checkbox grid (coupon admin form) ─── */
.cat-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px 12px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.cat-checkbox-grid .category-label { color: var(--text); }

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 28px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  position: relative;
  z-index: 1;
  letter-spacing: 0.03em;
}

/* ─── Login / Register card ──────────────────────── */
.neknek {
  max-width: 420px;
  margin: 5rem auto;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.neknek h2 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Legacy .prijava — normalised to match new styles */
.prijava { background: transparent; width: auto; height: auto; margin: 0; }
.prijava form { display: flex; flex-direction: column; gap: 10px; }
.prijava input {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.prijava input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
