/* ============================================================
   DIGI-TECH — Design System Premium v3.0
   ============================================================
   Brand: Digital Transformation Core
   Polices: Hanken Grotesk (corps) + Sora (titres)
   Composants: .dt-* (Design Tokens)
   Version: 3.1 — Creative Edition
   ============================================================ */

/* Note: Google Fonts sont chargés via <link> dans le HTML pour éviter le blocage du rendu */
/* ============================================================
   1. DESIGN TOKENS (Extended)
   ============================================================ */
html { transition: background 0.3s ease, color 0.3s ease; }

:root {
  /* --- Palette --- */
  --obsidian:       #0D1117;
  --surface-dim:    #10141A;
  --surface:        #161B22;
  --surface-light:  #1C2128;
  --surface-high:   #21262D;

  --electric:       rgba(0, 195, 255, 0.3);
  --electric-light: #93DAFF;
  --electric-solid: #00C3FF;

  --cobalt:         #0453CD;
  --cobalt-light:   #B2C5FF;

  --white:          #FFFFFF;
  --white-90:       rgba(255, 255, 255, 0.9);
  --white-80:       rgba(255, 255, 255, 0.8);
  --white-70:       rgba(255, 255, 255, 0.7);
  --white-60:       rgba(255, 255, 255, 0.6);
  --white-50:       rgba(255, 255, 255, 0.5);
  --white-40:       rgba(255, 255, 255, 0.4);
  --white-30:       rgba(255, 255, 255, 0.3);
  --white-20:       rgba(255, 255, 255, 0.2);
  --white-10:       rgba(255, 255, 255, 0.1);
  --white-08:       rgba(255, 255, 255, 0.08);
  --white-06:       rgba(255, 255, 255, 0.06);
  --white-04:       rgba(255, 255, 255, 0.04);

  --success:        #22C55E;
  --success-bg:     rgba(34, 197, 94, 0.1);
  --warning:        #EAB308;
  --warning-bg:     rgba(234, 179, 8, 0.1);
  --error:          #EF4444;
  --error-bg:       rgba(239, 68, 68, 0.1);
  --info:           #3B82F6;
  --info-bg:        rgba(59, 130, 246, 0.1);

  /* --- Typography Scale --- */
  --font-body:      'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-heading:   'Sora', system-ui, -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  --leading-tight:  1.15;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose:  2;

  --tracking-tight:  -0.025em;
  --tracking-normal: 0;
  --tracking-wide:   0.025em;
  --tracking-wider:  0.05em;

  /* --- Spacing (4px base) --- */
  --space-0:   0;
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-14:  56px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;
  --space-28:  112px;
  --space-32:  128px;

  /* --- Border Radius --- */
  --radius-none: 0;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-3xl:  32px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg:   0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-xl:   0 15px 45px rgba(0, 0, 0, 0.35);
  --shadow-2xl:  0 25px 50px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(0, 195, 255, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(0, 195, 255, 0.2);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);

  /* --- Z-Index Scale --- */
  --z-base:      0;
  --z-dropdown:  50;
  --z-sticky:    60;
  --z-navbar:    60;
  --z-overlay:   100;
  --z-modal:     110;
  --z-toast:     200;
  --z-tooltip:   300;
  --z-command:   400;

  /* --- Layout --- */
  --max-width:    1280px;
  --max-width-sm: 768px;
  --max-width-lg: 1440px;
  --navbar-height: 64px;

  /* --- Motion --- */
  --motion-fast:    0.15s;
  --motion-base:    0.3s;
  --motion-slow:    0.5s;
  --motion-spring:  0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-bounce:  0.8s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Transitions (legacy) --- */
  --transition-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Light Mode --- */
html.light {
  --obsidian:       #FFFFFF;
  --surface-dim:    #F1F5F9;
  --surface:        #F8FAFC;
  --surface-light:  #FFFFFF;
  --surface-high:   #E2E8F0;
  --white:          #0F172A;
  --white-90:       rgba(15, 23, 42, 0.9);
  --white-80:       rgba(15, 23, 42, 0.8);
  --white-70:       rgba(15, 23, 42, 0.7);
  --white-60:       rgba(15, 23, 42, 0.6);
  --white-50:       rgba(15, 23, 42, 0.5);
  --white-40:       rgba(15, 23, 42, 0.4);
  --white-30:       rgba(15, 23, 42, 0.3);
  --white-20:       rgba(15, 23, 42, 0.2);
  --white-10:       rgba(15, 23, 42, 0.1);
  --white-08:       rgba(15, 23, 42, 0.08);
  --white-06:       rgba(15, 23, 42, 0.06);
  --white-04:       rgba(15, 23, 42, 0.04);
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg:      0 8px 24px rgba(0,0,0,0.08);
  --shadow-xl:      0 12px 40px rgba(0,0,0,0.1);
  --shadow-2xl:     0 20px 50px rgba(0,0,0,0.12);
  --shadow-glow:    0 0 20px rgba(0, 195, 255, 0.15);
  --shadow-glow-lg: 0 0 40px rgba(0, 195, 255, 0.1);
  --shadow-inner:   inset 0 2px 4px rgba(0,0,0,0.04);
}

/* --- The light mode styles are injected via JS/script.js --- */

/* ============================================================
   2. BASE / RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--obsidian);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  margin-top: 0;
  color: var(--white);
}

p { margin-top: 0; }

a {
  color: var(--electric-light);
  text-decoration: none;
  transition: color var(--motion-fast) ease;
}
a:hover { color: var(--white); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Form elements visibility fix --- */
input, textarea, select {
  color: var(--white);
  caret-color: var(--electric-solid);
  background-color: var(--surface);
}
input::placeholder, textarea::placeholder {
  color: var(--white-50) !important;
  opacity: 1;
}
input:focus, textarea:focus, select:focus { color: var(--white); }
body input, body textarea, body select { color: var(--white) !important; }
body input::placeholder, body textarea::placeholder {
  color: var(--white-50) !important;
  opacity: 1 !important;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb {
  background: var(--surface-high);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover { background: var(--electric-solid); }

/* --- Selection --- */
::selection {
  background: var(--electric);
  color: var(--white);
}

/* ============================================================
   3. SURFACE & UTILITY CLASSES
   ============================================================ */
.bg-obsidian        { background-color: var(--obsidian) !important; }
.bg-surface-dim     { background-color: var(--surface-dim) !important; }
.bg-surface         { background-color: var(--surface) !important; }
.bg-surface-light   { background-color: var(--surface-light) !important; }
.bg-surface-high    { background-color: var(--surface-high) !important; }
.bg-electric        { background-color: var(--electric) !important; }
.bg-electric-solid  { background-color: var(--electric-solid) !important; }
.bg-success         { background-color: var(--success-bg) !important; }

.text-white         { color: var(--white) !important; }
.text-white\/70     { color: var(--white-70) !important; }
.text-white\/60     { color: var(--white-60) !important; }
.text-white\/50     { color: var(--white-50) !important; }
.text-electric      { color: var(--electric-light) !important; }
.text-electric-solid { color: var(--electric-solid) !important; }
.border-surface-high { border-color: var(--surface-high) !important; }

.font-body    { font-family: var(--font-body) !important; }
.font-heading { font-family: var(--font-heading) !important; }
.font-mono    { font-family: var(--font-mono) !important; }

/* ============================================================
   4. HERO (legacy)
   ============================================================ */
.hero-bg {
  background: linear-gradient(135deg, #0D1117 0%, #10141A 50%, #00050A 100%);
  position: relative;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: heroDrift 12s ease-in-out infinite alternate;
}
.hero-glow.orbe-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 195, 255, 0.06), transparent);
  top: -10%; left: -10%;
  animation-duration: 14s;
}
.hero-glow.orbe-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(4, 83, 205, 0.05), transparent);
  bottom: -15%; right: -5%;
  animation-duration: 10s;
  animation-delay: -3s;
}
.hero-glow.orbe-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0, 195, 255, 0.04), transparent);
  top: 40%; right: 20%;
  animation-duration: 16s;
  animation-delay: -6s;
}
@keyframes heroDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.05); }
  66%  { transform: translate(-20px, 15px) scale(0.95); }
  100% { transform: translate(15px, -10px) scale(1.02); }
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 195, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(4, 83, 205, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================================
   5. DESIGN SYSTEM — COMPOSANTS .dt-*
   ============================================================ */

/* --- 5.1 .dt-btn — Button System --- */
.dt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.4;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--motion-base) cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.dt-btn:focus-visible {
  outline: 2px solid var(--electric-light);
  outline-offset: 2px;
}

