/* =======================================================
   KasiTaylored Studio — style.css
   Theme: Bold & Urban Dark
   Fonts: Bebas Neue (headings) + Inter (body)
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #1a1a1a;
  --bg-4:        #222222;
  --border:      #2a2a2a;
  --border-hi:   #3a3a3a;
  --accent:      #2979ff;
  --accent-hi:   #448aff;
  --accent-dim:  rgba(41,121,255,0.15);
  --gold:        #ffd600;
  --gold-dim:    rgba(255,214,0,0.12);
  --danger:      #ff1744;
  --danger-dim:  rgba(255,23,68,0.15);
  --success:     #00e676;
  --text-1:      #f0f0f0;
  --text-2:      #a0a0a0;
  --text-3:      #606060;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.6);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.5);
  --transition:  0.2s ease;
}

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

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  letter-spacing: 1.5px;
  line-height: 1.1;
  color: var(--text-1);
}
h1 { font-size: 28px; }
h2 { font-size: 32px; margin-bottom: 4px; }
h3 { font-size: 20px; }
p  { color: var(--text-2); }

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }


/* =======================================================
   HEADER & NAV
   ======================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  gap: 20px;
}

header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 3px;
  color: var(--text-1);
  white-space: nowrap;
  flex-shrink: 0;
}

header h1 span { color: var(--accent); }

nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  transition: color var(--transition), background var(--transition);
}
nav a:hover {
  color: var(--text-1);
  background: var(--bg-3);
}
nav a.active { color: var(--accent); }

/* Cart badge in nav */
nav a[href="cart.html"] {
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  background: var(--gold-dim);
}
nav a[href="cart.html"]:hover {
  background: rgba(255,214,0,0.2);
  color: var(--gold);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-hi);
  color: var(--text-1);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  header {
    padding: 0 20px;
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav-toggle { display: block; }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 0 6px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }
  nav.open { display: flex; }
  nav a {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
  }
}


/* =======================================================
   MAIN CONTENT
   ======================================================= */
main {
  max-width: 1200px;
  margin: 36px auto;
  padding: 36px 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  main {
    margin: 16px;
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }
}


/* =======================================================
   HERO SECTION
   ======================================================= */
.hero {
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(41,121,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero h2 {
  font-size: clamp(42px, 8vw, 80px);
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #a0c4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-accent {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  background: var(--gold-dim);
}


/* =======================================================
   BUTTONS
   ======================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 44px;
}
.btn:hover {
  background: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(41,121,255,0.4);
  color: #fff;
}
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-dim);
  color: var(--accent-hi);
  box-shadow: none;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  min-height: 44px;
}
button:hover {
  background: var(--accent-hi);
  transform: translateY(-1px);
}

/* Delete / danger */
.btn-delete, button.danger {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(255,23,68,0.3);
}
.btn-delete:hover, button.danger:hover {
  background: var(--danger);
  color: #fff;
  transform: translateY(-1px);
}

/* Remove (cart) */
.btn-remove {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(255,23,68,0.3);
  padding: 6px 14px;
  font-size: 13px;
  min-height: 36px;
  border-radius: var(--radius-sm);
}
.btn-remove:hover {
  background: var(--danger);
  color: #fff;
  transform: none;
}


/* =======================================================
   FORMS
   ======================================================= */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 500px;
}

label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: -8px;
}

input, textarea, select {
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-1);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
select option { background: var(--bg-3); color: var(--text-1); }
textarea { resize: vertical; min-height: 100px; }


/* =======================================================
   PRODUCT GRID & CARDS
   ======================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.product-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  color: var(--text-1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(41,121,255,0.15);
  border-color: var(--accent);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  background: var(--bg-4);
}
.product-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0;
}
.product-card p {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.product-card a {
  color: inherit;
  text-decoration: none;
}
.product-card button {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  font-size: 13px;
}


/* =======================================================
   CATEGORY BADGE
   ======================================================= */
.cat-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent-hi);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  border: 1px solid rgba(41,121,255,0.2);
}


/* =======================================================
   STOCK LABEL
   ======================================================= */
.stock-label { font-size: 11px; color: var(--text-3); margin: 2px 0 4px; }
.low-stock   { color: var(--danger) !important; font-weight: 700; }


/* =======================================================
   SECTION TITLE / DIVIDER
   ======================================================= */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text-1);
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}


/* =======================================================
   SEARCH BAR
   ======================================================= */
