@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gray-100: #f0f0f0;
  --gray-200: #e0e0e0;
  --gray-400: #999;
  --gray-600: #555;
  --gray-800: #222;
  --green: #16a34a;
  --yellow: #ca8a04;
  --red: #dc2626;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--black); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ICON */
.icon { width: 22px; height: 22px; object-fit: contain; display: inline-block; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 20px 48px; background: rgba(250,250,250,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); }
.nav-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; color: var(--black); text-decoration: none; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--gray-600); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--black); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; border: none; transition: all var(--transition); letter-spacing: -0.01em; font-family: inherit; }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--gray-800); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-outline { background: transparent; color: var(--black); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--black); background: var(--black); color: var(--white); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #15803d; transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b91c1c; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; }
.btn:active { transform: translateY(0); }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 48px 80px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 100px; border: 1px solid var(--gray-200); font-size: 0.8rem; font-weight: 500; color: var(--gray-600); margin-bottom: 32px; animation: fadeUp 0.6s ease both; }
.hero-badge span { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; display: inline-block; }
.hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 24px; animation: fadeUp 0.6s 0.1s ease both; }
.hero h1 em { font-style: normal; position: relative; display: inline-block; }
.hero h1 em::after { content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 3px; background: var(--black); border-radius: 2px; }
.hero-sub { font-size: 1.1rem; color: var(--gray-600); max-width: 500px; margin: 0 auto 48px; animation: fadeUp 0.6s 0.2s ease both; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.6s 0.3s ease both; }

/* FEATURES */
.features { padding: 120px 48px; max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 16px; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 64px; max-width: 480px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2px; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.feature-card { padding: 40px; background: var(--white); border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); transition: background var(--transition); }
.feature-card:hover { background: var(--gray-100); }
.feature-icon { width: 44px; height: 44px; background: var(--black); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.feature-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.02em; }
.feature-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; }

/* STATS */
.stats { padding: 80px 48px; background: var(--black); color: var(--white); }
.stats-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 3.5rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.5); }

/* CTA */
.cta-section { padding: 120px 48px; text-align: center; }
.cta-section h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -0.04em; margin-bottom: 24px; }
.cta-section p { color: var(--gray-600); margin-bottom: 48px; }

/* FOOTER */
footer { border-top: 1px solid var(--gray-200); padding: 32px 48px; display: flex; align-items: center; justify-content: space-between; }
footer p { font-size: 0.85rem; color: var(--gray-400); }

/* AUTH */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 24px; background: var(--gray-100); }
.auth-card { background: var(--white); border-radius: 20px; padding: 48px; width: 100%; max-width: 440px; box-shadow: 0 2px 40px rgba(0,0,0,0.06); animation: fadeUp 0.5s ease both; }
.auth-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--black); text-decoration: none; display: block; margin-bottom: 40px; }
.auth-card h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.auth-card .subtitle { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 36px; }
.auth-card .subtitle a { color: var(--black); font-weight: 600; text-decoration: none; }

/* FORMS */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 8px; color: var(--gray-800); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 0.9rem; font-family: inherit; color: var(--black); background: var(--white); outline: none; transition: border-color var(--transition), box-shadow var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-400); }
.btn-full { width: 100%; margin-top: 8px; }
.auth-footer { text-align: center; margin-top: 28px; font-size: 0.875rem; color: var(--gray-600); }
.auth-footer a { color: var(--black); font-weight: 600; text-decoration: none; }

