@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700&display=swap');
:root {
    --bg: #000000;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-sub: rgba(255, 255, 255, 0.5);
    --green: #34c759;
    --green-glow: rgba(52, 199, 89, 0.25);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }
body {
    background: var(--bg);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: radial-gradient(circle at 50% 50%, #111 0%, #000 70%);
}
.ambient-light {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(50, 50, 80, 0.15) 0%, transparent 60%);
    top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; transition: 1s var(--ease); z-index: 0;
}
.ambient-light.active {
    background: radial-gradient(circle, rgba(100, 200, 255, 0.08) 0%, transparent 60%); width: 800px; height: 800px;
}
.app-frame {
    position: relative; z-index: 1; width: 100%; height: 100%; max-width: 400px; max-height: 850px;
    display: flex; flex-direction: column; padding: 10px 30px 15px;
}
.header { display: flex; justify-content: space-between; align-items: center; opacity: 0.8; margin-top: 5px; }
.brand { font-size: 18px; font-weight: 600; letter-spacing: 2px; background: linear-gradient(to right, #fff, #888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.indicator { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-sub); transition: 0.5s; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-sub); transition: 0.5s; }
.indicator.connected .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.indicator.connected { color: var(--green); }
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; margin-top: -20px; }
.power-orb-container { position: relative; width: 160px; height: 160px; display: flex; justify-content: center; align-items: center; }
.ring-bg { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--border); transition: 0.8s var(--ease); }
.ring-active { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px solid transparent; border-top-color: #fff; opacity: 0; transform: scale(0.8); transition: 0.8s var(--ease); }
.power-orb-container.connecting .ring-active { opacity: 1; transform: scale(1); animation: spin 1.5s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.btn-main {
    width: 130px; height: 130px; border-radius: 50%; background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: none; cursor: pointer; position: relative; z-index: 2; display: flex; flex-direction: column;
    align-items: center; justify-content: center; box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.1);
    transition: all 0.6s var(--ease);
}
.btn-main svg { width: 32px; height: 32px; fill: var(--text-sub); transition: 0.6s var(--ease); }
.btn-main span { margin-top: 6px; font-size: 10px; font-weight: 500; letter-spacing: 1.5px; color: var(--text-sub); transition: 0.6s var(--ease); }
.btn-main:active { transform: scale(0.96); }
.btn-main.on { background: linear-gradient(145deg, #222, #111); box-shadow: 0 0 40px rgba(255,255,255,0.1), inset 0 0 20px rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.3); }
.btn-main.on svg { fill: #fff; filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); }
.btn-main.on span { color: #fff; }
.orb-glow { position: absolute; top: 50%; left: 50%; width: 120px; height: 120px; background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%); border-radius: 50%; transform: translate(-50%, -50%); filter: blur(20px); opacity: 0; transition: 0.8s; }
.btn-main.on ~ .orb-glow { opacity: 1; width: 180px; height: 180px; }
.server-pill {
    display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 100px; cursor: pointer; transition: 0.3s var(--ease); backdrop-filter: blur(20px);
}
.server-pill:hover { background: var(--surface-hover); border-color: rgba(255, 255, 255, 0.2); }
.server-pill .flag { font-size: 16px; }
.server-pill .info { display: flex; flex-direction: column; align-items: flex-start; }
.server-pill .name { font-size: 13px; font-weight: 500; color: #fff; }
.server-pill .ping { font-size: 10px; color: var(--text-sub); font-family: monospace; }
.chevron { width: 16px; opacity: 0.3; transition: 0.3s; }
.server-pill:hover .chevron { opacity: 0.8; transform: translateX(2px); }
.stats-panel {
    position: absolute; bottom: 130px; left: 30px; right: 30px; display: flex; gap: 12px; opacity: 0.3; transition: 0.6s var(--ease);
}
.stats-panel.active { opacity: 1; }
.stat-box {
    flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px;
    display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden;
}
.stat-box::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); opacity: 0; transition: 0.4s; }
.stats-panel.active .stat-box::after { opacity: 1; }
.stat-label { font-size: 10px; letter-spacing: 1px; color: var(--text-sub); text-transform: uppercase; }
.stat-value { font-size: 18px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 11px; color: var(--text-sub); font-weight: 400; }
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: 0.4s; z-index: 100; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed; bottom: 0; left: 0; width: 100%; background: #0a0a0a; border-top-left-radius: 24px; border-top-right-radius: 24px;
    border-top: 1px solid var(--border); padding: 24px; transform: translateY(100%); transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 101; max-height: 60vh; display: flex; flex-direction: column;
}
.drawer-overlay.open .drawer { transform: translateY(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer-title { font-size: 16px; font-weight: 600; }
.drawer-close { background: var(--surface); border: none; color: #fff; padding: 8px; border-radius: 50%; cursor: pointer; }
.server-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px; }
.server-item {
    display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--surface);
    border-radius: 16px; cursor: pointer; transition: all 0.5s var(--ease); filter: blur(8px); opacity: 0.3; position: relative;
}
.server-item.revealed { filter: blur(0); opacity: 1; }
.server-item:hover { background: var(--surface-hover); }
.server-item.active { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); }
.s-left { display: flex; align-items: center; gap: 12px; }
.s-flag { font-size: 20px; }
.s-name { font-size: 14px; font-weight: 500; }
.s-sub { font-size: 10px; color: var(--text-sub); }
.s-ping {
    font-size: 11px; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,0.05); color: var(--text-sub);
    font-family: monospace; min-width: 48px; text-align: right; display: flex; justify-content: center; align-items: center; height: 22px; overflow: hidden;
}
.s-ping.good { color: var(--green); background: rgba(52, 199, 89, 0.1); }
.s-ping.mid { color: #ffd60a; background: rgba(255, 214, 10, 0.1); }
.s-ping.bad { color: #ff453a; background: rgba(255, 69, 58, 0.1); }
.loading-ping { display: inline-block; width: 4px; height: 4px; background: #fff; border-radius: 50%; animation: pingLoad 1s infinite ease-in-out alternate; box-shadow: 5px 0 0 rgba(255,255,255,0.3), 10px 0 0 rgba(255,255,255,0.1); }
@keyframes pingLoad { 0% { opacity: 0.3; } 100% { opacity: 1; } }
.server-list::-webkit-scrollbar { width: 4px; }
.server-list::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* --- NATIVE PREMIUM MODAL (Matches App Theme Exactly) --- */
.premium-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(18px);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: 0.4s var(--ease);
}
.premium-overlay.active { opacity: 1; pointer-events: auto; }

.premium-card {
    position: relative; width: 85%; max-width: 320px;
    background: rgba(14, 15, 30, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px 24px 28px;
    text-align: center;
    transform: scale(0.92) translateY(15px);
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
.premium-overlay.active .premium-card { transform: scale(1) translateY(0); }

.premium-icon-wrap {
    width: 64px; height: 64px; margin: 0 auto 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.05);
}
.premium-icon-wrap svg { width: 26px; height: 26px; fill: var(--text-sub); }

.premium-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 6px; direction: rtl;
}
.premium-desc {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 12px; color: var(--text-sub); line-height: 1.7; direction: rtl; margin: 0 0 20px;
}
.premium-divider { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); margin: 0 auto 18px; }

.premium-price-box {
    display: flex; justify-content: center; align-items: baseline; gap: 6px; margin-bottom: 24px;
}
.premium-price-box .amount { font-size: 24px; font-weight: 700; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; }
.premium-price-box .label { font-size: 12px; color: var(--text-sub); font-family: 'Vazirmatn', sans-serif; }

.premium-btn {
    width: 100%; padding: 14px;
    background: var(--surface);
    border: 1px solid rgba(52, 199, 89, 0.35);
    border-radius: 14px;
    color: var(--green);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: 0.3s;
    box-shadow: 0 0 12px rgba(52, 199, 89, 0.08);
}
.premium-btn:hover {
    background: rgba(52, 199, 89, 0.08);
    box-shadow: 0 0 20px rgba(52, 199, 89, 0.15);
    border-color: rgba(52, 199, 89, 0.6);
}
.premium-btn:active { transform: scale(0.98); }

.premium-secure {
    display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px;
    font-family: 'Vazirmatn', sans-serif; font-size: 11px; color: rgba(255,255,255,0.3); direction: rtl;
}
.premium-secure svg { width: 12px; height: 12px; fill: rgba(255,255,255,0.3); }