#search, .brand-search {
  width: 100%;
  max-width: 420px;
  padding: 12px 18px;
  background: var(--bg-3);
  border: 1px solid var(--border-hi);
  border-radius: 30px;
  font-size: 14px;
  color: var(--text-1);
  margin: 16px 0;
  display: block;
  transition: border-color var(--transition), box-shadow var(--transition);
}
#search:focus, .brand-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
#search::placeholder, .brand-search::placeholder { color: var(--text-3); }


/* =======================================================
   FILTER BUTTONS
   ======================================================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filters button {
  padding: 8px 16px;
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 36px;
  transition: all var(--transition);
  transform: none;
}
.filters button:hover {
  background: var(--bg-4);
  color: var(--text-1);
  border-color: var(--accent);
  transform: none;
}
.filters button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(41,121,255,0.35);
}


/* =======================================================
   CARDS (dashboard panels, checkout, etc.)
   ======================================================= */
.card, .checkout-card, .form-card, .order-card,
.order-manage-card, .stat-card, .brand-card,
.seller-card, .login-card, .signup-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-1);
}

.card { padding: 24px; }

.card h3, .form-card h3, .checkout-card h3 {
  color: var(--accent);
  margin-bottom: 18px;
  font-size: 18px;
  letter-spacing: 1px;
}


/* =======================================================
   FOOTER
   ======================================================= */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  color: var(--text-3);
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
  margin-top: 0;
}
footer p { color: var(--text-3); }


/* =======================================================
   CART ITEMS
   ======================================================= */
.cart-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}
.cart-item:hover { border-color: var(--border-hi); }

.cart-thumb {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--bg-4);
}

.cart-item-info  { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-item-name  { font-size: 14px; font-weight: 700; color: var(--text-1); }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--accent); white-space: nowrap; }

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-2);
}
.cart-total { font-size: 20px; font-weight: 700; color: var(--gold); }

.empty-cart { text-align: center; padding: 50px 20px; }
.empty-cart p { color: var(--text-2); margin-bottom: 20px; font-size: 17px; }


/* =======================================================
   ORDER TIMELINE
   ======================================================= */
.timeline::before { background: var(--border); }
.step-dot         { background: var(--bg-4); border-color: var(--border-hi); }
.step-dot.done    { background: var(--accent); border-color: var(--accent); }
.step-dot.current {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.step-dot.cancel  { background: var(--danger); border-color: var(--danger); }
.step-label       { color: var(--text-3); }
.step-label.done, .step-label.current { color: var(--accent); }
.step-label.cancel { color: var(--danger); }


/* =======================================================
   STATUS BADGES
   ======================================================= */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Order page (dot-notation) */
.status-Order\.Placed      { background: var(--accent-dim);  color: var(--accent-hi); }
.status-Processing         { background: rgba(255,214,0,0.12); color: var(--gold); }
.status-Shipped            { background: rgba(0,230,118,0.1);  color: var(--success); }
.status-Out\.for\.Delivery { background: rgba(179,136,255,0.15); color: #b388ff; }
.status-Delivered          { background: rgba(0,230,118,0.18);  color: #69f0ae; }
.status-Cancelled          { background: var(--danger-dim); color: var(--danger); }

/* Manage orders page */
.sb-placed     { background: var(--accent-dim);           color: var(--accent-hi); }
.sb-processing { background: rgba(255,214,0,0.12);         color: var(--gold); }
.sb-shipped    { background: rgba(0,230,118,0.1);          color: var(--success); }
.sb-delivery   { background: rgba(179,136,255,0.15);       color: #b388ff; }
.sb-delivered  { background: rgba(0,230,118,0.18);         color: #69f0ae; }
.sb-cancelled  { background: var(--danger-dim);            color: var(--danger); }


/* =======================================================
   LOGIN / SIGNUP CARDS
   ======================================================= */
.login-page, .signup-page {
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-card, .signup-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  text-align: center;
}

.login-card h2, .signup-card h2 {
  margin-bottom: 28px;
  letter-spacing: 2px;
}

.login-card input, .signup-card input {
  width: 100%;
  text-align: left;
}

.login-card button, .signup-card button {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  margin-top: 4px;
}

.login-card p, .signup-card p { margin-top: 16px; font-size: 14px; }


/* =======================================================
   BRAND HERO (brand.html)
   ======================================================= */
.brand-hero {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 36px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, var(--accent-dim), transparent);
  pointer-events: none;
}
.brand-logo {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  background: var(--bg-4);
  flex-shrink: 0;
  position: relative;
}
.brand-logo-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  color: var(--accent-hi);
  flex-shrink: 0;
}
.brand-hero-info { flex: 1; min-width: 200px; position: relative; }
.brand-hero-info h2 { font-size: 36px; color: var(--text-1); }
.brand-tagline { font-size: 14px; color: var(--text-2); margin: 6px 0 12px; font-style: italic; }
.brand-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,214,0,0.2);
}


/* =======================================================
   BRAND CARDS (brands.html)
   ======================================================= */
.brand-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-1);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(41,121,255,0.15);
  border-color: var(--accent);
}
.brand-card-banner {
  height: 60px;
  background: linear-gradient(135deg, var(--accent), #0048d1);
}
.brand-card-body { padding: 0 16px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.brand-card-logo {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid var(--bg-2);
  object-fit: cover;
  margin-top: -32px;
  background: var(--bg-4);
}
.brand-card-logo-placeholder {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid var(--bg-2);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--accent-hi);
  margin-top: -32px;
}
.brand-card-name    { font-size: 16px; font-weight: 700; color: var(--text-1); margin-top: 10px; }
.brand-card-tagline { font-size: 12px; color: var(--text-3); font-style: italic; }
.brand-card-location{ font-size: 11px; color: var(--gold); display: flex; align-items: center; gap: 3px; }
.brand-card-stats   { display: flex; gap: 12px; margin-top: 4px; }
.brand-stat         { font-size: 11px; color: var(--text-3); }
.brand-stat strong  { color: var(--accent-hi); }
.brand-card-footer  { margin-top: auto; padding-top: 10px; }
.view-btn {
  display: block;
  text-align: center;
  padding: 9px;
  background: var(--accent-dim);
  color: var(--accent-hi);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: background var(--transition);
}
.view-btn:hover { background: var(--accent); color: #fff; }


/* =======================================================
   STATS ROW (manage-orders, seller dashboard)
   ======================================================= */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card  { padding: 18px; text-align: center; border-radius: var(--radius-md); }
.stat-card .stat-num   { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--accent); letter-spacing: 1px; }
.stat-card .stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 2px; }


