/* ============================
   MAKYTEC — Hoja de Estilos
   Paleta: Navy / Cyan / Gold
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Variables ---- */
:root {
  --navy:      #0A0F1E;
  --navy-2:    #111827;
  --navy-3:    #1a2540;
  --steel:     #1E3A5F;
  --cyan:      #00D4FF;
  --cyan-dim:  #00a8cc;
  --gold:      #FFB800;
  --gold-dim:  #cc9200;
  --platinum:  #E8EDF2;
  --silver:    #8B9BB4;
  --white:     #FFFFFF;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--platinum);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Tipografía ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.text-cyan  { color: var(--cyan); }
.text-gold  { color: var(--gold); }
.text-silver{ color: var(--silver); }

/* ---- Layout ---- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

section { padding: 100px 0; }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 15, 30, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.brand-name span { color: var(--cyan); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  color: var(--navy) !important;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}
.nav-cta::after { display: none !important; }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 8px 12px;
  color: var(--platinum);
  font-size: 1.4rem;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  -webkit-appearance: none;
  appearance: none;
}
.nav-toggle:hover,
.nav-toggle:focus {
  background: rgba(0, 212, 255, 0.1) !important;
  color: var(--cyan);
}
.nav-toggle i {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--platinum);
}

.nav-logout {
  color: #ff6b6b !important;
}
.nav-logout:hover {
  color: #ff4d4d !important;
}

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

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow-1 {
  position: absolute;
  top: -20%;  left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  animation: pulse-glow 6s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute;
  bottom: -20%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.08) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.15); opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--silver);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  color: var(--navy);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.55);
}
.btn-outline {
  background: transparent;
  color: var(--platinum);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy);
  box-shadow: 0 0 25px rgba(255, 184, 0, 0.3);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(255, 184, 0, 0.5);
}
.btn-block { width: 100%; justify-content: center; }

/* ---- Badges de stats ---- */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}
.stat-item { text-align: left; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
}
.stat-num span { color: var(--cyan); }
.stat-label {
  font-size: 0.8rem;
  color: var(--silver);
  letter-spacing: 0.04em;
}

/* ---- Sección: Título ---- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  color: var(--silver);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ---- Servicios ---- */
#servicios { background: var(--navy-2); }

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

.service-card {
  background: var(--navy-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04), transparent);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.25);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,212,255,0.05));
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.service-card h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.service-card p  { color: var(--silver); font-size: 0.9rem; line-height: 1.7; }

.service-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,212,255,0.08);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ---- Software / Licencias ---- */
#software { background: var(--navy); }

.software-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 70px;
}
.software-intro-text p { color: var(--silver); line-height: 1.8; margin-bottom: 1rem; }

.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.license-card {
  background: var(--navy-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.license-card:hover {
  border-color: rgba(255,184,0,0.3);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(255,184,0,0.12);
}
/* Legacy emoji icon (kept for compatibility) */
.license-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  display: block;
}
/* Font Awesome license icon */
.license-icon-fa {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Font Awesome service icon override */
.service-icon i {
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.license-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.license-card p { font-size: 0.78rem; color: var(--silver); }

/* ---- Cta Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--steel) 0%, var(--navy-3) 100%);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 900px;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
}
.cta-banner h2 { margin-bottom: 1rem; position: relative; }
.cta-banner p  { color: var(--silver); margin-bottom: 2rem; position: relative; }
.cta-banner .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---- Contacto ---- */
#contacto { background: var(--navy-2); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.contact-info > p { color: var(--silver); line-height: 1.8; margin-bottom: 2rem; }

.contact-items { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-item-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.contact-item-text span { display: block; font-size: 0.75rem; color: var(--silver); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item-text a, .contact-item-text strong {
  color: var(--platinum);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.contact-item-text a:hover { color: var(--cyan); }

.social-links { display: flex; gap: 12px; margin-top: 2rem; }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.social-link:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--cyan);
  transform: translateY(-3px);
}

/* ---- Formulario ---- */
.contact-form-wrapper {
  background: var(--navy-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--silver);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--platinum);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.form-group select option { background: var(--navy-2); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.alert-success {
  background: rgba(0, 212, 100, 0.1);
  border: 1px solid rgba(0, 212, 100, 0.3);
  color: #00d464;
}
.alert-error {
  background: rgba(255, 60, 60, 0.1);
  border: 1px solid rgba(255, 60, 60, 0.3);
  color: #ff5555;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-about p { color: var(--silver); font-size: 0.9rem; line-height: 1.8; margin: 1rem 0; }
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--platinum);
  margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--silver); font-size: 0.88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--cyan); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-bottom p { color: var(--silver); font-size: 0.82rem; }
.footer-bottom a { color: var(--cyan); }

/* ---- Divider ---- */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.2), transparent);
  margin: 0;
}

