/* ========================================
   Key2 - Investment Calculator
   Brand: Deep Green #003d2e, Cream #fcecd8
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  /* Key2 Deep Greens */
  --green-900: #002820;
  --green-800: #003d2e;
  --green-700: #004d3a;
  --green-600: #006048;
  --green-500: #1a7a40;
  --green-400: #22c55e;
  --green-300: #86efac;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;

  /* Key2 Cream/Gold */
  --cream: #fcecd8;
  --cream-90: rgba(252,236,216,0.9);
  --cream-70: rgba(252,236,216,0.7);
  --cream-50: rgba(252,236,216,0.5);
  --cream-30: rgba(252,236,216,0.3);
  --cream-15: rgba(252,236,216,0.15);
  --cream-08: rgba(252,236,216,0.08);
  --cream-04: rgba(252,236,216,0.04);
  --gold-600: #c9a84c;
  --gold-500: #d4b85c;
  --gold-400: #e0ca7e;
  --gold-300: #ecdba0;
  --gold-100: #f5ecd0;

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

  /* Gradients */
  --gradient-dark: linear-gradient(160deg, #002820 0%, #003d2e 40%, #004d3a 100%);
  --gradient-gold: linear-gradient(90deg, #c9a84c, #e0ca7e);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.25);
  --shadow-cream: 0 4px 20px rgba(252,236,216,0.15);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--green-800);
  color: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select { font: inherit; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 61, 46, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--cream-08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 44px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-text .brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-text .project {
  font-size: 11px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: var(--cream-08);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid var(--cream-15);
}

.lang-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-50);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
}

.lang-btn.active {
  background: var(--cream);
  color: var(--green-800);
}

.lang-btn:hover:not(.active) {
  color: var(--cream);
}

.btn-header-cta {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-800);
  background: var(--cream);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn-header-cta:hover {
  box-shadow: var(--shadow-cream);
  transform: translateY(-1px);
}

.btn-back {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-70);
  border: 1px solid var(--cream-15);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-back:hover {
  background: var(--cream-08);
  color: var(--cream);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: var(--green-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  opacity: 0.25;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,40,32,0.85) 0%, rgba(0,61,46,0.7) 50%, rgba(0,40,32,0.88) 100%);
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--cream-08);
  border: 1px solid var(--cream-15);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 .gold {
  color: var(--cream);
}

.hero p {
  font-size: 18px;
  color: var(--cream-70);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  color: var(--green-800);
  background: var(--cream);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-cream);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(252,236,216,0.25);
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  transition: transform var(--duration) var(--ease);
}

body[dir="rtl"] .hero-cta svg { transform: scaleX(-1); }
.hero-cta:hover svg { transform: translateX(4px); }
body[dir="rtl"] .hero-cta:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- How It Works ---------- */
.how-it-works {
  padding: 80px 0;
  position: relative;
  background: url('../images/interior.jpg') center center / cover no-repeat;
}

.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 61, 46, 0.92);
}

.how-it-works > .container { position: relative; z-index: 1; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 16px;
  color: var(--cream-50);
  max-width: 500px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 40px 28px;
  background: rgba(0, 48, 36, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-08);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--cream-15);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--cream);
  color: var(--green-800);
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--cream-50);
  line-height: 1.6;
}

.step-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 80px 0;
  background: rgba(0, 48, 36, 0.5);
}

.cta-box {
  position: relative;
  background: url('../images/building.jpg') center center / cover no-repeat;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 32, 0.88);
}

.cta-box-inner {
  position: relative;
  z-index: 1;
  padding: 60px 40px;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  font-size: 16px;
  color: var(--cream-70);
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-800);
  background: var(--cream);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-cream);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(252,236,216,0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  border: 1px solid var(--cream-30);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
}

.btn-secondary:hover {
  background: var(--cream-08);
  border-color: var(--cream-50);
}

/* ---------- Trust Section ---------- */
.trust-section {
  padding: 80px 0;
  position: relative;
  background: url('../images/lobby.jpg') center 30% / cover no-repeat;
}

.trust-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 48, 36, 0.9);
}

