:root {
  /* Blue palette */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;

  /* Amber accent (giữ màu vàng cho giá + logo) */
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  /* Backgrounds */
  --page-bg: #f0f4ff;
  /* nền tổng – xanh nhạt tinh tế */
  --card-bg: #ffffff;
  /* card trắng */
  --card-bg2: #f8faff;
  /* card lồng bên trong */
  --hero-bg: #ffffff;

  /* Borders */
  --border: rgba(59, 130, 246, 0.18);
  --border-strong: rgba(59, 130, 246, 0.35);
  --border-light: rgba(59, 130, 246, 0.10);

  /* Text */
  --text-primary: #0f172a;
  /* gần đen, dễ đọc */
  --text-secondary: #475569;
  /* xám xanh */
  --text-muted: #94a3b8;
  /* muted */

  /* Gradients */
  --gradient-blue: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
  --gradient-accent: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(59, 130, 246, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(59, 130, 246, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 40px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.20);
  --shadow-btn: 0 4px 15px rgba(37, 99, 235, 0.35);

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

  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Be Vietnam Pro', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--blue-50);
}

::-webkit-scrollbar-thumb {
  background: var(--blue-400);
  border-radius: 3px;
}

/* ===== PARTICLES ===== */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.banana-flake {
  position: absolute;
  top: -10%;
  user-select: none;
  z-index: 0;
  animation-name: fall, sway;
  animation-iteration-count: infinite;
  animation-timing-function: linear, ease-in-out;
}

@keyframes fall {
  0% {
    top: -10%;
  }

  100% {
    top: 110%;
  }
}

@keyframes sway {
  0% {
    transform: translateX(0px) rotate(0deg);
  }

  50% {
    transform: translateX(20px) rotate(180deg);
  }

  100% {
    transform: translateX(-20px) rotate(360deg);
  }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition);
  padding: 0 2rem;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-icon img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.logo-accent {
  background: #d97706;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--blue-600);
}

.nav-cta {
  background: var(--gradient-blue);
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
  box-shadow: var(--shadow-btn);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

/* ===== SECTION COMMONS ===== */
section {
  position: relative;
  z-index: 1;
  padding: 5.5rem 2rem;
  scroll-margin-top: 85px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-divider {
  border: 0;
  height: 1.5px;
  background: linear-gradient(to right, transparent, var(--blue-200), transparent);
  width: 70%;
  margin: 1rem auto;
  opacity: 0.8;
}

.section-tag {
  display: inline-block;
  background: var(--blue-50);
  border: 1.5px solid var(--blue-200);
  color: var(--blue-600);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.32rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.section-desc {
  color: var(--text-secondary);
  margin-top: 0.6rem;
  font-size: 1rem;
}

.gradient-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
  position: relative;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: radial-gradient(ellipse 75% 55% at 65% 35%, rgba(59, 130, 246, 0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  flex: 1;
  z-index: 1;
  animation: fadeInUp 0.75s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-50);
  border: 1.5px solid var(--blue-200);
  color: var(--blue-600);
  padding: 0.38rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.3rem;
  letter-spacing: -0.02em;
  color: #d97706;
}

.hero-title .gradient-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.92em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 2.3rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 38px;
  background: var(--border-strong);
}

.hero-image-wrap {
  flex: 1;
  position: relative;
  z-index: 1;
  animation: fadeInRight 0.85s ease 0.2s both;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  filter: blur(55px);
  animation: pulse 4.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.hero-image {
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 2px solid var(--blue-100);
}

.float-badge {
  position: absolute;
  background: #fff;
  border: 1.5px solid var(--blue-200);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  z-index: 2;
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  animation: floatBadge 3.2s ease-in-out infinite;
}

.float-badge-1 {
  top: 22px;
  left: -12px;
  animation-delay: 0s;
}

.float-badge-2 {
  bottom: 42px;
  right: -12px;
  animation-delay: 1.6s;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font);
}

.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: #fff;
  color: var(--blue-600);
  border: 2px solid var(--blue-300);
}

.btn-outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-500);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.btn-full {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  font-size: 1rem;
}

/* ===== FEATURES ===== */
.features {
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: var(--blue-300);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card--highlight {
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.3rem;
  margin-bottom: 1.1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ===== MENU ===== */
.menu-section {
  max-width: calc(1200px + 4rem);
  margin: 0 auto;
  padding-top: 1.5rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}

.menu-card {
  background: var(--card-bg2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.05);
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--blue-200);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
}

.menu-card--featured {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15), var(--shadow-md);
}

.popular-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gradient-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  z-index: 2;
}

