/* ============ DẦN HOUSE - MAIN STYLES ============ */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --boy: #4A90D9; --boy-light: #6DB3F8; --boy-dark: #2E6AAF;
  --girl: #E88FCB; --girl-light: #F5B8E4; --girl-dark: #C964A8;
  --gold: #FFD700; --gold-dark: #E6B800;
  --bg-dark: #0F0A1E; --bg-card: rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.08); --glass-border: rgba(255,255,255,0.12);
  --text: #FFFFFF; --text-muted: rgba(255,255,255,0.6);
  --success: #4ADE80; --danger: #F87171;
  --radius: 16px; --radius-sm: 10px;
  --font: 'Quicksand', sans-serif; --font-display: 'Baloo 2', cursive;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font); background: var(--bg-dark); color: var(--text);
  line-height: 1.6; overflow-x: hidden;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(74,144,217,0.08) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, rgba(232,143,203,0.08) 0%, transparent 50%),
                    radial-gradient(ellipse at 50% 80%, rgba(255,215,0,0.05) 0%, transparent 50%);
}

#particleBg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,10,30,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border); padding: 12px 0;
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(15,10,30,0.95); padding: 8px 0; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 45px; border-radius: 50%; }
.nav-logo span { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; background: linear-gradient(135deg, var(--gold), #FFA500); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--text-muted); text-decoration: none; padding: 8px 16px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--glass); }
.nav-cta { background: linear-gradient(135deg, var(--gold), #FFA500) !important; color: #1a1a2e !important; font-weight: 700; }
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(255,215,0,0.4); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* Mobile menu */
.mobile-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; background: rgba(15,10,30,0.98); backdrop-filter: blur(20px); padding: 20px; z-index: 999; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--glass-border); }
.mobile-menu.open { display: flex; }
.mobile-link { color: var(--text-muted); text-decoration: none; padding: 14px 20px; border-radius: var(--radius-sm); font-weight: 600; transition: var(--transition); }
.mobile-link:hover { background: var(--glass); color: var(--text); }
.mobile-link.cta { background: linear-gradient(135deg, var(--gold), #FFA500); color: #1a1a2e; text-align: center; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative; z-index: 1;
  padding: 100px 20px 60px; max-width: 1200px; margin: 0 auto; gap: 40px;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-block; padding: 8px 20px; background: var(--glass);
  border: 1px solid var(--glass-border); border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; color: var(--gold); margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}
.hero-title { font-family: var(--font-display); line-height: 1.1; margin-bottom: 24px; }
.title-line { display: block; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
.gradient-text { background: linear-gradient(135deg, var(--gold), #FF6B6B, var(--girl), var(--boy)); background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradientShift 4s ease infinite; }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); max-width: 500px; margin-bottom: 32px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
  border-radius: 50px; font-family: var(--font); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary { background: linear-gradient(135deg, var(--gold), #FFA500); color: #1a1a2e; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,215,0,0.4); }
.btn-outline { background: transparent; border: 2px solid var(--glass-border); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-glow { animation: glow 2s ease-in-out infinite alternate; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { font-size: 1.3em; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Hero Stats */
.hero-stats { display: flex; gap: 40px; }
.stat { text-align: center; }
.stat-number { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Hero Visual - Jar */
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; }
.jar-preview { position: relative; width: 320px; height: 420px; }
.jar-svg { width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(255,215,0,0.2)); animation: jarFloat 4s ease-in-out infinite; }
.jar-glow { position: absolute; inset: 10%; background: radial-gradient(circle, rgba(255,215,0,0.15), transparent 70%); border-radius: 50%; animation: pulse 3s ease-in-out infinite; }
.floating-beads { position: absolute; inset: 0; }
.float-bead {
  position: absolute; font-size: 2rem;
  left: var(--x); top: var(--y);
  animation: floatBead 3s ease-in-out infinite; animation-delay: var(--delay);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* ============ SECTIONS ============ */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge { display: inline-block; padding: 6px 18px; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--gold); margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ============ HOW IT WORKS ============ */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 36px 28px; text-align: center; position: relative; overflow: hidden;
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 20px 40px rgba(255,215,0,0.1); }
.step-icon { font-size: 3rem; margin-bottom: 16px; }
.step-number { position: absolute; top: 12px; right: 16px; font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: rgba(255,255,255,0.04); }
.step-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ============ PRODUCTS ============ */
.product-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; }
.tab-btn {
  padding: 12px 32px; border-radius: 50px; border: 2px solid var(--glass-border);
  background: var(--glass); color: var(--text); font-family: var(--font);
  font-weight: 700; font-size: 1rem; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.tab-btn.active[data-gender="boy"] { background: var(--boy); border-color: var(--boy); color: #fff; }
.tab-btn.active[data-gender="girl"] { background: var(--girl); border-color: var(--girl); color: #fff; }
.tab-btn:hover { border-color: var(--gold); }
.tab-emoji { font-size: 1.2em; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.product-image { height: 200px; background: linear-gradient(135deg, var(--glass), rgba(255,255,255,0.02)); display: flex; align-items: center; justify-content: center; font-size: 4rem; position: relative; overflow: hidden; }
.product-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(15,10,30,0.8)); }
.product-bead { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.5); backdrop-filter: blur(10px); padding: 4px 12px; border-radius: 50px; font-size: 0.85rem; z-index: 2; }
.product-info { padding: 20px; }
.product-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.product-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; line-height: 1.5; }
.product-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--gold); }

/* ============ PRICING ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 40px 32px; text-align: center; position: relative; transition: var(--transition);
}
.price-card:hover { transform: translateY(-8px); }
.price-card.popular { border-color: var(--gold); background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,165,0,0.04)); transform: scale(1.05); }
.price-card.popular:hover { transform: scale(1.05) translateY(-8px); }
.price-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--glass); border: 1px solid var(--glass-border); padding: 4px 20px; border-radius: 0 0 12px 12px; font-size: 0.8rem; font-weight: 700; color: var(--gold); }
.price-card.popular .price-badge { background: linear-gradient(135deg, var(--gold), #FFA500); color: #1a1a2e; }
.price-spoons { font-size: 2.5rem; margin: 20px 0 12px; }
.price-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 16px; }
.price-amount { margin-bottom: 24px; }
.price-value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--gold); }
.price-unit { font-size: 0.9rem; color: var(--text-muted); display: block; }
.price-features { list-style: none; margin-bottom: 28px; text-align: left; }
.price-features li { padding: 8px 0; color: var(--text-muted); font-size: 0.95rem; border-bottom: 1px solid var(--glass-border); }

/* ============ ORDER WIZARD ============ */
.order-section { padding-bottom: 120px; }
.order-wizard { max-width: 700px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 40px; }
.wizard-steps { display: flex; justify-content: space-between; margin-bottom: 40px; position: relative; }
.wizard-steps::before { content: ''; position: absolute; top: 18px; left: 10%; right: 10%; height: 2px; background: var(--glass-border); }
.wizard-step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }
.ws-num { width: 36px; height: 36px; border-radius: 50%; background: var(--glass); border: 2px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; transition: var(--transition); }
.wizard-step.active .ws-num { background: var(--gold); color: #1a1a2e; border-color: var(--gold); }
.wizard-step.done .ws-num { background: var(--success); border-color: var(--success); }
.ws-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.wizard-step.active .ws-label { color: var(--gold); }

.wizard-content { display: none; }
.wizard-content.active { display: block; animation: fadeInUp 0.4s ease; }
.wizard-title { font-family: var(--font-display); font-size: 1.5rem; text-align: center; margin-bottom: 8px; }
.wizard-desc { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: 0.95rem; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 32px; gap: 16px; }

/* Gender Cards */
.gender-select { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.gender-card { cursor: pointer; position: relative; }
.gender-card input { display: none; }
.gender-visual {
  background: var(--glass); border: 2px solid var(--glass-border); border-radius: var(--radius);
  padding: 32px 20px; text-align: center; transition: var(--transition);
}
.gender-card input:checked ~ .gender-visual { border-color: var(--gold); background: rgba(255,215,0,0.1); }
.gender-card:hover .gender-visual { border-color: rgba(255,215,0,0.5); }
.gender-emoji { font-size: 4rem; margin-bottom: 12px; }
.gender-label { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.gender-desc { color: var(--text-muted); font-size: 0.85rem; }
.gender-check { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #1a1a2e; display: none; align-items: center; justify-content: center; font-weight: 700; }
.gender-card input:checked ~ .gender-check { display: flex; }

/* Spoon Select */
.spoon-select-group { margin-bottom: 24px; }
.spoon-select-group h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 12px; color: var(--gold); }
.spoon-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spoon-card { cursor: pointer; }
.spoon-card input { display: none; }
.spoon-visual {
  background: var(--glass); border: 2px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 20px 12px; text-align: center; transition: var(--transition); display: flex; flex-direction: column; gap: 6px;
}
.spoon-card input:checked ~ .spoon-visual { border-color: var(--gold); background: rgba(255,215,0,0.1); }
.spoon-card:hover .spoon-visual { border-color: rgba(255,215,0,0.5); }
.spoon-icons { font-size: 1.5rem; }
.spoon-label { font-weight: 700; font-size: 0.9rem; }
.spoon-price { color: var(--gold); font-weight: 700; font-family: var(--font-display); }

.order-summary-mini { text-align: center; padding: 16px; background: var(--glass); border-radius: var(--radius-sm); margin-top: 20px; font-size: 1.1rem; }
.order-summary-mini strong { color: var(--gold); font-family: var(--font-display); font-size: 1.4rem; }

/* Forms */
.order-form { display: flex; flex-direction: column; gap: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 1rem;
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,215,0,0.1); }
.form-group textarea { min-height: 80px; resize: vertical; }

/* Order Summary & Payment */
.order-summary { background: var(--glass); border-radius: var(--radius-sm); padding: 24px; margin-bottom: 24px; }
.order-summary p { padding: 8px 0; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; }
.order-summary strong { color: var(--gold); }

.payment-methods { margin-bottom: 24px; }
.payment-methods h4 { font-family: var(--font-display); margin-bottom: 12px; }
.payment-option { display: block; cursor: pointer; }
.payment-option input { display: none; }
.payment-visual { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--glass); border: 2px solid var(--glass-border); border-radius: var(--radius-sm); transition: var(--transition); }
.payment-option.active .payment-visual, .payment-option input:checked ~ .payment-visual { border-color: var(--gold); }
.payment-icon { font-size: 2rem; }
.payment-visual small { color: var(--text-muted); display: block; margin-top: 2px; }

.bank-info { display: grid; grid-template-columns: auto 1fr; gap: 24px; background: var(--glass); border-radius: var(--radius-sm); padding: 24px; margin-bottom: 24px; }
.bank-qr { width: 150px; height: 150px; background: #fff; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.qr-placeholder { color: #666; font-size: 0.9rem; font-weight: 600; }
.bank-details p { padding: 6px 0; font-size: 0.95rem; }
.bank-details .highlight { color: var(--gold); font-weight: 700; }
.total-final { font-size: 1.2rem !important; margin-top: 8px; padding-top: 12px !important; border-top: 1px solid var(--glass-border); }
.total-final span { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }

/* ============ FOOTER ============ */
.footer { background: rgba(0,0,0,0.3); border-top: 1px solid var(--glass-border); padding: 60px 0 30px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 60px; border-radius: 50%; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.footer-links h4, .footer-contact h4 { font-family: var(--font-display); margin-bottom: 16px; color: var(--gold); }
.footer-links a { display: block; color: var(--text-muted); text-decoration: none; padding: 6px 0; transition: var(--transition); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { color: var(--text-muted); font-size: 0.9rem; padding: 4px 0; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.85rem; }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes jarFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes floatBead { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(15deg); } }
@keyframes pulse { 0%,100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes glow { from { box-shadow: 0 0 10px rgba(255,215,0,0.3); } to { box-shadow: 0 0 25px rgba(255,215,0,0.6); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .jar-preview { width: 220px; height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gender-select { grid-template-columns: 1fr; }
  .spoon-options { grid-template-columns: 1fr; }
  .bank-info { grid-template-columns: 1fr; justify-items: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.popular { transform: none; }
  .order-wizard { padding: 24px 16px; }
  .wizard-steps { gap: 4px; }
  .ws-label { font-size: 0.65rem; }
}
