/* ═══════════════════════════════════════════════════════════════
   EASIBUCKS — Global Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --color-primary: #E5254C;
  --color-primary-dark: #c41e40;
  --color-secondary: #5eead4;
  --color-bg-dark: #1e1b38;
  --color-bg-mid: #3A375E;
  --color-text: #1e1b38;
  --color-text-muted: #6b7280;
  --color-bg-light: #f8fafc;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --max-width: 1100px;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  background: var(--color-bg-light);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); text-decoration: none; transition: color 0.15s; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Focus Accessibility ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: 2px !important;
}

/* ── Skip Navigation ─────────────────────────────────────────── */
#skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}
#skip-nav:focus {
  position: fixed !important;
  left: 12px !important;
  top: 12px !important;
  width: auto !important;
  height: auto !important;
  padding: 8px 16px !important;
  background: var(--color-primary) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
}

/* ── Header ──────────────────────────────────────────────────── */
header {
  background: var(--color-bg-dark);
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: var(--font-family);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .logo {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}
header nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
header nav a {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  text-decoration: none;
  padding: 6px 8px;
  transition: color 0.15s;
}
header nav a:hover { color: #fff; text-decoration: none; }

/* ── Dropdown Navigation ─────────────────────────────────────── */
.nav-dd {
  position: relative;
  display: inline-block;
}
.nav-dd > a { cursor: pointer; }
.dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-dark);
  min-width: 180px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 1001;
  margin-top: 4px;
}
.nav-dd:hover .dd-menu { display: block; }
.dd-menu a {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  text-decoration: none;
  padding: 8px 14px;
  display: block;
  transition: background 0.15s, color 0.15s;
}
.dd-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

/* ── Hero Section ────────────────────────────────────────────── */
#eb-hero {
  background: linear-gradient(135deg, #f0f9ff, #fef2f2, #f5f3ff);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#eb-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 16px;
}
#eb-hero p {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ── Ecosystem Section ───────────────────────────────────────── */
#eb-ecosystem {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-mid) 50%, var(--color-bg-dark) 100%);
  padding: 60px 24px 48px;
  text-align: center;
  border-top: 3px solid var(--color-primary);
}
#eb-ecosystem h2 {
  color: #fff;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  margin-bottom: 12px;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 48px 24px 24px;
  font-family: var(--font-family);
}
footer h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--color-secondary);
}
footer h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-secondary);
  margin-bottom: 12px;
}
footer a {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.15s;
  display: block;
  margin-bottom: 6px;
}
footer a:hover {
  color: #fff;
  text-decoration: none;
}

/* ── Floating Widgets ────────────────────────────────────────── */
#eb-countdown-float {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  background: linear-gradient(135deg, var(--color-bg-dark), var(--color-bg-mid));
  border: 1px solid rgba(229,37,76,0.4);
  border-radius: var(--radius-lg);
  padding: 14px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

#liffa-chat-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
}

#cb-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 80px;
  z-index: 999;
}

/* ── Popup / Modal ───────────────────────────────────────────── */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  backdrop-filter: blur(2px);
}
.popup-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1002;
  background: linear-gradient(135deg, var(--color-bg-dark), var(--color-bg-mid));
  border: 1px solid rgba(229,37,76,0.3);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  text-align: center;
  font-family: var(--font-family);
}

/* ── Tables ──────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
th {
  background: linear-gradient(135deg, var(--color-bg-dark), var(--color-bg-mid));
  color: #fff;
  padding: 14px 20px;
  font-weight: 700;
}
td {
  padding: 12px 20px;
  border-bottom: 1px solid #e5e7eb;
}
tr:nth-child(even) { background: #f8fafc; }

/* ── Forms ───────────────────────────────────────────────────── */
input, select, textarea {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  outline: none;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
}
::placeholder { color: rgba(255,255,255,0.4); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  header nav { display: none; }
  header nav.active { display: flex; position: absolute; top: 56px; left: 0; right: 0; background: var(--color-bg-dark); flex-direction: column; padding: 16px 24px; }
  .menu-toggle { display: block !important; }
  .dd-menu { position: static; display: none; background: #2a2750; box-shadow: none; }
  .nav-dd:hover .dd-menu { display: none; }
  .nav-dd.active .dd-menu { display: block; }
  #eb-countdown-float { max-width: 95vw; padding: 10px 14px; }
}
