@font-face {
  font-family: "Subway Sans";
  src: url("/assets/fonts/SubwaySans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Subway Sans";
  src: url("/assets/fonts/SubwaySans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Subway Sans";
  src: url("/assets/fonts/SubwaySans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TheSansArabic";
  src: url("/assets/fonts/TheSansArabic-Bold.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark: #04180f;
  --card-bg: rgba(7, 39, 23, 0.86);
  --card-border: rgba(52, 211, 153, 0.35);
  --subway-green: #008939;
  --subway-green-hover: #00a344;
  --subway-yellow: #ffc600;
  --neon-green: #22c55e;
  --buldak-red: #e11d48;
  --error-red: #ef4444;
  --text-main: #ffffff;
  --text-muted: #d1d5db;
  --text-dim: #9ca3af;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Subway Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.app-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #03120b;
  background-image:
    radial-gradient(circle at 50% 25%, rgba(12, 54, 34, 0.55), rgba(2, 12, 7, 0.96) 75%),
    url("/assets/kv-bg.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(10px);
  transform: scale(1.04);
}

.phone-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 18px 28px;
  display: flex;
  flex-direction: column;
  background-color: #04140d;
  background-image:
    linear-gradient(180deg, rgba(2, 14, 8, 0.18) 0%, rgba(2, 14, 8, 0.05) 45%, rgba(4, 20, 13, 0.92) 615px, #04140d 685px),
    url("/assets/kv-bg.jpg");
  background-position: center top;
  background-size: 112% auto;
  background-repeat: no-repeat;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.75);
}

/* Header */
.top-util-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(4, 24, 15, 0.78);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 999px;
  padding: 2px;
  backdrop-filter: blur(6px);
}

.lang-btn {
  border: none;
  background: transparent;
  color: #d1d5db;
  font-family: "Subway Sans", "TheSansArabic", sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-btn.active {
  background: var(--subway-green);
  color: #ffffff;
}

/* RTL & Arabic Font Overrides */
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  font-family: "TheSansArabic", "Subway Sans", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .brand-lockup,
html[dir="rtl"] .kv-items-stage {
  direction: ltr;
}

html[dir="rtl"] .phone-input-row {
  direction: ltr;
}

html[dir="rtl"] .tc-chevron {
  transform: rotate(180deg);
}

.brand-header {
  text-align: center;
  margin-bottom: 10px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.subway-logo-img {
  height: 28px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.buldak-logo-img {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

.brand-x {
  color: #d1d5db;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.hero-title {
  margin: 0;
  font-size: 20.5px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.hero-title-green {
  color: #20b450;
}

/* Views */
.view {
  display: none;
  flex: 1;
  flex-direction: column;
}

.view.active {
  display: flex;
}

/* Home */
.home-subtitle {
  text-align: center;
  font-size: 15.5px;
  line-height: 1.35;
  color: #f3f4f6;
  margin: 4px 0 8px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

/* Grounded 3-item KV stage: Sub & Bottle sit deep on the table (horizon behind bottom sub, matching KV) */
.kv-items-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 32px 0 4px;
}

.kv-row-top {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  width: 100%;
}

.kv-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0;
  width: 100%;
  margin-top: -12px;
}

.kv-item {
  position: relative;
  pointer-events: none;
}

.kv-item img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
}

.kv-shadow {
  position: absolute;
  z-index: 1;
  left: 6%;
  right: 6%;
  bottom: -6px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 50%, transparent 78%);
}

/* Buldak bottle grounded left of Sub on the table, tilted slightly */
.kv-item-bottle {
  width: 17%;
  margin-bottom: 14px;
  margin-right: -4px;
  transform: rotate(-6deg);
  transform-origin: bottom center;
  z-index: 3;
}

.kv-shadow-bottle {
  bottom: -4px;
  height: 14px;
}

/* Stacked sub grounded on the table (larger, matching KV proportion) */
.kv-item-sub {
  width: 70%;
  z-index: 2;
}

.kv-shadow-sub {
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 24px;
  opacity: 0.45;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 80%);
}

/* Salad & Crispers side-by-side below (larger, matching KV proportion) */
.kv-item-salad {
  width: 50%;
  margin-left: -8px;
}

.kv-item-crispers {
  width: 52%;
  margin-right: -8px;
}

/* Glass Card */
.glass-card {
  background: var(--card-bg);
  border: 1.25px solid var(--card-border);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    inset 0 0 24px rgba(34, 197, 94, 0.08);
  backdrop-filter: blur(8px);
}

.card-heading {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.center {
  text-align: center;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 2px;
}

.step-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: #e5e7eb;
  margin-top: 2px;
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.step-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-muted);
}

.step-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 4px 0;
}

/* Buttons */
.btn-primary {
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  background: var(--subway-green);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.1s ease, opacity 0.18s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--subway-green-hover);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.99);
}

