*{
    box-sizing:border-box;
}

:root{
    --bg:#07111f;
    --bg2:#0d1b2a;
    --panel:rgba(16,26,43,0.72);
    --line:rgba(255,255,255,0.09);
    --text:#eaf2ff;
    --muted:#9db0cb;
    --primary:#4f8cff;
    --primary-2:#7c5cff;
    --danger:#e5484d;
    --shadow:0 20px 60px rgba(0,0,0,.35);
}

html,body{
    margin:0;
    padding:0;
    font-family:Inter,Arial,sans-serif;
    background:
        radial-gradient(circle at top left, rgba(79,140,255,.18), transparent 30%),
        radial-gradient(circle at top right, rgba(124,92,255,.16), transparent 28%),
        linear-gradient(180deg, var(--bg), var(--bg2));
    color:var(--text);
    min-height:100%;
}

a{
    color:#9ec2ff;
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

button,.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:13px 18px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,var(--primary),var(--primary-2));
    color:#fff;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 10px 24px rgba(79,140,255,.24);
    transition:.2s ease;
}

button:hover,.btn:hover{
    transform:translateY(-1px);
}

.btn.secondary{
    background:rgba(255,255,255,.08);
    box-shadow:none;
    border:1px solid rgba(255,255,255,.08);
}

button.danger{
    background:linear-gradient(135deg,#ef4444,#b91c1c);
    box-shadow:none;
}

.small-btn{
    padding:10px 14px;
    font-size:14px;
    border-radius:12px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="file"],
textarea{
    width:100%;
    padding:14px 16px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.05);
    color:#fff;
    outline:none;
    font-size:15px;
}

input::placeholder,
textarea::placeholder{
    color:#8ea3bf;
}

textarea{
    resize:vertical;
    min-height:120px;
}

label{
    display:block;
    margin:0 0 10px;
    font-weight:700;
    color:#dbe7f8;
}

small.helper-text{
    display:block;
    margin-top:8px;
    color:var(--muted);
}

.alert{
    padding:16px 18px;
    border-radius:16px;
    margin-bottom:18px;
    border:1px solid transparent;
}

.alert.error{
    background:rgba(229,72,77,.12);
    border-color:rgba(229,72,77,.28);
    color:#ffd4d6;
}

.alert.success{
    background:rgba(31,157,104,.12);
    border-color:rgba(31,157,104,.28);
    color:#dcfff0;
}

.auth-body{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.auth-shell{
    width:min(1100px,100%);
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:28px;
    align-items:stretch;
}

.brand-block,
.auth-card,
.panel-card,
.stat-card,
.sidebar,
.public-card-v2{
    background:var(--panel);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border:1px solid var(--line);
    box-shadow:var(--shadow);
}

.brand-block{
    border-radius:28px;
    padding:42px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:420px;
}

.brand-badge,
.hero-badge,
.eyebrow{
    display:inline-flex;
    width:max-content;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.08);
    color:#cfe0ff;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.brand-block h1{
    font-size:48px;
    line-height:1.05;
    margin:18px 0 16px;
}

.brand-block p{
    max-width:560px;
    color:var(--muted);
    font-size:18px;
    line-height:1.6;
}

.auth-card{
    border-radius:28px;
    padding:32px;
}

.auth-card h2{
    margin-top:0;
    margin-bottom:18px;
}

.dashboard-shell{
    display:grid;
    grid-template-columns:280px 1fr;
    min-height:100vh;
}

.sidebar{
    margin:20px 0 20px 20px;
    border-radius:24px;
    padding:26px 20px;
    position:sticky;
    top:20px;
    height:calc(100vh - 40px);
}

.logo{
    font-size:24px;
    font-weight:900;
    letter-spacing:-0.02em;
    margin-bottom:30px;
}