/* Ripple effect */
.dt-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--motion-base) ease;
  pointer-events: none;
}
.dt-btn:active::after {
  opacity: 1;
}

/* Sizes */
.dt-btn-sm  { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.dt-btn-lg  { padding: var(--space-5) var(--space-10); font-size: var(--text-lg); }
.dt-btn-xl  { padding: var(--space-6) var(--space-12); font-size: var(--text-xl); }

/* Variants */
.dt-btn-primary {
  background: var(--electric);
  color: #000;
}
.dt-btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px) scale(1.02);
  color: #000;
}
.dt-btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.dt-btn-secondary {
  background: transparent;
  border: 1.5px solid var(--electric);
  color: var(--electric-light);
}
.dt-btn-secondary:hover {
  background: rgba(0, 195, 255, 0.08);
  box-shadow: var(--shadow-glow);
  color: var(--electric-light);
  transform: translateY(-2px);
}
.dt-btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.dt-btn-ghost {
  background: transparent;
  color: var(--white-70);
  border-radius: var(--radius-lg);
}
.dt-btn-ghost:hover {
  background: var(--white-10);
  color: var(--white);
  transform: translateY(-1px);
}
.dt-btn-ghost:active {
  background: var(--white-20);
  transform: scale(0.98);
}

.dt-btn-white {
  background: var(--white-08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dt-btn-white:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  transform: translateY(-1px);
}
.dt-btn-white:active { transform: scale(0.98); }

.dt-btn-success {
  background: var(--success);
  color: #000;
}
.dt-btn-success:hover {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
  transform: translateY(-2px) scale(1.02);
}

.dt-btn-error {
  background: var(--error);
  color: #fff;
}
.dt-btn-error:hover {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  transform: translateY(-2px) scale(1.02);
}

.dt-btn-icon { padding: var(--space-3); border-radius: var(--radius-full); min-width: unset; min-height: unset; }
.dt-btn:disabled, .dt-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.dt-btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.dt-btn-loading::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: dtSpin 0.6s linear infinite;
}

/* --- 5.2 .dt-card — Card System --- */
.dt-card {
  background: var(--surface);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-lg);
  transition: all var(--motion-base) cubic-bezier(0.4, 0, 0.2, 1);
}
.dt-card-hover:hover {
  border-color: rgba(0, 195, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 195, 255, 0.08);
  transform: translateY(-4px);
}
.dt-card-clickable { cursor: pointer; }
.dt-card-body { padding: var(--space-6); }
.dt-card-image { width: 100%; object-fit: cover; display: block; }
.dt-card-title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: var(--text-lg); margin: 0 0 var(--space-2) 0;
  color: var(--white);
}
.dt-card-text { color: var(--white-70); font-size: var(--text-sm); line-height: var(--leading-relaxed); margin: 0; }
.dt-card-elevated { box-shadow: var(--shadow-md); }
.dt-card-flat { background: transparent; border: none; }
.dt-card-surface-light { background: var(--surface-light); }

/* --- 5.3 .dt-input — Input System --- */
.dt-input {
  display: block; width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-xl);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
  -webkit-appearance: none; appearance: none;
}
.dt-input::placeholder { color: var(--white-50); }
.dt-input:hover { border-color: var(--white-20); }
.dt-input:focus, .dt-input:focus-visible {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.15);
  outline: none;
}
.dt-input:disabled { opacity: 0.5; cursor: not-allowed; }
.dt-input-error { border-color: var(--error); }
.dt-input-error:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }
.dt-input-success { border-color: var(--success); }
.dt-input-success:focus { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
.dt-input-sm  { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.dt-input-lg  { padding: var(--space-5) var(--space-6); font-size: var(--text-base); }

/* --- 5.4 .dt-select --- */
.dt-select {
  display: block; width: 100%;
  padding: var(--space-4) var(--space-5); padding-right: var(--space-10);
  background: var(--surface);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-xl);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm); line-height: 1.5;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: 12px;
}
.dt-select:hover { border-color: var(--white-20); }
.dt-select:focus, .dt-select:focus-visible {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.15);
  outline: none;
}
.dt-select option { background: var(--surface); color: var(--white); }

