/* ============================================================
   Ditecho — Main Stylesheet
   Dark theme: #0a0a0f bg | #6c63ff primary | #00d4ff accent
   ============================================================ */

:root {
  --bg-primary:   #0a0a0f;
  --bg-secondary: #0d0d1a;
  --bg-card:      #111128;
  --primary:      #6c63ff;
  --primary-dark: #5548e0;
  --accent:       #00d4ff;
  --text:         #e2e8f0;
  --text-muted:   #94a3b8;
  --border:       rgba(108,99,255,.18);
  --border-accent:rgba(0,212,255,.18);
  --gradient:     linear-gradient(135deg, #6c63ff 0%, #00d4ff 100%);
  --glow-primary: 0 0 30px rgba(108,99,255,.35);
  --glow-accent:  0 0 30px rgba(0,212,255,.35);
  --radius:       12px;
  --transition:   all .3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

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

h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.3; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* Selection */
::selection { background: var(--primary); color: #fff; }

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

.section-title {
  font-size: 2.4rem;
  margin-bottom: .5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  margin: 1rem 0 2rem;
}

section { padding: 90px 0; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  background: var(--gradient);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
  color: #fff !important;
}

.btn-outline-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 33px;
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-glow:hover {
  background: var(--primary);
  color: #fff !important;
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,15,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text) !important;
}

.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 900;
}

.nav-logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .92rem;
  position: relative;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Mobile Nav ───────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,15,.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 600;
}
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  animation: floatBlob 8s ease-in-out infinite;
}
.hero-bg .blob-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; right: -200px;
}
.hero-bg .blob-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -100px; left: -100px;
  animation-delay: -4s;
}
.hero-bg .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

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

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(108,99,255,.12);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .8rem;
  color: var(--accent);
  margin-bottom: 24px;
  animation: fadeInDown .6s ease;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp .7s ease;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  animation: fadeInUp .8s ease;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp .9s ease;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: .78rem; color: var(--text-muted); letter-spacing: 1px; }

/* Hero right floating cards */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  width: 300px;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: floatCard 6s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.hero-card-main .avatar {
  width: 80px; height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #fff;
}
.hero-card-main h4 { font-size: 1.1rem; margin-bottom: 4px; }
.hero-card-main p  { font-size: .82rem; color: var(--text-muted); }

.hero-float-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: .82rem;
  white-space: nowrap;
  animation: floatCard 5s ease-in-out infinite;
}
.badge-1 { top: 10%; left: -30px; animation-delay: -2s; }
.badge-2 { bottom: 15%; right: -30px; animation-delay: -4s; }
.badge-3 { top: 50%; left: -50px; animation-delay: -1s; }

@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ── Cards ────────────────────────────────────────────────── */
.card-glow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: var(--transition);
}
.card-glow:hover::before { transform: scaleX(1); }
.card-glow:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-4px);
}

.service-icon {
  width: 60px; height: 60px;
  background: rgba(108,99,255,.12);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}
.card-glow:hover .service-icon {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--glow-primary);
}
.card-glow h4 { font-size: 1.1rem; margin-bottom: 10px; }
.card-glow p  { font-size: .9rem; color: var(--text-muted); }

/* ── Services section ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ── About section ────────────────────────────────────────── */
.about-img-wrap {
  position: relative;
  display: inline-block;
}
.about-img {
  width: 100%; max-width: 440px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
  font-size: 6rem;
  color: rgba(108,99,255,.3);
}
.about-img-glow {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: var(--gradient);
  z-index: -1;
  opacity: .4;
  filter: blur(20px);
}

.skill-bar { margin-bottom: 20px; }
.skill-label {
  display: flex; justify-content: space-between;
  font-size: .88rem; margin-bottom: 8px;
}
.skill-label span:last-child { color: var(--accent); font-weight: 600; }
.skill-track {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s ease;
}

/* ── Why Choose Us ────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}
.why-card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
  transform: translateY(-4px);
}
.why-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.why-card h5 { margin-bottom: 8px; }
.why-card p  { font-size: .88rem; color: var(--text-muted); }

/* ── Technologies ─────────────────────────────────────────── */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.tech-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition);
}
.tech-badge:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--glow-primary);
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 { font-size: 2.4rem; margin-bottom: 16px; }
.cta-section p  { color: var(--text-muted); margin-bottom: 36px; font-size: 1.05rem; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
}

.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(108,99,255,.06);
  box-shadow: 0 0 0 3px rgba(108,99,255,.12);
}
.form-group select option { background: var(--bg-card); }
.form-group textarea { resize: vertical; min-height: 130px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info-icon {
  width: 48px; height: 48px;
  background: rgba(108,99,255,.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-info-item h5 { font-size: .88rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-info-item p  { font-size: .95rem; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 16px; line-height: 1.8; }

.footer-title {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--text); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: var(--text-muted);
}

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

/* ── AI Chatbot Widget ────────────────────────────────────── */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
}

.chat-toggle-btn {
  width: 58px; height: 58px;
  background: var(--gradient);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: var(--glow-primary);
  transition: var(--transition);
  position: relative;
}
.chat-toggle-btn:hover { transform: scale(1.1); }
.chat-toggle-btn .chat-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: chatPulse 2s ease-in-out infinite;
}
@keyframes chatPulse {
  0%,100% { transform: scale(1); opacity: .5; }
  50%      { transform: scale(1.2); opacity: 0; }
}

.chat-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  display: none;
  flex-direction: column;
  max-height: 520px;
  animation: slideUp .3s ease;
}
.chat-panel.open { display: flex; }

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

