/* ==========================================================================
   Anjaneyulu.in — Deep Royal Navy & Metallic Gold Design System v3.0
   ========================================================================== */

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

/* ── CSS Design Tokens ──────────────────────────────────────────────────── */
:root {
  --bg-primary:   #060b14;
  --bg-secondary: #0b1326;
  --bg-card:      rgba(15, 23, 42, 0.85);
  --bg-card-hover:rgba(22, 33, 62, 0.95);
  --bg-glass:     rgba(11, 19, 38, 0.9);
  --border-color: rgba(218, 150, 25, 0.2);
  --border-active:#f59e0b;

  --text-primary:  #f8fafc;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;

  --accent-gold:        #f59e0b;
  --accent-gold-dark:   #d97706;
  --accent-gold-light:  rgba(245,158,11,0.15);
  --accent-navy:        #0a192f;
  --accent-blue:        #3b82f6;
  --accent-blue-light:  rgba(59,130,246,0.15);
  --accent-green:       #10b981;
  --accent-green-light: rgba(16,185,129,0.15);
  --accent-red:         #ef4444;
  --accent-purple:      #7c3aed;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg:   0 16px 40px rgba(0,0,0,0.7);
  --shadow-gold: 0 0 20px rgba(245,158,11,0.25);

  --font-main:    'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

  --bottom-nav-height: 64px;
  --header-height: 68px;
}

/* ── Light Theme Overrides ──────────────────────────────────────────────── */
[data-theme="light"] {
  --bg-primary:   #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card:      rgba(255,255,255,0.97);
  --bg-card-hover:#f1f5f9;
  --bg-glass:     rgba(255,255,255,0.95);
  --border-color: #cbd5e1;
  --border-active:#d97706;
  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;
  --accent-gold-light: rgba(217,119,6,0.12);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
}

/* ── Base Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 992px) {
  body { padding-bottom: calc(var(--bottom-nav-height) + 10px); }
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* ── Layout Utilities ───────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-gold   { color: var(--accent-gold); }
.text-green  { color: var(--accent-green); }
.text-blue   { color: var(--accent-blue); }
.text-red    { color: var(--accent-red); }

.gradient-text {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Keyframe Animations ────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-gold {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Redevelopment Banner ───────────────────────────────────────────────── */
.redevelopment-banner {
  background: linear-gradient(90deg, #0a192f 0%, #064e3b 50%, #0a192f 100%);
  border-bottom: 1px solid rgba(245,158,11,0.4);
  padding: 0.4rem 0;
  font-size: 0.8rem;
  color: #f9fafb;
  position: relative;
  z-index: 1001;
}
.redevelopment-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.redevelopment-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}
.redev-badge {
  background: var(--accent-gold);
  color: #000;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.redev-phone-link {
  font-weight: 700;
  white-space: nowrap;
}

/* ── PWA Banner (hidden by default, shown by JS) ────────────────────────── */
.pwa-banner {
  display: none;
  background: linear-gradient(90deg, rgba(245,158,11,0.15) 0%, rgba(59,130,246,0.15) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 0.55rem 0;
  font-size: 0.85rem;
  animation: slideDown 0.3s ease;
}
.pwa-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-gold  { background:var(--accent-gold-light);  color:var(--accent-gold);  border:1px solid rgba(245,158,11,0.35); }
.badge-green { background:var(--accent-green-light); color:var(--accent-green); border:1px solid rgba(16,185,129,0.35); }
.badge-blue  { background:var(--accent-blue-light);  color:var(--accent-blue);  border:1px solid rgba(59,130,246,0.35); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.22s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  color: #000;
  box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.5);
}
.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  border-color: var(--border-color);
  backdrop-filter: blur(10px);
}
[data-theme="light"] .btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}
.btn-outline-gold {
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
}
.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateY(-1px);
}
.btn-sm  { padding: 0.38rem 0.85rem; font-size: 0.83rem; border-radius: var(--radius-sm); }
.btn-lg  { padding: 0.95rem 2rem; font-size: 1.08rem; }
.btn-icon-only { padding: 0.55rem; border-radius: var(--radius-md); min-width: unset; }

/* ── Glass Card ─────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-md);
}
.glass-card:hover {
  border-color: rgba(245,158,11,0.45);
  box-shadow: var(--shadow-gold), var(--shadow-md);
}
[data-theme="light"] .glass-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ══════════════════════════════════════════════════════════════════════════
   HEADER — Fixed layout, no overlapping
   ══════════════════════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .header {
  background: rgba(255,255,255,0.95);
  border-bottom-color: #e2e8f0;
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand — Logo + Title + Tagline */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
}

