/* ==========================================================================
   PIYAY TRANSFER — HIGH-END FINTECH DESIGN SYSTEM
   Ultra-Proportional, Responsive, Institutional Grade (Wise/Stripe standard)
   ========================================================================== */

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

:root {
  /* Primary Fintech Emerald Palette */
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --primary-500: #10b981;
  --primary-600: #059669;
  --primary-700: #047857;
  --primary-800: #065f46;
  --primary-900: #064e3b;

  /* Clean Neutrals */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-subtle-hover: #e2e8f0;

  --border-subtle: #edf2f7;
  --border-default: #e2e8f0;
  --border-focus: #10b981;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --text-faint: #94a3b8;

  /* Accents */
  --whatsapp: #15803d;
  --whatsapp-hover: #166534;
  --badge-blue: #0284c7;
  --badge-purple: #7c3aed;
  --badge-gold: #d97706;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.02);
  --shadow-floating: 0 16px 36px -8px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-dropdown: 0 12px 30px -4px rgba(15, 23, 42, 0.12);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   NAVIGATION BAR (Glassmorphism & Language Switcher)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-600);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-600);
  border-radius: var(--radius-pill);
  transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Minimalist Language Switcher Pill */
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-switcher-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-700);
}

.lang-switcher-btn .lang-active {
  color: var(--primary-700);
  font-weight: 800;
}

.lang-switcher-btn .lang-sep {
  color: var(--text-faint);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-600);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

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

.btn-outline {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary-500);
  color: var(--primary-700);
  background: var(--primary-50);
}

.btn-action-green {
  background: var(--whatsapp);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(21, 128, 61, 0.2);
}

.btn-action-green:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(21, 128, 61, 0.3);
}

.menu-toggle {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
  color: var(--text-main);
}

/* ==========================================================================
   OFF-CANVAS LATERAL MOBILE DRAWER (RIGHT SIDE SLIDE-IN)
   ========================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 16px;
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
}

.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.mobile-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-drawer-close:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-link-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav-link-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(16, 185, 129, 0.08);
  color: var(--primary-800);
}

.mobile-nav-link:hover .mobile-nav-link-icon,
.mobile-nav-link.active .mobile-nav-link-icon {
  background: var(--primary-500);
  color: #ffffff;
}

.drawer-arrow {
  color: var(--text-faint);
  font-size: 1.1rem;
}

.mobile-drawer-bottom {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer-bottom .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
}

.mobile-drawer-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

/* Badge Tags */
.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.badge-tag.emerald {
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
}

.badge-tag.blue {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-tag.purple {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.badge-tag.gold {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* ==========================================================================
   HERO SECTION & FLOATING SIMULATOR
   ========================================================================== */
.hero-section {
  padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 76px) 0;
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.03) 0%, transparent 40%);
}

.hero-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero-intro-col {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.5vw, 22px);
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw + 0.5rem, 3.1rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-main);
  word-break: break-word;
}

.hero-main-title .highlight {
  background: linear-gradient(135deg, var(--primary-600) 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead-text {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 520px;
}

/* Stat Strip */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-default);
  width: 100%;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-val {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.hero-stat-label {
  font-size: clamp(0.7rem, 1.2vw, 0.78rem);
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* ==========================================================================
   NEXT-GEN FLOATING CALCULATOR (PROPORTIONAL FINTECH STYLE)
   ========================================================================== */
.calculator-box {
  background: var(--bg-surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-xl);
  padding: clamp(18px, 3vw, 26px);
  box-shadow: var(--shadow-floating);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.calc-title-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calc-title-header h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Corridor Selection */
.calc-corridor-row {
  margin-bottom: 12px;
}

.calc-corridor-select {
  width: 100%;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-corridor-select:focus {
  border-color: var(--primary-500);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

/* Double Symmetrical Input Group */
.calc-exchange-inputs {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 8px;
  margin-bottom: 10px;
}

.calc-input-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  transition: all var(--transition-fast);
}

.calc-input-card:focus-within {
  background: #ffffff;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.calc-input-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.calc-input-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.calc-input-sublabel {
  font-size: 0.7rem;
  color: var(--text-faint);
}

.calc-input-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calc-big-number {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--text-main);
  width: 100%;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.calc-big-number::placeholder {
  color: var(--text-faint);
}

.calc-currency-select {
  background: #ffffff;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.calc-currency-select:hover {
  border-color: var(--primary-500);
  color: var(--primary-700);
}

/* Centered Swap Button */
.calc-swap-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.calc-swap-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.calc-swap-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-700);
  transform: scale(1.08) rotate(180deg);
}

/* Quick Amount Chips (Uniform Grid) */
.calc-chips-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 12px;
  width: 100%;
}

.calc-chip-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 6px 2px;
  font-size: clamp(0.68rem, 1.8vw, 0.76rem);
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calc-chip-btn:hover {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: #ffffff;
}

/* Rate Bar */
.calc-rate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: clamp(0.72rem, 2vw, 0.78rem);
  color: #166534;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.calc-live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary-500);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseRateDot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseRateDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ==========================================================================
   LIVE CALCULATOR BREAKDOWN CARD (High-Tech Financial Ledger Tape)
   ========================================================================== */
.calc-breakdown-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.calc-breakdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  margin-bottom: 10px;
  width: 100%;
}

.calc-breakdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--primary-700);
  background: var(--primary-50);
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--primary-100);
  white-space: nowrap;
  flex-shrink: 0;
}