/* --- 5.5 .dt-textarea --- */
.dt-textarea {
  display: block; width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-xl);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  resize: vertical; min-height: 120px;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.dt-textarea::placeholder { color: var(--white-50); }
.dt-textarea:focus, .dt-textarea:focus-visible {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.15);
  outline: none;
}

/* --- 5.6 .dt-badge --- */
.dt-badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: rgba(0, 195, 255, 0.1);
  color: var(--electric-light);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--tracking-wider);
  font-family: var(--font-body); white-space: nowrap;
}
.dt-badge-success { background: var(--success-bg); color: var(--success); }
.dt-badge-warning { background: var(--warning-bg); color: var(--warning); }
.dt-badge-error   { background: var(--error-bg); color: var(--error); }
.dt-badge-info    { background: var(--info-bg); color: var(--info); }
.dt-badge-sm { font-size: 0.625rem; padding: 2px var(--space-2); }
.dt-badge-lg { font-size: var(--text-sm); padding: var(--space-2) var(--space-4); }

/* --- 5.7 .dt-navbar --- */
.dt-navbar {
  position: sticky; top: 0;
  z-index: var(--z-navbar);
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--white-08);
  height: var(--navbar-height);
}
.dt-navbar-link {
  color: var(--white-80);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--motion-fast) ease;
  padding: var(--space-2) 0;
  position: relative;
}
.dt-navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--electric-light);
  transition: width var(--motion-base) ease;
}
.dt-navbar-link:hover::after,
.dt-navbar-link.active::after { width: 100%; }
.dt-navbar-link:hover, .dt-navbar-link:focus-visible { color: var(--white); }
.dt-navbar-link.active { color: var(--electric-light); font-weight: 600; }

/* --- 5.8 .dt-section --- */
.dt-section { padding: var(--space-20) 0; }
.dt-section-sm { padding: var(--space-12) 0; }
.dt-section-lg { padding: var(--space-28) 0; }
.dt-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-4);
  color: var(--white);
}
.dt-section-subtitle {
  text-align: center;
  color: var(--white-70);
  margin-bottom: var(--space-12);
  font-size: var(--text-lg);
}

/* --- 5.9 .dt-container --- */
.dt-container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-6); }
.dt-container-sm { max-width: var(--max-width-sm); }
.dt-container-lg { max-width: var(--max-width-lg); }

/* --- 5.10 .dt-grid --- */
.dt-grid { display: grid; gap: var(--space-6); }
.dt-grid-cols-2  { grid-template-columns: repeat(2, 1fr); }
.dt-grid-cols-3  { grid-template-columns: repeat(3, 1fr); }
.dt-grid-cols-4  { grid-template-columns: repeat(4, 1fr); }
.dt-grid-cols-5  { grid-template-columns: repeat(5, 1fr); }
.dt-grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
@media (max-width: 768px) {
  .dt-grid-cols-2, .dt-grid-cols-3, .dt-grid-cols-4, .dt-grid-cols-5, .dt-grid-cols-12 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .dt-grid-cols-3, .dt-grid-cols-4, .dt-grid-cols-5 { grid-template-columns: repeat(2, 1fr); }
}

/* --- 5.11 .dt-modal --- */
.dt-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dtFadeIn var(--motion-fast) ease-out;
}
.dt-modal-overlay.closing { animation: dtFadeOut var(--motion-fast) ease-out forwards; }
.dt-modal {
  background: var(--surface-light);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; margin: var(--space-4);
  animation: dtSlideUp var(--motion-base) ease-out;
}
.dt-modal.closing { animation: dtSlideDown var(--motion-fast) ease-out forwards; }
.dt-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-6); border-bottom: 1px solid var(--white-10);
}
.dt-modal-title { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 700; margin: 0; }
.dt-modal-close {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  background: transparent; border: none; border-radius: var(--radius-full);
  color: var(--white-60); cursor: pointer;
  transition: all var(--motion-fast) ease; font-size: var(--text-xl);
}
.dt-modal-close:hover { background: var(--white-10); color: var(--white); }
.dt-modal-close:focus-visible { outline: 2px solid var(--electric-light); outline-offset: 2px; }
.dt-modal-body { padding: var(--space-6); overflow-y: auto; }
.dt-modal-footer {
  display: flex; align-items: center; justify-content: flex-end;
  gap: var(--space-3); padding: var(--space-6);
  border-top: 1px solid var(--white-10);
}

/* --- 5.12 .dt-toast --- */
.toast-container {
  position: fixed; top: var(--space-6); right: var(--space-6);
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: var(--space-3);
  pointer-events: none;
}
@media (max-width: 640px) {
  .toast-container { top: auto; bottom: 1.5rem; left: 50%; transform: translateX(-50%); align-items: center; }
  .dt-toast { max-width: 90vw; min-width: 200px; }
}
.dt-toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--surface-light);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  font-size: var(--text-sm); font-weight: 500;
  animation: dtSlideInRight var(--motion-base) cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
}
.dt-toast.closing { animation: dtSlideOutRight var(--motion-fast) ease-out forwards; }
.dt-toast-icon { font-size: var(--text-xl); flex-shrink: 0; }
.dt-toast-success .dt-toast-icon { color: var(--success); }
.dt-toast-error   .dt-toast-icon { color: var(--error); }
.dt-toast-info    .dt-toast-icon { color: var(--info); }
.dt-toast-warning .dt-toast-icon { color: var(--warning); }

/* --- 5.13 .dt-divider --- */
.dt-divider { border: none; border-top: 1px solid var(--surface-high); margin: var(--space-8) 0; }
.dt-footer { background: var(--surface-dim); border-top: 1px solid var(--surface-high); }

/* --- 5.14 .dt-list --- */
.dt-list { list-style: none; padding: 0; margin: 0; }
.dt-list-item { padding: var(--space-3) 0; color: var(--white-70); font-size: var(--text-sm); }
.dt-list-item:not(:last-child) { border-bottom: 1px solid var(--white-06); }

