/* ==========================================================================
   CHIANGMAI CDR - TESLA DARK MINIMAL THEME
   Symmetric Centered Layout + Contained Cinema 16:9 Video + Sharp Geometric Corners
   ========================================================================== */

:root {
  --color-bg-tesla: #070709;
  --color-bg-card: rgba(16, 18, 24, 0.75);
  --color-bg-card-hover: rgba(24, 27, 36, 0.9);
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.25);
  
  --text-pure-white: #ffffff;
  --text-tesla-muted: #9aa0a6;
  --text-tesla-dim: #5f6368;
  
  --radius-sharp: 4px;
  --radius-apple-pill: 980px;
  --radius-card: 12px;
  --transition-tesla: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.tesla-theme {
  background-color: var(--color-bg-tesla) !important;
  color: var(--text-pure-white) !important;
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: -0.01em;
  position: relative;
  overflow-x: hidden;
}

/* ==========================================================================
   1. HEADER - Frosted Minimalist Nav
   ========================================================================== */
.tesla-theme header {
  background: rgba(7, 7, 9, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid var(--color-border-subtle) !important;
  padding: 12px 0 !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.tesla-theme .logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.tesla-theme .logo img,
.tesla-theme .logo-image,
.tesla-theme .logo-img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
  transition: var(--transition-tesla) !important;
}

.tesla-theme .logo-title {
  letter-spacing: 2px !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  color: #ffffff !important;
}

.tesla-theme .logo-subtitle {
  color: var(--text-tesla-muted) !important;
  letter-spacing: 1px !important;
  font-size: 0.75rem !important;
}

.tesla-theme nav a {
  position: relative !important;
  color: #94a3b8 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  transition: color 0.22s ease !important;
  text-decoration: none !important;
}

.tesla-theme nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  opacity: 0;
}

.tesla-theme nav a:hover {
  background: transparent !important;
  color: #ffffff !important;
}

.tesla-theme nav a:hover::after {
  transform: scaleX(1);
  opacity: 0.75;
}

.tesla-theme nav a.active {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
}

.tesla-theme nav a.active::after {
  transform: scaleX(1);
  opacity: 1;
  background: #ffffff;
}

/* ==========================================================================
   2. HERO SECTION - SYMMETRIC CENTERED + CONTAINED CINEMA VIDEO
   ========================================================================== */
.tesla-hero-centered {
  position: relative;
  padding: 120px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(20, 24, 34, 0.6) 0%, var(--color-bg-tesla) 70%);
  overflow: hidden;
  z-index: 1;
}

.tesla-hero-content {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tesla-badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-apple-pill);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-tesla-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tesla-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
  text-transform: uppercase;
  margin-bottom: 12px !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
}

.tesla-hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.tesla-hero-desc {
  font-size: 0.95rem;
  color: var(--text-tesla-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Quick Menu Dropdown - Apple/Tesla Glass Style */
.tesla-quick-menu-container {
  position: relative;
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 30px;
  z-index: 40;
}

.btn-tesla-quick-menu {
  min-height: 48px;
  padding: 12px 28px;
  font-size: 0.925rem;
  font-weight: 600;
  background: #ffffff;
  color: #06080a;
  border-radius: var(--radius-apple-pill, 980px);
  border: 1px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  user-select: none;
}

.btn-tesla-quick-menu:hover,
.tesla-quick-menu-container.active .btn-tesla-quick-menu {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

.quick-menu-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tesla-quick-menu-container:hover .quick-menu-chevron,
.tesla-quick-menu-container.active .quick-menu-chevron {
  transform: rotate(180deg);
}

/* Dropdown Card */
.tesla-quick-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 320px;
  max-width: calc(100vw - 32px);
  background: rgba(14, 17, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  text-align: left;
}

/* Hover bridge so moving cursor down to dropdown doesn't lose hover */
.tesla-quick-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .tesla-quick-menu-container:hover .tesla-quick-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.tesla-quick-menu-container.active .tesla-quick-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Menu Item */
.quick-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #f1f5f9;
  transition: all 0.18s ease;
}

.quick-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.quick-dropdown-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.quick-dropdown-item:hover .quick-dropdown-icon {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
}

.quick-dropdown-text {
  display: flex;
  flex-direction: column;
}

.quick-dropdown-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.quick-dropdown-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.25;
  margin-top: 2px;
}

.quick-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 4px;
}

