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

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --secondary: #7c3aed;
  --accent: #06b6d4;
  --bg-dark: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-section: #f8fafc;
  --bg-nav: rgba(255,255,255,0.85);
  --text-light: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  --gradient-warm: linear-gradient(135deg, #f97316, #ec4899);
  --gradient-subtle: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(124,58,237,0.06));
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(79,70,229,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-body);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-light);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s var(--transition);
}

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

::selection {
  background: rgba(79,70,229,0.15);
  color: var(--text-light);
}

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

/* ===== NAVIGATION ===== */
.navbar {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  padding: 14px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

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

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

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

.navbar-nav a {
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s var(--transition);
  white-space: nowrap;
  position: relative;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
  background: var(--gradient-subtle);
}

.navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

.navbar-nav li {
  list-style: none;
}

.navbar-nav .btn {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.navbar-nav .btn.btn-primary {
  color: #fff;
  border-radius: 50px;
}

.navbar-nav .btn.btn-primary:hover {
  color: #fff;
  background: var(--gradient);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 150px 0 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 15s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 12s ease-in-out infinite reverse;
}

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

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-light);
  letter-spacing: -1.5px;
}

.hero-content h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.8;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.5s var(--transition);
}

.hero-image:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79,70,229,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79,70,229,0.4);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(79,70,229,0.3);
}

.btn-secondary {
  background: var(--bg-section);
  color: var(--text-light);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79,70,229,0.3);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  letter-spacing: -0.2px;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.btn-success:hover {
  box-shadow: 0 6px 20px rgba(16,185,129,0.4);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(239,68,68,0.4);
  transform: translateY(-2px);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: 100px 0;
  background: var(--bg-dark);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-light);
  letter-spacing: -0.8px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

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

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.4s var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all 0.3s var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--gradient);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(79,70,229,0.25);
}

.feature-card:hover .feature-icon * {
  filter: brightness(10);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-light);
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== PRICING SECTION ===== */
.pricing {
  padding: 100px 0;
  background: var(--bg-section);
  position: relative;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  transition: all 0.4s var(--transition);
  box-shadow: var(--shadow);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.pricing-card.popular:hover {
  transform: scale(1.02) translateY(-8px);
  box-shadow: 0 20px 50px rgba(79,70,229,0.2);
}

.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-light);
  font-weight: 700;
}

.pricing-card .price {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-light);
  letter-spacing: -1px;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .period {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  color: var(--text-body);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ===== DOMAIN SEARCH ===== */
.domain-search {
  padding: 100px 0;
  background: var(--bg-dark);
  position: relative;
}

.search-box {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 60px;
  padding: 8px 8px 8px 12px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  padding: 12px 16px;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-dim);
}

.search-box .btn {
  white-space: nowrap;
  border-radius: 50px;
}

.domain-results {
  max-width: 700px;
  margin: 24px auto 0;
  display: none;
}

.domain-results.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.domain-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--transition);
}

.domain-result-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.domain-result-item.available {
  border-color: var(--success);
  background: rgba(16,185,129,0.02);
}

.domain-result-item.unavailable {
  border-color: var(--border);
  opacity: 0.5;
}

.domain-name {
  font-weight: 700;
  color: var(--text-light);
  font-size: 1rem;
}

.domain-price {
  color: var(--success);
  font-weight: 700;
  font-size: 1.05rem;
}

.domain-status {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== FORMS ===== */
.form-section {
  padding: 100px 0;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-light);
  letter-spacing: -0.1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  background: var(--bg-section);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.95rem;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  transition: all 0.3s var(--transition);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  background: #fff;
  border-color: var(--border);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.08);
}

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

/* ===== ORDER STEPS ===== */
.order-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  position: relative;
}

.order-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 2px solid var(--border);
  transition: all 0.3s var(--transition);
}

.order-step.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--gradient);
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.order-step.completed {
  color: var(--success);
  border-color: var(--success);
  background: rgba(16,185,129,0.05);
}

.order-step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s var(--transition);
}

.order-step.active .order-step-number {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.order-step.completed .order-step-number {
  background: var(--success);
  color: #fff;
}

/* ===== PORTAL / DASHBOARD ===== */
.dashboard {
  padding: 110px 0 60px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.dashboard-header h1 {
  font-size: 2rem;
  color: var(--text-light);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: var(--gradient-subtle);
  border-radius: 0 0 0 80px;
  opacity: 0.5;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-card .stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-light);
  letter-spacing: -0.5px;
}

.stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== TABLES ===== */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
}