.btn-primary:disabled {
  background: #5b7c69;
  color: rgba(255, 255, 255, 0.78);
  cursor: not-allowed;
}

/* Form */
.form-card {
  margin-top: 8px;
}

.form-heading {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.18;
}

.field-group {
  margin-bottom: 12px;
}

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 5px;
}

.field-group input,
.field-group select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-group input:focus,
.field-group select:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.field-group input.input-error,
.field-group select.input-error {
  border-color: var(--error-red);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.phone-input-row {
  display: flex;
  gap: 8px;
}

.phone-input-row select {
  width: 112px;
  flex-shrink: 0;
  padding: 0 8px;
}

.phone-input-row input {
  flex: 1;
  min-width: 0;
}

.field-error {
  display: block;
  min-height: 0;
  font-size: 12px;
  font-weight: 500;
  color: #fca5a5;
  margin-top: 4px;
}

.code-error {
  color: #f87171;
  font-weight: 600;
}

.field-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.minor-notice {
  margin: 10px 0 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-muted);
}

.minor-notice strong {
  color: #ffffff;
}

.tc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.24);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tc-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tc-trigger.accepted {
  border-color: var(--neon-green);
  background: rgba(34, 197, 94, 0.14);
}

.tc-trigger-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tc-check-circle {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  color: #064e3b;
  font-size: 13px;
  font-weight: 900;
  align-items: center;
  justify-content: center;
}

.tc-trigger.accepted .tc-check-circle {
  display: inline-flex;
}

.tc-chevron {
  font-size: 20px;
  line-height: 1;
}

/* Entered Screen */
.entered-card {
  margin-top: 12px;
  text-align: center;
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(34, 197, 94, 0.16);
}

.success-badge {
  display: flex;
  justify-content: center;
  margin: 8px 0 14px;
}

.success-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid #a3e635;
  color: #a3e635;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(163, 230, 53, 0.45);
}

.entered-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
}

.entered-copy {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.45;
  color: #f3f4f6;
}

.skyline-illustration {
  margin: 14px -8px 8px;
}

.skyline-illustration img {
  display: block;
  width: 100%;
  height: auto;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.footer-links a {
  color: #f3f4f6;
  text-decoration: underline;
}

.footer-dates {
  color: var(--text-dim);
  font-size: 12px;
}

/* Modal (3. T&C) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-sheet {
  width: 100%;
  max-width: 410px;
  max-height: 84vh;
  background: #ffffff;
  color: #111827;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #064e3b;
}

.modal-close {
  border: none;
  background: transparent;
  color: #064e3b;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.modal-body {
  padding: 14px 18px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.5;
  color: #1f2937;
}

.modal-body h3 {
  margin: 14px 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #064e3b;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin: 0 0 10px;
}

.modal-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.tc-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
  cursor: pointer;
}

.tc-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #065f46;
  cursor: pointer;
}

.btn-modal-accept {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: #064e3b;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.btn-modal-accept:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
