/* ============================================================
   NESTFY — style.css (Production Grade + High-Converting UI)
   ============================================================ */
:root {
  --bg: #09090b;
  --card: #18181b;
  --card2: #1f1f23;
  --text: #fafafa;
  --muted: #a1a1aa;
  --accent: #10b981;
  --accent2: #34d399;
  --danger: #ef4444;
  --warning: #f59e0b;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --border: rgba(255, 255, 255, 0.1);
  --border-focus: #10b981;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
  --r: 16px;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --card: #ffffff;
  --card2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(0, 0, 0, 0.08);
  --border-focus: #10b981;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

.screen {
  display: none !important;
}
.screen.active {
  display: flex !important;
}
#landing-screen.screen.active {
  display: block !important;
}
#auth-screen.screen.active {
  display: flex !important;
}
#app-screen.screen.active {
  display: flex !important;
}

.grad {
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

input, select, textarea {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  padding: 14px 22px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  padding: 12px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(16, 185, 129, 0.05);
}

.btn-lg {
  padding: 16px 30px;
  border-radius: 14px;
  font-size: 1.05rem;
}

.btn-icon {
  background: var(--card);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 12px;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.btn-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.msg {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--danger);
  min-height: 20px;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* LANDING PAGE */
#landing-screen {
  flex-direction: column;
  overflow-y: auto;
  height: 100vh;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 5%;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}

.ln-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  gap: 10px;
  align-items: center;
}
.ln-logo i {
  color: var(--accent);
}

.ln-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.ln-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.ln-links a:hover {
  color: var(--text);
  background: var(--card2);
}

.ln-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ln-burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 80px 5% 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(139, 92, 246, 0.14);
  color: var(--purple);
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-text p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.hero-stats {
  display: flex;
  gap: 36px;
}
.hero-stats b {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-visual {
  position: relative;
  height: 400px;
}

.hero-phone {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 290px;
  height: 360px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hp-top {
  display: flex;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.r { background: #ef4444; }
.dot.y { background: #f59e0b; }
.dot.g { background: #10b981; }

.hp-balance span {
  color: var(--muted);
  font-size: 0.78rem;
}
.hp-balance b {
  display: block;
  font-size: 1.8rem;
  margin-top: 4px;
}

.hp-bars {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 140px;
  margin-top: auto;
}
.hp-bars i {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), #059669);
  border-radius: 6px;
  animation: barGrow 1.2s ease;
}
@keyframes barGrow {
  from { height: 0; }
}

.float-card {
  position: absolute;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
  z-index: 2;
}
.float-card i {
  color: var(--accent);
  font-size: 1.3rem;
}
.float-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.float-card b {
  font-size: 1rem;
}
.fc-1 { top: 20px; left: -10px; }
.fc-2 { bottom: 30px; right: -10px; animation-delay: 2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.sec-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.sec-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 44px;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--card);
  padding: 1.6rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card h3 {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.svc i {
  font-size: 1.6rem;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.12);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 16px;
}
.svc h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  text-transform: none;
  color: var(--text);
}
.svc p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.svc:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.demo-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 14px;
}

/* SAVINGS CALCULATOR COMPONENT */
.calc-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), var(--card));
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2rem;
  border-radius: 24px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.calc-result-box {
  background: var(--bg);
  padding: 1.8rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  text-align: center;
}

.calc-big-value {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  margin: 10px 0;
}

/* HIGH CONVERTING CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, #064e3b, #0f172a);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 3rem 2rem;
  border-radius: 28px;
  text-align: center;
  margin: 60px auto;
  max-width: 1100px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 24px;
}

/* PRICING */
.plan {
  text-align: center;
  position: relative;
}
.plan h3 {
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plan-price {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  margin: 14px 0 20px;
}
.plan-price span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 24px;
}
.plan li {
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
  align-items: center;
}
.plan li i {
  color: var(--accent);
}
.plan .btn-ghost, .plan .btn-primary {
  width: 100%;
}
.plan.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.pop-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 99px;
}

