/* ═══════════════════════════════════════════════════════════
   DotBot · Global Stylesheet
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --primary:      #6C63FF;
  --primary-dark: #5A52D5;
  --secondary:    #FF6584;
  --accent:       #43C6AC;
  --dark:         #0D0D1A;
  --dark-2:       #12122A;
  --dark-3:       #1A1A35;
  --dark-4:       #232340;
  --text:         #E8E8F0;
  --text-muted:   #9090B0;
  --border:       rgba(108,99,255,0.2);
  --card-bg:      rgba(26,26,53,0.85);
  --glass:        rgba(255,255,255,0.04);
  --success:      #27C97A;
  --warning:      #FFBB33;
  --danger:       #FF4D6D;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 4px 40px rgba(108,99,255,0.15);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.5);
  --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }

/* ── Animated Background ──────────────────────────────────── */
.bg-gradient {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 20% 10%, rgba(108,99,255,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 90%, rgba(67,198,172,0.12) 0%, transparent 60%),
              var(--dark);
  pointer-events: none;
}

.bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.3; animation: float 12s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: var(--primary); top: -100px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: var(--secondary); bottom: 0; right: -80px; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: var(--accent); top: 50%; left: 50%; animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── Hero Header ─────────────────────────────────────────── */
.hero-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(13,13,26,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.hero-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 700; color: var(--text);
  transition: var(--transition);
}
.hero-logo:hover { opacity: 1; transform: translateY(-1px); }

.brand-logo-img {
  height: 52px;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

.hero-nav-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hero-nav { display: flex; align-items: center; gap: 12px; }

.btn-hero {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important; border-radius: 10px; font-weight: 600;
  font-size: 0.9rem; transition: var(--transition);
  box-shadow: 0 4px 15px rgba(108,99,255,0.4);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(108,99,255,0.5); opacity: 1; }

.btn-admin {
  padding: 10px 20px; color: var(--text-muted) !important; font-size: 0.85rem;
  border: 1px solid var(--border); border-radius: 10px; transition: var(--transition);
}
.btn-admin:hover { color: var(--text) !important; border-color: var(--primary); opacity: 1; }

/* ── Hero Section ─────────────────────────────────────────── */
.hero-section {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 40px 80px;
  max-width: 1280px; margin: 0 auto;
  gap: 60px;
}

.hero-content { flex: 1; max-width: 580px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  padding: 8px 18px; border-radius: 50px;
  font-size: 0.85rem; color: var(--primary); font-weight: 500;
  margin-bottom: 24px; animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.15;
  color: var(--text); margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary) 50%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 40px; animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-stats {
  display: flex; align-items: center; gap: 24px;
  animation: fadeInUp 0.6s ease 0.5s both;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Hero Steps ──────────────────────────────────────────── */
.hero-steps {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px; animation: fadeInUp 0.6s ease 0.2s both;
}
.hs-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--border);
  padding: 10px 14px; border-radius: 10px; font-size: 0.85rem;
}
.hs-icon { font-size: 1.1rem; }
.hs-arrow { color: var(--text-muted); font-size: 1.1rem; }

/* ── Hero CTA Row ────────────────────────────────────────── */
.hero-cta-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  margin-bottom: 40px; animation: fadeInUp 0.6s ease 0.3s both;
}
.cta-note { font-size: 0.8rem; color: var(--text-muted); }

/* ── Badge dot ───────────────────────────────────────────── */
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); display: inline-block;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(39,201,122,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(39,201,122,0); }
}

/* ── Nav text link ───────────────────────────────────────── */
.nav-text-link {
  color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: var(--transition);
}
.nav-text-link:hover { color: var(--text); background: var(--glass); opacity: 1; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important; border-radius: 20px; font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 15px 40px rgba(108,99,255,0.45);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative; overflow: hidden;
}
.btn-cta:before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: 0.8s; z-index: 1;
}
.btn-cta:hover:before { left: 100%; }
.btn-cta:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 20px 50px rgba(108,99,255,0.6); opacity: 1; }
.btn-cta svg { position: relative; z-index: 2; transition: transform 0.3s; }
.btn-cta:hover svg { transform: translateX(5px); }

/* ── Hero Visual ──────────────────────────────────────────── */
.hero-visual {
  flex: 1; position: relative; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
}

.hero-phone {
  width: 280px; height: 480px;
  background: var(--dark-3); border-radius: 36px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden; position: relative; z-index: 2;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.phone-inner { padding: 24px 16px; height: 100%; display: flex; flex-direction: column; gap: 12px; }
.phone-dot { width: 60px; height: 5px; background: var(--dark); border-radius: 3px; margin: 0 auto 12px; }

.chat-preview { display: flex; flex-direction: column; gap: 10px; }
.cp-msg { padding: 10px 14px; border-radius: 14px; font-size: 0.82rem; max-width: 85%; line-height: 1.5; }
.cp-msg.bot { background: var(--dark-4); border-bottom-left-radius: 4px; align-self: flex-start; }
.cp-msg.user { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); align-self: flex-end; border-bottom-right-radius: 4px; }
.cp-typing { display: flex; gap: 4px; padding: 10px 14px; }
.cp-typing span { width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%; animation: typing 1.2s ease infinite; }
.cp-typing span:nth-child(2) { animation-delay: 0.2s; }
.cp-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)} }

.floating-card {
  position: absolute; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(20px); z-index: 3; white-space: nowrap;
  box-shadow: var(--shadow); animation: floatCard 4s ease-in-out infinite;
}
.fc-icon { font-size: 1.4rem; }
.fc-text { font-size: 0.8rem; color: var(--text-muted); }
.fc-text strong { color: var(--text); display: block; font-size: 0.85rem; }