.trust-section > .container { position: relative; z-index: 1; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-card {
  padding: 32px 24px;
  background: rgba(0, 48, 36, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-08);
  text-align: center;
  transition: all var(--duration) var(--ease);
}

.trust-card:hover {
  border-color: var(--cream-15);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.trust-icon {
  width: 52px;
  height: 52px;
  background: var(--cream-08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.trust-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 13px;
  color: var(--cream-50);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  padding: 48px 0 24px;
  border-top: 1px solid var(--cream-08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand .brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-brand .project-name {
  font-size: 13px;
  color: var(--cream);
  font-weight: 600;
  opacity: 0.8;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--cream-08);
  border: 1px solid var(--cream-15);
  border-radius: var(--radius-full);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
}

.footer-contact:hover {
  background: var(--cream-15);
}

.footer-divider {
  height: 1px;
  background: var(--cream-08);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(252,236,216,0.4);
  max-width: 600px;
  line-height: 1.7;
}

.footer-copy {
  font-size: 12px;
  color: rgba(252,236,216,0.35);
  white-space: nowrap;
}

/* ========================================
   CALCULATOR PAGE
   ======================================== */

/* ---------- Page Title Block ---------- */
.page-title-block {
  position: relative;
  padding: 48px 0 56px;
  text-align: center;
  overflow: hidden;
  background: url('../images/building.jpg') center 40% / cover no-repeat;
}

.page-title-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 32, 0.88);
}

.page-title-block::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--green-800);
  border-radius: 40px 40px 0 0;
}

.page-title-block > .container { position: relative; z-index: 1; }

.page-title-block h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-title-block p {
  font-size: 16px;
  color: var(--cream-70);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Calculator Container ---------- */
.calc-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ---------- Unit Type Section ---------- */
.calc-section {
  margin-bottom: 32px;
}

.calc-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 16px;
}

.unit-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.unit-tab {
  padding: 20px 16px;
  background: rgba(0, 48, 36, 0.5);
  border: 2px solid var(--cream-08);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.unit-tab:hover {
  border-color: var(--cream-30);
}

.unit-tab.active {
  border-color: var(--cream);
  background: var(--cream-08);
  box-shadow: 0 0 0 3px rgba(252,236,216,0.1);
}

.unit-tab .tab-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.unit-tab .tab-sub {
  font-size: 12px;
  color: var(--cream-50);
}

.unit-tab.active .tab-label {
  color: var(--cream);
}

/* ---------- Input Fields ---------- */
.input-card {
  background: rgba(0, 48, 36, 0.5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-08);
  padding: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.form-label label {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream-70);
}

.form-label .hint {
  font-size: 12px;
  color: var(--cream-50);
}

.form-input-wrap {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  background: rgba(0, 40, 32, 0.6);
  border: 1.5px solid var(--cream-15);
  border-radius: var(--radius-md);
  color: var(--white);
  transition: all var(--duration) var(--ease);
  -moz-appearance: textfield;
}

.form-input::-webkit-outer-spin-button,
.form-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-input:focus {
  outline: none;
  border-color: var(--cream);
  box-shadow: 0 0 0 3px rgba(252,236,216,0.1);
  background: rgba(0, 40, 32, 0.8);
}

.form-input.warning {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

.input-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-50);
  pointer-events: none;
}

body[dir="rtl"] .input-suffix {
  right: auto;
  left: 16px;
}

.form-helper {
  font-size: 12px;
  color: var(--cream-50);
  margin-top: 6px;
  line-height: 1.5;
}

.form-feedback {
  font-size: 12px;
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 4px;
  line-height: 1.5;
}

.form-feedback.show {
  display: flex;
}

.form-feedback.warning {
  color: #fbbf24;
}

.form-feedback.error {
  color: #fca5a5;
}

/* Holding Period */
.holding-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.holding-btn {
  padding: 12px 8px;
  background: rgba(0, 48, 36, 0.5);
  border: 1.5px solid var(--cream-15);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--cream-70);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.holding-btn:hover {
  border-color: var(--cream-30);
}

.holding-btn.active {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--green-800);
}

/* ---------- Input Notes ---------- */
.input-notes {
  background: var(--cream-04);
  border: 1px solid var(--cream-15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.input-notes ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-notes li {
  font-size: 13px;
  color: var(--cream-70);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}

.input-notes li::before {
  content: '\2022';
  color: var(--cream);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- Calculate Button ---------- */
.calc-btn-wrap {
  text-align: center;
  margin-bottom: 48px;
}

.btn-calculate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  font-size: 17px;
  font-weight: 700;
  color: var(--green-800);
  background: var(--cream);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-cream);
  min-width: 240px;
  justify-content: center;
}

.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(252,236,216,0.25);
}

.btn-calculate:active {
  transform: translateY(0);
}

.btn-calculate svg {
  width: 20px;
  height: 20px;
}

/* ---------- Results Section ---------- */
.results-section {
  display: none;
  animation: fadeInUp 0.6s var(--ease);
}

.results-section.visible {
  display: block;
}

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

.results-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 24px;
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.result-card {
  background: rgba(0, 48, 36, 0.5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-08);
  padding: 24px;
  text-align: center;
  transition: all var(--duration) var(--ease);
}

.result-card:hover {
  transform: translateY(-2px);
  border-color: var(--cream-15);
}

.result-card.highlight {
  border-color: var(--cream-30);
  background: var(--cream-04);
}

.result-card.full-width {
  grid-column: 1 / -1;
}

.result-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.result-card.highlight .result-value {
  color: var(--cream);
}

