/* ============================================
   Katika Web Services — Shared Styles
   ============================================ */

:root {
  /* Brand */
  --primary: #DC2626;
  --primary-light: #ef4444;
  --primary-dark: #b91c1c;
  --secondary: #1e293b;
  --white: #ffffff;

  /* Neutrals */
  --dark: #0F172A;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;

  /* Accents */
  --accent-teal: #14b8a6;
  --accent-yellow: #f59e0b;
  --accent-pink: #ec4899;
  --success: #10b981;
  --danger: #ef4444;

  /* Gradients */
  --gradient-1: linear-gradient(135deg, #1C0A0A 0%, #DC2626 100%);

  /* Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
}

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

body {
  background: #fff;
  color: #111;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* ---- Inner-page Explore Dropdown ---- */
.inner-explore-wrap {
  position: relative;
}

.inner-explore-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s;
}

.inner-explore-trigger:hover { color: #DC2626; }

.inner-explore-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 6px;
  min-width: 160px;
  z-index: 2000;
}

.inner-explore-wrap.open .inner-explore-dropdown { display: block; }

.iex-item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
}

.iex-item:hover { background: #f5f5f5; color: #DC2626; }
.iex-item.active { color: #DC2626; font-weight: 600; }

@media (max-width: 768px) {
  .inner-explore-wrap { width: 100%; }
  .inner-explore-trigger { width: 100%; padding: 10px 12px; border-radius: 6px; font-size: 0.95rem; }
  .inner-explore-trigger:hover { background: #f5f5f5; }
  .inner-explore-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #f9f9f9;
    padding: 4px 0 4px 16px;
  }
  .inner-explore-wrap.open .inner-explore-dropdown { display: block; }
}

/* ---- Inner-page Navbar (domains, hosting, cart pages) ---- */
.nav-inner-page {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 1.5rem;
  height: 68px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-bar .logo {
  margin-right: 40px;
  flex-shrink: 0;
}

.nav-bar .logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

/* Push cart + Sign In to the far right */
.nav-actions .cart-badge { margin-left: auto; }
.nav-actions #clerk-user { margin-left: 0; }

.nav-actions a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-actions a:hover { color: #DC2626; }

.nav-auth-link {
  padding: 8px 18px;
  border-radius: 6px;
  background: #DC2626;
  color: #fff !important;
  font-weight: 600 !important;
}

.nav-auth-link:hover { background: #b91c1c; color: #fff !important; }

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav-bar { padding: 0 1rem; }
  .mobile-nav-toggle { display: flex; }
  .nav-actions {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 999;
  }
  .nav-actions.open { display: flex; }
  .nav-actions a { padding: 14px 12px; border-radius: 6px; font-size: 0.95rem; }
  .nav-actions #clerk-user { margin-top: 8px; padding-top: 12px; border-top: 1px solid #f0f0f0; width: 100%; }
  .nav-actions #clerk-user a { display: block; width: 100%; text-align: center; }
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #111111;
  border-bottom: 1px solid #2a2a2a;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.navbar-logo span {
  color: #FF6B35;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  color: #b0b0b0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #ffffff;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Count bubble (the small number) */
.cart-badge {
  background: #DC2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.cart-badge.hidden {
  display: none;
}

/* Nav cart link — overrides .cart-badge when misused on <a> */
a.cart-badge {
  background: none;
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 500;
  min-width: auto;
  height: auto;
  border-radius: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

a.cart-badge:hover { color: var(--primary); }

a.cart-badge .cart-count {
  background: #DC2626;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- Main Content ---- */
main {
  flex: 1;
  margin-top: 64px;
  padding: 2rem;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Cards ---- */
.card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-featured {
  border-color: #FF6B35;
  box-shadow: 0 0 0 1px #FF6B35;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #DC2626;
  color: #fff;
}

.btn-primary:hover {
  background: #b91c1c;
}

.btn-secondary {
  background: #f3f4f6;
  color: #111;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-outline {
  background: transparent;
  color: #DC2626;
  border: 2px solid #DC2626;
}

.btn-outline:hover {
  background: #DC2626;
  color: #fff;
}

.btn-danger {
  background: #dc3545;
  color: #fff;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Form Inputs ---- */
.form-input {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  color: #111;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* ---- Grid Layouts ---- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---- Hero Section ---- */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
  border-radius: 16px;
  margin-bottom: 3rem;
  border: 1px solid #2a2a2a;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: #FF6B35;
}

.hero p {
  font-size: 1.15rem;
  color: #999;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Section Headings ---- */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #888;
  margin-bottom: 2rem;
}

/* ---- Search Bar ---- */
.search-bar {
  display: block;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar .form-input {
  flex: 1;
}

/* ---- TLD Checkboxes ---- */
.tld-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.tld-checkbox {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.tld-checkbox:hover {
  border-color: #FF6B35;
}

.tld-checkbox input[type="checkbox"] {
  accent-color: #FF6B35;
}

/* ---- Results Table ---- */
.results-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.result-domain {
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.result-domain .demo-tag {
  font-size: 0.75rem;
  color: #666;
  font-weight: 400;
  margin-left: 0.5rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-available {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

.badge-taken {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

.result-price {
  font-weight: 700;
  color: #FF6B35;
  font-size: 1.1rem;
}

/* ---- Tabs ---- */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 0.75rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #888;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.tab-btn:hover {
  color: #e0e0e0;
}

.tab-btn.active {
  background: #FF6B35;
  color: #fff;
}

/* ---- Toggle Switch ---- */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.toggle-label {
  font-weight: 600;
  color: #888;
  transition: color 0.2s;
}

.toggle-label.active {
  color: #fff;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #2a2a2a;
  border-radius: 14px;
  transition: background 0.3s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: #FF6B35;
}

.toggle-switch input:checked + .toggle-slider::after {
  transform: translateX(24px);
}

.savings-badge {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ---- Price Display ---- */
.price-display {
  margin: 1rem 0;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: #FF6B35;
}

.price-period {
  color: #888;
  font-size: 0.9rem;
}

.price-annual-note {
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ---- Plan Card ---- */
.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-card .plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.plan-card .plan-features {
  list-style: none;
  margin: 1rem 0;
  flex: 1;
}

.plan-card .plan-features li {
  padding: 0.35rem 0;
  color: #000;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plan-card .plan-features li::before {
  content: '\2713';
  color: #FF6B35;
  font-weight: 700;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Cart Page ---- */
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--gray-100, #f3f4f6);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  gap: 1rem;
  flex-wrap: nowrap;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  color: var(--dark, #0F172A);
  font-size: 1.05rem;
}

.cart-item-detail {
  color: var(--gray-500, #6b7280);
  font-size: 0.85rem;
}

.cart-item-price {
  font-weight: 700;
  color: var(--dark, #0F172A);
  font-size: 1.1rem;
  white-space: nowrap;
}

.cart-total-bar {
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-100, #f3f4f6);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cart-total-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary, #DC2626);
}

/* ---- Checkout / Order ---- */
.order-summary {
  background: var(--gray-50, #f9fafb);
  border: 1px solid var(--gray-100, #f3f4f6);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-100, #f3f4f6);
}

.order-summary-row:last-child {
  border-bottom: none;
}

.order-summary-total {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark, #0F172A);
  border-top: 2px solid var(--gray-200, #e5e7eb);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.demo-notice {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 8px;
  padding: 1rem;
  color: #FF6B35;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ---- Success Page ---- */
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(40, 167, 69, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: #28a745;
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.empty-state h2 {
  color: #999;
  margin-bottom: 0.75rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* ---- Loading Spinner ---- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #2a2a2a;
  border-top-color: #FF6B35;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-msg {
  text-align: center;
  padding: 2rem;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* ---- Alert Messages ---- */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #dc3545;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #28a745;
}

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  padding: 80px 0 40px;
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand .logo img {
  height: 36px;
  width: auto;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 320px;
  color: rgba(255,255,255,0.6);
}

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.footer-socials a:hover {
  background: var(--primary);
  color: #fff;
}

/* ---- Inner-page Nav: Explore + Support Dropdowns ---- */
.nav-inner-page .explore-wrap,
.nav-inner-page .support-wrap { position: relative; }

.nav-inner-page .explore-trigger,
.nav-inner-page .support-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  padding: 0;
  transition: color 0.2s;
}
.nav-inner-page .explore-trigger:hover,
.nav-inner-page .support-trigger:hover { color: #DC2626; }

.nav-inner-page .explore-trigger svg,
.nav-inner-page .support-trigger svg { width: 14px; height: 14px; transition: transform 0.2s; flex-shrink: 0; }

.nav-inner-page .explore-wrap.open .explore-trigger svg,
.nav-inner-page .support-wrap.open .support-trigger svg { transform: rotate(180deg); }

.nav-inner-page .explore-dropdown,
.nav-inner-page .support-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 1000;
  animation: innerDropFadeIn 0.15s ease;
}
@keyframes innerDropFadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.nav-inner-page .explore-wrap.open .explore-dropdown,
.nav-inner-page .support-wrap.open .support-dropdown { display: block; }

.nav-inner-page .explore-dropdown {
  width: 340px;
  padding: 16px;
}
.nav-inner-page .support-dropdown {
  width: 280px;
  padding: 12px;
  right: 0;
  left: auto;
  transform: none;
}
@keyframes innerSupportFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.nav-inner-page .explore-heading,
.nav-inner-page .support-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin: 0 0 10px;
  padding: 0 4px;
}

.nav-inner-page .explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.nav-inner-page .explore-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  gap: 8px;
}
.nav-inner-page .explore-card:hover { background: #f9fafb; }

.nav-inner-page .explore-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner-page .explore-card h4 { font-size: 0.82rem; font-weight: 700; color: #111; margin: 0; }
.nav-inner-page .explore-card p  { font-size: 0.75rem; color: #6b7280; margin: 0; line-height: 1.3; }

.nav-inner-page .explore-divider { height: 1px; background: #f3f4f6; margin: 10px 0; }

.nav-inner-page .explore-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
}
.nav-inner-page .explore-footer-text { font-size: 12px; color: #6b7280; }
.nav-inner-page .explore-footer-link { font-size: 12px; font-weight: 700; color: #DC2626; text-decoration: none; }
.nav-inner-page .explore-footer-link:hover { text-decoration: underline; }

.nav-inner-page .support-list { display: flex; flex-direction: column; gap: 2px; }

.nav-inner-page .support-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.nav-inner-page .support-item:hover { background: #f9fafb; }

.nav-inner-page .support-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-inner-page .support-item-text h4 { font-size: 0.85rem; font-weight: 700; color: #111; margin: 0 0 2px; }
.nav-inner-page .support-item-text p  { font-size: 0.75rem; color: #6b7280; margin: 0; }

@media (max-width: 768px) {
  .nav-inner-page .explore-wrap,
  .nav-inner-page .support-wrap { width: 100%; }
  .nav-inner-page .explore-trigger,
  .nav-inner-page .support-trigger { width: 100%; padding: 14px 12px; border-radius: 6px; font-size: 0.95rem; justify-content: space-between; }
  .nav-inner-page .explore-dropdown,
  .nav-inner-page .support-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    animation: none;
    background: #f9fafb;
    padding: 4px 0 4px 16px;
    width: 100%;
    right: auto;
  }
  .nav-inner-page .explore-grid { grid-template-columns: 1fr; gap: 0; }
  .nav-inner-page .explore-card { flex-direction: row; text-align: left; padding: 8px; }
  .nav-inner-page .explore-footer { padding: 8px; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

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

@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #111111;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
  }

  .navbar-links.open {
    display: flex;
  }

  main {
    padding: 1rem;
  }

  .hero {
    padding: 2.5rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .search-bar {
    flex-direction: column;
  }

  .cart-total-bar {
    flex-direction: column;
    text-align: center;
  }

  .cart-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .cart-item .btn-danger {
    flex-shrink: 0;
    align-self: flex-end;
    min-width: 80px;
    min-height: 44px;
    padding: 0.6rem 1.2rem;
  }

  .result-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
