* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #F5F5F5; color: #1a1a1a; min-height: 100vh; }

/* NAV */
.navbar { background: #fff; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }
.navbar .logo { font-size: 22px; font-weight: 800; color: #F5B800; letter-spacing: -0.5px; }
.navbar .logo span { color: #1a1a1a; }
.navbar nav a { text-decoration: none; color: #555; font-size: 14px; margin-left: 20px; font-weight: 500; transition: color 0.2s; }
.navbar nav a:hover, .navbar nav a.active { color: #F5B800; }
.navbar .nav-right { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #F5B800; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; cursor: pointer; }
.hamburger { display: none; font-size: 22px; cursor: pointer; background: none; border: none; }

/* BUTTONS */
.btn { display: inline-block; padding: 12px 24px; border-radius: 10px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; text-decoration: none; text-align: center; transition: all 0.2s; }
.btn-primary { background: #F5B800; color: #1a1a1a; }
.btn-primary:hover { background: #e0a800; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,184,0,0.4); }
.btn-outline { background: transparent; color: #F5B800; border: 2px solid #F5B800; }
.btn-outline:hover { background: #F5B800; color: #1a1a1a; }
.btn-danger { background: #ff4757; color: #fff; }
.btn-danger:hover { background: #e84393; }
.btn-gray { background: #eee; color: #555; }
.btn-gray:hover { background: #ddd; }
.btn-full { width: 100%; display: block; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }

/* CARDS */
.card { background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 16px; }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; color: #1a1a1a; }

/* FORMS */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #666; margin-bottom: 6px; }
.form-control { width: 100%; padding: 12px 14px; border: 1.5px solid #e0e0e0; border-radius: 10px; font-size: 15px; outline: none; transition: border-color 0.2s; background: #fff; }
.form-control:focus { border-color: #F5B800; }
.input-group { display: flex; gap: 8px; }
.input-prefix { background: #F5B800; color: #1a1a1a; padding: 12px 14px; border-radius: 10px; font-weight: 700; font-size: 15px; white-space: nowrap; }

/* BADGE */
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-gold { background: #FFF3CD; color: #856404; }
.badge-green { background: #d4edda; color: #155724; }
.badge-blue { background: #d1ecf1; color: #0c5460; }
.badge-red { background: #f8d7da; color: #721c24; }
.badge-gray { background: #e9ecef; color: #495057; }

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.page-content { padding: 28px 0 60px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* CAMPAIGN CARDS */
.campaign-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.07); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; display: block; }
.campaign-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.campaign-card .banner { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff; position: relative; }
.campaign-card .banner .type-tag { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.25); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); }
.campaign-card .body { padding: 16px; }
.campaign-card .brand { font-size: 12px; color: #888; margin-bottom: 4px; font-weight: 500; }
.campaign-card .title { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; line-height: 1.3; }
.campaign-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.campaign-card .footer { display: flex; justify-content: space-between; align-items: center; }
.campaign-card .value { font-size: 18px; font-weight: 800; color: #F5B800; }
.campaign-card .deadline { font-size: 12px; color: #888; }

/* STATS ROW */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: 12px; padding: 18px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stat-card .stat-val { font-size: 26px; font-weight: 800; color: #F5B800; }
.stat-card .stat-label { font-size: 13px; color: #888; margin-top: 4px; }

/* TABS */
.tabs { display: flex; gap: 0; border-bottom: 2px solid #eee; margin-bottom: 24px; }
.tab-btn { padding: 10px 20px; border: none; background: none; font-size: 14px; font-weight: 600; color: #888; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab-btn.active { color: #F5B800; border-bottom-color: #F5B800; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ALERTS */
.alert-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border-radius: 12px; margin-bottom: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.alert-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.alert-item .alert-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.alert-item .alert-msg { font-size: 13px; color: #666; }
.alert-item .alert-time { font-size: 11px; color: #aaa; margin-top: 4px; }

/* PROFILE */
.profile-hero { background: linear-gradient(135deg, #F5B800, #FF8C00); border-radius: 14px; padding: 24px; color: #1a1a1a; margin-bottom: 20px; }
.profile-hero .name { font-size: 22px; font-weight: 800; }
.profile-hero .handle { font-size: 14px; opacity: 0.7; margin-top: 3px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 18px; }
.profile-stat { text-align: center; }
.profile-stat + .profile-stat { border-left: 1px solid rgba(0,0,0,0.15); }
.profile-stat .val { font-size: 20px; font-weight: 800; }
.profile-stat .lbl { font-size: 11px; opacity: 0.7; margin-top: 2px; }

.menu-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; text-decoration: none; color: inherit; }
.menu-item:last-child { border-bottom: none; }
.menu-item .left { display: flex; align-items: center; gap: 12px; }
.menu-item .icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.menu-item .lbl { font-size: 15px; font-weight: 600; }
.menu-item .sub { font-size: 12px; color: #888; }
.menu-item .arrow { color: #ccc; font-size: 18px; }

/* LOGIN PAGE */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fffbea, #fff8d0); padding: 20px; }
.login-box { background: #fff; border-radius: 20px; padding: 36px 32px; max-width: 420px; width: 100%; box-shadow: 0 8px 40px rgba(245,184,0,0.15); }
.login-logo { font-size: 28px; font-weight: 900; color: #F5B800; margin-bottom: 4px; }
.login-sub { color: #888; font-size: 14px; margin-bottom: 28px; }
.social-proof { display: flex; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.social-proof .sp-item { text-align: center; flex: 1; }
.social-proof .sp-val { font-size: 18px; font-weight: 800; color: #1a1a1a; }
.social-proof .sp-lbl { font-size: 11px; color: #888; }

/* BANNER */
.hero-banner { background: linear-gradient(135deg, #F5B800, #FF8C00); border-radius: 16px; padding: 28px 24px; margin-bottom: 24px; color: #1a1a1a; position: relative; overflow: hidden; }
.hero-banner::after { content: '🚀'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 60px; opacity: 0.3; }
.hero-banner h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.hero-banner p { font-size: 14px; opacity: 0.8; margin-bottom: 16px; }

/* REFER */
.refer-code { background: #FFF3CD; border: 2px dashed #F5B800; border-radius: 12px; padding: 16px 20px; text-align: center; margin: 16px 0; }
.refer-code .code { font-size: 28px; font-weight: 900; letter-spacing: 4px; color: #F5B800; }
.step-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: #F5B800; color: #1a1a1a; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.step-title { font-size: 14px; font-weight: 700; }
.step-desc { font-size: 13px; color: #666; margin-top: 3px; }

/* ADMIN */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: #1a1a1a; color: #fff; padding: 24px 0; flex-shrink: 0; position: fixed; height: 100vh; overflow-y: auto; }
.admin-sidebar .logo { padding: 0 20px 20px; font-size: 20px; font-weight: 800; color: #F5B800; border-bottom: 1px solid #333; margin-bottom: 10px; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: #aaa; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: #F5B800; color: #1a1a1a; }
.admin-main { margin-left: 220px; padding: 28px; flex: 1; background: #F5F5F5; min-height: 100vh; }
.admin-header { font-size: 22px; font-weight: 800; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.admin-table th { background: #F5B800; color: #1a1a1a; padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 700; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fffbea; }

/* CAMPAIGN DETAIL */
.campaign-hero { border-radius: 16px; height: 200px; display: flex; align-items: center; justify-content: center; font-size: 64px; margin-bottom: 20px; position: relative; }
.campaign-hero .badge-overlay { position: absolute; bottom: 14px; left: 14px; background: rgba(0,0,0,0.5); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; backdrop-filter: blur(4px); }
.detail-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.step-do { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: #fffbea; border-radius: 10px; margin-bottom: 10px; border-left: 3px solid #F5B800; }

/* OTP */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.otp-box { width: 48px; height: 56px; border: 2px solid #e0e0e0; border-radius: 10px; text-align: center; font-size: 22px; font-weight: 700; outline: none; transition: border-color 0.2s; }
.otp-box:focus { border-color: #F5B800; }

/* FOOTER */
.footer { background: #1a1a1a; color: #888; padding: 28px 20px; text-align: center; font-size: 13px; }
.footer a { color: #F5B800; text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .hamburger { display: block; }
  .navbar nav { display: none; }
  .campaign-card .banner { height: 110px; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .login-box { padding: 24px 18px; }
}