/* --- 5.15 .dt-avatar --- */
.dt-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--surface-high);
  color: var(--white-50);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  flex-shrink: 0; overflow: hidden;
}
.dt-avatar-sm { width: 32px; height: 32px; font-size: var(--text-sm); }
.dt-avatar-lg { width: 64px; height: 64px; font-size: var(--text-2xl); }
.dt-avatar-xl { width: 112px; height: 112px; font-size: var(--text-4xl); }
.dt-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* --- 5.16 .dt-rating --- */
.dt-rating { display: inline-flex; align-items: center; gap: 2px; color: var(--warning); font-size: var(--text-base); }
.dt-rating-star { cursor: pointer; transition: color var(--motion-fast) ease; }
.dt-rating-star:hover, .dt-rating-star.active { color: var(--warning); }
.dt-rating-star.inactive { color: var(--white-20); }

/* --- 5.17 .dt-skeleton --- */


/* ============================================================
   6. MOTION SYSTEM (Extended — Creative Effects)
   ============================================================ */

/* --- Gradient Text --- */
@keyframes dtGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.text-gradient {
  background: linear-gradient(135deg, var(--electric-solid), var(--cobalt-light), var(--electric-light));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dtGradientShift 4s ease infinite;
}

/* --- Scroll Reveal --- */
.dt-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.dt-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Keyframes --- */
@keyframes dtFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes dtFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes dtSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dtSlideDown {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}
@keyframes dtSlideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes dtSlideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}
@keyframes dtScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes dtScaleOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.95); }
}
@keyframes dtSpin {
  to { transform: rotate(360deg); }
}
@keyframes dtPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes dtBounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
@keyframes dtSlideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes dtSlideInBottom {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dtCountUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes dtFadeSlide {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dtFloatParticle {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.3; }
  100% { transform: translateY(-100vh) translateX(50px) scale(0); opacity: 0; }
}

/* --- Animation Utility Classes --- */
.dt-anim-fade-in    { animation: dtFadeIn var(--motion-slow) cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.dt-anim-slide-up   { animation: dtSlideUp var(--motion-slow) cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.dt-anim-scale-in   { animation: dtScaleIn var(--motion-base) cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.dt-anim-bounce-in  { animation: dtBounceIn var(--motion-spring) forwards; }
.dt-anim-slide-left { animation: dtSlideInLeft var(--motion-slow) cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.dt-anim-slide-bottom { animation: dtSlideInBottom var(--motion-slow) cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.dt-anim-pulse      { animation: dtPulse 2s ease-in-out infinite; }
.dt-anim-spin       { animation: dtSpin 0.6s linear infinite; }

/* --- Typing indicator --- */
@keyframes dtBounceDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}
.dt-bounce-1 { animation: dtBounceDot 1.4s ease-in-out infinite; }
.dt-bounce-2 { animation: dtBounceDot 1.4s ease-in-out infinite 0.2s; }
.dt-bounce-3 { animation: dtBounceDot 1.4s ease-in-out infinite 0.4s; }

/* --- Stagger delays (for grid children) --- */
.dt-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.dt-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.dt-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.dt-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.dt-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.dt-stagger > *:nth-child(6) { animation-delay: 0.3s; }
.dt-stagger > *:nth-child(7) { animation-delay: 0.35s; }
.dt-stagger > *:nth-child(8) { animation-delay: 0.4s; }
.dt-stagger > *:nth-child(9) { animation-delay: 0.45s; }
.dt-stagger > *:nth-child(10) { animation-delay: 0.5s; }
.dt-stagger > *:nth-child(11) { animation-delay: 0.55s; }
.dt-stagger > *:nth-child(12) { animation-delay: 0.6s; }

/* Chained delays */
.dt-delay-1  { animation-delay: 0.1s; }
.dt-delay-2  { animation-delay: 0.2s; }
.dt-delay-3  { animation-delay: 0.3s; }
.dt-delay-4  { animation-delay: 0.4s; }
.dt-delay-5  { animation-delay: 0.5s; }
.dt-delay-6  { animation-delay: 0.6s; }
.dt-delay-7  { animation-delay: 0.7s; }
.dt-delay-8  { animation-delay: 0.8s; }

/* Hover micro-interactions */
.dt-hover-lift {
  transition: transform var(--motion-base) cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--motion-base) cubic-bezier(0.4, 0, 0.2, 1);
}
.dt-hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dt-hover-glow:hover { box-shadow: var(--shadow-glow); }
.dt-hover-scale:hover { transform: scale(1.05); }
.dt-hover-bright:hover { filter: brightness(1.2); }

/* --- NEW: Tilt 3D Card Effect --- */
.dt-tilt {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.dt-tilt-inner {
  transition: transform var(--motion-base) cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

/* --- NEW: Reading Progress Bar --- */
.dt-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--electric), var(--electric-solid));
  z-index: var(--z-tooltip);
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Legacy fade-in (IntersectionObserver) --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- prefers-reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1 !important; transform: none !important; }
  .fade-in.visible { opacity: 1; transform: none; }
  .dt-toast, .dt-modal, .dt-modal-overlay { animation: none !important; }
}

/* --- Chatbot (legacy) --- */
#naomie-popup { animation: dtSlideUp var(--motion-base) ease-out; }
#naomie-popup.hidden { display: none; }

/* ============================================================
   7. ACCESSIBILITY
   ============================================================ */
:focus-visible { outline: 2px solid var(--electric-light); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

@media (prefers-contrast: less) {
  :root { --white-70: rgba(255, 255, 255, 0.75); --white-50: rgba(255, 255, 255, 0.55); }
}
@media (prefers-contrast: more) {
  :root { --electric-light: #7AC8FF; --white-70: rgba(255, 255, 255, 0.85); --white-50: rgba(255, 255, 255, 0.7); }
  .dt-btn-primary { border: 1px solid var(--electric-light); }
  .dt-card, .dt-input, .dt-select, .dt-textarea { border-width: 2px; }
}

/* ============================================================
   8. PREMIUM COMPONENTS
   ============================================================ */

/* --- 8.1 .dt-faq --- */
.dt-faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--motion-fast) ease;
}
.dt-faq-item:hover { border-color: var(--white-20); }
.dt-faq-item.open { border-color: rgba(0, 195, 255, 0.3); }
.dt-faq-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: transparent; border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer; text-align: left;
  transition: color var(--motion-fast) ease;
  gap: var(--space-4);
}
.dt-faq-trigger:hover { color: var(--electric-light); }
.dt-faq-trigger:focus-visible { outline: 2px solid var(--electric-light); outline-offset: -2px; }
.dt-faq-icon {
  flex-shrink: 0; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white-50);
  transition: transform var(--motion-base) ease;
}
.dt-faq-item.open .dt-faq-icon { transform: rotate(180deg); color: var(--electric-light); }
.dt-faq-content {
  max-height: 0; overflow: hidden;
  transition: max-height var(--motion-base) ease, padding var(--motion-base) ease;
}
.dt-faq-item.open .dt-faq-content { max-height: 500px; }
.dt-faq-answer {
  padding: 0 var(--space-6) var(--space-5) var(--space-6);
  color: var(--white-70);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* --- 8.6 .dt-testimonial --- */
.dt-testimonial {
  background: var(--surface-light);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--motion-base) cubic-bezier(0.4, 0, 0.2, 1);
}
.dt-testimonial:hover {
  border-color: rgba(0, 195, 255, 0.3);
  box-shadow: var(--shadow-glow-lg);
  transform: translateY(-2px);
}
.dt-testimonial-stars { display: flex; gap: 2px; color: var(--warning); margin-bottom: var(--space-4); font-size: var(--text-sm); }
.dt-testimonial-text {
  color: var(--white-80); font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  font-style: italic;
}
.dt-testimonial-author { display: flex; align-items: center; gap: var(--space-3); }
.dt-testimonial-name { font-weight: 600; font-size: var(--text-sm); }
.dt-testimonial-role { color: var(--white-50); font-size: var(--text-xs); }

