/* 
  Denwcore Tech OS - Premium Stylesheet
  Dynamic styling utilizing CSS variables customizable from the Admin Panel.
*/

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

:root {
  /* Dynamic customizer variables (modified via Admin Panel) */
  --primary-color: #6366f1;
  --secondary-color: #a855f7;
  --accent-color: #06b6d4;
  --bg-dark-1: #070a13;
  --bg-dark-2: #0f172a;
  
  /* Constant variables */
  --primary-glow: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  --secondary-glow: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
  --white: #ffffff;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  --card-bg: rgba(15, 23, 42, 0.6);
  --card-bg-solid: #1e293b;
  --transition-speed: 0.3s;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-title: 'Plus Jakarta Sans', sans-serif;
}

/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark-1);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
}

/* Background Grid Overlay */
.background-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  z-index: -2;
  pointer-events: none;
}

.background-glow-1 {
  position: fixed;
  top: -10%;
  left: 20%;
  width: 800px;
  height: 800px;
  background: var(--primary-glow);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.background-glow-2 {
  position: fixed;
  bottom: -10%;
  right: 10%;
  width: 700px;
  height: 700px;
  background: var(--secondary-glow);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 19, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: border-color var(--transition-speed);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-title);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 1.75rem;
  height: 1.75rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 6px;
  display: inline-block;
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  background: var(--bg-dark-1);
  border-radius: 3px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-speed);
  position: relative;
}

nav a:hover {
  color: var(--primary-color);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  font-family: var(--font-main);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.badge-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  max-width: 900px;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff 30%, #94a3b8 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

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

/* Ecosystem / Products Showcase */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 50%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
}

.ecosystem-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 8rem;
}

/* Layout split for dynamic visualizers & links */
.ecosystem-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  align-items: start;
}

.vertical-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vertical-item {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.vertical-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  background: transparent;
  transition: background var(--transition-speed);
}

.vertical-item.active {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--border-glow);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.vertical-item.active::before {
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.vertical-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  transition: color var(--transition-speed);
}

.vertical-item.active h3 {
  color: var(--primary-color);
}

.vertical-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.4;
}

/* Showcase Visualizer Panel */
.visualizer-display {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.visualizer-display::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.visualizer-content-area {
  z-index: 2;
  margin-bottom: 2rem;
}

.showcase-badge {
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.visualizer-content-area h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.visualizer-content-area p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.visualizer-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
}

.visualizer-features-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.visualizer-features-list li::before {
  content: '✦';
  color: var(--accent-color);
  font-size: 0.8rem;
}

/* Interactive Device / Screen Simulator Area */
.visualizer-frame {
  background: rgba(7, 10, 19, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  height: 250px;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.frame-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.frame-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-family: monospace;
}

.frame-body {
  padding: 1.25rem;
  flex-grow: 1;
  overflow-y: auto;
  position: relative;
  font-size: 0.85rem;
}

/* Product Specific Visualizer Mockups */
/* 1. School Management Mockup */
.mock-school-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  height: 100%;
}
.mock-school-nav {
  border-right: 1px solid var(--border-light);
  padding-right: 0.5rem;
  font-size: 0.75rem;
}
.mock-school-nav div {
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}
.mock-school-nav div.active {
  background: var(--primary-color);
  color: var(--white);
}
.mock-school-dashboard {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mock-school-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.mock-school-stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
}
.mock-school-stat-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}
.mock-school-recent {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.75rem;
}
.mock-school-recent-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding: 0.25rem 0;
}

/* 2. Legal CRM Mockup */
.mock-crm-pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  height: 100%;
}
.mock-crm-col {
  background: rgba(255,255,255,0.01);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mock-crm-col-title {
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
}
.mock-crm-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
  padding: 0.4rem;
  font-size: 0.75rem;
}
.mock-crm-card-tags {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.mock-crm-tag {
  font-size: 0.6rem;
  background: rgba(99,102,241,0.2);
  color: var(--primary-color);
  padding: 0.05rem 0.25rem;
  border-radius: 2px;
}

/* 3. Payment Gateway Mockup */
.mock-pay-terminal {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  height: 100%;
}
.mock-pay-card-visual {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  aspect-ratio: 1.58;
}
.mock-pay-card-chip {
  width: 20px;
  height: 15px;
  background: #f59e0b;
  border-radius: 3px;
}
.mock-pay-card-num {
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.mock-pay-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
}
.mock-pay-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;
  color: white;
}
.mock-pay-btn {
  background: var(--accent-color);
  color: var(--text-dark);
  font-weight: bold;
  padding: 0.35rem;
  border-radius: 4px;
  text-align: center;
  font-size: 0.75rem;
  cursor: pointer;
  animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* 4. SaaS Monitor Mockup */
.mock-saas-monitor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.mock-saas-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.mock-saas-chart-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
}
.mock-saas-chart-bar-container {
  height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-evenly;
  margin-top: 0.25rem;
}
.mock-saas-chart-bar {
  width: 6px;
  background: var(--primary-color);
  border-radius: 2px 2px 0 0;
  animation: grow-bar 1.5s ease-in-out infinite alternate;
}
@keyframes grow-bar {
  0% { height: 10%; }
  100% { height: 90%; }
}
.mock-saas-logs {
  background: #000;
  border-radius: 6px;
  font-family: monospace;
  padding: 0.5rem;
  font-size: 0.65rem;
  color: #22c55e;
  height: 70px;
  overflow-y: hidden;
}