.card-1 { top: 30px; left: -20px;  animation-delay: 0s; }
.card-2 { top: 30px; right: -30px; animation-delay: -1s; }
.card-3 { bottom: 80px; left: -30px; animation-delay: -2s; }
.card-4 { bottom: 80px; right: -20px; animation-delay: -3s; }
@keyframes floatCard { 0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)} }

/* ── Chat Section ─────────────────────────────────────────── */
.chat-section {
  position: relative; z-index: 1;
  padding: 40px 20px 80px;
  min-height: calc(100vh - 80px);
  display: flex; align-items: flex-start; justify-content: center;
  margin-top: 80px;
}

.chat-container {
  width: 100%; max-width: 860px;
  display: flex; flex-direction: column;
}

/* ── Chat Window ──────────────────────────────────────────── */
.chat-window {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  height: 580px;
  max-height: 75vh;
  width: 100%;
}

.chat-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  background: rgba(108,99,255,0.08);
  border-bottom: 1px solid var(--border);
}

.chat-avatar { position: relative; }
.avatar-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(var(--primary), var(--secondary), var(--accent), var(--primary));
  animation: rotate 3s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.avatar-inner {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--dark-3); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; position: relative; z-index: 1;
}
.avatar-status {
  position: absolute; bottom: 2px; right: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--success); border: 2px solid var(--dark-3); z-index: 2;
}

.chat-header-info h3 { font-size: 1rem; font-weight: 700; }
.status-text { font-size: 0.78rem; color: var(--success); }
.chat-header-badge {
  margin-left: auto; padding: 6px 14px;
  background: rgba(39,201,122,0.15); color: var(--success);
  border: 1px solid rgba(39,201,122,0.3); border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
}

/* ── Messages ─────────────────────────────────────────────── */
.messages-area {
  flex: 1; overflow-y: auto; padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  scroll-behavior: smooth;
}

.messages-area::-webkit-scrollbar { width: 4px; }
.messages-area::-webkit-scrollbar-track { background: transparent; }
.messages-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.message { display: flex; gap: 10px; animation: msgIn 0.4s ease; }
@keyframes msgIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.message.bot { align-items: flex-start; }
.message.user { align-items: flex-end; flex-direction: row-reverse; }

.msg-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

.msg-bubble {
  max-width: 75%; padding: 14px 18px; border-radius: 18px;
  font-size: 0.92rem; line-height: 1.65; white-space: pre-wrap;
}

.message.bot .msg-bubble {
  background: var(--dark-4);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.message.user .msg-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-bottom-right-radius: 4px; color: #fff;
}

.typing-indicator {
  display: flex; align-items: center; gap: 10px;
  animation: msgIn 0.3s ease;
}
.typing-dots { display:flex; gap:4px; padding: 14px 18px; background: var(--dark-4); border-radius: 18px; border-bottom-left-radius:4px; border:1px solid var(--border); }
.typing-dots span { width:8px; height:8px; background:var(--text-muted); border-radius:50%; animation:typing 1.2s ease infinite; }
.typing-dots span:nth-child(2){animation-delay:0.2s}
.typing-dots span:nth-child(3){animation-delay:0.4s}

/* ── Progress ─────────────────────────────────────────────── */
.progress-bar-wrap {
  padding: 12px 24px; border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}
.progress-label { display:flex; justify-content:space-between; font-size:0.78rem; color:var(--text-muted); margin-bottom:8px; }
.progress-track { height:4px; background:rgba(255,255,255,0.08); border-radius:2px; overflow:hidden; }
.progress-fill { height:100%; background:linear-gradient(90deg, var(--primary), var(--accent)); border-radius:2px; transition:width 0.5s ease; }

/* ── Input Area ───────────────────────────────────────────── */
.input-area {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.1);
}

.input-row {
  display: flex; gap: 12px; align-items: flex-end;
}

.chat-input {
  flex: 1; background: var(--dark-3); border: 2px solid var(--border);
  border-radius: 18px; padding: 18px 22px; color: var(--text);
  font-family: inherit; font-size: 1rem;
  resize: none; min-height: 62px; max-height: 180px;
  transition: all 0.3s ease; outline: none;
}
.chat-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.chat-input::placeholder { color: var(--text-muted); }

.chat-select {
  flex: 1; background: var(--dark-3); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 14px 18px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  transition: var(--transition); outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236C63FF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.chat-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.chat-select option { background: var(--dark-3); }

.radio-group { display:flex; flex-direction:column; gap:10px; width:100%; }
.radio-option {
  display:flex; align-items:center; gap:12px;
  padding:12px 16px; border-radius:12px;
  border:1.5px solid var(--border); background:var(--dark-3);
  cursor:pointer; transition:var(--transition);
  font-size:0.9rem;
}
.radio-option:hover { border-color:var(--primary); background:rgba(108,99,255,0.08); }
.radio-option input[type=radio] { accent-color:var(--primary); width:16px; height:16px; }
.radio-option.selected { border-color:var(--primary); background:rgba(108,99,255,0.12); }

.btn-send {
  width: 62px; height: 62px; border-radius: 18px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(108,99,255,0.4);
  position: relative; overflow: hidden;
}
.btn-send:before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.6s;
}
.btn-send:hover:before { left: 100%; }
.btn-send:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 12px 35px rgba(108,99,255,0.5); }
.btn-send:active { transform: scale(0.95); }
.btn-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-skip {
  width: 100%; padding: 10px; text-align: center;
  color: var(--text-muted); font-size: 0.82rem; cursor: pointer;
  background: none; border: none; margin-top: 8px;
  transition: var(--transition);
}
.btn-skip:hover { color: var(--text); }

