/* ============================================================
   Agora by Perseus Labs — Custom Stylesheet
   Apple-inspired UI on top of UIKit 3
   ============================================================ */

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  --agora-primary:    #1a2e26;    /* Forest green */
  --agora-accent:     #C9A84C;    /* Gold */
  --agora-bg:         #f5f5f7;    /* Apple soft gray */
  --agora-white:      #ffffff;
  --agora-text:       #1d1d1f;    /* Apple near-black */
  --agora-muted:      #6e6e73;    /* Apple secondary text */
  --agora-border:     #d2d2d7;
  --agora-success:    #30d158;    /* Apple green */
  --agora-danger:     #ff3b30;    /* Apple red */
  --agora-warning:    #ff9f0a;    /* Apple orange */
  --agora-info:       #0071e3;    /* Apple blue */

  --radius-sm:   8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 24px rgba(0,0,0,.12);
  --shadow-xl:  0 20px 48px rgba(0,0,0,.15);
}

/* ─── Base Reset / Typography ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  background: var(--agora-bg);
  color: var(--agora-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ─── UIKit Overrides ───────────────────────────────────── */
.uk-navbar-container {
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--agora-border);
}

.uk-navbar-nav > li > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--agora-text) !important;
  letter-spacing: -0.01em;
}

.uk-navbar-nav > li:hover > a,
.uk-navbar-nav > li > a:focus {
  color: var(--agora-accent) !important;
}

/* ─── Buttons ───────────────────────────────────────────── */
.uk-button {
  border-radius: 980px !important; /* Apple pill buttons */
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 15px;
  transition: all 0.2s ease;
}

.uk-button-primary {
  background: var(--agora-accent) !important;
  color: var(--agora-primary) !important;
  border: none !important;
}
.uk-button-primary:hover {
  background: #d4b360 !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.uk-button-secondary {
  background: var(--agora-primary) !important;
  color: white !important;
  border: none !important;
}
.uk-button-secondary:hover {
  background: #243d33 !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.uk-button-default {
  background: white !important;
  color: var(--agora-text) !important;
  border: 1px solid var(--agora-border) !important;
}
.uk-button-default:hover {
  background: var(--agora-bg) !important;
  border-color: #b0b0b5 !important;
}

.uk-button-danger {
  background: var(--agora-danger) !important;
  color: white !important;
  border: none !important;
}

/* ─── Cards ─────────────────────────────────────────────── */
.agora-card {
  background: var(--agora-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.uk-card-default {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
}

.uk-card-body {
  padding: 20px !important;
}

/* ─── Status Badges ─────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.status-pending          { background: #e5e5ea; color: #48484a; }
.status-confirmed        { background: #cce4ff; color: #0040a0; }
.status-preparing        { background: #fff0d0; color: #7a4a00; }
.status-delivery         { background: #e8d8ff; color: #5200a0; }
.status-completed        { background: #d4f5d4; color: #1a5c1a; }
.status-cancelled        { background: #ffe0de; color: #8c0000; }

.agora-badge-success {
  background: #d4f5d4 !important;
  color: #1a5c1a !important;
}

/* ─── Forms ─────────────────────────────────────────────── */
.uk-input, .uk-select, .uk-textarea {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--agora-border) !important;
  font-family: inherit !important;
  font-size: 15px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.uk-input:focus, .uk-select:focus, .uk-textarea:focus {
  border-color: var(--agora-accent) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2) !important;
  outline: none !important;
}

.uk-form-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--agora-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* ─── Navbar (Public) ───────────────────────────────────── */
.agora-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.agora-nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--agora-primary) !important;
  letter-spacing: -0.04em;
}

.agora-nav-logo span {
  color: var(--agora-accent);
}

/* ─── Hero Section ──────────────────────────────────────── */
.agora-hero {
  background: linear-gradient(135deg, var(--agora-primary) 0%, #2d4f3c 50%, #1a2e26 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.agora-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.agora-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: white;
  line-height: 1.1;
}

.agora-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  margin-top: 12px;
}

/* ─── Search Bar ────────────────────────────────────────── */
.agora-search-wrap {
  background: white;
  border-radius: var(--radius-xl);
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  margin-top: 32px;
  max-width: 640px;
}

.agora-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  background: transparent;
  color: var(--agora-text);
}

.agora-search-wrap input::placeholder { color: var(--agora-muted); }

/* ─── Filter Pills ──────────────────────────────────────── */
.agora-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.agora-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  background: white;
  color: var(--agora-text);
  border: 1px solid var(--agora-border);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.agora-pill:hover,
