/* ============================================
   Tyranny Not Allowed — Site Styles
   Palette: Brass-inspired tactical/professional
   ============================================ */

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

:root {
  --bg:        #1E1E1E;
  --surface:   #1A1A1A;
  --border:    #2A2A2A;
  --text:      #E8E8E8;
  --text-muted:#999999;
  --text-dim:  #666666;
  --text-faint:#555555;
  --accent:    #C8962E;
  --accent-hover:#E0AA3E;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.nav-brand img {
  width: 80px;
  height: 80px;
}
.nav-brand span {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Shop link — accent color to stand out as primary CTA */
.nav-shop-link {
  color: var(--accent) !important;
  font-weight: 500;
}
.nav-shop-link:hover { color: var(--accent-hover) !important; }

/* Tools dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 0;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--accent); }
.nav-dropdown-toggle svg { transition: transform 0.2s; flex-shrink: 0; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  padding: 0.35rem 0;
  list-style: none;
  min-width: 210px;
  z-index: 90;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  rotate: 45deg;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1.1rem;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active { color: var(--accent); background: rgba(255,255,255,0.04); }
.nav-dropdown-menu a::after { display: none; }

/* Mobile dropdown: show inline when nav is open */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    background: transparent;
    padding: 0 0 0 1rem;
    margin-top: 0.25rem;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

[data-theme="light"] .nav-dropdown-menu { background: #fff; }
[data-theme="light"] .nav-dropdown-menu::before { background: #fff; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- Nav Search Button --- */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-muted);
  border-radius: 4px;
  transition: color 0.15s;
}
.nav-search-btn:hover { color: var(--accent); }

/* --- Search Overlay (blurred backdrop) --- */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 98;
}
.search-overlay.active { display: block; }

/* --- Search Modal --- */
.search-modal {
  position: fixed;
  top: 73px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 680px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

/* Search input bar */
.search-modal-bar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.search-modal-icon { color: var(--text-muted); flex-shrink: 0; }
.search-modal-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1.05rem;
  font-family: var(--font-body);
}
.search-modal-input::placeholder { color: var(--text-dim); }
.search-modal-close {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.search-modal-close:hover { color: var(--text); }

/* Results list */
.search-modal-results {
  max-height: 440px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search-no-results {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1.25rem;
  margin: 0;
  text-align: center;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255, 255, 255, 0.04); }
.search-result-img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-result-img img { width: 100%; height: 100%; object-fit: contain; }
.search-result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.search-result-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.1s;
}
.search-result-item:hover .search-result-name { color: var(--accent); }
.search-result-mfr { font-size: 0.78rem; color: var(--text-muted); }
.search-result-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}
.search-result-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}
.search-badge {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.search-badge.instock    { background: rgba(40,120,40,0.2);  color: #5db85d; }
.search-badge.outofstock { background: rgba(160,60,60,0.2);  color: #c07070; }

/* Light theme */
[data-theme="light"] .search-overlay  { background: rgba(0,0,0,0.35); }
[data-theme="light"] .search-modal    { background: #fff; border-color: #e0e0e0; }
[data-theme="light"] .search-modal-input { color: #111; }
[data-theme="light"] .search-result-item:hover { background: rgba(0,0,0,0.03); }
[data-theme="light"] .search-result-img { background: #f5f5f5; }

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 100px 32px;
  border-bottom: 1px solid var(--border);
}
.hero-logo {
  width: 300px;
  height: 300px;
  margin: 0 auto 36px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-location {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 40px;
}
.btn {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-family: var(--font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  background: transparent;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg);
}
.btn-solid {
  background: var(--accent);
  color: var(--bg);
}
.btn-solid:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

/* --- Value Props (3-column grid) --- */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}
.value-prop {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.value-prop:last-child {
  border-right: none;
}
.value-prop h3 {
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 500;
}
.value-prop p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Info Strip --- */
.info-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 24px 32px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.info-strip .dot {
  color: var(--accent);
  margin-right: 8px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}

/* --- Page Sections --- */
.page-header {
  text-align: center;
  padding: 80px 32px 48px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section p {
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 16px;
}

/* --- Service Cards --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  transition: border-color 0.3s;
}
.service-card:hover {
  border-color: var(--accent);
}
.service-card h3 {
  font-size: 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-weight: 500;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* --- Transfer Steps --- */
.steps {
  counter-reset: step;
  margin-top: 32px;
}
.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child {
  border-bottom: none;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}
.step-content h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* --- Contact Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.contact-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
}
.contact-item h3 {
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-weight: 500;
}
.contact-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* --- Fee Table --- */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.fee-table th,
.fee-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.fee-table th {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 500;
}
.fee-table td {
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.98);
    flex-direction: column;
    padding: 16px 32px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 64px 24px;
  }
  .hero h1 {
    font-size: 28px;
    letter-spacing: 2px;
  }
  .hero-logo {
    width: 90px;
    height: 90px;
  }

  .value-props {
    grid-template-columns: 1fr;
  }
  .value-prop {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
  }
  .value-prop:last-child {
    border-bottom: none;
  }

  .info-strip {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  .container {
    padding: 0 24px;
  }

  .page-header {
    padding: 56px 24px 36px;
  }
  .page-header h1 {
    font-size: 28px;
  }

  .step {
    gap: 16px;
  }
}


/* ============================================
   Inventory Catalog
   ============================================ */

.inventory-page {
  min-height: 60vh;
}

.inv-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.inv-header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.inv-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.inv-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.inv-stat { color: var(--text-muted); }
.inv-stat.in-stock { color: var(--accent); }
.inv-stat-sep { color: var(--border); }

/* Filters */
.inv-filters {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border);
}

.filter-bar {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.filter-group input,
.filter-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--font-body);
  border-radius: 0;
  min-width: 180px;
  transition: border-color 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-group select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.filter-actions {
  flex-direction: row;
  gap: 8px;
  align-self: flex-end;
}

.btn-filter {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 8px 20px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-filter:hover {
  background: var(--accent-hover);
}

.btn-clear {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-clear:hover {
  color: var(--text);
}

.filter-results {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

/* Product Grid */
.inv-grid-section {
  padding: 32px 0 64px;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.inv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}

.inv-card:hover {
  border-color: #3A3A3A;
}

.inv-card.out-of-stock {
  opacity: 0.65;
}

.inv-card.out-of-stock:hover {
  opacity: 1;
}

.inv-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inv-mfg {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 500;
}

.inv-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  font-weight: 500;
}

.badge-instock {
  color: #4CAF50;
  border: 1px solid #4CAF50;
}

.badge-oos {
  color: #888;
  border: 1px solid #444;
}

.inv-title {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}

.inv-details {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

.inv-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.inv-price {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.inv-price.call-price {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.inv-qty {
  font-size: 12px;
  color: var(--text-dim);
}

.btn-notify {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 5px 14px;
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.btn-notify:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Pagination */
.inv-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 48px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: all 0.2s;
}

a.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.page-dots {
  color: var(--text-dim);
  padding: 0 4px;
}

/* Empty state */
.inv-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

.inv-empty a {
  display: inline-block;
  margin-top: 16px;
}

/* Notify Me Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  max-width: 420px;
  width: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

.modal-box h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.modal-product {
  color: var(--accent);
  font-size: 14px;
  margin: 0 0 8px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 20px;
}

.modal-box input[type="email"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  margin-bottom: 12px;
}

.modal-box input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-submit-notify {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 10px;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit-notify:hover {
  background: var(--accent-hover);
}

.btn-submit-notify:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-msg {
  margin: 12px 0 0;
  font-size: 13px;
  text-align: center;
}

.modal-msg.success { color: #4CAF50; }
.modal-msg.error { color: #E57373; }


/* ============================================
   Admin Pages
   ============================================ */

.admin-page {
  min-height: 60vh;
}

.admin-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--border);
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.admin-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.admin-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.admin-stats .priced { color: #4CAF50; }
.admin-stats .unpriced { color: var(--accent); }
.admin-stat-sep { color: var(--border); }

.admin-filters {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

/* Admin Table */
.admin-table-section {
  padding: 24px 0 64px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table thead {
  border-bottom: 2px solid var(--border);
}

.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 500;
}

.admin-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(200, 150, 46, 0.03);
}

.td-mfg {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.td-title {
  max-width: 300px;
}

.td-sku {
  font-family: monospace;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.td-qty {
  text-align: center;
  color: var(--text-muted);
}

.td-date {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 13px;
}

.admin-badge {
  font-size: 11px;
  padding: 2px 6px;
  white-space: nowrap;
}

.col-price {
  width: 130px;
}

.price-input-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
}

.price-dollar {
  color: var(--text-dim);
  font-size: 14px;
}

.price-input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 8px;
  font-size: 14px;
  font-family: var(--font-body);
  width: 100px;
  -moz-appearance: textfield;
}

.price-input::-webkit-inner-spin-button,
.price-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price-input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-save-price {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 5px 12px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-save-price:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-save-price:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-save-price.saved {
  background: #4CAF50;
  opacity: 1;
}

.admin-footer-nav {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.admin-footer-nav a {
  font-size: 14px;
}


/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    gap: 12px;
  }

  .filter-group input,
  .filter-group select {
    min-width: 100%;
  }

  .filter-actions {
    flex-direction: row;
    width: 100%;
  }

  .btn-filter {
    flex: 1;
  }

  .inv-grid {
    grid-template-columns: 1fr;
  }

  .inv-header h1 {
    font-size: 28px;
  }

  .admin-table {
    font-size: 13px;
  }

  .td-title {
    max-width: 200px;
  }
}


/* ============================================
   Category Tabs & Badges
   ============================================ */

.inv-categories {
  padding: 20px 0 0;
  border-bottom: 1px solid var(--border);
}

.cat-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
}

.cat-tab:hover {
  color: var(--text);
  border-bottom-color: var(--border);
}

.cat-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

.cat-count {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 400;
}

.cat-tab.active .cat-count {
  color: var(--accent);
}

.inv-cat-badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 2px 6px;
  border: 1px solid var(--border);
}

/* Admin category select */
.cat-select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 3px 6px;
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.cat-select:focus {
  outline: none;
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .cat-tabs {
    gap: 0;
    padding-bottom: 2px;
  }

  .cat-tab {
    padding: 10px 14px;
    font-size: 12px;
  }
}


/* ============================================
   Category Tabs & Badges
   ============================================ */

.inv-categories {
  padding: 20px 0 0;
  border-bottom: 1px solid var(--border);
}

.cat-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
}

.cat-tab:hover {
  color: var(--text);
  border-bottom-color: var(--border);
}

.cat-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 500;
}

.cat-count {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 400;
}

.cat-tab.active .cat-count {
  color: var(--accent);
}

.inv-cat-badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 2px 6px;
  border: 1px solid var(--border);
}

/* Admin category select */
.cat-select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 3px 6px;
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.cat-select:focus {
  outline: none;
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .cat-tabs {
    gap: 0;
    padding-bottom: 2px;
  }

  .cat-tab {
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* Admin Login */
.admin-login-section {
  display: flex;
  justify-content: center;
  padding: 80px 0;
}

.login-box {
  max-width: 360px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 32px;
}

.login-box h1 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 24px;
  text-align: center;
}

.login-field {
  margin-bottom: 16px;
}

.login-field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.login-field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
}

.login-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.login-error {
  color: #E57373;
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
}


/* RSR Admin */
.rsr-add-section {
  padding: 8px 0;
}

.rsr-add-section h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.rsr-add-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.rsr-add-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rsr-add-row textarea {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  font-family: monospace;
  resize: vertical;
}

.rsr-add-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.rsr-add-msg {
  margin-top: 8px;
  font-size: 13px;
}

.rsr-add-msg.success { color: #4CAF50; }
.rsr-add-msg.error { color: #E57373; }

.notes-input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 3px 6px;
  font-size: 12px;
  font-family: var(--font-body);
  width: 140px;
  transition: border-color 0.3s;
}

.notes-input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-remove {
  background: none;
  border: 1px solid #E57373;
  color: #E57373;
  padding: 3px 10px;
  font-size: 11px;
  font-family: var(--font-body);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.btn-remove:hover {
  background: #E57373;
  color: var(--bg);
}

@media (max-width: 768px) {
  .rsr-add-row {
    flex-direction: column;
  }

  .rsr-add-row textarea {
    width: 100%;
  }
}

/* Edit link in admin table */
.btn-edit-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-left: 6px;
}

.btn-edit-link:hover {
  text-decoration: underline;
}

/* ============================================
   Light Theme
   ============================================ */

[data-theme="light"] {
  --bg:        #F2F0EC;
  --surface:   #FFFFFF;
  --border:    #D9D5CD;
  --text:      #1A1A1A;
  --text-muted:#555555;
  --text-dim:  #888888;
  --text-faint:#AAAAAA;
  --accent:    #9E7520;
  --accent-hover:#B8892A;
}

/* Light theme specific overrides */
[data-theme="light"] .nav {
  background: rgba(242, 240, 236, 0.95);
}

[data-theme="light"] .pc-image,
[data-theme="light"] .pd-main-image,
[data-theme="light"] .editor-image-preview {
  background: #E8E5DF;
}

[data-theme="light"] .product-card:hover {
  border-color: #BBBBBB;
}

[data-theme="light"] .pc-status.in {
  background: rgba(56, 142, 60, 0.1);
  border-color: rgba(56, 142, 60, 0.3);
}

[data-theme="light"] .pc-status.out {
  background: rgba(100, 100, 100, 0.1);
  border-color: rgba(100, 100, 100, 0.3);
}

[data-theme="light"] .pd-badge.in {
  background: rgba(56, 142, 60, 0.1);
  border-color: rgba(56, 142, 60, 0.3);
}

[data-theme="light"] .pd-badge.out {
  background: rgba(100, 100, 100, 0.1);
  border-color: rgba(100, 100, 100, 0.3);
}

[data-theme="light"] .badge-instock {
  color: #2E7D32;
  border-color: #2E7D32;
}

[data-theme="light"] .admin-table tr:hover td {
  background: rgba(158, 117, 32, 0.05);
}

[data-theme="light"] .filter-field input,
[data-theme="light"] .filter-field select,
[data-theme="light"] .filter-group input,
[data-theme="light"] .filter-group select {
  background: #FFFFFF;
  border-color: var(--border);
}

[data-theme="light"] .price-input,
[data-theme="light"] .login-field input,
[data-theme="light"] .modal-card input,
[data-theme="light"] .modal-box input,
[data-theme="light"] .pd-notify-row input,
[data-theme="light"] .notes-input,
[data-theme="light"] .cat-select {
  background: #FFFFFF;
}

[data-theme="light"] .nav-toggle span {
  background: #1A1A1A;
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Logo swap for theme */
.logo-light { display: none; }
.logo-dark { display: block; }

[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* ============================================
   TNA Accounts, Cart & VIP Styles
   ============================================ */

/* ---- Auth pages (login, register, forgot, reset) ---- */

.account-page {
  padding: 60px 0;
  min-height: 60vh;
}

.auth-box {
  max-width: 440px;
  margin: 0 auto;
  background: var(--card-bg, #111);
  border: 1px solid var(--border, #2A2A2A);
  border-radius: 8px;
  padding: 40px;
}

.auth-box h1 {
  margin: 0 0 24px;
  font-size: 24px;
  text-align: center;
}

.auth-errors {
  background: rgba(220, 50, 50, 0.15);
  border: 1px solid rgba(220, 50, 50, 0.4);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.auth-errors p {
  margin: 0 0 4px;
  color: #e55;
  font-size: 14px;
}

.auth-errors p:last-child { margin-bottom: 0; }

.auth-desc {
  color: var(--text-muted, #888);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-alt {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted, #888);
}

.auth-alt a {
  color: var(--accent, #D4A843);
}

/* ---- Flash messages ---- */

.flash-msg {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.flash-success {
  background: rgba(50, 180, 80, 0.15);
  border: 1px solid rgba(50, 180, 80, 0.4);
  color: #5d5;
}

.flash-error {
  background: rgba(220, 50, 50, 0.15);
  border: 1px solid rgba(220, 50, 50, 0.4);
  color: #e55;
}

.flash-info {
  background: rgba(80, 150, 220, 0.15);
  border: 1px solid rgba(80, 150, 220, 0.4);
  color: #7ac;
}

/* ---- Forms ---- */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #999);
}

.form-group .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted, #666);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg, #0A0A0A);
  border: 1px solid var(--border, #2A2A2A);
  border-radius: 6px;
  color: var(--text, #E5E5E5);
  font-size: 15px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent, #D4A843);
}

.form-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted, #666);
}

.input-with-symbol {
  position: relative;
}

.input-symbol {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #888);
  font-weight: 600;
  pointer-events: none;
}

.input-with-symbol input {
  padding-right: 36px;
}

/* ---- Buttons ---- */

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 12px 24px;
  background: var(--accent, #D4A843);
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  display: inline-block;
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  color: var(--text, #E5E5E5);
  border: 1px solid var(--border, #2A2A2A);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
  transition: border-color 0.2s;
}

.btn-secondary:hover { border-color: var(--text-muted, #888); }

/* ---- Profile ---- */

.profile-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 40px 0;
}

.profile-sidebar h2 {
  font-size: 20px;
  margin: 0 0 16px;
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-nav a {
  padding: 10px 14px;
  color: var(--text-muted, #999);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.15s;
}

.profile-nav a:hover { background: rgba(255,255,255,0.04); }
.profile-nav a.active {
  background: rgba(255,255,255,0.06);
  color: var(--text, #E5E5E5);
}

.profile-main {
  max-width: 500px;
}

.profile-main h1 {
  font-size: 28px;
  margin: 0 0 24px;
}

.profile-main h3 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--text-muted, #999);
}

.profile-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border, #2A2A2A);
}

.profile-section p {
  font-size: 14px;
  color: var(--text-muted, #999);
  margin: 4px 0;
}

.vip-badge-large {
  display: inline-block;
  background: linear-gradient(135deg, #D4A843, #B8860B);
  color: #000;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

/* ---- Cart ---- */

.cart-page {
  padding: 40px 0 80px;
  min-height: 60vh;
}

.cart-page h1 {
  font-size: 28px;
  margin: 0 0 30px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto 30px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border, #2A2A2A);
}

.cart-item:first-child { border-top: 1px solid var(--border, #2A2A2A); }

.cart-item-image img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 4px;
  background: #1a1a1a;
}

.cart-placeholder-img {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border-radius: 4px;
  color: var(--text-muted, #666);
  font-size: 11px;
}

.cart-item-info h3 {
  margin: 0;
  font-size: 15px;
}

.cart-item-info h3 a {
  color: var(--text, #E5E5E5);
  text-decoration: none;
}

.cart-item-info h3 a:hover { color: var(--accent, #D4A843); }

.cart-item-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted, #888);
}

.cart-stock-warn {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #e55;
  font-weight: 600;
}

.cart-item-pricing {
  text-align: right;
  white-space: nowrap;
}

.cart-price {
  font-size: 16px;
  font-weight: 600;
}

.cart-price-original {
  font-size: 13px;
  text-decoration: line-through;
  color: var(--text-muted, #888);
  display: block;
}

.cart-price-vip {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent, #D4A843);
  display: block;
}

.vip-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--accent, #D4A843);
  background: rgba(212, 168, 67, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 2px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
}

.qty-btn {
  width: 32px;
  height: 32px;
  background: var(--bg, #0A0A0A);
  border: 1px solid var(--border, #2A2A2A);
  color: var(--text, #E5E5E5);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:first-child { border-radius: 4px 0 0 4px; }
.qty-btn:last-child { border-radius: 0 4px 4px 0; }
.qty-btn:hover { background: rgba(255,255,255,0.06); }

.qty-input {
  width: 44px;
  height: 32px;
  text-align: center;
  background: var(--bg, #0A0A0A);
  border: 1px solid var(--border, #2A2A2A);
  border-left: none;
  border-right: none;
  color: var(--text, #E5E5E5);
  font-size: 14px;
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.cart-item-subtotal {
  font-size: 16px;
  font-weight: 700;
  text-align: right;
  min-width: 80px;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--text-muted, #666);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.cart-remove:hover { color: #e55; }

/* Cart summary */

.cart-summary {
  background: var(--card-bg, #111);
  border: 1px solid var(--border, #2A2A2A);
  border-radius: 8px;
  padding: 28px;
  position: sticky;
  top: 24px;
}

.cart-summary h2 {
  margin: 0 0 20px;
  font-size: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border, #2A2A2A);
}

.summary-row:last-of-type { border-bottom: none; }

.summary-vip {
  color: var(--accent, #D4A843);
  font-size: 13px;
}

.summary-note {
  border-bottom: none;
  padding-bottom: 20px;
}

.summary-note span {
  font-size: 13px;
  color: var(--text-muted, #666);
}

.btn-checkout {
  margin-top: 10px;
  display: block;
}

/* Empty cart */

.cart-empty {
  text-align: center;
  padding: 80px 0;
}

.cart-empty p {
  font-size: 18px;
  color: var(--text-muted, #888);
  margin-bottom: 24px;
}

.cart-empty .btn-primary {
  width: auto;
  padding: 12px 36px;
}

/* ---- Add to cart button (for product pages) ---- */

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent, #D4A843);
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-add-cart:hover { opacity: 0.85; }

.btn-add-cart.added {
  background: #32b450;
  color: #fff;
}

.cart-link-nav {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--accent, #D4A843);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---- Admin users ---- */

.vip-toggle {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border, #2A2A2A);
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted, #888);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vip-toggle:hover { border-color: var(--accent, #D4A843); }

.vip-toggle.vip-active {
  background: linear-gradient(135deg, #D4A843, #B8860B);
  color: #000;
  border-color: #D4A843;
}

.status-yes { color: #5d5; font-weight: 600; font-size: 13px; }
.status-no  { color: var(--text-muted, #666); font-size: 13px; }

/* ---- Admin VIP settings ---- */

.vip-settings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.vip-global-box,
.vip-overrides-box {
  background: var(--card-bg, #111);
  border: 1px solid var(--border, #2A2A2A);
  border-radius: 8px;
  padding: 28px;
}

.vip-global-box h2,
.vip-overrides-box h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.vip-desc {
  font-size: 13px;
  color: var(--text-muted, #888);
  margin-bottom: 20px;
  line-height: 1.5;
}

.no-overrides {
  font-size: 14px;
  color: var(--text-muted, #666);
}

.btn-remove {
  padding: 4px 10px;
  font-size: 12px;
  background: transparent;
  border: 1px solid rgba(220, 50, 50, 0.4);
  border-radius: 4px;
  color: #e55;
  cursor: pointer;
}

.btn-remove:hover {
  background: rgba(220, 50, 50, 0.15);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 10px;
  }

  .cart-item-pricing,
  .cart-item-qty,
  .cart-item-subtotal {
    grid-column: 2;
  }

  .cart-remove {
    position: absolute;
    right: 0;
    top: 0;
  }

  .cart-item {
    position: relative;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .vip-settings-layout {
    grid-template-columns: 1fr;
  }
}