/* ── Service Picker ───────────────────────────────────────── */
.service-picker {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(20px);
  animation: msgIn 0.4s ease;
}

.sp-header {
  padding: 24px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 16px;
}
.sp-header-icon { font-size: 2rem; flex-shrink: 0; }
.sp-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.sp-header p { color: var(--text-muted); font-size: 0.85rem; }

.sp-categories {
  display: flex; gap: 10px; padding: 20px 28px 12px;
  overflow-x: auto; 
  flex-wrap: wrap; /* Allow wrapping on larger containers */
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.05);
}
/* Show a subtle scrollbar on mobile if it overflows */
.sp-categories::-webkit-scrollbar { height: 4px; }
.sp-categories::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }


.cat-tab {
  padding: 8px 18px; border-radius: 50px; white-space: nowrap;
  border: 1.5px solid var(--border); background: var(--dark-3);
  color: var(--text-muted); font-size: 0.85rem; cursor: pointer;
  transition: var(--transition);
}
.cat-tab:hover, .cat-tab.active {
  background: rgba(108,99,255,0.15); border-color: var(--primary); color: var(--primary);
}

.sp-services {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: 20px 28px;
}

.service-card {
  padding: 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--dark-3);
  cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column; gap: 8px; position: relative;
}
.service-card:hover { border-color: var(--primary); background: rgba(108,99,255,0.06); }
.service-card.selected { border-color: var(--primary); background: rgba(108,99,255,0.1); }
.sc-check {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(108,99,255,0.15); color: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; transition: var(--transition);
  border: 1.5px solid var(--border);
}
.service-card.selected .sc-check {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.sc-name { font-weight: 600; font-size: 0.9rem; padding-right: 28px; }
.sc-desc { color: var(--text-muted); font-size: 0.78rem; line-height: 1.5; }
.sc-price { color: var(--primary); font-weight: 700; font-size: 0.95rem; margin-top: 4px; }
.sc-unit { color: var(--text-muted); font-size: 0.72rem; }

.sp-summary {
  padding: 24px 28px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}

.sp-summary h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 12px; }

.sp-selected-list { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.sp-selected-item {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:10px 14px; background: var(--dark-3); border-radius: var(--radius-sm);
  font-size:0.85rem;
}
.sp-selected-item span:first-child { flex:1; }
.si-price { color:var(--primary); font-weight:600; white-space:nowrap; }
.si-remove {
  background: none; border: none; color:var(--danger); cursor:pointer;
  font-size:1rem; transition:var(--transition); padding: 4px;
  border-radius: 4px; line-height: 1; flex-shrink: 0;
}
.si-remove:hover { transform:scale(1.15); background: rgba(255,77,109,0.1); }

.sp-total {
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px; background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.25); border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.sp-total span { color:var(--text-muted); font-size:0.9rem; }
.sp-total strong { font-size:1.3rem; color:var(--primary); }

.btn-confirm-services {
  width:100%; padding:18px; border-radius:16px; border:none; cursor:pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff; font-family:inherit; font-weight:700; font-size:1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 30px rgba(108,99,255,0.4);
  position: relative; overflow: hidden;
}
.btn-confirm-services:before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.7s;
}
.btn-confirm-services:hover:before { left: 100%; }
.btn-confirm-services:hover { transform: translateY(-4px); box-shadow: 0 15px 45px rgba(108,99,255,0.5); }

/* ── Success Modal ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.modal-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 24px; padding: 48px 40px; max-width: 480px; width: 100%;
  text-align: center; box-shadow: var(--shadow-lg);
  animation: modalIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn { from{opacity:0;transform:scale(0.85)} to{opacity:1;transform:scale(1)} }

.modal-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; }
.modal-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.modal-card p { color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.modal-quote-num {
  background: rgba(108,99,255,0.12); border: 1px solid rgba(108,99,255,0.3);
  border-radius: 12px; padding: 12px 20px; font-size: 1.2rem; font-weight: 800;
  color: var(--primary); margin-bottom: 28px; letter-spacing: 0.05em;
}
.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.btn-download {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.3);
}

.btn-new-quote {
  width: 100%;
  padding: 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-new-quote:hover { color: var(--text); transform: translateY(-2px); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  position:relative; z-index:1;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 1rem; font-weight: 600; color: var(--text);
}
.footer-links {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
}
.footer-links a {
  color: var(--text-muted); font-size: 0.88rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); opacity: 1; }
.footer-copy { color: var(--text-muted); font-size: 0.78rem; }

/* ══════════════════════════════════════════════════════════
   ADMIN PANEL STYLES
   ══════════════════════════════════════════════════════════ */

/* ── Admin Login ──────────────────────────────────────────── */
.admin-body {
  background: var(--dark);
  min-height: 100vh; display:flex; align-items:center; justify-content:center;
  padding:20px;
}

.login-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 24px; padding: 48px 40px; max-width: 420px; width:100%;
  backdrop-filter:blur(20px); box-shadow:var(--shadow-lg);
}

.login-logo { text-align:center; margin-bottom:32px; }
.login-logo .logo-icon { width:64px; height:64px; border-radius:20px; margin:0 auto 16px; }
.login-logo h1 { font-size:1.6rem; font-weight:800; }
.login-logo p { color:var(--text-muted); font-size:0.9rem; }