.chat-header {
  background: var(--gradient);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header-avatar {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.chat-header-info h5 { font-size: .95rem; font-weight: 700; color: #fff; }
.chat-header-info p  { font-size: .75rem; color: rgba(255,255,255,.8); }
.chat-header-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}
.chat-header-close:hover { color: #fff; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  max-height: 320px;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); }

.chat-msg {
  display: flex;
  gap: 10px;
  animation: msgIn .25s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.user { flex-direction: row-reverse; }

.msg-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
}
.chat-msg.ai   .msg-avatar { background: var(--gradient); color: #fff; }
.chat-msg.user .msg-avatar { background: rgba(108,99,255,.2); color: var(--primary); }

.msg-bubble {
  max-width: 240px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .88rem;
  line-height: 1.5;
}
.chat-msg.ai   .msg-bubble { background: rgba(255,255,255,.06); border-bottom-left-radius: 4px; }
.chat-msg.user .msg-bubble { background: var(--gradient); color: #fff; border-bottom-right-radius: 4px; }

.typing-indicator { display: flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing-dot {
  width: 7px; height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingDot 1.4s ease infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-6px); }
}

.chat-input-area {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 16px;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: var(--transition);
}
.chat-input:focus { border-color: var(--primary); }
.chat-send-btn {
  width: 40px; height: 40px;
  background: var(--gradient);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover { transform: scale(1.1); box-shadow: var(--glow-primary); }

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  padding: 140px 0 70px;
  text-align: center;
  background: radial-gradient(ellipse at center top, rgba(108,99,255,.12) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 2.8rem; margin-bottom: 14px; }
.page-hero p  { color: var(--text-muted); font-size: 1.05rem; }
.breadcrumb-custom {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 16px;
}
.breadcrumb-custom a { color: var(--primary); }
.breadcrumb-custom span { color: var(--text-muted); }

/* ── Prose (Privacy, Terms) ───────────────────────────────── */
.prose {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.9;
}
.prose h2 { font-size: 1.5rem; color: var(--text); margin: 40px 0 14px; }
.prose h3 { font-size: 1.15rem; color: var(--text); margin: 28px 0 10px; }
.prose p  { margin-bottom: 18px; }
.prose ul { padding-left: 24px; margin-bottom: 18px; }
.prose ul li { margin-bottom: 8px; }
.prose a { color: var(--primary); }

/* ── Admin ────────────────────────────────────────────────── */
.admin-layout {
  min-height: 100vh;
  display: flex;
}
.admin-sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 30px 0;
  position: fixed;
  top: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.admin-sidebar-logo {
  padding: 0 24px 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.admin-nav { list-style: none; }
.admin-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav li a:hover,
.admin-nav li a.active {
  color: var(--text);
  background: rgba(108,99,255,.08);
  border-left-color: var(--primary);
}
.admin-nav li a i { width: 18px; text-align: center; }

.admin-content {
  margin-left: 260px;
  flex: 1;
  padding: 32px;
  background: var(--bg-primary);
  min-height: 100vh;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.admin-topbar h1 { font-size: 1.6rem; }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary); box-shadow: var(--glow-primary); }
.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.stat-card-num { font-size: 2rem; font-weight: 800; }
.stat-card-label { font-size: .82rem; color: var(--text-muted); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.data-table th {
  background: rgba(108,99,255,.1);
  padding: 14px 16px;
  text-align: left;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  font-size: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(108,99,255,.04); }

.badge-unread {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(0,212,255,.12);
  color: var(--accent);
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-read {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255,255,255,.06);
  color: var(--text-muted);
  border-radius: 50px;
  font-size: .75rem;
}

.btn-sm {
  padding: 6px 14px;
  font-size: .8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}
.btn-danger { background: rgba(239,68,68,.15); color: #f87171; }
.btn-danger:hover { background: #ef4444; color: #fff; }
.btn-info { background: rgba(0,212,255,.12); color: var(--accent); }
.btn-info:hover { background: var(--accent); color: #000; }

/* Admin login */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
}
.admin-login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
}
.admin-login-box h2 { font-size: 1.8rem; margin-bottom: 8px; }
.admin-login-box p  { color: var(--text-muted); margin-bottom: 32px; font-size: .9rem; }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .88rem;
  margin-bottom: 20px;
}
.alert-danger  { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.2); }
.alert-success { background: rgba(16,185,129,.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,.2); }

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

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { width: 220px; }
  .admin-content { margin-left: 220px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 2rem; }
  .hero-visual { display: none; }

  .section-title { font-size: 1.9rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .chat-panel { width: 320px; right: 0; }

  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; padding: 20px; }

  .contact-form-wrap { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-stats { gap: 24px; }
  .section-title { font-size: 1.6rem; }
  .chat-panel { width: calc(100vw - 56px); }
}
