/* ==========================================================================
   J&K Phone - Premium Styling System
   Theme: Modern Dark Titanium & Red Gradient Accent
   ========================================================================== */

:root {
  --primary-red: #ea384d;
  --primary-red-dark: #b80c21;
  --primary-gradient: linear-gradient(135deg, #d31027 0%, #ea384d 100%);
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --silver-gradient: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  
  --bg-dark: #0b0d12;
  --bg-card: #141824;
  --bg-card-hover: #1c2234;
  --bg-input: #1b2030;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-highlight: rgba(234, 56, 77, 0.4);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(211, 16, 39, 0.35);

  --font-family: 'Kanit', 'Prompt', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

/* Typography Utilities */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-highlight {
  color: var(--primary-red);
}

.text-danger { color: var(--primary-red); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-3 { margin-top: 1.5rem; }

.hidden {
  display: none !important;
}

/* Badge Tags */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(234, 56, 77, 0.12);
  border: 1px solid rgba(234, 56, 77, 0.3);
  color: var(--primary-red);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--warning);
}

/* Section Title */
.section-title-wrap {
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(211, 16, 39, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(211, 16, 39, 0.6);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  background: #059669;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.08rem;

}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, #161922 0%, #0d0f15 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-info i {
  color: var(--primary-red);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-link {
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.top-link:hover {
  color: var(--primary-red);
}

.btn-admin-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--warning);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-admin-toggle:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--warning);
}

/* Header & Navbar */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  position: relative;
  transition: var(--transition);
}