.calc-breakdown-subtitle {
  font-size: 0.7rem;
  color: var(--text-faint);
  line-height: 1.2;
}

.calc-tape-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.calc-tape-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.calc-tape-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.calc-step-badge {
  display: inline-flex;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-soft);
  font-size: 0.62rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  flex-shrink: 0;
}

.calc-op-pill {
  display: inline-flex;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calc-op-pill.minus {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.calc-op-pill.equal {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-default);
}

.calc-op-pill.mult {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.calc-op-pill.check {
  background: #f0fdf4;
  color: var(--primary-700);
  border: 1px solid #bbf7d0;
}

.calc-tape-label {
  color: var(--text-muted);
  font-size: clamp(0.72rem, 2.2vw, 0.78rem);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calc-fee-percent-tag {
  font-size: 0.7rem;
  color: #dc2626;
  font-weight: 700;
  flex-shrink: 0;
}

.calc-tape-value {
  font-weight: 700;
  color: var(--text-main);
  font-size: clamp(0.75rem, 2.4vw, 0.82rem);
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.calc-tape-value.fee-val {
  color: #dc2626;
}

.calc-tape-value.rate-val {
  color: var(--primary-700);
}

.calc-tape-separator {
  height: 1px;
  background: var(--border-default);
  margin: 3px 0 5px 0;
  width: 100%;
}

.tape-final-row {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  margin-top: 2px;
  width: 100%;
  box-sizing: border-box;
}

.calc-tape-final-title {
  font-size: clamp(0.72rem, 2.4vw, 0.8rem);
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.2;
}

.calc-tape-final-sub {
  font-size: 0.66rem;
  color: var(--primary-700);
  line-height: 1.2;
  margin-top: 1px;
}

.calc-tape-final-amount {
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

.calc-tape-big-num {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 900;
  color: var(--primary-800);
}

.calc-tape-curr {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--primary-800);
  margin-left: 2px;
}

/* Formula Footer */
.calc-formula-footer {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px dashed var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.calc-formula-tag {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-soft);
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.calc-formula-code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: clamp(0.64rem, 1.8vw, 0.72rem);
  font-weight: 600;
  color: var(--primary-800);
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  overflow-x: auto;
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}

/* Actions Row */
.calc-actions-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.calc-actions-row .btn-action-green {
  flex: 1;
  padding: 11px 16px;
  font-size: 0.9rem;
}

.calc-actions-row .btn-outline {
  flex: 0 0 auto;
  padding: 11px 14px;
  font-size: 0.82rem;
}

.calc-footnote {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-soft);
}

/* ==========================================================================
   SERVICES SECTION (Minimalist Cards)
   ========================================================================== */
.services-section, .trust-section {
  padding: clamp(40px, 6vw, 64px) 0;
}

.section-head-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(24px, 4vw, 36px) auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-600);
  margin-bottom: 6px;
}

.section-title-lg {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: clamp(0.88rem, 1.5vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Services Grid */
.services-responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

@media (min-width: 1024px) {
  .home-preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.service-card-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-300);
  box-shadow: var(--shadow-card);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.service-order-badge {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-700);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  align-items: center;
  justify-content: center;
}

.service-icon-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 3px;
}

.service-subheading {
  font-size: 0.78rem;
  color: var(--primary-600);
  font-weight: 600;
  margin-bottom: 8px;
}

.service-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.service-bottom-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  font-size: 0.78rem;
}

