/* ========================================
   CLEARTAX - MAIN STYLESHEET
   ======================================== */

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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #10b981;
  --accent-dark: #059669;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --muted: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --hero-bg: #eef2ff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(37,99,235,.12);
  --shadow-lg: 0 12px 40px rgba(37,99,235,.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: 'Sora', sans-serif; line-height: 1.2; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; }

/* ---- NAVBAR ---- */
.navbar {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideDown .5s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.nav-brand {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -1px;
}

.nav-brand span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }

.nav-links a {
  font-weight: 500;
  font-size: .92rem;
  color: var(--dark-2);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width .3s ease;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37,99,235,.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-lg { padding: .85rem 2rem; font-size: 1rem; border-radius: 10px; }

/* ---- HERO ---- */
.hero {
  background: var(--hero-bg);
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0rem 0rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-size:20px;
  font-weight: 600;
  color: var(--dark-2);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp .6s ease .1s both;
}

.hero-badge .badge-amount { color: var(--accent); font-weight: 700; }

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.5rem;
  animation: fadeInUp .6s ease .2s both;
}

.hero-cards {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp .6s ease .3s both;
}

.hero-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  flex: 1;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hero-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.hero-card-icon.blue { background: #eff6ff; }
.hero-card-icon.pink { background: #fdf2f8; }

.hero-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.hero-card p  { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }

.hero-img {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeInRight .8s ease .2s both;
}

.hero-img img {
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(37,99,235,.2));
}

/* Stats bar */
.stats-bar {
  background: white;
  border-top: 1px solid var(--border);
  padding: 2rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-item .stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
}

.stat-item .stat-num .stars { color: #f59e0b; }
.stat-item p { font-size: .85rem; color: var(--muted); margin-top: .2rem; }

.live-badge {
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem;
}

.live-badge p { font-size: .85rem; color: var(--muted); }

.live-platforms { display: flex; gap: .5rem; }

.platform-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: var(--light);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.platform-icon:hover { transform: scale(1.1); }

/* ---- SECTION COMMON ---- */
.section { padding: 6rem 2rem; }

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

.section-header { text-align: center; margin-bottom: 4rem; }

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header p { color: var(--muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ---- SERVICES SECTION ---- */
.services-section { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .3s ease;
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}

.service-icon.blue   { background: #eff6ff; }
.service-icon.green  { background: #ecfdf5; }
.service-icon.purple { background: #faf5ff; }

.service-card h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.service-card p  { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

/* ---- PRICING SECTION ---- */
.pricing-section { background: var(--light); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1.5px solid var(--border);
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 0 0 10px 10px;
}

.pricing-card h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.pricing-card .plan-desc { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }

.pricing-card .price-row {
  display: flex; align-items: flex-end; gap: .5rem; margin-bottom: .5rem;
}

.pricing-card .original-price {
  font-size: .85rem; color: var(--muted);
  text-decoration: line-through;
}

.pricing-card .current-price {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}

.offer-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fef3c7;
  color: #92400e;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.pricing-features { list-style: none; margin: 1.25rem 0; }

.pricing-features li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .85rem;
  color: var(--dark-2);
  padding: .3rem 0;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-features .feat-label { font-weight: 600; margin-top: .75rem; display: block; font-size: .82rem; }

.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* Addon cards */
.addon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.addon-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1.5px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.addon-card:hover { box-shadow: var(--shadow-lg); }

.addon-card.yellow-tint { background: #fffbeb; border-color: #fde68a; }
.addon-card.pink-tint   { background: #fff7f7; border-color: #fecaca; }

.addon-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; }
.addon-features { list-style: none; margin-bottom: 1.5rem; }

.addon-features li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .88rem;
  padding: .3rem 0;
}

.addon-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.price-big {
  font-family: 'Sora', sans-serif;
  font-size: 2rem; font-weight: 800;
}

.price-original { font-size: .88rem; color: var(--muted); text-decoration: line-through; }

.addon-offer-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: .4rem .75rem;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
}

.addon-offer-badge .code { color: var(--primary); }

/* ---- CONTACT PAGE ---- */
.contact-hero {
  background: var(--hero-bg);
  padding: 5rem 2rem;
  text-align: center;
}

.contact-hero h1 { font-size: 2.8rem; margin-bottom: 1rem; }
.contact-hero p  { color: var(--muted); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

.contact-section { padding: 5rem 2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.contact-info p   { color: var(--muted); margin-bottom: 2rem; }

.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 { font-size: .95rem; margin-bottom: .2rem; }
.contact-item p  { font-size: .88rem; color: var(--muted); }

.contact-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; color: var(--dark-2); }

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .9rem;
  transition: var(--transition);
  background: var(--light);
  color: var(--dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* ---- AUTH PAGES ---- */
.auth-page {
  min-height: 100vh;
  background: var(--hero-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  animation: fadeInUp .5s ease;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo .brand {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.auth-logo .brand span { color: var(--primary); }

.auth-card h2 { font-size: 1.5rem; text-align: center; margin-bottom: .5rem; }
.auth-card .auth-sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }

.btn-google {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  padding: .75rem;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: .9rem;
}

.btn-google:hover { background: var(--light); box-shadow: var(--shadow); }

.google-icon {
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.18 1.48-4.97 2.35-8.16 2.35-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") no-repeat center/contain;
}

.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0;
  color: var(--muted); font-size: .85rem;
}

.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

.otp-tabs {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.otp-tab {
  flex: 1; padding: .6rem;
  text-align: center;
  font-size: .88rem; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none; background: transparent;
  font-family: inherit;
  color: var(--muted);
}

.otp-tab.active { background: var(--primary); color: white; }

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

.sidebar {
  width: 260px;
  background: var(--dark);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform .3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.sidebar-brand {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
}

.sidebar-brand span { color: var(--primary); }

.sidebar-user {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center; gap: .75rem;
}

.user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  flex-shrink: 0;
}

.user-name  { font-size: .88rem; font-weight: 600; }
.user-email { font-size: .76rem; color: rgba(255,255,255,.5); }

.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }

.nav-section-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: .75rem 1.5rem .4rem;
}

.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1.5rem;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
  cursor: pointer;
  border-left: 3px solid transparent;
}

.sidebar-link:hover { background: rgba(255,255,255,.07); color: white; }
.sidebar-link.active { background: rgba(37,99,235,.2); color: white; border-left-color: var(--primary); }
.sidebar-link .icon { font-size: 1.05rem; }

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.main-content {
  margin-left: 260px;
  flex: 1;
  background: #f1f5f9;
  min-height: 100vh;
}

.topbar {
  background: white;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}

.topbar-title { font-size: 1.1rem; font-weight: 700; }

.topbar-actions { display: flex; align-items: center; gap: 1rem; }

.notification-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--light);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 1.1rem;
  transition: var(--transition);
}

.notification-btn:hover { background: var(--primary-light); }

.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid white;
}

.dashboard-body { padding: 2rem; }

.dash-greeting { margin-bottom: 2rem; }
.dash-greeting h2 { font-size: 1.5rem; font-weight: 700; }
.dash-greeting p { color: var(--muted); font-size: .9rem; }

.stats-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.stat-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }

.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.icon-blue   { background: #eff6ff; }
.icon-green  { background: #ecfdf5; }
.icon-orange { background: #fff7ed; }
.icon-purple { background: #faf5ff; }

.stat-card-val {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: .2rem;
}

.stat-card-label { font-size: .82rem; color: var(--muted); }

.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

.card-header h3 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 1.5rem; }

/* Document Upload */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.upload-zone:hover { border-color: var(--primary); background: var(--primary-light); }

.upload-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.upload-zone h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.upload-zone p { font-size: .85rem; color: var(--muted); }

.doc-list { list-style: none; }

.doc-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .875rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: .75rem;
  transition: var(--transition);
}

.doc-item:hover { border-color: var(--primary); background: var(--primary-light); }

.doc-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: #fef2f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.doc-info { flex: 1; min-width: 0; }
.doc-name  { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-size  { font-size: .76rem; color: var(--muted); }

.doc-actions { display: flex; gap: .4rem; }

.doc-btn {
  width: 30px; height: 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: var(--transition);
}

.doc-btn.view   { background: var(--primary-light); color: var(--primary); }
.doc-btn.delete { background: #fef2f2; color: #ef4444; }
.doc-btn:hover  { transform: scale(1.1); }

/* Password Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  animation: fadeInUp .3s ease;
}

.modal h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.modal p  { font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; }

/* Badge / Status */
.badge {
  display: inline-flex; align-items: center;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
}

.badge-success { background: #ecfdf5; color: #065f46; }
.badge-warning { background: #fffbeb; color: #92400e; }
.badge-danger  { background: #fef2f2; color: #991b1b; }
.badge-info    { background: #eff6ff; color: #1e40af; }

/* Status dot */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: .4rem;
}

.dot-green  { background: var(--accent); }
.dot-orange { background: #f59e0b; }
.dot-red    { background: #ef4444; }

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { padding: .75rem 1rem; text-align: left; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--light); border-bottom: 1px solid var(--border); }
.table td { padding: .875rem 1rem; border-bottom: 1px solid var(--border); color: var(--dark-2); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--light); }

/* ---- ADMIN ---- */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar { background: #0f172a; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition);
}

.admin-stat-card:hover { box-shadow: var(--shadow); }

.admin-stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.admin-stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
}

.admin-stat-label { font-size: .82rem; color: var(--muted); }

/* Plan management */
.plan-card-admin {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: var(--transition);
}

.plan-card-admin:hover { box-shadow: var(--shadow); }

/* Query management */
.query-row { cursor: pointer; }

.assign-btn {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  padding: .3rem .75rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.assign-btn:hover { background: var(--primary); color: white; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand span { color: var(--primary); }
.footer-desc { font-size: .88rem; line-height: 1.7; margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: .75rem; }

.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
}

.social-btn:hover { background: var(--primary); color: white; }

.footer-col h4 { color: white; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links  { list-style: none; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a  { font-size: .85rem; transition: var(--transition); }
.footer-links a:hover { color: white; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

.footer-bottom p { font-size: .82rem; }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.animate-fadeInUp  { animation: fadeInUp .6s ease both; }
.animate-delay-1   { animation-delay: .1s; }
.animate-delay-2   { animation-delay: .2s; }
.animate-delay-3   { animation-delay: .3s; }
.animate-delay-4   { animation-delay: .4s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-cards  { grid-template-columns: repeat(2, 1fr); }
  .dash-grid    { grid-template-columns: 1fr; }
  .admin-stats  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .addon-grid    { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }

  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }

  .stats-cards  { grid-template-columns: 1fr 1fr; }
  .admin-stats  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-inner { flex-direction: column; }
  .hero-cards  { flex-direction: column; }
  .nav-links   { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- UTILS ---- */
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--muted); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-1   { margin-top: .5rem; }
.mt-2   { margin-top: 1rem; }
.mt-3   { margin-top: 1.5rem; }
.mb-1   { margin-bottom: .5rem; }
.mb-2   { margin-bottom: 1rem; }
.mb-3   { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }

/* Checkout */
.checkout-page { min-height: 100vh; background: var(--light); padding: 2rem; }
.checkout-grid {
  max-width: 960px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.checkout-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.checkout-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 1rem;
}

.checkout-card-body { padding: 1.5rem; }

.plan-summary {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}

.plan-summary-name { font-weight: 700; }
.plan-summary-price {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.promo-row {
  display: flex; gap: .75rem; margin-bottom: 1.5rem;
}

.promo-input { flex: 1; }

.price-breakdown { margin-bottom: 1.5rem; }
.price-row-item {
  display: flex; justify-content: space-between;
  padding: .5rem 0;
  font-size: .9rem;
  border-bottom: 1px dashed var(--border);
}

.price-row-item:last-child { border: none; font-weight: 700; font-size: 1rem; padding-top: 1rem; }

.razorpay-btn {
  width: 100%;
  background: #528ff0;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}

.razorpay-btn:hover { background: #3b72e0; transform: translateY(-1px); box-shadow: var(--shadow); }

.razorpay-logo { font-size: .75rem; opacity: .8; }

/* Loader */
.loader {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Select */
select.form-control { cursor: pointer; }

/* Alert */
.alert {
  padding: .875rem 1.25rem;
  border-radius: 8px;
  font-size: .88rem;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Bootstrap 5 Pagination Override (ClearTax style) ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px !important;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--dark-2);
  font-size: .85rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  transition: var(--transition);
  padding: 0;
}

.page-item .page-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.page-item.active .page-link {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}

.page-item.disabled .page-link {
  background: var(--light);
  border-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
  border-radius: 8px !important;
}
