/* ============================================================
   BillSplitCalculator.site — Style Sheet
   Theme: Emerald Green + Teal + Navy + Gold
   ============================================================ */

/* ---- Google Font Import (fallback if link tag fails) ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --emerald:    #2ECC71;
  --teal:       #1ABC9C;
  --dark-teal:  #16A085;
  --green-dark: #27AE60;
  --navy:       #1B2A4A;
  --dark-navy:  #0F1B33;
  --gold:       #F39C12;
  --amber:      #E67E22;
  --white:      #FFFFFF;
  --light:      #F0FAF4;
  --muted:      #8E8E8E;
  --card-bg:    rgba(255,255,255,0.85);
  --shadow:     0 8px 32px rgba(46,204,113,0.15);
  --transition: 0.3s ease;
  --radius:     16px;
  --radius-sm:  10px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--navy);
  background: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  color: var(--navy);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, button { font-family: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: #fff;
  box-shadow: 0 6px 24px rgba(46,204,113,0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(46,204,113,0.55);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  border-color: #fff;
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}
.header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(27,42,74,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links li a {
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  transition: all var(--transition);
}
.header.scrolled .nav-links li a { color: var(--navy); }
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--emerald);
  background: rgba(46,204,113,0.1);
}
.header.scrolled .nav-links li a:hover { color: var(--emerald); }

/* Dropdown */
.dropdown { position: relative; }
/* Invisible bridge fills gap so hover stays active when moving from trigger to menu */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(27,42,74,0.15);
  min-width: 240px;
  padding: 10px;
  z-index: 100;
  border: 1px solid rgba(46,204,113,0.1);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--navy) !important;
  font-size: 0.9rem;
  font-weight: 500;
}
.dropdown-menu li a:hover { background: var(--light); color: var(--emerald) !important; }

.cat-icon { font-size: 1.1rem; }
.cat-icon.bill  { color: var(--emerald); }
.cat-icon.room  { color: var(--teal); }
.cat-icon.trip  { color: var(--gold); }
.cat-icon.tip   { color: var(--amber); }
.cat-icon.group { color: var(--dark-teal); }

/* Hamburger - shown on tablet/mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: #fff;
  border-radius: 4px;
  transition: all var(--transition);
}
.header.scrolled .hamburger span { background: var(--navy); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-overlay.visible {
  display: block;
  opacity: 1;
}
@media (min-width: 901px) {
  .nav-overlay { display: none !important; }
}


/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--dark-navy);
  display: flex;
  align-items: center;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0F1B33 0%, #1B3A2A 30%, #1B2A4A 60%, #0F2B20 100%);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(46,204,113,0.15) 0%, transparent 60%),
              radial-gradient(circle at 70% 30%, rgba(26,188,156,0.12) 0%, transparent 50%);
  pointer-events: none;
}

/* Hero Content Layout */
.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 60px;
}

