/* ===========================
   Smart Tempe - Main Stylesheet
   =========================== */

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

:root {
  --green-900: #0d3320;
  --green-800: #145a38;
  --green-700: #1a7a4a;
  --green-600: #22a05e;
  --green-500: #2dc572;
  --green-400: #5dd893;
  --green-300: #93e8b8;
  --green-100: #e6f9ef;
  --green-50:  #f2fdf6;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;

  --white: #ffffff;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;

  --font-display: 'Inter', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-green: 0 4px 24px rgba(34,160,94,0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --sidebar-width: 260px;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--gray-50);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===========================
   UTILITIES
   =========================== */
.text-green { color: var(--green-600); }
.text-muted { color: var(--gray-500); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ===========================
   BUTTONS
   =========================== */
.btn-primary-green {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary-green:hover {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34,160,94,0.3);
  color: #fff;
}

.btn-outline-green {
  background: transparent;
  color: var(--green-600);
  border: 2px solid var(--green-600);
  border-radius: var(--radius-full);
  padding: 10px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-green:hover {
  background: var(--green-600);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover {
  background: var(--gray-100);
}

/* ===========================
   CARDS
   =========================== */
.card-modern {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.card-modern:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
  transform: translateY(-2px);
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
  transform: translateY(-3px);
}
.stat-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 4px;
}
.stat-card .stat-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-card .stat-change.up { color: var(--green-600); }
.stat-card .stat-change.down { color: var(--accent-red); }

/* ===========================
   NAVBAR (LANDING)
   =========================== */
.landing-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.landing-navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--green-800);
}
.brand-name span { color: var(--green-500); }

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--green-50) 0%, #fff 50%, var(--green-50) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34,160,94,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,160,94,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--green-500);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-title .highlight {
  color: var(--green-600);
  position: relative;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat-item { text-align: left; }
.hero-stat-item .num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--green-700);
}
.hero-stat-item .lbl {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}
.hero-visual {
  position: relative;
  padding: 20px;
}
.hero-dashboard-preview {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.dashboard-preview-header {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.preview-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dashboard-preview-body {
  padding: 20px;
}
.mini-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.mini-stat {
  background: var(--green-50);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--green-100);
}
.mini-stat .ms-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--green-700);
}
.mini-stat .ms-lbl {
  font-size: 10px;
  color: var(--gray-500);
  margin-top: 2px;
}
.mini-chart-bar {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}
.bar-item {
  flex: 1;
  background: linear-gradient(to top, var(--green-600), var(--green-400));
  border-radius: 4px;
  opacity: 0.85;
  animation: grow-bar 1s ease-out forwards;
}
@keyframes grow-bar {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}
.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  font-size: 12px;
  z-index: 3;
}
.floating-card.fc1 { top: 10px; right: -20px; }
.floating-card.fc2 { bottom: 40px; left: -20px; }

/* ===========================
   FEATURES SECTION
   =========================== */
.features-section {
  padding: 100px 0;
  background: var(--white);
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
  transform: scaleX(0);
  transition: var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--green-300);
  transform: translateY(-4px);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--green-600);
  margin-bottom: 20px;
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===========================
   HOW IT WORKS SECTION
   =========================== */
.how-section {
  padding: 100px 0;
  background: var(--gray-50);
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
}
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-green);
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}
.cta-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 30px;
}
.footer-brand .brand-name { color: white; }
.footer-tagline {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 8px;
}
.footer-links-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.footer-links li {
  list-style: none;
  margin-bottom: 10px;
}
.footer-links li a {
  font-size: 14px;
  color: var(--gray-500);
  transition: var(--transition);
}
.footer-links li a:hover { color: var(--green-400); }
.footer-divider {
  border: none;
  border-top: 1px solid var(--gray-800);
  margin: 40px 0 24px;
}
.footer-copy {
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
}