.sidebar-nav{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.sidebar-nav a{
    padding:14px 16px;
    border-radius:14px;
    color:#d7e6ff;
    font-weight:700;
    background:transparent;
    border:1px solid transparent;
}

.sidebar-nav a.active,
.sidebar-nav a:hover{
    background:rgba(255,255,255,.07);
    border-color:rgba(255,255,255,.08);
}

.main-content{
    padding:28px;
}

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

.header-row h1{
    margin:8px 0 0;
    font-size:34px;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-bottom:22px;
}

.stat-card{
    border-radius:22px;
    padding:22px;
}

.stat-card span{
    display:block;
    color:var(--muted);
    margin-bottom:10px;
}

.stat-card strong{
    font-size:34px;
}

.card.panel-card{
    border-radius:24px;
    padding:24px;
}

.panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
    flex-wrap:wrap;
}

.panel-head h2{
    margin:0 0 8px;
}

.panel-head p{
    margin:0;
    color:var(--muted);
}

.empty-state{
    text-align:center;
    padding:48px 20px;
}

.cards-grid-admin{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
    gap:18px;
}

.mini-card{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.07);
    border-radius:22px;
    padding:18px;
}

.mini-card-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
}

.admin-number{
    margin:0 0 8px;
    color:#88b7ff;
    font-weight:800;
}

.mini-card h3{
    margin:0 0 6px;
    font-size:21px;
}

.slug-text{
    margin:0;
    color:var(--muted);
    word-break:break-all;
}

.status-pill{
    display:inline-flex;
    padding:8px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
}

.status-pill.opened{
    background:rgba(31,157,104,.18);
    color:#8ef2c8;
}

.status-pill.fresh{
    background:rgba(79,140,255,.18);
    color:#b9d2ff;
}

.mini-meta{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    color:var(--muted);
    font-size:14px;
    margin:12px 0;
}

.mini-url-box{
    margin:14px 0;
}

.mini-url-box input{
    font-size:14px;
}

.mini-info{
    color:#dbe7f8;
    font-size:14px;
    line-height:1.55;
}

.recent-ips{
    margin-top:12px;
    padding:12px;
    border-radius:16px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.06);
}

.ip-row{
    display:flex;
    justify-content:space-between;
    gap:10px;
    padding:6px 0;
    font-size:14px;
    color:#dbe7f8;
}

.ip-row small{
    color:var(--muted);
}

.qr-box{
    margin:16px 0;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#fff;
    border-radius:18px;
    padding:12px;
}

.qr-box img{
    width:170px;
    height:170px;
    object-fit:contain;
}

.success-qr{
    width:180px;
    background:#fff;
    padding:12px;
    border-radius:16px;
}

.success-actions{
    margin-top:14px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.mini-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:16px;
}

.mini-actions form{
    margin:0;
}

.modern-form{
    margin-top:8px;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
    margin-bottom:22px;
}

.form-col-full{
    grid-column:1 / -1;
}

.public-body{
    min-height:100vh;
    padding:24px;
}

.public-wrapper{
    width:min(1000px,100%);
    margin:0 auto;
}

.hero-badge{
    margin:0 auto 16px;
}

.public-card-v2{
    border-radius:30px;
    padding:24px;
}

.timer-modern{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    padding:15px 18px;
    border-radius:18px;
    margin-bottom:18px;
}

.timer-modern span{
    color:var(--muted);
}

.timer-modern strong{
    font-size:20px;
}

.reveal-header{
    margin-bottom:18px;
}

.reveal-header h1{
    font-size:42px;
    line-height:1.1;
    margin:0 0 14px;
}

.modern-meta{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.modern-meta span{
    padding:10px 14px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    border-radius:999px;
    color:#d7e6ff;
}

.modern-scratch{
    position:relative;
    min-height:520px;
    border-radius:26px;
    overflow:hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)),
        #081320;
    border:1px solid rgba(255,255,255,.08);
}

.hidden-content{
    position:relative;
    z-index:1;
    padding:28px;
    min-height:520px;
}

