:root {
    --bg: #070d18;
    --bg-soft: #0b1424;
    --card: #1b2a40;
    --card-deep: #111d30;
    --line: #405878;
    --line-soft: rgba(119, 154, 199, .22);
    --text: #f4f7fc;
    --muted: #8e9db3;
    --blue: #347cf2;
    --blue-light: #65a7ff;
    --cyan: #62e4ff;
    --gold: #f5d77f;
    --green: #54dda5;
    --danger: #ff6f83;
    --radius: 18px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -5%, rgba(42, 103, 194, .18), transparent 33rem),
        linear-gradient(180deg, #080f1d 0%, #070d18 55%, #08101d 100%);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .32;
    background-image:
        radial-gradient(circle at 8% 18%, rgba(108,224,255,.7) 0 1px, transparent 1.5px),
        radial-gradient(circle at 82% 13%, rgba(255,215,127,.55) 0 1px, transparent 1.5px),
        radial-gradient(circle at 67% 49%, rgba(112,166,255,.6) 0 1px, transparent 1.5px),
        radial-gradient(circle at 16% 71%, rgba(108,224,255,.5) 0 1px, transparent 1.5px),
        radial-gradient(circle at 89% 82%, rgba(143,119,255,.55) 0 1px, transparent 1.5px);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
svg { display: block; }
.site-container { width: min(684px, calc(100% - 28px)); margin-inline: auto; }
.page-glow {
    position: fixed;
    z-index: -1;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: .09;
    will-change: transform;
    animation: auroraDrift 12s ease-in-out infinite alternate;
}
.page-glow-one { top: 20%; left: -150px; background: #2196ff; }
.page-glow-two { top: 62%; right: -160px; background: #7856ff; animation-delay: -5s; animation-direction: alternate-reverse; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(106, 145, 194, .22);
    background: rgba(7, 14, 26, .92);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.site-header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: min(560px, 75%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(97,219,255,.48), transparent);
}
.nav-wrap {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand { min-width: 0; display: flex; align-items: center; gap: 11px; }
.brand-copy { min-width: 0; }
.brand-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(102, 194, 255, .55);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 0 20px rgba(63, 159, 255, .2);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; line-height: 1.05; letter-spacing: .055em; }
.brand-copy small { display: block; max-width: 220px; margin-top: 5px; overflow: hidden; color: #7188a8; font-size: .52rem; font-weight: 700; letter-spacing: .17em; text-overflow: ellipsis; white-space: nowrap; }
.admin-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(111, 148, 197, .3);
    border-radius: 10px;
    color: #aab8cb;
    background: rgba(17, 28, 45, .56);
    font-size: .7rem;
    font-weight: 700;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.admin-button svg { width: 14px; height: 14px; fill: currentColor; }
.admin-button:hover { color: #fff; border-color: rgba(99, 218, 255, .6); background: rgba(32, 63, 97, .55); }
.contact-links { display: flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 8px; }
.contact-links:empty { display: none; }
.contact-links a, .contact-links .contact-disabled {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(118,155,201,.25);
    border-radius: 8px;
    color: #b7c9df;
    background: rgba(24,40,63,.6);
    font-size: .65rem;
    font-weight: 900;
    transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
}
.contact-links .contact-disabled { opacity: .52; cursor: default; filter: saturate(.7); }
.contact-links a img, .contact-links .contact-disabled img { width: 20px; height: 20px; object-fit: contain; border-radius: 5px; }
.contact-links a:hover { transform: translateY(-2px); color: #fff; border-color: rgba(98,228,255,.58); background: rgba(45,86,131,.75); }
.hero-contact-links {
    justify-content: center;
    gap: 10px;
    margin: 22px auto 0;
}
.hero-contact-links a, .hero-contact-links .contact-disabled {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(14, 29, 49, .84);
    border-color: rgba(93, 157, 215, .3);
    box-shadow: 0 9px 22px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.05);
}
.hero-contact-links a img, .hero-contact-links .contact-disabled img {
    width: 25px;
    height: 25px;
    border-radius: 7px;
}
.hero-contact-links .contact-disabled { opacity: .7; }

/* Hero */
.hero { position: relative; padding: 42px 0 44px; text-align: center; }
.hero::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: -1;
    width: 330px;
    height: 250px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(49,126,225,.16), rgba(79,85,215,.045) 48%, transparent 72%);
}
.hero::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 4px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(111,151,202,.2), transparent);
}
.hero-emblem {
    position: relative;
    width: 122px;
    height: 122px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    animation: emblemFloat 4.5s ease-in-out infinite;
}
.hero-emblem::before, .hero-emblem::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(99,204,255,.16);
    border-radius: 50%;
    pointer-events: none;
}
.hero-emblem::before { inset: -10px; }
.hero-emblem::after { inset: -20px; border-color: rgba(245,215,127,.08); }
.emblem-core {
    position: absolute;
    z-index: 1;
    width: 68px;
    height: 68px;
    overflow: hidden;
    border: 2px solid rgba(255, 218, 126, .9);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 0 22px rgba(255, 199, 83, .28);
}
.emblem-core img { width: 100%; height: 100%; object-fit: cover; }
.emblem-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}
.emblem-crown { z-index: 2; filter: drop-shadow(0 0 6px rgba(118, 211, 255, .28)); }
.emblem-claw { z-index: 3; filter: drop-shadow(0 0 8px rgba(100, 204, 255, .36)); }
.online-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .17em;
}
.online-label i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(84, 221, 165, .1), 0 0 12px rgba(84, 221, 165, .75);
    animation: statusPulse 2.3s ease-in-out infinite;
}
.hero h1 {
    margin: 4px 0 0;
    font-size: clamp(2.45rem, 10vw, 4.1rem);
    line-height: 1;
    letter-spacing: -.045em;
}
.hero h1 span { color: var(--gold); }
.verified-mark {
    display: inline-grid;
    width: .34em;
    height: .34em;
    margin-left: .2em;
    vertical-align: .4em;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #299cec;
    box-shadow: 0 0 13px rgba(41,156,236,.55);
    font-size: .34em;
    font-style: normal;
}
.hero > p {
    max-width: 470px;
    margin: 15px auto 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}
