*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;outline:none;}
:root {
    --purple: #a855f7;
    --purple-b: #c084fc;
    --purple-d: #7c3aed;
    --purple-deep: #4c1d95;
    --magenta: #e040fb;
    --magenta-b: #f062ff;
    --dark: #040308;
    --d2: #0a0612;
    --d3: rgba(16, 10, 24, 0.75);
    --border: rgba(255, 255, 255, 0.06);
    --border-purple: rgba(168, 85, 247, 0.2);
    --text: #f0e6ff;
    --muted: #9a8aaa;
    --dim: #5a4a6a;
    --warn: #f59e0b;
    --crit: #ff004c;
    --ok: #22c55e;
    --f-th: 'Kanit', sans-serif;
    --f-en: 'Inter', sans-serif;
    --f-mono: 'JetBrains Mono', monospace;
    --f-display: 'Orbitron', sans-serif;
}
html,body{width:100%;min-height:100%;-webkit-text-size-adjust:100%}
body {
    background: var(--dark); color: var(--text); font-family: var(--f-th); min-height: 100svh; overflow-x: hidden;
    background-image: radial-gradient(ellipse 800px 600px at 50% 0%, rgba(168, 85, 247, 0.12), transparent 65%),
        radial-gradient(ellipse 400px 300px at 80% 100%, rgba(224, 64, 251, 0.06), transparent 60%),
        linear-gradient(rgba(168, 85, 247, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.015) 1px, transparent 1px);
    background-size: auto, auto, 50px 50px, 50px 50px;
}
.top-line {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100;
    background: linear-gradient(90deg, transparent 0%, var(--purple) 20%, var(--magenta) 40%, var(--purple-b) 60%, var(--purple) 80%, transparent 100%);
    background-size: 200% 100%; animation: lineSlide 3s linear infinite;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 60px rgba(224, 64, 251, 0.3);
}
@keyframes lineSlide { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
.corner { position: fixed; font-family: var(--f-mono); font-size: 9px; color: var(--dim); letter-spacing: 1.8px; line-height: 1.8; z-index: 2; pointer-events: none; text-transform: uppercase; }
.corner em { color: var(--purple-b); font-style: normal; text-shadow: 0 0 8px var(--purple); }
.corner.tl { top: 18px; left: 18px; } .corner.tr { top: 18px; right: 18px; text-align: right; }
.corner.bl { bottom: 18px; left: 18px; } .corner.br { bottom: 18px; right: 18px; text-align: right; }
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--purple-b); box-shadow: 0 0 6px var(--purple), 0 0 12px var(--magenta); animation: floatUp linear infinite; }
@keyframes floatUp { 0% { transform: translateY(100vh) scale(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-10vh) scale(1.5); opacity: 0; } }
.page { position: relative; z-index: 5; width: 100%; min-height: 100svh; display: flex; align-items: center; justify-content: flex-start; padding: 40px 20px 100px; flex-direction: column; }
.wrap { width: 100%; max-width: 500px; }
.card { position: relative; overflow: hidden; width: 100%; background: rgba(10, 6, 18, 0.88); backdrop-filter: blur(24px); border: 1px solid var(--border-purple); border-radius: 32px; padding: 40px 30px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85), 0 0 60px rgba(168, 85, 247, 0.08), inset 0 0 0 1px rgba(168, 85, 247, 0.04); animation: cardUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.card::before { content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 2px; background: linear-gradient(90deg, transparent, var(--purple-b), var(--magenta), var(--purple-b), transparent); filter: blur(1px); }
.card::after { content: ''; position: absolute; bottom: 0; left: 30%; right: 30%; height: 1px; background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent); }
@keyframes cardUp { from { opacity: 0; transform: translateY(30px) scale(0.95) } to { opacity: 1; transform: none } }
.logo-area { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin-bottom: 32px; }
.logo-wrap { display: inline-block; position: relative; width: 120px; height: 120px; margin-bottom: 20px; }
.logo-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, rgba(76, 29, 149, 0.9), rgba(10, 6, 18, 0.95)); border: 2px solid rgba(168, 85, 247, 0.6); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 30px rgba(168, 85, 247, 0.4), 0 0 60px rgba(224, 64, 251, 0.15), inset 0 0 20px rgba(168, 85, 247, 0.15); z-index: 3; overflow: hidden; }
.logo-core img { width: 100%; height: 100%; object-fit: cover; }
.logo-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(168, 85, 247, 0.35); animation: ringSpin 15s linear infinite; }
.logo-ring2 { position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: rgba(224, 64, 251, 0.7); border-right-color: rgba(168, 85, 247, 0.25); animation: ringSpin 10s linear infinite reverse; }
.logo-ring3 { position: absolute; inset: -28px; border-radius: 50%; border: 1.5px dotted rgba(168, 85, 247, 0.12); animation: ringSpin 25s linear infinite; }
.logo-scan { position: absolute; top: 50%; left: 50%; width: 110px; height: 2px; background: linear-gradient(90deg, transparent, rgba(224, 64, 251, 0.9), transparent); transform: translate(-50%, -50%) rotate(0deg); animation: scanRot 5s linear infinite; z-index: 4; box-shadow: 0 0 12px var(--magenta); }
.logo-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%); animation: corePulse 3s ease-in-out infinite; z-index: 1; }
@keyframes corePulse { 0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1) } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.5) } }
@keyframes scanRot { to { transform: translate(-50%, -50%) rotate(360deg) } }
@keyframes ringSpin { to { transform: rotate(360deg) } }
.logo-title { font-family: var(--f-display); font-size: 30px; font-weight: 900; letter-spacing: 5px; color: #fff; text-transform: uppercase; text-shadow: 0 0 20px rgba(168, 85, 247, 0.3), 0 0 40px rgba(224, 64, 251, 0.15); text-align: center; }
.logo-title span { color: var(--purple-b); text-shadow: 0 0 25px rgba(168, 85, 247, 0.6), 0 0 50px rgba(224, 64, 251, 0.3); }
.logo-sub { font-family: var(--f-en); font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: 1.5px; text-align: center; text-transform: uppercase; }
.sec-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 3px; color: var(--purple-b); text-transform: uppercase; margin: 25px 0 15px; display: flex; align-items: center; gap: 10px; }
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--border-purple); }
.field { margin-bottom: 18px; }
.field-label { font-family: var(--f-th); font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.field-label svg { width: 14px; height: 14px; fill: none; stroke: var(--purple-b); stroke-width: 2.5; }
.field-input, .field-select { width: 100%; padding: 18px 24px; background: rgba(20, 12, 32, 0.8); border: 1px solid var(--border-purple); border-radius: 999px; color: var(--text); font-family: var(--f-mono); font-size: 14px; transition: 0.3s; }
.field-input:focus, .field-select:focus { border-color: var(--purple); box-shadow: 0 0 25px rgba(168, 85, 247, 0.2), inset 0 0 15px rgba(168, 85, 247, 0.06); background: rgba(30, 18, 48, 0.9); }
.field-input::placeholder { color: var(--dim); font-family: var(--f-th); font-size: 13px; }
.field-input[readonly] { color: var(--text); background: rgba(255,255,255,0.02); cursor: not-allowed; text-align: center;}
.field-select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 20px center; background-size: 18px; font-family: var(--f-th); }
.field-select option { background: var(--d2); color: #fff; }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(20, 12, 32, 0.8); transition: .4s; border-radius: 26px; border: 1px solid var(--border-purple); }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: var(--muted); transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: rgba(168, 85, 247, 0.12); border-color: var(--purple-b); box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.25); }
input:checked + .slider:before { transform: translateX(24px); background-color: var(--purple-b); box-shadow: 0 0 12px var(--purple-b); }
.btn { width: 100%; border: 0; border-radius: 999px; padding: 18px 24px; font-family: var(--f-th); font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; background: linear-gradient(135deg, var(--purple), var(--purple-d)); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3), 0 0 20px rgba(168, 85, 247, 0.1); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.btn:disabled { opacity: 0.5; filter: grayscale(0.3); cursor: not-allowed; }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5), 0 0 30px rgba(224, 64, 251, 0.2); filter: brightness(1.1); background: linear-gradient(135deg, var(--purple-b), var(--purple)); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.btn-outline { background: transparent; border: 2px solid var(--purple); color: var(--purple-b); box-shadow: none; text-shadow: none; }
.btn-outline:hover:not(:disabled) { background: rgba(168, 85, 247, 0.12); color: var(--purple-b); box-shadow: 0 0 25px rgba(168, 85, 247, 0.25); transform: translateY(-2px); }
.btn-vpn { width: 100%; border: 0; border-radius: 999px; padding: 18px 24px; font-family: var(--f-th); font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; background: linear-gradient(135deg, var(--purple), var(--magenta)); animation: pulseGlow 2.5s infinite; text-shadow: 0 2px 4px rgba(0,0,0,0.5); box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
.btn-vpn:hover { transform: scale(1.02); animation: none; box-shadow: 0 0 35px rgba(224, 64, 251, 0.6), 0 0 60px rgba(168, 85, 247, 0.3); background: linear-gradient(135deg, var(--magenta), var(--purple-b)); color: #fff; }
@keyframes pulseGlow { 0% { box-shadow: 0 0 5px var(--purple); } 50% { box-shadow: 0 0 25px var(--purple-b), 0 0 50px rgba(224, 64, 251, 0.3); } 100% { box-shadow: 0 0 5px var(--purple); } }
.status-box { margin-bottom: 20px; border-radius: 20px; padding: 18px 20px; font-family: var(--f-th); font-size: 13px; border: 1px solid var(--border-purple); background: rgba(255,255,255,0.02); text-align: center; }
.status-box.ok { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.06); color: var(--ok); }
.status-box.err { border-color: rgba(255, 0, 76, 0.4); background: rgba(255, 0, 76, 0.06); color: var(--crit); }
.status-box.warn { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.06); color: var(--warn); }
.data-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px dashed rgba(168, 85, 247, 0.08); }
.data-row:last-child { border-bottom: none; padding-bottom: 0;}
.d-lbl { font-size: 12px; color: var(--muted); display:flex; align-items:center; gap:8px;}
.d-lbl svg { width:14px; height:14px; stroke: currentColor; fill:none; }
.d-val { font-family: var(--f-mono); font-size: 14px; font-weight: 700; color: #fff; }
.d-val.hl { color: var(--purple-b); text-shadow: 0 0 12px rgba(168, 85, 247, 0.5); }
.float-nav { display: none; justify-content: space-around; align-items: center; padding: 6px 10px; position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; height: 70px; background: rgba(10, 6, 18, 0.9); backdrop-filter: blur(20px); border: 1px solid var(--border-purple); border-radius: 999px; z-index: 1000; box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(168, 85, 247, 0.1); }
.nav-pill { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); cursor: pointer; transition: 0.3s; height: 100%; border-radius: 999px; text-decoration: none; }
.nav-pill svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: 0.3s; }
.nav-pill span { font-family: var(--f-th); font-size: 10px; font-weight: 700; letter-spacing: 0.5px; opacity: 0; transform: translateY(5px); transition: 0.3s; position: absolute; bottom: 8px; }
.nav-pill.active { background: linear-gradient(135deg, var(--purple), var(--purple-d)); color: #fff; box-shadow: 0 0 25px rgba(168, 85, 247, 0.5); }
.nav-pill.active svg { transform: translateY(-8px); }
.nav-pill.active span { opacity: 1; transform: translateY(0); color: #fff; }
#dashboard-view { display: none; }
.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.loader { display: none; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.15); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn.loading .loader { display: block; }
.btn.loading span { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal { position: fixed; inset: 0; background: rgba(4, 3, 8, 0.85); backdrop-filter: blur(12px); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.active { display: flex; animation: fadeIn 0.3s; }
.modal-card { background: rgba(10, 6, 18, 0.95); border: 1px solid var(--border-purple); border-radius: 32px; padding: 40px 30px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 40px rgba(168, 85, 247, 0.1); }
.m-title { font-family: var(--f-display); font-size: 20px; color: #fff; margin-bottom: 10px; font-weight:800; letter-spacing:1px; text-transform:uppercase;}
.key-wrapper { display: flex; justify-content: space-between; align-items: center; }
.key-text { transition: 0.3s; }
.key-text.masked { filter: blur(5px); opacity: 0.8; user-select: none; }
.toggle-eye { background: transparent; border: none; color: var(--text); cursor: pointer; padding: 4px; transition: 0.3s; }
.toggle-eye:hover { color: var(--purple-b); transform: scale(1.1); }
.toggle-eye svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
@media(max-width:480px){ .card { padding: 30px 20px; border-radius: 24px; } .logo-wrap { width: 100px; height: 100px; } .logo-title { font-size: 24px; letter-spacing: 3px; } }