.brand-logo-img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  border-radius: var(--radius-sm);
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.brand-logo-img:hover { transform: scale(1.06); }

.brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.brand-info h1 {
  font-size: 1.15rem;
  letter-spacing: -0.3px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tagline {
  font-size: 0.62rem;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--accent-gold); }

/* Header Action Group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Hide text labels on smaller screens */
.hide-mobile { display: inline; }
@media (max-width: 1100px) { .hide-mobile { display: none; } }

/* ── Mobile App Bottom Navigation Bar ──────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(6,11,20,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  z-index: 9999;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.25rem;
}
[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255,255,255,0.97);
  border-top-color: #cbd5e1;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 0.66rem;
  font-weight: 500;
  flex: 1;
  height: 100%;
  transition: all 0.2s;
  border-radius: 0;
  padding: 0.2rem 0.1rem;
}
.bottom-nav-item i { font-size: 1.2rem; transition: transform 0.2s; }
.bottom-nav-item.active { color: var(--accent-gold); }
.bottom-nav-item.active i { transform: translateY(-2px); }

@media (max-width: 992px) {
  .nav-links { display: none; }
  .mobile-bottom-nav { display: flex; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
  padding: 2.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -5%;
  right: -8%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.hero-content h2 { font-size: 2.7rem; letter-spacing: -0.8px; margin-bottom: 1rem; }
@media (max-width: 768px) { .hero-content h2 { font-size: 1.6rem; } }

.hero-tagline-bar {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}
[data-theme="light"] .hero-tagline-bar { background: #f1f5f9; }
.tagline-header-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.hero-tagline { font-size: 1rem; color: var(--text-secondary); display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-pill {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.tag-pill-gold  { background:var(--accent-gold-light);  color:var(--accent-gold);  border:1px solid rgba(245,158,11,0.35); }
.tag-pill-blue  { background:var(--accent-blue-light);  color:var(--accent-blue);  border:1px solid rgba(59,130,246,0.35); }
.tag-pill-green { background:var(--accent-green-light); color:var(--accent-green); border:1px solid rgba(16,185,129,0.35); }

.section-tagline-text { font-size: 1rem; font-weight: 600; color: var(--accent-gold); letter-spacing: 0.5px; }
.footer-tagline-text  { font-size: 0.85rem; font-weight: 600; color: var(--accent-gold); margin: 0.75rem 0; }

.est-box {
  background: rgba(245,158,11,0.06);
  border-left: 3px solid var(--accent-gold);
  padding: 0.85rem 1.2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.75rem;
  font-size: 0.88rem;
}
[data-theme="light"] .est-box { background: rgba(217,119,6,0.06); }
.est-box p span { font-weight: 700; color: var(--text-primary); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}
.stat-item h3 { font-size: 1.3rem; color: var(--accent-gold); }
.stat-item p  { font-size: 0.72rem; color: var(--text-secondary); }

/* ── Hero Card ──────────────────────────────────────────────────────────── */
.hero-card { animation: fadeIn 0.5s ease; }
.hero-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }

/* ══════════════════════════════════════════════════════════════════════════
   FORM CONTROLS — fully theme-aware
   ══════════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.38rem;
}
.form-control {
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.93rem;
  font-family: var(--font-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}
[data-theme="light"] .form-control {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}
.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
  outline: none;
  background: rgba(255,255,255,0.09);
}
[data-theme="light"] .form-control:focus {
  background: #ffffff;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control-sm {
  padding: 0.42rem 0.7rem;
  font-size: 0.83rem;
  border-radius: var(--radius-sm);
}
textarea.form-control { resize: vertical; min-height: 80px; }

/* Encryption indicator badge */
.enc-indicator {
  font-size: 0.68rem;
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.4rem;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVICES SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.services-section { padding: 3rem 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 2rem; }
.section-header h2 { font-size: 2.1rem; margin-bottom: 0.5rem; }
.section-header p  { color: var(--text-secondary); font-size: 0.9rem; }
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
.cat-btn {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.86rem;
  transition: all 0.22s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
[data-theme="light"] .cat-btn { background: #f1f5f9; }
.cat-btn:hover, .cat-btn.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.service-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(245,158,11,0.3);
  flex-shrink: 0;
}
.service-card h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.service-features { list-style: none; margin: 0.85rem 0 1.25rem; }
.service-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}
.service-features li i { color: var(--accent-green); margin-top: 3px; flex-shrink: 0; }
.highlight-tag {
  display: inline-block;
  background: rgba(16,185,129,0.15);
  color: var(--accent-green);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  border: 1px solid rgba(16,185,129,0.3);
}

/* ══════════════════════════════════════════════════════════════════════════
   LOAN REQUEST SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.loan-request-section { padding: 3rem 0; background: var(--bg-secondary); }
[data-theme="light"] .loan-request-section { background: #f8fafc; }
.loan-form-card { max-width: 1000px; margin: 0 auto; }
.form-step-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  margin-bottom: 1.75rem;
}
[data-theme="light"] .form-step-box { background: #f8fafc; }
.form-step-title {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-subbox {
  background: rgba(255,255,255,0.03);
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}
[data-theme="light"] .form-subbox { background: #ffffff; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 992px) {
  .form-grid-3, .form-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .form-grid-2, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
}
.occ-dynamic-box {
  background: rgba(245,158,11,0.04);
  border: 1px dashed var(--accent-gold);
  padding: 1.4rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
}

/* ══════════════════════════════════════════════════════════════════════════
   CALCULATORS SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.calculators-section { padding: 3rem 0; background: var(--bg-secondary); position: relative; }
[data-theme="light"] .calculators-section { background: #f8fafc; }
.calc-tabs {
  display: flex;
  max-width: 420px;
  margin: 0 auto 2.25rem;
  background: rgba(0,0,0,0.25);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}
[data-theme="light"] .calc-tabs { background: #e2e8f0; }
.calc-tab-btn {
  flex: 1;
  padding: 0.6rem 0;
  text-align: center;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all 0.22s;
}
.calc-tab-btn.active { background: var(--accent-gold); color: #000; }
.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: start;
}
@media (max-width: 992px) { .calc-container { grid-template-columns: 1fr; } }
.slider-group { margin-bottom: 1.65rem; }
.slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; gap: 0.5rem; }
.slider-header label { font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; }
.slider-header .val-display {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(245,158,11,0.1);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245,158,11,0.3);
}
/* Manual number input in calc sliders */
.calc-num-input {
  width: auto !important;
  min-width: 70px;
  max-width: 110px;
  text-align: right;
  font-weight: 700;
  color: var(--accent-gold) !important;
  background: rgba(245,158,11,0.08) !important;
  border: 1px solid rgba(245,158,11,0.3) !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.85rem !important;
}
[data-theme="light"] .calc-num-input {
  background: rgba(217,119,6,0.08) !important;
  color: #b45309 !important;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.14);
  outline: none;
  cursor: pointer;
}
[data-theme="light"] input[type="range"] { background: #cbd5e1; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(245,158,11,0.6);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.18); }
.calc-results-box {
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  text-align: center;
}
[data-theme="light"] .calc-results-box { background: #f8fafc; }
.emi-amount-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-secondary); }
.emi-amount-val   { font-size: 2.2rem; font-weight: 800; color: var(--accent-gold); margin: 0.3rem 0 1rem; word-break: break-word; }
.calc-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 1.25rem; text-align: left; }
.breakdown-card {
  background: rgba(255,255,255,0.04);
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
[data-theme="light"] .breakdown-card { background: #ffffff; }
.breakdown-card p  { font-size: 0.76rem; color: var(--text-secondary); }
.breakdown-card h4 { font-size: 1.1rem; margin-top: 0.18rem; }
.amortization-table-wrapper {
  margin-top: 1.5rem;
  max-height: 240px;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.custom-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.83rem; }
.custom-table th {
  background: rgba(255,255,255,0.07);
  padding: 0.7rem 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  position: sticky;
  top: 0;
}
[data-theme="light"] .custom-table th { background: #f1f5f9; color: #0f172a; }
.custom-table td { padding: 0.7rem 0.9rem; border-top: 1px solid var(--border-color); color: var(--text-primary); }

/* ══════════════════════════════════════════════════════════════════════════
   PORTALS / LOGIN / DASHBOARD SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.portal-section { padding: 3rem 0; }
.portal-login-card { max-width: 480px; margin: 0 auto; }

/* Role pills inside login card */
.portal-role-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.role-pill {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
[data-theme="light"] .role-pill { background: #f1f5f9; }
.role-pill:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.role-pill.active {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
  box-shadow: 0 2px 10px rgba(245,158,11,0.35);
}

/* Portal Dashboard */
.portal-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  animation: fadeIn 0.35s ease;
}
[data-theme="light"] .portal-dashboard {
  background: #ffffff;
  border-color: #e2e8f0;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.user-profile-badge { display: flex; align-items: center; gap: 0.7rem; }
.avatar-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  border: 2px solid var(--accent-gold);
  flex-shrink: 0;
}
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.dash-stat-card {
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  transition: border-color 0.2s;
}
.dash-stat-card:hover { border-color: rgba(245,158,11,0.4); }
[data-theme="light"] .dash-stat-card { background: #f8fafc; }
.dash-stat-card h4 { font-size: 0.78rem; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 0.3rem; font-weight: 600; }
.dash-stat-card .val { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.status-pill { padding: 0.2rem 0.6rem; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.status-approved  { background:rgba(16,185,129,0.2);  color:#10b981; }
.status-pending   { background:rgba(245,158,11,0.2);  color:#f59e0b; }
.status-review    { background:rgba(59,130,246,0.2);   color:#3b82f6; }
.status-rejected  { background:rgba(239,68,68,0.2);    color:#ef4444; }

/* ── Ticket Communication Hub ───────────────────────────────────────────── */
.post-login-ticket-container { margin-top: 2.5rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.ticket-chat-container { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1.4rem; }
@media (max-width: 768px) { .ticket-chat-container { grid-template-columns: 1fr; } }
.ticket-item-card {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}
.ticket-item-card:hover, .ticket-item-card.active {
  border-color: var(--accent-gold);
  background: rgba(245,158,11,0.08);
}
.msg-bubble-officer {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border-top-left-radius: 2px;
  align-self: flex-start;
  max-width: 85%;
  animation: fadeIn 0.25s ease;
}
.msg-bubble-client {
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border-top-right-radius: 2px;
  align-self: flex-end;
  max-width: 85%;
  animation: fadeIn 0.25s ease;
}
.ticket-messages-stream { scrollbar-width: thin; scrollbar-color: var(--accent-gold) transparent; }
.ticket-messages-stream::-webkit-scrollbar { width: 4px; }
.ticket-messages-stream::-webkit-scrollbar-thumb { background: rgba(245,158,11,0.4); border-radius: 2px; }

/* ══════════════════════════════════════════════════════════════════════════
   FLOATING ACTIONS
   ══════════════════════════════════════════════════════════════════════════ */
.floating-actions {
  position: fixed;
  bottom: 80px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 900;
}
@media (min-width: 993px) { .floating-actions { bottom: 24px; } }
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}
.float-btn:hover { transform: scale(1.12); }
.float-call      { background: #2563eb; }
.float-whatsapp  { background: #22c55e; }
.float-pwa       { background: var(--accent-gold); color: #000; }
.float-chat      { background: var(--accent-purple); color: #fff; }

/* ── Chatbot Window ──────────────────────────────────────────────────────── */
.chatbot-wrapper { position: fixed; bottom: 80px; right: 75px; z-index: 9999; }
@media (max-width: 992px) { .chatbot-wrapper { right: 8px; bottom: 135px; } }
.chatbot-window {
  width: min(340px, calc(100vw - 24px));
  height: min(460px, 65vh);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  bottom: 60px;
  right: 0;
  animation: fadeIn 0.25s ease;
}
.chatbot-header {
  background: rgba(26,34,53,0.95);
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
[data-theme="light"] .chatbot-header { background: #1e293b; }
.chatbot-body { flex: 1; padding: 0.9rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.7rem; }
.chat-msg { max-width: 85%; padding: 0.7rem 0.9rem; border-radius: var(--radius-md); font-size: 0.84rem; line-height: 1.45; }
.bot-msg  { background:rgba(255,255,255,0.07); border:1px solid var(--border-color); align-self:flex-start; border-top-left-radius:2px; }
.user-msg { background:var(--accent-gold); color:#000; font-weight:600; align-self:flex-end; border-top-right-radius:2px; }
[data-theme="light"] .bot-msg { background:#f1f5f9; color:#0f172a; }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.quick-reply-btn {
  background: rgba(245,158,11,0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.quick-reply-btn:hover { background: var(--accent-gold); color: #000; }
.chatbot-footer {
  padding: 0.6rem 0.8rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.45rem;
  background: rgba(0,0,0,0.2);
}
.chatbot-footer input {
  flex: 1;
  padding: 0.5rem 0.8rem;
  font-size: 0.83rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-main);
}
[data-theme="light"] .chatbot-footer input { background: #f1f5f9; color: #0f172a; }

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.footer {
  background: #030712;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}
[data-theme="light"] .footer { background: #0f172a; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; margin: 0.9rem 0; }
.footer-links h4 { font-size: 1rem; margin-bottom: 1.1rem; color: var(--accent-gold); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a  { color: var(--text-secondary); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-gold); }
.footer-bottom { text-align: center; padding-top: 1.75rem; border-top: 1px solid var(--border-color); font-size: 0.8rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s ease;
}
[data-theme="light"] .modal-card { background: #ffffff; }
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 1.3rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text-primary); }

/* ── Contact Grid Responsive Fix ────────────────────────────────────────── */
.contact-grid-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .contact-grid-wrap { grid-template-columns: 1fr; } }

/* ── Tracker Section ─────────────────────────────────────────────────────── */
.tracker-section { padding: 3rem 0; background: rgba(0,0,0,0.18); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
@media (max-width: 600px) {
  #trackerSearchForm { flex-direction: column; }
}

/* ── Encrypted Field Glow ────────────────────────────────────────────────── */
.encrypted-field {
  border-color: rgba(16,185,129,0.35) !important;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.1) !important;
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(245,158,11,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(245,158,11,0.6); }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — COMPREHENSIVE PHONE FIXES
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Tablet & Small Laptop (≤992px) ─────────────────────────────────────── */
@media (max-width: 992px) {
  .hero { padding: 2rem 0 1.5rem; }
  .services-section,
  .loan-request-section,
  .calculators-section,
  .portal-section { padding: 2.25rem 0; }
  .section-header { margin-bottom: 1.5rem; }
  .section-header h2 { font-size: 1.7rem; }
  .glass-card { padding: 1.25rem; }
  .form-step-box { padding: 1.1rem; }
  .footer { padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
  .footer-grid { gap: 1.5rem; }
  .floating-actions { bottom: 75px; right: 12px; gap: 0.5rem; }
  .float-btn { width: 44px; height: 44px; font-size: 1.15rem; }
}

/* ── Phone (≤768px) ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Header */
  .header-inner { height: 56px; gap: 0.5rem; }
  .brand-logo { gap: 0.5rem; }
  .brand-logo-img { height: 36px; width: 36px; }
  .brand-info h1 { font-size: 1.05rem; }
  .brand-tagline { font-size: 0.56rem; }
  .header-actions .btn-sm { padding: 0.3rem 0.55rem; font-size: 0.78rem; }
  .header-actions .btn-icon-only { padding: 0.4rem; }

  /* Redevelopment banner */
  .redevelopment-banner { font-size: 0.7rem; padding: 0.3rem 0; }
  .redevelopment-content { gap: 0.4rem; }
  .redev-badge { font-size: 0.58rem; padding: 0.1rem 0.38rem; }

  /* Hero */
  .hero-content h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
  .hero-tagline-bar { padding: 0.65rem 0.8rem; margin-bottom: 1rem; }
  .tag-pill { font-size: 0.72rem; padding: 0.22rem 0.55rem; }
  .est-box { padding: 0.65rem 0.85rem; font-size: 0.82rem; margin-bottom: 1.25rem; }
  .hero-actions { gap: 0.5rem; margin-bottom: 1.25rem; }
  .hero-actions .btn { font-size: 0.82rem; padding: 0.6rem 1rem; }
  .hero-stats { gap: 0.5rem; padding-top: 1rem; }
  .stat-item h3 { font-size: 1.1rem; }
  .stat-item p { font-size: 0.68rem; }

  /* Badge */
  .badge { font-size: 0.66rem; padding: 0.25rem 0.55rem; }

  /* Buttons */
  .btn { padding: 0.6rem 1rem; font-size: 0.86rem; }
  .btn-lg { padding: 0.75rem 1.25rem; font-size: 0.95rem; }

  /* Glass card */
  .glass-card { padding: 1.1rem; border-radius: var(--radius-md); }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .category-tabs { gap: 0.35rem; margin-bottom: 1.5rem; }
  .cat-btn { padding: 0.45rem 0.75rem; font-size: 0.76rem; }
  .service-icon { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 0.85rem; }
  .service-card h3 { font-size: 1.05rem; }
  .service-features li { font-size: 0.8rem; }

  /* Loan form */
  .form-step-box { padding: 0.9rem; margin-bottom: 1.25rem; }
  .form-step-title { font-size: 0.95rem; margin-bottom: 0.85rem; }
  .occ-dynamic-box { padding: 1rem; }

  /* Calculators */
  .calc-tabs { max-width: 100%; }
  .calc-tab-btn { font-size: 0.78rem; padding: 0.5rem 0; }
  .slider-header { flex-wrap: wrap; gap: 0.3rem; }
  .slider-header label { font-size: 0.8rem; flex: 1 1 auto; }
  .calc-num-input { min-width: 65px !important; max-width: 95px; font-size: 0.8rem !important; }
  .calc-results-box { padding: 1.25rem; }
  .emi-amount-val { font-size: 1.8rem; }
  .calc-breakdown { grid-template-columns: 1fr; gap: 0.6rem; }
  .breakdown-card { padding: 0.7rem; }
  .breakdown-card h4 { font-size: 1rem; }

  /* Portal */
  .portal-login-card { max-width: 100%; }
  .portal-dashboard { padding: 1rem; border-radius: var(--radius-md); }
  .dashboard-header { gap: 0.5rem; }
  .dashboard-stats-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .dash-stat-card { padding: 0.85rem; }
  .dash-stat-card .val { font-size: 1.25rem; }
  .avatar-icon { width: 36px; height: 36px; font-size: 1rem; }
  .role-pill { font-size: 0.7rem; padding: 0.28rem 0.6rem; }
  .custom-table { font-size: 0.75rem; }
  .custom-table th, .custom-table td { padding: 0.5rem 0.6rem; }

  /* Ticket hub */
  .post-login-ticket-container { margin-top: 1.5rem; padding-top: 1.25rem; }
  .ticket-chat-container { gap: 1rem; }
  .ticket-chat-window { height: auto; min-height: 280px; max-height: 360px; }
  .ticket-item-card { padding: 0.6rem; }
  .msg-bubble-officer, .msg-bubble-client { padding: 0.55rem 0.75rem; max-width: 92%; font-size: 0.82rem; }

  /* Contact */
  #contact { padding: 2.5rem 1rem !important; }

  /* Footer */
  .footer { padding: 2rem 0 1.5rem; margin-top: 2rem; }
  .footer-grid { gap: 1.5rem; }
  .footer-bottom { font-size: 0.7rem; }

  /* Modal */
  .modal-card { padding: 1.5rem; max-width: 95vw; }
}

/* ── Very Small Phone (≤400px) ──────────────────────────────────────────── */
@media (max-width: 400px) {
  .container { padding: 0 0.75rem; }
  .header-inner { gap: 0.35rem; }
  .brand-logo-img { height: 32px; width: 32px; }
  .brand-info h1 { font-size: 0.95rem; }
  .brand-tagline { font-size: 0.5rem; }
  .header-actions .btn-sm { padding: 0.25rem 0.45rem; font-size: 0.72rem; }

  .redevelopment-banner { font-size: 0.62rem; }
  .redev-badge { font-size: 0.52rem; }

  .hero-content h2 { font-size: 1.3rem; }
  .tag-pill { font-size: 0.65rem; padding: 0.18rem 0.42rem; }
  .hero-actions .btn { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
  .stat-item h3 { font-size: 0.95rem; }
  .stat-item p { font-size: 0.62rem; }

  .section-header h2 { font-size: 1.35rem; }
  .section-header p { font-size: 0.8rem; }

  .glass-card { padding: 0.85rem; }
  .form-step-box { padding: 0.75rem; }
  .form-step-title { font-size: 0.88rem; gap: 0.35rem; }

  .calc-num-input { min-width: 58px !important; max-width: 80px; font-size: 0.75rem !important; padding: 0.2rem 0.35rem !important; }
  .slider-header label { font-size: 0.73rem; }
  .emi-amount-val { font-size: 1.5rem; }

  .portal-dashboard { padding: 0.75rem; }
  .dashboard-header h3 { font-size: 0.9rem; }

  .chatbot-window { width: calc(100vw - 16px); right: -4px; }

  .modal-card { padding: 1.1rem; }
}