/* Dual Primary CTA Deck - Apple Pill Style */
.tesla-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn-tesla-primary {
  min-height: 48px !important;
  padding: 12px 30px !important;
  font-size: 0.925rem !important;
  font-weight: 600 !important;
  background: #ffffff !important;
  color: #000000 !important;
  border-radius: var(--radius-apple-pill) !important;
  border: 1px solid #ffffff !important;
  text-decoration: none !important;
  transition: var(--transition-tesla) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
  cursor: pointer !important;
}

.btn-tesla-primary:hover {
  background: #e6e6e6 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.25) !important;
  color: #000000 !important;
}

.btn-tesla-secondary {
  min-height: 48px !important;
  padding: 12px 30px !important;
  font-size: 0.925rem !important;
  font-weight: 500 !important;
  background: rgba(22, 24, 32, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #ffffff !important;
  border-radius: var(--radius-apple-pill) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  text-decoration: none !important;
  transition: var(--transition-tesla) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
  cursor: pointer !important;
}

.btn-tesla-secondary:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

/* Sub-action pill links - Apple Sleek Pill Style */
.tesla-sub-actions {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-bottom: 34px !important;
}

.btn-tesla-pill-link {
  padding: 8px 22px !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  color: #d1d5db !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-apple-pill) !important;
  text-decoration: none !important;
  transition: var(--transition-tesla) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.btn-tesla-pill-link:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Contained Cinema Video Frame (16:9 Contained) */
.tesla-cinema-frame {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-sharp);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.tesla-cinema-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background-color: #000000;
}

.tesla-video-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(7, 7, 9, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-sharp);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

.tesla-video-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
}

/* ==========================================================================
   3. SECTIONS & SYMMETRIC GRID (Balanced 3-Column Layout)
   ========================================================================== */
.tesla-theme .section {
  padding: 80px 0;
  border-top: 1px solid var(--color-border-subtle);
  position: relative;
  z-index: 1;
}

.tesla-theme .section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.02em !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.tesla-theme .section-subtitle {
  text-align: center;
  font-size: 0.95rem !important;
  color: var(--text-tesla-muted) !important;
  max-width: 680px !important;
  margin: 0 auto 36px !important;
  line-height: 1.6 !important;
}

/* Symmetrical 3-Column Cards Grid */
.tesla-theme .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tesla-theme .card {
  background: var(--color-bg-card) !important;
  border: 1px solid var(--color-border-subtle) !important;
  border-radius: var(--radius-card) !important;
  padding: 30px 26px !important;
  transition: var(--transition-tesla) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: none !important;
}

.tesla-theme .card::after {
  display: none !important;
}

.tesla-theme .card:hover {
  background: var(--color-bg-card-hover) !important;
  border-color: var(--color-border-hover) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
}

.tesla-theme .card-title {
  font-size: 1.18rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 10px !important;
  line-height: 1.3 !important;
}

.tesla-theme .card-description {
  font-size: 0.88rem !important;
  color: var(--text-tesla-muted) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* ==========================================================================
   4. REVIEWS & CUSTOMER CAROUSEL (Symmetric & Uniform)
   ========================================================================== */
.tesla-theme .review-card {
  background: var(--color-bg-card) !important;
  border: 1px solid var(--color-border-subtle) !important;
  border-radius: var(--radius-card) !important;
  padding: 24px !important;
  min-width: 320px;
  max-width: 360px;
  flex: 0 0 auto;
  box-shadow: none !important;
}

.tesla-theme .review-card:hover {
  background: var(--color-bg-card-hover) !important;
  border-color: var(--color-border-hover) !important;
  transform: translateY(-2px) !important;
}

.tesla-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sharp);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.82rem;
}