.form-group { margin-bottom:20px; }
.form-group label { display:block; font-size:0.85rem; font-weight:600; margin-bottom:8px; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.05em; }
.form-group input, .form-group select, .form-group textarea {
  width:100%; background:var(--dark-3); border:1.5px solid var(--border);
  border-radius:12px; padding:14px 18px; color:var(--text);
  font-family:'Inter',sans-serif; font-size:0.95rem; outline:none; transition:var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color:var(--primary); box-shadow:0 0 0 3px rgba(108,99,255,0.15);
}
.form-group textarea { resize:vertical; min-height:100px; }

.btn-primary {
  width:100%; padding:16px; border-radius:14px; border:none; cursor:pointer;
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff; font-family:'Inter',sans-serif; font-weight:700; font-size:1rem;
  transition:var(--transition); box-shadow:0 4px 20px rgba(108,99,255,0.4);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(108,99,255,0.5); }

.alert-error {
  background:rgba(255,77,109,0.12); border:1px solid rgba(255,77,109,0.3);
  border-radius:12px; padding:12px 16px; color:var(--danger); font-size:0.88rem;
  margin-bottom:20px;
}
.alert-success {
  background:rgba(39,201,122,0.12); border:1px solid rgba(39,201,122,0.3);
  border-radius:12px; padding:12px 16px; color:var(--success); font-size:0.88rem;
  margin-bottom:20px;
}

/* ── Admin Layout ─────────────────────────────────────────── */
.admin-wrap { display:flex; min-height:100vh; }

.admin-sidebar {
  width: 260px; flex-shrink:0;
  background: var(--dark-2);
  border-right: 1px solid var(--border);
  display:flex; flex-direction:column;
  position: fixed; top:0; left:0; bottom:0; overflow-y:auto;
  z-index:50;
}

.sidebar-brand {
  padding:24px 20px; border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:12px;
}
.sidebar-brand .logo-icon { width:40px; height:40px; border-radius:12px; flex-shrink:0; }
.sidebar-brand span { font-size:1.1rem; font-weight:800; }
.sidebar-brand small { display:block; font-size:0.7rem; color:var(--text-muted); }

.sidebar-nav { padding:16px 12px; flex:1; }
.nav-section { margin-bottom:24px; }
.nav-section-title {
  font-size:0.68rem; text-transform:uppercase; letter-spacing:0.1em;
  color:var(--text-muted); padding:0 10px; margin-bottom:8px;
}

.nav-link {
  display:flex; align-items:center; gap:12px;
  padding:10px 12px; border-radius:10px; color:var(--text-muted);
  font-size:0.88rem; font-weight:500; transition:var(--transition);
  margin-bottom:2px;
}
.nav-link:hover { background:rgba(108,99,255,0.1); color:var(--text); opacity:1; }
.nav-link.active { background:rgba(108,99,255,0.15); color:var(--primary); }
.nav-link svg { flex-shrink:0; }

.sidebar-footer {
  padding:16px 12px; border-top:1px solid var(--border);
}
.admin-user {
  display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px;
  background:var(--glass); margin-bottom:8px;
}
.user-avatar {
  width:36px; height:36px; border-radius:50%;
  background:linear-gradient(135deg, var(--primary), var(--accent));
  display:flex; align-items:center; justify-content:center;
  font-size:0.85rem; font-weight:700; flex-shrink:0;
}
.user-info small { display:block; font-size:0.7rem; color:var(--text-muted); }
.user-info span { font-size:0.85rem; font-weight:600; }
.btn-logout {
  display:block; width:100%; padding:10px 12px; border-radius:10px;
  color:var(--danger); background:rgba(255,77,109,0.08);
  border:1px solid rgba(255,77,109,0.2); text-align:center;
  font-size:0.85rem; font-weight:600; transition:var(--transition); cursor:pointer;
}
.btn-logout:hover { background:rgba(255,77,109,0.15); opacity:1; }

/* ── Admin Main ───────────────────────────────────────────── */
.admin-main {
  flex:1; margin-left:260px; padding:32px;
  min-height:100vh;
}

.page-header { margin-bottom:32px; }
.page-header h1 { font-size:1.8rem; font-weight:800; margin-bottom:6px; }
.page-header p { color:var(--text-muted); font-size:0.9rem; }
.page-header-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:32px; }

/* ── Stat Cards ───────────────────────────────────────────── */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:20px; margin-bottom:32px; }

.stat-card {
  background:var(--card-bg); border:1px solid var(--border);
  border-radius:var(--radius); padding:24px; position:relative; overflow:hidden;
  backdrop-filter:blur(10px); transition:var(--transition);
}
.stat-card:hover { transform:translateY(-3px); border-color:rgba(108,99,255,0.4); }
.stat-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, var(--primary), var(--accent));
}
.stat-card-icon {
  width:48px; height:48px; border-radius:14px; margin-bottom:16px;
  display:flex; align-items:center; justify-content:center; font-size:1.3rem;
}
.stat-card-icon.purple { background:rgba(108,99,255,0.15); }
.stat-card-icon.green  { background:rgba(39,201,122,0.15); }
.stat-card-icon.orange { background:rgba(255,187,51,0.15); }
.stat-card-icon.pink   { background:rgba(255,101,132,0.15); }
.stat-card h3 { font-size:2rem; font-weight:800; margin-bottom:4px; }
.stat-card p { color:var(--text-muted); font-size:0.82rem; }
.stat-trend { font-size:0.75rem; color:var(--success); display:flex; align-items:center; gap:4px; margin-top:8px; }

