/*
Theme Name: EricoDataApp
Theme URI: https://ericodataapp.com.ng
Author: EricoDataApp
Author URI: https://ericodataapp.com.ng
Description: A professional data selling and VTU services theme for ericodataapp.com.ng
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ericodataapp
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a56db;
  --primary-dark: #1040a8;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --white: #ffffff;
  --light: #f0f5ff;
  --light2: #e8f0fe;
  --gray: #6b7280;
  --dark: #1e293b;
  --border: #dbeafe;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 4px 24px rgba(26,86,219,0.10);
  --radius: 12px;
  --font: 'Segoe UI', Arial, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,86,219,0.30);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--light);
  color: var(--primary-dark);
}
.btn-lg { padding: 15px 36px; font-size: 17px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-block { display: block; width: 100%; }

/* ===== HEADER / NAVBAR ===== */
#site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(26,86,219,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  overflow: hidden;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.navbar-brand span { color: var(--accent); }
.navbar-brand .logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 900;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-menu a {
  color: var(--dark);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
  background: var(--light2);
}
.nav-actions { display: flex; gap: 10px; align-items: center; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #1a56db 0%, #1040a8 60%, #06b6d4 100%);
  color: var(--white);
  padding: 90px 0 70px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-text h1 span { color: #93c5fd; }
.hero-text p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}
.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
}
.hero-stat span {
  font-size: 13px;
  opacity: 0.8;
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 30px;
  width: 100%;
  max-width: 360px;
}
.hero-card h3 {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.service-item {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}
.service-item:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.service-item .icon { font-size: 28px; margin-bottom: 6px; }
.service-item p { font-size: 13px; font-weight: 600; }

/* ===== SECTION HEADINGS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header .badge {
  display: inline-block;
  background: var(--light2);
  color: var(--primary);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 17px;
  color: var(--gray);
  max-width: 550px;
  margin: 0 auto;
}

/* ===== SERVICES CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26,86,219,0.15);
  border-color: var(--primary-light);
}
.service-icon {
  width: 70px; height: 70px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 18px;
}
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 14px; margin-bottom: 18px; }
.service-card .price { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }

/* Colors for service icons */
.icon-data { background: #dbeafe; color: #1a56db; }
.icon-airtime { background: #dcfce7; color: #16a34a; }
.icon-cable { background: #fef3c7; color: #d97706; }
.icon-electricity { background: #fce7f3; color: #db2777; }

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px; left: 12%;
  width: 76%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(26,86,219,0.30);
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--gray); font-size: 14px; }

/* ===== PRICING / DATA PLANS ===== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(26,86,219,0.18);
  transform: scale(1.03);
}
.plan-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 16px; right: -20px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 30px;
  transform: rotate(35deg);
}
.plan-badge { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.plan-name { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.plan-price { font-size: 42px; font-weight: 900; color: var(--primary); line-height: 1; }
.plan-price sup { font-size: 22px; vertical-align: super; }
.plan-network { font-size: 13px; color: var(--gray); margin: 8px 0 20px; }
.plan-features { text-align: left; margin-bottom: 24px; }
.plan-features li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 800; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.stars { color: #f59e0b; font-size: 18px; margin-bottom: 14px; }
.testimonial-card p { color: var(--dark); font-size: 15px; line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.author-info strong { display: block; font-size: 15px; }
.author-info span { font-size: 13px; color: var(--gray); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, #1a56db, #06b6d4);
  color: white;
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 { font-size: 38px; font-weight: 900; margin-bottom: 14px; }
.cta-banner p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--dark);
  color: #9ca3af;
  padding: 60px 0 0;
  width: 100%;
  overflow-x: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #374151;
  width: 100%;
}
.footer-brand .logo { font-size: 22px; font-weight: 800; color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: #374151;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af;
  font-size: 16px;
  transition: all 0.2s;
}
.social-link:hover { background: var(--primary); color: white; }
.footer-col h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #9ca3af; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: white; }

/* ===== PAGES: LOGIN / REGISTER ===== */
.auth-page {
  min-height: 100vh;
  background: var(--light);
  display: flex;
  align-items: center;
  padding: 40px 0;
}
.auth-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(26,86,219,0.12);
  padding: 44px 40px;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo h2 { font-size: 24px; font-weight: 800; color: var(--primary); }
.auth-logo p { color: var(--gray); font-size: 15px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  transition: border 0.2s;
  outline: none;
  font-family: var(--font);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.10); }
.auth-divider { text-align: center; color: var(--gray); font-size: 14px; margin: 16px 0; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray); }

/* ===== DASHBOARD ===== */
.dashboard-layout {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  background: var(--light);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}
/* CRITICAL: On mobile, kill the grid entirely so main fills 100% */
@media (max-width: 768px) {
  .dashboard-layout {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  background: var(--light);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}
  .sidebar {
    display: none !important;
  }
  .dashboard-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}
.sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}
.sidebar-menu { padding: 0 12px; }
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--gray);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 4px;
  transition: all 0.2s;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
  background: var(--light2);
  color: var(--primary);
}
.sidebar-menu .menu-icon { font-size: 18px; }
.dashboard-main {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 32px;
  box-sizing: border-box;
  overflow-x: hidden;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.dashboard-header h1 { font-size: 24px; font-weight: 800; }
.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-card strong { display: block; font-size: 24px; font-weight: 800; }
.stat-card span { font-size: 13px; color: var(--gray); }
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.action-btn {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.action-btn:hover {
  border-color: var(--primary);
  background: var(--light2);
  transform: translateY(-2px);
}
.action-btn .icon { font-size: 30px; margin-bottom: 8px; }
.action-btn span { font-size: 13px; font-weight: 600; color: var(--dark); }
.recent-table {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.table-header h3 { font-size: 16px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 24px; text-align: left; font-size: 14px; }
th { background: var(--light); font-weight: 700; color: var(--gray); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
td { border-top: 1px solid var(--border); }
.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-pending { background: #fef3c7; color: #d97706; }
.badge-failed { background: #fee2e2; color: #dc2626; }

/* ===== NOTICE BARS ===== */
.notice {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.notice-info { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--primary); }
.notice-success { background: #dcfce7; color: #15803d; border-left: 4px solid var(--success); }
.notice-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }

/* ===== RESPONSIVE ===== */

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
*, *::before, *::after {
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-card.featured { transform: none; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-cards { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar { flex-wrap: wrap; padding: 12px 0; position: relative; }
  .navbar-brand { font-size: 18px; }
  .nav-menu { display: none; width: 100%; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 7px 12px; font-size: 12px; }
  .hamburger { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    z-index: 999;
  }

  /* Hero */
  .hero { padding: 50px 0 40px; }
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-text h1 { font-size: 28px; }
  .hero-btns { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .hero-stats { justify-content: center; gap: 20px; }
  .hero-image { display: none; }

  /* Sections */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header h2 { font-size: 24px; }
  .plans-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; width: 100%; }

  /* Dashboard — handled by block rule above */
  .dashboard-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dashboard-header h1 { font-size: 20px; }
  .stats-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quick-actions { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .action-btn { padding: 12px 8px; }
  .action-btn .icon { font-size: 22px; }
  .action-btn span { font-size: 11px; }
  .recent-table { overflow-x: auto; }
  table { min-width: 400px; }
}

@media (max-width: 480px) {
  /* General */
  .container { padding: 0 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 18px; margin: 0 4px; }
  .hero-text h1 { font-size: 24px; }
  .cta-banner h2 { font-size: 22px; }
  .section { padding: 40px 0; }

  /* Dashboard */
  .stats-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-icon { width: 40px; height: 40px; font-size: 18px; }
  .quick-actions { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .dashboard-main { padding: 12px; }

  /* Fund wallet page */
  .fund-tabs { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ===== MOBILE BOTTOM NAVIGATION (Dashboard) ===== */
#erico-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding: 8px 0 4px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
#erico-mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 2px;
  border-radius: 8px;
  transition: color 0.2s;
  flex: 1;
}
#erico-mobile-nav a .nav-icon { font-size: 20px; line-height: 1; }
#erico-mobile-nav a.active, #erico-mobile-nav a:hover { color: var(--primary); }
@media (max-width: 768px) {
  #erico-mobile-nav { display: flex; }
}