.tesla-theme .carousel-item img {
  border-radius: var(--radius-card) !important;
  border: 1px solid var(--color-border-subtle);
}

/* ==========================================================================
   5. ABOUT & VISIT SHOP BOXES (Centered Symmetrical)
   ========================================================================== */
.tesla-about-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.tesla-cta-box {
  background: linear-gradient(180deg, rgba(16, 18, 24, 0.85) 0%, rgba(10, 11, 15, 0.95) 100%);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  padding: 44px 32px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   6. FOOTER - Minimal Obsidian Symmetrical
   ========================================================================== */
.tesla-theme footer {
  background: #050507 !important;
  border-top: 1px solid var(--color-border-subtle) !important;
  padding: 50px 0 30px !important;
  position: relative;
  z-index: 1;
}

.tesla-theme .footer-section h4 {
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: #ffffff !important;
  margin-bottom: 14px !important;
}

.tesla-theme .footer-section ul li a,
.tesla-theme .footer-section p {
  color: var(--text-tesla-muted) !important;
  font-size: 0.85rem !important;
}

.tesla-theme .footer-section ul li a:hover {
  color: #ffffff !important;
}

.tesla-theme .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding-top: 20px !important;
  margin-top: 36px !important;
  color: var(--text-tesla-dim) !important;
  font-size: 0.78rem !important;
}

/* ==========================================================================
   FEATURED PRODUCTS SHOWCASE (Below Video)
   ========================================================================== */
.tesla-featured-products {
  padding: 70px 0 60px;
  border-top: 1px solid var(--color-border-subtle);
  position: relative;
  z-index: 1;
}

.tesla-product-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tesla-tab-btn {
  padding: 8px 20px !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  border-radius: var(--radius-apple-pill) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--color-border-subtle) !important;
  color: var(--text-tesla-muted) !important;
  cursor: pointer !important;
  transition: var(--transition-tesla) !important;
  font-family: inherit !important;
}

.tesla-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.tesla-tab-btn.active {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  font-weight: 600 !important;
}

