/* ============================================================
   THEME SHOP CSS - Centralized Theme Configuration
   ============================================================
   All colors, fonts, and gradients are driven by CSS variables
   set dynamically from the admin Frontend Settings panel.
   ============================================================ */

/* ============================================================
   DEFAULT CSS VARIABLES (overridden by inline <style> from DB)
   ============================================================ */
:root {
  --theme-primary: #667eea;
  --theme-secondary: #764ba2;
  --theme-text: #333333;
  --theme-bg: #f8f9fa;
  --theme-link: #667eea;
  --theme-btn-text: #ffffff;
  --text-muted: #666666;
  --border-light: #e0e0e0;
  --theme-body-bg: #ffffff;
  --theme-success: #28a745;
  --theme-card-bg: #ffffff;
  --theme-btn-hover-bg: #764ba2;
  --theme-btn-hover-text: #ffffff;
  --theme-link-hover: #764ba2;
  --theme-primary-rgb: 102,126,234;
  --theme-font-headings: 'Raleway', sans-serif;
  --theme-font-subtitles: 'Raleway', sans-serif;
  --theme-font-body: 'Segoe UI', sans-serif;
  --gradient-primary: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
  --transition: all 0.3s ease;
}

/* ============================================================
   GLOBAL STYLES
   ============================================================ */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--theme-font-body);
  line-height: 1.6;
  color: var(--theme-text);
  background-color: var(--theme-body-bg);
  display: flex;
  flex-direction: column;
}

html {
  scroll-behavior: smooth;
}

#main {
  flex: 1;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, .section-title, .hero-title, .footer-title,
.service-info h2, .inquiry-title {
  font-family: var(--theme-font-headings);
}

h4, h5, h6, .hero-subtitle, .section-subtitle,
.quick-service-text h5, .benefit-item h4, .device-card-name,
.service-card h3, .faq-question, .autocomplete-title {
  font-family: var(--theme-font-subtitles);
}

p, span, a, li, label, input, textarea, select, small, .search-help,
.service-card p, .benefit-item p, .faq-answer, .testimonial-text {
  font-family: var(--theme-font-body);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-custom {
  background: var(--gradient-primary);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-custom .navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: white !important;
  letter-spacing: 0.5px;
}

.navbar-custom .navbar-brand:hover {
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none;
}

.navbar-custom .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  margin: 0 5px;
  transition: var(--transition);
  position: relative;
}

.navbar-custom .nav-link:hover {
  color: white !important;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::after {
  width: 100%;
}

.navbar-custom .dropdown-menu {
  background: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-custom .dropdown-item {
  color: var(--theme-text);
  font-weight: 500;
  transition: var(--transition);
}

.navbar-custom .dropdown-item:hover {
  background: var(--theme-bg);
  color: var(--theme-primary);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: var(--gradient-primary);
  color: white;
  padding: 80px 0 60px;
  margin-top: 0;
  text-align: left;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
  font-weight: 300;
}

.hero-subtitle strong {
  font-weight: bold;
  color: #fff;
}

/* Hero Brands */
.hero-brands {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero-brand-logo {
  height: 50px;
  width: 50px;
  background-color: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(1.2);
  transition: var(--transition);
}

.hero-brand-logo:hover {
  background-color: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.hero-brand-logo img {
  max-height: 40px;
  max-width: 40px;
  object-fit: contain;
}

.hero-brand-logo span {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Search Form */
.hero-search-form {
  margin-bottom: 20px;
}

.search-box-wrapper {
  display: flex;
  gap: 0;
  margin-bottom: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  border-radius: 8px;
  overflow: visible;
  position: relative;
  z-index: 10;
}

.search-input-container {
  flex: 1;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 15px 20px;
  border: none;
  font-size: 1rem;
  background-color: white;
  color: var(--theme-text);
  box-sizing: border-box;
  border-radius: 8px 0 0 8px;
}

.search-input::placeholder {
  color: #999;
}

.search-input:focus {
  outline: none;
  background-color: #f9f9f9;
}

/* Autocomplete */
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.autocomplete-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--theme-text);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background-color: #f5f7ff;
}

.autocomplete-item i {
  color: var(--theme-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.autocomplete-item-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background-color: #f5f5f5;
  border: 1px solid var(--border-light);
}

.autocomplete-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.autocomplete-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--theme-text);
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

.autocomplete-item:hover .autocomplete-title {
  color: var(--theme-primary);
}

.autocomplete-slug {
  color: #999;
  font-size: 0.8rem;
  display: block;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
  margin: 2px 0 0 0;
}

.autocomplete-services {
  color: #999;
  font-size: 0.8rem;
  display: block;
  margin: 4px 0 0 0;
}

.autocomplete-no-results {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

.search-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 15px 30px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 0 8px 8px 0;
}

.search-btn:hover {
  box-shadow: 0 5px 15px rgba(var(--theme-primary-rgb), 0.4);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.search-help {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  display: block;
  line-height: 1.5;
}

/* Quick Services Cards */
.hero-quick-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.quick-service-card {
  background: var(--theme-card-bg);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--theme-text);
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.quick-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  color: var(--theme-primary);
}

.quick-service-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.quick-service-text h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Hero Illustration */
.hero-illustration {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.3);
}

.illustration-placeholder i {
  font-size: 5rem;
  opacity: 0.5;
  margin-bottom: 15px;
}

.illustration-placeholder p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.7;
}

/* ============================================================
   BRANDS SECTION
   ============================================================ */
.brands-section {
  background-color: var(--theme-bg);
  padding: 40px 0;
  text-align: center;
}

.brands-section h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--theme-text);
  font-weight: 600;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.brand-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.brand-logo:hover {
  filter: grayscale(0%);
}