.btn-icon:hover {
  background: rgba(234, 56, 77, 0.15);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.cart-badge {
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(211, 16, 39, 0.15) 0%, transparent 60%);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 80%, rgba(30, 41, 59, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(234, 56, 77, 0.1);
  border: 1px solid var(--border-color-highlight);
  color: var(--primary-red);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Hero Visual & Quick Search Card */
.hero-visual {
  position: relative;
}

.hero-card-glow {
  position: absolute;
  inset: -10px;
  background: var(--primary-gradient);
  filter: blur(40px);
  opacity: 0.25;
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero-interactive-card {
  position: relative;
  background: rgba(20, 24, 36, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color-highlight);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.card-header-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.quick-search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.quick-search-box input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.quick-search-box input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 10px rgba(234, 56, 77, 0.3);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag-chip {
  font-size: 0.82rem;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tag-chip:hover {
  background: rgba(234, 56, 77, 0.2);
  border-color: var(--primary-red);
  color: #fff;
}

.hero-banner-preview {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.hero-mini-promo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.hero-mini-promo:hover {
  transform: scale(1.03);
}

/* Grand Opening Promotion Section */
.promo-section {
  background: rgba(15, 18, 26, 0.6);
  position: relative;
}

.promo-banner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-highlight);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-glow);
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.promo-image-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.promo-main-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.promo-tag-floating {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.promo-headline {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.promo-sub {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.promo-items-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.promo-price-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.promo-price-chip:hover {
  border-color: var(--primary-red);
  transform: translateY(-2px);
}

.promo-price-chip.active {
  background: rgba(234, 56, 77, 0.2);
  border-color: var(--primary-red);
  box-shadow: 0 0 15px rgba(234, 56, 77, 0.3);
  transform: translateY(-2px);
}

.chip-icon {
  width: 38px;
  height: 38px;
  background: rgba(234, 56, 77, 0.15);
  color: var(--primary-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.chip-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chip-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.chip-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chip-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-red);
}

/* Services & Estimator Section */
.estimator-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.estimator-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
}

.step-group {
  margin-bottom: 30px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.brand-btn:hover, .brand-btn.active {
  background: rgba(234, 56, 77, 0.15);
  border-color: var(--primary-red);
  color: #fff;
}

.custom-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.custom-select:focus {
  border-color: var(--primary-red);
}

.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

.issue-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 152px;
  box-sizing: border-box;
}

.issue-card:hover, .issue-card.active {
  background: rgba(234, 56, 77, 0.15);
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(234, 56, 77, 0.2);
}

.issue-card i {
  font-size: 1.6rem;
  color: var(--primary-red);
  margin-bottom: 8px;
  display: block;
}

.issue-title {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  line-height: 1.35;
  margin-bottom: 6px;
  text-align: center;
}

.issue-price-tag {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-top: auto;
  display: block;
}

.issue-card small {
  display: block;
  font-size: 0.72rem;
  margin-top: 4px;
  line-height: 1.2;
}

/* Summary Card */
.estimator-summary-card {
  background: rgba(11, 13, 18, 0.7);
  border: 1px solid var(--border-color-highlight);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-red);
  font-size: 1.1rem;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.summary-body {
  margin: 16px 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.line-label {
  color: var(--text-muted);
}

.line-val {
  font-weight: 500;
  text-align: right;
}

.divider {
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}

.price-breakdown {
  margin-bottom: 20px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.total-row {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.total-amount {
  font-size: 1.5rem;
  color: var(--primary-red);
}

.warranty-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* Repair Tracker Section */
.tracker-section {
  background: radial-gradient(circle at 30% 50%, rgba(211, 16, 39, 0.08) 0%, transparent 70%);
}

.tracker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.tracker-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.tracker-icon-bg {
  width: 60px;
  height: 60px;
  background: rgba(234, 56, 77, 0.15);
  border: 1px solid var(--border-color-highlight);
  color: var(--primary-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.tracker-title-box h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

.tracker-title-box p {
  color: var(--text-muted);
}

.form-group-inline {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.input-with-icon {
  position: relative;
  flex: 1;
}

.input-with-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.input-with-icon input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 14px 16px 14px 44px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.input-with-icon input:focus {
  border-color: var(--primary-red);
}

.sample-tickets {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.chip-sample {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.chip-sample:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* Tracker Results & Timeline */
.tracker-result-box {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ticket-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-input);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.ticket-id-badge strong {
  font-size: 1.2rem;
  color: var(--primary-red);
  margin-left: 8px;
}

.ticket-status-pill {
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--warning);
  font-weight: 600;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}

.ticket-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.info-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-md);
}

.info-block .lbl {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-block strong {
  font-size: 0.98rem;
}

/* Timeline Stepper */
.timeline-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 40px;
}

.timeline-stepper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
}

.t-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.t-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-dark);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1rem;
  transition: var(--transition);
}

.t-step.completed .t-icon {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.t-step.active .t-icon {
  background: var(--primary-gradient);
  border-color: var(--primary-red);
  color: #fff;
  box-shadow: 0 0 15px rgba(234, 56, 77, 0.5);
  animation: pulse 1.5s infinite;
}

.t-title {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
}

.t-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Inventory Catalog Section */
.catalog-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.catalog-controls {
  margin-bottom: 32px;
}

.catalog-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background: rgba(234, 56, 77, 0.15);
  border-color: var(--primary-red);
  color: #fff;
}

.catalog-filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input-wrap input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 14px 10px 40px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  outline: none;
}

.custom-select-sm {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  outline: none;
  cursor: pointer;
}

/* Catalog Grid & Product Cards */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

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

.product-img-box {
  height: 180px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-img-icon {
  font-size: 4rem;
  color: var(--primary-red);
  opacity: 0.85;
}

.stock-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-instock {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--success);
}

.badge-lowstock {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--warning);
}

.badge-outstock {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--danger);
}

.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-sku {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: monospace;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 6px 0 10px;
  line-height: 1.35;
}

.product-model-chip {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 14px;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-red);
}

/* Admin Dashboard Table Section */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-highlight);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.admin-stats-pills {
  display: flex;
  gap: 16px;
}

.admin-stat {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-num {
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: center;
}

.admin-search {
  flex: 1;
}

.admin-search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  outline: none;
}

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

.stock-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.stock-table th {
  background: var(--bg-input);
  padding: 14px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.stock-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
}

.stock-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-sku {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--primary-red);
}

.qty-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* Contact & Map Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-logo {
  height: 60px;
  margin-bottom: 16px;
}

.contact-details-list {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c-item {
  display: flex;
  gap: 16px;
}

.c-icon {
  width: 42px;
  height: 42px;
  background: rgba(234, 56, 77, 0.15);
  color: var(--primary-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.c-text strong {
  font-size: 0.95rem;
  display: block;
}

.c-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.social-btn.facebook { background: #1877f2; color: #fff; }
.social-btn.line { background: #06c755; color: #fff; }
.social-btn.phone { background: var(--primary-gradient); color: #fff; }

.map-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.map-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.map-placeholder {
  flex: 1;
  min-height: 380px;
  position: relative;
}

.map-mock-bg {
  width: 100%;
  height: 100%;
  background: #192030 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M 0 10 L 100 10 M 10 0 L 10 100 M 0 50 L 100 50 M 50 0 L 50 100" stroke="rgba(255,255,255,0.04)" stroke-width="1"/></svg>');
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-pin {
  position: relative;
  z-index: 2;
  text-align: center;
}

.pin-img {
  height: 48px;
  margin: 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8));
}

.pin-pulse {
  width: 60px;
  height: 20px;
  background: rgba(234, 56, 77, 0.4);
  border-radius: 50%;
  margin: -10px auto 0;
  animation: pulse 2s infinite;
}

.map-info-tooltip {
  position: absolute;
  bottom: 24px;
  background: rgba(11, 13, 18, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color-highlight);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-align: center;
}

/* Footer */
.main-footer {
  background: #07080b;
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* Cart Slide Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
  transform: translateX(-420px);
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-close-drawer {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  font-size: 1.3rem;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 600;
}

.cart-item-price {
  font-size: 0.95rem;
  color: var(--primary-red);
  font-weight: 700;
  margin-top: 4px;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-dark);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.cart-subtotal strong {
  color: var(--primary-red);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-highlight);
  border-radius: var(--radius-lg);
  width: 540px;
  max-width: 100%;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  outline: none;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.booking-summary-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color-highlight);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.b-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* PromptPay Simulated Box */
.promptpay-box {
  background: #0f172a;
  border: 1px solid var(--border-color-highlight);
  padding: 20px;
  border-radius: var(--radius-md);
}

.pp-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.pp-logo {
  height: 36px;
}

.qr-simulated {
  background: #fff;
  color: #000;
  padding: 24px;
  border-radius: var(--radius-md);
  display: inline-block;
  position: relative;
}

.qr-icon {
  font-size: 7rem;
}

.qr-amount-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.pp-account-info {
  margin-top: 14px;
  font-size: 0.95rem;
}

.pp-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  animation: slideInRight 0.3s ease;
}

.toast.success { border-color: var(--success); }
.toast.success i { color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.error i { color: var(--danger); }

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

/* Desktop Layout Mode for Mobile & Small Screens (Match Desktop View 1:1) */
.issues-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px;
}

.estimator-card {
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
}

.hero-container {
  grid-template-columns: 1.1fr 0.9fr;
}

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

/* Admin Module Tabs */
.admin-tab-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.admin-tab-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.admin-tab-btn:hover, .admin-tab-btn.active {
  background: rgba(234, 56, 77, 0.18);
  border-color: var(--primary-red);
  color: #fff;
}

.ticket-status-select {
  font-weight: 600;
  border-color: var(--border-color-highlight);
  background: var(--bg-input);
}

.ticket-status-select[data-step="0"] { color: var(--text-main); }
.ticket-status-select[data-step="1"] { color: var(--info); }
.ticket-status-select[data-step="2"] { color: var(--warning); }
.ticket-status-select[data-step="3"] { color: #a855f7; }
.ticket-status-select[data-step="4"] { color: var(--success); }