.agora-pill.active {
  background: var(--agora-primary);
  color: white;
  border-color: var(--agora-primary);
}

/* ─── Section Headers ───────────────────────────────────── */
.agora-section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--agora-text);
  margin-bottom: 4px;
}

.agora-section-sub {
  font-size: 14px;
  color: var(--agora-muted);
  margin-bottom: 24px;
}

/* ─── Store Cards ───────────────────────────────────────── */
.store-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.store-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.store-card-cover {
  height: 120px;
  background: linear-gradient(135deg, var(--agora-primary), #2d4f3c);
  position: relative;
  overflow: hidden;
}

.store-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card-logo {
  position: absolute;
  bottom: -20px;
  left: 16px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--agora-primary);
}

.store-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card-body {
  padding: 28px 16px 16px;
  flex: 1;
}

.store-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--agora-text);
  margin-bottom: 4px;
}

.store-card-meta {
  font-size: 13px;
  color: var(--agora-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-open-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 600;
}

.store-open-badge.open   { background: #d4f5d4; color: #1a5c1a; }
.store-open-badge.closed { background: #ffe0de; color: #8c0000; }

/* ─── Product Cards ─────────────────────────────────────── */
.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

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

.product-card-img {
  height: 180px;
  background: var(--agora-bg);
  overflow: hidden;
  position: relative;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--agora-border);
}

.product-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--agora-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-card-store {
  font-size: 12px;
  color: var(--agora-muted);
  margin-bottom: 8px;
}

.product-card-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--agora-primary);
  margin-top: auto;
}

.product-card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--agora-bg);
}

/* ─── Cart Floating Button ──────────────────────────────── */
.cart-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.cart-float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--agora-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  border: none;
  position: relative;
  transition: background 0.2s;
}

.cart-float-btn:hover { background: #243d33; }

.cart-float-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--agora-accent);
  color: var(--agora-primary);
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Dashboard Layout ──────────────────────────────────── */
.agora-dashboard {
  background: var(--agora-bg);
  min-height: 100vh;
}

.dash-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: var(--agora-primary);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s ease;
}

.dash-main {
  margin-left: 240px;
  min-height: 100vh;
}

.dash-content {
  padding: 32px;
  max-width: 1200px;
}

/* Sidebar brand */
.sidebar-brand {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
  font-size: 22px;
  font-weight: 800;
  color: white !important;
  letter-spacing: -0.04em;
  display: block;
}

.sidebar-by {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* Sidebar store info */
.sidebar-store {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-store-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.sidebar-store-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--agora-accent);
  color: var(--agora-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-store-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-store-name {
  font-size: 13px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-store-status {
  font-size: 11px;
  font-weight: 600;
}
.sidebar-store-status.open   { color: #30d158; }
.sidebar-store-status.closed { color: #ff6b6b; }

/* Sidebar nav */
.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.08);
  color: white !important;
}

.sidebar-link.active {
  background: rgba(201,168,76,0.15);
  color: var(--agora-accent) !important;
  border-left-color: var(--agora-accent);
}

.sidebar-divider {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 8px 0;
}

.sidebar-logout {
  color: rgba(255,100,100,0.8) !important;
}
.sidebar-logout:hover {
  color: #ff6b6b !important;
}

/* Dashboard topbar (mobile) */
.dash-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--agora-primary);
  height: 56px;
}

.dash-topbar-inner {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 100%;
  gap: 12px;
}

.dash-hamburger {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.dash-topbar-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.dash-topbar-logout { color: rgba(255,255,255,0.7); }

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}
.sidebar-overlay.active { display: block; }

/* Dashboard page header */
.dash-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dash-page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--agora-text);
  margin: 0;
}

.dash-merchant-name {
  font-size: 14px;
  color: var(--agora-muted);
}

/* Stats cards */
.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--agora-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.gold   { background: rgba(201,168,76,0.15);  color: var(--agora-accent); }
.stat-icon.green  { background: rgba(30,180,30,0.12);   color: #1a8c1a; }
.stat-icon.blue   { background: rgba(0,113,227,0.12);   color: #0071e3; }
.stat-icon.purple { background: rgba(88,28,135,0.12);   color: #5B21B6; }

.stat-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--agora-text);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--agora-muted);
  margin-top: 3px;
}

/* Data tables */
.agora-table {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.agora-table table {
  width: 100%;
  border-collapse: collapse;
}

.agora-table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--agora-muted);
  background: var(--agora-bg);
  border-bottom: 1px solid var(--agora-border);
  white-space: nowrap;
}

