:root {
    --accent: #f0b90b;
    --accent-2: #ffd666;
    --blue: #1890ff;
    --glass-bg: rgba(15, 23, 42, .72);
    --glass-border: rgba(255,255,255,.12);
    --text: #f8fafc;
    --muted: #a9b4c5;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: 'Kanit', sans-serif;
    color: var(--text);
}

body {
    background: #07111f;
    overflow-x: hidden;
}

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(rgba(5, 12, 24, .72), rgba(5, 12, 24, .88)),
        url('/shop/Gemini.webp') center/cover no-repeat;
}

.bg-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(240,185,11,.12), transparent 38%);
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,.96);
    padding: 9px 26px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: 0 8px 30px rgba(0,0,0,.22);
    z-index: 100;
    white-space: nowrap;
}

.nav-item {
    text-decoration: none;
    color: #3d4652;
    font-weight: 600;
    font-size: 13px;
    transition: .2s;
}
.nav-item:hover { color: #d99e00; }
.nav-active {
    background: linear-gradient(90deg,#f0b90b,#d99e00);
    color: #111 !important;
    padding: 6px 18px;
    border-radius: 20px;
}

.logo-animation-box {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-logo-char {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.25));
    animation: logoBounce 3s infinite ease-in-out;
}
@keyframes logoBounce {
    0%,100% { transform: scale(1) translateY(0); }
    30% { transform: scale(1.08,.92); }
    50% { transform: scale(.95,1.05) translateY(-5px); }
    70% { transform: scale(1.02,.98); }
}

.container {
    width: min(100% - 32px, 680px);
    margin: 0 auto;
    padding: 150px 0 70px;
}

.user-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 101;
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,.96);
    color: #3d4652;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,.22);
}
.user-badge i.fa-circle-user { color: var(--accent); font-size: 16px; }
.user-badge strong { color: #111; font-weight: 700; }
.user-badge button {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.06);
    color: #6b7684;
    cursor: pointer;
    transition: .2s;
}
.user-badge button:hover { background: rgba(239,68,68,.12); color: #ef4444; }

@media (max-width: 600px) {
    .user-badge { top: 12px; right: 12px; padding: 6px 10px; font-size: 11px; }
}

input[readonly] {
    opacity: .75;
    cursor: not-allowed;
    background: rgba(255,255,255,.03);
}

.hero {
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 3px 18px rgba(0,0,0,.45);
}
.usdt-badge {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 6px 13px;
    border: 1px solid rgba(240,185,11,.35);
    border-radius: 999px;
    color: var(--accent-2);
    background: rgba(240,185,11,.08);
    font-size: 12px;
    letter-spacing: .06em;
}
.hero h1 { margin: 12px 0 4px; font-size: clamp(30px,5vw,42px); }
.hero h1 span { color: var(--accent); }
.hero p { margin: 0; color: #cbd5e1; font-size: 14px; }

.glass-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.topup-box {
    padding: 30px;
    border-top: 4px solid var(--accent);
}

.box-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.coin-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg,#f8d45a,#e6a900);
    color: #1a1a1a;
    font-size: 29px;
    font-weight: 700;
    box-shadow: 0 5px 18px rgba(240,185,11,.2);
}
.box-heading h2 { margin: 0; font-size: 24px; }
.box-heading p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }

.field { margin-bottom: 18px; }
.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 500;
}
.field small { display:block; margin-top:6px; color:#8e9bad; font-size:11px; }

input, select {
    width: 100%;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 11px;
    padding: 12px 14px;
    background: rgba(255,255,255,.055);
    color: #fff;
    outline: none;
    font: 400 14px 'Kanit', sans-serif;
    transition: .2s;
}
input:focus, select:focus {
    border-color: rgba(240,185,11,.65);
    box-shadow: 0 0 0 3px rgba(240,185,11,.08);
}
select option { background: #172235; color: #fff; }

.amount-input { position: relative; }
.amount-input input { padding-right: 70px; }
.amount-input span {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
}

.wallet-card {
    margin: 5px 0 20px;
    padding: 16px;
    border-radius: 15px;
    background: rgba(240,185,11,.055);
    border: 1px solid rgba(240,185,11,.18);
}
.wallet-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e9edf3;
    font-size: 12px;
    margin-bottom: 10px;
}
.network-pill {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(240,185,11,.15);
    color: var(--accent-2);
    font-size: 11px;
    font-weight: 600;
}
.wallet-address {
    word-break: break-all;
    padding: 11px;
    border-radius: 9px;
    background: rgba(0,0,0,.22);
    color: #e2e8f0;
    font: 12px/1.5 Consolas, monospace;
}
.copy-btn {
    width: 100%;
    margin-top: 9px;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    font: 400 12px 'Kanit', sans-serif;
}
.copy-btn:hover { background: rgba(255,255,255,.1); }

.notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 19px;
    padding: 12px 13px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.55;
}
.notice.warning {
    color: #ffe7a3;
    background: rgba(245,158,11,.08);
    border: 1px solid rgba(245,158,11,.2);
}
.notice i { color: #f59e0b; margin-top: 3px; }

.submit-btn {
    width: 100%;
    border: 0;
    border-radius: 11px;
    padding: 13px 20px;
    background: linear-gradient(135deg,#f6c72e,#dca300);
    color: #161616;
    font: 700 15px 'Kanit', sans-serif;
    cursor: pointer;
    box-shadow: 0 7px 20px rgba(240,185,11,.16);
    transition: .2s;
}
.submit-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.submit-btn:disabled { opacity:.65; cursor:wait; transform:none; }

.result {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.6;
}
.result.success { background:rgba(34,197,94,.1); border:1px solid rgba(34,197,94,.25); color:#b9f6ca; }
.result.error { background:rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.25); color:#fecaca; }

.info-box, .policy-box {
    margin-top: 18px;
    padding: 22px 25px;
}
.info-box { border-top: 3px solid var(--blue); }
.policy-box { border-top: 3px solid #64748b; }
.info-box h3, .policy-box h3 {
    margin: 0 0 12px;
    font-size: 15px;
}
.info-box h3 i { color: #38bdf8; }
.policy-box h3 i { color: #94a3b8; }
.info-box ol, .policy-box ul {
    margin: 0;
    padding-left: 21px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.8;
}
.pending-note {
    margin: 13px 0 0;
    color: #8e9bad;
    font-size: 10px;
}

.footer {
    text-align: center;
    padding: 18px 12px 25px;
    color: rgba(255,255,255,.5);
    font-size: 10px;
    background: rgba(4,10,20,.88);
    border-top: 1px solid rgba(255,255,255,.07);
}
.footer p { margin: 8px 0 4px; }
.footer-links a { color:#7dd3fc; text-decoration:none; margin:0 5px; }

@media (max-width: 850px) {
    .navbar { gap: 9px; padding: 8px 12px; }
    .nav-item { font-size: 10px; }
    .nav-active { padding: 5px 10px; }
    .logo-animation-box { height: 40px; }
}
@media (max-width: 600px) {
    .navbar {
        width: calc(100% - 20px);
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }
    .navbar::-webkit-scrollbar { display:none; }
    .container { width: min(100% - 20px, 680px); padding-top: 125px; }
    .topup-box { padding: 21px 17px; }
    .info-box, .policy-box { padding: 18px; }
    .hero h1 { font-size: 30px; }
}