/* ── Data Table ───────────────────────────────────────────── */
.table-card {
  background:var(--card-bg); border:1px solid var(--border);
  border-radius:var(--radius); overflow:hidden; backdrop-filter:blur(10px);
}

.table-card-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 24px; border-bottom:1px solid var(--border); flex-wrap:wrap; gap:12px;
}
.table-card-header h3 { font-size:1rem; font-weight:700; }

.search-box {
  display:flex; align-items:center; gap:10px;
  background:var(--dark-3); border:1px solid var(--border);
  border-radius:10px; padding:8px 14px; transition:var(--transition);
}
.search-box:focus-within { border-color:var(--primary); }
.search-box input { background:none; border:none; color:var(--text); font-size:0.88rem; outline:none; width:200px; }
.search-box svg { color:var(--text-muted); flex-shrink:0; }

.data-table { width:100%; border-collapse:collapse; }
.data-table th {
  padding:12px 16px; text-align:left;
  font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em;
  color:var(--text-muted); background:rgba(0,0,0,0.15);
  border-bottom:1px solid var(--border);
}
.data-table td {
  padding:14px 16px; font-size:0.88rem;
  border-bottom:1px solid rgba(255,255,255,0.04);
  transition:var(--transition);
}
.data-table tr:hover td { background:rgba(108,99,255,0.04); }
.data-table tr:last-child td { border-bottom:none; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  padding:5px 12px; border-radius:50px; font-size:0.72rem; font-weight:700;
  text-transform:uppercase; letter-spacing:0.05em;
}
.badge-new      { background:rgba(108,99,255,0.15); color:var(--primary); }
.badge-reviewed { background:rgba(255,187,51,0.15);  color:var(--warning); }
.badge-sent     { background:rgba(67,198,172,0.15);   color:var(--accent); }
.badge-accepted { background:rgba(39,201,122,0.15);   color:var(--success); }
.badge-rejected { background:rgba(255,77,109,0.15);   color:var(--danger); }

/* ── Action Buttons ───────────────────────────────────────── */
.btn-icon {
  width:34px; height:34px; border-radius:8px; border:none; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  transition:var(--transition); font-size:0.85rem;
}
.btn-edit  { background:rgba(108,99,255,0.12); color:var(--primary); }
.btn-delete{ background:rgba(255,77,109,0.12); color:var(--danger); }
.btn-view  { background:rgba(67,198,172,0.12); color:var(--accent); }
.btn-icon:hover { transform:scale(1.1); }

.btn-sm {
  padding:8px 18px; border-radius:10px; border:none; cursor:pointer;
  font-family:'Inter',sans-serif; font-weight:600; font-size:0.82rem;
  transition:var(--transition); display:inline-flex; align-items:center; gap:8px;
}
.btn-primary-sm {
  background:linear-gradient(135deg, var(--primary), var(--primary-dark));
  color:#fff; box-shadow:0 2px 12px rgba(108,99,255,0.3);
}
.btn-primary-sm:hover { transform:translateY(-1px); box-shadow:0 4px 20px rgba(108,99,255,0.45); }

.btn-danger-sm { background:rgba(255,77,109,0.1); color:var(--danger); border:1px solid rgba(255,77,109,0.2); }
.btn-danger-sm:hover { background:rgba(255,77,109,0.2); }

/* ── Modal (Admin) ────────────────────────────────────────── */
.modal-backdrop {
  display:none; position:fixed; inset:0; z-index:200;
  background:rgba(0,0,0,0.7); backdrop-filter:blur(6px);
  align-items:center; justify-content:center; padding:20px;
}
.modal-backdrop.open { display:flex; animation:fadeIn 0.2s ease; }
.modal-box {
  background:var(--dark-3); border:1px solid var(--border);
  border-radius:24px; padding:36px; max-width:560px; width:100%;
  max-height:90vh; overflow-y:auto; box-shadow:var(--shadow-lg);
  animation:modalIn 0.3s ease;
}
.modal-box h3 { font-size:1.2rem; font-weight:800; margin-bottom:24px; }
.modal-footer { display:flex; gap:12px; justify-content:flex-end; margin-top:24px; }