.modern-description{
    font-size:18px;
    line-height:1.75;
    color:#e9f2ff;
    margin-bottom:22px;
}

.modern-gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
}

.gallery-card{
    background:rgba(255,255,255,.05);
    border-radius:20px;
    padding:10px;
    border:1px solid rgba(255,255,255,.07);
}

.gallery-card img{
    width:100%;
    height:260px;
    object-fit:cover;
    border-radius:14px;
}

#scratchCanvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:2;
    cursor:crosshair;
}

.scratch-label-modern{
    position:absolute;
    inset:0;
    z-index:3;
    pointer-events:none;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.scratch-label-modern div{
    background:rgba(0,0,0,.28);
    border:1px solid rgba(255,255,255,.10);
    border-radius:20px;
    padding:18px 24px;
    backdrop-filter:blur(10px);
}

.scratch-label-modern span{
    display:block;
    font-size:28px;
    font-weight:900;
    margin-bottom:6px;
}

.scratch-label-modern small{
    color:#d9e8ff;
    font-size:14px;
}

@media (max-width: 980px){
    .auth-shell{
        grid-template-columns:1fr;
    }

    .dashboard-shell{
        grid-template-columns:1fr;
    }

    .sidebar{
        position:relative;
        top:auto;
        height:auto;
        margin:18px;
    }

    .main-content{
        padding:18px;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .reveal-header h1{
        font-size:32px;
    }
}

@media (max-width: 640px){
    .brand-block{
        padding:28px;
        min-height:auto;
    }

    .brand-block h1{
        font-size:34px;
    }

    .auth-card,
    .public-card-v2,
    .card.panel-card{
        padding:18px;
        border-radius:22px;
    }

    .modern-scratch,
    .hidden-content{
        min-height:420px;
    }

    .hidden-content{
        padding:18px;
    }

    .gallery-card img{
        height:200px;
    }

    .scratch-label-modern span{
        font-size:22px;
    }

    .timer-modern{
        flex-direction:column;
        align-items:flex-start;
    }

    .mini-actions{
        flex-direction:column;
    }

    .mini-actions .btn,
    .mini-actions button{
        width:100%;
    }

    .reveal-controls{
        margin: 0 0 18px;
        display: flex;
        justify-content: flex-start;
    }

    .reveal-controls{
    margin: 0 0 18px;
    display: flex;
    justify-content: flex-start;
}
    .reveal-controls{
    margin: 0 0 18px;
    display: flex;
    justify-content: flex-start;
}

    .gallery-clickable{
    cursor: zoom-in;
}

    .lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

    .lightbox.show{
    display: flex;
}

    .lightbox-image{
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

    .lightbox-close{
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 42px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    font-weight: bold;
}  
    
    .public-number{
    display:inline-flex;
    margin-bottom:12px;
    padding:10px 14px;
    border-radius:999px;
    background:rgba(79,140,255,.16);
    border:1px solid rgba(79,140,255,.24);
    color:#b9d2ff;
    font-weight:800;
    font-size:14px;
    letter-spacing:.04em;
}
    
    .public-number{
    display:inline-flex;
    margin-bottom:12px;
    padding:10px 14px;
    border-radius:999px;
    background:rgba(79,140,255,.16);
    border:1px solid rgba(79,140,255,.24);
    color:#b9d2ff;
    font-weight:800;
    font-size:14px;
    letter-spacing:.04em;
}

.claim-badge{
    margin-top:12px;
    display:inline-flex;
    padding:9px 13px;
    border-radius:999px;
    background:rgba(31,157,104,.16);
    border:1px solid rgba(31,157,104,.28);
    color:#baf5dc;
    font-weight:700;
    font-size:13px;
}

.reveal-controls{
    margin: 0 0 18px;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.toggle-row{
    display:flex;
    align-items:center;
    gap:12px;
    cursor:pointer;
}

.toggle-row input[type="checkbox"]{
    width:18px;
    height:18px;
    accent-color:#4f8cff;
}
}