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

:root {
  --primary: #E30613;
  --primary-dark: #B8000F;
  --primary-light: #FF3B3B;
  --gradient-start: #E30613;
  --gradient-end: #8B0000;
  --gradient: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  --gradient-light: linear-gradient(135deg, #FF3B3B 0%, #B8000F 100%);
  --success: #00C853;
  --warning: #FF9800;
  --danger: #E30613;
  --info: #2196F3;
  --dark: #1A1A1A;
  --gray: #666666;
  --gray-light: #AAAAAA;
  --gray-bg: #F8F9FA;
  --border: #EEEEEE;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--gray-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: var(--primary); transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
code { background: #F3F4F6; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* ===== CONTAINER ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.4);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }
.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Primary light button for hero */
.btn-primary-light {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-primary-light:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.navbar .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
  min-height: 80px;
  position: relative;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.navbar .logo .logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.navbar .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.navbar .nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.3s;
  position: relative;
  padding: 4px 0;
}
.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--gradient);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}
.navbar .nav-links a:hover { color: var(--dark); }
.navbar .nav-links a:hover::after { width: 100%; }

/* ===== MOBILE TOGGLE ===== */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  position: relative;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  padding: 220px 24px 100px;
  background: var(--gradient);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-bg-shapes {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-shapes::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation: floatShape 25s ease-in-out infinite;
}
.hero-bg-shapes::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
  animation: floatShape 30s ease-in-out infinite reverse;
}
@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.05); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}
.hero .container { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -2px;
}
.hero h1 .hero-highlight {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px;
  opacity: 0.92;
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero .buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section { padding: 100px 24px; }
.section .container { max-width: var(--max-width); margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title p {
  font-size: 16px;
  color: var(--gray);
  margin-top: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px 36px;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.feature-card:hover::before { opacity: 1; }
.feature-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(227, 6, 19, 0.08) !important;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover .icon {
  transform: scale(1.1) rotate(-3deg);
  background: var(--gradient) !important;
  color: var(--white) !important;
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.25);
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ===== STEPS SECTION ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 32px 40px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(227,6,19,0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(227,6,19,0.15);
  animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.5; }
}
.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(227,6,19,0.4);
}
.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}
.step-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== STATS ===== */
.stats-section { 
  background: var(--white); 
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-item {
  padding: 24px 16px;
  transition: transform 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-4px);
}
.stat-item h3 {
  font-size: 42px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}
.stat-item p { font-size: 14px; color: var(--gray); margin-top: 6px; font-weight: 500; }

/* ===== CONTACT 2-COLUMN GRID ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}
.contact-info-card:hover {
  box-shadow: var(--shadow-lg);
}
.contact-info-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--dark);
  position: relative;
  padding-bottom: 12px;
}
.contact-info-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(227, 6, 19, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-info-item:hover .contact-info-icon {
  transform: scale(1.08);
  background: rgba(227, 6, 19, 0.12);
}
.contact-info-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 4px;
}
.contact-info-value {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}
.contact-form-card:hover {
  box-shadow: var(--shadow-lg);
}
.contact-form-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--dark);
  position: relative;
  padding-bottom: 12px;
}
.contact-form-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}

/* ===== CONTACT FORM ===== */
.contact-form { width: 100%; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--dark);
}
.form-group input:hover,
.form-group textarea:hover {
  border-color: #D1D5DB;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.08);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-light);
}