.menu-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--blue-200);
  color: var(--blue-600);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
  z-index: 2;
}

.menu-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  border-bottom: 1px solid var(--border-light);
}

.menu-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.menu-card:hover .menu-img-wrap img {
  transform: scale(1.05);
}

.menu-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-info h3 {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.menu-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
  flex: 1;
}

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-price {
  font-size: 1.25rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-add {
  background: var(--blue-50);
  border: 1.5px solid var(--blue-200);
  color: var(--blue-600);
  font-weight: 700;
  font-size: 0.83rem;
  padding: 0.42rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-add:hover {
  background: var(--gradient-blue);
  color: #fff;
  border-color: transparent;
  transform: scale(1.04);
}

/* ===== ORDER SECTION ===== */
.order-section {
  max-width: calc(1200px + 4rem);
  margin: 0 auto;
  padding-top: 3.5rem;
}

.order-layout {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.order-form-card,
.payment-panel,
.success-panel {
  background: var(--card-bg);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.4rem;
  box-shadow: var(--shadow-md);
  animation: panelIn 0.38s ease;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step indicator */
.form-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.8rem;
}

.step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-50);
  border: 2px solid var(--blue-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.step.active {
  border-color: var(--blue-500);
  background: var(--blue-50);
  color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.step.done {
  background: var(--gradient-blue);
  border-color: transparent;
  color: #fff;
}

.step-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: var(--blue-100);
}

.form-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-primary);
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Form elements */
.form-group {
  margin-bottom: 1.1rem;
}

.address-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.btn-address-pick {
  border: 1.5px solid var(--blue-300);
  background: var(--blue-50);
  color: var(--blue-700);
  font-family: var(--font);
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 0 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-address-pick:hover {
  background: var(--gradient-blue);
  color: #fff;
  border-color: transparent;
}

.ship-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ship-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.86rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--blue-200);
  background: var(--card-bg2);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}

.ship-option:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
  transform: translateY(-1px);
}

.ship-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ship-option span {
  flex: 1;
}

.ship-option::after {
  content: 'Chọn';
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1.5px solid var(--blue-200);
  border-radius: var(--radius-full);
  padding: 0.24rem 0.58rem;
  background: #fff;
  pointer-events: none;
}

