/* NRD STORE - Orderkuota Modern Teal & Slate Neutral Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --brand-primary: #0d9488;
  --brand-dark: #0f766e;
  --brand-light: #14b8a6;
  --brand-cyan: #06b6d4;
  --axis-purple: #0d9488;
  --axis-purple-dark: #0f766e;
  --axis-purple-light: #14b8a6;
  --axis-teal: #06b6d4;
  --axis-pink: #f43f5e;
  --axis-black: #0f172a;
  --axis-gray-bg: #f8fafc;
  --axis-card-bg: #FFFFFF;
  --axis-border: #e2e8f0;
  --axis-text-main: #0f172a;
  --axis-text-muted: #64748b;
  --shadow-sm: 0 4px 12px rgba(13, 148, 136, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 148, 136, 0.15);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--axis-gray-bg);
  color: var(--axis-text-main);
  line-height: 1.5;
  padding-bottom: 30px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

/* Header & Navbar */
.navbar-axis {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Hero Section */
.hero-slider {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #0284c7 100%);
  border-radius: var(--radius-lg);
  color: white;
  overflow: hidden;
  position: relative;
}

.hero-slide {
  padding: 2.5rem 1.5rem;
}

.region-tag {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.promo-badge-free {
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
}

/* Search & Filter Bar */
.search-box {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 8px 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  color: var(--axis-text-main);
}

/* Product Type Toggle Switcher */
.product-toggle-container {
  display: flex;
  background: #e2e8f0;
  border-radius: 50px;
  padding: 5px;
  max-width: 480px;
  margin: 0 auto 1.5rem auto;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.type-toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.type-toggle-btn.active {
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transform: scale(1.02);
}

.type-toggle-btn.active.pulsa-mode {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

/* Category Pills */
.category-pills-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.category-pills-container::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  background: white;
  color: var(--axis-text-muted);
  border: 1.5px solid var(--axis-border);
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
  transform: translateY(-1px);
}

.cat-pill[data-cat="IndosatData"].active, .cat-pill[data-cat="IndosatPulsa"].active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #d97706;
  color: white;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

/* Product Card */
.product-card {
  background: var(--axis-card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--axis-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}

.product-header {
  background: linear-gradient(135deg, #ccfbf1 0%, #e0f2fe 100%);
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
}

.duration-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand-dark);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.capacity-main {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.1;
}

.product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.price-selling {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.3px;
}

/* Quantity Control in Product Card */
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--axis-border);
  border-radius: 10px;
  overflow: hidden;
  background: #f0fdf4;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 34px;
  height: 34px;
  font-weight: bold;
  color: var(--brand-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--brand-primary);
  color: white;
}

.qty-input {
  width: 45px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-add-cart {
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  padding: 8px 12px;
  transition: all 0.2s;
  width: 100%;
}

.btn-add-cart:hover {
  background: var(--brand-dark);
  transform: scale(1.02);
}

/* Floating Bottom Cart Bar */
.bottom-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  color: white;
  padding: 12px 18px;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.25);
  z-index: 1050;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.cart-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cart-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #06b6d4);
  transition: width 0.3s ease;
}

.btn-checkout {
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  transition: all 0.3s;
}

.btn-checkout:disabled {
  background: #475569;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-checkout:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.4);
}

/* Floating WA Button */
.btn-wa-float {
  position: fixed;
  bottom: 95px;
  right: 20px;
  background: #25D366;
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 1040;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.btn-wa-float:hover {
  transform: scale(1.1) rotate(8deg);
  color: white;
}

/* Payment Method Cards */
.payment-card-option {
  border: 2px solid var(--axis-border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.payment-card-option.active {
  border-color: var(--brand-primary);
  background: #ccfbf1;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

/* Modal Styling */
.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header-axis {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
  color: white;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

/* Toast Notifications */
.toast-axis {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  background: var(--brand-dark);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Custom Utility Classes mapped to Orderkuota Teal */
.bg-purple {
  background-color: var(--brand-primary) !important;
  color: #ffffff !important;
}

.bg-purple-dark {
  background-color: var(--brand-dark) !important;
  color: #ffffff !important;
}

.text-purple {
  color: var(--brand-primary) !important;
}

.text-purple-light {
  color: var(--brand-light) !important;
}

.border-purple {
  border-color: var(--brand-primary) !important;
}

/* ── Provider-specific CSS color tokens ── */
:root {
  --tsel-red: #dc2626;
  --tsel-red-dark: #b91c1c;
  --xl-blue: #0284c7;
  --xl-blue-dark: #0369a1;
  --axis-violet: #7c3aed;
  --axis-violet-dark: #6d28d9;
}

/* Category pill active overrides per provider filter */
.cat-pill[data-cat="TselData"].active,
.cat-pill[data-cat="TselPulsa"].active {
  background: var(--tsel-red) !important;
  border-color: var(--tsel-red) !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35) !important;
}

.cat-pill[data-cat="AxisData"].active,
.cat-pill[data-cat="AxisPulsa"].active {
  background: var(--axis-violet) !important;
  border-color: var(--axis-violet) !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35) !important;
}

.cat-pill[data-cat="XlData"].active,
.cat-pill[data-cat="XlPulsa"].active {
  background: var(--xl-blue) !important;
  border-color: var(--xl-blue) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

/* XL provider detect banner highlight */
.provider-hint-xl {
  color: var(--xl-blue) !important;
  font-weight: 700;
}

/* Admin: XL data highlight row */
.admin-row-xl td {
  background: rgba(2, 132, 199, 0.06) !important;
}

/* ============================================================
   ADMIN PANEL MOBILE RESPONSIVE STYLING (HP Friendly)
   ============================================================ */
@media (max-width: 767.98px) {
  body {
    padding-bottom: 75px !important;
  }

  .navbar-axis {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .navbar-mobile-actions {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    scrollbar-width: none;
    gap: 6px;
  }
  .navbar-mobile-actions::-webkit-scrollbar {
    display: none;
  }

  .admin-sidebar-desktop {
    display: none !important;
  }

  .admin-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1050;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  }

  .admin-bottom-nav .nav-item-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    flex: 1;
  }

  .admin-bottom-nav .nav-item-btn i {
    font-size: 1.25rem;
    margin-bottom: 2px;
  }

  .admin-bottom-nav .nav-item-btn.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
  }

  .stat-card-col {
    width: 50% !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    margin-bottom: 12px !important;
  }

  .stat-card {
    padding: 12px !important;
  }
  .stat-card h3 {
    font-size: 1.1rem !important;
  }
  .stat-card .fs-2 {
    font-size: 1.4rem !important;
  }

  .table-responsive {
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .table th, .table td {
    font-size: 0.8rem !important;
    padding: 8px 6px !important;
    white-space: nowrap;
  }

  .modal-dialog {
    margin: 0.5rem !important;
  }
  .modal-body {
    padding: 1rem !important;
  }
}