/* Product Grid System (Minimalist Tesla Aesthetic) - Zero Distortion & Symmetrical Locked */
.tesla-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.tesla-product-card {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-tesla);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.tesla-product-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.card-clickable-body {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Product Card Media (Apple Store 1:1 Aspect Ratio - Symmetrical Locked) */
.tesla-card-media {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.tesla-card-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-sizing: border-box;
  padding: 10px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tesla-product-card:hover .tesla-card-media img {
  transform: scale(1.05);
}

.tesla-product-brand {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: var(--text-tesla-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  align-self: flex-start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.tesla-product-name {
  font-size: 0.925rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.tesla-product-category {
  font-size: 0.75rem;
  color: var(--text-tesla-dim);
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Symmetrical 50/50 Dual Action Buttons (Zero Emojis - Single Line Fit) */
.tesla-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  width: 100%;
  box-sizing: border-box;
}

.btn-card-buy {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 6px;
  font-size: 0.76rem;
  font-weight: 600;
  background: #ffffff;
  color: #000000 !important;
  border-radius: var(--radius-apple-pill);
  text-align: center;
  text-decoration: none;
  transition: var(--transition-tesla);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.btn-card-buy:hover {
  background: #e6e6e6;
  color: #000000 !important;
}

.btn-card-inquire {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 6px;
  font-size: 0.76rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border-subtle);
  color: #ffffff !important;
  border-radius: var(--radius-apple-pill);
  text-align: center;
  text-decoration: none;
  transition: var(--transition-tesla);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.btn-card-inquire:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
}

/* ==========================================================================
   7. MOBILE-FIRST RESPONSIVENESS (Phones & Tablets)
   ========================================================================== */
@media (max-width: 1100px) {
  .tesla-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tesla-theme .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .tesla-products-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .tesla-hero-centered {
    padding: 95px 16px 40px;
  }

  .tesla-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-tesla-primary,
  .btn-tesla-secondary {
    width: 100%;
    min-height: 50px;
  }

  .tesla-theme .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tesla-cinema-frame {
    margin: 0 -4px;
    border-radius: var(--radius-sharp);
  }

  .tesla-about-box,
  .tesla-cta-box {
    padding: 28px 18px;
  }
}

/* ==========================================================================
   8. UNIFIED TESLA / APPLE MINIMAL EXTENSIONS (All Sub-Pages)
   ========================================================================== */
.tesla-stars {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.tesla-stars svg {
  width: 15px;
  height: 15px;
  fill: #F59E0B;
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.25));
}

.tesla-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #ffffff;
  transition: var(--transition-tesla);
}

.tesla-theme .card:hover .tesla-feature-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.06);
}

.tesla-feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tesla-review-item {
  background: var(--color-bg-card) !important;
  border: 1px solid var(--color-border-subtle) !important;
  border-radius: var(--radius-card) !important;
  padding: 26px !important;
  transition: var(--transition-tesla) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tesla-review-item:hover {
  background: var(--color-bg-card-hover) !important;
  border-color: var(--color-border-hover) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
}

.tesla-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.tesla-review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.tesla-review-author {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.tesla-review-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #d1d5db;
  margin: 0;
}

.tesla-media-frame {
  position: relative;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
  background: #000000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.tesla-media-frame img,
.tesla-media-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tesla-theme .tag-pill {
  display: inline-block !important;
  padding: 5px 16px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--color-border-subtle) !important;
  border-radius: var(--radius-apple-pill) !important;
  font-size: 0.75rem !important;
  letter-spacing: 2px !important;
  color: var(--text-tesla-muted) !important;
  text-transform: uppercase !important;
}

.tesla-theme .faq-item {
  background: var(--color-bg-card) !important;
  border: 1px solid var(--color-border-subtle) !important;
  border-radius: var(--radius-card) !important;
  padding: 22px 26px !important;
  margin-bottom: 14px !important;
  transition: var(--transition-tesla) !important;
}

.tesla-theme .faq-item:hover {
  background: var(--color-bg-card-hover) !important;
  border-color: var(--color-border-hover) !important;
}

.tesla-theme .faq-question {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin-bottom: 8px !important;
}

.tesla-theme .faq-answer {
  font-size: 0.9rem !important;
  color: var(--text-tesla-muted) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 820px) {
  .tesla-theme .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ==========================================================================
   9. OFFICIAL BRAND PARTNERS SHOWCASE (Hairline Architectural Grid)
   ========================================================================== */
.tesla-brand-showcase {
  padding: 72px 0 64px;
  border-top: 1px solid var(--color-border-subtle);
  position: relative;
  z-index: 1;
}

.tesla-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.tesla-brand-item {
  background: #070709;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 98px;
  text-decoration: none;
  transition: background 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.tesla-brand-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.055) 0%, transparent 72%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.tesla-brand-item:hover {
  background: #0d0e12;
}

.tesla-brand-item:hover::after {
  opacity: 1;
}

.tesla-brand-item img {
  max-width: 138px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.94;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  position: relative;
  z-index: 1;
}

.tesla-brand-item:hover img {
  opacity: 1;
  transform: scale(1.06);
  filter: drop-shadow(0 4px 14px rgba(255, 255, 255, 0.16));
}

@media (max-width: 860px) {
  .tesla-brands-grid {
    grid-template-columns: repeat(4, 1fr);
    border-radius: 14px;
  }

  .tesla-brand-item {
    min-height: 82px;
    padding: 18px 16px;
  }

  .tesla-brand-item img {
    max-width: 106px;
    max-height: 32px;
  }
}

@media (max-width: 640px) {
  .tesla-brand-showcase {
    padding: 48px 0 40px;
  }

  .tesla-brands-grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 12px;
  }

  .tesla-brand-item {
    min-height: 76px;
    padding: 16px 18px;
  }

  .tesla-brand-item img {
    max-width: 112px;
    max-height: 32px;
  }
}


/* ==========================================================================
   10. PRODUCT DETAIL MODAL (Tesla Obsidian Glass Dialog)
   ========================================================================== */
.tesla-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tesla-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tesla-modal-dialog {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.tesla-modal-overlay.active .tesla-modal-dialog {
  transform: scale(1) translateY(0);
}

.tesla-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-tesla);
}

.tesla-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.tesla-modal-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  max-height: 90vh;
  overflow: hidden;
}

