/* ENGKANTO admin panel (Discord login + license activation) — TRANSPARENT GLASS VERSION */
html, body { min-height: 100%; }
body.admin-page { padding: 0 16px 40px; }

/* same custom cursor as the homepage (style.css hides the system cursor) - bigger ring over clickable things */
.custom-cursor-outer.hover { width: 48px; height: 48px; border-color: #30e7f1; background: rgba(57, 240, 250, 0.1); }
[hidden] { display: none !important; }
.a-avatar, .a-logo { pointer-events: auto; }

.admin-wrap { position: relative; z-index: 10; max-width: 880px; margin: 0 auto; padding-top: 48px; display: flex; flex-direction: column; gap: 18px; }

/* entrance */
@keyframes aFade { from { opacity: 0; transform: translateY(16px); } }
.fade { animation: aFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* cards — fully transparent: grid + particles show through, only the border/glow remains */
.a-card {
    position: relative;
    background: rgba(57, 240, 250, 0.015);
    border: 1px solid rgba(57, 240, 250, 0.2);
    border-radius: 22px;
    padding: 28px 30px;
    box-shadow: 0 0 60px -30px rgba(57, 240, 250, 0.35), inset 0 0 40px -30px rgba(57, 240, 250, 0.25);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.a-main::before {
    content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 18px rgba(57, 240, 250, 0.7);
}
.a-center { text-align: center; padding: 64px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.a-center h2 { font-size: 1.5rem; font-weight: 800; }
.a-muted { color: var(--text-gray); font-size: 0.9rem; }

/* top bar */
.a-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 22px; border-radius: 18px; }
.a-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.a-logo { height: 46px; width: auto; filter: drop-shadow(0 0 12px rgba(57, 240, 250, 0.75)); transition: transform 0.3s; }
.a-brand:hover .a-logo { transform: scale(1.06) rotate(-2deg); }
.a-brand h1 { font-size: 1.05rem; font-weight: 900; letter-spacing: 0.04em; line-height: 1.2; }
.a-brand h1 span { color: var(--primary); text-shadow: var(--primary-neon); }
.a-brand p { font-size: 0.78rem; color: var(--text-gray); margin-top: 2px; }
.a-top-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.a-back {
    display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 999px;
    border: 1px solid rgba(57, 240, 250, 0.35); background: rgba(57, 240, 250, 0.05);
    color: #a5f3fc; font-weight: 700; font-size: 0.8rem; text-decoration: none; transition: all 0.25s;
}
.a-back i { transition: transform 0.25s; font-size: 0.75rem; }
.a-back:hover { background: rgba(57, 240, 250, 0.18); border-color: var(--primary); color: #fff; box-shadow: 0 0 22px -4px rgba(57, 240, 250, 0.6); }
.a-back:hover i { transform: translateX(-4px); }

.a-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem; font-weight: 700; color: #d7e6ea; white-space: nowrap;
}
.a-dot { width: 8px; height: 8px; border-radius: 50%; background: #888; }
.a-pill.on .a-dot { background: #22c55e; box-shadow: 0 0 10px #22c55e; animation: statusPulse 2s ease-in-out infinite; }
.a-pill.off .a-dot { background: #ef4444; box-shadow: 0 0 10px #ef4444; }

/* user row */
.a-user { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.a-user-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.a-user-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.a-user-text strong { font-size: 1.1rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-sub { font-size: 0.78rem; color: var(--text-gray); display: inline-flex; align-items: center; gap: 7px; }
.a-sub i { color: #7c8cff; }
.a-avatar-ring { padding: 3px; border-radius: 50%; background: conic-gradient(from 180deg, #39f0fa, #23dae4, #8ef7fd, #39f0fa); box-shadow: 0 0 22px rgba(57, 240, 250, 0.45); flex-shrink: 0; }
.a-avatar { display: block; width: 52px; height: 52px; border-radius: 50%; border: 3px solid #07161a; object-fit: cover; background: #0a1418; }
/* Discord avatar decoration: sits on top of the avatar, 120% of its size, and replaces the cyan ring */
.a-avatar-ring { position: relative; }
.a-avatar-ring.has-deco { background: none; box-shadow: none; }
.a-avatar-ring.has-deco .a-avatar { border-color: transparent; }
.a-deco { position: absolute; left: 50%; top: 50%; width: 120%; height: 120%; transform: translate(-50%, -50%); max-width: none; object-fit: contain; pointer-events: none; }
.a-hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(57, 240, 250, 0.25), transparent); margin: 24px 0 6px; }

/* panels */
.a-panel { max-width: 440px; margin: 0 auto; padding: 28px 0 22px; text-align: center; }
.a-panel h2 { font-size: 1.7rem; font-weight: 900; margin: 18px 0 6px; letter-spacing: -0.01em; }
.a-badge {
    width: 68px; height: 68px; margin: 0 auto; display: grid; place-items: center; border-radius: 20px;
    font-size: 1.6rem; color: var(--primary);
    background: radial-gradient(circle at 30% 25%, rgba(57, 240, 250, 0.2), rgba(57, 240, 250, 0.03));
    border: 1px solid rgba(57, 240, 250, 0.4); box-shadow: 0 0 34px -4px rgba(57, 240, 250, 0.55);
    animation: aFloat 4s ease-in-out infinite;
}
.a-badge-ok { color: #4ade80; border-color: rgba(74, 222, 128, 0.45); background: radial-gradient(circle at 30% 25%, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0.03)); box-shadow: 0 0 34px -4px rgba(74, 222, 128, 0.55); }
@keyframes aFloat { 50% { transform: translateY(-5px); } }
.a-panel form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }

/* input */
.a-field {
    position: relative; display: flex; align-items: center;
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(57, 240, 250, 0.25); border-radius: 14px;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.a-field:focus-within { border-color: var(--primary); background: rgba(57, 240, 250, 0.04); box-shadow: 0 0 0 4px rgba(57, 240, 250, 0.1), 0 10px 30px -12px rgba(57, 240, 250, 0.6); }
.a-field-icon { position: absolute; left: 18px; color: #6fdde4; font-size: 0.95rem; }
.a-field input {
    flex: 1; width: 100%; min-width: 0; padding: 16px 52px 16px 48px; background: transparent; border: 0; outline: 0;
    color: #fff; font-family: 'Inter', monospace; font-size: 1rem; letter-spacing: 2px; text-align: center;
}
.a-field input::placeholder { color: #5b7077; letter-spacing: 2px; }
.a-field button { position: absolute; right: 8px; width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 0; border-radius: 10px; color: #8aa0a6; font-size: 1rem; transition: all 0.2s; }
.a-field button:hover { color: var(--primary); background: rgba(57, 240, 250, 0.1); }

/* buttons */
.a-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: 14px; border: 0; text-decoration: none;
    background: linear-gradient(135deg, #39f0fa, #23dae4); color: #04191c;
    font-family: inherit; font-weight: 800; font-size: 0.95rem;
    box-shadow: 0 12px 30px -8px rgba(57, 240, 250, 0.6); transition: all 0.25s ease;
}
.a-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(57, 240, 250, 0.8); }
.a-btn:disabled { opacity: 0.65; transform: none; pointer-events: none; }
.a-btn-block { width: 100%; }
.a-btn-sm { padding: 9px 18px; font-size: 0.8rem; border-radius: 10px; }
.a-btn-ghost { background: transparent; color: #a5f3fc; border: 1px solid rgba(57, 240, 250, 0.4); box-shadow: none; }
.a-btn-ghost:hover { background: rgba(57, 240, 250, 0.12); border-color: var(--primary); box-shadow: 0 0 22px -6px rgba(57, 240, 250, 0.6); }
.a-shine::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-20deg); transition: left 0.6s; }
.a-shine:hover::after { left: 130%; }
.a-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }

/* messages */
.a-msg { min-height: 20px; font-size: 0.85rem; font-weight: 600; }
.a-msg.err { color: #ff7b7b; }
.a-msg.ok { color: #4ade80; }
.a-hint { margin-top: 10px; font-size: 0.8rem; color: var(--text-gray); }
.a-hint a { color: var(--primary); text-decoration: none; font-weight: 700; }
.a-hint a:hover { text-decoration: underline; }

/* loading / icons */
.a-spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(57, 240, 250, 0.15); border-top-color: var(--primary); box-shadow: 0 0 20px rgba(57, 240, 250, 0.25); animation: aSpin 0.9s linear infinite; }
@keyframes aSpin { to { transform: rotate(360deg); } }
.a-err-icon { font-size: 2.4rem; color: #ff7b7b; filter: drop-shadow(0 0 14px rgba(255, 123, 123, 0.45)); }

/* license details */
.a-license { margin: 26px 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.a-tile { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(57, 240, 250, 0.18); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.a-tile span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-gray); }
.a-tile span i { color: var(--primary); margin-right: 5px; }
.a-tile b { font-size: 0.98rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-tile-hl { border-color: rgba(57, 240, 250, 0.4); background: rgba(57, 240, 250, 0.05); }
.a-tile-hl b { color: var(--primary); text-shadow: 0 0 16px rgba(57, 240, 250, 0.5); }
.a-bar { height: 6px; border-radius: 6px; background: rgba(57, 240, 250, 0.1); overflow: hidden; }
.a-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #23dae4, #8ef7fd); box-shadow: 0 0 14px rgba(57, 240, 250, 0.8); transition: width 1s ease; }

/* footer */
.a-foot { text-align: center; font-size: 0.78rem; color: #5d7279; padding-top: 6px; }
.a-foot a { color: #7fa0a8; text-decoration: none; }
.a-foot a:hover { color: var(--primary); }

@media (max-width: 600px) {
    .admin-wrap { padding-top: 24px; }
    .a-card { padding: 22px 18px; }
    .a-top { flex-direction: column; align-items: flex-start; }
    .a-top-right { width: 100%; justify-content: space-between; }
    .a-license { grid-template-columns: 1fr; }
    .a-user { flex-wrap: wrap; }
    .a-panel h2 { font-size: 1.45rem; }
}

/* ===== inline SVG icons (walang Font Awesome) ===== */
.ic-spin { animation: aSpin .9s linear infinite; }
.a-back .ic { width: 13px; height: 13px; transition: transform .25s; }
.a-back:hover .ic { transform: translateX(-4px); }
.a-sub .ic { width: 14px; height: 14px; color: #7c8cff; }
.a-btn .ic { width: 1.05em; height: 1.05em; }
.a-field-icon { position: absolute; left: 18px; width: 17px; height: 17px; color: #6fdde4; }
.a-field button .ic { width: 18px; height: 18px; }
.a-badge .ic { width: 30px; height: 30px; }
.a-err-icon .ic { width: 44px; height: 44px; }
.a-tile span .ic { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; color: var(--primary); }

/* ============================================================
   STOCK MANAGER (admin) — same cyan glass look as the rest of this page
   Uses your existing variables (--primary, --text-gray) + .a-btn / .a-field / .a-badge
   ============================================================ */
.s-wrap { padding-top: 4px; }
.s-title { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.01em; }
.s-sub { margin-top: 4px; font-size: 0.85rem; color: var(--text-gray); }
.s-err { margin-top: 14px; padding: 10px 14px; border-radius: 12px; font-size: 0.82rem; font-weight: 600; color: #ff7b7b; background: rgba(255, 123, 123, 0.08); border: 1px solid rgba(255, 123, 123, 0.3); }

.s-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.s-grid .s-card:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* odd count: last card spans the row */

.s-card { min-width: 0; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(57, 240, 250, 0.18); transition: border-color 0.25s, box-shadow 0.25s; }
.s-card:hover, .s-card:focus-within { border-color: rgba(57, 240, 250, 0.45); box-shadow: 0 0 28px -10px rgba(57, 240, 250, 0.55); }
.s-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.s-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 800; color: var(--primary); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(57, 240, 250, 0.15); }
.s-ico img { width: 22px; height: 22px; object-fit: contain; }
.s-name { font-size: 1rem; font-weight: 800; }
.s-cur { margin-top: 2px; font-size: 0.78rem; color: var(--text-gray); }
.s-cur b { color: #fff; font-weight: 800; }

.s-ta { display: block; width: 100%; box-sizing: border-box; height: 92px; min-height: 60px; resize: vertical; padding: 12px 14px; border-radius: 12px; outline: 0; color: #fff; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(57, 240, 250, 0.22); font: 12.5px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; transition: border-color 0.2s, box-shadow 0.2s; }
.s-ta::placeholder { color: #5b7077; }
.s-ta:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(57, 240, 250, 0.1); }

.s-actions { display: flex; gap: 10px; margin-top: 10px; }
.s-actions .a-btn { padding: 11px 16px; font-size: 0.85rem; border-radius: 12px; }
.s-actions .a-btn-block { flex: 1; width: auto; }
.s-msg { min-height: 16px; margin-top: 8px; font-size: 0.78rem; font-weight: 600; color: var(--text-gray); }
.s-msg.ok { color: #4ade80; }
.s-msg.err { color: #ff7b7b; }

.a-btn-danger { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.45); box-shadow: none; }
.a-btn-danger:hover { background: #ef4444; color: #fff; box-shadow: 0 0 22px -4px rgba(239, 68, 68, 0.6); }
.a-btn-dangerfill { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 12px 30px -8px rgba(239, 68, 68, 0.6); }
.a-btn-dangerfill:hover { box-shadow: 0 16px 38px -8px rgba(239, 68, 68, 0.8); }

.s-foot { margin-top: 26px; padding-top: 18px; text-align: center; border-top: 1px solid rgba(57, 240, 250, 0.12); }
.s-foot-note { margin-top: 10px; font-size: 0.75rem; }

/* modals */
.s-modal { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 10, 12, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.s-box { position: relative; width: min(420px, 100%); padding: 34px 30px 28px; border-radius: 22px; text-align: center; background: rgba(6, 20, 24, 0.97); border: 1px solid rgba(57, 240, 250, 0.3); box-shadow: 0 0 60px -20px rgba(57, 240, 250, 0.5); animation: aFade 0.25s ease-out both; }
.s-box .a-badge { width: 58px; height: 58px; border-radius: 18px; animation: none; }
.s-box .a-badge .ic { width: 26px; height: 26px; }
.s-badge-danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.45) !important; background: radial-gradient(circle at 30% 25%, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.03)) !important; box-shadow: 0 0 30px -4px rgba(239, 68, 68, 0.5) !important; }
.s-box h3 { margin: 16px 0 6px; font-size: 1.4rem; font-weight: 900; }
.s-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 10px; cursor: pointer; color: #8aa0a6; transition: all 0.2s; }
.s-x:hover { color: var(--primary); background: rgba(57, 240, 250, 0.1); }
.s-x .ic { width: 18px; height: 18px; }
.s-field { margin: 22px 0 10px; }
.s-field input { padding: 15px 16px; text-align: center; letter-spacing: 1px; font-size: 1.05rem; font-weight: 700; }
.s-field input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.s-field input[type=number]::-webkit-outer-spin-button, .s-field input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.s-hint { display: block; margin-bottom: 18px; font-size: 0.78rem; color: var(--text-gray); }
.s-box .a-btn-block { margin-top: 6px; }
.s-box .a-msg { margin-top: 10px; }

/* toast */
.s-toast { position: fixed; top: 26px; right: 26px; z-index: 1000; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 52px); padding: 13px 22px; border-radius: 14px; background: rgba(6, 20, 24, 0.96); border: 1px solid var(--primary); box-shadow: 0 0 34px -6px rgba(57, 240, 250, 0.55); transform: translateX(150%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.s-toast.show { transform: translateX(0); }
.s-toast-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #04191c; background: var(--primary); }
.s-toast-ic .ic { width: 16px; height: 16px; stroke-width: 3; }
.s-toast-text { font-size: 0.88rem; font-weight: 700; }

@media (max-width: 720px) { .s-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .s-box { padding: 30px 20px 24px; }
    .s-toast { top: 16px; right: 16px; left: 16px; max-width: none; transform: translateY(-160%); }
    .s-toast.show { transform: translateY(0); }
}