.hero-text { flex: 1; max-width: 580px; color: #fff; }

.hero-badge {
  display: inline-block;
  background: rgba(46,204,113,0.2);
  border: 1px solid rgba(46,204,113,0.4);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  color: #A8E6CF;
  animation: fadeDown 0.7s ease forwards;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero-title span {
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-domain {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  animation: fadeUp 0.7s 0.15s ease both;
}
.hero-domain span {
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 500px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* Hero Visual — Receipt Card */
.hero-visual {
  flex: 0 0 380px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s 0.3s ease both;
}

.receipt-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 32px 28px;
  width: 300px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}

.receipt-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
}
.receipt-icon { font-size: 1.4rem; }

.receipt-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}
.receipt-line.total {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.receipt-divider {
  border-top: 1px dashed rgba(255,255,255,0.2);
  margin: 8px 0;
}

.receipt-split {
  margin-top: 16px;
  text-align: center;
  padding: 16px;
  background: rgba(46,204,113,0.15);
  border: 1px solid rgba(46,204,113,0.3);
  border-radius: 12px;
}

.split-badge {
  background: var(--emerald);
  color: #fff;
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 8px;
}

.split-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.split-amount small {
  font-size: 0.85rem;
  font-weight: 500;
  -webkit-text-fill-color: rgba(255,255,255,0.5);
}

/* Floating Cards */
.float-card {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 18px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 3;
}
.fc-1 {
  top: -10px; right: -20px;
  animation: floatCard 4s ease-in-out infinite;
}
.fc-2 {
  bottom: 60px; left: -30px;
  animation: floatCard 5s ease-in-out 1s infinite;
}
.fc-3 {
  bottom: -10px; right: -10px;
  animation: floatCard 4.5s ease-in-out 0.5s infinite;
}

/* Hero Particles */
.hero-particles {
  position: absolute;
  inset: 0; pointer-events: none; z-index: 3;
}

/* Hero Shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
.hero-shape-1 {
  width: 500px; height: 500px;
  left: -150px; bottom: -150px;
  background: radial-gradient(circle, rgba(46,204,113,0.12), transparent 70%);
}
.hero-shape-2 {
  width: 350px; height: 350px;
  right: -80px; top: -80px;
  background: radial-gradient(circle, rgba(26,188,156,0.15), transparent 70%);
}
.hero-shape-3 {
  width: 200px; height: 200px;
  right: 25%; top: 30%;
  background: radial-gradient(circle, rgba(243,156,18,0.12), transparent 70%);
}


/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: linear-gradient(135deg, var(--emerald), var(--teal), var(--dark-teal));
  padding: 22px 0;
}
.trust-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}
.trust-icon {
  font-size: 1.4rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}


/* ============================================================
   SECTION TAGS & TITLES
   ============================================================ */
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(46,204,113,0.1), rgba(26,188,156,0.1));
  border: 1px solid rgba(46,204,113,0.25);
  color: var(--emerald);
  padding: 7px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--navy);
}
.section-title span, .gradient-text {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  max-width: 640px;
  margin: 0 auto 56px;
  color: #5A6B7E;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Center section titles when tag is in separate text-center block */
.text-center + .section-title { text-align: center; }
.section-title + .section-subtitle { text-align: center; }


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.deco-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.b1 {
  width: 400px; height: 400px;
  background: rgba(46,204,113,0.1);
  top: -100px; left: -100px;
}
.b2 {
  width: 300px; height: 300px;
  background: rgba(26,188,156,0.08);
  bottom: -80px; right: -80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-image img {
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(27,42,74,0.15);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-image-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(46,204,113,0.35);
  white-space: nowrap;
}

.about-image-decorator {
  position: absolute;
  top: -20px; left: -20px;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--gold), var(--emerald));
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(12px);
}

.about-text h2 { font-size: 2.1rem; font-weight: 800; margin-bottom: 20px; }
.about-text h2 span {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-text p { color: #5A6B7E; margin-bottom: 18px; }
.about-text strong { color: var(--navy); }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--light);
  border: 1px solid rgba(46,204,113,0.15);
  padding: 10px 16px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.hi-icon { font-size: 1.1rem; }

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 0.82rem; color: #8A9BB0; font-weight: 500; margin-top: 4px; }


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  padding: 100px 0;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 52px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  opacity: 0.25;
  z-index: 0;
}