/* FLASH */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 20px; font-weight: 500; }
.flash.error { background: #fff0f0; color: #c0392b; border: 1px solid #ffd5d5; }
.flash.success { background: #f0fff4; color: #22543d; border: 1px solid #b2f5cc; }

/* DASHBOARD */
.dashboard-page { min-height: 100vh; background: var(--gray-100); }
.dashboard-nav { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 0 48px; display: flex; align-items: center; justify-content: space-between; height: 64px; position: sticky; top: 0; z-index: 50; }
.dashboard-content { max-width: 1100px; margin: 0 auto; padding: 48px; }
.dash-header { margin-bottom: 40px; }
.dash-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.dash-header p { color: var(--gray-600); margin-top: 4px; font-size: 0.9rem; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.dash-card { background: var(--white); border-radius: var(--radius); padding: 24px 28px; border: 1px solid var(--gray-200); display: flex; align-items: flex-start; gap: 16px; }
.dash-card .card-icon { flex-shrink: 0; }
.dash-card .card-label { font-size: 0.78rem; font-weight: 500; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.dash-card .card-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }

/* VERIFY BADGE */
.verify-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; }
.verify-badge.approved { background: #f0fff4; color: var(--green); border: 1px solid #b2f5cc; }
.verify-badge.pending { background: #fffbeb; color: var(--yellow); border: 1px solid #fde68a; }
.verify-badge.none, .verify-badge.rejected { background: #fff0f0; color: var(--red); border: 1px solid #ffd5d5; }

/* STATUS BADGE */
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.status-badge.confirmed { background: #f0fff4; color: var(--green); }
.status-badge.pending { background: #fffbeb; color: var(--yellow); }
.status-badge.waiting_confirm { background: #eff6ff; color: #2563eb; }
.status-badge.cancelled { background: #fff0f0; color: var(--red); }

/* TABLES */
.table-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); overflow: hidden; margin-bottom: 24px; }
.table-card-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.table-card-header h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 20px; text-align: left; font-size: 0.78rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--gray-200); }
td { padding: 14px 20px; font-size: 0.875rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-100); }

/* PAYMENT PAGE */
.pay-page { min-height: 100vh; background: var(--gray-100); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; }
.pay-card { background: var(--white); border-radius: 24px; padding: 48px; width: 100%; max-width: 460px; box-shadow: 0 4px 48px rgba(0,0,0,0.08); animation: fadeUp 0.5s ease both; }
.pay-amount { text-align: center; margin-bottom: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--gray-200); }
.pay-amount .label { font-size: 0.8rem; font-weight: 500; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.pay-amount .amount { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.pay-amount .currency { font-size: 1.5rem; color: var(--gray-600); }
.pay-amount .fee-note { font-size: 0.8rem; color: var(--gray-400); margin-top: 8px; }
.pay-shop { text-align: center; margin-bottom: 28px; }
.pay-shop .shop-name { font-size: 0.9rem; color: var(--gray-600); }

.card-display { background: var(--gray-100); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }
.card-display .card-label { font-size: 0.75rem; color: var(--gray-400); font-weight: 500; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.card-display .card-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; letter-spacing: 0.1em; display: flex; align-items: center; justify-content: space-between; }
.card-display .card-bank { font-size: 0.8rem; color: var(--gray-600); margin-top: 4px; }
.copy-btn { background: none; border: none; cursor: pointer; padding: 4px; border-radius: 6px; transition: background var(--transition); }
.copy-btn:hover { background: var(--gray-200); }

.timer-bar { height: 4px; background: var(--gray-200); border-radius: 2px; overflow: hidden; margin-bottom: 20px; }
.timer-bar-fill { height: 100%; background: var(--black); border-radius: 2px; transition: width 1s linear; }

/* SUCCESS ANIMATION */
.success-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; background: var(--white); }
.success-icon { width: 80px; height: 80px; margin: 0 auto 28px; animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.success-page h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.success-page p { color: var(--gray-600); margin-bottom: 8px; }
.redirect-bar { width: 200px; height: 3px; background: var(--gray-200); border-radius: 2px; overflow: hidden; margin: 24px auto 0; }
.redirect-bar-fill { height: 100%; background: var(--black); border-radius: 2px; animation: fillBar 10s linear forwards; }

/* ADMIN */
.admin-alert { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 500; color: var(--yellow); }

/* SECTION CARD */
.section-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 32px; margin-bottom: 24px; }
.section-card h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

/* COPY TOAST */
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--black); color: var(--white); padding: 12px 24px; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; opacity: 0; transition: all 0.3s ease; pointer-events: none; z-index: 999; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes fillBar { from { width: 0; } to { width: 100%; } }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 60px 24px; color: var(--gray-400); }
.empty-state img { width: 48px; opacity: 0.3; margin-bottom: 16px; }
.empty-state p { font-size: 0.9rem; }

/* PILL */
.pill { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; background: var(--gray-100); color: var(--gray-600); }

@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .features, .cta-section { padding: 80px 24px; }
  .stats { padding: 60px 24px; }
  .stats-inner { grid-template-columns: 1fr; gap: 32px; }
  .auth-card, .pay-card { padding: 32px 24px; }
  .dashboard-nav { padding-left: 20px; padding-right: 20px; }
  .dashboard-content { padding: 24px 20px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}