/* FAQ */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
}
.faq-q i {
  transition: transform 0.3s;
  color: var(--muted);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-top: 10px;
}
.faq-item.open .faq-a {
  max-height: 240px;
}
.faq-item.open .faq-q i {
  transform: rotate(180deg);
  color: var(--accent);
}

/* CONTACT & FOOTER */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
}
.ci-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ci-row:last-child {
  border: none;
}
.ci-row i {
  color: var(--accent);
  font-size: 1.1rem;
  width: 24px;
}
.ci-row span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.ci-row b {
  font-size: 0.92rem;
  word-break: break-all;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 30px 5%;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.ft-socials {
  display: flex;
  gap: 12px;
}
.ft-socials a {
  color: var(--muted);
  font-size: 1.15rem;
  cursor: pointer;
  transition: color 0.2s;
}
.ft-socials a:hover {
  color: var(--accent);
}

.ft-links {
  display: flex;
  gap: 16px;
}
.ft-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  cursor: pointer;
}
.ft-links a:hover {
  color: var(--accent);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: -140px;
  left: 20px;
  right: 20px;
  max-width: 580px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 1000;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show {
  bottom: 24px;
}
body.in-app .cookie-banner,
body.in-app #cookie-banner,
#app-screen.active ~ #cookie-banner,
#auth-screen.active ~ #cookie-banner {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.cookie-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* AUTH SCREEN */
#auth-screen {
  height: 100vh;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, #1e293b, var(--bg));
  padding: 20px;
}
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  width: 100%;
  max-width: 820px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-brand {
  position: relative;
  background: linear-gradient(150deg, #065f46, #0f172a);
  padding: 2.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.auth-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
}
.auth-brand p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.6rem;
}
.auth-brand ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-brand li {
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
  align-items: center;
}
.auth-brand li i {
  color: var(--accent2);
}
.brand-orbs span {
  position: absolute;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.25);
  filter: blur(40px);
}
.brand-orbs span:nth-child(1) { width: 160px; height: 160px; top: -40px; right: -40px; }
.brand-orbs span:nth-child(2) { width: 120px; height: 120px; bottom: -30px; left: -30px; }