.table-header h3 {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 15px 28px;
  text-align: left;
  font-size: 0.88rem;
}

table th {
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  background: var(--bg-section);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

table td {
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

table tr:last-child td {
  border-bottom: none;
}

table tr {
  transition: background 0.2s var(--transition);
}

table tr:hover td {
  background: rgba(79,70,229,0.02);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-success {
  background: rgba(16,185,129,0.1);
  color: #059669;
}

.badge-warning {
  background: rgba(245,158,11,0.1);
  color: #d97706;
}

.badge-danger {
  background: rgba(239,68,68,0.1);
  color: #dc2626;
}

.badge-info {
  background: rgba(79,70,229,0.1);
  color: var(--primary);
}

/* ===== TABS ===== */
/* Legacy .tabs (kept for backward compat if used elsewhere) */
.tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 22px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.25s var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover {
  color: var(--text-light);
  background: var(--gradient-subtle);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(79,70,229,0.04);
}

/* ===== Admin Categorized Navigation ===== */
.admin-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  padding: 10px 16px;
  background: var(--bg-card, #1e2235);
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.admin-nav-item:hover {
  color: var(--text-light, #f1f5f9);
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.admin-nav-item.active {
  color: #fff;
  background: var(--primary, #6366f1);
  border-color: var(--primary, #6366f1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.admin-nav-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.admin-nav-label {
  line-height: 1;
}

.admin-nav-arrow {
  font-size: 0.65rem;
  margin-left: 2px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

/* Separator between nav items */
.admin-nav-separator {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
  opacity: 0.5;
}

/* Dropdown container */
.admin-nav-dropdown {
  position: relative;
}

.admin-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--bg-card, #1e2235);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 8px;
  padding-top: 12px;
  z-index: 1000;
  animation: adminDropdownIn 0.12s ease;
}

/* Invisible bridge to prevent hover gap */
.admin-nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

@keyframes adminDropdownIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-nav-dropdown:hover .admin-nav-dropdown-menu,
.admin-nav-dropdown.open .admin-nav-dropdown-menu {
  display: block;
}

.admin-nav-dropdown:hover .admin-nav-arrow {
  transform: rotate(180deg);
}

.admin-nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 0.87rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.admin-nav-dropdown-item:hover {
  color: var(--text-light, #f1f5f9);
  background: rgba(99, 102, 241, 0.1);
}

.admin-nav-dropdown-item.active {
  color: #fff;
  background: var(--primary, #6366f1);
  font-weight: 600;
}

/* Mobile responsive admin nav */
@media (max-width: 768px) {
  .admin-nav {
    gap: 4px;
    padding: 8px 10px;
  }
  .admin-nav-item {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
  .admin-nav-label {
    display: none;
  }
  .admin-nav-icon {
    font-size: 1.2rem;
  }
  .admin-nav-arrow {
    display: none;
  }
  .admin-nav-separator {
    display: none;
  }
  .admin-nav-dropdown-menu {
    min-width: 160px;
  }
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

/* ===== ADMIN TAB CONTENT ===== */
.admin-tab-content {
  padding: 24px 0;
}

.admin-tab-content h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text-light);
}

.admin-tab-content .section-description {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* ===== MENU MANAGER ===== */
.menu-manager {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.menu-manager h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-light);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.menu-manager .menu-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.sortable-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sortable-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: grab;
  transition: all 0.2s;
}

.sortable-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.sortable-item:active {
  cursor: grabbing;
  box-shadow: var(--shadow-md);
}

.sortable-item .drag-handle {
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: grab;
  user-select: none;
}

.sortable-item .item-label {
  flex: 1;
  font-weight: 500;
  color: var(--text-light);
}

.sortable-item .item-url {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sortable-item .item-actions {
  display: flex;
  gap: 8px;
}

.sortable-item .item-actions button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.sortable-item .item-actions button:hover {
  color: var(--primary);
  background: var(--gradient-subtle);
}

.sortable-item .item-actions button.delete-btn:hover {
  color: var(--danger);
  background: rgba(239,68,68,0.08);
}

/* ===== PAGE EDITOR ===== */
.page-editor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.page-editor h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-light);
}

.page-editor .page-list {
  margin-bottom: 24px;
}

.page-editor .page-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.page-editor .page-item .page-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-editor .page-item .page-title {
  font-weight: 600;
  color: var(--text-light);
}

.page-editor .page-item .page-slug {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.page-editor .page-item .page-actions {
  display: flex;
  gap: 8px;
}

.page-editor .editor-area {
  margin-top: 16px;
}

.page-editor .editor-area textarea {
  min-height: 200px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ===== CMS SECTION ===== */
.cms-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.cms-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-light);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.cms-section .cms-field {
  margin-bottom: 16px;
}

.cms-section .cms-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cms-section .cms-field input,
.cms-section .cms-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cms-section .cms-field input:focus,
.cms-section .cms-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.cms-section .cms-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s var(--transition);
}

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

.modal h3 {
  margin-bottom: 22px;
  color: var(--text-light);
  font-size: 1.3rem;
  letter-spacing: -0.3px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, var(--bg-section) 0%, #eef2f7 100%);
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  margin-top: 100px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0.3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.9rem;
  margin-bottom: 18px;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: all 0.25s var(--transition);
  position: relative;
  padding-left: 0;
}

.footer ul a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ===== LOGIN FORM ===== */
.login-section {
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0f9ff 100%);
  position: relative;
}

.login-section::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79,70,229,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.login-card h2 {
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-light);
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}

.login-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.92rem;
}

/* ===== ALERTS ===== */
.alert {
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.03));
  border: 1px solid rgba(16,185,129,0.3);
  color: #065f46;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.03));
  border: 1px solid rgba(239,68,68,0.3);
  color: #991b1b;
}

.alert-info {
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(79,70,229,0.03));
  border: 1px solid rgba(79,70,229,0.3);
  color: #3730a3;
}

/* ===== CONFIRMATION ===== */
.confirmation-box {
  text-align: center;
  padding: 60px 40px;
}

.confirmation-icon {
  font-size: 4.5rem;
  margin-bottom: 24px;
  animation: bounceIn 0.6s ease;
}

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

.confirmation-box h2 {
  margin-bottom: 14px;
  color: var(--text-light);
  font-size: 1.8rem;
  letter-spacing: -0.5px;
}

.confirmation-box p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== ORDER SUMMARY ===== */
.order-summary {
  background: linear-gradient(145deg, var(--bg-section), #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.order-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
  border-radius: 4px 0 0 4px;
}

.order-summary h4 {
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 700;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9rem;
}

.summary-row .label {
  color: var(--text-muted);
}

.summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 12px;
  padding-top: 14px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-light);
}

/* ===== LAYOUT THEMES ===== */

/* --- Layout: Classic (default) --- */
/* Classic is the base layout, no overrides needed */

/* --- Layout: Modern Bold --- */
.layout-modern_bold .navbar {
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.layout-modern_bold .hero {
    text-align: center;
    padding: 120px 0 100px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.layout-modern_bold .hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(79,70,229,0.15) 0%, transparent 70%);
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.layout-modern_bold .hero .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.layout-modern_bold .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.layout-modern_bold .hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    text-transform: uppercase;
}

.layout-modern_bold .hero-image {
    display: none;
}

.layout-modern_bold .hero-content p {
    font-size: 1.4rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.layout-modern_bold .pricing-card {
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.layout-modern_bold .pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(79,70,229,0.2);
}

.layout-modern_bold .pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary);
}

.layout-modern_bold .pricing-card.popular:hover {
    transform: scale(1.05) translateY(-12px);
}

.layout-modern_bold .section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.layout-modern_bold .feature-card {
    border-radius: 20px;
    padding: 40px 30px;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-section));
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.layout-modern_bold .feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.layout-modern_bold .btn {
    border-radius: 50px;
    padding: 14px 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.layout-modern_bold footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #000 100%);
}