/* ===========================
   AUTH PAGES
   =========================== */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--green-50) 0%, #fff 60%);
  display: flex;
  align-items: center;
  padding: 40px 0;
}
.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 48px 40px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 8px;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 32px;
}
.form-group { margin-bottom: 20px; }
.form-label-custom {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.form-control-custom {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}
.form-control-custom:focus {
  border-color: var(--green-500);
  background: white;
  box-shadow: 0 0 0 3px rgba(34,160,94,0.12);
}
.input-group-custom {
  position: relative;
}
.input-group-custom .form-control-custom {
  padding-left: 42px;
}
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 15px;
}
.auth-divider {
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
  margin: 20px 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: var(--gray-200);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-link {
  color: var(--green-600);
  font-weight: 600;
  transition: var(--transition);
}
.auth-link:hover { color: var(--green-700); text-decoration: underline; }
.btn-auth {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-auth:hover {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,160,94,0.3);
}
.alert-custom {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-danger-custom {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.alert-success-custom {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
}

/* ===========================
   DASHBOARD LAYOUT
   =========================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  width: var(--sidebar-width);
  background: var(--gray-900);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: var(--transition);
  overflow-y: auto;
}
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo .brand-name { color: white; font-size: 18px; }
.sidebar-logo .brand-name span { color: var(--green-400); }

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
}
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 20px 8px;
}
.nav-item-sidebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 0;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.nav-item-sidebar:hover {
  background: rgba(255,255,255,0.05);
  color: var(--gray-200);
}
.nav-item-sidebar.active {
  background: rgba(34,160,94,0.12);
  color: var(--green-400);
  border-left-color: var(--green-500);
}
.nav-item-sidebar i {
  width: 18px;
  text-align: center;
  font-size: 15px;
}
.nav-badge {
  margin-left: auto;
  background: var(--green-600);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar-user-info .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-200);
}
.sidebar-user-info .role {
  font-size: 11px;
  color: var(--gray-600);
}
.sidebar-logout-btn {
  display: block;
  margin-top: 12px;
  width: 100%;
  padding: 9px;
  background: rgba(239,68,68,0.1);
  color: #fc8585;
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.sidebar-logout-btn:hover {
  background: rgba(239,68,68,0.2);
  color: #f87171;
}

/* Main Content */
.app-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-topbar {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.page-title-bar .page-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}
.page-title-bar .page-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.notif-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
}
.notif-btn:hover { background: var(--green-100); color: var(--green-600); }
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 2px solid white;
}
.topbar-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.app-main {
  flex: 1;
  padding: 32px;
  background: var(--gray-50);
}

/* ===========================
   SUBSCRIPTION/STATUS BANNER
   =========================== */
.subscription-banner {
  background: linear-gradient(135deg, #fef3c7, #fefce8);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.subscription-banner.active {
  background: linear-gradient(135deg, var(--green-50), #f0fdf4);
  border-color: var(--green-300);
}
.subscription-banner.pending {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #93c5fd;
}
.banner-text { font-size: 14px; color: var(--gray-700); }
.banner-text strong { color: var(--gray-900); }

/* ===========================
   TABLE STYLES
   =========================== */
.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table-modern thead th {
  background: var(--gray-50);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
.table-modern tbody tr {
  transition: var(--transition);
}
.table-modern tbody tr:hover {
  background: var(--green-50);
}
.table-modern tbody td {
  padding: 13px 16px;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.badge-success { background: var(--green-100); color: var(--green-700); }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* ===========================
   FORM STYLES (DASHBOARD)
   =========================== */
.form-section {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 28px;
}
.form-section-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-control-dash {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}
.form-control-dash:focus {
  border-color: var(--green-500);
  background: white;
  box-shadow: 0 0 0 3px rgba(34,160,94,0.1);
}
.form-label-dash {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.btn-submit {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-submit:hover {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

/* ===========================
   PREDICTION STYLES
   =========================== */
.prediction-hero {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  border-radius: var(--radius-xl);
  padding: 36px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}
.prediction-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.prediction-val {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: white;
}
.prediction-unit {
  font-size: 22px;
  opacity: 0.8;
  margin-left: 4px;
}
.prediction-label {
  font-size: 15px;
  opacity: 0.8;
  margin-top: 8px;
}
.rec-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.rec-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-300); }
.rec-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.rec-label { font-size: 12px; color: var(--gray-500); margin-bottom: 2px; }
.rec-value { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--gray-900); }

/* ===========================
   SUBSCRIPTION PAGE
   =========================== */
.plan-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-200);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.plan-card.popular {
  border-color: var(--green-500);
  box-shadow: var(--shadow-green);
}
.plan-popular-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.plan-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.plan-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 4px;
}
.plan-price span { font-size: 16px; color: var(--gray-500); font-family: var(--font-body); font-weight: 500; }
.plan-period { font-size: 13px; color: var(--gray-500); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 10px;
}
.plan-features li i { color: var(--green-500); width: 16px; }

/* ===========================
   INSIGHT PAGE
   =========================== */
.insight-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition);
  margin-bottom: 14px;
}
.insight-card:hover { border-color: var(--green-300); box-shadow: var(--shadow-md); }
.insight-icon-wrap {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.insight-title { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.insight-desc { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

/* ===========================
   ADMIN STYLES
   =========================== */
.admin-action-btn {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-activate {
  background: var(--green-100);
  color: var(--green-700);
}
.btn-activate:hover {
  background: var(--green-600);
  color: white;
}
.btn-view {
  background: #dbeafe;
  color: #1e40af;
}
.btn-view:hover {
  background: #3b82f6;
  color: white;
}
.btn-reject {
  background: #fee2e2;
  color: #991b1b;
}
.btn-reject:hover {
  background: #ef4444;
  color: white;
}

/* ===========================
   MOBILE SIDEBAR TOGGLE
   =========================== */
.sidebar-toggle-btn {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  border: none;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  cursor: pointer;
  font-size: 18px;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 991px) {
  .app-sidebar {
    left: calc(-1 * var(--sidebar-width));
  }
  .app-sidebar.open {
    left: 0;
    box-shadow: var(--shadow-lg);
  }
  .app-content {
    margin-left: 0;
  }
  .sidebar-toggle-btn {
    display: flex;
  }
  .hero-visual { display: none; }
  .hero-stats { gap: 20px; }
  .floating-card { display: none; }
}

@media (max-width: 767px) {
  .app-main { padding: 20px 16px; }
  .auth-card { padding: 32px 24px; }
  .hero-section { padding-top: 90px; }
  .mini-stat-row { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}
.fade-in-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-3 { animation-delay: 0.3s; opacity: 0; }

/* Chart container */
.chart-container {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 24px;
}
.chart-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.chart-subtitle {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