/* ── Quotation Detail ─────────────────────────────────────── */
.quote-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:28px; }
.detail-card { background:var(--dark-3); border:1px solid var(--border); border-radius:var(--radius-sm); padding:20px; }
.detail-card h4 { font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-muted); margin-bottom:14px; }
.detail-row { display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
.detail-row:last-child { margin-bottom:0; }
.detail-row .dr-label { font-size:0.75rem; color:var(--text-muted); }
.detail-row .dr-value { font-size:0.92rem; font-weight:500; }

.items-table-wrap { margin-bottom:24px; }
.items-total { display:flex; flex-direction:column; align-items:flex-end; gap:6px; padding:16px; }
.total-row { display:flex; gap:60px; font-size:0.88rem; }
.total-row.grand { font-size:1.1rem; font-weight:800; color:var(--primary); padding-top:8px; border-top:1px solid var(--border); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-section { flex-direction:column; padding:100px 20px 60px; }
  .hero-visual { display:none; }
  .admin-sidebar { width:220px; }
  .admin-main { margin-left:220px; padding:20px; }
  .sp-services { grid-template-columns:1fr; }
  .quote-detail-grid { grid-template-columns:1fr; }
}

@media (max-width: 600px) {
  .hero-header { padding:14px 20px; }
  .admin-sidebar { transform:translateX(-100%); }
  .admin-main { margin-left:0; }
  .stats-grid { grid-template-columns:1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════
   NEW SECTIONS — How It Works · Services Preview · Chat UX
   ══════════════════════════════════════════════════════════ */

/* ── Section Common ──────────────────────────────────────── */
.section-label {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: rgba(108,99,255,0.12); color: var(--primary);
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  margin-bottom: 12px; color: var(--text);
}
.section-sub {
  color: var(--text-muted); font-size: 1rem; line-height: 1.7;
  max-width: 500px; margin: 0 auto;
}

/* ── How It Works ────────────────────────────────────────── */
.hiw-section {
  position: relative; z-index: 1;
  padding: 100px 20px;
  text-align: center;
  background: rgba(108,99,255,0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hiw-inner { max-width: 1100px; margin: 0 auto; }

.hiw-grid {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 12px; margin-top: 60px; flex-wrap: wrap;
}
.hiw-card {
  flex: 1; min-width: 220px; max-width: 300px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  transition: var(--transition); position: relative;
  backdrop-filter: blur(10px);
}
.hiw-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow); }
.hiw-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em; padding: 4px 14px; border-radius: 50px;
}
.hiw-icon { font-size: 2.4rem; margin-bottom: 16px; display: block; }
.hiw-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.hiw-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }
.hiw-connector {
  font-size: 1.8rem; color: var(--text-muted); align-self: center;
  padding: 0 4px; margin-top: 20px;
}

/* ── Services Preview ────────────────────────────────────── */
.services-preview {
  position: relative; z-index: 1;
  padding: 100px 20px;
  text-align: center;
}
.sp-inner { max-width: 1200px; margin: 0 auto; }

.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px; text-align: left;
}
.svc-cat-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: var(--transition); backdrop-filter: blur(10px);
}
.svc-cat-card:hover { transform: translateY(-4px); border-color: rgba(108,99,255,0.4); box-shadow: var(--shadow); }
.svc-cat-card.svc-cat-cta { border-color: rgba(108,99,255,0.3); background: rgba(108,99,255,0.05); display: flex; flex-direction: column; }
.svc-cat-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.svc-cat-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.svc-cat-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }
.svc-from { margin-top: 16px; font-size: 0.85rem; color: var(--text-muted); }
.svc-from strong { color: var(--primary); font-size: 1rem; }

/* ── Chat Intro Banner ───────────────────────────────────── */
.chat-intro {
  display: flex; align-items: center; gap: 16px;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 14px; padding: 18px 24px;
  margin-bottom: 4px;
}
.ci-icon { font-size: 2rem; flex-shrink: 0; }
.ci-text {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
}
.ci-text strong { font-size: 0.95rem; font-weight: 700; }
.ci-text span { font-size: 0.82rem; color: var(--text-muted); }
.ci-badge {
  padding: 6px 14px; background: rgba(39,201,122,0.1);
  border: 1px solid rgba(39,201,122,0.25); border-radius: 50px;
  font-size: 0.7rem; font-weight: 700; color: var(--success);
  white-space: nowrap; letter-spacing: 0.06em;
}

/* ── Chat Placeholder ────────────────────────────────────── */
.chat-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  flex: 1; padding: 60px 24px; gap: 16px;
}
.cp-wave {
  font-size: 3rem;
  animation: wave 2s ease-in-out infinite;
}
@keyframes wave {
  0%,100% { transform: rotate(0deg); }
  25%      { transform: rotate(20deg); }
  75%      { transform: rotate(-10deg); }
}
.chat-placeholder p {
  font-size: 1.05rem; color: var(--text); line-height: 1.7;
}
.btn-start-chat {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 14px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 8px 30px rgba(108,99,255,0.4);
  transition: var(--transition); margin-top: 8px;
}
.btn-start-chat:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(108,99,255,0.5); }

/* ── Shake animation ─────────────────────────────────────── */
@keyframes shake-anim {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(4px); }
}
.shake-anim { animation: shake-anim 0.45s ease; }

/* ── MOBILE MENU & RESPONSIVE ────────────────────────────── */

/* Hamburger Button */
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}
.nav-toggle-btn span {
  width: 25px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 1100px) {
  .hero-section { flex-direction: column; text-align: center; padding-top: 140px; }
  .hero-content { max-width: 800px; margin: 0 auto 60px; display: flex; flex-direction: column; align-items: center; }
  .hero-visual { width: 100%; max-width: 400px; margin: 0 auto; height: 450px; }
  .hero-phone { position: relative; left: auto; right: auto; margin: 0 auto; }
  .hero-steps { justify-content: center; }
  .hero-cta-row { justify-content: center; }
  .hero-stats { justify-content: center; }
}

@media (max-width: 900px) {
  .hero-header { padding: 15px 20px; }
  .nav-toggle-btn { display: flex; }
  
  .hero-nav {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--dark-2);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 30px;
    gap: 20px;
    align-items: flex-start;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1000;
  }
  
  .btn-hero, .btn-admin { width: 100%; text-align: center; }
  .nav-toggle-chk:checked ~ .hero-nav { right: 0; }
  .nav-toggle-chk:checked + .nav-toggle-btn .top { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-chk:checked + .nav-toggle-btn .mid { opacity: 0; }
  .nav-toggle-chk:checked + .nav-toggle-btn .bot { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 768px) {
  .hero-section { padding: 120px 20px 60px; min-height: auto; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); margin: 20px 0; }
  .hero-steps { flex-direction: column; gap: 20px; align-items: flex-start; margin-top: 40px; }
  .hs-arrow { transform: rotate(90deg); margin: 0 auto; opacity: 0.3; }
  
  .svc-grid { grid-template-columns: 1fr; }
  .hiw-grid { grid-template-columns: 1fr; }
  .hiw-card { max-width: 100%; }
  .hiw-connector { display: none; }
  
  .chat-intro { flex-direction: column; text-align: center; }
  .ci-badge { width: 100%; }
  
  .modal-card { padding: 30px 20px; border-radius: 18px; }
  .modal-buttons { flex-direction: column; }
  
  .sp-header { flex-direction: column; text-align: center; padding: 20px; }
  .sp-categories { padding: 15px 15px 10px; }
  .sp-services { grid-template-columns: 1fr; padding: 15px; }
  .floating-card { display: none; } /* Less clutter */
}