/* --- Layout: Minimal Clean --- */
.layout-minimal_clean .navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}

.layout-minimal_clean .hero {
    background: var(--bg-card);
    padding: 80px 0;
    text-align: center;
}

.layout-minimal_clean .hero::before {
    display: none;
}

.layout-minimal_clean .hero .container {
    flex-direction: column;
    align-items: center;
}

.layout-minimal_clean .hero-content {
    max-width: 700px;
    text-align: center;
}

.layout-minimal_clean .hero-content h1 {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.layout-minimal_clean .hero-content h1 span {
    font-weight: 600;
    background: none;
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
}

.layout-minimal_clean .hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.layout-minimal_clean .hero-image {
    margin-top: 40px;
    max-width: 500px;
    opacity: 0.9;
}

.layout-minimal_clean .pricing-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: none;
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.layout-minimal_clean .pricing-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}

.layout-minimal_clean .pricing-card.popular {
    border: 1px solid var(--primary);
    box-shadow: none;
    transform: none;
}

.layout-minimal_clean .pricing-card.popular::before {
    border-radius: 0;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}

.layout-minimal_clean .feature-card {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    box-shadow: none;
}

.layout-minimal_clean .feature-card:hover {
    border-color: var(--primary);
    transform: none;
    box-shadow: none;
    background: var(--bg-section);
}