.agora-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--agora-text);
  border-bottom: 1px solid var(--agora-bg);
  vertical-align: middle;
}

.agora-table tr:last-child td { border-bottom: none; }

.agora-table tr:hover td { background: rgba(0,0,0,0.015); }

/* ─── Storefront page ───────────────────────────────────── */
.store-header {
  background: white;
  border-bottom: 1px solid var(--agora-border);
  padding: 24px 0;
}

.store-hero {
  background: linear-gradient(135deg, var(--agora-primary) 0%, #2d4f3c 100%);
  height: 220px;
  position: relative;
  overflow: hidden;
}

.store-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.store-logo-lg {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--agora-primary);
}

.store-logo-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Category tabs */
.category-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }

.category-tab {
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  color: var(--agora-muted);
  border: 1px solid var(--agora-border);
  transition: all 0.15s;
}

.category-tab:hover { background: var(--agora-bg); color: var(--agora-text); }

.category-tab.active {
  background: var(--agora-primary);
  color: white;
  border-color: var(--agora-primary);
}

/* ─── Cart Page ─────────────────────────────────────────── */
.cart-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--agora-bg);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 15px; font-weight: 600; }
.cart-item-price { font-size: 14px; color: var(--agora-muted); }

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--agora-border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.15s;
  color: var(--agora-text);
}
.qty-btn:hover { background: var(--agora-primary); color: white; border-color: var(--agora-primary); }

.qty-num { font-weight: 600; min-width: 24px; text-align: center; }

/* ─── Checkout ──────────────────────────────────────────── */
.checkout-section {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.checkout-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--agora-border);
}

.delivery-option {
  border: 2px solid var(--agora-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.delivery-option:hover { border-color: var(--agora-accent); }
.delivery-option.selected { border-color: var(--agora-primary); background: rgba(26,46,38,0.04); }

.payment-option {
  border: 2px solid var(--agora-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment-option:hover { border-color: var(--agora-accent); }
.payment-option.selected { border-color: var(--agora-primary); background: rgba(26,46,38,0.04); }
.payment-option.disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Order Confirmation ────────────────────────────────── */
.order-confirm-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #30d158, #1a8c1a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.order-ref-badge {
  display: inline-block;
  background: var(--agora-bg);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: 'SF Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--agora-primary);
}

/* ─── Admin layout ──────────────────────────────────────── */
.agora-admin {
  background: var(--agora-bg);
  min-height: 100vh;
}

.admin-sidebar {
  background: #0f1d18; /* darker for admin */
}

/* ─── Responsive: Mobile ────────────────────────────────── */
@media (max-width: 959px) {
  .dash-main {
    margin-left: 0;
    padding-top: 56px;
  }

  .dash-content {
    padding: 20px 16px;
  }

  .dash-sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .dash-sidebar.sidebar-open {
    transform: translateX(0);
  }

  .agora-hero { padding: 48px 0; }

  .stat-card { padding: 16px; }

  .agora-table { overflow-x: auto; }
}

/* ─── Utility Classes ───────────────────────────────────── */
.text-gold    { color: var(--agora-accent) !important; }
.text-primary { color: var(--agora-primary) !important; }
.text-muted   { color: var(--agora-muted) !important; }
.bg-primary   { background: var(--agora-primary) !important; }
.bg-accent    { background: var(--agora-accent) !important; }

.rounded-card { border-radius: var(--radius-md) !important; }
.shadow-sm    { box-shadow: var(--shadow-sm) !important; }
.shadow-md    { box-shadow: var(--shadow-md) !important; }

.divider {
  border: none;
  border-top: 1px solid var(--agora-border);
  margin: 20px 0;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--agora-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* WhatsApp button */
.whatsapp-btn {
  background: #25D366 !important;
  color: white !important;
  border: none !important;
}
.whatsapp-btn:hover {
  background: #20bd5a !important;
}

/* Low stock highlight */
.low-stock { color: var(--agora-warning); font-weight: 600; }
.out-of-stock { color: var(--agora-danger); font-weight: 600; }

/* Image thumbnail in tables */
.img-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--agora-bg);
}

.img-thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--agora-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--agora-border);
}

/* Toggle switch */
.agora-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.agora-toggle input { opacity: 0; width: 0; height: 0; }

.agora-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: 0.2s;
}

.agora-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.agora-toggle input:checked + .agora-toggle-slider {
  background: var(--agora-primary);
}

.agora-toggle input:checked + .agora-toggle-slider::before {
  transform: translateX(20px);
}

/* Alert / flash override */
.uk-alert {
  border-radius: var(--radius-sm) !important;
}
