:root {
  --bg-color: #0b0f19;
  --card-bg: #111827;
  --card-border: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --shopee-orange: #ee4d2d;
  --shopee-hover: #d73211;
  --accent-glow: rgba(238, 77, 45, 0.25);
  --success: #10b981;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.glow-bg {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(238, 77, 45, 0.12) 0%, rgba(11, 15, 25, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 25, 0.8);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  font-size: 22px;
}

.accent {
  color: var(--shopee-orange);
}

.logo-badge {
  background: rgba(238, 77, 45, 0.15);
  color: var(--shopee-orange);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn-outline:hover {
  background: var(--card-bg);
  color: var(--text-primary);
  border-color: #374151;
}

/* Hero Section */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 41, 55, 0.7);
  border: 1px solid #374151;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--shopee-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--shopee-orange);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ff6b4a 0%, #ee4d2d 50%, #ff8a65 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* Converter Box */
.converter-box {
  width: 100%;
  max-width: 680px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  margin-bottom: 30px;
}

@media (min-width: 640px) {
  .converter-box {
    flex-direction: row;
    padding: 8px;
  }
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: #0b0f19;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0 14px;
  flex: 1;
}

.input-icon {
  font-size: 18px;
  margin-right: 10px;
  opacity: 0.7;
}

#shopee-url {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  padding: 14px 0;
  font-family: inherit;
}

#shopee-url::placeholder {
  color: var(--text-muted);
}

.btn-paste {
  background: #1f2937;
  border: none;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-paste:hover {
  background: #374151;
  color: #fff;
}

.btn-primary {
  background: var(--shopee-orange);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--shopee-hover);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Result Card */
.result-card {
  width: 100%;
  max-width: 680px;
  background: var(--card-bg);
  border: 1px solid #374151;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  text-align: left;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.result-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 700;
  font-size: 14px;
}

.countdown-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.result-link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

#result-url {
  flex: 1;
  background: #0b0f19;
  border: 1px solid #374151;
  border-radius: 10px;
  padding: 12px 14px;
  color: #60a5fa;
  font-weight: 600;
  font-size: 14px;
  outline: none;
}

.btn-copy {
  background: #1f2937;
  color: #fff;
  border: 1px solid #374151;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #374151;
}

.btn-copy.copied {
  background: var(--success);
  border-color: var(--success);
}

.result-actions {
  margin-bottom: 16px;
}

.btn-open-app {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff5722 100%);
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: all 0.2s;
}

.btn-open-app:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.info-accordion {
  background: #0b0f19;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  word-break: break-all;
}

.info-label {
  color: var(--text-muted);
  min-width: 140px;
}

.info-value {
  color: var(--text-secondary);
  font-family: monospace;
}

.tip-box {
  background: rgba(238, 77, 45, 0.1);
  border-left: 3px solid var(--shopee-orange);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #fed7aa;
}

/* Quick Stats */
.quick-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

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

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

/* Sections */
.section {
  padding: 60px 0;
  text-align: center;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: left;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: #374151;
}

.step-number {
  font-size: 14px;
  font-weight: 800;
  color: var(--shopee-orange);
  margin-bottom: 16px;
}

.step-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Zalo Section */
.zalo-card {
  background: linear-gradient(135deg, #111827 0%, #1e1b4b 100%);
  border: 1px solid #312e81;
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

@media (min-width: 840px) {
  .zalo-card {
    grid-template-columns: 1fr 1fr;
  }
}

.zalo-tag {
  color: #818cf8;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.zalo-title {
  font-size: 28px;
  font-weight: 800;
  margin: 12px 0 16px;
}

.zalo-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.zalo-features {
  list-style: none;
  margin-bottom: 28px;
}

.zalo-features li {
  padding: 6px 0;
  color: #c7d2fe;
  font-size: 14px;
}

.btn-zalo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0068ff;
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
}

.btn-zalo:hover {
  background: #0052cc;
  box-shadow: 0 4px 16px rgba(0, 104, 255, 0.4);
}

/* Chat Mockup */
.zalo-mockup {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  max-width: 90%;
  line-height: 1.5;
}

.user-bubble {
  background: #2563eb;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  word-break: break-all;
}

.bot-bubble {
  background: #1e293b;
  color: #f1f5f9;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid #334155;
}

.bot-header {
  color: var(--shopee-orange);
  margin-bottom: 6px;
}

.chat-link {
  color: #60a5fa;
  font-weight: 600;
  margin: 6px 0;
}

.chat-note {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid #374151;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.form-group input {
  width: 100%;
  background: #0b0f19;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.form-group small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 40px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

@media (min-width: 640px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.hidden {
  display: none !important;
}