.auth-panel {
  padding: 2.5rem;
  position: relative;
}
.auth-back {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
}
.auth-back:hover {
  color: var(--accent);
}
.auth-tabs {
  display: flex;
  background: var(--bg);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 1.2rem;
}
.tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
}
.tab.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-google {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.btn-google:hover {
  border-color: var(--accent);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 14px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-form {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.auth-form.active {
  display: flex;
}
.pw-wrap {
  position: relative;
}
.pw-wrap input {
  width: 100%;
  padding-right: 46px;
}
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
}
.pw-strength {
  height: 5px;
  background: var(--card2);
  border-radius: 99px;
  overflow: hidden;
}
.pw-strength div {
  height: 100%;
  width: 0;
  background: var(--danger);
  transition: 0.3s;
}

/* APP SHELL */
#app-screen {
  height: 100vh;
  flex-direction: row;
}

#sidebar {
  width: 260px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
.sidebar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo i {
  color: var(--accent);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover {
  background: var(--bg);
  color: var(--text);
}
.nav-link.active {
  background: var(--accent);
  color: #fff;
}
.nav-link.admin-link {
  color: var(--warning);
  font-weight: 700;
}
.nav-link.admin-link.active {
  background: var(--warning);
  color: #111;
}
.user-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}
.uc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.uc-info {
  overflow: hidden;
}
.uc-info b {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uc-info span {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.sidebar-logout {
  background: none;
  border: none;
  color: var(--muted);
  padding: 12px;
  cursor: pointer;
  font-weight: 500;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.sidebar-logout:hover {
  color: var(--danger);
}

#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}
.topbar h1 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.topbar h1 i {
  color: var(--accent);
  margin-right: 8px;
}
#topbar-sub {
  font-size: 0.8rem;
  color: var(--muted);
}
.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sync-pill {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.12);
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: all 0.2s ease;
}
.sync-pill:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.sync-pill i {
  font-size: 0.5rem;
}
.sync-pill.syncing {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}
.sync-pill.supabase-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.page-container {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  animation: pageIn 0.35s ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.stat-card p {
  font-size: 1.8rem;
  font-weight: 700;
}
.stat-card.income p { color: var(--accent); }
.stat-card.expense p { color: var(--danger); }
.page-container .card canvas { max-height: 280px; }

/* DASHBOARD */
.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1.8rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.08));
  border: 1px solid var(--border);
}
.dash-greet {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.dash-balance {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.dash-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}
.dash-trend {
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.dash-trend.good { background: rgba(16, 185, 129, 0.12); color: var(--accent); }
.dash-trend.bad { background: rgba(239, 68, 68, 0.12); color: var(--danger); }

.dash-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  font-weight: 600;
  font-size: 0.85rem;
}
.quick-btn i {
  font-size: 1.3rem;
  color: var(--c, var(--accent));
}
.quick-btn:hover {
  transform: translateY(-2px);
  border-color: var(--c, var(--accent));
}

.top-cats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.top-cat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: var(--bg);
  border-radius: 12px;
}
.top-cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.top-cat-info { flex: 1; }
.top-cat-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.top-cat-info span { font-size: 0.78rem; color: var(--muted); }
.top-cat-item b { font-size: 1rem; }

.alert-card { border-left: 4px solid var(--warning); }
.alert-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.alert-header i { color: var(--warning); font-size: 1.2rem; }
.alert-header h3 { margin: 0; color: var(--warning); }
.alert-list { display: flex; flex-direction: column; gap: 1rem; }
.alert-item { display: flex; flex-direction: column; gap: 0.5rem; }
.alert-info { display: flex; justify-content: space-between; align-items: center; }
.alert-category { font-weight: 600; }
.alert-progress { font-size: 0.85rem; color: var(--muted); }
.progress-fill.warning { background: var(--warning); }

/* IRUS AI */
.irus-card {
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), var(--card));
}
.irus-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.irus-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.irus-head h3 {
  margin: 0 !important;
  color: var(--text) !important;
  text-transform: none !important;
}
.irus-head span {
  font-size: 0.75rem;
  color: var(--purple);
  font-weight: 700;
}
.ai-badge {
  margin-left: auto;
  background: var(--purple);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
}
.irus-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.irus-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
}
.irus-item i {
  color: var(--purple);
  margin-top: 3px;
}
.irus-item p {
  font-size: 0.9rem !important;
  line-height: 1.5;
}
.irus-locked {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--muted);
}
.irus-locked i {
  font-size: 1.8rem;
  color: var(--purple);
  margin-bottom: 10px;
}
.irus-locked p {
  font-size: 0.9rem;
  margin-bottom: 14px;
}

/* LISTS */
.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.list-item {
  background: var(--bg);
  padding: 1rem;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.list-item:hover {
  border-color: var(--accent);
}
.list-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.list-item span {
  font-size: 0.8rem;
  color: var(--muted);
}
.tx-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.amount {
  font-weight: 700;
}
.amount.income { color: var(--accent); }
.amount.expense { color: var(--danger); }
.delete-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.delete-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}
.search-bar {
  margin-bottom: 1.5rem;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding-left: 42px;
}
.search-bar i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.progress-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 12px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.8s ease;
}
.progress-fill.danger { background: var(--danger); }