/* =======================================================
   SANDBOX / INFO NOTICES
   ======================================================= */
.sandbox-notice {
  background: rgba(255,214,0,0.07);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 18px;
}
.sandbox-notice strong { color: var(--gold); }

.owner-note {
  background: rgba(255,214,0,0.07);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 20px;
}
.owner-note strong { color: var(--gold); }
.owner-note code {
  background: var(--bg-4);
  color: var(--accent-hi);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}


/* =======================================================
   ACCESS DENIED / EMPTY STATES
   ======================================================= */
.access-denied, .empty-orders, .empty-cart, .not-found, .empty-brands {
  text-align: center;
  padding: 60px 20px;
}
.access-denied h3, .not-found h3 { color: var(--danger); margin-bottom: 12px; }
.empty-orders p, .empty-cart p, .empty-brands p, .access-denied p {
  color: var(--text-2);
  margin-bottom: 20px;
  font-size: 16px;
}


/* =======================================================
   SECURE BADGE (checkout)
   ======================================================= */
.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 14px;
  justify-content: center;
}


/* =======================================================
   PAYFAST BUTTON
   ======================================================= */
.payfast-btn {
  width: 100%;
  padding: 16px;
  background: #00a8e0;
  color: white;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: 0.3px;
  transition: background var(--transition), transform var(--transition);
  min-height: 52px;
}
.payfast-btn:hover { background: #0088bb; transform: translateY(-1px); }
.payfast-btn:disabled { background: var(--bg-4); color: var(--text-3); cursor: not-allowed; transform: none; }


/* =======================================================
   MOBILE — Global responsive tweaks
   ======================================================= */
@media (max-width: 600px) {
  h2 { font-size: 26px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .filters button { font-size: 11px; padding: 7px 12px; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-price { order: -1; width: 100%; text-align: right; }
}


/* =======================================================
   WISHLIST — HEART BUTTON
   ======================================================= */
.heart-btn {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #606060;
  font-size: 20px;
  line-height: 1;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.heart-btn:hover {
  color: #ff4081;
  border-color: rgba(255,64,129,0.4);
  background: rgba(255,64,129,0.08);
  transform: scale(1.15);
}
.heart-btn.hearted {
  color: #ff4081;
  border-color: rgba(255,64,129,0.4);
  background: rgba(255,64,129,0.08);
}
.heart-btn.hearted:hover {
  transform: scale(1.15);
}

/* Heart + Add to Cart row on product cards */
.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.card-actions .btn,
.card-actions button:not(.heart-btn) {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}

/* Wishlist nav badge */
.wishlist-nav-link {
  position: relative;
}
.wishlist-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff4081;
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  right: -4px;
  line-height: 1;
}


/* =======================================================
   NOTIFICATION BELL
   ======================================================= */
.notif-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.notif-count {
  display: none;
  align-items: center;
  justify-content: center;
  background: #ff1744;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  position: absolute;
  top: -5px;
  right: -8px;
  line-height: 1;
}


/* =======================================================
   FILTER ENGINE STYLES
   ======================================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  margin-bottom: 16px;
}
.filter-bar select {
  padding: 8px 12px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #f0f0f0;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  min-height: 38px;
}
.filter-bar select:focus { outline: none; border-color: #2979ff; }

.price-range-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}
.price-range-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #606060;
  letter-spacing: 0.5px;
}
#price-range-label {
  font-size: 12px;
  font-weight: 700;
  color: #2979ff;
}
.price-sliders {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  padding: 0;
  min-height: unset;
  border: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2979ff;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2979ff;
  border: none;
  cursor: pointer;
}

/* Active filter tags */
.active-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  min-height: 10px;
}
.active-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(41,121,255,0.12);
  color: #448aff;
  border: 1px solid rgba(41,121,255,0.25);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.active-tag:hover { background: rgba(41,121,255,0.22); }
.tag-x { font-size: 10px; opacity: 0.7; }

.clear-all-btn {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #606060;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  min-height: unset;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s, border-color 0.2s;
}
.clear-all-btn:hover { color: #ff1744; border-color: rgba(255,23,68,0.4); transform: none; }


/* =======================================================
   PRODUCT COMPARISON
   ======================================================= */

/* Compare button on product cards */
.compare-btn {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #606060;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 34px;
  font-family: 'Inter', sans-serif;
}
.compare-btn:hover {
  border-color: #2979ff;
  color: #2979ff;
  background: rgba(41,121,255,0.08);
  transform: none;
}
.compare-btn.in-compare {
  border-color: #00e676;
  color: #00e676;
  background: rgba(0,230,118,0.08);
}

/* Sticky comparison tray */
#compare-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #0a0a0a;
  border-top: 1px solid #2979ff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(41,121,255,0.15);
}
.tray-products {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.tray-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.tray-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #2979ff;
}
.tray-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px dashed #2a2a2a;
  background: #111;
}
.tray-name {
  font-size: 10px;
  color: #a0a0a0;
  text-align: center;
  max-width: 56px;
  line-height: 1.3;
}
.tray-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff1744;
  color: white;
  border: none;
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: unset;
  line-height: 1;
  transition: transform 0.15s;
}
.tray-remove:hover { transform: scale(1.2); }
.tray-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tray-count {
  font-size: 12px;
  color: #606060;
  white-space: nowrap;
}
.tray-compare-btn {
  padding: 10px 20px;
  font-size: 14px;
}
.tray-clear-btn {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #606060;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  min-height: 38px;
  transition: color 0.2s, border-color 0.2s;
}
.tray-clear-btn:hover { color: #ff1744; border-color: rgba(255,23,68,0.4); transform: none; }

/* Add padding to body so tray doesn't cover content */
body.has-tray main { padding-bottom: 100px; }


/* =======================================================
   LIVE CHAT
   ======================================================= */

/* Floating bubble */
#chat-bubble-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
#chat-bubble-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #2979ff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(41,121,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  min-height: unset;
  padding: 0;
}
#chat-bubble-btn:hover { transform: scale(1.1); background: #448aff; }