.layout-minimal_clean .section-title h2 {
    font-weight: 300;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
}

.layout-minimal_clean .btn {
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: none;
}

.layout-minimal_clean .btn-primary {
    box-shadow: none;
}

.layout-minimal_clean .btn-primary:hover {
    box-shadow: none;
    transform: none;
    opacity: 0.9;
}

.layout-minimal_clean footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.layout-minimal_clean .features {
    background: var(--bg-card);
}

/* --- Layout: Dark Tech --- */
.layout-dark_tech {
    --glow-color: rgba(79, 70, 229, 0.4);
}

.layout-dark_tech .navbar {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79, 70, 229, 0.2);
}

.layout-dark_tech .hero {
    background: linear-gradient(180deg, #050d1a 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.layout-dark_tech .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(79,70,229,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.08) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(79,70,229,0.03) 50px, rgba(79,70,229,0.03) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(79,70,229,0.03) 50px, rgba(79,70,229,0.03) 51px);
    pointer-events: none;
}

.layout-dark_tech .hero-content h1 {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.layout-dark_tech .hero-content h1 span {
    text-shadow: 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
}

.layout-dark_tech .pricing-card {
    background: rgba(15, 25, 45, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 4px;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.05);
    transition: all 0.3s ease;
}

.layout-dark_tech .pricing-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.15), inset 0 0 30px rgba(79, 70, 229, 0.05);
    transform: translateY(-4px);
}

.layout-dark_tech .pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.2), inset 0 0 40px rgba(79, 70, 229, 0.05);
}

.layout-dark_tech .pricing-card.popular::before {
    background: var(--primary);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    border-radius: 0;
}

.layout-dark_tech .feature-card {
    background: rgba(15, 25, 45, 0.6);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: 4px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: all 0.3s ease;
}

.layout-dark_tech .feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.1);
    transform: translateY(-4px);
}

.layout-dark_tech .feature-card .feature-icon {
    text-shadow: 0 0 15px var(--glow-color);
}

.layout-dark_tech .section-title h2 {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.8rem;
}

.layout-dark_tech .btn {
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.layout-dark_tech .btn-primary {
    box-shadow: 0 0 15px var(--glow-color);
}

.layout-dark_tech .btn-primary:hover {
    box-shadow: 0 0 25px var(--glow-color), 0 0 50px rgba(79,70,229,0.2);
}

.layout-dark_tech footer {
    background: #050d1a;
    border-top: 1px solid rgba(79, 70, 229, 0.15);
}

.layout-dark_tech .features {
    background: rgba(5, 13, 26, 0.5);
}

.layout-dark_tech .pricing {
    background: rgba(5, 13, 26, 0.3);
}

/* Dark tech feature icon glow */
.layout-dark_tech .feature-card .feature-icon {
    background: rgba(79, 70, 229, 0.15);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.1);
}

/* --- Layout: Corporate Pro --- */
.layout-corporate_pro .navbar {
    padding: 8px 0;
    background: var(--bg-card);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.layout-corporate_pro .navbar .navbar-brand {
    font-size: 1.1rem;
    font-weight: 700;
}

.layout-corporate_pro .hero {
    padding: 60px 0;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border);
}

.layout-corporate_pro .hero::before {
    display: none;
}

.layout-corporate_pro .hero .container {
    gap: 40px;
}

.layout-corporate_pro .hero-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.layout-corporate_pro .hero-content h1 span {
    background: none;
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
}

.layout-corporate_pro .hero-content p {
    font-size: 1rem;
    line-height: 1.7;
}

.layout-corporate_pro .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
}

.layout-corporate_pro .pricing-card {
    border-radius: 0;
    border: 1px solid var(--border);
    margin: 0;
    box-shadow: none;
    padding: 30px 24px;
    transition: all 0.2s ease;
}

.layout-corporate_pro .pricing-card:first-child {
    border-radius: 8px 0 0 8px;
}

.layout-corporate_pro .pricing-card:last-child {
    border-radius: 0 8px 8px 0;
}

