* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #f59e0b;
  --bg-dark: #0a0a0f;
  --bg-card: #13131f;
  --bg-card2: #1a1a2e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(124,58,237,0.3);
  --success: #10b981;
  --danger: #ef4444;
  --glow: 0 0 20px rgba(124,58,237,0.4);
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
}

/* HERO SLIDESHOW */
.hero-slideshow {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 0;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.5s ease;
}
.slide.active { opacity: 1; }
.slideshow-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
}

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 15px 40px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.nav-brand {
  font-size: 1.8rem; font-weight: 900;
  letter-spacing: 2px; flex-shrink: 0;
}
.brand-kr { color: var(--primary); }
.brand-amp { color: var(--accent); }
.brand-br { color: #fff; }
.brand-highlight { color: var(--accent); }

.nav-tabs { display: flex; gap: 8px; flex: 1; justify-content: center; flex-wrap: wrap; }
.tab-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); padding: 8px 16px; border-radius: 25px;
  cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 0.85rem;
  transition: all 0.3s; display: flex; align-items: center; gap: 6px;
}
.tab-btn:hover, .tab-btn.active {
  background: var(--primary); color: #fff;
  border-color: var(--primary); box-shadow: var(--glow);
}

.nav-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-login {
  background: transparent; border: 1px solid var(--primary);
  color: var(--primary); padding: 8px 20px; border-radius: 25px;
  cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 0.9rem;
  transition: all 0.3s;
}
.btn-login:hover { background: var(--primary); color: #fff; }
.btn-register {
  background: var(--primary); border: none;
  color: #fff; padding: 8px 20px; border-radius: 25px;
  cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 0.9rem;
  transition: all 0.3s; box-shadow: var(--glow);
}
.btn-register:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* HERO CONTENT */
.hero-content {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 20px 60px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.2;
  text-shadow: 0 0 40px rgba(124,58,237,0.5);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.2rem; color: var(--text-muted);
  margin-bottom: 40px; max-width: 500px;
}
.hero-btns { display: flex; gap: 15px; margin-bottom: 60px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  background: var(--primary); color: #fff;
  border: none; padding: 14px 35px; border-radius: 30px;
  font-family: 'Cairo', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all 0.3s; box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-3px); background: var(--primary-dark); }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.3); padding: 14px 35px; border-radius: 30px;
  font-family: 'Cairo', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--accent); }
.stat span:last-child { color: var(--text-muted); font-size: 0.9rem; }

/* PRODUCTS SECTION */
.products-section {
  position: relative; z-index: 10;
  background: var(--bg-dark);
  padding: 60px 40px;
  min-height: 100vh;
}
.section-tabs {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 40px; flex-wrap: wrap;
}
.stab {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); padding: 12px 24px; border-radius: 30px;
  cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 0.95rem;
  transition: all 0.3s; display: flex; align-items: center; gap: 8px;
}
.stab:hover, .stab.active {
  background: var(--primary); color: #fff;
  border-color: var(--primary); box-shadow: var(--glow);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: all 0.3s; cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(124,58,237,0.3);
  border-color: var(--primary);
}
.product-img {
  width: 100%; height: 180px;
  object-fit: cover; display: block;
  background: linear-gradient(135deg, var(--bg-card2), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.2);
}
.product-body { padding: 18px; }
.product-category {
  font-size: 0.75rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.product-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.product-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; line-height: 1.6; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.3rem; font-weight: 900; color: var(--accent); }
.product-price small { font-size: 0.75rem; color: var(--text-muted); }
.btn-buy {
  background: var(--primary); color: #fff; border: none;
  padding: 8px 18px; border-radius: 20px;
  font-family: 'Cairo', sans-serif; font-size: 0.85rem;
  cursor: pointer; transition: all 0.3s;
}
.btn-buy:hover { background: var(--primary-dark); transform: scale(1.05); }
.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: #000;
  padding: 3px 10px; border-radius: 12px;
  font-size: 0.75rem; font-weight: 700;
}

/* AI BADGE */
.ai-badge {
  position: fixed; bottom: 30px; left: 30px;
  background: rgba(16,185,129,0.15);
  border: 1px solid var(--success);
  color: var(--success); padding: 10px 20px;
  border-radius: 30px; display: flex; align-items: center; gap: 10px;
  z-index: 50; font-size: 0.85rem; backdrop-filter: blur(10px);
}
.ai-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* AI MONITOR */
.ai-monitor {
  position: fixed; top: 80px; left: 20px;
  background: rgba(124,58,237,0.1);
  border: 1px solid var(--border);
  color: var(--primary); padding: 8px 16px;
  border-radius: 20px; font-size: 0.8rem;
  z-index: 50; display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.5s; opacity: 0;
}
.ai-monitor.show { opacity: 1; }
.ai-monitor.warning { color: var(--accent); border-color: var(--accent); }
.ai-monitor.danger { color: var(--danger); border-color: var(--danger); }

/* MODALS */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 200; display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
  width: 100%; max-width: 480px;
  position: relative; max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease;
}
.modal-wide { max-width: 700px; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 15px; left: 15px;
  background: rgba(255,255,255,0.1); border: none;
  color: #fff; width: 35px; height: 35px;
  border-radius: 50%; cursor: pointer; font-size: 1rem;
  transition: all 0.3s;
}
.modal-close:hover { background: var(--danger); }
.modal-logo {
  text-align: center; font-size: 2rem; font-weight: 900;
  margin-bottom: 10px;
}
.modal h2 {
  text-align: center; font-size: 1.5rem;
  margin-bottom: 25px; color: var(--text);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; margin-bottom: 8px;
  color: var(--text-muted); font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px;
}
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-family: 'Cairo', sans-serif; font-size: 0.95rem;
  transition: all 0.3s; outline: none;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.2);
}
.form-group input::placeholder { color: var(--text-muted); }

.account-type-selector { display: flex; gap: 12px; }
.type-card {
  flex: 1; background: rgba(255,255,255,0.03);
  border: 2px solid var(--border); border-radius: 12px;
  padding: 16px; cursor: pointer; text-align: center;
  transition: all 0.3s; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.type-card input[type="radio"] { display: none; }
.type-card i { font-size: 1.8rem; color: var(--text-muted); }
.type-card span { font-weight: 700; font-size: 0.95rem; }
.type-card small { color: var(--text-muted); font-size: 0.75rem; }
.type-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(124,58,237,0.15);
}
.type-card:has(input:checked) i { color: var(--primary); }

.form-error { color: var(--danger); font-size: 0.85rem; margin-bottom: 10px; min-height: 20px; }
.btn-submit {
  width: 100%; background: var(--primary); color: #fff;
  border: none; padding: 14px; border-radius: 12px;
  font-family: 'Cairo', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all 0.3s; box-shadow: var(--glow);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }
.modal-switch { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.modal-switch a { color: var(--primary); text-decoration: none; font-weight: 700; }

/* FOOTER */
.footer {
  position: relative; z-index: 10;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center; padding: 30px;
  color: var(--text-muted);
}
.footer-brand { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; }
.footer-note { font-size: 0.8rem; margin-top: 8px; color: var(--accent); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar { padding: 12px 20px; }
  .nav-tabs { display: none; }
  .products-section { padding: 40px 20px; }
  .hero-stats { gap: 20px; }
  .account-type-selector { flex-direction: column; }
}