.chart-container {
  position: relative;
  width: 100%;
  height: 280px;
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}
.empty-state p {
  margin-bottom: 1rem;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--card2) !important;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.usage-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent);
}
.usage-pill.full { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.usage-pill.unlimited { background: rgba(139, 92, 246, 0.12); color: var(--purple); }

/* SETTINGS & PROFILE */
.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.profile-info h2 {
  font-size: 1.3rem;
  margin-bottom: 2px;
}
.profile-info p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.profile-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
}
.profile-badge.admin {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.profile-stat {
  text-align: center;
}
.profile-stat-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}
.profile-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.upgrade-card {
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), var(--card));
}
.upgrade-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.upgrade-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.plan-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
}
.plan-pill.free { background: rgba(148, 163, 184, 0.15); color: var(--muted); }
.plan-pill.pro { background: rgba(16, 185, 129, 0.15); color: var(--accent); }
.btn-logout-full {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
}
.btn-logout-full:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* ADMIN PORTAL */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 650px;
}
.admin-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.admin-table tr:hover td {
  background: var(--card2);
}
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
}
.pill.income { background: rgba(16, 185, 129, 0.15); color: var(--accent); }
.pill.expense { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.pill.admin { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.pill.user { background: rgba(148, 163, 184, 0.15); color: var(--muted); }
.pill.warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.plan-select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

/* NOTIFICATIONS */
.notif-wrap {
  position: relative;
}
.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  z-index: 2;
}
.notif-panel {
  position: absolute;
  top: 48px;
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: none;
  z-index: 60;
}
.notif-panel.open {
  display: block;
}
.notif-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
}
.notif-item:hover {
  background: var(--card2);
}
.notif-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-item h5 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.notif-item p {
  font-size: 0.78rem;
  color: var(--muted);
}
.notif-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: var(--card);
  padding: 2.2rem;
  border-radius: 24px;
  width: 90%;
  max-width: 540px;
  border: 1px solid var(--border);
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  animation: modalPop 0.3s ease;
}
@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.3rem;
}

/* MOBILE NAV */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 10px 0;
  z-index: 90;
  justify-content: space-around;
}
.mob-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
}
.mob-btn.active {
  color: var(--accent);
}
.mob-btn.add-btn {
  background: var(--accent);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -25px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
body:not(.in-app) .mobile-nav {
  display: none !important;
}

/* SUPPORT FLOATING WIDGET */
#support-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.support-panel {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 120;
  width: 340px;
  max-width: calc(100vw - 40px);
  max-height: 75vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: none;
}
.support-panel.open {
  display: block;
  animation: spIn 0.3s ease;
}
@keyframes spIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.sp-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.sp-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-head b { display: block; }
.sp-head span { font-size: 0.78rem; color: var(--muted); }
.sp-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sp-note { font-size: 0.85rem; color: var(--muted); }
.sp-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.sp-chips { display: flex; gap: 8px; }
.chip {
  flex: 1;
  padding: 9px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.sp-qr-wrap {
  background: #fff;
  padding: 14px;
  border-radius: 16px;
  text-align: center;
}
#upi-qr { display: flex; justify-content: center; }
#qr-label { color: #0f172a; font-size: 0.85rem; font-weight: 700; margin-top: 8px; }
.sp-upi { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.sp-upi code { font-size: 0.82rem; color: var(--muted); }
.btn-bmc {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: #ffdd00;
  color: #000;
  font-weight: 800;
  padding: 13px;
  border-radius: 12px;
  text-decoration: none;
}
.btn-bmc:hover { transform: translateY(-2px); }
.sp-socials { display: flex; gap: 10px; justify-content: center; }
.sp-socials a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.1rem;
}
.sp-socials a:hover { color: var(--accent); border-color: var(--accent); }

/* TOAST NOTIFICATIONS */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}
.toast.success { border-left: 4px solid var(--accent); }
.toast.error { border-left: 4px solid var(--danger); }

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { display: none; }
  .calc-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .auth-card { grid-template-columns: 1fr; max-width: 440px; }
  .auth-brand { display: none; }
  .settings-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #sidebar { display: none; }
  .mobile-nav { display: flex; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .mobile-only { display: flex; }
  .topbar { flex-wrap: wrap; gap: 6px; padding: 1rem; }
  .topbar > div:first-child { display: contents; }
  .topbar-actions { order: 2; margin-left: auto; }
  #topbar-sub { order: 3; flex-basis: 100%; font-size: 0.72rem; }
  .page-container { padding: 1rem; padding-bottom: 90px; }
  #support-fab { bottom: 86px; }
  .support-panel { bottom: 152px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .dash-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dash-balance { font-size: 2rem; }
  .dash-quick { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .quick-btn { padding: 12px 4px; font-size: 0.75rem; }
  .quick-btn i { font-size: 1.1rem; }
  .cookie-banner { flex-direction: column; text-align: center; }
  .cookie-actions { width: 100%; justify-content: center; }
}

@media (max-width: 700px) {
  .ln-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .ln-links.open { display: flex; }
  .ln-burger { display: block; margin-left: auto; }
  .ln-actions .btn-ghost { display: none; }
}

/* ══════════ IRUS AI CHAT WIDGET ══════════ */
#irus-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 120;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--purple), #6366f1);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
#irus-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6);
}

#irus-panel {
  position: fixed;
  left: 20px;
  bottom: 90px;
  z-index: 120;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 480px;
  max-height: 75vh;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(16px);
}
#irus-panel.open {
  display: flex;
  animation: irusIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes irusIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: none; }
}