/* --- 8.7 .dt-cta --- */
.dt-cta {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-3xl);
  padding: var(--space-16) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dt-cta::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0, 195, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.dt-cta-title { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 800; margin-bottom: var(--space-4); position: relative; }
.dt-cta-text { color: var(--white-70); font-size: var(--text-lg); margin-bottom: var(--space-8); max-width: 600px; margin-left: auto; margin-right: auto; position: relative; }
.dt-cta-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; position: relative; }

/* --- 8.8 .dt-search --- */
.dt-search-bar { position: relative; }
.dt-search-icon { position: absolute; left: var(--space-4); top: 50%; transform: translateY(-50%); color: var(--white-50); pointer-events: none; font-size: var(--text-sm); }
.dt-search-input {
  width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-10);
  background: var(--surface);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-full);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.dt-search-input::placeholder { color: var(--white-50); }
.dt-search-input:focus { border-color: var(--electric); box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.15); outline: none; }
.dt-search-suggestions {
  position: absolute; top: calc(100% + var(--space-2)); left: 0; right: 0;
  background: var(--surface-light);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-dropdown);
  overflow: hidden;
  animation: dtScaleIn var(--motion-fast) ease-out;
}
.dt-search-suggestion { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); cursor: pointer; transition: background var(--motion-fast) ease; font-size: var(--text-sm); }
.dt-search-suggestion:hover { background: var(--white-10); }
.dt-search-suggestion img { width: 32px; height: 32px; border-radius: var(--radius-md); object-fit: cover; }
.dt-search-empty { padding: var(--space-8); text-align: center; color: var(--white-50); font-size: var(--text-sm); }


/* ============================================================
   9. COMPATIBILITY LAYER (classes Tailwind surchargées)
   ============================================================ */
body .bg-white         { background-color: var(--surface); }
body .bg-gray-50       { background-color: var(--surface-dim); }
body .bg-gray-100      { background-color: var(--white-06); }
body .bg-gray-200      { background-color: var(--white-08); }
body .text-gray-900, body .text-gray-800, body .text-gray-700 { color: var(--white-90); }
body .text-gray-600, body .text-gray-500, body .text-gray-400, body .text-gray-300 { color: var(--white-70); }
body .border-gray-200, body .border-gray-300, body .border-gray-400 { border-color: var(--surface-high); }
body .shadow-xl, body .shadow-2xl, body .shadow-lg { box-shadow: var(--shadow-xl); }

/* --- Legacy glass-nav --- */
.glass-nav {
  position: sticky; top: 0; z-index: var(--z-navbar);
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--white-08);
}

/* Legacy brand classes */
.brand-card, .product-card, .service-card, .blog-card {
  background: var(--surface);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-lg);
  color: var(--white);
  transition: all var(--transition-base);
}
.brand-card:hover, .product-card:hover, .service-card:hover, .blog-card:hover {
  border-color: rgba(0, 195, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 195, 255, 0.08);
  transform: translateY(-4px);
}
.details-panel {
  background: var(--surface);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-2xl);
  color: var(--white);
  position: sticky; top: 100px;
  height: fit-content;
}

/* Legacy buttons */
.btn-primary, .btn-secondary, .btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; cursor: pointer;
  transition: all var(--transition-base);
}
.btn-primary { background: var(--electric); color: #000; border: none; }
.btn-primary:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); color: #000; }
.btn-secondary { background: transparent; border: 1.5px solid var(--electric); color: var(--electric-light); }
.btn-secondary:hover { background: rgba(0, 195, 255, 0.08); box-shadow: var(--shadow-glow); color: var(--electric-light); }
.btn-white { background: var(--white-08); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.12); }
.btn-white:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }

#toast-container .transition-all { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* ============================================================
   10. MOBILE RESPONSIVE — Premium Edition
   ============================================================ */

/* --- Tiny screens (≤ 480px) --- */
@media (max-width: 480px) {
  .hero-title { font-size: 2.25rem !important; }
  .hero-subtitle { font-size: 0.95rem !important; }
  .hero-buttons .dt-btn { padding: 14px 24px; font-size: 0.85rem; width: 100%; }
  .dt-section { padding: 2.5rem 0; }
  .dt-section-title { font-size: 1.6rem !important; }
  .dt-container { padding: 0 1rem; }

  #shared-cart-popup .dt-card { max-width: 100vw; margin: 0; border-radius: 1.25rem 1.25rem 0 0; }
  #shared-cart-popup { align-items: flex-end; }
  .toast-container { top: auto; bottom: 1.5rem; left: 50%; transform: translateX(-50%); align-items: center; }
  .dt-toast { max-width: 90vw; min-width: 200px; }
  .dt-chat-popup { width: calc(100vw - 32px); max-width: 360px; right: 16px; }

  .product-card { border-radius: 1.25rem; }
  .product-card img { height: 180px; }

  .skill-grid { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; }

  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .admin-stat-card { padding: 1rem; }
  .admin-stat-value { font-size: 1.5rem; }
  .admin-tabs { gap: 0.5rem; }
  .admin-tab { padding: 8px 14px; font-size: 0.8rem; }

  .auth-card { padding: 1.5rem 1.25rem; }
  .mobile-full-width { width: 100%; }

  .cart-item-qty-btn { width: 44px; height: 44px; }
}