.brand-logo img {
  max-height: 60px;
  max-width: 120px;
  object-fit: contain;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--theme-card-bg);
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transform: translateY(-5px);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--theme-text);
  font-weight: 600;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-card a {
  color: var(--theme-link);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-card a:hover {
  color: var(--theme-link-hover);
}

/* ============================================================
   BENEFITS SECTION
   ============================================================ */
.benefits-section {
  background-color: var(--theme-bg);
  padding: 80px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.benefit-item {
  text-align: center;
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.benefit-item h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--theme-text);
  font-weight: 600;
}

.benefit-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   DEVICES SECTION
   ============================================================ */
.devices-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 50px;
  color: var(--theme-text);
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.device-card {
  background: var(--theme-card-bg);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  transition: var(--transition);
  text-decoration: none;
  color: var(--theme-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.device-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  color: var(--theme-primary);
}

.device-card img {
  max-height: 100px;
  margin-bottom: 10px;
  object-fit: contain;
}

.device-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  background-color: var(--theme-bg);
  padding: 80px 0;
}

.faq-container {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--theme-card-bg);
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--theme-text);
  transition: background-color 0.3s ease;
  background-color: white;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  background-color: #f5f5f5;
}

.faq-answer {
  padding: 0 20px 20px 20px;
  display: none;
  color: var(--text-muted);
  line-height: 1.6;
  animation: slideDown 0.3s ease;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  color: var(--theme-primary);
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
  padding: 80px 0;
}

.rating-badge {
  color: #ffc107;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.testimonial-card {
  background: var(--theme-card-bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.testimonial-author {
  font-weight: 600;
  color: var(--theme-text);
  margin-bottom: 5px;
}

.testimonial-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--theme-primary);
  color: var(--theme-btn-text);
  border: none;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--theme-btn-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(var(--theme-primary-rgb), 0.4);
  color: var(--theme-btn-hover-text);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--theme-bg);
  border: 2px solid var(--border-light);
  color: var(--theme-text);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--theme-btn-hover-bg);
  border-color: var(--theme-btn-hover-bg);
  color: var(--theme-btn-hover-text);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--theme-primary);
  border: 2px solid var(--theme-primary);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
}

.btn-outline-primary:hover {
  background: var(--theme-btn-hover-bg);
  color: var(--theme-btn-hover-text);
  transform: translateY(-2px);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-control {
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--theme-primary-rgb), 0.15);
  color: var(--theme-text);
}

.form-group label {
  font-weight: 600;
  color: var(--theme-text);
  margin-bottom: 8px;
  font-size: 14px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--theme-card-bg);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 10px 30px rgba(var(--theme-primary-rgb), 0.15);
  transform: translateY(-5px);
}

.card-header {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 10px 10px 0 0 !important;
  font-weight: 600;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 15px;
  margin-bottom: 20px;
}

