/* ==========================================================================
   HONDA MOTORCYCLE PAYMENT SIMULATION SYSTEM
   Brand Aesthetics: Honda Official (Pure White, Signature Red #DA291C, Dark Slate)
   Target Devices: Desktop, Tablet, Android & iPhone Smartphones
   ========================================================================== */

:root {
  /* Brand Color Palette (Honda Racing Blue Theme) */
  --honda-red: #0b3a7a;
  --honda-red-dark: #061c3b;
  --honda-red-light: #ebf1f8;
  --honda-red-glow: rgba(11, 58, 122, 0.25);
  
  --bg-main: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-dark-card: #1E293B;

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  --border-color: #E2E8F0;
  --border-focus: #0b3a7a;

  --success-green: #16A34A;
  --success-light: #F0FDF4;
  --amber-gold: #D97706;
  --amber-light: #FFFBEB;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-red: 0 8px 24px rgba(23, 23, 23, 0.25);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  min-width: fit-content;
}

body {
  background-color: var(--bg-soft);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: fit-content;
}

main.app-container {
  flex: 1 0 auto;
}

html {
  background-color: #0D1527; /* Match footer color for scroll bounce */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

input, select, button {
  font-family: inherit;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header Announcement Bar */
.top-bar {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 3px solid var(--honda-red);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(23, 23, 23, 0.2);
  color: #A3A3A3;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
}

.blink-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #22c55e;
  animation: blink-anim 1.5s infinite ease-in-out;
  margin-right: 8px;
}

@keyframes blink-anim {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #22c55e; }
  50% { opacity: 0.3; box-shadow: 0 0 2px #22c55e; }
}

.top-bar-text {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

/* Header / Navbar */
.main-header {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  position: relative;
}

.header-center-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hrc-logo {
  height: 65px;
  width: auto;
  opacity: 1;
}

@media (max-width: 768px) {
  .header-center-logo {
    display: none;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.honda-wing-icon {
  width: 44px;
  height: 44px;
  background: var(--honda-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-red);
}

.honda-wing-svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--honda-red);
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nss-logo-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #F3F4F6;
  border: 1.5px solid rgba(23, 23, 23, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 220px;
}

.nss-logo-icon {
  background: var(--honda-red);
  color: white;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(23, 23, 23, 0.3);
  flex-shrink: 0;
}

.nss-logo-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nss-title {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--honda-red);
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nss-subtitle {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.sales-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--honda-red);
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sales-info {
  display: flex;
  flex-direction: column;
}

.sales-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.sales-role {
  font-size: 0.675rem;
  color: var(--honda-red);
  font-weight: 700;
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: white;
  padding: 2.5rem 0 3rem 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(23, 23, 23, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-title span {
  color: white;
}

.hero-desc {
  font-size: 1rem;
  color: #F8FAFC;
  max-width: 650px;
  margin: 0 auto;
}

/* Main Section Card Container */
.app-container {
  margin-top: -1.75rem;
  position: relative;
  z-index: 10;
}

/* Motor Selection Bar */
.motor-selector-card {
  background: var(--bg-main);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 1.75rem;
}

.selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.selector-title {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.category-pills {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.cat-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.cat-pill:hover, .cat-pill.active {
  background: var(--honda-red);
  color: white;
  border-color: var(--honda-red);
  box-shadow: var(--shadow-red);
}

.motor-select-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.25rem;
  align-items: center;
}

@media (max-width: 768px) {
  .motor-select-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.775rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-select, .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  outline: none;
}

.form-select:focus, .form-input:focus {
  border-color: var(--honda-red);
  box-shadow: 0 0 0 4px var(--honda-red-glow);
}

.selected-motor-preview {
  background: linear-gradient(135deg, #F3F4F6 0%, #FAFAFA 100%);
  border: 1.5px solid #D4D4D4;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.selected-motor-info {
  flex: 1;
  min-width: 0;
}

.selected-motor-info h4 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.motor-category-tag {
  display: inline-block;
  font-size: 0.675rem;
  font-weight: 800;
  background: var(--honda-red);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.selected-motor-price {
  text-align: right;
  flex-shrink: 0;
}

.price-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.price-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--honda-red);
  white-space: nowrap;
}

/* Simulation Mode Tabs */
.tab-navigation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .tab-navigation {
    grid-template-columns: 1fr;
  }
}

.nav-tab {
  background: var(--bg-main);
  border: 2px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: var(--transition);
  text-align: left;
}

.nav-tab:hover {
  border-color: #D4D4D4;
  background: var(--honda-red-light);
}

.nav-tab.active {
  background: var(--honda-red);
  border-color: var(--honda-red);
  color: white;
  box-shadow: var(--shadow-red);
}

.tab-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: var(--honda-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-tab.active .tab-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.tab-text {
  display: flex;
  flex-direction: column;
}

.tab-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.tab-desc {
  font-size: 0.725rem;
  opacity: 0.8;
  font-weight: 500;
}

/* Simulation Panels Layout */
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-out forwards;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.simulation-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .simulation-layout {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: var(--bg-main);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.panel-title-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1.5px solid var(--border-color);
}

.panel-title-bar h3 {
  font-size: 1.1rem;
  font-weight: 900;
}

/* Quick Chips & Range Inputs */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chip-btn {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1.5px solid var(--border-color);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn:hover, .chip-btn.active {
  background: var(--honda-red);
  color: white;
  border-color: var(--honda-red);
}

/* Range Slider */
.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E2E8F0;
  outline: none;
  margin: 0.75rem 0;
  accent-color: var(--honda-red);
}

/* Tenor Cards Grid (1 Thn, 2 Thn, 3 Thn) */
.tenor-selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.tenor-card {
  background: var(--bg-soft);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.tenor-card:hover {
  border-color: #D4D4D4;
}

.tenor-card.active {
  background: var(--honda-red);
  border-color: var(--honda-red);
  color: white;
  box-shadow: var(--shadow-red);
}

.tenor-card .tenor-year {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.2;
}

.tenor-card .tenor-months {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.8;
}

/* Results Display Box (Dark Sleek Theme for Contrast) */
.results-card {
  background: var(--bg-dark);
  color: white;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid #334155;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1025px) {
  .results-card {
    position: sticky;
    top: 100px;
  }
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #334155;
  margin-bottom: 1.25rem;
}

.results-header-title {
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94A3B8;
}

.results-bike-tag {
  background: rgba(23, 23, 23, 0.25);
  color: #A3A3A3;
  border: 1px solid rgba(23, 23, 23, 0.4);
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
}

.primary-result-box {
  background: linear-gradient(135deg, rgba(23, 23, 23, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1.5px solid rgba(23, 23, 23, 0.5);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.primary-result-label {
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #A3A3A3;
  letter-spacing: 0.05em;
}

.primary-result-amount {
  font-size: 2.25rem;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin: 0.25rem 0;
}

.primary-result-sub {
  font-size: 0.75rem;
  color: #CBD5E1;
}

/* Itemized Breakdown Table */
.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}

.breakdown-table tr {
  border-bottom: 1px dashed #334155;
}

.breakdown-table tr:last-child {
  border-bottom: none;
}

.breakdown-table td {
  padding: 0.6rem 0;
  font-size: 0.825rem;
}

.breakdown-table td:first-child {
  color: #94A3B8;
  font-weight: 500;
}

.breakdown-table td:last-child {
  text-align: right;
  font-weight: 800;
  color: white;
}

.breakdown-table tr.highlight-row td {
  font-size: 0.95rem;
  font-weight: 900;
  color: #4ADE80;
  padding-top: 0.85rem;
}

/* Side-by-Side Tenor Comparison Grid */
.comparison-matrix {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #334155;
}

.matrix-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.matrix-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.5rem;
  text-align: center;
}

.matrix-card.active-matrix {
  border-color: var(--honda-red);
  background: rgba(23, 23, 23, 0.15);
}

.matrix-tenor {
  font-size: 0.725rem;
  font-weight: 800;
  color: #A3A3A3;
}

.matrix-installment {
  font-size: 0.875rem;
  font-weight: 900;
  color: white;
  margin: 0.2rem 0;
}

.matrix-total {
  font-size: 0.65rem;
  color: #94A3B8;
}

/* Action Buttons */
.btn-action-primary {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--success-green);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-action-primary:hover {
  background: #15803D;
  transform: translateY(-2px);
}

.btn-action-secondary {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.825rem;
  font-weight: 700;
  border: 1px solid #475569;
  cursor: pointer;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-action-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Custom Simulation Recommendation Cards */
.recommendation-card {
  background: var(--honda-red-light);
  border: 1.5px solid #D4D4D4;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1rem;
}

.recommend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--honda-red);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Price List Table Section */
.pricelist-section {
  margin-top: 3rem;
}

.section-title-box {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1.75rem auto;
}

.section-title-box h2 {
  font-size: 1.75rem;
  font-weight: 900;
}

.section-title-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.table-wrapper {
  background: var(--bg-main);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.table-controls {
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.table-search-input {
  max-width: 320px;
}

.honda-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.honda-table th {
  background: var(--bg-dark);
  color: white;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.honda-table td {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
}

.honda-table tr:hover {
  background: var(--honda-red-light);
}

.btn-table-calc {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--honda-red);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-table-calc:hover {
  background: var(--honda-red-dark);
}

/* Professional License & Corporate Footer */
.corporate-footer {
  margin-top: 3.5rem;
  background: #0D1527;
  color: white;
  padding: 3.5rem 0 4rem 0;
  border-top: 4px solid var(--honda-red);
}

@media (max-width: 768px) {
  .corporate-footer {
    padding-bottom: 6rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-text {
  font-size: 1.15rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.footer-desc {
  font-size: 0.85rem;
  color: #CBD5E1;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-left: 3px solid var(--honda-red);
  padding-left: 0.6rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: #CBD5E1;
  transition: var(--transition);
  text-decoration: none;
}

.footer-links a:hover {
  color: #A3A3A3;
  padding-left: 0.25rem;
}

.ig-logo-image-link {
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 12px;
}

.ig-logo-image-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.ig-logo-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.email-report-btn {
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 12px;
}

.email-report-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.email-logo-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

/* Tenor Cards */
.tenor-card {
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid rgba(71, 85, 105, 0.5);
  border-radius: 0.5rem;
  padding: 0.5rem 0.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}
.tenor-card:hover { border-color: rgba(100,116,139,0.8); }
.tenor-card-highlight { border-color: rgba(204,0,0,0.4); background: rgba(204,0,0,0.07); }
.tenor-header { font-size: 10px; color: #cbd5e1; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.25rem; }
.tenor-label { font-size: 10px; color: #cbd5e1; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.tenor-card-highlight .tenor-label { color: var(--honda-red); }
.tenor-amount { font-size: 12px; font-weight: 900; color: white; }
.tenor-card-highlight .tenor-amount { color: #fca5a5; }
.tenor-count { font-size: 9px; color: #94a3b8; margin-top: 0.1rem; font-weight: 700; }
.tenor-total-label { font-size: 9px; color: #64748b; margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.tenor-total-value { font-size: 10px; font-weight: 900; color: #93c5fd; margin-top: 0.1rem; }

/* Professional License Box */
.license-container {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  margin-top: 1rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.45rem 1.35rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}

.license-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 10px #22C55E;
}

.license-badge-text {
  font-size: 0.75rem;
  font-weight: 800;
  color: #4ADE80;
  letter-spacing: 0.04em;
}

.copyright-statement {
  font-size: 1.1rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.legal-disclaimer {
  font-size: 0.775rem;
  color: #94A3B8;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Image Box in Selected Motor Preview */
.selected-motor-image-box {
  width: 90px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.25rem;
  border: 1px solid rgba(23, 23, 23, 0.15);
  box-shadow: var(--shadow-sm);
}

.selected-motor-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.category-pills::-webkit-scrollbar {
  display: none;
}

/* Sticky Bottom Action Bar for Mobile (Android & iPhone) */
.mobile-sticky-bar {
  display: none;
}


.toast-msg {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  background: var(--bg-dark);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--success-green);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.toast-msg.show {
  display: flex;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   COMPREHENSIVE MOBILE OPTIMIZATION (iPhone & Android)
   ========================================================================== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  body {
    padding-bottom: calc(85px + env(safe-area-inset-bottom));
  }

  .form-select, .form-input {
    font-size: 16px !important; /* Prevents unwanted auto-zoom on iOS Safari */
    padding: 0.65rem 0.85rem;
  }

  /* Header & Announcement Bar */
  .top-bar-content {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
    font-size: 0.7rem;
  }

  .header-inner {
    padding: 0.6rem 0;
  }

  .brand-logo {
    gap: 0.5rem;
  }

  .honda-wing-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
  }

  .honda-wing-svg {
    width: 22px;
    height: 22px;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    font-size: 0.55rem;
  }

  .nss-logo-badge {
    padding: 0.3rem 0.55rem;
    gap: 0.4rem;
    border-radius: var(--radius-sm);
  }

  .nss-logo-icon {
    font-size: 0.75rem;
    padding: 0.15rem 0.35rem;
  }

  .nss-title {
    font-size: 0.65rem;
  }

  .nss-subtitle {
    font-size: 0.525rem;
  }

  /* Hero Banner */
  .hero-banner {
    padding: 1.5rem 0 2rem 0;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }

  .hero-desc {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  /* App Container & Selector Card */
  .app-container {
    margin-top: -1.25rem;
  }

  .motor-selector-card {
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
  }

  .selector-title {
    font-size: 0.95rem;
  }

  .cat-pill {
    padding: 0.35rem 0.75rem;
    font-size: 0.725rem;
  }

  .selected-motor-preview {
    padding: 0.85rem;
    border-radius: var(--radius-md);
    gap: 0.75rem;
  }

  .selected-motor-info h4 {
    font-size: 1rem;
  }

  .price-value {
    font-size: 1.2rem;
  }

  /* Tab Navigation Mobile Compact Grid */
  .tab-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
    margin-bottom: 1.25rem;
  }

  .nav-tab {
    padding: 0.5rem 0.25rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    border-radius: var(--radius-md);
  }

  .nav-tab .tab-desc {
    display: none; /* Hide desc on mobile to save vertical space */
  }

  .nav-tab .tab-title {
    font-size: 0.7rem; /* Smaller font to prevent wrapping */
    line-height: 1.1;
    margin-bottom: 0;
  }

  .tab-icon {
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
  }

  .tab-title {
    font-size: 0.725rem;
    line-height: 1.15;
    text-align: center;
  }

  .tab-desc {
    display: none;
  }

  /* Simulation Panels & Results Cards */
  .panel-card, .results-card {
    padding: 1.15rem 0.9rem;
    border-radius: var(--radius-lg);
  }

  .panel-title-bar h3 {
    font-size: 0.975rem;
  }

  .primary-result-box {
    padding: 1rem 0.75rem;
    border-radius: var(--radius-md);
  }

  .primary-result-amount {
    font-size: 1.65rem;
  }

  .primary-result-label {
    font-size: 0.7rem;
  }

  .breakdown-table td {
    padding: 0.5rem 0;
    font-size: 0.775rem;
  }

  .breakdown-table tr.highlight-row td {
    font-size: 0.85rem;
  }

  /* Tenor Cards & Comparison Matrix */
  .tenor-selection-grid {
    gap: 0.35rem;
  }

  .tenor-card {
    padding: 0.5rem 0.25rem;
  }

  .tenor-card .tenor-year {
    font-size: 0.825rem;
  }

  .tenor-card .tenor-months {
    font-size: 0.65rem;
  }

  .matrix-grid {
    gap: 0.35rem;
  }

  .matrix-card {
    padding: 0.5rem 0.25rem;
  }

  .matrix-tenor {
    font-size: 0.65rem;
  }

  .matrix-installment {
    font-size: 0.775rem;
  }

  .matrix-total {
    font-size: 0.6rem;
  }

  /* Price List Section */
  .pricelist-section {
    margin-top: 2rem;
  }

  .section-title-box h2 {
    font-size: 1.35rem;
  }

  .table-controls {
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
  }

  .table-search-input {
    max-width: 100%;
  }

  .honda-table th, .honda-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.75rem;
  }

  .btn-table-calc {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }

  /* Mobile Sticky Action Bar */
  .mobile-sticky-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom)) 1rem;
    border-top: 2px solid var(--honda-red);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
    z-index: 999;
  }

  .sticky-summary {
    display: flex;
    flex-direction: column;
  }

  .sticky-bike-name {
    font-size: 0.75rem;
    font-weight: 800;
    color: #A3A3A3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }

  .sticky-price {
    font-size: 0.95rem;
    font-weight: 900;
    color: white;
  }

  .btn-sticky-wa {
    font-size: 0.775rem;
    padding: 0.5rem 0.85rem;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
  }

  /* Hide motor image box on mobile - save horizontal space */
  .selected-motor-image-box {
    display: none;
  }

  /* Selector header stacks vertically on mobile */
  .selector-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  /* Category pills fill full width with scroll */
  .category-pills {
    width: 100%;
    padding-bottom: 0.4rem;
  }

  /* Chip grid wraps on mobile */
  .chip-grid {
    gap: 0.35rem;
  }

  .chip-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.725rem;
  }

  /* Footer grid stacks on mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-logo-text {
    font-size: 0.95rem;
  }

  .license-container {
    padding: 1.25rem 1rem;
  }

  .copyright-statement {
    font-size: 0.95rem;
  }

  .legal-disclaimer {
    font-size: 0.7rem;
  }
}

/* Very small screens < 375px (older Android phones) */
@media (max-width: 374px) {
  .tab-navigation {
    grid-template-columns: repeat(3, 1fr);
  }

  .tab-title {
    font-size: 0.65rem;
  }

  .nss-logo-badge {
    max-width: 160px;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .primary-result-amount {
    font-size: 1.45rem;
  }

  .cat-pill {
    padding: 0.3rem 0.55rem;
    font-size: 0.675rem;
  }
}

/* Leasing Grid (Angsuran Kredit) */
.leasing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .leasing-grid {
    gap: 0.5rem;
  }
}

.leasing-btn {
  background: var(--bg-soft);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  height: 85px;
}

.leasing-btn:hover {
  border-color: #D4D4D4;
  background: var(--honda-red-light);
}

.leasing-btn.active {
  background: rgba(23, 23, 23, 0.05);
  border-color: var(--honda-red);
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.15);
}

.leasing-logo {
  max-width: 95%;
  max-height: 65px;
  object-fit: contain;
}

.logo-fif {
  width: 110px;
  max-height: 60px;
}

.logo-oto {
  width: 100px;
  max-height: 60px;
}

  .table-search-input {
    max-width: 100%;
  }

  .honda-table th, .honda-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.75rem;
  }

  .btn-table-calc {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }

  /* Mobile Sticky Action Bar */
  .mobile-sticky-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom)) 1rem;
    border-top: 2px solid var(--honda-red);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
    z-index: 999;
  }

  .sticky-summary {
    display: flex;
    flex-direction: column;
  }

  .sticky-bike-name {
    font-size: 0.75rem;
    font-weight: 800;
    color: #A3A3A3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }

  .sticky-price {
    font-size: 0.95rem;
    font-weight: 900;
    color: white;
  }

  .btn-sticky-wa {
    font-size: 0.775rem;
    padding: 0.5rem 0.85rem;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
  }

  /* Hide motor image box on mobile - save horizontal space */
  .selected-motor-image-box {
    display: none;
  }

  /* Selector header stacks vertically on mobile */
  .selector-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  /* Category pills fill full width with scroll */
  .category-pills {
    width: 100%;
    padding-bottom: 0.4rem;
  }

  /* Chip grid wraps on mobile */
  .chip-grid {
    gap: 0.35rem;
  }

  .chip-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.725rem;
  }

  /* Footer grid stacks on mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-logo-text {
    font-size: 0.95rem;
  }

  .license-container {
    padding: 1.25rem 1rem;
  }

  .copyright-statement {
    font-size: 0.95rem;
  }

  .legal-disclaimer {
    font-size: 0.7rem;
  }
}

/* Very small screens < 375px (older Android phones) */
@media (max-width: 374px) {
  .tab-navigation {
    grid-template-columns: repeat(3, 1fr);
  }

  .tab-title {
    font-size: 0.65rem;
  }

  .nss-logo-badge {
    max-width: 160px;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .primary-result-amount {
    font-size: 1.45rem;
  }

  .cat-pill {
    padding: 0.3rem 0.55rem;
    font-size: 0.675rem;
  }
}

/* Leasing Grid (Angsuran Kredit) */
.leasing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .leasing-grid {
    gap: 0.5rem;
  }
}

.leasing-btn {
  background: var(--bg-soft);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  height: 85px;
}

.leasing-btn:hover {
  border-color: #D4D4D4;
  background: var(--honda-red-light);
}

.leasing-btn.active {
  background: rgba(23, 23, 23, 0.05);
  border-color: var(--honda-red);
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.15);
}

.leasing-logo {
  max-width: 95%;
  max-height: 65px;
  object-fit: contain;
}

.logo-fif {
  width: 110px;
  max-height: 60px;
}

.logo-oto {
  width: 100px;
  max-height: 60px;
}

.logo-bca {
  width: 110px;
  max-height: 45px;
}

 /* Calculator Styles */
.calc-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.05s ease-out, filter 0.05s ease-out, background-color 0.05s ease-out !important;
}
.calc-btn:hover {
  filter: brightness(0.95);
}
.calc-btn:active {
  filter: brightness(0.85);
  transform: scale(0.95);
}
.calc-btn-light:hover {
  filter: brightness(0.95);
}
.calc-btn-light:active {
  filter: brightness(0.85);
}
.calc-btn-orange:hover {
  filter: brightness(1.1);
}
.calc-btn-orange:active {
  filter: brightness(1.2);
}