/* 5. AI Playground Mockup */
.mock-ai-terminal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}
.mock-ai-chat {
  flex-grow: 1;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
}
.mock-ai-msg {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  max-width: 80%;
  font-size: 0.7rem;
}
.mock-ai-msg-user {
  background: rgba(255,255,255,0.05);
  align-self: flex-end;
}
.mock-ai-msg-bot {
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.2);
  align-self: flex-start;
  font-family: monospace;
}
.mock-ai-input-area {
  display: flex;
  gap: 0.4rem;
}
.mock-ai-input {
  flex-grow: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: white;
}
.mock-ai-send {
  background: var(--primary-color);
  color: white;
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
}

/* Bottom CTA & Footer */
.cta-banner {
  max-width: 1280px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

.cta-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.cta-card h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-card p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

footer {
  border-top: 1px solid var(--border-light);
  background: rgba(7, 10, 19, 0.95);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-speed);
}

.footer-col ul a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==================================================
   ADMIN PORTAL STYLES (admin.html)
   ================================================== */
.admin-body {
  background-color: #0b0f19;
  min-height: 100vh;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  background: #0f1422;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-speed);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.admin-menu-item:hover, .admin-menu-item.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.admin-menu-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  font-weight: 600;
}

/* Main Content Workspace */
.admin-main {
  padding: 2.5rem 3rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
}

.admin-header-title h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.admin-header-title p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Tabs panels */
.admin-panel {
  display: none;
  background: #111827;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.4s ease-out;
}

.admin-panel.active {
  display: block;
}

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

.admin-section-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.75rem;
  color: var(--text-main);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="text"], textarea, select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all var(--transition-speed);
}

input[type="text"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* Color Picker Container */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.color-picker-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: 2px solid var(--border-light);
  border-radius: 50%;
}

/* Connection / Status Toast Bar */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  color: var(--accent-color);
  padding: 0.8rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.status-bar.offline {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-color);
  display: inline-block;
  margin-right: 0.5rem;
}

.status-bar.offline .status-dot {
  background-color: #f59e0b;
  animation: pulse 1.5s infinite;
}

/* Save Success Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: -300px;
  background: #10b981;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  right: 2rem;
}

/* Responsive grid adjustments */
@media (max-width: 992px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    height: auto;
    position: relative;
    padding: 1.5rem;
  }
  .admin-sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
  }
  .admin-menu-item {
    white-space: nowrap;
    width: auto;
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .visualizer-features-list {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==================================================
   SERVICES SECTION STYLES
   ================================================== */
.services-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 8rem;
  position: relative;
  z-index: 10;
}

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

.service-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 320px;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: background var(--transition-speed);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15);
}

.service-card:hover::after {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.service-icon {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 300;
  flex-grow: 1;
}

/* ==================================================
   ANALYTICS TELEMETRY PANEL STYLES
   ================================================== */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.analytics-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.analytics-metric-val {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--primary-color);
  line-height: 1;
}

.analytics-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analytics-split-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.analytics-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
}

.analytics-table-container {
  width: 100%;
  overflow-x: auto;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.analytics-table th {
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.analytics-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.analytics-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.browser-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: monospace;
}

.location-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.geo-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.geo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.5rem;
}

.geo-count-badge {
  background: var(--primary-glow);
  color: var(--primary-color);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}

/* CRUD Admin Listing Styles */
.crud-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.crud-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border-light);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.crud-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.crud-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: #ef4444;
  color: white;
}

@media (max-width: 992px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .analytics-split-layout {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   ADMIN LOGIN OVERLAY STYLES
   ================================================== */
.admin-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark-1);
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  opacity: 0;
  visibility: hidden;
}

.admin-login-overlay.active {
  opacity: 1;
  visibility: visible;
}

.login-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.15);
  display: flex;
  flex-direction: column;
}

.login-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-card-header h2 {
  font-size: 1.75rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #ffffff 50%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-card-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.login-error-alert {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.login-error-alert.show {
  display: flex;
}

.admin-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1.5rem;
}

.btn-logout {
  width: 100%;
  background: rgba(239, 68, 68, 0.05);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.1);
  font-weight: 500;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}