.fee-badge-pill {
  font-weight: 700;
  color: var(--primary-700);
  background: var(--primary-50);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.time-text {
  color: var(--text-soft);
  font-size: 0.76rem;
}

.section-view-more-box {
  text-align: center;
  margin-top: 28px;
}

/* ==========================================================================
   ANNOUNCEMENTS SLIDER
   ========================================================================== */
.announcements-slider-section {
  padding: 12px 0 28px 0;
}

.slider-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 2.5vw, 24px);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.slider-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.slider-more-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-600);
}

.slider-viewport {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.slide-item {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
}

.slide-item-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.slide-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide-text-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.slide-text-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.slide-btn {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  color: var(--primary-700);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.slider-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: 12px;
}

.slider-dots-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-dot-item {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-default);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot-item.active {
  background: var(--primary-500);
  width: 20px;
  border-radius: var(--radius-pill);
}

.slider-nav-btns {
  display: flex;
  gap: 6px;
}

.slider-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ==========================================================================
   WHY CHOOSE US (4 TRUST PILLARS) & CONTACT BANNER
   ========================================================================== */
.trust-section {
  padding: clamp(40px, 6vw, 64px) 0;
}

.trust-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

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

@media (max-width: 576px) {
  .trust-four-grid {
    grid-template-columns: 1fr;
  }
}

.trust-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.trust-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-300);
  box-shadow: var(--shadow-card);
}

.trust-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.trust-item-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.trust-item-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-banner-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-card);
}

.contact-banner-text h3,
.contact-banner-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.contact-banner-text p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0b1120;
  color: #ffffff;
  padding: 48px 0 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-four-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col-header {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #e2e8f0;
  margin-bottom: 14px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  color: #94a3b8;
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.footer-subline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 0.8rem;
  color: #64748b;
}

.admin-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
}

.admin-panel-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease;
}

.toast.success {
  border-color: var(--primary-500);
}

.toast.error {
  border-color: #ef4444;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (PERFECT MOBILE / TABLET / DESKTOP)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-four-cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-nav, .header-actions .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-logo img {
    height: 26px;
  }

  .hero-section {
    padding: 20px 0 32px 0;
  }

  .hero-main-title {
    font-size: 1.85rem;
    line-height: 1.15;
  }

  .hero-lead-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-stats-row {
    gap: 6px;
    padding-top: 10px;
  }

  .hero-stat-val {
    font-size: 1.15rem;
  }

  .hero-stat-label {
    font-size: 0.68rem;
  }

  .calculator-box {
    padding: 14px 12px;
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .calc-title-header h2 {
    font-size: 1.05rem;
  }

  .calc-input-card {
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .calc-input-flex-row {
    gap: 6px;
    width: 100%;
    min-width: 0;
  }

  .calc-big-number {
    font-size: 1.25rem;
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
  }

  .calc-currency-select {
    padding: 4px 6px;
    font-size: 0.82rem;
    flex-shrink: 0;
    max-width: 82px;
  }

  .calc-chips-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    margin-bottom: 10px;
    width: 100%;
  }

  .calc-chip-btn {
    padding: 4px 1px;
    font-size: 0.65rem;
    min-width: 0;
  }

  .calc-rate-bar {
    padding: 6px 8px;
    font-size: 0.72rem;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .calc-breakdown-card {
    padding: 10px 8px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .calc-breakdown-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-bottom: 6px;
    margin-bottom: 8px;
  }

  .calc-breakdown-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
  }

  .calc-breakdown-subtitle {
    font-size: 0.66rem;
  }

  .calc-tape-item {
    gap: 4px;
    width: 100%;
    min-width: 0;
  }

  .calc-tape-left {
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .calc-tape-label {
    font-size: 0.72rem;
  }

  .calc-fee-percent-tag {
    font-size: 0.68rem;
  }

  .calc-tape-value {
    font-size: 0.75rem;
    flex-shrink: 0;
    text-align: right;
  }

  .tape-final-row {
    padding: 6px 8px;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
  }

  .calc-tape-final-title {
    font-size: 0.74rem;
  }

  .calc-tape-final-sub {
    font-size: 0.64rem;
  }

  .calc-tape-big-num {
    font-size: 1.15rem;
  }

  .calc-tape-curr {
    font-size: 0.82rem;
  }

  .calc-formula-footer {
    gap: 4px;
    margin-top: 6px;
    padding-top: 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .calc-formula-code {
    font-size: 0.64rem;
    padding: 2px 4px;
  }

  .calc-actions-row {
    flex-direction: column;
    gap: 8px;
  }

  .calc-actions-row .btn-action-green,
  .calc-actions-row .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
  }

  .slide-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .slide-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .contact-banner-box {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
  }

  .footer-four-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-subline {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
