/* ============================================================
   ANOUKIS DISTRIBUTION B2B - DESIGN SYSTEM
   Palette: #9E90F2 dominant, white background
   ============================================================ */

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

/* ---- CSS Variables ---- */
:root {
  --primary: #9E90F2;
  --primary-light: #B8ADF7;
  --primary-lighter: #D4CEFB;
  --primary-lightest: #F0EEFE;
  --primary-dark: #7B6BD4;
  --primary-darker: #5A4AB3;
  --bg: #FFFFFF;
  --bg-light: #F8F7FF;
  --bg-gray: #F5F5F8;
  --text: #2D2D3A;
  --text-light: #6E6E80;
  --text-muted: #9999AA;
  --border: #E5E5EE;
  --border-light: #F0F0F5;
  --success: #34C77B;
  --error: #E74C5E;
  --warning: #F5A623;
  --shadow-sm: 0 1px 3px rgba(158,144,242,0.08);
  --shadow-md: 0 4px 12px rgba(158,144,242,0.12);
  --shadow-lg: 0 8px 30px rgba(158,144,242,0.16);
  --shadow-xl: 0 16px 48px rgba(158,144,242,0.20);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit; font-size: inherit; border: none; outline: none; background: none;
}
button { cursor: pointer; }

/* ---- Container ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-fluid { width: 100%; padding: 0 24px; }

/* ============================================================
   TOP BAR (above header)
   ============================================================ */
.top-bar {
  background: var(--primary);
  color: #fff;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
}
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.top-bar a {
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
}
.top-bar a:hover { color: #fff; }

/* Language switcher */
.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
}
.lang-switch button {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  background: transparent;
}
.lang-switch button:hover { color: #fff; background: rgba(255,255,255,0.15); }
.lang-switch button.active {
  color: var(--primary);
  background: #fff;
}
.lang-switch .sep { color: rgba(255,255,255,0.4); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 32px;
}

/* Main Menu */
.main-menu {
  display: flex;
  gap: 30px;
  margin-right: auto;
}
.menu-link {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}
.menu-link:hover, .menu-link.active {
  color: var(--primary);
}
.menu-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}


/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img.logo-icon { height: 50px; width: auto; }
.logo img.logo-name { height: 50px; width: auto; }

/* Search bar */
.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-light);
  transition: all var(--transition);
}
.search-bar input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(158,144,242,0.12);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Action buttons (account, cart) */
.header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}
.header-btn:hover {
  background: var(--primary-lightest);
  color: var(--primary-dark);
}
.header-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.header-btn .badge {
  position: absolute;
  top: 2px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login button */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(158,144,242,0.3);
}
.btn-login:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(158,144,242,0.4);
  transform: translateY(-1px);
}
.btn-login svg { width: 18px; height: 18px; }

/* Account dropdown */
.account-dropdown {
  position: relative;
}
.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
  overflow: hidden;
}
.account-dropdown:hover .account-menu,
.account-dropdown.open .account-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.account-menu-header {
  padding: 16px;
  background: var(--primary-lightest);
  border-bottom: 1px solid var(--border-light);
}
.account-menu-header .name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.account-menu-header .email {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}
.account-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
}
.account-menu a:hover {
  background: var(--primary-lightest);
  color: var(--primary-dark);
}
.account-menu a svg { width: 18px; height: 18px; color: var(--text-muted); }
.account-menu .divider { height: 1px; background: var(--border-light); margin: 4px 0; }
.account-menu a.logout { color: var(--error); }
.account-menu a.logout:hover { background: #FEF2F2; }

/* ============================================================
   NAVIGATION BAR (product families)
   ============================================================ */
.nav-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}
.nav-bar .container {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-bar .container::-webkit-scrollbar { display: none; }
.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}
.nav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-lightest);
}
.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-lightest) 0%, #fff 50%, var(--primary-lighter) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, rgba(158,144,242,0.15) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 60px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--primary-lightest);
  border: 1px solid var(--primary-lighter);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(158,144,242,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(158,144,242,0.45);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.btn svg { width: 18px; height: 18px; }

/* ============================================================
   VALUE PROPOSITIONS BAR
   ============================================================ */
.value-bar {
  background: var(--primary);
  padding: 28px 0;
}
.value-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.value-icon svg { width: 24px; height: 24px; }
.value-item h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.value-item p {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 64px 0;
}
.section-alt { background: var(--bg-light); }
.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}
.section-title span { color: var(--primary); }
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}
.category-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-lightest), var(--primary-lighter));
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-card-bg .card-emoji {
  font-size: 72px;
  opacity: 0.6;
  transition: all var(--transition);
}
.category-card:hover .card-emoji {
  transform: scale(1.15);
  opacity: 0.8;
}
.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(255,255,255,0.95));
}
.category-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.category-card p {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: var(--bg-light);
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}
.login-card .logo-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.login-card .logo-center img { height: 50px; width: auto; }
.login-card h1 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.login-card .subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 32px;
}

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-light);
  transition: all var(--transition);
}
.form-group input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(158,144,242,0.1);
}
.form-group input::placeholder { color: var(--text-muted); }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
}
.form-footer a { color: var(--primary); font-weight: 500; }
.form-footer a:hover { color: var(--primary-dark); }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(158,144,242,0.3);
}
.btn-submit:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(158,144,242,0.4);
  transform: translateY(-1px);
}