.tesla-modal-media {
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  position: relative;
}

.tesla-modal-media img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}

.tesla-modal-media:hover img {
  transform: scale(1.04);
}

.tesla-modal-info {
  padding: 32px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tesla-modal-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tesla-modal-cat {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-tesla-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-subtle);
  padding: 3px 10px;
  border-radius: 980px;
}

.tesla-modal-sku {
  font-size: 0.72rem;
  color: #6e7681;
  font-family: monospace;
}

.tesla-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
}

.tesla-modal-warranty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-tesla-muted);
}

.tesla-modal-warranty svg {
  color: #00E5FF;
  flex-shrink: 0;
}

.tesla-modal-section-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9aa0a6;
  margin: 12px 0 6px;
}

.tesla-modal-description {
  font-size: 0.88rem;
  color: #cccccc;
  line-height: 1.7;
  white-space: pre-line;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 8px;
}

.tesla-modal-description::-webkit-scrollbar {
  width: 5px;
}
.tesla-modal-description::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.tesla-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-subtle);
}

.tesla-modal-actions .btn-tesla-primary,
.tesla-modal-actions .btn-tesla-secondary {
  flex: 1 1 auto;
  text-align: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn-card-detail {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-apple-pill, 980px);
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-tesla);
  text-decoration: none;
}

.btn-card-detail:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.tesla-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 18, 21, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 0.85rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 1100;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.tesla-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .tesla-modal-grid {
    grid-template-columns: 1fr;
    max-height: 85vh;
    overflow-y: auto;
  }

  .tesla-modal-media {
    border-right: none;
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 24px;
  }

  .tesla-modal-media img {
    max-height: 220px;
  }

  .tesla-modal-info {
    padding: 20px;
  }

  .tesla-modal-title {
    font-size: 1.15rem;
  }

  .tesla-modal-actions {
    flex-direction: column;
  }
}


/* ==========================================================================
   FLOATING QUICK MENU FAB (Drop-Up Menu at Bottom Right)
   ========================================================================== */
.floating-quick-menu-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.btn-floating-quick-menu {
  background: #ffffff;
  color: #06080a !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.35rem;
  border-radius: 980px;
  border: 1px solid #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  user-select: none;
}

.btn-floating-quick-menu:hover,
.floating-quick-menu-container.active .btn-floating-quick-menu {
  background: #f0f3f6;
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.btn-floating-quick-menu .quick-menu-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-quick-menu-container:hover .quick-menu-chevron,
.floating-quick-menu-container.active .quick-menu-chevron {
  transform: rotate(180deg);
}

/* Drop-Up Menu Card (Pops upwards from bottom right) */
.floating-quick-dropdown {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: rgba(14, 17, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

/* Hover bridge for drop-up */
.floating-quick-dropdown::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .floating-quick-menu-container:hover .floating-quick-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.floating-quick-menu-container.active .floating-quick-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .floating-quick-menu-container {
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 320px;
    display: flex;
    justify-content: center;
  }

  .btn-floating-quick-menu {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    font-size: 0.88rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.3);
  }

  .floating-quick-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 100%;
  }

  .floating-quick-menu-container.active .floating-quick-dropdown {
    transform: translateX(-50%) translateY(0);
  }
}