/* --- Small screens (≤ 640px) --- */
@media (max-width: 640px) {
  .hero-title { font-size: 2.75rem !important; }
  #shared-cart-popup .max-w-xl { margin: 0; max-height: 90vh; border-radius: 1.25rem 1.25rem 0 0; width: 100%; }
  #shared-cart-popup { align-items: flex-end; }
  #mobile-nav-menu { overflow-y: auto; overscroll-behavior: contain; }
  #mobile-nav-menu a, #mobile-nav-menu button { touch-action: manipulation; }
  #mobile-nav-menu .mobile-nav-link { transition: background-color 0.2s ease; }
  .dt-section { padding: var(--space-12) 0; }
  .dt-section-lg { padding: var(--space-16) 0; }
  .dt-container { padding: 0 var(--space-4); }

  .skill-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .contact-grid { grid-template-columns: 1fr !important; }

  .detail-panel img { height: 200px !important; }
  .search-input { width: 100% !important; max-width: none !important; }
  .carousel-item { width: 240px; flex-shrink: 0; }

  /* --- Bottom Sheet Gesture --- */
  .cart-handle-bar { display: block; width: 36px; height: 4px; background: var(--white-30); border-radius: 4px; margin: 0 auto 12px; }
}

/* --- Touch screen refinements --- */
@media (pointer: coarse) {
  .group:hover .group-hover\:opacity-100 { opacity: 1; visibility: visible; }
  .dt-navbar a, .dt-navbar button, .dt-btn, .admin-tab, .dt-modal-close, .dt-chat-btn, .dt-chat-send, .dt-chat-close { touch-action: manipulation; }
  .dt-cursor-dot, .dt-cursor-ring, .dt-cursor-trail { display: none; }
}

/* --- Large screens (≥ 1024px) --- */
@media (min-width: 1024px) {
  .skill-grid { grid-template-columns: repeat(5, 1fr) !important; }
  .contact-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .admin-stats { grid-template-columns: repeat(4, 1fr); }
}

/* --- Touch target sizing (44px minimum) --- */
.dt-modal-close,
.dt-chat-close,
.dt-chat-send,
.dt-wishlist-btn,
.cart-qty-btn,
.admin-tab,
.review-star-btn,
.auth-logout-btn,
.dt-close-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   11. CUSTOM CURSOR
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
}

.dt-cursor-dot,
.dt-cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform, left, top, width, height, opacity;
  border-radius: 50%;
}

.dt-cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--electric-solid);
  transition: opacity 0.3s ease;
  z-index: 10001;
}

.dt-cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--electric-light);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              opacity 0.3s ease;
  z-index: 10000;
  background: rgba(0, 195, 255, 0.02);
  box-shadow: 0 0 12px rgba(0, 195, 255, 0.04);
}

.dt-cursor-ring.is-hovering {
  width: 60px;
  height: 60px;
  background: rgba(0, 195, 255, 0.06);
  border-color: var(--electric-solid);
  box-shadow: 0 0 30px rgba(0, 195, 255, 0.12);
}

.dt-cursor-ring.is-clicking {
  width: 28px;
  height: 28px;
  background: rgba(0, 195, 255, 0.15);
  border-color: var(--electric-solid);
}