.result-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream-50);
}

.result-label {
  font-size: 13px;
  color: var(--cream-50);
  margin-top: 8px;
}

/* ---------- Charts Section ---------- */
.charts-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.chart-card {
  background: rgba(0, 48, 36, 0.5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-08);
  padding: 24px;
}

.chart-card.full-width {
  grid-column: 1 / -1;
}

.chart-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--cream-70);
  margin-bottom: 20px;
  text-align: center;
}

.chart-container {
  position: relative;
  width: 100%;
}

/* Donut Chart */
.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.donut-svg {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cream-70);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Bar/Line Charts */
.bar-chart, .line-chart {
  width: 100%;
  height: 200px;
  position: relative;
}

.bar-chart-svg, .line-chart-svg {
  width: 100%;
  height: 100%;
}

/* ---------- Investment Summary ---------- */
.summary-section {
  margin-top: 40px;
}

.summary-card {
  background: rgba(0, 48, 36, 0.5);
  border-radius: var(--radius-xl);
  border: 1px solid var(--cream-08);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cream);
}

.summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.summary-badge.strong {
  background: rgba(134,239,172,0.12);
  color: #86efac;
  border: 1px solid rgba(134,239,172,0.3);
}

.summary-badge.balanced {
  background: rgba(252,236,216,0.1);
  color: var(--cream);
  border: 1px solid var(--cream-30);
}

.summary-badge.conservative {
  background: rgba(252,165,165,0.1);
  color: #fca5a5;
  border: 1px solid rgba(252,165,165,0.3);
}

.summary-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}

.summary-text {
  font-size: 14px;
  color: var(--cream-70);
  line-height: 1.8;
  margin-bottom: 12px;
}

.summary-text:last-of-type {
  margin-bottom: 0;
}

.summary-disclaimer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-08);
  font-size: 12px;
  color: var(--cream-50);
  font-style: italic;
  line-height: 1.6;
}

/* ---------- Action Buttons ---------- */
.action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn-back-calc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream-70);
  background: transparent;
  border: 1.5px solid var(--cream-30);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
}

.btn-back-calc:hover {
  border-color: var(--cream);
  color: var(--cream);
  background: var(--cream-08);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: #25d366;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
}

/* ---------- Page Disclaimer ---------- */
.page-disclaimer {
  margin-top: 48px;
  padding: 24px;
  background: var(--cream-04);
  border: 1px solid var(--cream-08);
  border-radius: var(--radius-md);
  text-align: center;
}

.page-disclaimer p {
  font-size: 12px;
  color: var(--cream-50);
  line-height: 1.7;
}

/* ========================================
   ANIMATIONS
   ======================================== */

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }

@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.count-animate {
  animation: countUp 0.5s var(--ease) forwards;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-actions { gap: 8px; }

  .logo-img { height: 32px; }

  .btn-header-cta span { display: none; }

  .hero { padding: 48px 0 64px; }
  .hero p { font-size: 16px; }

  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .step-card { padding: 28px 24px; }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; }

  .cta-box-inner { padding: 40px 24px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }

  /* Calculator */
  .page-title-block { padding: 32px 0 40px; }
  .unit-tabs { gap: 8px; }
  .unit-tab { padding: 14px 12px; }
  .input-card { padding: 24px 20px; }
  .holding-options { grid-template-columns: repeat(2, 1fr); }
  .btn-calculate { width: 100%; }
  .results-grid { grid-template-columns: 1fr; }
  .result-value { font-size: 24px; }
  .charts-grid { grid-template-columns: 1fr; }
  .summary-card { padding: 28px 20px; }

  .action-buttons { flex-direction: column; }
  .btn-back-calc, .btn-whatsapp { width: 100%; justify-content: center; }

  .donut-wrap { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 28px; }
  .logo-text .brand { font-size: 14px; }
  .lang-btn { padding: 5px 10px; font-size: 12px; }
  .unit-tab .tab-label { font-size: 14px; }
  .result-value { font-size: 22px; }
  .form-input { padding: 12px 14px; font-size: 14px; }
}

/* ========================================
   RTL ADJUSTMENTS
   ======================================== */

body[dir="rtl"] .form-label { flex-direction: row-reverse; }
body[dir="rtl"] .form-feedback { flex-direction: row-reverse; }
body[dir="rtl"] .input-notes li { flex-direction: row-reverse; text-align: right; }
body[dir="rtl"] .legend-item { flex-direction: row-reverse; }
body[dir="rtl"] .btn-back svg,
body[dir="rtl"] .btn-back-calc svg { transform: scaleX(-1); }

/* Print Styles */
@media print {
  .site-header, .site-footer, .btn-calculate, .action-buttons, .lang-switch { display: none !important; }
  .results-section { display: block !important; }
  body { background: white; color: #111; }
}