/* ==========================================================================
   HEADER TOP-RIGHT AUTH & USER PROFILE DROPDOWN (Standard SaaS Style)
   ========================================================================== */
.tesla-theme header .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
}

.tesla-theme header .logo {
  order: 1;
}

.tesla-theme header nav {
  order: 2;
  margin-left: auto;
}

.header-lang-wrapper {
  order: 3;
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
  z-index: 121;
}

.header-auth-wrapper {
  order: 4;
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 6px;
  z-index: 120;
}

.tesla-theme header .hamburger {
  order: 5;
}

.btn-header-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-header-login:hover {
  background: #ffffff;
  color: #06080a !important;
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-header-login svg {
  flex-shrink: 0;
}

.header-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px 4px 5px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.header-profile-trigger:hover,
.header-auth-wrapper.active .header-profile-trigger {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.header-profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #1a1f29;
  flex-shrink: 0;
}

.header-profile-name {
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
}

.header-profile-chevron {
  color: #9aa0a6;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.header-auth-wrapper.active .header-profile-chevron {
  transform: rotate(180deg);
}

.header-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 285px;
  background: rgba(14, 17, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.header-auth-wrapper.active .header-profile-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.profile-dropdown-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.profile-dropdown-meta {
  min-width: 0;
  flex: 1;
}

.profile-dropdown-fullname {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-email {
  font-size: 0.73rem;
  color: #9aa0a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-quota-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.profile-quota-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  margin-bottom: 6px;
}

.profile-quota-label {
  color: #9aa0a6;
  font-weight: 500;
}

.profile-quota-value {
  color: #ffffff;
  font-weight: 700;
}

.profile-quota-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.profile-quota-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 99px;
  transition: width 0.3s ease;
}

.profile-dropdown-link,
.profile-dropdown-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #e2e8f0 !important;
  text-decoration: none !important;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  text-align: left;
}

.profile-dropdown-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

.profile-dropdown-logout {
  color: #fca5a5 !important;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  border-radius: 0 0 9px 9px;
}

.profile-dropdown-logout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca !important;
}

/* ==========================================================================
   WIREFRAME GLOBE LANGUAGE SWITCHER & GOOGLE TRANSLATE CLEANUP
   ========================================================================== */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
body > .skiptranslate,
iframe.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
#google_translate_element {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.tesla-theme {
  top: 0px !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Desktop Wireframe Globe Trigger (Icon Only) */
.header-lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-lang-trigger:hover,
.header-lang-wrapper.active .header-lang-trigger {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
}

.header-lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 158px;
  background: rgba(12, 15, 22, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.85), 0 0 24px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Hover bridge for smooth cursor travel */
.header-lang-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .header-lang-wrapper:hover .header-lang-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.header-lang-wrapper.active .header-lang-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  text-align: left;
}

.lang-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lang-dropdown-item.active {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  font-weight: 600;
}

/* Hidden on Desktop (> 900px) - Only shown inside Mobile 3-Line Menu */
.mobile-nav-auth-container,
.mobile-nav-lang-container {
  display: none;
}

.tesla-theme header .hamburger {
  display: none;
}

/* ==========================================================================
   MOBILE & TABLET 3-LINE HAMBURGER MENU (Zero Impact on Desktop > 900px)
   ========================================================================== */