.dt-cursor-trail {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9998;
  will-change: transform, opacity;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.dt-cursor-ring.magnetic {
  width: 48px;
  height: 48px;
  background: rgba(0, 195, 255, 0.08);
  border-color: var(--electric-solid);
  box-shadow: 0 0 25px rgba(0, 195, 255, 0.1);
}

@media (pointer: coarse) {
  .dt-cursor-dot,
  .dt-cursor-ring,
  .dt-cursor-trail { display: none !important; }
}

/* ============================================================
   12. CHATBOT NAOMIE — Premium
   ============================================================ */
.dt-chat-btn {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--electric-solid), #0090C0);
  color: #000;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  cursor: pointer; z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 195, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dt-chat-btn:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(0, 195, 255, 0.5); }
.dt-chat-btn:active { transform: scale(0.95); }

.dt-chat-popup {
  position: fixed; bottom: 100px; right: 28px;
  width: 360px; max-height: 580px;
  background: rgba(22, 27, 34, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,195,255,0.06);
  z-index: 50;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: dtChatOpen 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dt-chat-popup.hidden { display: none; }

@keyframes dtChatOpen {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.dt-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, #0D1117 0%, #161B22 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.dt-chat-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--electric-solid), #0090C0);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 195, 255, 0.2);
}

.dt-chat-close {
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: none; border-radius: 50%;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}
.dt-chat-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.dt-chat-body {
  flex: 1; overflow-y: auto;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.dt-chat-body::-webkit-scrollbar { width: 4px; }
.dt-chat-body::-webkit-scrollbar-track { background: transparent; }
.dt-chat-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.dt-msg { display: flex; flex-direction: column; gap: 4px; max-width: 85%; }
.dt-msg-bot { align-self: flex-start; }
.dt-msg-user { align-self: flex-end; }

.dt-msg-content {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.875rem;
  line-height: 1.6;
}
.dt-msg-bot .dt-msg-content {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.04);
  border-bottom-left-radius: 6px;
  color: var(--white-90);
}
.dt-msg-user .dt-msg-content {
  background: linear-gradient(135deg, var(--electric) 0%, rgba(0, 195, 255, 0.15) 100%);
  border: 1px solid rgba(0, 195, 255, 0.15);
  border-bottom-right-radius: 6px;
  color: var(--white);
}

.dt-msg-time {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  padding: 0 6px;
  letter-spacing: 0.02em;
}

.dt-msg-enter {
  animation: dtMsgIn 0.3s ease-out;
}
@keyframes dtMsgIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.dt-typing {
  display: flex; align-items: center; gap: 5px;
  padding: 12px 18px !important;
  min-width: 60px;
}
.dt-typing-dot {
  width: 7px; height: 7px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
}

.dt-chat-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.dt-chat-input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dt-chat-input-wrap:focus-within {
  border-color: rgba(0, 195, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 195, 255, 0.06);
}
.dt-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: var(--white-90);
  outline: none;
  font-family: var(--font-body);
}
.dt-chat-input::placeholder { color: rgba(255,255,255,0.25); }
.dt-chat-send {
  min-width: 44px; min-height: 44px;
  background: linear-gradient(135deg, var(--electric-solid), #0090C0);
  border: none; border-radius: 12px;
  color: #000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}
.dt-chat-send:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(0, 195, 255, 0.2); }

.dt-chat-chip {
  font-size: 0.75rem;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.dt-chat-chip:hover {
  background: rgba(0, 195, 255, 0.08);
  border-color: rgba(0, 195, 255, 0.2);
  color: var(--electric-light);
}

.dt-chat-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #25D366;
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.dt-chat-wa-btn:hover {
  background: #1DA851;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* ============================================================
   12. SERVICE CARDS — Premium Glass
   ============================================================ */
.dt-service-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 24px 22px 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.dt-service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(0,195,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.dt-service-card:hover::before { opacity: 1; }
.dt-service-card:hover {
  border-color: rgba(0, 195, 255, 0.15);
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.25),
    0 0 30px rgba(0,195,255,0.06);
}
.dt-service-icon-wrap {
  margin-bottom: 16px;
}
.dt-service-emoji {
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(0.2);
}
.dt-service-card:hover .dt-service-emoji {
  transform: scale(1.2) rotate(-8deg);
  filter: grayscale(0);
}
.dt-service-card .fa-arrow-right {
  transition: transform 0.3s ease;
}
.dt-service-card:hover .fa-arrow-right {
  transform: translateX(4px);
}

/* Service Panel */
.dt-service-panel {
  animation: dtFadeSlide 0.35s ease-out;
}
.dt-service-panel-emoji {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 20px;
}
.dt-service-cta {
  background: linear-gradient(135deg, var(--electric-gradient));
  color: #fff;
  transition: all 0.3s ease;
}
.dt-service-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 195, 255, 0.25);
}

/* ============================================================
   12A. SKILL CARDS — Premium Glass
   ============================================================ */
.dt-skill-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 28px 20px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.dt-skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(0,195,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.dt-skill-card:hover::before { opacity: 1; }
.dt-skill-card:hover {
  border-color: rgba(0, 195, 255, 0.15);
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.25),
    0 0 30px rgba(0,195,255,0.06);
}
.dt-skill-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dt-skill-icon {
  font-size: 22px;
  color: var(--electric-light);
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}
.dt-skill-card:hover .dt-skill-icon {
  transform: scale(1.25);
  color: #fff;
}
.dt-skill-icon-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(0,195,255,0.08);
  border: 1px solid rgba(0,195,255,0.12);
  transition: all 0.4s ease;
}
.dt-skill-card:hover .dt-skill-icon-glow {
  background: rgba(0,195,255,0.18);
  border-color: rgba(0,195,255,0.3);
  box-shadow: 0 0 20px rgba(0,195,255,0.15);
  transform: scale(1.15) rotate(10deg);
  border-radius: 50%;
}
.dt-skill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.8125rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 4px;
}
.dt-skill-item i {
  font-size: 0.5rem;
  color: var(--electric-light);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.dt-skill-card:hover .dt-skill-item {
  color: rgba(255,255,255,0.75);
}
.dt-skill-card:hover .dt-skill-item i {
  transform: scale(1.4);
  color: #25d366;
}
.dt-skill-card li::marker { display: none; font-size: 0; }

/* ============================================================
   13. TEAM CARDS — Premium
   ============================================================ */
.dt-team-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 22px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.dt-team-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(0, 195, 255, 0.12);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.dt-team-avatar-wrap {
  position: relative;
  width: 100px; height: 100px;
  margin: 0 auto 20px;
}
.dt-team-avatar-ring {
  position: absolute; inset: -4px;
  border: 2px solid rgba(0, 195, 255, 0.15);
  border-radius: 50%;
  transition: border-color 0.3s ease;
}
.dt-team-card:hover .dt-team-avatar-ring {
  border-color: rgba(0, 195, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 195, 255, 0.08);
}
.dt-team-avatar {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface);
}
.dt-team-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--electric-light);
  background: rgba(0, 195, 255, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* ============================================================
   14. AUTH SECTION — Premium 3D
   ============================================================ */
.dt-auth-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0e14 0%, #0d1117 50%, #060a0f 100%);
  overflow: hidden;
  padding: 100px 24px 60px;
}
.dt-auth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.dt-auth-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  animation: heroDrift 14s ease-in-out infinite alternate;
}
.dt-auth-bg-glow.g1 { width: 600px; height: 600px; background: rgba(0,195,255,0.05); top: -20%; left: -20%; }
.dt-auth-bg-glow.g2 { width: 500px; height: 500px; background: rgba(4,83,205,0.04); bottom: -20%; right: -20%; animation-delay: -4s; animation-duration: 18s; }
.dt-auth-bg-glow.g3 { width: 300px; height: 300px; background: rgba(0,195,255,0.03); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -8s; animation-duration: 12s; }

.dt-auth-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
}

.dt-auth-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  padding: 40px 36px 36px;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.1s ease-out;
  position: relative;
  overflow: hidden;
}
.dt-auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: radial-gradient(400px circle at var(--sx, 50%) var(--sy, 50%), rgba(0,195,255,0.06), transparent);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dt-auth-header {
  text-align: center;
  margin-bottom: 28px;
}
.dt-auth-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.dt-auth-subtitle {
  color: rgba(255,255,255,0.4);
  font-size: 0.8125rem;
}

/* Tabs */
.dt-auth-tabs {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 28px;
}
.dt-auth-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: rgba(255,255,255,0.35);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dt-auth-tab i { font-size: 0.75rem; }
.dt-auth-tab.active {
  background: rgba(0, 195, 255, 0.12);
  color: var(--electric-light);
  box-shadow: 0 2px 10px rgba(0,195,255,0.08);
}

/* Forms */
.dt-auth-forms { min-height: 300px; }
.dt-auth-form {
  animation: dtFadeSlide 0.35s ease-out;
}
.dt-auth-field {
  position: relative;
  margin-bottom: 18px;
}
.dt-auth-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  z-index: 2;
  transition: color 0.3s ease;
}
.dt-auth-field input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  color: #fff;
  font-size: 0.8125rem;
  outline: none;
  transition: all 0.3s ease;
}
.dt-auth-field input:focus {
  border-color: rgba(0, 195, 255, 0.3);
  background: rgba(0, 195, 255, 0.03);
  box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.06);
}
.dt-auth-field input:focus + label,
.dt-auth-field input:not(:placeholder-shown) + label {
  opacity: 0;
  transform: translateY(-50%) scale(1);
}
.dt-auth-field input:focus ~ .dt-auth-field-icon { color: var(--electric-light); }
.dt-auth-field label {
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.25);
  font-size: 0.8125rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Small fields for profile */