.irus-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  background: var(--card2);
}
.irus-chat-head i {
  color: var(--purple);
  font-size: 1.2rem;
}
.irus-chat-head span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

#irus-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.irus-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.irus-msg.bot {
  background: var(--bg);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.irus-msg.user {
  background: linear-gradient(135deg, var(--purple), #6366f1);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

#irus-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
#irus-form input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.9rem;
}
#irus-form .btn-primary {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), #6366f1);
}

@media (max-width: 768px) {
  #irus-fab { bottom: 86px; left: 20px; }
  #irus-panel { bottom: 152px; left: 20px; width: calc(100vw - 40px); }
}

/* ══════════ HEATMAP & IMPORT ══════════ */
.import-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.import-bar i { color: var(--accent); font-size: 1.2rem; }

.hm-grid {
  display: grid;
  grid-template-rows: repeat(7, 13px);
  grid-auto-flow: column;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.hm-cell {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--card2);
  display: inline-block;
}
.hm-cell.lv1 { background: rgba(16, 185, 129, 0.35); }
.hm-cell.lv2 { background: rgba(16, 185, 129, 0.6); }
.hm-cell.lv3 { background: rgba(16, 185, 129, 0.85); }
.hm-cell.lv4 { background: var(--accent); }
.hm-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.hm-legend .hm-cell { width: 10px; height: 10px; }

/* ══════════ CONFETTI & BIOMETRIC LOCK ══════════ */
.confetti {
  position: fixed;
  top: -14px;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  z-index: 400;
  pointer-events: none;
  animation: confettiFall 2.4s linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(105vh) rotate(720deg); opacity: 0.9; }
}

#nw-lock {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
}
#nw-lock .lock-logo {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}
#nw-lock h2 { margin-top: 6px; }
#nw-lock p { color: var(--muted); font-size: 0.9rem; max-width: 320px; }

/* ══════════ PAYMENT METHOD PICKER & BADGES ══════════ */
.pay-method-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pay-chip {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pay-chip:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.pay-chip.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pay-badge.upi {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
  border-color: rgba(16, 185, 129, 0.3);
}
.pay-badge.cash {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.3);
}
.pay-badge.debit {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}
.pay-badge.credit {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
  border-color: rgba(139, 92, 246, 0.3);
}
.pay-badge.netbanking {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.3);
}
.pay-badge.other {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border-color: rgba(100, 116, 139, 0.3);
}