/* ---- Global background canvas (floating particles & connecting lines) ---- */
#globalCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.whatsapp-float i {
  font-size: 1.6rem;
  color: #fff;
  line-height: 1;
}
.whatsapp-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
}
/* Pulse ring */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.5);
  animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(0.9); opacity: 1; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---- Scroll top ---- */
#scrollTop {
  position: fixed;
  bottom: 92px; right: 28px;
  z-index: 999;
  width: 42px; height: 42px;
  background: rgba(0,212,255,0.15);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cyan);
  font-size: 1.1rem;
  transition: var(--transition);
}
#scrollTop.visible { display: flex; }
#scrollTop:hover { background: rgba(0,212,255,0.25); transform: translateY(-3px); }

/* ---- Animaciones de entrada ---- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .software-intro { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 70px 0; }

  .navbar-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(10,15,30,0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 5%;
    gap: 1rem;
    transform: translateY(-120%);
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,212,255,0.1);
  }
  .navbar-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }

  .hero-stats { gap: 1.5rem; }

  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .cta-banner { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .license-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ====================================================
   MÓDULO DE ADMINISTRACIÓN (ADMIN DASHBOARD STYLES)
   ==================================================== */

/* ---- KPI Cards ---- */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--navy-3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.kpi-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.kpi-total   { background: rgba(0, 212, 255, 0.12); color: var(--cyan); border: 1px solid rgba(0, 212, 255, 0.25); }
.kpi-pending { background: rgba(255, 184, 0, 0.12); color: var(--gold); border: 1px solid rgba(255, 184, 0, 0.25); }
.kpi-process { background: rgba(0, 168, 255, 0.12); color: #00a8ff; border: 1px solid rgba(0, 168, 255, 0.25); }
.kpi-done    { background: rgba(0, 212, 100, 0.12); color: #00d464; border: 1px solid rgba(0, 212, 100, 0.25); }
.kpi-today   { background: rgba(184, 100, 255, 0.12); color: #b864ff; border: 1px solid rgba(184, 100, 255, 0.25); }

.kpi-info { display: flex; flex-direction: column; }
.kpi-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--silver); }
.kpi-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--white); }

/* ---- Table Container & Header ---- */
.admin-table-container {
  background: var(--navy-3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-table-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.search-box {
  position: relative;
  min-width: 280px;
  flex: 1;
}
.search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--silver);
  font-size: 0.9rem;
}
.search-box input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--platinum);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}
.search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--silver);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.badge-pending { background: var(--gold); }
.badge-process { background: #00a8ff; }
.badge-done    { background: #00d464; }
.badge-cancel  { background: #ff5555; }

/* ---- Table Styles ---- */
.table-wrapper { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.admin-table th {
  background: rgba(10, 15, 30, 0.5);
  color: var(--silver);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.user-info { display: flex; align-items: center; gap: 12px; }
.user-avatar {
  width: 36px; height: 36px; min-width: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--steel));
  color: var(--navy);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.user-name { font-weight: 600; color: var(--platinum); }
.user-sub { font-size: 0.78rem; color: var(--silver); }

.subject-badge {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--cyan);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.message-preview {
  max-width: 260px;
  color: var(--silver);
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status Select */
.status-select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.status-pending { background: rgba(255, 184, 0, 0.15); border: 1px solid rgba(255, 184, 0, 0.4); color: var(--gold); }
.status-process { background: rgba(0, 168, 255, 0.15); border: 1px solid rgba(0, 168, 255, 0.4); color: #00a8ff; }
.status-done    { background: rgba(0, 212, 100, 0.15); border: 1px solid rgba(0, 212, 100, 0.4); color: #00d464; }
.status-cancel  { background: rgba(255, 85, 85, 0.15); border: 1px solid rgba(255, 85, 85, 0.4); color: #ff5555; }

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Action Buttons */
.action-buttons { display: flex; gap: 6px; justify-content: flex-end; }
.btn-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}
.btn-view:hover { background: rgba(0, 212, 255, 0.2); border-color: var(--cyan); color: var(--cyan); }
.btn-delete:hover { background: rgba(255, 85, 85, 0.2); border-color: #ff5555; color: #ff5555; }

/* Modal */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.admin-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-content {
  background: var(--navy-3);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.admin-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-modal-header h3 { font-size: 1.15rem; color: var(--white); }
.modal-close-btn {
  background: none; border: none;
  font-size: 1.5rem; color: var(--silver);
  cursor: pointer; transition: var(--transition);
}
.modal-close-btn:hover { color: var(--cyan); }

.admin-modal-body { padding: 24px; }
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.modal-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--silver);
  margin-bottom: 4px;
}
.modal-value { font-size: 0.95rem; font-weight: 500; color: var(--platinum); }

.modal-message-box {
  background: rgba(10, 15, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 6px;
  color: var(--platinum);
  font-size: 0.92rem;
  line-height: 1.7;
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
}

.admin-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

