
/* =========================================
   ADMIN PANEL - PROFESSIONAL RESPONSIVE UI
========================================= */

.admin-body {
    background:
        radial-gradient(ellipse at top, rgba(137,24,31,.22), transparent 65%),
        #0a0506;
    color: #f7ecdc;
    min-height: 100vh;
}

.admin-body .site-header {
    min-height: 70px;
    padding: 14px clamp(16px, 4vw, 50px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(27,9,13,.95);
    border-bottom: 1px solid var(--line);
}

.admin-body .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--gold-light);
}

.admin-body .brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg,#ffe4a0,#a31622);
    color: #26090d;
    font-size: 20px;
}

.admin-body .header-link {
    color: var(--gold);
    font-weight: 700;
}

.admin-container {
    width: min(1050px, calc(100% - 32px));
    margin: 40px auto 70px;
}

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

.admin-body h1 {
    font-size: clamp(25px,4vw,34px);
    margin: 5px 0;
    color: var(--gold-light);
}

.admin-body h2 {
    font-size: 19px;
    margin: 0 0 12px;
    color: var(--gold-light);
}

.admin-card {
    padding: clamp(18px,3vw,28px);
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg,#241016,#13090c);
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

.login-card {
    width: min(460px,100%);
    margin: 70px auto;
}

.eyebrow {
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.muted,
.admin-body .hint {
    color: var(--muted);
    font-size: 13px;
}

.admin-body label {
    display: block;
    margin-bottom: 8px;
    color: #f3dfc3;
    font-size: 13px;
    font-weight: 700;
}

.admin-body input,
.admin-body textarea {
    width: 100%;
    min-height: 45px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(242,198,109,.23);
    border-radius: 10px;
    background: #100709;
    color: #fff0d8;
    font: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.admin-body textarea {
    min-height: 130px;
    resize: vertical;
}

.admin-body input:focus,
.admin-body textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(242,198,109,.10);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 18px;
    margin-top: 20px;
}

.form-grid .span-2 {
    grid-column: span 2;
}

.button {
    min-height: 43px;
    padding: 10px 19px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.button-primary {
    border: 1px solid #e4b75e;
    background: linear-gradient(110deg,#971521,#c02a32);
    color: #fff2d7;
}

.button-primary:hover {
    background: linear-gradient(110deg,#b51e2c,#dc3542);
    transform: translateY(-1px);
}

.button-outline {
    background: transparent;
    color: var(--gold-light);
    border: 1px solid var(--line);
}

.button-danger {
    background: #551019;
    border: 1px solid #a52a35;
    color: #ffe2df;
}

.full-button {
    width: 100%;
}

.count-pill {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 30px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.players-editor,
.prizes-editor {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.players-editor > *,
.prizes-editor > * {
    min-width: 0;
}

.admin-body .warning-card {
    border-color: rgba(242,198,109,.4);
    background: linear-gradient(145deg,#27130d,#16090b);
}

.error {
    color: #ff7373;
}

.save-status {
    margin-top: 16px;
    color: var(--gold);
    font-weight: 700;
}

/* Hilangkan tombol Lihat Lebih Banyak di Top Turnover */
.leaderboard-section .more-button {
    display: none !important;
}

/* Responsive */
@media(max-width:620px) {
    .admin-container {
        width: calc(100% - 24px);
        margin: 25px auto 45px;
    }

    .admin-card {
        padding: 17px;
        border-radius: 14px;
    }

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

    .form-grid .span-2 {
        grid-column: span 1;
    }

    .admin-title-row {
        align-items: flex-start;
    }

    .admin-body .button {
        max-width: 100%;
    }

    .card-title-row {
        align-items: flex-start;
    }
}

@media(prefers-reduced-motion:reduce) {
    .admin-body *,
    .admin-body *::before,
    .admin-body *::after {
        transition: none !important;
        animation: none !important;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Josefin+Sans:wght@700&display=swap');
:root{--bg:#0a0506;--panel:#1b090d;--panel2:#2b0c12;--line:rgba(242,198,109,.28);--text:#f7ecdc;--muted:#c4aa98;--gold:#f2c66d;--gold-light:#ffe4a0;--red:#a31622;--red-bright:#bd202d}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:18px}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse 78% 40% at 50% 0%,rgba(137,24,31,.38),transparent 72%),#0a0506;color:var(--text);font-family:Inter,Arial,sans-serif;font-size:14px;line-height:1.6}
a{color:inherit;text-decoration:none}
button{font:inherit}
.page-shell{min-height:100vh;overflow:hidden}
.cover-header{height:240px;position:relative;overflow:hidden;background:#190609;border-bottom:1px solid rgba(242,198,109,.42)}
.site-background{position:absolute;inset:0;background:
 radial-gradient(ellipse 55% 85% at 50% 10%,rgba(173,34,35,.52),transparent 76%),
 linear-gradient(rgba(242,198,109,.09) 1px,transparent 1px),
 linear-gradient(90deg,rgba(242,198,109,.09) 1px,transparent 1px);
 background-size:auto,50px 50px,50px 50px}
.site-background:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,#0a0506 100%)}
.cover-caption{position:absolute;z-index:2;top:28px;left:50%;transform:translateX(-50%);color:rgba(255,228,160,.72);font-size:10px;font-weight:800;letter-spacing:.24em;white-space:nowrap}
.global-particles-bg{position:absolute;inset:0;pointer-events:none;z-index:1}
.particle{position:absolute;bottom:-80px;background:linear-gradient(to top,transparent,var(--gold));animation:rise linear infinite;opacity:.65}
.particle.square{width:4px;height:4px;background:var(--gold);box-shadow:0 0 12px var(--gold)}
@keyframes rise{to{transform:translateY(-330px);opacity:0}}
.profile-layout{position:relative;width:min(520px,calc(100% - 32px));margin:-75px auto 0;padding-bottom:30px;z-index:3}
.profile-picture{width:116px;height:116px;border-radius:50%;margin:0 auto -55px;position:relative;z-index:4;padding:7px;background:linear-gradient(145deg,#ffe5a0,#a56a22 55%,#f2c66d);box-shadow:0 0 0 6px rgba(40,10,12,.88),0 0 0 7px rgba(242,198,109,.36),0 14px 35px rgba(0,0,0,.65)}
.profile-logo{height:100%;width:100%;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 35% 25%,#76202a,#22090e 70%);border:2px solid #f8d98e;color:#ffe4a0;font-family:'Josefin Sans',sans-serif;font-size:54px;text-shadow:0 3px 0 #6a2419,0 0 20px rgba(255,201,104,.35)}
.identity-card{text-align:center;padding:75px 28px 25px;border:1px solid rgba(242,198,109,.48);border-radius:22px;background:linear-gradient(145deg,rgba(77,13,21,.97),rgba(31,9,13,.98) 60%,rgba(15,7,9,.99));box-shadow:inset 0 1px 0 rgba(255,228,160,.12),0 18px 55px rgba(0,0,0,.42)}
.identity-title{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.identity-title h1{font-family:'Josefin Sans',Inter,sans-serif;font-size:clamp(24px,5vw,31px);letter-spacing:.055em;color:#ffe6ad;text-shadow:0 2px 0 #6b2112,0 0 21px rgba(255,169,64,.25);margin:0}
.verified-mark{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#ffe7a5,#d89b3c);color:#38120d;font-weight:900}
.identity-card p{margin:10px 0 14px;color:#e8cdb5;font-size:15px;line-height:1.7}
.identity-meta{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid rgba(242,198,109,.27);border-radius:99px;color:#e8c58b;font-size:11px}
.live-dot{width:7px;height:7px;border-radius:50%;background:#8ed28e;box-shadow:0 0 9px #8ed28e}
.action-links{margin-top:25px}
.link-button{display:flex;align-items:center;width:100%;min-height:72px;padding:13px 18px;margin:0 0 14px;border:1px solid #c78c3b;border-radius:14px;color:#fff3da;background:linear-gradient(110deg,#4d0d15 0%,#971521 51%,#5a0c14 100%);box-shadow:inset 0 1px 0 rgba(255,231,168,.24),0 6px 18px rgba(0,0,0,.32);font-weight:700;font-size:16px;text-align:left;cursor:pointer;position:relative;overflow:hidden;transition:transform .2s,background .2s,border-color .2s,box-shadow .2s}
.link-button:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(#ffe1a0,#be7824)}
.link-button:hover{background:linear-gradient(110deg,#6d101b 0%,#bf2531 51%,#78101c 100%);border-color:#ffe1a0;color:#fff;transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.39),0 0 18px rgba(205,66,41,.17)}
.link-button:focus-visible{outline:3px solid #ffe4a0;outline-offset:4px}
.icon-glow-circle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;margin-right:15px;border-radius:50%;border:1px solid rgba(255,226,158,.6);background:rgba(29,5,7,.34);box-shadow:inset 0 0 12px rgba(255,205,113,.13);color:#ffe6ad;font-size:24px}
.button-arrow{margin-left:auto;color:#ffe0a0;font-size:21px}
.leaderboard-section{margin-top:37px}
.section-kicker{font-size:10px;font-weight:800;letter-spacing:.18em;color:#e9bd69}
.section-title-row{display:flex;align-items:center;justify-content:space-between;margin:5px 0 15px}
h2{font-size:22px;letter-spacing:-.035em;color:#ffedcf;margin:0}
.period-pill{font-size:10px;letter-spacing:.1em;font-weight:800;color:#e9cf9c;border:1px solid rgba(242,198,109,.36);background:rgba(58,15,18,.45);border-radius:99px;padding:6px 10px}
.table-wrap{overflow:hidden;border:1px solid rgba(242,198,109,.36);border-radius:14px;background:linear-gradient(145deg,#1c0a0e,#100709);box-shadow:0 12px 30px rgba(0,0,0,.2)}
.table-head,.player-row{display:grid;grid-template-columns:62px 1fr minmax(130px,190px);align-items:center;gap:12px;padding:12px 16px}
.table-head{background:linear-gradient(90deg,#3e0d14,#21090d);color:#d9b77d;font-size:10px;font-weight:800;letter-spacing:.12em}
.amount-heading{text-align:right}
.player-row{min-height:59px;border-top:1px solid rgba(242,198,109,.12)}
.player-row:first-child{border-top:0}
.rank{width:30px;height:30px;border-radius:8px;background:#35141a;color:#f4dfbd;border:1px solid rgba(242,198,109,.16);display:grid;place-items:center;font-size:12px;font-weight:800}
.rank.top-1{color:#2a1607;background:linear-gradient(145deg,#ffe8a3,#c68a2e);border-color:#ffe4a0;box-shadow:0 0 13px rgba(242,198,109,.17)}
.rank.top-2{background:linear-gradient(145deg,#e5e3d8,#92908a);color:#201a17}
.rank.top-3{background:linear-gradient(145deg,#e5ae86,#985333);color:#29130b}
.player-name{font-size:13px;font-weight:700;color:#f3e7d7;overflow-wrap:anywhere}
.turnover{text-align:right;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;color:#f3ce83}
.more-button{min-height:60px;margin-top:13px;font-size:14px}
.more-button .icon-glow-circle{width:38px;height:38px;min-width:38px;font-size:20px}
.data-note{font-size:11px;color:#c4aa98;margin:10px 2px 0}
.empty-state{text-align:center;color:#c4aa98;padding:20px}
.terms-section{margin-top:38px;padding:24px 0 18px;border-top:1px solid rgba(242,198,109,.3)}
.terms-section h2{margin:6px 0 13px}
.terms-list{padding-left:21px;color:#ddcbb8;margin:0}
.terms-list li{padding:5px 0;line-height:1.7}
.site-footer{text-align:center;border-top:1px solid rgba(242,198,109,.3);margin-top:30px;padding:25px 8px 12px;color:#c4aa98}
.footer-brand{font-family:'Josefin Sans',sans-serif;letter-spacing:.09em;color:#e6c99b;font-size:13px}
.footer-brand strong{color:#ffe4a0}
.site-footer p{font-size:12px;margin:8px 0 12px}
.site-footer small{font-size:11px;color:#a98e7a}
.mobile-nav{display:none}
@media(max-width:620px){
 .cover-header{height:205px}
 .profile-layout{width:calc(100% - 28px);margin-top:-68px;padding-bottom:95px}
 .profile-picture{width:106px;height:106px;margin-bottom:-50px}
 .profile-logo{font-size:49px}
 .identity-card{padding:68px 18px 22px;border-radius:19px}
 .identity-card p{font-size:14px}
 .action-links{margin-top:20px}
 .link-button{min-height:65px;padding:11px 14px;font-size:14px}
 .icon-glow-circle{width:41px;height:41px;min-width:41px;margin-right:12px}
 .leaderboard-section{margin-top:31px}
 .table-head,.player-row{grid-template-columns:48px 1fr minmax(112px,130px);gap:8px;padding:11px 12px}
 .player-row{min-height:55px}
 .player-name,.turnover{font-size:12px}
 .mobile-nav{position:fixed;z-index:30;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:9px 11px calc(9px + env(safe-area-inset-bottom));background:rgba(10,5,6,.96);border-top:1px solid rgba(242,198,109,.34);backdrop-filter:blur(14px)}
 .mobile-nav-item{display:flex;align-items:center;justify-content:center;gap:7px;min-height:43px;border:1px solid #8e5d2c;border-radius:10px;background:linear-gradient(110deg,#351017,#60121c);color:#f7e5c6;font-size:12px;font-weight:800;cursor:pointer}
 .mobile-nav-primary{background:linear-gradient(110deg,#971521,#c02a32);border-color:#e0ad59;color:#fff5df}
 .nav-icon{font-size:18px;line-height:1}
}
@media(prefers-reduced-motion:reduce){.particle{animation:none}.link-button{transition:none}}

/* Prize list: reward block placed immediately above terms */
.prizes-section{margin-top:36px;padding:23px 0 18px;border-top:1px solid rgba(242,198,109,.3)}
.prize-list{overflow:hidden;border:1px solid rgba(242,198,109,.32);border-radius:14px;background:linear-gradient(145deg,#1c0a0e,#100709);box-shadow:0 12px 30px rgba(0,0,0,.2)}
.prize-row{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;min-height:55px;padding:9px 14px;border-top:1px solid rgba(242,198,109,.12)}
.prize-row:first-child{border-top:0}
.prize-rank{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;background:#35141a;border:1px solid rgba(242,198,109,.18);color:#f4dfbd;font-size:12px;font-weight:800}
.prize-top-1{background:linear-gradient(145deg,#ffe8a3,#c68a2e);color:#2a1607}
.prize-top-2{background:linear-gradient(145deg,#e5e3d8,#92908a);color:#201a17}
.prize-top-3{background:linear-gradient(145deg,#e5ae86,#985333);color:#29130b}
.prize-label{color:#f3e7d7;font-size:13px;font-weight:700;overflow-wrap:anywhere}
.prize-tag{padding:4px 8px;border:1px solid rgba(242,198,109,.25);border-radius:99px;color:#e9c77f;background:rgba(58,15,18,.42);font-size:9px;font-weight:800;letter-spacing:.09em;white-space:nowrap}
.prizes-editor{display:grid;gap:8px;margin:17px 0}
.prize-edit-row{display:grid;grid-template-columns:42px 1fr;gap:9px;align-items:center}
.prize-edit-row input{margin:0}
@media(max-width:620px){.prize-row{grid-template-columns:36px 1fr auto;gap:8px;padding:9px 10px}.prize-label{font-size:12px}.prize-tag{font-size:8px;padding:4px 6px}}


.profile-logo {
    height: 100%;
    width: 100%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: #22090e;
}

.profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