.login-separator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.login-separator::before, .login-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.register-link {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
}
.register-link a {
  color: var(--primary);
  font-weight: 600;
}
.register-link a:hover { color: var(--primary-dark); }

/* Alert messages */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: var(--error);
}
.alert-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: var(--success);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col p {
  font-size: 13px;
  line-height: 1.8;
}
.footer-col a {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.footer-col a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo img { height: 50px; width: auto; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { 
  color: var(--primary-light); 
  text-decoration: none;
  transition: all var(--transition);
}
.footer-bottom a:hover { 
  color: #fff; 
}

/* ============================================================
   UTILITIES & ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

/* Pulse dot for "new" items */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(158,144,242,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(158,144,242,0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 34px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .value-bar .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-main { flex-wrap: wrap; }
  .search-bar { order: 3; max-width: 100%; flex-basis: 100%; margin-top: 8px; }
  .hero { min-height: 380px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .value-bar .container { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav-bar .container { padding: 0 12px; }
}
@media (max-width: 480px) {
  .hero-content { padding: 40px 0; }
  .hero h1 { font-size: 24px; }
  .login-card { padding: 32px 24px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   HEADER RESPONSIVE (menu connecte + non connecte)
   ============================================================ */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .header-main { position: relative; flex-wrap: wrap; gap: 12px; }
  .menu-toggle { display: flex; order: -1; }
  .main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 6px 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 1001;
  }
  .main-menu.open { display: flex; }
  .main-menu .menu-link { padding: 13px 24px; font-size: 15px; }
  .main-menu .menu-link.active::after { display: none; }
  .header-actions { margin-left: auto; gap: 4px; }
  .search-bar { order: 3; max-width: 100%; flex-basis: 100%; margin-top: 0; }
}

@media (max-width: 560px) {
  .btn-label { display: none; }
  .header-btn { padding: 8px 10px; }
  .logo img.logo-name { display: none; }
}

/* ============================================================
   UTILITAIRES RESPONSIVE (pages espace client)
   ============================================================ */
/* Tableau scrollable horizontalement sur petit ecran */
.r-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 768px) {
  /* Grilles a empiler en 1 colonne */
  .r-stack { grid-template-columns: 1fr !important; }
  /* Grilles a 3+ colonnes -> 2 colonnes en tablette */
  .r-stack2 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .r-stack2 { grid-template-columns: 1fr !important; }
}

/* Custom Country Dropdown */
.custom-select-wrapper {
  position: relative;
  user-select: none;
}
.custom-select {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-light);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
}
.custom-select:hover, .custom-select.active {
  border-color: var(--primary);
  background: #fff;
}
.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid var(--primary);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: 0;
  z-index: 100;
  display: none;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.custom-options.show {
  display: block;
}
.custom-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
}
.custom-option:hover {
  background: rgba(158, 144, 242, 0.1);
}
.fi {
  border-radius: 2px;
}
.other-country-input {
  margin-top: 12px;
  display: none;
}
.other-country-input.show {
  display: block;
}
.custom-select::after {
  content: "";
  margin-left: auto;
  width: 10px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3E%3Cpath stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transition: transform 0.3s;
}
.custom-select.active::after {
  transform: rotate(180deg);
}

/* About Us Page Layout */
.about-page {
  background: #f8f7ff;
  min-height: 100vh;
}
.about-hero {
  background: linear-gradient(135deg, var(--primary-lightest) 0%, #fff 50%, var(--primary-lighter) 100%);
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
}
.about-hero h1 {
  color: #2d2c3a !important;
  font-size: 38px;
  font-weight: 800;
  margin: 0;
  position: relative;
  z-index: 1;
}


.about-content-section {
  padding-bottom: 100px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.about-card {
  background: #fff;
  padding: 60px 80px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 0 auto;
}
.about-card p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 30px;
}
.about-card h2 {
  color: var(--primary);
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .about-card { padding: 40px 30px; }
  .about-hero h1 { font-size: 32px; }
}