@media (max-width: 480px) {
  /* ── GLOBAL ─────────────────────────────────── */
  html, body { overflow-x: hidden; }
  
  /* ── STICKY NAV (60px) ──────────────────────── */
  .hero-header {
    position: sticky; top: 0; z-index: 9000;
    height: 56px; padding: 0 16px;
    background: rgba(10, 10, 30, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center;
  }
  .hero-logo img { height: 28px !important; }
  .hero-nav, .hero-features, .hero-visual, .floating-card,
  .hiw-section, .services-preview { display: none !important; }
  
  /* ── HERO: compact billboard ─────────────────── */
  .hero-section { padding: 0; min-height: 0; }
  .hero-content { 
    padding: 28px 20px 24px; text-align: center;
  }
  .hero-badge { margin-bottom: 14px; font-size: 0.75rem; }
  .hero-steps { display: none; }
  .hero-title { font-size: 1.55rem; line-height: 1.22; margin-bottom: 10px; }
  .hero-desc { font-size: 0.88rem; line-height: 1.55; opacity: 0.78; margin-bottom: 20px; }
  .hero-cta-row { justify-content: center; }
  .btn-cta { padding: 14px 28px; font-size: 0.92rem; width: 100%; justify-content: center; }
  .cta-note { font-size: 0.76rem; }
  .hero-stats { 
    padding: 14px 20px 0; 
    display: flex; justify-content: center; gap: 6px;
    flex-wrap: wrap;
  }
  .stat-divider { display: none; }
  .stat { font-size: 0.78rem; padding: 4px 10px; background: rgba(255,255,255,0.05); border-radius: 8px; }
  
  /* ── CHAT SECTION: fills remaining screen ───── */
  .chat-section {
    padding: 16px 12px 32px;
  }
  .chat-intro { display: none !important; }
  .chat-container {
    height: 72vh;          /* 72% of screen — shows content above/below */
    min-height: 440px;
    border-radius: 22px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.55);
    overflow: hidden;
  }
  .chat-window {
    height: 100%; display: flex; flex-direction: column;
    border-radius: 22px; overflow: hidden;
  }
  
  /* CHAT HEADER */
  .chat-header {
    flex-shrink: 0; height: 64px;
    padding: 0 14px; gap: 10px;
    background: rgba(20, 20, 50, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex; align-items: center;
  }
  .avatar-inner { width: 34px; height: 34px; font-size: 1rem; }
  .chat-header-info h2, .chat-header-info h3 { font-size: 0.9rem; margin: 0 0 2px; }
  .status-text { font-size: 0.65rem; white-space: nowrap; }
  .chat-header-badge { display: none; }
  
  /* MESSAGES AREA */
  .messages-area {
    flex: 1; min-height: 0;
    padding: 14px 12px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .msg-avatar { font-size: 1rem; }
  .msg-bubble { font-size: 0.88rem; padding: 11px 14px; border-radius: 16px; max-width: 88%; line-height: 1.45; }
  
  /* PROGRESS BAR */
  .progress-bar-wrap {
    flex-shrink: 0; padding: 6px 14px;
    background: rgba(255,255,255,0.02);
  }
  .pb-meta { font-size: 0.68rem; }
  
  /* INPUT AREA */
  .input-area {
    flex-shrink: 0;
    padding: 10px 12px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    background: rgba(16, 16, 42, 0.98);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .input-row { display: flex; gap: 8px; align-items: center; }
  .chat-input {
    flex: 1; height: 48px;
    font-size: 1rem; border-radius: 12px;
    padding: 0 14px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.12);
    min-width: 0; /* prevent overflow */
  }
  .btn-send {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 12px;
  }
  .btn-skip { font-size: 0.78rem; margin-top: 6px; }
  
  /* PLACEHOLDER */
  .cp-wave { font-size: 2rem; }
  .chat-placeholder h3 { font-size: 1rem; }
  .chat-placeholder p { font-size: 0.85rem; }
  .btn-start-chat { padding: 14px 28px; font-size: 0.92rem; width: 100%; }
  
  /* SERVICE PICKER */
  .service-picker {
    position: fixed; inset: 0; z-index: 8000;
    border-radius: 0; padding: 16px;
    overflow-y: auto;
  }
  .sp-header { flex-direction: column; gap: 8px; text-align: center; padding: 16px; }
  .sp-categories { gap: 6px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sp-cat-btn { flex-shrink: 0; padding: 8px 14px; font-size: 0.8rem; }
  .sp-services { grid-template-columns: 1fr; gap: 10px; padding-bottom: 120px; }
  .sp-summary { padding: 12px 16px; }
  .btn-confirm-services { padding: 14px; font-size: 0.9rem; }
  
  /* MODALS */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-card { 
    width: 100%; border-radius: 28px 28px 0 0; 
    padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
    margin: 0;
  }
  .modal-icon { font-size: 2.5rem; }
  .modal-buttons { flex-direction: column; gap: 10px; }
  .btn-download, .btn-new-quote { width: 100%; justify-content: center; text-align: center; }
}

/* ── Language Switcher ────────────────────────────────────── */
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.btn-lang {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none !important;
}
.btn-lang:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.btn-lang.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

/* ── RTL SUPPORT ─────────────────────────────────────────── */
[dir="rtl"] {
  font-family: 'Inter', 'Noto Sans Arabic', system-ui, sans-serif;
}

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .hero-header { padding: 16px 40px; }
[dir="rtl"] .hero-nav { margin-right: auto; margin-left: 0; }
[dir="rtl"] .admin-sidebar { left: auto; right: 0; border-right: none; border-left: 1px solid var(--border); }
[dir="rtl"] .admin-main { margin-left: 0; margin-right: 260px; text-align: right; }

[dir="rtl"] .stat-divider { margin: 0 10px; }
[dir="rtl"] .badge-dot { margin-left: 8px; margin-right: 0; }
[dir="rtl"] .btn-cta svg { transform: scaleX(-1); }
[dir="rtl"] .btn-cta:hover svg { transform: scaleX(-1) translateX(4px); }

[dir="rtl"] .cp-msg.bot { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; align-self: flex-start; }
[dir="rtl"] .cp-msg.user { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; align-self: flex-end; }

[dir="rtl"] .floating-card { gap: 12px; }
[dir="rtl"] .card-1 { left: auto; right: -20px; }
[dir="rtl"] .card-2 { right: auto; left: -30px; }
[dir="rtl"] .card-3 { left: auto; right: -30px; }
[dir="rtl"] .card-4 { right: auto; left: -20px; }

[dir="rtl"] .hiw-num { left: auto; right: 50%; transform: translateX(50%); }
[dir="rtl"] .hiw-connector { transform: scaleX(-1); }

[dir="rtl"] .svc-grid { text-align: right; }
[dir="rtl"] .svc-cat-icon { margin-left: auto; margin-right: 0; }

[dir="rtl"] .chat-header { gap: 14px; flex-direction: row; }
[dir="rtl"] .chat-header-badge { margin-left: 0; margin-right: auto; }

[dir="rtl"] .message.user { flex-direction: row; }
[dir="rtl"] .message.bot .msg-bubble { border-bottom-left-radius: 4px; border-bottom-right-radius: 18px; }
[dir="rtl"] .message.user .msg-bubble { border-bottom-right-radius: 4px; border-bottom-left-radius: 18px; }

[dir="rtl"] .chat-select {
  background-position: left 16px center;
  padding: 14px 18px;
}

[dir="rtl"] .btn-confirm-services svg { transform: scaleX(-1); }
[dir="rtl"] .sc-check { right: auto; left: 10px; }
[dir="rtl"] .sc-name { padding-right: 0; padding-left: 28px; }

[dir="rtl"] .footer-brand img { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .footer-brand .logo-icon { margin-right: 0; margin-left: 10px; }

@media (max-width: 900px) {
  [dir="rtl"] .hero-nav { right: auto; left: -100%; transition: 0.4s; }
  [dir="rtl"] .nav-toggle-chk:checked ~ .hero-nav { left: 0; right: auto; }
}

[dir="rtl"] .modal-icon.success { transform: scaleX(-1); }

/* ── Login Page (Premium Redesign) ───────────────────────── */
.admin-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  background: var(--dark);
  position: relative;
  overflow-x: hidden;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  animation: modalIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 20px;
    border-radius: 20px;
    margin: 20px auto;
  }
  .login-logo { margin-bottom: 24px; }
  .login-logo h1 { font-size: 1.5rem; }
  .login-logo .logo-icon { width: 50px; height: 50px; }
}

.login-logo {
  text-align: center;
  margin-bottom: 40px;
}
.login-logo .logo-icon {
  margin: 0 auto 16px;
  width: 64px; height: 64px;
}
.login-logo h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}
.login-logo p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.login-card .form-group {
  margin-bottom: 24px;
}
.login-card .form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.login-card .form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}
.login-card .form-group input:focus {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.08);
  outline: none;
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.login-card .btn-primary {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 12px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(108,99,255,0.3);
  position: relative; overflow: hidden;
}
.login-card .btn-primary:before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.6s;
}
.login-card .btn-primary:hover:before { left: 100%; }
.login-card .btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 45px rgba(108, 99, 255, 0.5);
  filter: brightness(1.1);
  opacity: 1;
}

[dir="rtl"] .login-card {
  text-align: right;
}

.btn-whatsapp-share {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #25D366;
  color: #fff !important;
  padding: 18px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  position: relative; overflow: hidden;
}
.btn-whatsapp-share:before {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.6s;
}
.btn-whatsapp-share:hover:before { left: 100%; }
.btn-whatsapp-share:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
  filter: brightness(1.05);
}

/* ── RTL Arrow & Connector Flip ────────────────────────────── */
[dir="rtl"] .hs-arrow,
[dir="rtl"] .hiw-connector,
[dir="rtl"] .rtl-flip,
[dir="rtl"] .btn-cta svg:not(.logo-icon svg),
[dir="rtl"] .hero-nav-wrap .btn-hero svg,
[dir="rtl"] .login-card .btn-primary svg {
  display: inline-block;
  transform: scaleX(-1);
}

/* ── Loading Animation ───────────────────────────────────── */
.loader-ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 5px solid rgba(108,99,255,0.1);
  border-top: 5px solid var(--primary);
  animation: spinLoader 1s linear infinite;
  margin: 0 auto;
}
@keyframes spinLoader { 100% { transform: rotate(360deg); } }