.timeline-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  position: relative;
  box-shadow: 0 8px 24px rgba(46,204,113,0.2);
}
.s1 { background: linear-gradient(135deg, #2ECC71, #27AE60); }
.s2 { background: linear-gradient(135deg, #1ABC9C, #16A085); }
.s3 { background: linear-gradient(135deg, #F39C12, #E67E22); }
.s4 { background: linear-gradient(135deg, #3498DB, #2980B9); }

.step-number {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 8px;
}
.timeline-step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.timeline-step p { font-size: 0.9rem; color: #5A6B7E; }


/* ============================================================
   CALCULATOR SECTION
   ============================================================ */
.calc-section {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--navy) 0%, #1B3A2A 50%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.calc-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(46,204,113,0.12)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.calc-section .section-tag { color: var(--emerald); border-color: rgba(46,204,113,0.3); background: rgba(46,204,113,0.1); }
.calc-section .section-title { color: #fff; }
.calc-section .section-subtitle { color: rgba(255,255,255,0.7); }

.calc-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

.calc-inputs, .calc-results {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 40px;
}

.calc-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.calc-field { margin-bottom: 20px; }
.calc-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 16px;
  font-size: 1.05rem;
  pointer-events: none;
  z-index: 1;
}

.calc-inputs input[type="text"],
.calc-inputs input[type="number"],
.calc-inputs select {
  width: 100%;
  padding: 12px 16px 12px 46px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(46,204,113,0.25);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  outline: none;
}
.calc-inputs input::placeholder { color: rgba(255,255,255,0.35); }
.calc-inputs input:focus,
.calc-inputs select:focus {
  border-color: var(--emerald);
  background: rgba(46,204,113,0.08);
  box-shadow: 0 0 0 4px rgba(46,204,113,0.12);
}

.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Mode Tabs */
.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mode-tab {
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1.5px solid rgba(46,204,113,0.25);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.65);
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
}
.mode-tab:hover { border-color: var(--emerald); color: var(--emerald); background: rgba(46,204,113,0.08); }
.mode-tab.active {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  border-color: var(--emerald);
  color: #fff;
  box-shadow: 0 4px 16px rgba(46,204,113,0.35);
}

/* Mode Panels */
.calc-mode-panel { display: none; }
.calc-mode-panel.active { display: block; }

/* Tip Presets */
.tip-presets {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.tip-preset {
  flex: 1;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1.5px solid rgba(46,204,113,0.25);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.tip-preset:hover { border-color: var(--emerald); color: var(--emerald); }
.tip-preset.active {
  background: rgba(46,204,113,0.15);
  border-color: var(--emerald);
  color: var(--emerald);
}

/* Dynamic Rows (Roommate, Trip, Group) */
.expense-row, .contribution-row, .participant-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.expense-row input, .contribution-row input, .participant-row input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(46,204,113,0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition);
}
.expense-row input::placeholder,
.contribution-row input::placeholder,
.participant-row input::placeholder { color: rgba(255,255,255,0.3); }
.expense-row input:focus,
.contribution-row input:focus,
.participant-row input:focus {
  border-color: var(--emerald);
  background: rgba(46,204,113,0.06);
}

.add-row-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px dashed rgba(46,204,113,0.35);
  background: rgba(46,204,113,0.05);
  color: var(--emerald);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 16px;
}
.add-row-btn:hover { background: rgba(46,204,113,0.12); border-color: var(--emerald); }

/* Calculate Button */
.calc-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  transition: all var(--transition);
  box-shadow: 0 8px 24px rgba(46,204,113,0.35);
  letter-spacing: 0.3px;
}
.calc-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(46,204,113,0.5);
}
.calc-btn-icon { font-size: 1.2rem; animation: pulse 2s ease infinite; }

/* Results Panel */
.result-meter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.meter-icon { font-size: 2.4rem; margin-bottom: -8px; }

.result-meter {
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(46,204,113,0.25);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--teal), var(--gold));
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 10px;
  position: relative;
}
.meter-fill::after {
  content: '';
  position: absolute;
  top: 2px; right: 4px;
  width: 20px; height: 6px;
  background: rgba(255,255,255,0.4);
  border-radius: 3px;
  animation: shimmer 2s ease-in-out infinite;
}

.result-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-label {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.result-message {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Result Breakdown */
.result-breakdown {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
}
.result-breakdown .breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.result-breakdown .breakdown-row:last-child { border-bottom: none; }
.result-breakdown .breakdown-row strong { color: #fff; }

.result-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  transition: opacity 0.5s ease;
  margin-bottom: 20px;
}
.rbadge {
  padding: 8px 18px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.rb-green  { background: rgba(46,204,113,0.2); border: 1px solid rgba(46,204,113,0.4); color: #A8E6CF; }
.rb-teal   { background: rgba(26,188,156,0.2); border: 1px solid rgba(26,188,156,0.4); color: #A3E4D7; }
.rb-gold   { background: rgba(243,156,18,0.2); border: 1px solid rgba(243,156,18,0.4); color: #FAD7A0; }

.share-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.share-btn:hover { background: rgba(255,255,255,0.15); }


/* ============================================================
   CATEGORIES / TOOLS
   ============================================================ */
.categories-section {
  padding: 100px 0;
  background: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.category-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1.5px solid rgba(46,204,113,0.12);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(27,42,74,0.05);
  position: relative;
  overflow: hidden;
}
a.category-card { color: inherit; }
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46,204,113,0.03), rgba(26,188,156,0.03));
  border-radius: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(46,204,113,0.15); border-color: rgba(46,204,113,0.35); }
.category-card:hover::before { opacity: 1; }

.card-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}
.card-icon.bill   { background: linear-gradient(135deg, #D5F5E3, #ABEBC6); }
.card-icon.room   { background: linear-gradient(135deg, #D1F2EB, #A3E4D7); }
.card-icon.trip   { background: linear-gradient(135deg, #FAD7A0, #F8C471); }
.card-icon.tip    { background: linear-gradient(135deg, #FDEBD0, #F9E79F); }
.card-icon.group  { background: linear-gradient(135deg, #D4E6F1, #AED6F1); }

.category-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--navy); }
.category-card p { font-size: 0.85rem; color: #5A6B7E; margin-bottom: 18px; line-height: 1.6; }
.card-link {
  display: inline-block;
  color: var(--emerald);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap var(--transition);
}
.card-link:hover { letter-spacing: 0.5px; }


/* ============================================================
   FEATURES
   ============================================================ */
.features-section {
  padding: 100px 0;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.c1 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(46,204,113,0.1), transparent 70%); top: -100px; right: -100px; }
.c2 { width: 250px; height: 250px; background: radial-gradient(circle, rgba(26,188,156,0.1), transparent 70%); bottom: -60px; left: 10%; }
.c3 { width: 180px; height: 180px; background: radial-gradient(circle, rgba(243,156,18,0.12), transparent 70%); top: 40%; left: -50px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}

.feature-card {
  background: #fff;
  border: 1.5px solid rgba(46,204,113,0.1);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(27,42,74,0.04);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.3); }

.feature-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
}
.fi-1 { background: linear-gradient(135deg, #D5F5E3, #ABEBC6); }
.fi-2 { background: linear-gradient(135deg, #FAD7A0, #F8C471); }
.fi-3 { background: linear-gradient(135deg, #D1F2EB, #A3E4D7); }
.fi-4 { background: linear-gradient(135deg, #D4E6F1, #AED6F1); }
.fi-5 { background: linear-gradient(135deg, #FDEBD0, #F9E79F); }
.fi-6 { background: linear-gradient(135deg, #E8DAEF, #D7BDE2); }

.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--navy); }
.feature-card p { font-size: 0.9rem; color: #5A6B7E; line-height: 1.65; }


/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  padding: 100px 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}

.testimonial-card {
  background: linear-gradient(160deg, #F0FAF4, #E8F8F5);
  border: 1.5px solid rgba(46,204,113,0.15);
  border-radius: 20px;
  padding: 32px;
  transition: all var(--transition);
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(46,204,113,0.1); }

.tc-stars { margin-bottom: 16px; font-size: 1.1rem; letter-spacing: 2px; }
blockquote {
  font-size: 0.95rem;
  color: #3A5065;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
}
blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--emerald);
  opacity: 0.15;
  position: absolute;
  top: -20px;
  left: -8px;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.tc-author { display: flex; align-items: center; gap: 12px; }
.tc-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}
.a1 { background: linear-gradient(135deg, var(--emerald), var(--teal)); }
.a2 { background: linear-gradient(135deg, var(--teal), var(--dark-teal)); }
.a3 { background: linear-gradient(135deg, var(--gold), var(--amber)); }

.tc-info strong { display: block; font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--navy); }
.tc-info span { font-size: 0.82rem; color: #8A9BB0; }


/* ============================================================
   BLOG CAROUSEL
   ============================================================ */
.blog-carousel-section {
  padding: 100px 0 80px;
  background: linear-gradient(165deg, #0d1b2a 0%, #1b2838 40%, #1a2634 100%);
  position: relative;
  overflow: hidden;
}
.blog-carousel-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(46,204,113,0.08) 0%, transparent 55%),
              radial-gradient(ellipse 50% 40% at 80% 80%, rgba(26,188,156,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.blog-carousel-section .deco-blob { z-index: 0; }
.blog-carousel-section .section-tag { color: var(--emerald); border-color: rgba(46,204,113,0.35); background: rgba(46,204,113,0.1); }
.blog-carousel-section .section-title { color: #fff; }
.blog-carousel-section .section-subtitle { color: rgba(255,255,255,0.75); }

.blog-carousel-wrap {
  position: relative;
  margin-top: 48px;
  padding: 0 56px;
  z-index: 2;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
  z-index: 10;
}
.carousel-btn:hover {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 32px rgba(46,204,113,0.4);
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.blog-carousel-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 16px 0 48px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.blog-carousel-track::-webkit-scrollbar { display: none; }

.blog-carousel-card {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 300px;
  scroll-snap-align: center;
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-carousel-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 28px 64px rgba(46,204,113,0.25), 0 0 0 2px rgba(46,204,113,0.2);
}

.blog-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-carousel-card:hover .blog-card-img img { transform: scale(1.1); }
.blog-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(27,42,74,0.5), transparent);
}
.blog-card-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--emerald);
  border: 1px solid rgba(46,204,113,0.2);
}

.blog-card-body {
  padding: 24px;
}
.blog-card-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s;
}
.blog-carousel-card:hover .blog-card-body h3 { color: var(--emerald); }
.blog-card-body p {
  font-size: 0.9rem;
  color: #5A6B7E;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-arrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}
.blog-carousel-card:hover .blog-card-arrow { gap: 12px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.carousel-dots .dot:hover { background: rgba(255,255,255,0.6); }
.carousel-dots .dot.active {
  background: var(--emerald);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 2px 12px rgba(46,204,113,0.5);
}

.blog-cta-wrap { margin-top: 48px; }
.blog-cta-btn {
  padding: 16px 40px;
  font-size: 1rem;
  box-shadow: 0 8px 32px rgba(46,204,113,0.4);
}
.blog-cta-btn:hover { box-shadow: 0 14px 40px rgba(46,204,113,0.5); }

@media (max-width: 1024px) {
  .blog-carousel-card { flex: 0 0 calc(50% - 14px); min-width: 280px; }
}
@media (max-width: 768px) {
  .blog-carousel-wrap { padding: 0 48px; }
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-prev { left: 4px; }
  .carousel-next { right: 4px; }
  .blog-carousel-card { flex: 0 0 100%; min-width: 100%; }
}


/* ============================================================
   CTA / NEWSLETTER
   ============================================================ */
.cta-section {
  padding: 80px 0;
  background: var(--light);
}
.cta-card {
  background: linear-gradient(135deg, var(--emerald), var(--teal), var(--dark-teal));
  border-radius: 24px;
  padding: 56px 60px;
  display: flex;
  gap: 48px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(46,204,113,0.25);
}
.cta-text { flex: 1; color: #fff; }
.cta-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; color: #fff; }
.cta-text p { opacity: 0.88; font-size: 1rem; }

.cta-form {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  max-width: 420px;
  width: 100%;
}
.cta-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.35);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  backdrop-filter: blur(10px);
  outline: none;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.6); }
.cta-form button {
  padding: 14px 26px;
  border-radius: 50px;
  background: #fff;
  color: var(--dark-teal);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.cta-form button:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(160deg, var(--navy) 0%, #0F2B20 60%, var(--dark-navy) 100%);
  color: rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}
.footer-wave { line-height: 0; }
.footer-wave svg { width: 100%; height: 60px; display: block; }

.footer-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.g1 { width: 400px; height: 400px; background: rgba(46,204,113,0.1); top: -100px; right: -100px; }
.g2 { width: 300px; height: 300px; background: rgba(26,188,156,0.08); bottom: -50px; left: 10%; }

.footer-main { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo-img { height: 38px; margin-bottom: 20px; }
.footer-logo {
  filter: drop-shadow(0 0 6px rgba(46,204,113,0.25));
}
.footer-brand p { font-size: 0.9rem; line-height: 1.75; max-width: 280px; color: rgba(255,255,255,0.55); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(46,204,113,0.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.9);
  transition: all var(--transition);
}
.footer-social a svg { flex-shrink: 0; }
.footer-social a:hover { background: rgba(46,204,113,0.2); transform: translateY(-3px); }

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  border-radius: 2px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--emerald); padding-left: 4px; }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.85rem; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--emerald); }


/* ============================================================
   CALCULATOR PAGE BLOG SECTION (horizontal cards, distinct style)
   ============================================================ */
.calc-blog-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8fcf9 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.calc-blog-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,204,113,0.2), transparent);
}
.calc-blog-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}
.calc-blog-section .section-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border: 1px solid;
}
.calc-blog-section .section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.calc-blog-section .section-desc {
  color: #5A6B7E;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}
/* Horizontal article cards - image left, content right */
.calc-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.calc-blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(27,42,74,0.06);
  border: 1px solid rgba(46,204,113,0.1);
  transition: all 0.35s ease;
  text-decoration: none;
  color: inherit;
}
.calc-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(27,42,74,0.12);
  border-color: rgba(46,204,113,0.25);
}
.calc-blog-card .card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.calc-blog-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.calc-blog-card:hover .card-thumb img {
  transform: scale(1.06);
}
.calc-blog-card .card-thumb .card-num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calc-blog-card .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.calc-blog-card .card-body .card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.calc-blog-card:hover .card-body .card-title {
  color: var(--emerald);
}
.calc-blog-card .card-body .card-desc {
  font-size: .9rem;
  color: #5A6B7E;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.calc-blog-card .card-body .card-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.calc-blog-card:hover .card-body .card-link {
  gap: 10px;
}
.calc-blog-section .btn-wrap {
  text-align: center;
  margin-top: 40px;
}
.calc-blog-section .btn-blog {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  color: #fff;
  border: none;
  box-shadow: 0 8px 28px rgba(46,204,113,0.35);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.calc-blog-section .btn-blog:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(46,204,113,0.45);
}
/* Accent overrides for each calculator theme */
.calc-blog-section.theme-emerald .section-badge { background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.4); color: var(--emerald); }
.calc-blog-section.theme-emerald .card-num { background: rgba(46,204,113,0.9); color: #fff; }
.calc-blog-section.theme-gold .section-badge { background: rgba(243,156,18,0.12); border-color: rgba(243,156,18,0.4); color: var(--gold); }
.calc-blog-section.theme-gold .card-num { background: rgba(243,156,18,0.9); color: #1a1a0a; }
.calc-blog-section.theme-gold .card-body .card-link,
.calc-blog-section.theme-gold .calc-blog-card:hover .card-body .card-title { color: var(--gold); }
.calc-blog-section.theme-gold .btn-blog { background: linear-gradient(135deg, var(--gold), var(--amber)); box-shadow: 0 8px 28px rgba(243,156,18,0.35); }
.calc-blog-section.theme-gold .btn-blog:hover { box-shadow: 0 12px 36px rgba(243,156,18,0.45); }
.calc-blog-section.theme-teal .section-badge { background: rgba(26,188,156,0.12); border-color: rgba(26,188,156,0.4); color: var(--teal); }
.calc-blog-section.theme-teal .card-num { background: rgba(26,188,156,0.9); color: #fff; }
.calc-blog-section.theme-teal .card-body .card-link,
.calc-blog-section.theme-teal .calc-blog-card:hover .card-body .card-title { color: var(--teal); }
.calc-blog-section.theme-teal .btn-blog { background: linear-gradient(135deg, var(--teal), var(--dark-teal)); box-shadow: 0 8px 28px rgba(26,188,156,0.35); }
.calc-blog-section.theme-teal .btn-blog:hover { box-shadow: 0 12px 36px rgba(26,188,156,0.45); }
.calc-blog-section.theme-trip .section-badge { background: rgba(93,173,226,0.12); border-color: rgba(93,173,226,0.4); color: #5DADE2; }
.calc-blog-section.theme-trip .card-num { background: rgba(93,173,226,0.9); color: #fff; }
.calc-blog-section.theme-trip .card-body .card-link,
.calc-blog-section.theme-trip .calc-blog-card:hover .card-body .card-title { color: #5DADE2; }
.calc-blog-section.theme-trip .btn-blog { background: linear-gradient(135deg, #5DADE2, #3498DB); box-shadow: 0 8px 28px rgba(93,173,226,0.35); }
.calc-blog-section.theme-trip .btn-blog:hover { box-shadow: 0 12px 36px rgba(93,173,226,0.45); }
.calc-blog-section.theme-group .section-badge { background: rgba(230,126,34,0.12); border-color: rgba(230,126,34,0.4); color: #F5B041; }
.calc-blog-section.theme-group .card-num { background: rgba(230,126,34,0.9); color: #fff; }
.calc-blog-section.theme-group .card-body .card-link,
.calc-blog-section.theme-group .calc-blog-card:hover .card-body .card-title { color: #E67E22; }
.calc-blog-section.theme-group .btn-blog { background: linear-gradient(135deg, #E67E22, #D35400); box-shadow: 0 8px 28px rgba(230,126,34,0.35); }
.calc-blog-section.theme-group .btn-blog:hover { box-shadow: 0 12px 36px rgba(230,126,34,0.45); }
@media (max-width: 900px) {
  .calc-blog-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes floatCard {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%  { transform: scale(1.15); }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}
@keyframes particleFloat {
  0%   { transform: translateY(0px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-120px) rotate(360deg); opacity: 0; }
}

/* Fade-up on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: 0.05s; }
.d2 { transition-delay: 0.15s; }
.d3 { transition-delay: 0.25s; }
.d4 { transition-delay: 0.35s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid   { grid-template-columns: repeat(2, 1fr); }
  .timeline        { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-main     { padding: 48px 0 36px; }
  .hero-visual     { flex: 0 0 300px; }
}

@media (max-width: 900px) {
  .about-grid       { grid-template-columns: 1fr; }
  .about-image      { max-width: 500px; margin: 0 auto; }
  .calc-wrapper     { grid-template-columns: 1fr; }
  .testimonials-grid{ grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .cta-card         { flex-direction: column; padding: 40px 36px; gap: 28px; }
  .cta-form         { max-width: 100%; width: 100%; }
  .hero-content     { flex-direction: column; padding-top: 120px; text-align: center; }
  .hero-visual      { width: 100%; max-width: 340px; flex: none; }
  .hero-text        { max-width: 100%; align-items: center; }
  .hero-btns        { justify-content: center; }
  .hero-desc        { margin-left: auto; margin-right: auto; }
  .categories-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* Header responsive: show hamburger when nav would overflow */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; z-index: 1001; }
}

@media (max-width: 768px) {
  .header { padding: 12px 0; }
  .header-inner { padding: 0 16px; }
  .logo-img { max-height: 36px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 100vw - 40px);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(27,42,74,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 32px;
    gap: 4px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1rem;
    padding: 14px 16px;
    width: 100%;
    display: block;
    border-radius: 10px;
    box-sizing: border-box;
  }
  .nav-links li a:hover { background: rgba(46,204,113,0.15) !important; }
  .nav-links li a.btn {
    margin-top: 16px;
    text-align: center;
    justify-content: center;
  }
  .dropdown-menu {
    position: static;
    display: block;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(46,204,113,0.2);
    margin-top: 8px;
    margin-left: 0;
  }
  .dropdown-menu li a { color: rgba(255,255,255,0.8) !important; font-size: 0.9rem; padding-left: 28px; }
  .categories-grid    { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .features-grid      { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .timeline           { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .footer-grid        { grid-template-columns: 1fr 1fr; gap: 36px 20px; text-align: center; justify-items: center; }
  .footer-brand       { grid-column: 1 / -1; max-width: 100%; }
  .footer-col:nth-child(2) { grid-column: 1 / -1; text-align: center; }  /* Calculators - centered */
  .footer-col:nth-child(2) ul { display: inline-block; text-align: center; padding-left: 0; }
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) { text-align: center; padding: 0 8px; }   /* Quick Links & Legal - centered, one row */
  .footer-col:nth-child(3) ul,
  .footer-col:nth-child(4) ul { display: flex; flex-direction: column; align-items: center; padding-left: 0; }
  .footer-brand .logo-img,
  .footer-brand .footer-logo { margin: 0 auto 16px; display: block; height: 34px; }
  .footer-brand p     { margin-left: auto; margin-right: auto; }
  .footer-social      { justify-content: center; }
  .footer-col h4 { text-align: center; }
  .footer-col h4::after { left: 50%; transform: translateX(-50%); }
  .footer-col ul li   { margin-bottom: 10px; }
  .footer-col ul li a:hover { padding-left: 0; }
  .about-highlights   { grid-template-columns: 1fr; }
  .about-stats        { justify-content: center; }
  .cta-form           { flex-direction: column; }
  .mode-tabs          { flex-wrap: wrap; }
  .mode-tab           { flex: 0 0 calc(50% - 4px); }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-visual { max-width: 280px; }
  .receipt-card { width: 260px; padding: 24px 20px; }
  .float-card { display: none; }
  .trust-inner { gap: 20px; }
  .result-badges { display: none; }
  .footer-main { padding: 36px 0 28px; }
  .footer-brand .logo-img,
  .footer-brand .footer-logo { height: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 16px 0; }
  .footer-wave svg { height: 40px; }
  .calc-inputs, .calc-results { padding: 28px 20px; }
  .expense-row, .contribution-row, .participant-row { flex-direction: column; }
}