.layout-corporate_pro .pricing-card:hover {
    background: var(--bg-section);
    transform: none;
    box-shadow: none;
    border-color: var(--primary);
}

.layout-corporate_pro .pricing-card.popular {
    background: var(--bg-section);
    border: 2px solid var(--primary);
    transform: none;
}

.layout-corporate_pro .pricing-card.popular::before {
    border-radius: 0;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.layout-corporate_pro .pricing-card .price {
    font-size: 2rem;
}

.layout-corporate_pro .feature-card {
    border-radius: 4px;
    border: 1px solid var(--border);
    padding: 24px;
    background: var(--bg-card);
    box-shadow: none;
}

.layout-corporate_pro .feature-card:hover {
    border-color: var(--primary);
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.layout-corporate_pro .section-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0;
}

.layout-corporate_pro .section-title p {
    font-size: 0.9rem;
}

.layout-corporate_pro .btn {
    border-radius: 4px;
    font-weight: 600;
    padding: 10px 24px;
    font-size: 0.85rem;
}

.layout-corporate_pro .btn-primary {
    box-shadow: none;
}

.layout-corporate_pro .btn-primary:hover {
    box-shadow: none;
    transform: none;
    filter: brightness(1.1);
}

.layout-corporate_pro footer {
    background: var(--bg-card);
    border-top: 3px solid var(--primary);
    padding: 40px 0 20px;
}

.layout-corporate_pro .features {
    padding: 60px 0;
}

.layout-corporate_pro .pricing {
    padding: 60px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.4rem;
    letter-spacing: -1px;
  }

  .hero-content p {
    margin: 0 auto 30px;
  }

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
    transform: none;
  }

  .hero-image:hover {
    transform: none;
  }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    padding: 20px;
  }

  .navbar-nav.active {
    display: flex;
  }

  .navbar-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .search-box {
    flex-direction: column;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .order-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .sortable-item {
    flex-wrap: wrap;
  }

  .sortable-item .item-url {
    display: none;
  }

  .menu-manager .menu-actions {
    flex-direction: column;
  }

  /* Layout responsive overrides */
  .layout-modern_bold .hero-content h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .layout-modern_bold .hero-content p {
    font-size: 1.1rem;
  }

  .layout-modern_bold .section-title h2 {
    font-size: 2rem;
  }

  .layout-minimal_clean .hero-content h1 {
    font-size: 2rem;
  }

  .layout-dark_tech .hero-content h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .layout-dark_tech .section-title h2 {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }

  .layout-corporate_pro .pricing-card:first-child,
  .layout-corporate_pro .pricing-card:last-child {
    border-radius: 8px;
  }

  .layout-corporate_pro .pricing-grid {
    gap: 12px;
  }
}

/* ===== LOADING SPINNER ===== */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.75;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-top: -8px;
  margin-left: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-right-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

.btn-loading .btn-text {
  visibility: hidden;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Full-form overlay spinner */
.form-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm, 8px);
  z-index: 100;
}

.form-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border, #e2e8f0);
  border-top-color: var(--primary, #2563eb);
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

/* ===== CUSTOM TOOLBARS ===== */
.custom-toolbar {
    padding: 10px 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.custom-toolbar-top {
    background: var(--bg-section, #f1f5f9);
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.custom-toolbar-bottom {
    background: var(--bg-section, #f1f5f9);
    border-top: 1px solid var(--border, #e2e8f0);
}

.custom-toolbar .container,
.custom-toolbar > * {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.custom-toolbar p {
    margin: 0;
}

.custom-toolbar a {
    color: var(--primary, #2563eb);
    text-decoration: underline;
}

.custom-toolbar a:hover {
    opacity: 0.8;
}

.custom-toolbar img {
    max-width: 100%;
    height: auto;
}

/* ===== SMOOTH SCROLL REVEAL ===== */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.features-grid .feature-card,
.pricing-grid .pricing-card {
  animation: revealUp 0.6s var(--transition) both;
}

.features-grid .feature-card:nth-child(1),
.pricing-grid .pricing-card:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(2),
.pricing-grid .pricing-card:nth-child(2) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(3),
.pricing-grid .pricing-card:nth-child(3) { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.4s; }
.features-grid .feature-card:nth-child(5) { animation-delay: 0.5s; }
.features-grid .feature-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== SELECTION HIGHLIGHT ===== */
input[type="radio"]:checked + label,
input[type="radio"]:checked ~ label {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-section);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.hidden { display: none !important; }

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

/* Glass card utility */
.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
}