/* ===== ALERT ===== */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}
.alert-success { background: #E8F5E9; color: #1B5E20; border: 1px solid #C8E6C9; }
.alert-error { background: #FFEBEE; color: #B71C1C; border: 1px solid #FFCDD2; }
.alert-warning { background: #FFF3E0; color: #E65100; border: 1px solid #FFE0B2; }
.alert-info { background: #E3F2FD; color: #0D47A1; border: 1px solid #BBDEFB; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--gradient);
  text-align: center;
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-content { max-width: 600px; margin: 0 auto; }
.cta-content h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.cta-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  line-height: 1.7;
}
.cta-content .btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cta-content .btn-primary:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* ===== FOOTER ===== */
.footer {
  background: #1A1A1A;
  color: var(--white);
  padding: 72px 24px 32px;
  position: relative;
}
.footer .container { max-width: var(--max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h4 { 
  font-size: 14px; 
  font-weight: 700; 
  margin-bottom: 20px; 
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer p { font-size: 14px; color: #9CA3AF; line-height: 1.8; margin-bottom: 8px; }
.footer a { color: #9CA3AF; transition: all 0.3s ease; }
.footer a:hover { color: var(--primary-light); padding-left: 4px; }
.footer .footer-brand { 
  font-size: 22px; 
  font-weight: 900; 
  background: var(--gradient); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  background-clip: text; 
  margin-bottom: 12px; 
}
.footer-bottom { 
  text-align: center; 
  padding-top: 24px; 
  border-top: 1px solid #2D2D2D; 
  font-size: 13px; 
  color: #6B7280; 
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.login-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.login-box .logo { text-align: center; margin-bottom: 32px; }
.login-box .logo h2 {
  font-size: 30px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}
.login-box .logo p { font-size: 13px; color: var(--gray); margin-top: 4px; }
.login-box .form-group input {
  border-radius: 10px;
  padding: 14px 16px;
}
.login-box .btn { width: 100%; justify-content: center; padding: 14px; border-radius: 10px; font-size: 15px; }

/* ===== DASHBOARD ===== */
.dashboard { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  background: #1A1A1A;
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}
.sidebar .logo { padding: 24px 20px 20px; border-bottom: 1px solid #2D2D2D; }
.sidebar .logo h3 { font-size: 20px; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.5px; }
.sidebar .user-info {
  padding: 16px 20px;
  border-bottom: 1px solid #2D2D2D;
}
.sidebar .user-info .name { font-weight: 600; font-size: 14px; }
.sidebar .user-info .role { font-size: 12px; color: #9CA3AF; margin-top: 2px; }
.sidebar nav { flex: 1; padding: 8px 0; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #9CA3AF;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar nav a:hover {
  background: rgba(227, 6, 19, 0.08);
  color: var(--white);
}
.sidebar nav a.active {
  background: rgba(227, 6, 19, 0.12);
  color: var(--white);
  border-left-color: var(--primary);
}
.sidebar nav a .badge { margin-left: auto; }

.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 32px;
  min-height: 100vh;
}
.main-content .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.main-content .header h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.main-content .header .actions { display: flex; gap: 12px; align-items: center; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-header h3 { font-size: 16px; font-weight: 700; }

.stat-card {
  text-align: center;
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
}
.stat-card .number {
  font-size: 36px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}
.stat-card .label { font-size: 13px; color: var(--gray); margin-top: 4px; font-weight: 500; }

/* ===== TABLES ===== */
.table-wrapper {
  overflow-x: auto;
  margin: -4px;
}
.table-wrapper table { margin: 0; }
table { width: 100%; border-collapse: collapse; }
table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--border);
  background: var(--gray-bg);
}
table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #F3F4F6; }
table tr:hover td { background: #FAFBFC; }
table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.bg-primary { background: #FBE9E7; color: #BF360C; }
.bg-success { background: #E8F5E9; color: #1B5E20; }
.bg-warning { background: #FFF3E0; color: #E65100; }
.bg-danger { background: #FFEBEE; color: #B71C1C; }
.bg-secondary { background: #F3F4F6; color: #374151; }
.bg-info { background: #E3F2FD; color: #0D47A1; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.modal h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.modal .actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SANDBOX BANNER ===== */
.sandbox-banner {
  background: #E30613;
  color: white;
  text-align: center;
  padding: 8px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ----- Sticky banner on public pages (before .navbar-public) ----- */
body:not(.admin-layout):not(.login-page) > .sandbox-banner:first-child {
  position: sticky;
  top: 0;
  z-index: 1001;
}

/* ===== PAGE HEADER (sub-pages) ===== */
.page-header {
  padding-top: 210px;
  padding-bottom: 50px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.1);
}
.page-header .section-title {
  position: relative;
  z-index: 1;
}
.page-header .section-title h2,
.page-header .section-title p {
  -webkit-text-fill-color: var(--white);
  color: var(--white);
}
.page-header .section-title h2 .hero-highlight {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header .section-title p { opacity: 0.88; }

/* ===== ACTIVE NAV LINK ===== */
.navbar .nav-links a.active {
  color: var(--primary);
}
.navbar .nav-links a.active::after { width: 100%; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.animate {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }
.animate-delay-4 { animation-delay: 0.6s; }
.animate-delay-5 { animation-delay: 0.75s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .steps-grid { gap: 24px; }
  .sidebar { width: 220px; }
  .main-content { margin-left: 220px; }
  .contact-grid { gap: 32px; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .navbar .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-xl);
    border-top: 1px solid var(--border);
    display: none;
  }
  .navbar .nav-links.active { display: flex; }
  .navbar .nav-links li { width: 100%; }
  .navbar .nav-links a { 
    display: block; 
    padding: 14px 16px; 
    font-size: 15px;
    border-radius: 8px;
    transition: background 0.2s;
  }
  .navbar .nav-links a:hover {
    background: rgba(227, 6, 19, 0.05);
  }
  .navbar .nav-links a::after { display: none; }
  .navbar .nav-links a.active {
    background: rgba(227, 6, 19, 0.08);
    color: var(--primary);
  }
  .navbar .nav-links .btn { 
    justify-content: center; 
    margin-top: 8px;
    padding: 14px 24px;
  }
  .hero { 
    padding: 160px 20px 60px; 
    min-height: auto;
  }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero p { font-size: 16px; }
  .hero-badge { font-size: 12px; padding: 6px 16px; }
  .section { padding: 60px 20px; }
  .section-title h2 { font-size: 28px; }
  .section-title p { font-size: 14px; }
  .section-title { margin-bottom: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card,
  .contact-form-card { padding: 32px 24px; }
  .step-card { padding: 40px 24px 32px; }
  .cta-content h2 { font-size: 28px; }
  .cta-content p { font-size: 16px; }
  .cta-section { padding: 60px 24px; }
  .stats-grid { gap: 16px; }
  .stat-item h3 { font-size: 34px; }
  .feature-card { padding: 32px 24px 28px; }
  .page-header { padding-top: 160px; padding-bottom: 40px; }
  .page-header .section-title h2 { font-size: 26px; }
  .footer-grid { gap: 32px; }
  .footer { padding: 48px 24px 24px; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .main-content { margin-left: 0; padding: 20px; }
  .dashboard { flex-direction: column; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .login-box { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .navbar .logo .logo-img { height: 36px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .section-title h2 { font-size: 24px; }
  .stat-item h3 { font-size: 28px; }
  .cta-content h2 { font-size: 24px; }
  .hero .buttons { flex-direction: column; align-items: center; }
  .hero .buttons .btn { width: 100%; max-width: 280px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* ===== SELECTION ===== */
::selection {
  background: rgba(227, 6, 19, 0.15);
  color: var(--dark);
}

/* ================================================================
   PREMIUM FINITECH ADMIN PANEL STYLES
   ================================================================
   These styles enhance the back office admin experience with a
   premium fintech aesthetic inspired by Stripe, Revolut, etc.
   All original landing page classes remain untouched.
   ================================================================ */

/* ----- Sidebar Premium Enhancements ----- */
.sidebar .logo {
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar .logo .logo-img-container {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}
.sidebar .logo .logo-img-container img {
  width: 26px;
  height: 26px;
  filter: brightness(10);
}
.sidebar .logo .logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.sidebar .logo .logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  display: block;
  -webkit-text-fill-color: rgba(255,255,255,0.35);
}

.sidebar .user-info {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar .user-info .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(227, 6, 19, 0.25);
}
.sidebar .user-info .user-details { flex: 1; min-width: 0; }
.sidebar .user-info .name {
  font-weight: 600;
  font-size: 14px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar .user-info .role { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 1px; }
.sidebar .user-info .role .badge { font-size: 10px; padding: 2px 8px; }

.sidebar nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 20px;
  margin: 1px 10px;
  border-radius: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 3px solid transparent;
  position: relative;
}
.sidebar nav a:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border-left-color: transparent;
  transform: translateX(3px);
}
.sidebar nav a.active {
  background: rgba(227, 6, 19, 0.12);
  color: white;
  border-left-color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
}
.sidebar nav a .nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.25s;
}
.sidebar nav a:hover .nav-icon,
.sidebar nav a.active .nav-icon { opacity: 1; }
.sidebar nav a .nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.sidebar .sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar .sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
  padding: 8px 10px;
  border-radius: 8px;
}
.sidebar .sidebar-footer a:hover {
  color: #EF4444;
  background: rgba(239,68,68,0.08);
}

/* ----- Sidebar Language Switcher ----- */
.sidebar-lang { display:flex; gap:4px; padding:12px 20px; border-top:1px solid rgba(255,255,255,0.06); margin-top:auto; }

/* ----- Sidebar Collapse/Toggle ----- */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}
.sidebar-toggle:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.sidebar-toggle .toggle-icon {
  width: 18px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.sidebar-toggle .toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.sidebar-toggle.active .toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.sidebar-toggle.active .toggle-icon span:nth-child(2) {
  opacity: 0;
}
.sidebar-toggle.active .toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ----- Sidebar Scrollbar ----- */
.sidebar nav::-webkit-scrollbar { width: 3px; }
.sidebar nav::-webkit-scrollbar-track { background: transparent; }
.sidebar nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ----- Top Bar ----- */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 24px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar .top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar .top-bar-left .mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: all 0.2s;
}
.top-bar .top-bar-left .mobile-menu-btn:hover {
  background: var(--gray-bg);
}
.top-bar .top-bar-left .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
}
.top-bar .top-bar-left .breadcrumb a {
  color: var(--gray);
  transition: color 0.2s;
}
.top-bar .top-bar-left .breadcrumb a:hover { color: var(--primary); }
.top-bar .top-bar-left .breadcrumb .separator {
  color: #D1D5DB;
  font-size: 14px;
}
.top-bar .top-bar-left .breadcrumb .current {
  color: var(--dark);
  font-weight: 600;
}
.top-bar h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
  width: 100%;
}
.top-bar .top-bar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ----- Premium Dashboard Stats ----- */
.stat-card {
  text-align: left;
  padding: 24px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  border-radius: 0 0 0 0;
}
.stat-card .stat-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(227, 6, 19, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card:hover .stat-icon {
  transform: scale(1.08) rotate(-3deg);
  background: var(--gradient);
  color: white !important;
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.2);
}
.stat-card .stat-icon svg { width: 22px; height: 22px; }
.stat-card .stat-info { flex: 1; min-width: 0; }
.stat-card .stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.stat-card .number {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  display: block;
}
.stat-card .stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 6px;
}
.stat-card .stat-change.positive {
  background: rgba(0, 200, 83, 0.1);
  color: #00A844;
}
.stat-card .stat-change.negative {
  background: rgba(227, 6, 19, 0.08);
  color: var(--danger);
}

/* Stat card color variants */
.stat-card.stat-red::before { background: var(--gradient); }
.stat-card.stat-red .stat-icon { background: rgba(227, 6, 19, 0.1); color: var(--primary); }
.stat-card.stat-red:hover .stat-icon { background: var(--gradient); color: white; }

.stat-card.stat-green::before { background: linear-gradient(135deg, #00C853, #009624); }
.stat-card.stat-green .stat-icon { background: rgba(0, 200, 83, 0.1); color: #00C853; }
.stat-card.stat-green:hover .stat-icon { background: linear-gradient(135deg, #00C853, #009624); color: white; }
.stat-card.stat-green .number { background: linear-gradient(135deg, #00C853, #009624); -webkit-background-clip: text; background-clip: text; }

.stat-card.stat-blue::before { background: linear-gradient(135deg, #2196F3, #1565C0); }
.stat-card.stat-blue .stat-icon { background: rgba(33, 150, 243, 0.1); color: #2196F3; }
.stat-card.stat-blue:hover .stat-icon { background: linear-gradient(135deg, #2196F3, #1565C0); color: white; }
.stat-card.stat-blue .number { background: linear-gradient(135deg, #2196F3, #1565C0); -webkit-background-clip: text; background-clip: text; }

.stat-card.stat-amber::before { background: linear-gradient(135deg, #FF9800, #E65100); }
.stat-card.stat-amber .stat-icon { background: rgba(255, 152, 0, 0.1); color: #FF9800; }
.stat-card.stat-amber:hover .stat-icon { background: linear-gradient(135deg, #FF9800, #E65100); color: white; }
.stat-card.stat-amber .number { background: linear-gradient(135deg, #FF9800, #E65100); -webkit-background-clip: text; background-clip: text; }

/* ----- Premium Card Styles ----- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header .card-header-action {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.2s;
}
.card-header .card-header-action:hover {
  gap: 6px;
}

/* ----- Premium Table Styles ----- */
.table-wrapper {
  overflow-x: auto;
  margin: -4px;
  border-radius: var(--radius);
}
.table-wrapper table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table-wrapper table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 2px solid var(--border);
  background: #FAFBFC;
  position: sticky;
  top: 0;
  z-index: 1;
}
.table-wrapper table thead th:first-child { border-radius: 8px 0 0 0; }
.table-wrapper table thead th:last-child { border-radius: 0 8px 0 0; }
.table-wrapper table tbody tr {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.table-wrapper table tbody td {
  padding: 14px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid #F3F4F6;
  color: var(--dark);
  transition: background 0.2s;
  vertical-align: middle;
}
.table-wrapper table tbody tr:hover td {
  background: rgba(227, 6, 19, 0.02);
}
.table-wrapper table tbody tr:last-child td:first-child { border-radius: 0 0 0 8px; }
.table-wrapper table tbody tr:last-child td:last-child { border-radius: 0 0 8px 0; }
.table-wrapper table .actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Cell highlight variants */
.table-wrapper table td .cell-primary { color: var(--primary); font-weight: 600; }
.table-wrapper table td .cell-success { color: #00A844; font-weight: 600; }
.table-wrapper table td .cell-warning { color: #E65100; font-weight: 600; }
.table-wrapper table td .cell-danger { color: var(--danger); font-weight: 600; }

/* ----- Premium Badges ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.2;
  transition: all 0.2s;
}
.badge.bg-success { background: #DCFCE7; color: #166534; }
.badge.bg-danger { background: #FEE2E2; color: #991B1B; }
.badge.bg-warning { background: #FEF3C7; color: #92400E; }
.badge.bg-primary { background: #FBE9E7; color: #BF360C; }
.badge.bg-secondary { background: #F3F4F6; color: #374151; }
.badge.bg-info { background: #DBEAFE; color: #1E40AF; }

/* Badge Pill variant */
.badge-pill {
  border-radius: 20px;
  padding: 3px 12px;
}

/* Purple badge for marketing role */
.bg-purple {
  background: #8B5CF6 !important;
  color: white !important;
}

/* Mini role selector in admin table */
.role-select-mini {
  padding: 4px 8px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  max-width: 150px;
}
.role-select-mini:hover {
  border-color: #D1D5DB;
}
.role-select-mini:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}

/* ----- MAX Branded Modal Header ----- */
.modal-max-header {
  background: linear-gradient(135deg, #E30613 0%, #8B0000 100%);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  color: #fff;
}
.modal-max-header .modal-max-logo {
  width: 32px;
  height: 32px;
  filter: brightness(10);
  flex-shrink: 0;
}
.modal-max-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  flex: 1;
}
.modal-max-header .modal-max-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.modal-max-header .modal-max-close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

/* ----- Premium Filter/Search Bar ----- */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar .filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-bar .search-input {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.filter-bar .search-input input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--white);
  transition: all 0.3s;
  color: var(--dark);
}
.filter-bar .search-input input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.08);
}
.filter-bar .search-input .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-light);
  font-size: 14px;
  pointer-events: none;
}

/* ----- Premium Pagination ----- */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.pagination .page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--gray);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s;
}
.pagination .page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(227, 6, 19, 0.04);
}
.pagination .page-btn.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 3px 8px rgba(227, 6, 19, 0.25);
}

/* ----- Premium Form Styles (admin) ----- */
.premium-form .form-group {
  margin-bottom: 20px;
}
.premium-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.premium-form .form-group input,
.premium-form .form-group textarea,
.premium-form .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s;
  background: var(--white);
  color: var(--dark);
}
.premium-form .form-group input:focus,
.premium-form .form-group textarea:focus,
.premium-form .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.08);
}
.premium-form .form-group input:hover,
.premium-form .form-group textarea:hover,
.premium-form .form-group select:hover {
  border-color: #D1D5DB;
}
.premium-form .form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ----- Alert / Notification Banner ----- */
.alert-modern {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
}
.alert-modern.alert-success {
  background: #DCFCE7;
  color: #166534;
  border-left: 4px solid #22C55E;
}
.alert-modern.alert-error {
  background: #FEE2E2;
  color: #991B1B;
  border-left: 4px solid #EF4444;
}
.alert-modern.alert-warning {
  background: #FEF3C7;
  color: #92400E;
  border-left: 4px solid #F59E0B;
}
.alert-modern.alert-info {
  background: #DBEAFE;
  color: #1E40AF;
  border-left: 4px solid #3B82F6;
}

/* ----- Sandbox Banner (admin) ----- */
body.admin-layout .sandbox-banner {
  background: linear-gradient(135deg, #DC2626, #991B1B);
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
body.admin-layout .sandbox-banner::before {
  content: '⚠';
  font-size: 14px;
}

/* ----- Login Page Premium ----- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 50%, #0F0F0F 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(227, 6, 19, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.login-page .login-bg-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.login-page .login-bg-particles .particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(227, 6, 19, 0.08);
  animation: loginFloat 20s ease-in-out infinite;
}
.login-page .login-bg-particles .particle:nth-child(1) {
  width: 300px; height: 300px;
  top: -5%; left: -5%;
  animation-delay: 0s;
  animation-duration: 25s;
}
.login-page .login-bg-particles .particle:nth-child(2) {
  width: 200px; height: 200px;
  bottom: -5%; right: -5%;
  animation-delay: -5s;
  animation-duration: 30s;
  background: rgba(255, 255, 255, 0.03);
}
.login-page .login-bg-particles .particle:nth-child(3) {
  width: 150px; height: 150px;
  top: 40%; left: 60%;
  animation-delay: -10s;
  animation-duration: 20s;
  background: rgba(227, 6, 19, 0.05);
}
.login-page .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

@keyframes loginFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 10px) scale(1.02); }
}

.login-box {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  border-radius: 20px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  animation: loginCardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-box .login-header {
  text-align: center;
  margin-bottom: 32px;
}
.login-box .login-header .login-logo {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.3);
  animation: loginPulse 3s ease-in-out infinite;
}
@keyframes loginPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(227, 6, 19, 0.3); }
  50% { box-shadow: 0 8px 32px rgba(227, 6, 19, 0.5); }
}
.login-box .login-header .login-logo img {
  width: 32px;
  height: 32px;
  filter: brightness(10);
}
.login-box .login-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
}
.login-box .login-header p {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}
.login-box .form-group {
  margin-bottom: 20px;
}
.login-box .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.login-box .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s;
  background: #FAFBFC;
  color: var(--dark);
}
.login-box .form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.08);
  background: var(--white);
}
.login-box .form-group input:hover {
  border-color: #D1D5DB;
}
.login-box .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: var(--gradient);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(227, 6, 19, 0.3);
  font-family: inherit;
  line-height: 1;
}
.login-box .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.4);
}
.login-box .btn-primary:active {
  transform: translateY(0);
}
.login-box .login-footer {
  text-align: center;
  margin-top: 20px;
}
.login-box .login-footer a {
  font-size: 13px;
  color: var(--gray);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.login-box .login-footer a:hover {
  color: var(--primary);
}

/* ----- Page Content Animation ----- */
.page-content {
  animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Stat Card Mini (for sub-values) ----- */
.stat-card-mini {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.stat-card-mini:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stat-card-mini .mini-label {
  font-size: 11px;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-card-mini .mini-value {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--dark);
}

/* ----- Support Message Card ----- */
.message-card {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.message-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.message-card .message-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
}
.message-card .message-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}
.message-card .message-sender {
  display: flex;
  align-items: center;
  gap: 10px;
}
.message-card .message-sender .sender-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.message-card .message-sender .sender-info .sender-name {
  font-weight: 600;
  font-size: 14px;
}
.message-card .message-sender .sender-info .sender-email {
  font-size: 12px;
  color: var(--gray);
}
.message-card .message-date {
  font-size: 12px;
  color: var(--gray);
  white-space: nowrap;
}
.message-card .message-subject {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}
.message-card .message-body {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
  white-space: pre-wrap;
}
.message-card .message-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.message-card .message-reply {
  margin-top: 12px;
  padding: 14px 16px;
  background: #F9FAFB;
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}
.message-card .message-reply .reply-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.message-card .message-reply .reply-text {
  font-size: 13px;
  color: var(--dark);
  line-height: 1.6;
}

/* ----- Profile Page Enhancements ----- */
.profile-info-table { border-collapse: collapse; width: 100%; }
.profile-info-table tr { border-bottom: 1px solid var(--border); }
.profile-info-table tr:last-child { border-bottom: none; }
.profile-info-table td {
  padding: 14px 0;
  font-size: 14px;
  vertical-align: middle;
}
.profile-info-table td:first-child {
  font-weight: 600;
  color: var(--gray);
  width: 140px;
}
.profile-info-table td:last-child {
  color: var(--dark);
  font-weight: 500;
}

/* ----- Detail Card (user view, etc) ----- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}
.detail-card:hover {
  box-shadow: var(--shadow-md);
}
.detail-card .detail-card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail-card .detail-card-header .detail-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(227, 6, 19, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}
.detail-card .detail-card-header h3 {
  font-size: 15px;
  font-weight: 700;
}
.detail-card .detail-card-body {
  padding: 16px 24px 20px;
}

/* ----- Transaction Filter Tabs ----- */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-tabs .filter-tab {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.filter-tabs .filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(227, 6, 19, 0.04);
}
.filter-tabs .filter-tab.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 3px 8px rgba(227, 6, 19, 0.2);
}

/* ----- Modal Premium ----- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(8px);
  animation: modalOverlayIn 0.2s ease;
}
.modal-overlay.active { display: flex; }
@keyframes modalOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--dark);
}
.modal .actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}

/* ----- Mobile Responsive Enhancements ----- */
@media (max-width: 1024px) {
  .stat-card .number { font-size: 26px; }
  .sidebar { width: 240px; }
  .main-content { margin-left: 240px; }
}

@media (max-width: 768px) {
  .sidebar-toggle { display: flex; }

  .main-content {
    margin-left: 0;
    padding: 16px;
  }

  .top-bar { padding: 0 0 20px 0; }
  .top-bar h1 { font-size: 20px; }

  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  }
  .sidebar.open {
    left: 0;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
  }
  .sidebar-backdrop.show { display: block; }

  .dashboard { flex-direction: column; }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .stat-card { padding: 20px; }
  .stat-card .number { font-size: 24px; }

  .table-wrapper table thead th,
  .table-wrapper table tbody td {
    padding: 10px 12px;
    font-size: 12.5px;
  }

  .login-box {
    padding: 32px 24px 28px;
    max-width: 380px;
  }

  .filter-bar { flex-direction: column; }
  .filter-bar .search-input { min-width: 100%; }

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

  .message-card .message-header {
    flex-direction: column;
  }

  .top-bar .top-bar-left .mobile-menu-btn { display: flex; }

  .pagination { gap: 2px; }
  .pagination .page-btn { min-width: 32px; height: 32px; font-size: 12px; }
}

@media (max-width: 480px) {
  .sidebar { width: 100%; left: -100%; }
  .sidebar.open { left: 0; }

  .main-content { padding: 12px; }

  .login-box {
    padding: 24px 20px 24px;
    border-radius: 16px;
  }
  .login-box .login-header .login-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .login-box .login-header .login-logo img { width: 28px; height: 28px; }

  .card { padding: 18px; }
  .stat-card .number { font-size: 22px; }

  .filter-tabs .filter-tab { padding: 6px 14px; font-size: 11px; }
}

/* ================================================================
   END OF PREMIUM FINITECH ADMIN PANEL STYLES
   ================================================================ */

/* ===== PUBLIC SITE REDESIGN =====
   Premium light-theme fintech redesign for MAX public pages
   All styles below are for the public-facing site only.
   ================================================================ */

/* ----- Light Section Base ----- */
.light-section {
  background: #FFFFFF;
  color: #111827;
}
.light-section-alt {
  background: #F8F9FA;
  color: #111827;
}
.light-section .section-title h2,
.light-section-alt .section-title h2 {
  background: none;
  -webkit-text-fill-color: #111827;
  background-clip: unset;
  color: #111827;
}
.light-section .section-title p,
.light-section-alt .section-title p {
  color: #6B7280;
}

/* ----- Navbar Public Light ----- */
.navbar.navbar-public {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar.navbar-public.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.navbar.navbar-public .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  gap: 24px;
}
.navbar.navbar-public .logo {
  flex-shrink: 0;
}
.navbar.navbar-public .logo .logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.navbar.navbar-public .logo .logo-img-white { display: block; }
.navbar.navbar-public .logo .logo-img-color { display: none; }
.navbar.navbar-public.scrolled .logo .logo-img-white { display: none; }
.navbar.navbar-public.scrolled .logo .logo-img-color { display: block; }
.navbar.navbar-public .nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0 auto;
}
.navbar.navbar-public .nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.2px;
}
.navbar.navbar-public .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--gradient);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}
.navbar.navbar-public .nav-links a:hover {
  color: #FFFFFF;
}
.navbar.navbar-public .nav-links a:hover::after {
  width: 100%;
}
.navbar.navbar-public .nav-links a.active {
  color: #FFFFFF;
}
.navbar.navbar-public .nav-links a.active::after {
  width: 100%;
}
.navbar.navbar-public.scrolled .nav-links a {
  color: #4B5563;
}
.navbar.navbar-public.scrolled .nav-links a:hover {
  color: #111827;
}
.navbar.navbar-public.scrolled .nav-links a.active {
  color: #111827;
}
.navbar.navbar-public .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.navbar.navbar-public .nav-right .btn {
  padding: 10px 22px;
  font-size: 13px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.navbar.navbar-public .mobile-toggle span {
  background: #FFFFFF;
}
.navbar.navbar-public.scrolled .mobile-toggle span {
  background: #111827;
}

/* ----- Language Switcher ----- */
.lang-switcher {
  display: flex;
  align-items: center;
}
.lang-select {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  max-width: 150px;
}
.lang-select:hover, .lang-select:focus {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}
.navbar-public.scrolled .lang-select {
  border-color: rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.04);
  color: #4B5563;
}
.navbar-public.scrolled .lang-select:hover {
  background: rgba(0,0,0,0.08);
}
.lang-select option {
  color: #1a1a1a;
  background: #fff;
}
.sidebar-lang-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}
.sidebar-lang-select:hover, .sidebar-lang-select:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.sidebar-lang-select option {
  color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}

/* ----- Hero Split Layout ----- */
.hero-split {
  padding: 80px 24px 0;
  background: var(--gradient);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-split::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 40%, rgba(139, 0, 0, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(0,0,0,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.hero-split .hero-bg-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-split .hero-bg-particles .particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  animation: heroParticle 20s ease-in-out infinite;
}
.hero-split .hero-bg-particles .particle:nth-child(1) {
  width: 400px; height: 400px;
  top: -10%; right: -5%;
  animation-duration: 25s;
}
.hero-split .hero-bg-particles .particle:nth-child(2) {
  width: 300px; height: 300px;
  bottom: -8%; left: 5%;
  animation-duration: 30s;
  animation-delay: -8s;
  background: rgba(139, 0, 0, 0.06);
}
.hero-split .hero-bg-particles .particle:nth-child(3) {
  width: 200px; height: 200px;
  top: 30%; left: 40%;
  animation-duration: 22s;
  animation-delay: -4s;
  background: rgba(255,255,255,0.02);
}
@keyframes heroParticle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}
.hero-split .container {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 160px 0 80px;
}
.hero-split .hero-content {
  max-width: 560px;
}
.hero-badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.hero-split h1 {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -2.5px;
  color: #FFFFFF;
}
.hero-split h1 .hero-highlight-red {
  background: linear-gradient(135deg, #FF4D4D, #E30613);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-split .hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 500px;
}
.hero-split .hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-split .hero-buttons .btn {
  padding: 16px 32px;
  font-size: 15px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.hero-split .hero-buttons .btn-primary {
  background: #FFFFFF;
  color: #E30613;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.hero-split .hero-buttons .btn-primary:hover {
  background: #FFFFFF;
  color: #B8000F;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.hero-split .hero-buttons .btn-outline-light {
  border-color: rgba(255,255,255,0.3);
  color: #FFFFFF;
}
.hero-split .hero-buttons .btn-outline-light:hover {
  border-color: #FFFFFF;
  background: rgba(255,255,255,0.1);
}

/* ----- Trust Indicators ----- */
.trust-bar {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.trust-item .trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-item .trust-icon svg {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.8);
}
.trust-item strong {
  color: #FFFFFF;
  font-weight: 700;
}

/* ----- Phone Mockup ----- */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}
.phone-mockup {
  width: 300px;
  height: 600px;
  background: linear-gradient(180deg, #1A1A1F 0%, #121216 100%);
  border-radius: 40px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(4deg) translateY(-12px); }
}
.phone-mockup .phone-screen {
  width: 100%;
  height: 100%;
  background: #0D0D11;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}
.phone-mockup .phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1A1A1F;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-mockup .phone-notch::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2A2A30;
  border: 1.5px solid #333;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 20px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.phone-status-icons {
  display: flex;
  gap: 4px;
}
.phone-status-icons span {
  width: 14px;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  display: block;
}
.phone-app-header {
  text-align: center;
  margin-bottom: 24px;
}
.phone-app-header .phone-logo-text {
  font-size: 22px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}
.phone-app-header .phone-balance-label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 8px;
}
.phone-app-header .phone-balance-amount {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -1px;
  margin-top: 4px;
}
.phone-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.phone-action-btn {
  padding: 10px 4px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  cursor: default;
}
.phone-action-btn .phone-action-icon {
  display: block;
  margin: 0 auto 4px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(227, 6, 19, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.phone-action-btn:hover {
  background: rgba(255,255,255,0.08);
}
.phone-transactions {
  flex: 1;
}
.phone-tx-label {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 12px;
}
.phone-tx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.phone-tx-item:last-child {
  border-bottom: none;
}
.phone-tx-icon-round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}
.phone-tx-icon-round.send {
  background: rgba(227, 6, 19, 0.12);
  color: #E30613;
}
.phone-tx-icon-round.receive {
  background: rgba(0, 200, 83, 0.12);
  color: #00C853;
}
.phone-tx-info {
  flex: 1;
  min-width: 0;
}
.phone-tx-info .phone-tx-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.phone-tx-info .phone-tx-date {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 1px;
}
.phone-tx-amount {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
}

/* ----- Download Card ----- */
.download-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  width: 280px;
}
.download-card-icon {
  margin-bottom: 16px;
}
.download-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.download-card .download-version {
  color: #666;
  font-size: 14px;
  margin-bottom: 4px;
}
.download-card .download-size {
  color: #999;
  font-size: 13px;
  margin-bottom: 24px;
}

/* ----- Stats Section Light ----- */
.stats-section-light {
  background: #F8F9FA;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.stats-section-light .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.stats-section-light .stat-item {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.stats-section-light .stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: rgba(0,0,0,0.06);
}
.stats-section-light .stat-item h3 {
  font-size: 44px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  display: inline-block;
  position: relative;
}
.stats-section-light .stat-item p {
  font-size: 14px;
  color: #6B7280;
  margin-top: 6px;
  font-weight: 500;
}

/* ----- Services / Products Grid ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 32px 24px 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  background: #FFFFFF;
  border-color: rgba(227, 6, 19, 0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.service-card:hover::before {
  opacity: 1;
}
.service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(227, 6, 19, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-icon {
  background: var(--gradient);
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.25);
}
.service-card .service-icon svg {
  width: 26px;
  height: 26px;
  color: #E30613;
  transition: color 0.4s ease;
}
.service-card:hover .service-icon svg {
  color: #FFFFFF;
}
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.7;
}

/* ----- How It Works (Connecting Line) ----- */
.steps-modern {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}
.steps-modern .step-modern-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 20px;
}
.steps-modern .step-modern-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
  font-weight: 900;
  color: #FFFFFF;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.steps-modern .step-modern-item:hover .step-modern-circle {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(227, 6, 19, 0.4);
}
.steps-modern .step-modern-circle::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(227, 6, 19, 0.15);
  animation: stepPulse 2.5s ease-in-out infinite;
}
@keyframes stepPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.2; }
}
.steps-modern .step-connector {
  flex: 0 0 80px;
  padding-top: 36px;
  position: relative;
}
.steps-modern .step-connector .step-line {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(227, 6, 19, 0.3), rgba(227, 6, 19, 0.05));
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.steps-modern .step-connector .step-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #E30613, transparent);
  animation: stepLineShimmer 3s ease-in-out infinite;
}
@keyframes stepLineShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}
.steps-modern .step-modern-item h3 {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}
.steps-modern .step-modern-item p {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.7;
  max-width: 260px;
  margin: 0 auto;
}

/* ----- Testimonials ----- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  background: #FFFFFF;
  border-color: rgba(227, 6, 19, 0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.testimonial-card .testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.testimonial-card .testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: #FFD700;
}
.testimonial-card .testimonial-text {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  padding-left: 4px;
}
.testimonial-card .testimonial-text::before {
  content: '"';
  font-size: 48px;
  line-height: 0.6;
  color: rgba(227, 6, 19, 0.15);
  font-weight: 900;
  position: absolute;
  top: 8px;
  left: -8px;
  font-style: normal;
}
.testimonial-card .testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #E5E7EB;
  padding-top: 16px;
}
.testimonial-card .testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.2);
}
.testimonial-card .testimonial-author-info .author-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.testimonial-card .testimonial-author-info .author-title {
  display: block;
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 2px;
}

/* ----- Security Section ----- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.security-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.security-card:hover {
  transform: translateY(-4px);
  background: #FFFFFF;
  border-color: rgba(227, 6, 19, 0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.security-card .security-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(227, 6, 19, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.security-card .security-icon svg {
  width: 24px;
  height: 24px;
  color: #E30613;
}
.security-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}
.security-card p {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.6;
}

/* ----- CTA Section Light ----- */
.cta-section-light {
  background: linear-gradient(135deg, #FFFFFF 0%, #FEF2F2 50%, #FFFFFF 100%);
  text-align: center;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}
.cta-section-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(227, 6, 19, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(139, 0, 0, 0.02) 0%, transparent 50%);
  pointer-events: none;
}
.cta-section-light .container {
  position: relative;
  z-index: 1;
}
.cta-section-light .cta-content {
  max-width: 650px;
  margin: 0 auto;
}
.cta-section-light .cta-content h2 {
  font-size: 40px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}
.cta-section-light .cta-content p {
  font-size: 17px;
  color: #6B7280;
  margin-bottom: 36px;
  line-height: 1.7;
}
.cta-section-light .cta-content .btn {
  padding: 18px 40px;
  font-size: 16px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.cta-section-light .cta-content .btn-primary {
  background: var(--gradient);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.3);
}
.cta-section-light .cta-content .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(227, 6, 19, 0.4);
}

/* ----- Footer Premium ----- */
.footer-public {
  background: #0C0C0F;
  color: #FFFFFF;
  padding: 80px 24px 32px;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-public .container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-public .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-public .footer-brand-img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}
.footer-public .footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  max-width: 280px;
}
.footer-public h4 {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-public p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-bottom: 8px;
}
.footer-public a {
  color: rgba(255,255,255,0.45);
  transition: all 0.3s ease;
}
.footer-public a:hover {
  color: #E30613;
  padding-left: 4px;
}
.footer-public .footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-public .footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}
.footer-public .footer-social a:hover {
  background: var(--gradient);
  color: #FFFFFF;
  border-color: transparent;
  padding-left: 0;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.25);
}
.footer-public .footer-social a svg {
  width: 16px;
  height: 16px;
}
.footer-public .footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ----- Features Page ----- */

/* Feature Cards */
.features-grid-light {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card-light {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 32px 24px 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.feature-card-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card-light:hover {
  transform: translateY(-8px);
  background: #FFFFFF;
  border-color: rgba(227, 6, 19, 0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.feature-card-light:hover::before {
  opacity: 1;
}
.feature-card-light .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(227, 6, 19, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card-light:hover .feature-icon {
  background: var(--gradient);
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.25);
}
.feature-card-light .feature-icon svg {
  width: 26px;
  height: 26px;
  color: #E30613;
  transition: color 0.4s ease;
}
.feature-card-light:hover .feature-icon svg {
  color: #FFFFFF;
}
.feature-card-light h3 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.feature-card-light p {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.7;
}

/* ----- Comparison Table ----- */
.comparison-section {
  background: #F8F9FA;
}
.comparison-wrapper {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-table thead th {
  padding: 20px 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  color: #6B7280;
  text-align: center;
}
.comparison-table thead th:first-child {
  text-align: left;
  color: #9CA3AF;
}
.comparison-table thead th.col-max {
  color: #E30613;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.comparison-table thead th.col-traditional {
  color: #9CA3AF;
}
.comparison-table tbody td {
  padding: 16px 24px;
  font-size: 14px;
  border-bottom: 1px solid #F3F4F6;
  color: #6B7280;
  text-align: center;
  transition: background 0.3s ease;
}
.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #374151;
}
.comparison-table tbody tr:hover td {
  background: #F9FAFB;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table .check {
  color: #00C853;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.comparison-table .check::before {
  content: '';
  width: 18px;
  height: 18px;
  background: rgba(0, 200, 83, 0.12);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2300C853' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.comparison-table .cross {
  color: #EF4444;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.comparison-table .cross::before {
  content: '';
  width: 18px;
  height: 18px;
  background: rgba(239, 68, 68, 0.12);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23EF4444' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ----- Contact Page Light ----- */
.contact-grid-light {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}
.contact-info-card-light {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.contact-info-card-light:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: rgba(227, 6, 19, 0.12);
}
.contact-info-card-light h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 12px;
}
.contact-info-card-light h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}
.contact-info-item-light {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-info-item-light:last-child {
  margin-bottom: 0;
}
.contact-info-item-light .contact-icon-light {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(227, 6, 19, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-info-item-light:hover .contact-icon-light {
  transform: scale(1.08);
  background: rgba(227, 6, 19, 0.15);
}
.contact-info-item-light .contact-icon-light svg {
  width: 20px;
  height: 20px;
  color: #E30613;
}
.contact-info-item-light .contact-label {
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-info-item-light .contact-value {
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
  font-weight: 500;
}

.contact-form-card-light {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.contact-form-card-light:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: rgba(227, 6, 19, 0.12);
}
.contact-form-card-light h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 12px;
}
.contact-form-card-light h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
}
.contact-form-light .form-group {
  margin-bottom: 20px;
}
.contact-form-light .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-form-light .form-group input,
.contact-form-light .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: #F9FAFB;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  transition: all 0.3s ease;
  outline: none;
}
.contact-form-light .form-group input::placeholder,
.contact-form-light .form-group textarea::placeholder {
  color: #9CA3AF;
}
.contact-form-light .form-group input:hover,
.contact-form-light .form-group textarea:hover {
  border-color: #D1D5DB;
}
.contact-form-light .form-group input:focus,
.contact-form-light .form-group textarea:focus {
  border-color: #E30613;
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.08);
  background: #FFFFFF;
}
.contact-form-light .form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form-light .btn-submit {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: var(--gradient);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(227, 6, 19, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.contact-form-light .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.4);
}

/* ----- Light Alerts ----- */
.alert-light-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}
.alert-light-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

/* ----- Response Time Bars (Light) ----- */
.response-time-light {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}
.response-time-light .response-label {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.response-time-light .response-item {
  margin-bottom: 14px;
}
.response-time-light .response-item .response-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}
.response-time-light .response-item .response-header span:first-child {
  font-weight: 600;
  color: #374151;
}
.response-time-light .response-item .response-header span:last-child {
  color: #6B7280;
}
.response-time-light .response-item .response-bar-bg {
  height: 6px;
  background: #F3F4F6;
  border-radius: 3px;
  overflow: hidden;
}
.response-time-light .response-item .response-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Page Header Light ----- */
.page-header-light {
  padding: 160px 24px 60px;
  background: var(--gradient);
  position: relative;
  z-index: 0;
  overflow: hidden;
  text-align: center;
}
.page-header-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 40%, rgba(139, 0, 0, 0.3) 0%, transparent 50%);
  pointer-events: none;
}
.page-header-light .container {
  position: relative;
  z-index: 1;
}
.page-header-light .hero-badge-modern {
  margin-bottom: 20px;
}
.page-header-light h1 {
  font-size: 48px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -2px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.page-header-light h1 .hero-highlight-red {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header-light p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ----- Responsive: Public Site Redesign ----- */
@media (max-width: 1024px) {
  .hero-split .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 140px 0 60px;
  }
  .hero-split .hero-content {
    max-width: 100%;
  }
  .hero-split h1 {
    font-size: 44px;
  }
  .hero-split .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-split .hero-buttons {
    justify-content: center;
  }
  .trust-bar {
    justify-content: center;
  }
  .hero-mockup {
    order: -1;
  }
  .phone-mockup {
    width: 240px;
    height: 480px;
    border-radius: 32px;
    padding: 10px;
    transform: rotateY(0deg) rotateX(0deg);
  }
  @keyframes phoneFloat {
    0%, 100% { transform: rotateY(0deg) rotateX(0deg) translateY(0); }
    50% { transform: rotateY(0deg) rotateX(0deg) translateY(-8px); }
  }
  .phone-app-header .phone-balance-amount {
    font-size: 22px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid-light {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-public .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .page-header-light h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .navbar.navbar-public .container {
    min-height: 64px;
  }
  .navbar.navbar-public .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(12, 12, 15, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: none;
    margin: 0;
  }
  .navbar.navbar-public.scrolled .nav-links {
    background: rgba(255,255,255,0.98);
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  .navbar.navbar-public .nav-links.active {
    display: flex;
  }
  .navbar.navbar-public .nav-links li {
    width: 100%;
  }
  .navbar.navbar-public .nav-links a {
    display: block;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 8px;
    color: rgba(255,255,255,0.85);
  }
  .navbar.navbar-public .nav-links a::after {
    display: none;
  }
  .navbar.navbar-public .nav-links a:hover {
    color: #FFFFFF;
  }
  .navbar.navbar-public .nav-links a.active {
    color: #FFFFFF;
    background: rgba(227, 6, 19, 0.15);
  }
  .navbar.navbar-public.scrolled .nav-links a {
    color: #4B5563;
  }
  .navbar.navbar-public.scrolled .nav-links a:hover {
    color: #111827;
  }
  .navbar.navbar-public.scrolled .nav-links a.active {
    color: #111827;
    background: rgba(227, 6, 19, 0.08);
  }
  .navbar.navbar-public .nav-right .btn {
    display: none;
  }
  .navbar.navbar-public .mobile-toggle {
    display: flex;
  }

  .hero-split {
    min-height: auto;
    padding: 0 16px;
  }
  .hero-split .container {
    padding: 120px 0 50px;
  }
  .hero-split h1 {
    font-size: 32px;
    letter-spacing: -1.5px;
  }
  .hero-split .hero-subtitle {
    font-size: 15px;
  }
  .hero-split .hero-buttons .btn {
    padding: 14px 24px;
    font-size: 14px;
  }
  .trust-item {
    font-size: 12px;
  }
  .phone-mockup {
    width: 200px;
    height: 400px;
    border-radius: 28px;
    padding: 8px;
  }
  .phone-mockup .phone-screen {
    padding: 14px 12px;
  }
  .phone-mockup .phone-notch {
    width: 80px;
    height: 22px;
  }
  .phone-status-bar {
    padding-bottom: 12px;
    font-size: 10px;
  }
  .phone-app-header .phone-balance-amount {
    font-size: 18px;
  }
  .phone-app-header .phone-logo-text {
    font-size: 18px;
  }
  .phone-actions {
    gap: 6px;
    margin-bottom: 16px;
  }
  .phone-action-btn {
    padding: 6px 4px;
    font-size: 10px;
  }
  .phone-app-header {
    margin-bottom: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-card {
    padding: 24px 20px;
  }

  .steps-modern {
    flex-direction: column;
    gap: 0;
  }
  .steps-modern .step-connector {
    flex: 0 0 auto;
    padding: 0;
    height: 40px;
    width: 3px;
    margin-left: 36px;
  }
  .steps-modern .step-connector .step-line {
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, rgba(227, 6, 19, 0.3), rgba(227, 6, 19, 0.05));
  }
  .steps-modern .step-connector .step-line::after {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, #E30613, transparent);
    animation: stepLineShimmerV 3s ease-in-out infinite;
  }
  @keyframes stepLineShimmerV {
    0% { top: -100%; }
    100% { top: 100%; }
  }
  .steps-modern .step-modern-item {
    padding: 0;
    text-align: left;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  .steps-modern .step-modern-circle {
    width: 56px;
    height: 56px;
    font-size: 22px;
    margin: 0;
    flex-shrink: 0;
  }
  .steps-modern .step-modern-item .step-text {
    padding-top: 8px;
  }
  .steps-modern .step-modern-item h3 {
    font-size: 17px;
  }
  .steps-modern .step-modern-item p {
    margin: 0;
    max-width: 100%;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card {
    padding: 28px 24px;
  }

  .security-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .security-card {
    padding: 20px 16px;
  }

  .stats-section-light .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stats-section-light .stat-item:not(:last-child)::after {
    display: none;
  }
  .stats-section-light .stat-item h3 {
    font-size: 34px;
  }

  .features-grid-light {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card-light {
    padding: 24px 20px;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 12px 16px;
    font-size: 12px;
  }
  .comparison-table thead th.col-max {
    font-size: 13px;
  }

  .contact-grid-light {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-info-card-light,
  .contact-form-card-light {
    padding: 28px 20px;
  }

  .footer-public .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-public {
    padding: 48px 20px 24px;
  }

  .cta-section-light {
    padding: 70px 20px;
  }
  .cta-section-light .cta-content h2 {
    font-size: 28px;
  }
  .cta-section-light .cta-content p {
    font-size: 15px;
  }

  .page-header-light {
    padding: 120px 20px 40px;
  }
  .page-header-light h1 {
    font-size: 28px;
  }
  .page-header-light h1 {
    font-size: 28px;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero-split h1 {
    font-size: 28px;
  }
  .hero-split .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-split .hero-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .stats-section-light .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stats-section-light .stat-item h3 {
    font-size: 28px;
  }
  .stats-section-light .stat-item p {
    font-size: 12px;
  }
  .security-grid {
    grid-template-columns: 1fr;
  }
  .page-header-light h1 {
    font-size: 24px;
  }
  .comparison-wrapper {
    border-radius: 12px;
  }
  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 10px 12px;
    font-size: 11px;
  }
}

/* ===== END OF PUBLIC SITE REDESIGN ===== */