.primary-button, .secondary-button {
    min-width: 150px;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: .72rem;
    font-weight: 750;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.primary-button { background: linear-gradient(135deg, #3b83f6, #5067f2); box-shadow: 0 12px 25px rgba(47, 104, 236, .22); }
.secondary-button { border-color: rgba(112, 148, 195, .32); color: #bdc9d9; background: rgba(13, 23, 39, .55); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.primary-button:hover { box-shadow: 0 15px 30px rgba(47, 104, 236, .35); }
.secondary-button:hover { color: #fff; border-color: rgba(102, 209, 255, .54); }
.hero-stats {
    max-width: 350px;
    margin: 27px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.hero-stats div { position: relative; }
.hero-stats div + div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 3px;
    width: 1px;
    background: rgba(119, 154, 199, .2);
}
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { font-size: .94rem; }
.hero-stats span { margin-top: 4px; color: #6f829e; font-size: .5rem; font-weight: 750; letter-spacing: .08em; }

/* App cards */
.apps-section { padding: 2px 0 35px; scroll-margin-top: 82px; }
.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}
.section-title > div > span, .guide-title > span {
    color: #6d86a8;
    font-size: .5rem;
    font-weight: 800;
    letter-spacing: .18em;
}
.section-title h2, .guide-title h2 {
    margin: 2px 0 0;
    font-size: 1.08rem;
    letter-spacing: .025em;
}
.app-count {
    padding: 6px 9px;
    border: 1px solid rgba(114, 150, 197, .22);
    border-radius: 8px;
    color: #8496ae;
    background: rgba(20, 33, 53, .45);
    font-size: .58rem;
}
.app-list { display: grid; gap: 17px; }
.app-card {
    overflow: hidden;
    border: 1px solid #455e7e;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #213047, #1b293e);
    box-shadow: 0 18px 36px rgba(0,0,0,.27);
    animation: cardEnter .5s both;
    animation-delay: var(--delay);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    box-shadow: 0 18px 36px rgba(0,0,0,.27), inset 0 1px rgba(255,255,255,.035);
}
.app-card:hover { transform: translateY(-3px); border-color: #6686ad; box-shadow: 0 22px 42px rgba(0,0,0,.35); }
.app-cover {
    position: relative;
    margin: 12px 12px 0;
    overflow: hidden;
    aspect-ratio: 16 / 8.65;
    border-radius: 12px;
    background: #0c1627;
}
.app-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.app-card:hover .app-cover > img { transform: scale(1.025); }
.app-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(3,9,18,.12), transparent 35%, rgba(3,9,18,.2));
}
.platform-list { position: absolute; z-index: 2; top: 9px; left: 9px; display: flex; gap: 6px; }
.platform-badge {
    height: 25px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    color: #fff;
    background: rgba(4, 9, 17, .78);
    font-size: .57rem;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(0,0,0,.25);
}
.platform-badge svg { width: 12px; height: 12px; fill: currentColor; }
.hot-badge {
    position: absolute;
    z-index: 2;
    top: 9px;
    right: 9px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 8px;
    color: #251b04;
    background: #ffda6a;
    font-size: .56rem;
    font-weight: 900;
}
.app-body { padding: 11px 13px 13px; }
.app-info { min-width: 0; display: flex; align-items: center; gap: 12px; }
.app-icon {
    width: 66px;
    height: 66px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 16px rgba(0,0,0,.25);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-copy { min-width: 0; }
.app-copy h3 {
    margin: 0;
    overflow: hidden;
    color: #f6f8fc;
    font-size: .9rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-copy p { margin: 5px 0 0; color: #8f9fb5; font-size: .64rem; }
.app-description {
    margin: 9px 0 0 78px;
    overflow: hidden;
    color: #8798af;
    font-size: .61rem;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.download-button, .key-button {
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.download-button { border-color: #438cf7; background: linear-gradient(135deg, #3982f3, #2d6fe2); box-shadow: 0 8px 20px rgba(42, 107, 225, .2); }
.key-button { border-color: #647e9e; color: #d8e1ec; background: rgba(17, 30, 49, .4); }
.download-button svg, .key-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.download-button:hover, .key-button:hover { transform: translateY(-2px); }
.download-button:hover { box-shadow: 0 11px 24px rgba(42, 107, 225, .34); }
.key-button:hover { border-color: #8ba8ca; background: rgba(42, 65, 94, .48); }
.empty-state { padding: 36px 18px; border: 1px dashed #425979; border-radius: 16px; color: var(--muted); text-align: center; font-size: .78rem; }

/* Guide */
.guide-section {
    margin: 14px 0 45px;
    padding: 18px;
    scroll-margin-top: 82px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: rgba(17, 29, 48, .72);
}
.guide-title { margin-bottom: 13px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.guide-item {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(119,154,199,.15);
    border-radius: 12px;
    background: rgba(7, 15, 27, .48);
}
.guide-item b { color: var(--cyan); font-size: .58rem; }
.guide-item strong { display: block; margin-top: 8px; font-size: .68rem; }
.guide-item p { margin: 4px 0 0; color: var(--muted); font-size: .56rem; line-height: 1.5; }
footer { border-top: 1px solid rgba(119,154,199,.15); color: #61748f; font-size: .6rem; }
footer > div { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }

/* Shared admin */
.admin-body {
    background:
        radial-gradient(circle at 14% 8%, rgba(32,117,226,.17), transparent 29rem),
        radial-gradient(circle at 90% 35%, rgba(108,74,220,.11), transparent 31rem),
        linear-gradient(145deg, #080f1d, #070c17 60%, #09111f);
}
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: 238px;
    display: flex;
    flex-direction: column;
    padding: 22px 13px 15px;
    border-right: 1px solid rgba(105,141,190,.16);
    background: linear-gradient(180deg, rgba(20,32,53,.98), rgba(10,19,33,.99));
    box-shadow: 12px 0 35px rgba(0,0,0,.17);
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 24px; border-bottom: 1px solid rgba(119,154,199,.14); }
.sidebar-logo { width: 38px; height: 38px; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(99,216,255,.35); border-radius: 12px; background: #fff; }
.sidebar-logo img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand > span:last-child { min-width: 0; }
.sidebar-brand strong { color: #f3f7ff; font-size: .76rem; letter-spacing: .04em; }
.sidebar-brand small { margin-top: 4px; color: #7790b0; font-size: .47rem; letter-spacing: .15em; }
.sidebar-section { display: grid; gap: 4px; margin-top: 22px; }
.sidebar-section > span { padding: 0 10px 7px; color: #677d9e; font-size: .49rem; font-weight: 850; letter-spacing: .16em; }
.sidebar-link {
    min-height: 39px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 11px;
    border-radius: 10px;
    color: #8fa1ba;
    font-size: .67rem;
    font-weight: 750;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.sidebar-link b { width: 18px; color: #82a2c8; font-size: .9rem; text-align: center; }
.sidebar-link:hover { color: #fff; background: rgba(63,105,163,.25); transform: translateX(2px); }
.sidebar-link.active { color: #fff; background: linear-gradient(100deg, #477ff1, #5d67e8); box-shadow: 0 9px 20px rgba(51,105,224,.2); }
.sidebar-link.active b { color: #fff; }
.sidebar-footer { margin-top: auto; display: grid; gap: 13px; padding: 14px 10px 0; border-top: 1px solid rgba(119,154,199,.14); }
.sidebar-status { display: inline-flex; align-items: center; gap: 7px; color: #7fe5b4; font-size: .54rem; font-weight: 800; }
.sidebar-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.sidebar-footer > a { color: #8ea1bc; font-size: .62rem; font-weight: 750; }
.sidebar-footer > a b { float: right; color: #5ec6f7; }
.admin-body .shell { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
.admin-body .site-header { margin-left: 238px; }
.admin-body .nav-wrap { width: auto; margin-inline: 0; padding-inline: 30px; }
.admin-body .brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #53bffc, #3d68ef);
    font-size: .72rem;
    font-weight: 900;
}
.admin-body .brand strong, .admin-body .brand small { display: block; }
.admin-body .brand strong { font-size: .88rem; letter-spacing: .05em; }
.admin-body .brand small { margin-top: 4px; color: #7188a8; font-size: .5rem; letter-spacing: .18em; }
.admin-body .main-nav { display: flex; align-items: center; gap: 12px; }
.admin-body .main-nav a { color: #9babc0; font-size: .68rem; font-weight: 700; }
.admin-body .admin-link { padding: 8px 11px; border: 1px solid var(--line-soft); border-radius: 9px; }
.mobile-admin { display: none; }
.admin-main { width: min(1440px, calc(100% - 310px)); margin-left: 268px; margin-right: 42px; padding: 32px 0 60px; }
.admin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
    padding: 22px;
    border: 1px solid #3c5575;
    border-radius: 17px;
    background:
        linear-gradient(115deg, rgba(56,130,242,.11), transparent 42%),
        linear-gradient(145deg, #1c2b41, #121f32);
    box-shadow: 0 18px 36px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.04);
}
.eyebrow { margin: 0 0 7px; color: var(--cyan); font-size: .52rem; font-weight: 850; letter-spacing: .17em; }
.admin-title h1 { margin: 0; font-size: 1.65rem; letter-spacing: -.03em; }
.admin-title { scroll-margin-top: 90px; }
.muted { margin: 7px 0 0; color: var(--muted); font-size: .7rem; }
.admin-count { min-width: 78px; padding: 12px; border: 1px solid rgba(245,215,127,.28); border-radius: 12px; text-align: center; background: rgba(74, 60, 31, .24); }
.admin-count strong, .admin-count span { display: block; }
.admin-count strong { color: var(--gold); font-size: 1.4rem; }
.admin-count span { color: #988f7b; font-size: .55rem; }
.admin-layout { display: none; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 16px; align-items: start; }
.admin-tabbar {
    position: sticky;
    top: 78px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 17px;
    padding: 5px;
    border: 1px solid rgba(99,138,184,.26);
    border-radius: 13px;
    background: rgba(12, 24, 41, .86);
    box-shadow: 0 11px 28px rgba(0,0,0,.2);
    backdrop-filter: blur(12px);
}
.admin-tabbar a {
    flex: 1;
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #8398b3;
    font-size: .64rem;
    font-weight: 800;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.admin-tabbar a:hover, .admin-tabbar a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(60,128,241,.85), rgba(89,96,232,.85));
    box-shadow: 0 7px 16px rgba(53,106,224,.2);
}
.admin-view-panel { display: none; }
.admin-view-panel.is-active { display: block; }
.dashboard-stats.admin-view-panel.is-active { display: grid; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 17px; }
.dashboard-stats > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(90, 126, 171, .32);
    border-radius: 13px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, rgba(26,43,67,.92), rgba(14,26,43,.94));
    box-shadow: 0 12px 27px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.03);
    transition: transform .2s ease, border-color .2s ease;
}
.dashboard-stats > div:hover { transform: translateY(-2px); border-color: rgba(103,179,246,.46); }
.dashboard-stats > div::after { content: ""; position: absolute; right: -22px; bottom: -28px; width: 70px; height: 70px; border-radius: 50%; opacity: .12; background: currentColor; filter: blur(8px); }
.stat-card-blue { color: #76b9ff; }
.stat-card-green { color: #6ce0ac; }
.stat-card-gold { color: #f5d77f; }
.stat-card-red { color: #ff8293; }
.dashboard-stats em { position: absolute; top: 10px; right: 10px; color: #60758f; font-size: .42rem; font-style: normal; font-weight: 800; letter-spacing: .12em; }
.stat-icon { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; font-size: .7rem; font-weight: 900; }
.stat-blue { color: #89c4ff; background: rgba(65, 139, 244, .15); }
.stat-green { color: var(--green); background: rgba(84, 221, 165, .11); }
.stat-gold { color: var(--gold); background: rgba(245, 215, 127, .11); }
.stat-red { color: #ff8293; background: rgba(255,111,131,.11); }
.dashboard-stats p { min-width: 0; margin: 0; }
.dashboard-stats strong, .dashboard-stats small { display: block; }
.dashboard-stats strong { font-size: 1rem; }
.dashboard-stats small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
.analytics-panel {
    margin-bottom: 17px;
    padding: 19px;
    border: 1px solid rgba(75,105,143,.48);
    border-radius: 17px;
    background:
        linear-gradient(120deg, rgba(46,117,218,.08), transparent 45%),
        linear-gradient(145deg, rgba(25,41,64,.94), rgba(13,24,40,.97));
    box-shadow: 0 18px 36px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.035);
}
.analytics-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.analytics-heading h2 { margin: 0; font-size: 1rem; }
.system-health {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid rgba(84,221,165,.2);
    border-radius: 9px;
    color: #8ceabe;
    background: rgba(84,221,165,.07);
    font-size: .54rem;
    font-weight: 800;
    white-space: nowrap;
}
.system-health i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(84,221,165,.9); }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr); gap: 22px; align-items: center; }
.analytics-bars { display: grid; gap: 13px; }
.metric > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: #9cacc0; font-size: .6rem; }
.metric strong { color: #dfe9f7; }
.metric-track { height: 6px; overflow: hidden; border-radius: 10px; background: rgba(91,121,159,.16); }
.metric-track i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #327ff0, #69d8ff); box-shadow: 0 0 12px rgba(80,191,255,.32); }
.metric-ios .metric-track i { background: linear-gradient(90deg, #b6c4d6, #f1f5fb); }
.metric-android .metric-track i { background: linear-gradient(90deg, #34b97e, #6ae3aa); }
.database-health { display: flex; align-items: center; gap: 13px; padding-left: 19px; border-left: 1px solid rgba(111,148,194,.16); }
.health-ring {
    --progress: 0deg;
    position: relative;
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#53dba2 0 var(--progress), rgba(84,221,165,.11) var(--progress) 360deg);
    box-shadow: 0 0 22px rgba(84,221,165,.08);
}
.health-ring::before { content: ""; position: absolute; inset: 6px; border-radius: inherit; background: #132238; box-shadow: inset 0 0 13px rgba(0,0,0,.28); }
.health-ring b { position: relative; color: #9becbf; font-size: .75rem; }
.database-health > div strong { display: block; font-size: .68rem; }
.database-health > div p { margin: 5px 0 0; color: var(--muted); font-size: .56rem; line-height: 1.5; }
.panel, .login-card {
    min-width: 0;
    padding: 21px;
    border: 1px solid #3a5272;
    border-radius: 17px;
    background:
        linear-gradient(145deg, rgba(34,53,80,.97), rgba(14,26,43,.98));
    box-shadow: 0 18px 36px rgba(0,0,0,.23), inset 0 1px rgba(255,255,255,.035);
}
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.panel-heading h2 { margin: 0; font-size: 1.05rem; }
.text-link, .back-link { color: var(--cyan); font-size: .65rem; font-weight: 700; }
.admin-form { display: grid; gap: 14px; }
.form-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(112, 148, 194, .15);
    border-radius: 12px;
    background: rgba(7, 15, 27, .27);
}
.form-section h3 { margin: 0; color: #dce6f4; font-size: .68rem; letter-spacing: .025em; }
.form-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.form-section-heading h3 { margin: 0; }
.branding-section { background: linear-gradient(135deg, rgba(64,126,231,.1), rgba(7,15,27,.27)); }
.limit-section { background: linear-gradient(135deg, rgba(245,215,127,.06), rgba(7,15,27,.25)); }
.field-help { margin-top: -1px; color: #7288a4; font-size: .52rem; font-weight: 500; line-height: 1.35; }
.brand-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brand-preview-row { display: flex; align-items: center; gap: 13px; padding-top: 2px; }
.brand-preview {
    width: 68px;
    height: 68px;
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(107,180,246,.3);
    border-radius: 16px;
    background: #fff;
}
.brand-preview.favicon-preview { width: 52px; height: 52px; border-radius: 13px; }
.brand-preview img { width: 100%; height: 100%; object-fit: cover; }
.brand-preview span { position: absolute; left: 4px; bottom: 4px; padding: 2px 4px; border-radius: 4px; color: #dce9f8; background: rgba(4,10,18,.78); font-size: .42rem; font-weight: 850; }
.brand-preview-copy { min-width: 0; }
.brand-preview-copy strong, .brand-preview-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-preview-copy strong { color: #f0f6ff; font-size: .82rem; }
.brand-preview-copy small { margin-top: 3px; color: #80b8e5; font-size: .57rem; }
.brand-preview-copy p { margin: 6px 0 0; color: #7187a4; font-size: .55rem; }
.media-preview { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 10px; }
.preview-banner, .preview-icon {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(115,151,198,.22);
    border-radius: 10px;
    background: #091423;
}
.preview-banner { aspect-ratio: 16 / 5.2; }
.preview-icon { aspect-ratio: 1; }
.preview-banner img, .preview-icon img { width: 100%; height: 100%; object-fit: cover; }
.preview-banner span, .preview-icon span {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 3px 6px;
    border-radius: 5px;
    color: #d8e4f3;
    background: rgba(4,10,18,.78);
    font-size: .46rem;
    font-weight: 800;
    letter-spacing: .05em;
}
.form-note { margin: -3px 0 0; color: #778ba6; font-size: .58rem; line-height: 1.5; }
.contact-config { display: grid; gap: 10px; padding: 13px; border: 1px solid rgba(112,148,194,.16); border-radius: 12px; background: rgba(7,15,27,.24); }
.contact-config-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.contact-config-title span { color: #dce7f6; font-size: .62rem; font-weight: 850; letter-spacing: .08em; }
.contact-config-title small { color: #758aa5; font-size: .55rem; }
.contact-grid { gap: 10px; }
.contact-grid label { position: relative; padding-left: 28px; }
.contact-label { position: absolute; left: 0; top: 25px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: .58rem; font-weight: 900; }
.contact-label img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.contact-zalo { background: #1583e9; }
.contact-tiktok { background: #111827; }
.contact-youtube { background: #f32c38; }
.contact-telegram { background: #2c9fd9; }
.settings-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.button-secondary { border: 1px solid rgba(101,150,205,.35); color: #b8c9df; background: rgba(45,70,103,.34); }
.button-secondary:hover { background: rgba(67,101,145,.46); }
.key-total, .config-state { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 8px; font-size: .54rem; font-weight: 800; }
.key-total { color: #a9c8ee; border: 1px solid rgba(102,158,219,.25); background: rgba(68,126,198,.1); }
.config-state { gap: 6px; }
.config-state i { width: 6px; height: 6px; border-radius: 50%; }
.config-state.configured { color: #8ceabe; border: 1px solid rgba(84,221,165,.22); background: rgba(84,221,165,.07); }
.config-state.configured i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.config-state.not-configured { color: #ffd490; border: 1px solid rgba(245,182,75,.22); background: rgba(245,182,75,.07); }
.config-state.not-configured i { background: #ffc35a; }
.admin-tools { display: none; grid-template-columns: 1fr; gap: 16px; margin-bottom: 17px; }
.admin-tools.is-visible { display: grid; }
.admin-layout.is-visible { display: grid; }
.key-stock { display: inline-flex; min-width: 43px; justify-content: center; padding: 5px 7px; border-radius: 6px; font-size: .57rem; font-weight: 800; }
.key-stock.has-key { color: #8ceabe; background: rgba(84,221,165,.1); }
.key-stock.no-key { color: #ffabb6; background: rgba(255,111,131,.1); }
.keys-action { color: #f5d77f; padding: 0; border: 0; background: none; cursor: pointer; font-size: .61rem; font-weight: 800; }
.key-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.key-summary div { padding: 10px 7px; border: 1px solid rgba(112,148,194,.15); border-radius: 9px; background: rgba(5,13,24,.28); text-align: center; }
.key-summary strong, .key-summary span { display: block; }
.key-summary strong { color: #dce9fa; font-size: 1rem; }
.key-summary span { margin-top: 3px; color: #758aa5; font-size: .52rem; }
.danger-zone { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,111,131,.14); }
.danger-zone button { padding: 0; border: 0; color: #ff9eac; background: none; cursor: pointer; font-size: .6rem; font-weight: 800; }
.key-empty { min-height: 137px; display: flex; align-items: center; gap: 13px; color: #8397b2; }
.key-empty > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(98,228,255,.25); border-radius: 11px; color: var(--cyan); background: rgba(98,228,255,.07); font-size: 1.1rem; }
.key-empty strong { display: block; color: #dce8f7; font-size: .7rem; }
.key-empty p { margin: 5px 0 0; font-size: .57rem; line-height: 1.5; }

/* Get-key result pages */
.result-shell { width: min(520px, calc(100% - 28px)); min-height: 100vh; display: grid; place-items: center; margin-inline: auto; }
.result-card { width: 100%; padding: 34px 25px; border: 1px solid #405a7b; border-radius: 20px; background: linear-gradient(145deg, #1c2c45, #101d31); box-shadow: 0 25px 55px rgba(0,0,0,.32); text-align: center; }
.result-card h1 { margin: 6px 0 8px; font-size: clamp(1.35rem, 5vw, 1.8rem); }
.result-card > p:not(.eyebrow):not(.result-game):not(.result-note) { margin: 0 auto 22px; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.result-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 17px; border: 1px solid rgba(255,111,131,.34); border-radius: 18px; color: #ff9eac; background: rgba(255,111,131,.1); font-size: 1.6rem; font-weight: 900; }
.result-success { border-color: rgba(84,221,165,.34); color: #8ceabe; background: rgba(84,221,165,.1); }
.result-game { margin: 0 0 17px; color: #b3c5dc; font-size: .75rem; }
.key-display { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; padding: 8px; border: 1px solid rgba(98,228,255,.25); border-radius: 11px; background: rgba(5,13,24,.55); }
.key-display code { flex: 1; overflow: hidden; color: #f5d77f; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.key-display button { min-height: 32px; padding: 0 9px; border: 1px solid rgba(98,228,255,.32); border-radius: 8px; color: var(--cyan); background: rgba(98,228,255,.08); cursor: pointer; font-size: .6rem; font-weight: 800; }
.result-note { margin: 0 0 19px; color: #768ba8; font-size: .59rem; }
.result-card .primary-button, .result-card .secondary-button { display: inline-flex; min-width: 160px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-form label { min-width: 0; display: grid; gap: 6px; color: #b5c3d5; font-size: .64rem; font-weight: 700; }
.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    min-height: 41px;
    padding: 10px 11px;
    outline: none;
    border: 1px solid rgba(115,151,198,.28);
    border-radius: 9px;
    color: var(--text);
    background: #0c1728;
    font-size: .7rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.admin-form input[type="file"] { padding: 8px; color: #8fa4be; cursor: pointer; }
.admin-form input[type="file"]::file-selector-button {
    margin-right: 8px;
    padding: 6px 9px;
    border: 1px solid rgba(98,228,255,.28);
    border-radius: 7px;
    color: var(--cyan);
    background: rgba(98,228,255,.08);
    cursor: pointer;
    font-size: .58rem;
    font-weight: 800;
}
.admin-form textarea { min-height: 78px; resize: vertical; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: #57bfe9; box-shadow: 0 0 0 3px rgba(87,191,233,.09); }
.check-row { display: flex; flex-wrap: wrap; gap: 15px; }
.checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 7px !important; }
.checkbox input { width: 15px; min-height: 15px; accent-color: var(--blue); }
.button {
    width: fit-content;
    min-height: 41px;
    padding: 0 17px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #3982f3, #4f67ef);
    cursor: pointer;
    font-size: .7rem;
    font-weight: 800;
}
.button.full { width: 100%; }
.button.button-secondary { border: 1px solid rgba(101,150,205,.35); color: #b8c9df; background: rgba(45,70,103,.34); }
.button.button-secondary:hover { background: rgba(67,101,145,.46); }
.alert { margin-bottom: 15px; padding: 11px 13px; border: 1px solid; border-radius: 10px; font-size: .68rem; }
.alert-success { color: #8aefc1; border-color: rgba(84,221,165,.32); background: rgba(84,221,165,.08); }
.alert-error { color: #ffacb8; border-color: rgba(255,111,131,.32); background: rgba(255,111,131,.08); }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 460px; border-collapse: collapse; }
th { padding: 9px 7px; border-bottom: 1px solid var(--line-soft); color: #6f829e; font-size: .55rem; letter-spacing: .08em; text-align: left; }
td { padding: 12px 7px; border-bottom: 1px solid rgba(119,154,199,.1); font-size: .65rem; }
.table-game { display: flex; align-items: center; gap: 9px; }
.table-game img { width: 39px; height: 39px; object-fit: cover; border-radius: 9px; background: #fff; }
.table-game strong, .table-game small { display: block; }
.table-game strong { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-game small { margin-top: 3px; color: var(--muted); font-size: .55rem; }
.category-pill, .state { display: inline-flex; padding: 5px 7px; border-radius: 6px; white-space: nowrap; font-size: .54rem; font-weight: 750; }
.category-pill { color: #b7c5d7; background: rgba(119,154,199,.12); }
.state.on { color: var(--green); background: rgba(84,221,165,.09); }
.state.off { color: #ff9cac; background: rgba(255,111,131,.09); }
.row-actions { display: flex; align-items: center; gap: 9px; }
.row-actions form { margin: 0; }
.edit-action, .delete-action { padding: 0; border: 0; background: none; cursor: pointer; font-size: .61rem; font-weight: 800; }
.edit-action { color: var(--cyan); }
.delete-action { color: var(--danger); }
.login-shell { width: min(410px, calc(100% - 30px)); min-height: 100vh; margin-inline: auto; display: grid; align-content: center; }
.login-brand { justify-self: center; margin-bottom: 20px; }
.login-card h1 { margin: 0; font-size: 1.45rem; }
.login-card .muted { margin-bottom: 20px; }
.login-hint { color: var(--muted); font-size: .61rem; text-align: center; }
code { padding: 3px 5px; border-radius: 5px; color: #d8e4f4; background: rgba(255,255,255,.07); }

@keyframes emblemFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes statusPulse {
    0%, 100% { opacity: .75; }
    50% { opacity: 1; box-shadow: 0 0 0 6px rgba(84,221,165,.08), 0 0 15px rgba(84,221,165,.9); }
}
@keyframes cardEnter {
    from { opacity: 0; transform: translateY(13px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes auroraDrift {
    0% { transform: translate3d(-7px, -6px, 0) scale(.96); }
    100% { transform: translate3d(22px, 18px, 0) scale(1.08); }
}

@media (max-width: 760px) {
    .admin-sidebar { width: 76px; padding-inline: 9px; }
    .sidebar-brand { justify-content: center; padding-inline: 0; border-bottom: 0; }
    .sidebar-brand > span:last-child, .sidebar-section > span, .sidebar-link:not(.active)::after, .sidebar-link { font-size: 0; }
    .sidebar-brand > span:last-child, .sidebar-footer { display: none; }
    .sidebar-link { justify-content: center; gap: 0; padding: 0; }
    .sidebar-link b { width: auto; font-size: 1rem; }
    .admin-body .site-header { margin-left: 76px; }
    .admin-body .nav-wrap { padding-inline: 14px; }
    .admin-main { width: calc(100% - 92px); margin-left: 88px; margin-right: 12px; }
    .admin-layout { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .analytics-grid { grid-template-columns: 1fr; gap: 17px; }
    .database-health { padding: 15px 0 0; border-top: 1px solid rgba(111,148,194,.16); border-left: 0; }
    .admin-tools { grid-template-columns: 1fr; }
    .admin-tabbar { top: 70px; overflow-x: auto; }
    .admin-tabbar a { min-width: 92px; }
}

/* Key result screen */
.result-shell {
    width: min(580px, calc(100% - 28px));
    padding: 26px 0;
}
.result-card {
    padding: 30px;
    border: 1px solid #334365;
    border-radius: 26px;
    background:
        radial-gradient(circle at 12% 0%, rgba(87,104,255,.12), transparent 18rem),
        linear-gradient(145deg, #10162b, #080e1b);
    box-shadow: 0 30px 80px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.04);
    text-align: left;
}
.result-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 37px; }
.result-brand-logo {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 13px;
    background: linear-gradient(145deg, #6951ff, #9c43f2);
    box-shadow: 0 12px 25px rgba(99,78,255,.25);
}
.result-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.result-brand strong, .result-brand small { display: block; }
.result-brand strong { color: #eef2ff; font-size: .98rem; }
.result-brand small { margin-top: 2px; color: #75809f; font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; }
.result-eyebrow { margin-bottom: 7px; }
.result-card-success h1 { margin: 0 0 28px; color: #f1f3ff; font-size: clamp(2rem, 6vw, 2.45rem); letter-spacing: -.045em; }
.game-result-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 17px;
    border: 1px solid rgba(133,146,186,.22);
    border-radius: 17px;
    background: rgba(27,32,51,.72);
}
.game-result-icon {
    width: 94px;
    height: 94px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 25px rgba(0,0,0,.3);
}
.game-result-icon img { width: 100%; height: 100%; object-fit: cover; }
.game-result-copy { min-width: 0; flex: 1; }
.game-result-copy .eyebrow { color: #7a87a7; font-size: .56rem; }
.game-result-copy h2 { margin: 3px 0 13px; overflow: hidden; color: #f1f3ff; font-size: 1.2rem; text-overflow: ellipsis; white-space: nowrap; }
.game-result-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.game-result-meta span { min-width: 0; }
.game-result-meta small, .game-result-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-result-meta small { color: #8a94ad; font-size: .57rem; }
.game-result-meta strong { margin-top: 3px; color: #e5e9f7; font-size: .65rem; }
.key-result-box {
    margin-bottom: 20px;
    padding: 17px;
    border: 1px solid rgba(113,94,255,.52);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(41,31,91,.42), rgba(17,20,54,.42));
}
.key-result-label { margin-bottom: 10px; color: #8e95b5; font-size: .58rem; font-weight: 850; letter-spacing: .14em; }
.key-result-box .key-display { margin-bottom: 10px; padding: 9px 10px; border-color: rgba(139,127,255,.24); background: #080d1d; }
.key-result-box .key-display code { color: #bfc3ff; font-size: .7rem; }
.key-result-box .key-display button { min-height: 31px; color: #dce1ff; border-color: rgba(142,132,255,.32); background: rgba(106,90,255,.14); }
.key-result-box .result-note { margin: 0; color: #8992ad; }
.result-card-success > .secondary-button { min-width: 0; }
.result-error .result-brand { margin-bottom: 24px; }
.result-error { text-align: center; }

@media (max-width: 560px) {
    .result-shell { width: min(100% - 20px, 580px); padding: 10px 0; }
    .result-card { padding: 22px 16px; border-radius: 21px; }
    .result-brand { margin-bottom: 27px; }
    .result-card-success h1 { font-size: 2rem; margin-bottom: 21px; }
    .game-result-summary { align-items: flex-start; gap: 12px; padding: 12px; }
    .game-result-icon { width: 72px; height: 72px; border-radius: 13px; }
    .game-result-meta { grid-template-columns: 1fr 1fr; gap: 8px; }
    .game-result-meta span:last-child { grid-column: 1 / -1; }
    .key-result-box { padding: 13px; }
    .key-result-box .key-display code { font-size: .61rem; }
}

@media (max-width: 600px) {
    .site-container { width: min(100% - 20px, 684px); }
    .nav-wrap { height: 62px; }
    .brand-logo { width: 36px; height: 36px; border-radius: 11px; }
    .brand-copy strong { font-size: .82rem; }
    .brand-copy small { font-size: .45rem; }
    .admin-button { min-height: 34px; padding-inline: 10px; }
    .admin-button span { display: none; }
    .admin-button svg { width: 16px; height: 16px; }
    .contact-links { gap: 4px; margin-right: 2px; }
    .contact-links a, .contact-links .contact-disabled { width: 23px; height: 23px; font-size: .56rem; }
    .contact-links a img, .contact-links .contact-disabled img { width: 16px; height: 16px; }
    .hero { padding: 30px 0 36px; }
    .hero-emblem { width: 108px; height: 108px; margin-bottom: 11px; }
    .emblem-core { width: 60px; height: 60px; border-radius: 15px; }
    .online-label { font-size: .52rem; letter-spacing: .13em; }
    .hero h1 { font-size: clamp(2.12rem, 12vw, 3rem); }
    .hero > p { max-width: 330px; font-size: .72rem; }
    .hero-actions { gap: 8px; margin-top: 19px; }
    .primary-button, .secondary-button { min-width: 0; flex: 1; min-height: 41px; padding: 0 10px; font-size: .66rem; }
    .hero-stats { margin-top: 24px; }
    .hero-contact-links { margin-top: 17px; }
    .hero-contact-links a, .hero-contact-links .contact-disabled { width: 37px; height: 37px; }
    .hero-contact-links a img, .hero-contact-links .contact-disabled img { width: 22px; height: 22px; }
    .app-cover { margin: 9px 9px 0; border-radius: 10px; }
    .app-body { padding: 9px 10px 11px; }
    .app-icon { width: 57px; height: 57px; border-radius: 12px; }
    .app-info { gap: 10px; }
    .app-copy h3 { font-size: .8rem; }
    .app-copy p { font-size: .58rem; }
    .app-description { margin-left: 67px; font-size: .57rem; }
    .app-actions { gap: 7px; margin-top: 10px; }
    .download-button, .key-button { min-height: 36px; font-size: .63rem; }
    .guide-grid { grid-template-columns: 1fr; }
    .guide-item { display: grid; grid-template-columns: 25px 1fr; gap: 7px; }
    .guide-item strong { margin-top: 0; }
    .admin-body .shell { width: calc(100% - 20px); }
    .admin-main { padding-top: 20px; }
    .admin-title { padding: 17px; }
    .admin-title h1 { font-size: 1.25rem; }
    .admin-count { min-width: 66px; padding: 9px; }
    .panel, .login-card { padding: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .brand-upload-grid { grid-template-columns: 1fr; }
    .brand-preview-row { align-items: flex-start; }
    .dashboard-stats { gap: 7px; }
    .dashboard-stats > div { display: grid; grid-template-columns: 30px 1fr; justify-items: start; gap: 8px; padding: 11px; text-align: left; }
    .dashboard-stats small { font-size: .49rem; }
    .stat-icon { width: 30px; height: 30px; }
    .dashboard-stats em { display: none; }
    .analytics-panel { padding: 15px; }
    .analytics-heading { align-items: center; }
    .analytics-heading h2 { font-size: .88rem; }
    .system-health { padding-inline: 8px; font-size: .47rem; }
    .media-preview { grid-template-columns: minmax(0, 1fr) 66px; }
    .panel-heading { flex-wrap: wrap; }
    .admin-body .main-nav a:first-child { display: none; }
    .mobile-admin { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* WebServerKey console skin: the admin workspace follows the source layout,
   while keeping this project’s own PHP markup and database actions. */
.admin-body {
    --console-bg: #090d18;
    --console-panel: #111827;
    --console-panel-soft: #182235;
    --console-line: #28364e;
    --console-muted: #96a1b6;
    --console-blue: #5d84ff;
    color: #f5f7fc;
    background: var(--console-bg);
    font: 400 15px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.admin-sidebar {
    width: 252px;
    padding: 20px 14px;
    color: #b5bfd1;
    background: #060a13;
    border-right: 1px solid rgba(255,255,255,.06);
    box-shadow: none;
}
.sidebar-brand { margin: 0 8px 25px; padding: 0 0 25px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-logo { width: 39px; height: 39px; border-radius: 11px; box-shadow: 0 9px 26px rgba(40,100,232,.3); }
.sidebar-section { gap: 3px; margin-top: 13px; }
.sidebar-section > span { margin: 0 0 4px; padding: 0 11px; color: #53617b; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-link { min-height: 42px; gap: 10px; padding: 9px 11px; color: #98a6bd; border-radius: 10px; font-size: .75rem; font-weight: 650; }
.sidebar-link:hover { color: #fff; background: rgba(71,108,224,.16); transform: none; }
.sidebar-link.active { color: #fff; background: rgba(71,108,224,.16); box-shadow: inset 3px 0 #5e87ff; }
.sidebar-link b { color: currentColor; }
.sidebar-footer { padding: 15px 10px 0; border-top-color: rgba(255,255,255,.07); }
.admin-body .site-header { margin-left: 252px; background: rgba(17,24,39,.9); border-bottom-color: #28364e; box-shadow: none; }
.admin-body .nav-wrap { min-height: 72px; height: auto; padding: 11px 28px; }
.admin-body .brand-logo { width: 39px; height: 39px; border-radius: 11px; }
.admin-body .brand strong { font-size: 1rem; }
.admin-body .brand small { margin-top: 2px; color: #687792; font-size: .63rem; letter-spacing: .1em; }
.admin-body .main-nav a { color: #98a6bd; font-size: .76rem; }
.admin-body .admin-link { padding: 8px 11px; border-color: #28364e; border-radius: 10px; }
.admin-main { width: calc(100% - 252px); max-width: 1640px; margin: 0 0 0 252px; padding: 32px 34px 60px; }
.admin-title {
    align-items: flex-start;
    margin-bottom: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.admin-title h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -.055em; }
.admin-title .muted { max-width: 720px; margin-top: 10px; color: var(--console-muted); font-size: .95rem; }
.admin-count { min-width: 92px; padding: 14px; background: var(--console-panel); border-color: var(--console-line); border-radius: 14px; }
.admin-tabbar {
    top: 84px;
    margin-bottom: 18px;
    padding: 6px;
    background: rgba(17,24,39,.94);
    border-color: var(--console-line);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,.2);
}
.admin-tabbar a { min-height: 42px; font-size: .75rem; }
.admin-tabbar a { gap: 7px; }
.admin-tabbar .tab-icon { display: inline-grid; width: 18px; height: 18px; place-items: center; color: #9fb8ff; font-size: .88rem; font-weight: 900; }
.admin-tabbar a.active .tab-icon { color: #fff; }
.admin-tabbar a:hover, .admin-tabbar a.active { background: rgba(71,108,224,.2); box-shadow: inset 3px 0 #5e87ff; }
.dashboard-stats { gap: 14px; margin-bottom: 18px; }
.dashboard-stats > div, .analytics-panel, .panel {
    background: var(--console-panel);
    border-color: var(--console-line);
    border-radius: 16px;
    box-shadow: 0 22px 58px rgba(0,0,0,.3);
}
.dashboard-stats > div { padding: 20px; }
.analytics-panel, .panel { padding: 22px; }
.panel-heading, .analytics-heading { padding-bottom: 15px; border-bottom: 1px solid var(--console-line); }
.admin-form input, .admin-form select, .admin-form textarea { background: #0c1424; border-color: var(--console-line); }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--console-blue); box-shadow: 0 0 0 3px rgba(93,132,255,.14); }
.table-scroll table { min-width: 820px; }
.table-scroll th { background: var(--console-panel-soft); }

@media (max-width: 760px) {
    .admin-sidebar { width: 76px; padding: 9px; }
    .admin-sidebar .sidebar-brand { justify-content: center; padding: 0; border-bottom: 0; }
    .admin-sidebar .sidebar-brand > span:last-child, .admin-sidebar .sidebar-footer, .admin-sidebar .sidebar-section > span { display: none; }
    .admin-sidebar .sidebar-link { justify-content: center; gap: 0; padding: 0; font-size: 0; }
    .admin-sidebar .sidebar-link b { width: auto; font-size: 1rem; }
    .admin-body .site-header { margin-left: 76px; }
    .admin-body .nav-wrap { width: 100%; max-width: none; padding: 10px 10px; }
    .admin-body .main-nav { display: none; }
    .admin-body .brand-copy { max-width: 90px; }
    .admin-body .contact-links { margin-left: auto; margin-right: 0; }
    .admin-body .admin-main,
    .admin-body .admin-main.shell { width: calc(100% - 76px); max-width: none; margin-left: 76px; margin-right: 0; padding: 21px 10px 45px; }
    .admin-title { flex-direction: row; }
    .admin-title h1 { font-size: 2rem; }
    .admin-tabbar { top: 70px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
    .admin-tabbar a { min-width: 0; min-height: 42px; padding-inline: 7px; }
}
