@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
*{margin:0;padding:0;box-sizing:border-box}
:root{--blue:#1a73e8;--blue-h:#1557b0;--green:#43a047;--navy:#0d1b4c;--muted:#78909c;--bg:#eef3f9}
body{font-family:Inter,system-ui,sans-serif;background:var(--bg);color:#333;-webkit-font-smoothing:antialiased}
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(180deg,#1e88e5 0%,#42a5f5 28%,#90caf9 28%,#e3f2fd 55%,#f5f9fc 100%)}
.login-card{width:100%;max-width:400px;background:#fff;border-radius:24px;box-shadow:0 20px 60px rgba(30,136,229,.25);overflow:hidden}
.login-top{height:90px;background:linear-gradient(135deg,#1e88e5,#42a5f5);border-radius:0 0 50% 50%/0 0 40px 40px;position:relative}
.login-top::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:30px;background:#fff;border-radius:50% 50% 0 0/100% 100% 0 0}
.login-content{padding:10px 32px 40px;text-align:center}
.login-content h1{font-size:20px;font-weight:800;color:var(--navy);margin-bottom:2px}
.login-content h2{font-size:24px;font-weight:800;color:#1565c0;margin-bottom:28px}
.input-box{display:flex;align-items:center;gap:12px;background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:14px;padding:0 16px;margin-bottom:14px}
.input-box:focus-within{border-color:#1e88e5;box-shadow:0 0 0 3px rgba(30,136,229,.15);background:#fff}
.input-box svg{width:22px;height:22px;flex-shrink:0;color:#94a3b8}
.input-box input{flex:1;border:none;background:transparent;padding:15px 0;font-size:15px;outline:none;font-family:inherit}
.btn-submit{width:100%;margin-top:10px;padding:15px;background:linear-gradient(135deg,#1e88e5,#1976d2);color:#fff;border:none;border-radius:14px;font-size:16px;font-weight:700;letter-spacing:1px;cursor:pointer;font-family:inherit}
.btn-submit:hover{opacity:.95}
.login-footer{margin-top:20px;font-size:12px;color:#94a3b8}
.login-footer a{color:#1565c0;text-decoration:none;font-weight:600}
.alert{padding:12px 14px;border-radius:10px;margin-bottom:16px;font-size:13px;text-align:left}
.alert-error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.alert-success{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}
.alert-info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}
.page-center{min-height:100vh;display:flex;align-items:flex-start;justify-content:center;padding:24px 16px 40px;background:#e8eef5}
.form-card{width:100%;max-width:480px;background:#fff;border-radius:18px;box-shadow:0 4px 24px rgba(0,0,0,.08);overflow:hidden}
.form-header{background:#2196F3;color:#fff;text-align:center;padding:16px;font-size:17px;font-weight:700;letter-spacing:1.5px}
.form-isdc{background:#e8f0fe;text-align:center;padding:11px;font-size:15px;font-weight:700;color:var(--navy)}
.form-body{padding:22px 24px 28px}
.fg{margin-bottom:16px}
.fg-label{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:var(--navy);margin-bottom:6px}
.fg-label svg{width:18px;height:18px;color:#1565c0;flex-shrink:0}
.fg input,.fg textarea{width:100%;padding:11px 14px;border:1.5px solid #d0d7e2;border-radius:10px;font-size:14px;font-family:inherit;outline:none}
.fg input:focus,.fg textarea:focus{border-color:#2196F3}
.fg textarea{min-height:72px;resize:vertical}
.fg-row{display:flex;gap:14px}
.fg-row .fg{flex:1}
.terms-bar{display:flex;align-items:center;justify-content:space-between;margin-top:18px;padding-top:16px;border-top:1px solid #eef2f7;flex-wrap:wrap;gap:12px}
.terms-left{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:var(--navy);flex-wrap:wrap}
.terms-check{display:flex;align-items:center;gap:6px;font-weight:500;font-size:13px}
.terms-check input{width:18px;height:18px;accent-color:#2196F3}
.btn-green{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 28px;background:var(--green);color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:600;cursor:pointer;font-family:inherit;text-decoration:none}
.btn-green:hover{background:#2e7d32}
.btn-green svg{width:18px;height:18px;fill:currentColor}
.btn-blue{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 22px;background:var(--blue);color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:600;cursor:pointer;font-family:inherit;text-decoration:none}
.btn-blue:hover{background:var(--blue-h)}
.btn-blue svg{width:20px;height:20px;fill:currentColor}
.photo-area{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:40px 20px}
.photo-btns{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.photo-preview{width:160px;height:160px;border-radius:14px;object-fit:cover;border:3px solid #e2e8f0}
.photo-preview-wrap{text-align:center}
.photo-preview-wrap p{margin-top:8px;color:var(--green);font-size:13px;font-weight:600}
.success-area{text-align:center;padding:50px 30px 55px}
.success-circle{width:100px;height:100px;margin:0 auto 24px;background:var(--green);border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 12px rgba(67,160,71,.18)}
.success-circle svg{width:48px;height:48px;fill:#fff}
.success-title{font-size:24px;font-weight:800;color:var(--navy);margin-bottom:10px}
.success-line{width:48px;height:2.5px;background:#90caf9;margin:0 auto 14px}
.success-msg{color:var(--muted);font-size:14.5px;line-height:1.5}
.dash{max-width:1080px;margin:0 auto;padding:16px}
.dash-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:#fff;border-radius:16px;padding:14px 20px;box-shadow:0 2px 12px rgba(0,0,0,.05);margin-bottom:16px}
.dash-logo{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:800;color:var(--navy)}
.logo-icon{width:36px;height:36px;background:linear-gradient(135deg,#1e88e5,#42a5f5);border-radius:10px;display:flex;align-items:center;justify-content:center}
.logo-icon svg{width:22px;height:22px;fill:#fff}
.points-pill{background:#e3f2fd;border-radius:20px;padding:8px 16px;display:flex;align-items:center;gap:8px;font-size:12px;color:#1565c0;font-weight:500}
.points-pill strong{font-size:18px;font-weight:800;display:block;color:#0d47a1}
.profile-area{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--navy)}
.profile-area .avatar{width:36px;height:36px;background:#e3f2fd;border-radius:50%;display:flex;align-items:center;justify-content:center}
.profile-area a{color:#e53935;text-decoration:none;font-size:12px;font-weight:600}
.dash-grid{display:grid;grid-template-columns:210px 1fr 175px;gap:14px}
@media(max-width:860px){.dash-grid{grid-template-columns:1fr}}
.d-card{background:#fff;border-radius:14px;box-shadow:0 2px 12px rgba(0,0,0,.05);padding:16px}
.worth-box{text-align:center}
.worth-label{font-size:12px;color:var(--muted);margin-bottom:4px}
.worth-val{font-size:26px;font-weight:800;color:var(--navy)}
.claim-btn{display:block;margin-top:12px;padding:11px;background:var(--blue);color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:600;cursor:pointer;text-decoration:none;text-align:center;font-family:inherit;width:100%}
.adds-box{margin-top:12px;padding:12px;background:#f8fafc;border-radius:12px}
.adds-box h4{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--navy);margin-bottom:8px}
.adds-line{height:7px;background:#e2e8f0;border-radius:4px;margin-bottom:5px}
.video-wrap{border-radius:14px;overflow:hidden;position:relative;background:#1a1a2e;aspect-ratio:16/10}
.video-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.play-btn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:56px;height:56px;background:rgba(255,255,255,.92);border-radius:50%;display:flex;align-items:center;justify-content:center;border:none;cursor:pointer}
.play-btn svg{width:22px;height:22px;fill:var(--blue);margin-left:3px}
.vid-bar{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.65));padding:8px 12px;display:flex;align-items:center;gap:8px;color:#fff;font-size:11px}
.vid-bar .prog{flex:1;height:3px;background:rgba(255,255,255,.3);border-radius:2px}
.today-claim{margin-top:12px;background:#e3f2fd;border-radius:14px;padding:14px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;color:#1565c0;font-size:15px;cursor:pointer;text-decoration:none}
.side-menu{padding:8px}
.menu-link{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:10px;text-decoration:none;color:var(--navy);font-size:13.5px;font-weight:500;cursor:pointer;border:none;background:transparent;width:100%;font-family:inherit;text-align:left}
.menu-link:hover{background:#f1f5f9}
.menu-link .mi{width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.menu-link .mi svg{width:16px;height:16px}
.menu-link .val{margin-left:auto;font-weight:700;color:#1565c0;font-size:14px}
.mi-yellow{background:#fff8e1}.mi-yellow svg{fill:#f9a825}
.mi-blue{background:#e3f2fd}.mi-blue svg{fill:#1e88e5}
.mi-green{background:#e8f5e9}.mi-green svg{fill:#43a047}
.mi-purple{background:#f3e5f5}.mi-purple svg{fill:#8e24aa}
.mi-red{background:#fce4ec}.mi-red svg{fill:#e53935}
.mi-teal{background:#e0f2f1}.mi-teal svg{fill:#00897b}
/* Modal popup */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9999;align-items:center;justify-content:center;padding:20px}
.modal-overlay.show{display:flex}
.modal-box{background:#fff;border-radius:16px;padding:28px 24px;max-width:360px;width:100%;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.modal-box h3{font-size:18px;color:var(--navy);margin-bottom:10px}
.modal-box p{font-size:14px;color:#555;line-height:1.5;margin-bottom:18px}
.modal-box button{padding:11px 28px;background:var(--blue);color:#fff;border:none;border-radius:10px;font-weight:600;cursor:pointer;font-family:inherit}
.admin-layout{display:flex;min-height:100vh}
.admin-side{width:240px;background:#0d1b4c;color:#fff;padding:20px 0;flex-shrink:0}
.admin-side h2{padding:0 18px 18px;font-size:16px;border-bottom:1px solid rgba(255,255,255,.1)}
.admin-side a{display:block;padding:11px 18px;color:rgba(255,255,255,.75);text-decoration:none;font-size:13.5px}
.admin-side a:hover,.admin-side a.active{background:rgba(255,255,255,.1);color:#fff}
.admin-main{flex:1;padding:28px;background:var(--bg)}
.admin-main h1{font-size:22px;color:var(--navy);margin-bottom:18px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:20px}
.stat{background:#fff;border-radius:12px;padding:18px;text-align:center;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.stat .n{font-size:28px;font-weight:800;color:#1565c0}
.stat .l{font-size:12px;color:var(--muted);margin-top:4px}
.tbl-card{background:#fff;border-radius:12px;box-shadow:0 2px 10px rgba(0,0,0,.05);overflow:auto}
table{width:100%;border-collapse:collapse}
th,td{padding:11px 14px;text-align:left;border-bottom:1px solid #f1f5f9;font-size:13px}
th{background:#f8fafc;font-weight:600;color:var(--navy)}
.badge{display:inline-block;padding:3px 10px;border-radius:10px;font-size:11px;font-weight:600}
.badge-pending{background:#fff3e0;color:#e65100}
.badge-approved{background:#e8f5e9;color:#2e7d32}
.badge-rejected{background:#ffebee;color:#c62828}
.badge-active{background:#e8f5e9;color:#2e7d32}
.box{background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 10px rgba(0,0,0,.05);margin-bottom:16px}
.box h3{font-size:15px;color:var(--navy);margin-bottom:12px}
.btn-sm{padding:5px 12px;font-size:12px;border-radius:6px;border:none;cursor:pointer;font-weight:600;text-decoration:none;display:inline-block;font-family:inherit}
.btn-sm-green{background:#43a047;color:#fff}
.btn-sm-red{background:#e53935;color:#fff}
.hidden{display:none!important}
.mt-16{margin-top:16px}
