:root {
  --primary-blue: #0f2b5c;
  --accent-blue: #1d4ed8;
  --accent-gold: #f59e0b;
  --dark-bg: #0b1727;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

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

/* Top Bar */
.top-bar {
  background: var(--dark-bg);
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-contact b { color: #f8fafc; }
.sep { margin: 0 10px; color: #334155; }
.admin-login-btn {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
}

/* Navbar */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  background: var(--primary-blue);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.brand-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-blue);
}
.brand-text span { color: var(--accent-gold); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-blue); }

.btn-nav {
  background: var(--accent-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0b1727 0%, #1e293b 100%);
  color: white;
  padding: 80px 0 100px;
}
.hero-container {
  display: flex;
  gap: 50px;
  align-items: center;
}
.hero-text-block { flex: 1.3; }
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-text-block h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-text-block h1 span { color: var(--accent-gold); }
.hero-text-block p {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 35px;
}
.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}
.btn-hero-primary {
  background: var(--accent-blue);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.trust-indicators {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.hero-card-block { flex: 1; }
.hero-card-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.card-title i { font-size: 2rem; color: var(--accent-gold); }
.process-steps { margin-bottom: 25px; }
.p-step {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.p-num {
  background: var(--accent-blue);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.btn-card-action {
  display: block;
  text-align: center;
  background: var(--accent-gold);
  color: #000;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

/* Services Section */
.services-section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .tag { color: var(--accent-blue); font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; }
.section-title h2 { font-size: 2.2rem; color: var(--primary-blue); font-weight: 800; margin-top: 5px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.service-box {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  position: relative;
  transition: transform 0.3s;
}
.service-box:hover { transform: translateY(-5px); }
.service-box.featured { border: 2px solid var(--accent-blue); }
.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent-blue);
  color: white;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: bold;
}
.s-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.icon-blue { background: #dbeafe; color: #1d4ed8; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-red { background: #fee2e2; color: #dc2626; }
.icon-green { background: #dcfce7; color: #15803d; }

.s-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Track Section */
.track-wrapper {
  background: #e2e8f0;
  padding: 60px 0;
  margin-bottom: 80px;
}
.track-panel {
  background: white;
  padding: 40px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.track-input-area { flex: 1; }
.input-box { display: flex; gap: 10px; }
.input-box input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
}
.input-box button {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
.status-result { margin-top: 15px; font-weight: 600; }
.badge-status { background: #dcfce7; color: #16a34a; padding: 2px 8px; border-radius: 6px; }

/* Form Section */
.form-container {
  background: white;
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border-color);
  max-width: 750px;
  margin: 0 auto 80px;
}
.form-header { text-align: center; margin-bottom: 35px; }
.main-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; gap: 20px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.88rem; font-weight: 600; }
.form-group input, .form-group select {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
}
.file-dropzone {
  position: relative;
  border: 2px dashed var(--border-color);
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  background: #f8fafc;
}
.file-dropzone input {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.btn-submit {
  background: #25d366;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-size: 2rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

footer {
  background: var(--dark-bg);
  color: #94a3b8;
  padding: 25px 0;
  text-align: center;
  font-size: 0.9rem;
}
.f-brand { color: white; font-weight: bold; font-size: 1.1rem; margin-bottom: 5px; }
.f-brand span { color: var(--accent-gold); }


/* Auth Buttons Header */
.nav-auth { display: flex; gap: 10px; align-items: center; }
.btn-login-nav { background: transparent; border: 1px solid var(--accent-blue); color: var(--accent-blue); padding: 8px 16px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.btn-register-nav { background: var(--accent-blue); border: none; color: white; padding: 8px 16px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.btn-logout { color: #dc2626; text-decoration: none; font-weight: bold; margin-left: 10px; }

/* Modal Overlay */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(11, 23, 39, 0.7);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: all 0.3s ease; z-index: 2000;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-card {
  background: white; width: 100%; max-width: 420px; padding: 35px;
  border-radius: 16px; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-close { position: absolute; top: 15px; right: 20px; border: none; background: none; font-size: 1.8rem; cursor: pointer; }
.modal-title { margin-bottom: 20px; color: var(--primary-blue); font-weight: 800; text-align: center; }
.auth-switch { text-align: center; margin-top: 15px; font-size: 0.9rem; }
.auth-switch a { color: var(--accent-blue); text-weight: bold; text-decoration: none; }

/* Table Styles for Customer History */
.user-app-table { width: 100%; border-collapse: collapse; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.user-app-table th, .user-app-table td { padding: 14px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.user-app-table th { background: #0f2b5c; color: white; }
.status-badge { padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; }
.status-badge.pending { background: #fef3c7; color: #d97706; }
.status-badge.completed { background: #dcfce7; color: #16a34a; }
.login-prompt-box { text-align: center; padding: 40px; background: #f8fafc; border-radius: 12px; }
.login-prompt-box i { font-size: 3rem; color: #1d4ed8; margin-bottom: 15px; }

/* Auth Buttons in Header */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-login {
  background: transparent;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-login:hover {
  background: rgba(29, 78, 216, 0.08);
}
.btn-register {
  background: var(--accent-blue);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-register:hover {
  background: var(--primary-blue);
}
.user-welcome {
  font-size: 0.9rem;
  color: var(--text-dark);
}
.btn-logout {
  color: #dc2626;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.88rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fee2e2;
}

/* Modal Popup Overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(11, 23, 39, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: white;
  padding: 35px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-heading {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 800;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.btn-modal-submit {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
}
.modal-switch {
  text-align: center;
  margin-top: 15px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.modal-switch a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: bold;
}

/* Standalone Auth Pages Styling */
.auth-page-card {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  text-align: center;
}
.brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.auth-page-card h2 {
  font-size: 1.8rem;
  color: var(--primary-blue);
  font-weight: 800;
}
.auth-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 25px;
}
.standalone-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.btn-auth-submit {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
}
.auth-footer-links {
  margin-top: 25px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-footer-links a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: bold;
}
.alert-error {
  background: #fee2e2;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Header Links */
.btn-login-link {
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.btn-register-link {
  background: var(--accent-blue);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* Remember Me Option Styling */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 10px 0;
}
.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-dark);
  user-select: none;
}
.remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

.plan-select {
  background: #fff;
  font-weight: 700;
  color: var(--primary-blue);
  border: 2px solid var(--accent-blue);
  cursor: pointer;
}

/* Sidebar Layout Styling */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: #0f2b5c;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  box-shadow: 4px 0 10px rgba(0,0,0,0.05);
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  padding-left: 8px;
}

.sidebar-brand span span {
  color: #f59e0b;
}

.sidebar-user {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.sidebar-user i {
  font-size: 2rem;
  color: #93c5fd;
}

.user-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.role-badge {
  font-size: 0.7rem;
  background: #1d4ed8;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
  background: #1d4ed8;
  color: #ffffff;
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 12px 0;
}

.logout-link {
  color: #f87171 !important;
}

.logout-link:hover {
  background: #dc2626 !important;
  color: white !important;
}

/* Content Area Adjustment with Sidebar */
.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 30px;
  background: #f8fafc;
}

@media (max-width: 768px) {
  .sidebar {
    width: 70px;
    padding: 16px 8px;
  }
  .sidebar-brand span, .user-info, .sidebar-menu span {
    display: none;
  }
  .main-content {
    margin-left: 70px;
  }
}

/* ==========================================
   STYLISH DASHBOARD & SIDEBAR STYLES
   ========================================== */

:root {
  --sb-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  --accent-color: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: #f1f5f9;
}

/* Stylish Sidebar Layout */
.stylish-sidebar {
  width: 270px;
  background: var(--sb-bg);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
}

/* Brand Section */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  padding-left: 6px;
}

.brand-icon-box {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.brand-text span {
  color: #f59e0b;
}

/* User Profile Card */
.user-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.user-details h4 {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.role-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: inline-block;
}

.role-admin { background: #ef4444; color: #ffffff; }
.role-retailer { background: var(--accent-color); color: #ffffff; }
.role-distributor { background: #f59e0b; color: #ffffff; }

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link i {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link:hover i {
  transform: translateX(3px);
}

.nav-link.active {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 16px 0;
}

.logout-btn {
  color: #f87171 !important;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
}

/* Main Content Wrapper */
.main-content {
  margin-left: 270px;
  flex: 1;
  padding: 35px 40px;
  width: calc(100% - 270px);
}