:root{--bg:#f5f7fb;--card:#fff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--dark:#111827;--accent:#e11d48;--success:#15803d;--gold:#d97706}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}a{color:var(--accent);text-decoration:none;font-weight:700}.auth-page{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:radial-gradient(circle at top,#fff,#eef1f6);overflow-x:hidden}.auth-card{width:100%;max-width:460px;margin:auto;background:#fff;padding:30px;border:1px solid var(--line);border-radius:24px;box-shadow:0 18px 60px #11182712}.auth-card form{width:100%}.auth-card .btn.primary{display:flex;margin-left:auto;margin-right:auto}.auth-card.wide{max-width:760px}.brand{font-size:22px;letter-spacing:.08em;font-weight:900;color:var(--dark)}.brand span{color:var(--accent)}h1{font-size:30px;margin:12px 0 8px}h2{margin:0 0 8px}.muted{color:var(--muted)}.center{text-align:center}label{display:block;font-size:13px;font-weight:800;margin:16px 0 7px}input,select,textarea{width:100%;border:1px solid #d7dce4;border-radius:12px;padding:13px 14px;font:inherit;outline:0;background:#fff}textarea{min-height:100px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #e11d4815}.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:12px;border:0;font-weight:800;cursor:pointer;font-size:14px;text-decoration:none}.btn.primary{background:var(--dark);color:#fff}.btn.accent{background:var(--accent);color:#fff}.btn.light{background:#f3f4f6;color:var(--text)}.btn.danger{background:#fee2e2;color:#991b1b}.btn.full{width:100%;margin-top:18px}.btn.small{padding:9px 12px;font-size:12px}.google{width:100%;margin-top:18px;border:1px solid var(--line);background:#fff;color:#202124;gap:10px}.divider{display:flex;align-items:center;gap:12px;margin:20px 0;color:#9ca3af;font-size:12px}.divider:before,.divider:after{content:"";height:1px;background:var(--line);flex:1}.alert{padding:13px 15px;border-radius:12px;margin:15px 0;font-size:14px}.alert.error{background:#fef2f2;color:#991b1b}.alert.success{background:#f0fdf4;color:var(--success)}.alert.info{background:#eff6ff;color:#1d4ed8}.alert ul{margin:0;padding-left:20px}.grid-form{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.grid-form .full{grid-column:1/-1}
.topbar{min-height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5%;position:sticky;top:0;z-index:20}.topbar nav{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.topbar nav a{color:var(--text);font-size:13px}.topbar .logout{color:var(--accent)}.container{max-width:1120px;margin:auto;padding:28px 18px 100px}.container.narrow{max-width:760px}.hero{display:flex;justify-content:space-between;gap:20px;align-items:center;background:linear-gradient(135deg,#111827,#252b39);color:#fff;padding:28px;border-radius:24px}.hero p{color:#d1d5db}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:900;color:#d1d5db}.member-badge{background:#ffffff12;padding:15px 18px;border-radius:16px;min-width:180px}.member-badge small{display:block;color:#9ca3af;font-size:10px}.member-badge strong{display:block;margin-top:5px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0}.stat,.feature,.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:19px}.stat span,.stat small{display:block;color:var(--muted)}.stat strong{display:block;font-size:25px;margin:6px 0}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:14px}.panel{margin-top:16px}.panel-row{display:flex;justify-content:space-between;gap:16px;align-items:center}.panel-stack{display:flex;flex-direction:column;gap:14px}.panel-stack>.panel{margin:0}.level-pill{display:inline-flex;padding:7px 12px;border-radius:999px;font-weight:900;background:#f3f4f6}.silver{background:#e5e7eb!important;color:#374151}.gold{background:#fef3c7!important;color:#92400e}.platinum{background:#e0e7ff!important;color:#3730a3}.progress{height:9px;background:#e5e7eb;border-radius:99px;overflow:hidden;margin:12px 0}.progress>i{display:block;height:100%;background:var(--accent);border-radius:99px}.table-wrap{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:auto}table{border-collapse:collapse;width:100%;min-width:680px}th,td{text-align:left;padding:13px 15px;border-bottom:1px solid var(--line);font-size:13px}th{background:#f9fafb}.status{padding:5px 9px;border-radius:99px;font-size:11px;font-weight:900}.status.approved{background:#dcfce7;color:#166534}.status.pending{background:#fef3c7;color:#92400e}.status.rejected{background:#fee2e2;color:#991b1b}.avatar{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#111827;color:#fff;font-size:20px;font-weight:900}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.cards-4{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.reward-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.reward-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.reward-card .body{padding:16px}.reward-img{height:150px;background:#f3f4f6;display:flex;align-items:center;justify-content:center;font-size:48px}.tag{display:inline-block;padding:5px 9px;background:#fce7f3;color:#9d174d;border-radius:99px;font-size:11px;font-weight:800}.bottom-nav{display:none}.notification-dot{display:inline-flex;min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:var(--accent);color:#fff;font-size:10px;align-items:center;justify-content:center}.rank{font-size:20px;font-weight:900}.leader-me{background:#fff7ed}.check{display:flex;gap:10px;align-items:center}.check input{width:auto}.kpi{font-size:24px;font-weight:900}.footer-note{margin-top:25px;color:var(--muted);font-size:12px;text-align:center}
@media(max-width:760px){.auth-page{min-height:100dvh;padding:18px 14px}.auth-card{max-width:460px;padding:24px;margin:auto}.topbar{padding:12px 16px}.topbar nav{display:flex;overflow:auto;max-width:76%;white-space:nowrap}.container{padding:18px 14px 90px}.hero,.panel-row{flex-direction:column;align-items:stretch}.member-badge{min-width:0}.cards,.cards-4,.feature-grid,.reward-grid,.grid-form{grid-template-columns:1fr}.grid-form .full{grid-column:auto}.hero h1{font-size:25px}.bottom-nav{position:fixed;display:flex;left:10px;right:10px;bottom:10px;height:62px;background:#111827;border-radius:18px;z-index:50;justify-content:space-around;align-items:center;box-shadow:0 12px 30px #11182733}.bottom-nav a{color:#fff;font-size:11px;text-align:center}.bottom-nav b{display:block;font-size:19px}.auth-card{padding:24px}.table-wrap{margin:0 -2px}}

/* Mobile hamburger navigation */
.menu-toggle{display:none;border:0;background:transparent;width:44px;height:44px;border-radius:12px;cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:0}
.menu-toggle span{display:block;width:23px;height:2.5px;border-radius:3px;background:var(--dark);transition:.2s ease}
.menu-toggle.open span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.menu-toggle.open span:nth-child(2){opacity:0}
.menu-toggle.open span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}
@media(max-width:760px){
  .topbar{min-height:64px;height:64px;padding:8px 14px;gap:10px;position:sticky;top:0}
  .topbar .brand{font-size:21px;line-height:1;flex:1}
  .menu-toggle{display:flex;flex:0 0 44px;order:3}
  .topbar nav.topnav-menu{position:absolute;top:64px;left:10px;right:10px;display:flex;flex-direction:column;align-items:stretch;gap:0;max-width:none;overflow:visible;white-space:normal;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 45px #11182724;padding:8px;opacity:0;visibility:hidden;transform:translateY(-8px);pointer-events:none;transition:.18s ease;z-index:100}
  .topbar nav.topnav-menu.open{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
  .topbar nav.topnav-menu a{display:flex;align-items:center;min-height:46px;padding:10px 13px;border-radius:10px;font-size:14px;color:var(--text)}
  .topbar nav.topnav-menu a:hover,.topbar nav.topnav-menu a:active{background:#f3f4f6}
  .topbar nav.topnav-menu .logout{color:var(--accent);border-top:1px solid var(--line);margin-top:4px;padding-top:12px}
  body.menu-open{overflow:hidden}
}
.status.sent{background:#dcfce7;color:#166534}.status.failed,.status.curl_error,.status.wablas_error,.status.invalid_phone,.status.message_too_long,.status.not_configured{background:#fee2e2;color:#991b1b}.status.ok{background:#dcfce7;color:#166534}