@media (max-width: 900px) {
  /* Hide top-right auth pill & globe icon on mobile header so top bar only has Logo + 3-Line button */
  .header-auth-wrapper,
  .header-lang-wrapper {
    display: none !important;
  }

  .tesla-theme header .hamburger {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    margin-left: auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    z-index: 1002;
    order: 3;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .tesla-theme header .hamburger:hover,
  .tesla-theme header .hamburger.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
  }

  .tesla-theme header .hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  }

  .tesla-theme header .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .tesla-theme header .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .tesla-theme header .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Glass Slide-Down Navigation Drawer */
  .tesla-theme header nav {
    position: fixed;
    top: 66px;
    left: 12px;
    right: 12px;
    margin: 0;
    background: rgba(10, 12, 18, 0.97);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    z-index: 1001;
  }

  .tesla-theme header nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .tesla-theme header nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 0;
  }

  .tesla-theme header nav ul li {
    width: 100%;
  }

  .tesla-theme header nav a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 0.94rem !important;
    border-radius: 10px !important;
    color: #cbd5e1 !important;
  }

  .tesla-theme header nav a::after {
    display: none !important;
  }

  .tesla-theme header nav a:hover,
  .tesla-theme header nav a.active {
    background: rgba(255, 255, 255, 0.09) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
  }

  /* Auth & Profile Section Inside Mobile 3-Line Menu */
  .mobile-nav-auth-container {
    display: block;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .btn-mobile-nav-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #06080a !important;
    border: 1px solid #ffffff;
    border-radius: 980px;
    padding: 11px 18px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .btn-mobile-nav-login:hover {
    background: #e2e8f0;
  }

  .mobile-nav-profile-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
  }

  /* Language Switcher Inside Bottom of Mobile 3-Line Menu */
  .mobile-nav-lang-container {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-lang-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 2px;
  }

  .mobile-lang-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #9aa0a6;
    white-space: nowrap;
  }

  .mobile-lang-label svg {
    color: #ffffff;
    flex-shrink: 0;
  }

  .mobile-lang-pills {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 980px;
    padding: 3px;
    gap: 2px;
  }

  .mobile-lang-pill {
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
  }

  .mobile-lang-pill.active {
    background: #ffffff;
    color: #06080a;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }
}

/* ==========================================================================
   PROMO CAMPAIGN POPUP MODAL (ADMIN-MANAGED & RESPONSIVE)
   ========================================================================== */
.cdr-promo-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}

.cdr-promo-popup-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cdr-promo-popup-card {
  position: relative;
  width: 100%;
  max-width: 660px;
  background: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.cdr-promo-popup-backdrop.active .cdr-promo-popup-card {
  transform: translateY(0) scale(1);
}

.cdr-promo-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.cdr-promo-popup-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.06);
}

.cdr-promo-popup-media {
  display: block;
  width: 100%;
  position: relative;
  background: #080a0f;
  line-height: 0;
}

.cdr-promo-popup-media.is-clickable {
  cursor: pointer;
}

.cdr-promo-popup-img {
  width: 100%;
  height: auto;
  max-height: 74vh;
  object-fit: contain;
  display: block;
}

.cdr-promo-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(12, 15, 22, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cdr-promo-popup-dontshow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #9aa0a6;
  cursor: pointer;
  user-select: none;
  transition: color 0.18s ease;
}

.cdr-promo-popup-dontshow:hover {
  color: #e2e8f0;
}

.cdr-promo-popup-dontshow input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #ffffff;
  cursor: pointer;
  margin: 0;
}

.cdr-promo-popup-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cdr-promo-popup-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 980px;
  background: #ffffff;
  color: #06080a;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.18s ease;
  white-space: nowrap;
}

.cdr-promo-popup-btn-cta:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.cdr-promo-popup-btn-dismiss {
  padding: 6px 12px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #d0d7de;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.cdr-promo-popup-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

@media (max-width: 640px) {
  .cdr-promo-popup-backdrop {
    padding: 14px;
  }

  .cdr-promo-popup-card {
    border-radius: 14px;
  }

  .cdr-promo-popup-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }

  .cdr-promo-popup-footer {
    padding: 10px 12px;
    gap: 8px;
  }

  .cdr-promo-popup-dontshow {
    font-size: 0.75rem;
  }

  .cdr-promo-popup-btn-cta,
  .cdr-promo-popup-btn-dismiss {
    font-size: 0.74rem;
    padding: 5px 11px;
  }
}