/* Chat panel */
#chat-panel {
  width: 320px;
  height: 400px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
#chat-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #0f0f0f;
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
}
#chat-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #f0f0f0;
}
#chat-panel-close {
  background: transparent;
  border: none;
  color: #606060;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  min-height: unset;
  border-radius: 4px;
  transition: color 0.2s;
}
#chat-panel-close:hover { color: #ff1744; transform: none; }

/* Messages area */
#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-msg { display: flex; flex-direction: column; max-width: 80%; }
.chat-msg-me   { align-self: flex-end; align-items: flex-end; }
.chat-msg-them { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
  padding: 9px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
.chat-msg-me   .chat-bubble { background: #2979ff; color: white; border-bottom-right-radius: 4px; }
.chat-msg-them .chat-bubble { background: #1a1a1a; color: #f0f0f0; border-bottom-left-radius: 4px; }
.chat-time { font-size: 10px; color: #444; margin-top: 3px; }

/* Input row */
#chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #1a1a1a;
  flex-shrink: 0;
}
#chat-input {
  flex: 1;
  padding: 9px 12px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  color: #f0f0f0;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  min-height: unset;
}
#chat-input:focus { outline: none; border-color: #2979ff; }
#chat-send-btn {
  padding: 9px 14px;
  background: #2979ff;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: unset;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}
#chat-send-btn:hover { background: #448aff; transform: none; }

/* WhatsApp fallback row */
#chat-wa-row {
  padding: 8px 12px;
  border-top: 1px solid #1a1a1a;
  text-align: center;
  flex-shrink: 0;
}
#chat-wa-btn {
  font-size: 12px;
  color: #25d366;
  text-decoration: none;
  font-weight: 600;
}
#chat-wa-btn:hover { color: #1ebe5d; }