.ship-option.is-active {
  border-color: var(--blue-500);
  background: linear-gradient(145deg, #eff6ff, #ffffff);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
  color: var(--blue-700);
}

.ship-option.is-active::after {
  content: 'Đang chọn';
  color: #fff;
  border-color: transparent;
  background: var(--gradient-blue);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.82rem 1rem;
  background: var(--card-bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group select {
  cursor: pointer;
  background-color: var(--card-bg2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Trạng thái lỗi */
.form-group input.field-error,
.form-group select.field-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Trạng thái hợp lệ */
.form-group input.field-ok {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Hint dưới ô nhập */
.field-hint {
  display: block;
  font-size: 0.76rem;
  margin-top: 0.3rem;
  font-weight: 500;
  min-height: 16px;
  transition: var(--transition);
}

.field-hint.error {
  color: #dc2626;
}

.field-hint.ok {
  color: #059669;
}

.form-group textarea {
  height: 78px;
  resize: none;
}

.form-group small a {
  color: var(--blue-500);
  font-size: 0.78rem;
}

.quantity-group {
  display: flex;
  flex-direction: column;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: transparent;
  width: fit-content;
}

.qty-btn {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  color: var(--blue-600);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-weight: 700;
}

.qty-delete {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #ef4444;
  margin-left: 0.5rem;
}

.qty-delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

.qty-btn:hover {
  background: var(--gradient-blue);
  color: #fff;
  border-color: transparent;
}

#qty-display {
  font-weight: 800;
  font-size: 1.05rem;
  min-width: 20px;
  text-align: center;
  color: var(--text-primary);
}

.cart-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.cart-empty-text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  border: 1px dashed var(--blue-200);
}

.cart-item-name {
  font-weight: 700;
  color: var(--blue-700);
  font-size: 0.95rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.order-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--blue-50);
  border: 1.5px solid var(--blue-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-top: 1.4rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.total-price {
  font-size: 1.75rem;
  font-weight: 900;
  background: #000000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== PAYMENT PANEL ===== */
.payment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.payment-header h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
}

.back-btn {
  background: var(--blue-50);
  border: 1.5px solid var(--blue-200);
  color: var(--blue-600);
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.83rem;
  font-family: var(--font);
  font-weight: 600;
  transition: var(--transition);
}

.back-btn:hover {
  background: var(--blue-100);
  border-color: var(--blue-400);
}

.order-summary-card {
  background: var(--card-bg2);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.38rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.summary-total span:first-child {
  font-weight: 800;
  color: var(--text-primary);
}

.summary-total span:last-child {
  font-size: 1.18rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qr-container {
  text-align: center;
  margin-bottom: 1.4rem;
}

.qr-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.qr-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border: 1.5px solid var(--blue-100);
  min-width: 258px;
  min-height: 258px;
}

#qr-image {
  width: 236px;
  height: 236px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.qr-shimmer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.shimmer-box {
  width: 218px;
  height: 218px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #e2eaf8 25%, #eef2fb 50%, #e2eaf8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.qr-shimmer p {
  color: var(--text-muted);
  font-size: 0.83rem;
}

.qr-bank-info {
  background: var(--card-bg2);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  text-align: left;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.32rem 0;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-row strong {
  color: var(--text-primary);
}

.amount-highlight {
  font-size: 1.08rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.note-highlight {
  color: var(--blue-600) !important;
  font-weight: 700 !important;
}

.payment-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  color: #374151;
  margin-bottom: 0.7rem;
}

/* ===== VIETQR COUNTDOWN ===== */
.qr-countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.countdown-ring {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-ring svg {
  position: absolute;
  width: 68px;
  height: 68px;
}

#countdown-circle {
  transition: stroke-dashoffset 1s linear;
}

#countdown-text {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blue-600);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.02em;
}

.countdown-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.countdown-ring.countdown-warning #countdown-circle {
  stroke: #f59e0b;
}

.countdown-ring.countdown-warning #countdown-text {
  color: #f59e0b;
}

.countdown-ring.countdown-expired #countdown-circle {
  stroke: #ef4444;
}

.countdown-ring.countdown-expired #countdown-text {
  color: #ef4444;
}

.note-icon {
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

/* ===== SUCCESS ===== */
.success-panel {
  text-align: center;
}

.success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0.5rem 0.5rem 1.5rem;
}

.success-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  animation: popIn 0.55s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.success-icon-circle i {
  font-size: 1.9rem;
  color: #fff;
  font-weight: 900;
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.success-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.success-oid-card {
  background: var(--card-bg2);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 0.9rem 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  max-width: 300px;
}

.soid-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.soid-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: 0.5px;
}

.success-info-card {
  background: var(--card-bg2);
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  width: 100%;
  max-width: 300px;
  margin-bottom: 1.2rem;
}

.sinfo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
  gap: 0.5rem;
}

.sinfo-row:last-child {
  border-bottom: none;
}

.sinfo-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.sinfo-label i {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sinfo-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  font-size: 0.82rem;
  word-break: break-word;
}

.sinfo-total {
  padding-top: 0.6rem;
  margin-top: 0.1rem;
  border-top: 1.5px solid var(--border-light);
  border-bottom: none !important;
}

.sinfo-total .sinfo-label {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.82rem;
}

.sinfo-total-value {
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-btn-retry {
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 1.5px solid var(--border-light);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.success-btn-retry:hover {
  border-color: var(--blue-400);
  color: var(--blue-600);
  background: var(--blue-50);
}

/* ===== PROOF SECTION ===== */
.proof-section {
  background: var(--card-bg);
  border-top: 1.5px solid var(--border-light);
  border-bottom: 1.5px solid var(--border-light);
}

.proof-section .section-header {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.8rem;
}

.proof-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1.3rem;
}

.proof-card {
  background: var(--card-bg2);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.proof-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue-300);
  box-shadow: var(--shadow-lg);
}

.proof-card--accent {
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}

.proof-icon {
  font-size: 1.9rem;
  margin-bottom: 0.65rem;
}

.proof-number {
  font-size: 2.1rem;
  font-weight: 900;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2rem;
}

.proof-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.proof-change {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 700;
  background: #d1fae5;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* ===== HOW IT WORKS ===== */
.how-section {
  max-width: 1100px;
  margin: 0 auto;
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.flow-node {
  background: var(--card-bg);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2.2rem;
  text-align: center;
  flex: 1;
  min-width: 210px;
  max-width: 270px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.flow-node:hover {
  transform: translateY(-5px);
  border-color: var(--blue-300);
  box-shadow: var(--shadow-lg);
}

.flow-node--fb {
  border-color: rgba(66, 103, 178, 0.25);
  background: rgba(66, 103, 178, 0.04);
}

.flow-node--web {
  border-color: var(--blue-200);
  background: var(--blue-50);
}

.flow-node--tele {
  border-color: rgba(36, 165, 219, 0.25);
  background: rgba(36, 165, 219, 0.04);
}

.flow-icon {
  font-size: 2.3rem;
  margin-bottom: 0.65rem;
}

.flow-name {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.flow-desc {
  color: var(--text-secondary);
  font-size: 0.79rem;
  line-height: 1.5;
}

.flow-arrow {
  font-size: 1.7rem;
  color: var(--blue-400);
  flex-shrink: 0;
  animation: arrowPulse 1.6s ease-in-out infinite;
}

@keyframes arrowPulse {

  0%,
  100% {
    transform: translateX(0);
    opacity: 0.55;
  }

  50% {
    transform: translateX(5px);
    opacity: 1;
  }
}

/* ===== CONTACT ===== */
.contact-section {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3.2rem 2.4rem;
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.contact-card>p {
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.7rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition);
}

.contact-link--fb {
  background: rgba(66, 103, 178, 0.08);
  border: 1.5px solid rgba(66, 103, 178, 0.25);
  color: #3b5998;
}

.contact-link--fb:hover {
  background: rgba(66, 103, 178, 0.16);
  transform: translateY(-2px);
}

.contact-link--tele {
  background: rgba(36, 165, 219, 0.08);
  border: 1.5px solid rgba(36, 165, 219, 0.25);
  color: #229ED9;
}

.contact-link--tele:hover {
  background: rgba(36, 165, 219, 0.16);
  transform: translateY(-2px);
}

.contact-addr {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
  padding: 1.2rem 1rem;
  border-top: 1.5px solid var(--border-light);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.83rem;
  background: var(--card-bg);
}

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

.footer-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.footer p {
  margin-bottom: 0.15rem;
}

.footer-tech {
  color: var(--blue-500);
  font-weight: 600;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 85px;
  right: 2rem;
  bottom: auto;
  left: auto;
  transform: translateX(120%);
  background: var(--text-primary);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.38s;
  z-index: 9999;
  opacity: 0;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.toast-error {
  background: #dc2626;
}

.toast.toast-ok {
  background: #059669;
}

/* ===== ADDRESS MODAL ===== */
.address-modal {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.address-modal-inner {
  width: 100%;
  max-width: 560px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem;
  max-height: 86vh;
  overflow-y: auto;
}

.address-modal-inner h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.address-modal-note {
  font-size: 0.82rem;
  color: var(--blue-600);
  margin-bottom: 1rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
}

.address-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

/* ===== CONFIG FAB ===== */
.config-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 200;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.config-fab:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
  transform: rotate(45deg);
}

.config-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.28s ease;
}

.config-modal[style*="display:none"] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.config-inner {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.config-inner h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.config-note {
  font-size: 0.8rem;
  color: var(--blue-600);
  margin-bottom: 1.4rem;
  padding: 0.45rem 0.8rem;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--blue-100);
}

.config-sub {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.83rem;
  margin-bottom: 0.7rem;
  margin-top: 0.2rem;
}

.config-inner hr {
  border: none;
  border-top: 1.5px solid var(--border-light);
  margin: 1.3rem 0 1rem;
}

/* ===== FLOATING ACTION BUTTONS ===== */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.float-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  background: var(--card-bg);
}

.float-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: pulse-ring 2s infinite;
  z-index: -1;
}

.float-btn:hover {
  transform: translateY(-5px) scale(1.05);
}

/* Tooltip for phone */
.float-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(17, 24, 39, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Call Button */
.float-call {
  background: #10b981;
}

.float-call svg {
  fill: white;
  width: 24px;
  height: 24px;
}

.float-call::before {
  border-color: #10b981;
}

/* Zalo Button */
.float-zalo {
  background: white;
  border: 1px solid #e5e7eb;
}

.float-zalo::before {
  border-color: #0068ff;
}

.float-zalo span {
  color: #0068ff;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}

/* FB Button */
.float-fb {
  background: #1877f2;
}

.float-fb svg {
  fill: white;
  width: 26px;
  height: 26px;
}

.float-fb::before {
  border-color: #1877f2;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .float-tooltip {
    display: none;
  }

  .floating-contact {
    bottom: 20px;
    right: 20px;
    transform: scale(0.85);
    transform-origin: bottom right;
  }
}


.config-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 95px 1rem 3rem;
    gap: 2rem;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    max-width: 320px;
  }

  .nav-links {
    display: none;
  }

  .navbar {
    padding: 0 1rem;
  }

  .menu-section {
    padding: 2.2rem 1rem;
  }

  section {
    padding: 3.5rem 1rem;
  }

  .flow-diagram {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-node {
    max-width: 100%;
  }

  .flow-arrow {
    text-align: center;
    transform: rotate(90deg);
    animation: none;
  }

  .address-row {
    grid-template-columns: 1fr;
  }

  .btn-address-pick {
    padding: 0.72rem 0.95rem;
  }
}

@media (max-width: 480px) {

  .order-form-card,
  .payment-panel,
  .success-panel {
    padding: 1.4rem;
  }

  .config-inner {
    padding: 1.4rem;
  }

  .toast {
    font-size: 0.8rem;
    padding: 0.7rem 1.2rem;
    white-space: normal;
    text-align: center;
    max-width: 90vw;
  }
}

/* ===== NEW GRID LAYOUT STRUCUTRE ===== */
.grid-options {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid-options .ship-option {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 1rem 0.5rem;
  gap: 8px;
}

.grid-options .ship-option i {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.grid-options .ship-option::after {
  display: none !important;
}

.order-summary-row {
  display: flex;
  gap: 15px;
  align-items: stretch;
  margin-top: 1.5rem;
}

.order-summary-row .box-total {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
}

.order-summary-row .label-tiny {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.order-summary-row .total-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.order-summary-row .btn-primary {
  flex: 1;
  margin: 0;
}

/* ===== VIETQR PAYMENT - 2 COLUMN LAYOUT ===== */
.vietqr-page {
  padding: 0;
  overflow: hidden;
  display: block;
}

.vietqr-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.vietqr-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.vietqr-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

/* LEFT: Order Info */
.vietqr-left-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.vietqr-order-card {
  background: var(--card-bg2);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 0.8rem 1rem;
}

.voc-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.83rem;
  gap: 0.5rem;
}

.voc-row:last-child {
  border-bottom: none;
}

.voc-row > span {
  color: var(--text-muted);
  flex-shrink: 0;
}

.voc-row > strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.voc-addr > span {
  flex-shrink: 0;
}

.voc-addr > strong {
  font-size: 0.8rem;
}

.voc-total {
  padding-top: 0.6rem;
  margin-top: 0.1rem;
  border-top: 1.5px solid var(--border-light);
}

.voc-total > span {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.voc-total > strong {
  font-size: 1.05rem;
  font-weight: 900;
  background: #000000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* RIGHT: QR Section */
.vietqr-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.vietqr-right-inner {
  background: var(--card-bg2);
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  padding: 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.vietqr-qr-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.vietqr-qr-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-light);
}

.vietqr-bank-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vietqr-bank-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.vietqr-bank-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.vietqr-bank-sub {
  font-size: 0.65rem;
  color: var(--blue-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vietqr-qr-amount {
  text-align: center;
  padding: 0.4rem 0;
}

.vqr-amount-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.vqr-amount-value {
  font-size: 1.6rem;
  font-weight: 900;
  background: #000000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.vietqr-qr-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.vietqr-qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 0.75rem;
  border: 1.5px solid var(--blue-100);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
  width: 220px;
  height: 220px;
}

.vietqr-qr-wrap .qr-shimmer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 200px;
  height: 200px;
}

.vietqr-qr-wrap .shimmer-box {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e2eaf8 25%, #eef2fb 50%, #e2eaf8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.vietqr-qr-wrap .qr-shimmer p {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.vietqr-qr-wrap img,
.vietqr-qr-wrap #qr-image {
  display: block;
  width: 200px !important;
  height: 200px !important;
  object-fit: contain;
  border-radius: 10px;
}

/* Countdown inline beside QR */
.vietqr-countdown-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.vietqr-countdown-inline .vietqr-countdown-ring {
  position: relative;
  width: 52px;
  height: 52px;
}

.vietqr-countdown-inline .vietqr-countdown-ring svg {
  position: absolute;
  inset: 0;
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.vietqr-countdown-inline .track-circle {
  fill: none;
  stroke: var(--blue-100);
  stroke-width: 4;
}

.vietqr-countdown-inline .progress-circle {
  fill: none;
  stroke: var(--blue-500);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.5s ease;
}

.vietqr-countdown-inline .countdown-time {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: var(--blue-600);
}

.vietqr-countdown-inline .countdown-warning .progress-circle { stroke: #f59e0b; }
.vietqr-countdown-inline .countdown-warning .countdown-time { color: #f59e0b; }
.vietqr-countdown-inline .countdown-expired .progress-circle { stroke: #ef4444; }
.vietqr-countdown-inline .countdown-expired .countdown-time { color: #ef4444; }

.vietqr-transfer-info {
  width: 100%;
  background: var(--card-bg);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
}

.vti-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.28rem 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.78rem;
  gap: 0.4rem;
}

.vti-row:last-child {
  border-bottom: none;
}

.vti-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.vti-label i {
  font-size: 0.7rem;
}

.vti-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  font-size: 0.78rem;
}

.vti-note {
  color: var(--blue-600);
  font-weight: 800;
  font-size: 0.78rem;
  background: var(--blue-50);
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
}

/* PAYMENT NOTE */
.vietqr-payment-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  color: #166534;
  line-height: 1.45;
  width: 100%;
}

.vietqr-payment-note i {
  color: #22c55e;
  font-size: 0.85rem;
  margin-top: 0.05rem;
  flex-shrink: 0;
}

/* BUTTON CONFIRM */
.vietqr-btn-confirm {
  width: 100%;
  padding: 0.88rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.vietqr-btn-confirm.green {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.vietqr-btn-confirm.green:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.vietqr-btn-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* MOBILE RESPONSIVE */
@media (max-width: 640px) {
  .vietqr-body {
    grid-template-columns: 1fr;
  }
  .vietqr-left {
    order: 2;
  }
  .vietqr-right {
    order: 1;
  }
}

/* ===== EXPIRED MODAL ===== */
.vietqr-expired-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: vietqr-fadeIn 0.25s ease;
}

@keyframes vietqr-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vietqr-expired-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  animation: vietqr-slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

@keyframes vietqr-slideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.vietqr-expired-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 36px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.vietqr-expired-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.vietqr-expired-card p {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 28px;
}

.vietqr-expired-card p strong {
  color: #334155;
}

.vietqr-expired-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.vietqr-btn-retry {
  width: 100%;
  padding: 0.88rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 0.93rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.vietqr-btn-retry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.vietqr-btn-home {
  width: 100%;
  padding: 0.75rem;
  border-radius: 50px;
  background: #fff;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 1.5px solid #e2e8f0;
  transition: all 0.2s;
}

.vietqr-btn-home:hover {
  border-color: #cbd5e1;
  color: #334155;
}

/* ===== RESULT PAGES (vietqr/vnpay/momo return) ===== */
.site-header {
  background: var(--card-bg);
  border-bottom: 1.5px solid var(--border-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner,
.footer-inner {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.logo strong {
  color: var(--accent);
}

.result-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.result-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.8rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: slideUp 0.4s ease;
}

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

.result-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  font-size: 2rem;
}

.result-icon i {
  color: #fff;
}

.result-success {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.result-pending {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.result-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

.result-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.result-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.4rem;
}

.result-order-id {
  background: var(--card-bg2);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.roi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roi-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.result-amount {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.06), rgba(16, 185, 129, 0.06));
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ramount-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ramount-value {
  font-size: 1.6rem;
  font-weight: 900;
  background: #000000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.result-note {
  background: var(--blue-50);
  border: 1.5px solid var(--blue-200);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.rnote-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rnote-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--blue-700);
  font-family: 'JetBrains Mono', monospace;
}

.result-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.83rem;
}

.result-info-row:last-child {
  border-bottom: none;
}

.rinfo-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rinfo-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.result-error-box {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.re-label {
  font-size: 0.72rem;
  color: #fca5a5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.re-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #dc2626;
}

.result-divider {
  height: 1px;
  background: var(--border-light);
  margin: 1.4rem 0;
}

.site-footer {
  text-align: center;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}