.dt-auth-field-sm { margin-bottom: 14px; }
.dt-auth-field-sm input { padding: 12px 14px 12px 40px; font-size: 0.8125rem; }

.dt-auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -6px 0 20px;
}

.dt-auth-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--electric-solid), #0088b3);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.dt-auth-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.dt-auth-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,195,255,0.2); }
.dt-auth-btn:hover::after { opacity: 1; }
.dt-auth-btn:active { transform: translateY(0); }
.dt-auth-btn-sm { padding: 12px; font-size: 0.8125rem; }

.dt-auth-footer-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Connected dashboard */
.dt-auth-breadcrumb {
  max-width: 80rem;
  margin: 0 auto;
  padding: 16px 24px 0;
  display: flex;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  position: relative;
  z-index: 10;
}
.dt-auth-breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.3s; }
.dt-auth-breadcrumb a:hover { color: var(--electric-light); }

.dt-auth-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 12px;
  color: #ef4444;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dt-auth-logout-btn:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  transform: translateY(-2px);
}

.dt-auth-profile-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 22px;
  padding: 28px;
  backdrop-filter: blur(12px);
}
.dt-auth-shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s ease;
}
.dt-auth-shortcut i { width: 16px; font-size: 0.75rem; }
.dt-auth-shortcut:hover {
  background: rgba(255,255,255,0.03);
  color: #fff;
  transform: translateX(4px);
}

/* ============================================================
   15. FAQ ACCORDION — Premium
   ============================================================ */
.dt-faq-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dt-faq-card:hover {
  border-color: rgba(0, 195, 255, 0.12);
  background: rgba(0, 195, 255, 0.025);
  transform: translateX(4px);
}
.dt-faq-card.open {
  border-color: rgba(0, 195, 255, 0.12);
  background: rgba(0, 195, 255, 0.02);
}

.dt-faq-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px;
  background: transparent;
  border: none;
  color: var(--white-90);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  gap: 16px;
  transition: color 0.2s ease;
}
.dt-faq-btn:hover { color: var(--white); }
.dt-faq-card:hover .dt-faq-arrow { color: var(--electric-light); transform: translateX(4px); }
.dt-faq-card:hover .dt-faq-num { color: var(--electric-solid); }

.dt-faq-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(0, 195, 255, 0.4);
  font-feature-settings: "tnum";
  min-width: 28px;
}

.dt-faq-arrow {
  font-size: 0.875rem;
  color: rgba(0, 195, 255, 0.4);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.dt-faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.dt-faq-answer-inner {
  padding: 0 26px 24px;
  display: flex; gap: 16px;
  align-items: flex-start;
}
.dt-faq-answer-line {
  width: 2px;
  min-height: 24px;
  background: linear-gradient(180deg, rgba(0, 195, 255, 0.2), transparent);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ============================================================
   15. CONTACT SECTION — Premium
   ============================================================ */
.dt-contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dt-contact-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(0, 195, 255, 0.12);
  transform: translateX(4px);
}
.dt-contact-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 195, 255, 0.08);
}

.dt-contact-form-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease;
}
.dt-contact-form-wrap:hover {
  border-color: rgba(0, 195, 255, 0.08);
}

.dt-field-wrap {
  display: flex; flex-direction: column; gap: 6px;
}
.dt-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 4px;
}
.dt-field-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  font-size: 0.875rem;
  color: var(--white-90);
  font-family: var(--font-body);
  transition: all 0.25s ease;
  outline: none;
}
.dt-field-input::placeholder { color: rgba(255,255,255,0.2); }
.dt-field-input:hover {
  border-color: rgba(255,255,255,0.12);
}
.dt-field-input:focus {
  border-color: rgba(0, 195, 255, 0.25);
  background: rgba(0, 195, 255, 0.03);
  box-shadow: 0 0 0 4px rgba(0, 195, 255, 0.05);
}
.dt-field-input option { background: var(--surface-light); color: var(--white); }
textarea.dt-field-input { resize: vertical; min-height: 110px; }

.dt-contact-submit {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--electric-solid), #0090C0);
  border: none;
  border-radius: 14px;
  color: #000;
  font-weight: 700;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 4px;
}
.dt-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 195, 255, 0.25);
}
.dt-contact-submit:active {
  transform: translateY(0);
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.admin-tab {
  background: transparent;
  border: 1px solid var(--white-10);
  color: var(--white-60);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-tab:hover {
  background: var(--white-06);
  color: var(--white-80);
}
.admin-tab.active {
  background: var(--electric);
  border-color: var(--electric-solid);
  color: var(--white);
}
.admin-tab i { font-size: 14px; }

/* ============================================================
   PREMIUM MOBILE ENHANCEMENTS
   ============================================================ */

/* --- Glassmorphism refinements --- */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.glass-nav-mobile {
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* --- Floating card hover animation --- */
.product-card, .dt-service-card, .dt-skill-card, .dt-team-card {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease;
}
.product-card:hover, .dt-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 195, 255, 0.08);
}
.dt-skill-card:hover, .dt-team-card:hover {
  transform: translateY(-4px);
}

/* --- Shimmer loading effect --- */
@keyframes dtShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.dt-shimmer {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-light) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: dtShimmer 1.5s ease-in-out infinite;
}

/* --- Premium scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--white-20); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--white-30); }

/* --- Button press feedback (mobile) --- */
@media (pointer: coarse) {
  .dt-btn:active, .admin-tab:active, .dt-modal-close:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
  }
}

/* --- Smooth page transitions --- */
body {
  opacity: 0;
  animation: dtFadeIn 0.3s ease forwards;
}
@keyframes dtFadeIn {
  to { opacity: 1; }
}

/* --- Cart bottom sheet indicator always visible --- */
.cart-handle-bar {
  width: 36px; height: 4px;
  background: var(--white-30);
  border-radius: 4px;
  margin: 0 auto 12px;
  display: none;
}
@media (max-width: 640px) {
  .cart-handle-bar { display: block; }
}

/* ============================================================
   FIN — Design System Digi-Tech v3.1
   ============================================================ */