.alert-success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-danger  { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border-color: #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border-color: #ffeeba; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}

.badge-primary { background: var(--theme-primary); color: var(--theme-btn-text); }
.badge-success { background: var(--theme-success); color: var(--theme-btn-text); }
.badge-danger  { background: #dc3545; color: white; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-custom {
  background: var(--gradient-primary);
  color: white;
  padding: 50px 0 20px;
  margin-top: auto;
}

.footer-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.footer-section {
  margin-bottom: 30px;
}

.footer-link {
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none;
  display: block;
  padding: 5px 0;
  font-size: 14px;
  transition: var(--transition);
}

.footer-link:hover {
  color: white !important;
  padding-left: 5px;
}

.footer-link i {
  font-size: 10px;
  margin-right: 8px;
}

.footer-divider {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 20px 0;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   SERVICE PAGE SPECIFIC
   ============================================================ */
.service-header {
  background: var(--gradient-primary);
  color: white;
  padding: 50px 20px;
  margin: 0 -9999px;
  padding-left: calc(9999px + 20px);
  padding-right: calc(9999px + 20px);
}

.service-hero {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-image-container {
  flex: 1;
  min-height: 300px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-info {
  flex: 1;
}

.service-info h2 {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 700;
}

.service-price {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
}

.service-description {
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.95;
}

.service-info-items {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.info-badge {
  background: rgba(255,255,255,0.2);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-cta {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.service-cta .btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-order {
  background: white;
  color: var(--theme-primary);
}

.btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-consult {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid white !important;
}

.btn-consult:hover {
  background: white;
  color: var(--theme-primary);
}

/* ============================================================
   RELATED SERVICES / PRODUCTS
   ============================================================ */
.related-section {
  margin: 50px 0;
  padding: 40px 0;
  border-top: 2px solid #f0f0f0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.related-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: var(--theme-text);
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 10px 30px rgba(var(--theme-primary-rgb), 0.15);
  transform: translateY(-5px);
  color: var(--theme-text);
  text-decoration: none;
}

.related-card-image {
  width: 100%;
  height: 140px;
  background: var(--theme-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.related-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 8px;
}

.related-card-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-card-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}

.related-card-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.related-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.related-card-footer a {
  font-size: 12px;
  color: var(--theme-primary);
  font-weight: 600;
  text-decoration: none;
}

.related-card-footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   INQUIRY FORM SECTION
   ============================================================ */
.inquiry-section {
  background: linear-gradient(135deg, var(--theme-bg) 0%, #fffbf0 100%);
  padding: 50px;
  border-radius: 12px;
  margin: 50px 0;
}

.inquiry-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--theme-text);
}

.inquiry-subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 30px;
}

.inquiry-form .form-group {
  margin-bottom: 20px;
}

.inquiry-form label {
  font-weight: 600;
  font-size: 14px;
  color: var(--theme-text);
  margin-bottom: 8px;
  display: block;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--theme-primary);
  background-color: #f8f9ff;
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.submit-btn {
  background: var(--gradient-primary);
  color: white;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(var(--theme-primary-rgb), 0.4);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary { color: var(--theme-primary) !important; }
.text-secondary { color: var(--theme-secondary) !important; }
.bg-light-primary { background: rgba(var(--theme-primary-rgb), 0.1); }
.bg-light-secondary { background: rgba(118, 75, 162, 0.1); }
.border-primary { border: 2px solid var(--theme-primary) !important; }
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-bg { background: var(--gradient-primary); }
.shadow-sm-primary { box-shadow: 0 2px 10px rgba(var(--theme-primary-rgb), 0.2); }
.shadow-md-primary { box-shadow: 0 5px 25px rgba(var(--theme-primary-rgb), 0.3); }
.transition-smooth { transition: var(--transition); }

.container { max-width: 1200px; }

/* Smooth animations */
.fade-in { animation: fadeIn 0.5s ease-in; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.shadow-sm { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.shadow-md { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease-out; }
.animate-fade-in-down { animation: fadeInDown 0.6s ease-out; }
.animate-slide-in { animation: slideIn 0.6s ease-out; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--theme-bg); }
::-webkit-scrollbar-thumb { background: var(--theme-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--theme-secondary); }

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1200px) {
  .section-title { font-size: 2.2rem; }
  .hero-title { font-size: 2.5rem; }
}

@media (max-width: 992px) {
  .hero-section { padding: 60px 0 40px; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-brands { margin-bottom: 25px; }
  .search-box-wrapper { flex-direction: column; border-radius: 8px; }
  .search-input { border-radius: 8px 8px 0 0; }
  .search-autocomplete { border-radius: 0 0 8px 8px; }
  .search-btn { border-radius: 0 0 8px 8px; justify-content: center; }
  .hero-quick-services { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .quick-service-card { padding: 15px; }
  .quick-service-icon { width: 50px; height: 50px; font-size: 1.2rem; }
  .quick-service-text h5 { font-size: 0.85rem; }
  .hero-illustration { height: 300px; }
  .navbar-custom .nav-link { margin: 10px 0; }
  .navbar-custom .nav-link::after { display: none; }

  .service-hero { flex-direction: column; }
  .service-cta { flex-direction: column; }
}

@media (max-width: 768px) {
  .hero-section { padding: 50px 0 30px; text-align: center; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-brands { justify-content: center; margin-bottom: 20px; }
  .search-box-wrapper { flex-direction: column; }
  .search-input { border-radius: 8px 8px 0 0; width: 100%; }
  .search-autocomplete { border-radius: 0; max-height: 300px; }
  .search-btn { border-radius: 0 0 8px 8px; }
  .hero-quick-services { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
  .quick-service-card { flex-direction: column; text-align: center; padding: 15px 10px; }
  .quick-service-text h5 { font-size: 0.8rem; }
  .hero-illustration { height: 250px; }
  .section-title { font-size: 1.8rem; margin-bottom: 30px; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .benefits-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; }
  .devices-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; }
  .brands-grid { gap: 20px; }
  .services-section, .benefits-section, .devices-section, .faq-section, .testimonials-section { padding: 50px 0; }
  .grid-3-cols { grid-template-columns: repeat(2, 1fr); }
  .grid-2-cols { grid-template-columns: 1fr; }
  .grid-standard { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .section-title { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .service-header { padding: 30px 15px; }
  .inquiry-section { padding: 30px; }
  .related-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.4rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .search-input { padding: 12px 15px; font-size: 0.9rem; }
  .search-btn { padding: 12px 20px; font-size: 0.85rem; }
  .hero-brands { gap: 15px; }
  .hero-brand-logo { height: 40px; width: 40px; }
  .hero-brand-logo img { max-height: 30px; max-width: 30px; }
  .search-autocomplete { max-height: 250px; }
  .autocomplete-item { padding: 10px; }
  .autocomplete-title { font-size: 0.85rem; }
  .autocomplete-slug { font-size: 0.7rem; }
  .hero-quick-services { grid-template-columns: 1fr; gap: 8px; }
  .quick-service-card { padding: 12px 10px; }
  .quick-service-icon { width: 45px; height: 45px; font-size: 1rem; }
  .quick-service-text h5 { font-size: 0.75rem; }
  .search-help { font-size: 0.8rem; }
  .hero-illustration { height: 200px; }
  .illustration-placeholder i { font-size: 3rem; }
  .section-title { font-size: 1.4rem; margin-bottom: 25px; }
  .service-card { padding: 25px 15px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 20px; }
  .benefits-section h2 { font-size: 1.8rem; }
  .devices-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .device-card { padding: 10px; }
  .brand-logo { height: 50px; }
  .brand-logo img { max-height: 50px; max-width: 100px; }
  .faq-question { padding: 15px; font-size: 0.95rem; }
  .faq-answer { padding: 0 15px 15px; }
}

/* =============================================
   DEVICE PAGE
   ============================================= */
.device-page-header {
  background: var(--gradient-primary);
  color: white;
  padding: 40px 0;
  margin-top: -80px;
  padding-top: 100px;
  margin-bottom: 0;
}

.device-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.device-header-left { flex: 1; }

.device-header-image-container {
  background: white;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.device-header-image-container img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
}

.device-header-right { flex: 1; }

.device-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.device-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.95;
}

.device-header-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.device-header-buttons .btn {
  padding: 12px 25px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
}

.device-header-buttons .btn-primary {
  background: white;
  color: var(--theme-primary);
}

.device-header-buttons .btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.device-header-buttons .btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid white;
}

.device-header-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.device-brand-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 8px;
}

.device-brand-logo {
  height: 50px;
  width: 50px;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-brand-logo img { max-height: 40px; object-fit: contain; }
.device-brand-name { font-weight: bold; font-size: 18px; }

/* Device Filter Section */
.filter-section-wrapper {
  background: white;
  padding: 40px 0;
  box-shadow: 0 -3px 15px rgba(0,0,0,0.05);
  margin-bottom: 50px;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: flex-end;
}

.filter-group { display: flex; flex-direction: column; }

.filter-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--theme-text);
  margin-bottom: 10px;
}

.filter-group select {
  padding: 12px 15px;
  border: 2px solid var(--border-light, #e0e0e0);
  border-radius: 8px;
  font-size: 14px;
  color: var(--theme-text);
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 35px;
}

.filter-group select:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.1);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.15);
}

.filter-button-wrapper { display: flex; gap: 10px; }

.filter-button-wrapper .btn {
  flex: 1;
  padding: 12px 25px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}

.filter-button-wrapper .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(var(--theme-primary-rgb), 0.4);
}

.filter-button-wrapper .btn-reset {
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
  color: var(--theme-text);
}

/* Device Service Cards */
.service-card-header {
  background: var(--gradient-primary);
  color: var(--theme-btn-text);
  padding: 25px 20px;
  text-align: center;
}

.service-card-icon { font-size: 40px; margin-bottom: 10px; display: block; }
.service-card-title { font-size: 18px; font-weight: bold; margin-bottom: 0; }
.service-card-body { padding: 20px; }
.service-card-description { color: var(--text-muted, #666); font-size: 14px; line-height: 1.5; margin-bottom: 15px; min-height: 50px; }
.service-card-info { background: var(--theme-bg); border-radius: 8px; padding: 12px; margin-bottom: 15px; font-size: 13px; }
.service-card-info-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--text-muted, #666); }
.service-card-info-row:last-child { margin-bottom: 0; }
.service-card-info-label { font-weight: 600; color: var(--theme-text); }
.service-card-info-value { color: var(--theme-primary); font-weight: bold; }
.service-card-footer { display: flex; gap: 10px; }
.service-card-footer .btn { flex: 1; padding: 10px 15px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; transition: all 0.3s; font-size: 14px; text-decoration: none; display: inline-block; text-align: center; }
.service-card-footer .btn-primary { background: var(--gradient-primary); color: var(--theme-btn-text); }
.service-card-footer .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(var(--theme-primary-rgb), 0.4); }

.no-services { background: var(--theme-card-bg); border-radius: 10px; padding: 50px 20px; text-align: center; color: #999; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.no-services i { font-size: 48px; color: #ddd; margin-bottom: 20px; display: block; }

.device-info-section { background: var(--theme-card-bg); border-radius: 10px; padding: 30px; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.device-info-section h3 { color: var(--theme-text); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--theme-primary); }
.device-info-section p { color: var(--text-muted, #666); line-height: 1.8; margin-bottom: 0; }

/* Device Page Responsive */
@media (max-width: 991px) {
  .device-header-content { flex-direction: column; gap: 20px; }
  .device-header-left, .device-header-right { flex: 1 0 100%; }
  .device-header-image-container { min-height: 300px; }
  .filter-form { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .device-page-header { padding: 30px 0; padding-top: 80px; }
  .device-title { font-size: 24px; }
  .device-description { font-size: 14px; }
  .device-header-buttons { flex-direction: column; }
  .device-header-buttons .btn { width: 100%; }
  .filter-form { grid-template-columns: 1fr; }
  .filter-button-wrapper { flex-direction: column; }
}

/* =============================================
   SERVICE ORDER PAGE
   ============================================= */
.service-page-header {
  background: var(--gradient-primary);
  color: white;
  padding: 40px 0;
  margin-top: -80px;
  padding-top: 100px;
}

.device-showcase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.device-showcase-left { flex: 1; text-align: center; }

.device-brand-logo { margin-bottom: 20px; }
.device-brand-logo img { height: 60px; object-fit: contain; margin-bottom: 15px; }

.device-image-container {
  background: white;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.device-image-container img { max-width: 100%; max-height: 350px; object-fit: contain; }
.device-showcase-right { flex: 1; }

.service-form-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 100px;
}

.service-form-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--theme-text);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--theme-primary);
}

.form-group-service { margin-bottom: 15px; }
.form-group-service label { display: block; font-weight: 600; color: var(--theme-text); margin-bottom: 8px; font-size: 14px; }

.form-group-service input,
.form-group-service select,
.form-group-service textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group-service input:focus,
.form-group-service select:focus,
.form-group-service textarea:focus {
  outline: none;
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.1);
}

.service-form-btn {
  width: 100%;
  padding: 12px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
  margin-top: 10px;
}

.service-form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(var(--theme-primary-rgb), 0.3);
}

.service-description {
  background: white;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.service-description h2 { color: var(--theme-text); margin-bottom: 15px; font-size: 28px; }
.service-description p { color: var(--text-muted, #666); font-size: 16px; line-height: 1.6; margin-bottom: 15px; }

.service-highlight { display: flex; gap: 20px; margin-top: 25px; flex-wrap: wrap; }

.highlight-item {
  flex: 1;
  min-width: 200px;
  background: var(--gradient-primary);
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.highlight-item-value { font-size: 28px; font-weight: bold; margin-bottom: 5px; }
.highlight-item-label { font-size: 14px; opacity: 0.9; }

.services-available-section {
  background: white;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.services-available-section h3 {
  font-size: 22px;
  color: var(--theme-text);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--theme-primary);
}

.services-grid-item {
  background: var(--theme-bg);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.services-grid-item:hover {
  background: white;
  border-color: var(--theme-primary);
  box-shadow: 0 5px 15px rgba(var(--theme-primary-rgb), 0.2);
}

.services-grid-item i { font-size: 40px; color: var(--theme-primary); margin-bottom: 15px; }
.services-grid-item h5 { color: var(--theme-text); margin-bottom: 10px; font-weight: 600; }
.services-grid-item p { color: var(--text-muted, #666); font-size: 14px; margin-bottom: 0; }

.info-sections {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.accordion-button {
  background-color: var(--theme-bg);
  border: none;
  padding: 20px;
  text-align: left;
  color: var(--theme-text);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-button:hover { background-color: #f0f2f5; }

.accordion-button.active {
  background: var(--gradient-primary);
  color: white;
}

.accordion-content { display: none; padding: 20px; border-bottom: 1px solid #eee; color: var(--text-muted, #666); line-height: 1.8; }
.accordion-content.show { display: block; }
.accordion-icon { font-size: 12px; transition: transform 0.3s; }
.accordion-button.active .accordion-icon { transform: rotate(180deg); }

.device-versions { background: var(--theme-bg); border-radius: 8px; padding: 15px; margin: 10px 0; }
.device-versions strong { color: var(--theme-primary); }

.comparison-table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.comparison-table th { background: var(--theme-bg); padding: 12px; text-align: left; border: 1px solid #ddd; font-weight: 600; color: var(--theme-text); }
.comparison-table td { padding: 12px; border: 1px solid #ddd; color: var(--text-muted, #666); }
.comparison-table tr:nth-child(even) { background: var(--theme-bg); }

/* Service Order Page Responsive */
@media (max-width: 991px) {
  .device-showcase { flex-direction: column; gap: 20px; }
  .service-form-card { position: relative; top: 0; }
  .device-image-container { min-height: 300px; }
  .highlight-item { flex: 0 0 48%; }
}

@media (max-width: 576px) {
  .service-page-header { padding: 30px 0; padding-top: 80px; }
  .device-showcase-left, .device-showcase-right { flex: 1 0 100%; }
  .highlight-item { flex: 1 0 100%; }
  .services-grid { grid-template-columns: 1fr !important; }
  .accordion-button { padding: 15px; }
  .accordion-content { padding: 15px; }
}

/* =============================================
   ORDER CONFIRMATION PAGE
   ============================================= */
.confirmation-page-header {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 40px 0;
  margin-top: -80px;
  padding-top: 100px;
}

.order-steps { display: flex; justify-content: center; gap: 0; margin: 30px 0; }

.order-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  font-size: 14px;
}

.order-step:first-child { border-radius: 30px 0 0 30px; }
.order-step:last-child { border-radius: 0 30px 30px 0; }
.order-step.completed { background: rgba(255,255,255,0.25); color: white; }

.order-step .step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.confirmation-container { max-width: 700px; margin: -40px auto 40px; padding: 0 15px; }

.confirmation-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
}

.confirmation-icon { padding: 40px 0 20px; }
.confirmation-icon i { font-size: 80px; color: var(--theme-success); }
.confirmation-body { padding: 0 40px 30px; }
.confirmation-body h2 { color: var(--theme-text); margin-bottom: 10px; }
.confirmation-body p { color: var(--text-muted, #666); font-size: 16px; line-height: 1.6; }

.order-ref-box { background: var(--theme-bg); border-radius: 10px; padding: 20px; margin: 25px 0; }
.order-ref-label { font-size: 12px; text-transform: uppercase; color: #999; letter-spacing: 1px; margin-bottom: 8px; }
.order-ref-value { font-family: monospace; font-size: 18px; color: var(--theme-primary); font-weight: bold; word-break: break-all; }

.confirmation-details { text-align: left; margin: 25px 0; border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.confirmation-detail-row { display: flex; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.confirmation-detail-row:last-child { border-bottom: none; }
.confirmation-detail-row:nth-child(even) { background: #fafafa; }
.confirmation-detail-label { color: var(--text-muted, #666); font-weight: 600; }
.confirmation-detail-value { color: var(--theme-text); font-weight: 500; text-align: right; }

.confirmation-actions {
  padding: 25px 40px;
  background: var(--theme-bg);
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.confirmation-actions .btn {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 14px;
}

.confirmation-actions .btn-home {
  background: var(--gradient-primary);
  color: white;
}

.confirmation-actions .btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--theme-primary-rgb), 0.4);
}

.confirmation-actions .btn-track {
  background: white;
  color: var(--theme-primary);
  border: 2px solid var(--theme-primary);
}

.confirmation-actions .btn-track:hover {
  background: var(--theme-primary);
  color: white;
}

.confirmation-note {
  margin-top: 20px;
  padding: 15px 20px;
  background: #fff3cd;
  border-radius: 8px;
  font-size: 13px;
  color: #856404;
  text-align: left;
}

@media (max-width: 768px) {
  .order-steps { flex-direction: column; align-items: center; gap: 5px; }
  .order-step { border-radius: 8px !important; width: 100%; max-width: 300px; justify-content: center; }
  .confirmation-body { padding: 0 20px 20px; }
  .confirmation-actions { padding: 20px; flex-direction: column; }
  .confirmation-actions .btn { width: 100%; text-align: center; }
}

/* =============================================
   CHECKOUT PAGE
   ============================================= */
.checkout-page-header {
  background: var(--gradient-primary);
  color: white;
  padding: 40px 0;
  margin-top: -80px;
  padding-top: 100px;
}

.checkout-container { max-width: 1000px; margin: -40px auto 40px; padding: 0 15px; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 25px;
  align-items: flex-start;
}

.checkout-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  overflow: hidden;
}

.checkout-card-header {
  background: var(--theme-bg);
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 15px;
}

.checkout-card-header i { font-size: 20px; color: var(--theme-primary); }
.checkout-card-header h4 { margin: 0; font-size: 18px; color: var(--theme-text); }
.checkout-card-body { padding: 25px; }

/* Payment Methods */
.payment-methods { display: flex; flex-direction: column; gap: 12px; }

.payment-method-item {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 15px;
}

.payment-method-item:hover {
  border-color: var(--theme-primary);
  background: #f8f9ff;
}

.payment-method-item.selected {
  border-color: var(--method-color, var(--theme-primary));
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.03) 0%, rgba(var(--theme-primary-rgb), 0.05) 100%);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.1);
}

.payment-method-radio {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.payment-method-item.selected .payment-method-radio { border-color: var(--method-color, var(--theme-primary)); }

.payment-method-item.selected .payment-method-radio::after {
  content: '';
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--method-color, var(--theme-primary));
}

.payment-method-icon {
  width: 50px; height: 50px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.payment-method-info { flex: 1; }
.payment-method-name { font-weight: 700; color: var(--theme-text); font-size: 15px; margin-bottom: 3px; }
.payment-method-desc { font-size: 12px; color: #888; }
.payment-method-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; display: inline-block; }

/* Payment Details Panel */
.payment-details-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; opacity: 0; margin-top: 0; }
.payment-details-panel.show { max-height: 800px; opacity: 1; margin-top: 10px; }
.payment-details-inner { border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; background: #fafbfc; }

.qr-section { text-align: center; padding: 25px; background: white; border-bottom: 1px solid #eee; }
.qr-section img { max-width: 220px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 4px solid white; }
.qr-section .qr-label { margin-top: 12px; font-size: 13px; color: var(--text-muted, #666); font-weight: 600; }

.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid #f0f0f0; }
.detail-row:last-child { border-bottom: none; }
.detail-row-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted, #666); font-weight: 500; }
.detail-row-label i { width: 16px; text-align: center; color: #999; }
.detail-row-value { font-weight: 600; color: var(--theme-text); font-size: 14px; display: flex; align-items: center; gap: 8px; max-width: 60%; text-align: right; word-break: break-all; }
.detail-row-value.monospace { font-family: 'Courier New', monospace; font-size: 12px; background: var(--theme-bg); padding: 4px 8px; border-radius: 4px; }

.network-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

.btn-copy { background: none; border: 1px solid #ddd; border-radius: 6px; padding: 4px 8px; cursor: pointer; color: var(--theme-primary); font-size: 12px; transition: all 0.2s; flex-shrink: 0; }
.btn-copy:hover { background: var(--theme-primary); color: white; border-color: var(--theme-primary); }
.btn-copy.copied { background: #28a745; color: white; border-color: #28a745; }

.payment-instructions { padding: 15px 20px; background: #fff8e1; border-top: 1px solid #ffe082; font-size: 13px; color: #6d4c00; line-height: 1.6; }
.payment-instructions-title { font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }

.order-summary-sidebar { position: sticky; top: 20px; }

.order-uuid { text-align: center; padding: 15px; background: rgba(var(--theme-primary-rgb), 0.05); border-radius: 8px; margin-bottom: 20px; }
.order-uuid-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--theme-primary); font-weight: 700; }
.order-uuid-value { font-family: monospace; font-size: 12px; color: var(--theme-text); margin-top: 5px; word-break: break-all; }

.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding: 15px 0 0; margin-top: 10px; border-top: 2px solid var(--theme-text); font-size: 16px; font-weight: bold; }
.total-price { color: var(--theme-success); font-size: 22px; }

.btn-confirm-payment {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white; border: none; border-radius: 8px;
  font-weight: bold; cursor: pointer; font-size: 16px;
  transition: all 0.3s; margin-top: 15px;
}

.btn-confirm-payment:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4); }
.btn-confirm-payment:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

.no-methods { text-align: center; padding: 30px; color: #999; }
.no-methods i { font-size: 40px; color: #ddd; margin-bottom: 15px; display: block; }

.checkout-footer { padding: 20px 25px; background: var(--theme-bg); border-top: 1px solid #eee; }

.order-step.active .step-number { background: white; color: var(--theme-primary); }
.order-step.completed .step-number { background: #28a745; color: white; }

@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary-sidebar { position: relative; top: 0; }
  .detail-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .detail-row-value { max-width: 100%; text-align: left; }
}

/* =============================================
   ORDER STATUS PAGE
   ============================================= */
.status-header {
  background: var(--gradient-primary);
  color: white;
  padding: 40px 0;
  margin-top: -80px;
  padding-top: 100px;
  text-align: center;
}

.status-container { max-width: 700px; margin: -30px auto 40px; padding: 0 15px; }

.status-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  overflow: hidden;
}

.status-card-header {
  padding: 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-uuid {
  font-family: monospace;
  font-size: 13px;
  color: var(--theme-primary);
  background: rgba(var(--theme-primary-rgb), 0.05);
  padding: 5px 12px;
  border-radius: 20px;
}

.status-badge { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.in_process { background: #cce5ff; color: #004085; }
.status-badge.completed { background: #d4edda; color: #155724; }
.status-badge.failed { background: #f8d7da; color: #721c24; }

.status-timeline { padding: 30px 25px; }

.timeline-step {
  display: flex;
  gap: 20px;
  padding-bottom: 30px;
  position: relative;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-step::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 35px;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}

.timeline-step:last-child::before { display: none; }
.timeline-step.active::before { background: var(--theme-primary); }

.timeline-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  font-size: 14px;
  color: white;
}

.timeline-step.active .timeline-dot { background: var(--theme-primary); }
.timeline-step.completed .timeline-dot { background: #28a745; }

.timeline-info h5 { margin: 0; font-size: 16px; color: var(--theme-text); }
.timeline-info p { margin: 4px 0 0; font-size: 13px; color: #999; }

.status-details { padding: 0 25px 25px; }
.status-detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.status-detail-row:last-child { border-bottom: none; }
.status-detail-label { color: var(--text-muted, #666); font-weight: 600; }
.status-detail-value { color: var(--theme-text); text-align: right; font-weight: 500; }

.status-actions {
  padding: 20px 25px;
  background: var(--theme-bg);
  border-top: 1px solid #eee;
  text-align: center;
}

.status-actions a {
  padding: 10px 25px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  transition: all 0.3s;
}

.status-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--theme-primary-rgb), 0.4);
}

/* ================================================================
   ORDER CREATE PAGE
   ================================================================ */

.order-page-header {
  background: var(--gradient-primary);
  color: white;
  padding: 40px 0 30px;
  margin-bottom: 30px;
}

.order-page-header h1 {
  font-family: var(--theme-font-headings);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
}

.order-page-header p {
  font-size: 16px;
  opacity: 0.9;
}

.order-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 25px;
}

.order-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.order-step.active {
  color: white;
  font-weight: 600;
}

.order-step .step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: rgba(255,255,255,0.2);
}

.order-step.active .step-number {
  background: white;
  color: var(--theme-primary);
}

.order-container {
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: start;
}

.order-summary-card,
.order-form-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  overflow: hidden;
}

.order-summary-header,
.order-form-header {
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-summary-header i,
.order-form-header i {
  font-size: 20px;
  color: var(--theme-primary);
}

.order-summary-header h4,
.order-form-header h4 {
  font-family: var(--theme-font-subtitles);
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.order-summary-body {
  padding: 20px 25px;
}

.order-detail-grid {
  display: grid;
  gap: 15px;
}

.order-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.order-detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-detail-label {
  font-size: 13px;
  color: #888;
}

.order-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--theme-text);
}

.order-detail-value.price {
  font-size: 20px;
  color: var(--theme-primary);
  font-weight: 700;
}

.order-form-body {
  padding: 25px;
}

.order-form-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group-order {
  margin-bottom: 0;
}

.form-group-order label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.form-group-order label .required {
  color: #e74c3c;
}

.form-group-order input,
.form-group-order select,
.form-group-order textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
  background: #fafafa;
}

.form-group-order input:focus,
.form-group-order select:focus,
.form-group-order textarea:focus {
  border-color: var(--theme-primary);
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.1);
}

.form-group-order .input-hint {
  font-size: 11px;
  color: #aaa;
  margin-top: 5px;
  display: block;
}

.imei-status {
  font-size: 12px;
  margin-top: 5px;
  font-weight: 600;
}

.imei-status.valid {
  color: #27ae60;
}

.imei-status.invalid {
  color: #e74c3c;
}

.order-form-footer {
  padding: 20px 25px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-back {
  color: #888;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.btn-back:hover {
  color: var(--theme-primary);
  text-decoration: none;
}

.btn-continue {
  padding: 12px 30px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(var(--theme-primary-rgb), 0.4);
}

@media (max-width: 768px) {
  .order-container {
    grid-template-columns: 1fr;
  }
  .order-steps {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .order-form-body .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ================================================================
   STATUS FORM PAGE (Order Status Search)
   ================================================================ */

.search-header {
  background: var(--gradient-primary);
  color: white;
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.search-header h1 {
  font-family: var(--theme-font-headings);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.search-header p {
  font-size: 16px;
  opacity: 0.9;
}

.search-container {
  max-width: 600px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.search-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.search-title {
  font-family: var(--theme-font-subtitles);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--theme-text);
}

.search-subtitle {
  color: #888;
  font-size: 14px;
  margin-bottom: 25px;
}

.search-info {
  background: #f0f4ff;
  border-left: 4px solid var(--theme-primary);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 25px;
  font-size: 13px;
  color: #555;
}

.search-info strong {
  color: var(--theme-primary);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
  background: #fafafa;
}

.form-input:focus {
  border-color: var(--theme-primary);
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.1);
}

.form-hint {
  font-size: 11px;
  color: #aaa;
  margin-top: 5px;
}

.divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e8e8e8;
}

.divider-text {
  background: white;
  padding: 0 15px;
  color: #ccc;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.btn-search {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 30px;
  transition: all 0.3s;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(var(--theme-primary-rgb), 0.4);
}

/* ================================================================
   PLACE ORDER MODAL (Device Selection)
   ================================================================ */

.devices-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.device-selection-card {
  cursor: pointer;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.device-selection-card:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 5px 15px rgba(var(--theme-primary-rgb), 0.2);
  transform: translateY(-2px);
}

.device-selection-card.selected {
  border-color: var(--theme-primary);
  background: #f8f9ff;
  box-shadow: 0 5px 15px rgba(var(--theme-primary-rgb), 0.2);
}

.device-selection-image {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-bg);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.device-selection-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.device-selection-info {
  margin: 10px 0;
}

.device-brand {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.device-model {
  font-size: 13px;
  color: var(--theme-text);
  font-weight: 600;
  margin-top: 5px;
}

.device-selection-check {
  position: absolute;
  top: 5px;
  right: 5px;
  color: var(--theme-primary);
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.device-selection-card.selected .device-selection-check {
  opacity: 1;
}

@media (max-width: 768px) {
  .devices-selection-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