/* Messages nav badge */
.msg-nav-link { position: relative; display: inline-flex; align-items: center; }
.msg-count {
  display: none;
  align-items: center;
  justify-content: center;
  background: #2979ff;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  position: absolute;
  top: -5px;
  right: -8px;
  line-height: 1;
}

/* Messages inbox page */
.conversation-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
  text-decoration: none;
}
.conversation-row:hover { border-color: #2979ff; }
.conversation-row.unread { border-color: rgba(41,121,255,0.3); background: #111820; }
.conv-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #2979ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: white;
  font-weight: 700;
}
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-size: 14px; font-weight: 700; color: #f0f0f0; }
.conv-preview { font-size: 12px; color: #606060; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-date { font-size: 11px; color: #444; white-space: nowrap; }
.conv-unread-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2979ff;
  flex-shrink: 0;
}

/* Full conversation view */
.conv-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2a2a2a;
}
.conv-back-btn {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #a0a0a0;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  min-height: unset;
  transition: color 0.2s;
}
.conv-back-btn:hover { color: #f0f0f0; transform: none; }
.full-chat-msgs {
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  margin-bottom: 14px;
}
.full-chat-input-row {
  display: flex;
  gap: 10px;
}
.full-chat-input {
  flex: 1;
  padding: 12px 16px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  min-height: unset;
}
.full-chat-input:focus { outline: none; border-color: #2979ff; }


/* =======================================================
   GLOBAL DARK OVERRIDES — ensures consistency everywhere
   ======================================================= */

/* Force all inline card/section backgrounds to dark */
.card, .checkout-card, .form-card, .order-card,
.order-manage-card, .stat-card, .brand-card,
.seller-card, .section-card, .create-card,
.codes-card, .inbox-panel, .settings-panel,
.edit-card, .danger-card, .avatar-card,
.review-form-card, .review-card,
.brand-hero, .order-manage-body {
  background: #111 !important;
  color: #f0f0f0 !important;
  border-color: #2a2a2a !important;
}

/* All headings inside cards */
.card h3, .card h2, .section-card-title,
.edit-card-title, .panel-title,
.checkout-card h3, .form-card h3 {
  color: #f0f0f0 !important;
}

/* All paragraph text in dark context */
main p { color: #a0a0a0; }

/* Order summary rows */
.order-item {
  background: #0f0f0f !important;
  border-color: #2a2a2a !important;
  color: #f0f0f0 !important;
}
.order-item-name { color: #f0f0f0 !important; }
.order-item-price { color: #2979ff !important; }
.order-total-row {
  background: #0f0f0f !important;
  border: 1px solid #2a2a2a !important;
  color: #f0f0f0 !important;
}
.order-total-row strong { color: #ffd600 !important; }

/* Seller dashboard card */
.dashboard-grid .card { background: #111 !important; }
.seller-card { background: #0f0f0f !important; }

/* Order complete page */
.confirm-box { color: #f0f0f0 !important; }
.order-ref {
  background: rgba(41,121,255,0.12) !important;
  color: #448aff !important;
  border: 1px solid rgba(41,121,255,0.25) !important;
}
.steps {
  background: #111 !important;
  border-color: #2a2a2a !important;
  color: #a0a0a0 !important;
}
.steps h4 { color: #2979ff !important; }
.steps ol { color: #a0a0a0 !important; }

/* Services page */
main section h2 { color: #f0f0f0 !important; }
main section ul li { color: #a0a0a0; }

/* Contact form */
main h2 { color: #f0f0f0; }

/* About page */
.about-section h2, .about-section h3 { color: #f0f0f0; }
.about-section p, .about-section a { color: #a0a0a0; }

/* Brand setup */
.logo-panel {
  background: #111 !important;
  border-color: #2a2a2a !important;
}
.logo-preview-wrap {
  border-color: #2979ff !important;
  background: rgba(41,121,255,0.08) !important;
}
.logo-placeholder { color: #2979ff !important; }

/* Manage orders */
.order-manage-header {
  background: #0f0f0f !important;
  border-color: #2a2a2a !important;
}
.order-manage-header .ref   { color: #2979ff !important; }
.order-manage-header .buyer { color: #a0a0a0 !important; }
.order-manage-header .total { color: #ffd600 !important; }
.order-manage-header .date  { color: #606060 !important; }

/* Filter bar inputs */
.filter-bar select, .filter-bar input {
  background: #1a1a1a !important;
  color: #f0f0f0 !important;
  border-color: #2a2a2a !important;
}

/* Brands page */
.brand-card-banner {
  background: linear-gradient(135deg, #2979ff, #0048d1) !important;
}

/* Profile page */
.profile-name    { color: #f0f0f0 !important; }
.join-date       { color: #606060 !important; }
.field-label     { color: #606060 !important; }

/* =======================================================
   TOAST NOTIFICATION
   ======================================================= */
#kt-toast {
  font-family: 'Inter', sans-serif;
}

/* =======================================================
   SIZE BUTTONS (shop page + product page)
   ======================================================= */
.size-btn,
.size-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 8px 14px;
  background: #1a1a1a;
  color: #a0a0a0;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.size-btn:hover,
.size-opt:hover {
  border-color: #2979ff;
  color: #2979ff;
}
.size-opt.selected {
  background: #2979ff !important;
  color: #fff !important;
  border-color: #2979ff !important;
}
#size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* =======================================================
   SANDBOX NOTICE — dark theme fix
   ======================================================= */
.sandbox-notice {
  background: rgba(249,168,37,0.08) !important;
  border-left: 4px solid #f9a825;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #a0a0a0 !important;
  margin-bottom: 18px;
}
.sandbox-notice strong { color: #f9a825 !important; }

/* =======================================================
   SELLER DASHBOARD — ensure all selects are dark
   ======================================================= */
.card select,
.dashboard-grid select,
#addProductForm select {
  background: #1a1a1a !important;
  color: #f0f0f0 !important;
  border: 1px solid #2a2a2a !important;
  width: 100%;
}
#addProductForm select option,
.card select option {
  background: #1a1a1a;
  color: #f0f0f0;
}

/* Size checkboxes */
.size-checkbox { accent-color: #2979ff; }


/* ================================================================
   SHARED UI — Splash · Header Logo · Search · Bottom Nav · Drawer
   ================================================================ */

/* ── Splash ── */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
#splash img {
  width: min(300px, 75vw);
  animation: splashIn 1.6s ease forwards;
}
@keyframes splashIn {
  0%   { opacity:0; transform:scale(.8); }
  60%  { opacity:1; transform:scale(1.04); }
  100% { opacity:1; transform:scale(1); }
}

/* ── Header overrides ── */
header {
  position: sticky; top:0; z-index:100;
  display: flex; align-items: center;
  padding: 0 16px; height: 60px; gap: 12px;
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
}
/* Hide old h1 text */
header h1 { display:none !important; }
/* Hide old nav (replaced by bottom nav + drawer) */
header nav, header .nav-toggle { display:none !important; }

.kts-logo-link { flex-shrink:0; display:flex; align-items:center; }
.kts-logo { height:40px; width:auto; object-fit:contain; display:block; }

/* ── Global search ── */
.kts-search-wrap {
  flex:1; position:relative; max-width:400px;
}
.kts-search-icon {
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  font-size:14px; pointer-events:none; color:#444;
}
.kts-search-input {
  width:100%; padding:9px 14px 9px 36px;
  background:#111; border:1px solid #2a2a2a; border-radius:24px;
  color:#f0f0f0; font-size:14px; font-family:'Inter',sans-serif;
  transition:border-color .2s;
  display:block; min-height:unset;
}
.kts-search-input:focus { outline:none; border-color:#2979ff; }
.kts-search-input::placeholder { color:#444; }
.kts-search-drop {
  display:none; position:absolute; top:calc(100% + 6px); left:0; right:0;
  background:#111; border:1px solid #2a2a2a; border-radius:12px;
  max-height:300px; overflow-y:auto; z-index:200;
  box-shadow:0 8px 32px rgba(0,0,0,.6);
}
.kts-sr-item {
  display:flex; align-items:center; gap:10px;
  padding:10px 14px; cursor:pointer; text-decoration:none;
  transition:background .15s;
}
.kts-sr-item:hover { background:#1a1a1a; }
.kts-sr-thumb {
  width:38px; height:38px; border-radius:6px;
  object-fit:cover; flex-shrink:0; background:#1a1a1a;
}
.kts-sr-thumb-blank { background:#1a1a1a; }
.kts-sr-name { font-size:13px; font-weight:700; color:#f0f0f0; }
.kts-sr-sub  { font-size:11px; color:#606060; margin-top:1px; }
.kts-sr-empty { padding:14px; text-align:center; font-size:13px; color:#606060; }

/* ── Header icons ── */
.kts-header-icons { display:flex; align-items:center; gap:14px; flex-shrink:0; }
.kts-icon-btn {
  position:relative; display:flex; align-items:center;
  font-size:20px; color:#a0a0a0; text-decoration:none;
  background:none; border:none; cursor:pointer; padding:4px;
  min-height:unset; transition:color .2s;
}
.kts-icon-btn:hover { color:#f0f0f0; transform:none; }
.kts-icon-badge {
  position:absolute; top:-5px; right:-7px;
  background:#ff1744; color:#fff; font-size:9px; font-weight:700;
  min-width:16px; height:16px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  padding:0 3px; line-height:1;
}

/* Bottom nav — see production section below */

/* ── Profile Drawer ── */
#kts-drawer { position:fixed; inset:0; z-index:500; display:none; }
#kts-drawer.open { display:block; }
#kts-drawer-bg  {
  position:absolute; inset:0; background:rgba(0,0,0,.75);
}
#kts-drawer-panel {
  position:absolute; bottom:0; left:0; right:0;
  background:#111; border-radius:20px 20px 0 0;
  border-top:1px solid #2a2a2a;
  max-height:88vh; overflow-y:auto;
  padding-bottom:calc(70px + env(safe-area-inset-bottom,0));
  animation:drawerUp .3s ease;
}
@keyframes drawerUp {
  from { transform:translateY(100%); }
  to   { transform:translateY(0); }
}
.kts-drawer-handle {
  width:40px; height:4px; background:#2a2a2a;
  border-radius:2px; margin:14px auto 6px;
}
.kts-drawer-user {
  display:flex; align-items:center; gap:14px;
  padding:16px 20px 18px; border-bottom:1px solid #1a1a1a;
}
.kts-drawer-avatar {
  width:50px; height:50px; border-radius:50%; flex-shrink:0;
  background:linear-gradient(135deg,#2979ff,#448aff);
  display:flex; align-items:center; justify-content:center;
  font-family:'Bebas Neue',sans-serif; font-size:20px;
  color:#fff; letter-spacing:1px;
}
.kts-drawer-name  { font-size:15px; font-weight:700; color:#f0f0f0; }
.kts-drawer-email { font-size:12px; color:#606060; margin-top:1px; }
.kts-drawer-role  { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; margin-top:4px; display:block; }
.kts-drawer-section { padding:6px 0; border-bottom:1px solid #1a1a1a; }
.kts-drawer-section:last-child { border-bottom:none; }
.kts-drawer-label {
  font-size:10px; font-weight:700; letter-spacing:1px;
  text-transform:uppercase; color:#444; padding:8px 20px 4px;
}
.kts-drawer-item {
  display:flex; align-items:center; gap:14px;
  padding:13px 20px; text-decoration:none; color:#a0a0a0;
  font-size:14px; font-weight:500; transition:background .15s, color .15s;
  background:none; border:none; width:100%; cursor:pointer;
  font-family:'Inter',sans-serif; text-align:left;
}
.kts-drawer-item:hover { background:#1a1a1a; color:#f0f0f0; }
.kts-drawer-item.danger { color:#ff1744; }
.kts-drawer-item.danger:hover { background:rgba(255,23,68,.08); }
.kts-drawer-item-icon { font-size:18px; width:22px; text-align:center; flex-shrink:0; }


/* ============================================================
   SHARED UI — Production (appended, overrides old shared CSS)
   ============================================================ */

/* ── Splash ── */
#kts-splash {
  position: fixed; inset: 0; z-index: 9999;
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
#kts-splash img {
  width: min(300px, 75vw);
  animation: ktsSplashIn 1.2s ease forwards;
}
@keyframes ktsSplashIn {
  0%   { opacity: 0; transform: scale(0.8); }
  60%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Header ── */
header {
  position: sticky !important; top: 0 !important; z-index: 100 !important;
  display: flex !important; align-items: center !important; gap: 12px !important;
  padding: 0 16px !important; height: 60px !important;
  background: #0a0a0a !important; border-bottom: 1px solid #1a1a1a !important;
}
header h1, header nav, header .nav-toggle { display: none !important; }
#kts-logo { height: 40px; width: auto; object-fit: contain; display: block; }

/* ── Search ── */
#kts-sw { flex: 1; position: relative; max-width: 400px; }
#kts-si { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; pointer-events: none; color: #444; }
#kts-search {
  width: 100%; padding: 9px 14px 9px 36px; display: block; min-height: unset;
  background: #111; border: 1px solid #2a2a2a; border-radius: 24px;
  color: #f0f0f0; font-size: 14px; font-family: 'Inter', sans-serif;
}
#kts-search:focus { outline: none; border-color: #2979ff; }
#kts-search::placeholder { color: #444; }
#kts-sd {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #111; border: 1px solid #2a2a2a; border-radius: 12px;
  max-height: 280px; overflow-y: auto; z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.kts-sr { display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-decoration: none; transition: background .15s; }
.kts-sr:hover { background: #1a1a1a; }
.kts-sr-img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: #1a1a1a; flex-shrink: 0; }
.kts-sr-name { font-size: 13px; font-weight: 700; color: #f0f0f0; }
.kts-sr-sub  { font-size: 11px; color: #606060; margin-top: 1px; }

/* ── Bottom Nav ── */
#kts-bnav {
  position: fixed !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  width: 100% !important;
  height: 64px !important;
  background: #0d0d0d !important;
  border-top: 1px solid #1e1e1e !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  z-index: 400 !important;
  padding: 0 !important; margin: 0 !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5) !important;
}
.kts-bn {
  flex: 1 1 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-decoration: none !important;
  color: #505050 !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  background: none !important;
  border: none !important;
  border-top: 2px solid transparent !important;
  font-family: 'Inter', sans-serif !important;
  padding: 8px 4px 6px !important;
  min-height: unset !important;
  transition: color 0.2s ease, border-color 0.2s ease !important;
  box-sizing: border-box !important;
  position: relative !important;
}
.kts-bn:hover { color: #2979ff !important; transform: none !important; }
.kts-bn.active {
  color: #2979ff !important;
  border-top-color: #2979ff !important;
}
.kts-bn.active .kts-bni svg { stroke: #2979ff !important; }
.kts-bn:hover .kts-bni svg { stroke: #2979ff !important; }
.kts-bni {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  position: relative !important;
}
.kts-bni svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #505050 !important;
  transition: stroke 0.2s ease !important;
  display: block !important;
  flex-shrink: 0 !important;
}
.kts-bnl {
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 52px !important;
}
main { padding-bottom: 76px !important; }

/* ── Password eye ── */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap input { width: 100% !important; padding-right: 46px !important; box-sizing: border-box !important; }
.pw-eye {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 18px; cursor: pointer; color: #606060; line-height: 1;
  user-select: none; -webkit-user-select: none; z-index: 3;
}
.pw-eye:hover { color: #f0f0f0; }

/* ── Profile Drawer ── */
#kts-drawer { position: fixed; inset: 0; z-index: 500; display: none; }
#kts-drawer.open { display: block; }
#kts-dbg { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
#kts-dp {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #111; border-radius: 20px 20px 0 0; border-top: 1px solid #2a2a2a;
  max-height: 88vh; overflow-y: auto;
  padding-bottom: calc(68px + env(safe-area-inset-bottom,0));
  animation: _slideUp .3s ease;
}
@keyframes _slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.kts-du { display: flex; align-items: center; gap: 14px; padding: 16px 20px 18px; border-bottom: 1px solid #1a1a1a; }
.kts-dav {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#2979ff,#448aff);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue',sans-serif; font-size: 20px; color: #fff; letter-spacing: 1px;
}
.kts-ds { padding: 6px 0; border-bottom: 1px solid #1a1a1a; }
.kts-ds:last-child { border-bottom: none; }
.kts-dl { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #444; padding: 8px 20px 4px; }
.kts-di {
  display: flex; align-items: center; gap: 14px; padding: 13px 20px;
  text-decoration: none; color: #a0a0a0; font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s; width: 100%;
  background: none; border: none; cursor: pointer; font-family: 'Inter',sans-serif; text-align: left;
}
.kts-di svg { stroke: #606060; transition: stroke .15s; flex-shrink: 0; }
.kts-di:hover { background: #1a1a1a; color: #f0f0f0; }
.kts-di:hover svg { stroke: #f0f0f0; }
.kts-di.danger { color: #ff1744; }
.kts-di.danger svg { stroke: #ff1744; }
.kts-di.danger:hover { background: rgba(255,23,68,.08); }
.kts-di-ic { display: flex; align-items: center; justify-content: center; width: 22px; flex-shrink: 0; }
