/* Proxyler v2 - Main Stylesheet */

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --px-accent: #6366f1;
    --px-accent-light: #818cf8;
    --px-accent-dark: #4f46e5;
    --px-success: #10b981;
    --px-warning: #f59e0b;
    --px-danger: #ef4444;
    --px-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --px-radius: 16px;
    --px-radius-sm: 10px;
    --px-transition: all .25s cubic-bezier(.4,0,.2,1);
}

[data-bs-theme="light"] {
    --px-bg: #f8f9fc;
    --px-surface: #ffffff;
    --px-surface-alt: #f1f3f9;
    --px-border: #e2e5f1;
    --px-text: #1a1d2e;
    --px-text-muted: #6b7094;
    --px-nav-bg: rgba(255,255,255,.85);
}
[data-bs-theme="dark"] {
    --px-bg: #0c0d14;
    --px-surface: #15172a;
    --px-surface-alt: #1c1f36;
    --px-border: #262a45;
    --px-text: #e8eaf0;
    --px-text-muted: #8b8fad;
    --px-nav-bg: rgba(12,13,20,.88);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background: var(--px-bg);
    color: var(--px-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.px-nav { position: sticky; top: 0; z-index: 1050; background: var(--px-nav-bg); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--px-border); }
.px-brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.5px; color: var(--px-text) !important; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.px-brand-icon { width: 32px; height: 32px; background: var(--px-gradient); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.px-nav .nav-link { color: var(--px-text-muted) !important; font-weight: 500; font-size: .9rem; padding: .5rem .85rem !important; border-radius: 8px; transition: var(--px-transition); }
.px-nav .nav-link:hover, .px-nav .nav-link.active { color: var(--px-accent-light) !important; background: rgba(99,102,241,.08); }

/* HERO */
.px-hero { position: relative; padding: 6rem 0 5rem; overflow: hidden; }
.px-hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.px-hero::after { content: ''; position: absolute; bottom: -150px; left: -150px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(139,92,246,.1) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.px-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 1.25rem; }
.px-hero h1 span { background: var(--px-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.px-hero p { font-size: 1.15rem; color: var(--px-text-muted); max-width: 540px; line-height: 1.7; }

/* BUTTONS */
.btn-px { background: var(--px-gradient); border: none; color: #fff; font-weight: 600; padding: .65rem 1.5rem; border-radius: var(--px-radius-sm); transition: var(--px-transition); font-size: .95rem; }
.btn-px:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(99,102,241,.35); color: #fff; }
.btn-px-outline { background: transparent; border: 1.5px solid var(--px-border); color: var(--px-text); font-weight: 600; padding: .65rem 1.5rem; border-radius: var(--px-radius-sm); transition: var(--px-transition); font-size: .95rem; }
.btn-px-outline:hover { border-color: var(--px-accent); color: var(--px-accent-light); background: rgba(99,102,241,.06); }

/* CARDS */
.px-card { background: var(--px-surface); border: 1px solid var(--px-border); border-radius: var(--px-radius); padding: 1.75rem; transition: var(--px-transition); }
.px-card:hover { border-color: rgba(99,102,241,.3); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.px-card-icon { width: 48px; height: 48px; background: rgba(99,102,241,.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--px-accent-light); margin-bottom: 1rem; }
.px-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.px-card p { color: var(--px-text-muted); font-size: .9rem; line-height: 1.6; margin: 0; }

/* PRICING */
.px-price-card { background: var(--px-surface); border: 1px solid var(--px-border); border-radius: var(--px-radius); padding: 2rem; text-align: center; transition: var(--px-transition); position: relative; }
.px-price-card.featured { border-color: var(--px-accent); box-shadow: 0 0 0 1px var(--px-accent), 0 8px 30px rgba(99,102,241,.15); }
.px-price-card.featured::before { content: '⭐ Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--px-gradient); color: #fff; padding: 2px 16px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.px-price-amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }
.px-price-period { color: var(--px-text-muted); font-size: .85rem; }

/* LOCATION SELECTOR */
.px-location-opt { cursor: pointer; border: 1.5px solid var(--px-border); border-radius: var(--px-radius-sm); padding: 1rem; transition: var(--px-transition); text-align: center; }
.px-location-opt:hover { border-color: var(--px-accent); }
.px-location-opt.selected { border-color: var(--px-accent); background: rgba(99,102,241,.08); box-shadow: 0 0 0 1px var(--px-accent); }
.px-location-opt .flag { font-size: 2rem; margin-bottom: .35rem; }

/* FORMS */
.form-control, .form-select { background: var(--px-surface-alt); border: 1px solid var(--px-border); border-radius: var(--px-radius-sm); color: var(--px-text); padding: .65rem 1rem; font-family: var(--font-main); transition: var(--px-transition); }
.form-control:focus, .form-select:focus { background: var(--px-surface); border-color: var(--px-accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15); color: var(--px-text); }

/* SIDEBAR */
.px-sidebar .list-group-item { background: transparent; border: none; border-radius: var(--px-radius-sm) !important; color: var(--px-text-muted); font-weight: 500; padding: .75rem 1rem; transition: var(--px-transition); }
.px-sidebar .list-group-item:hover { background: var(--px-surface-alt); color: var(--px-text); }
.px-sidebar .list-group-item.active { background: rgba(99,102,241,.1); color: var(--px-accent-light); border-color: transparent; }

/* TABLE */
.px-table { font-size: .88rem; }
.px-table th { font-weight: 600; color: var(--px-text-muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .5px; border-bottom: 1px solid var(--px-border) !important; }
.px-table td { vertical-align: middle; border-color: var(--px-border); }
.px-table code { font-family: var(--font-mono); font-size: .82rem; background: var(--px-surface-alt); padding: 2px 8px; border-radius: 6px; }

/* BADGES */
.badge-active { background: rgba(16,185,129,.12); color: var(--px-success); font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.badge-expired { background: rgba(239,68,68,.12); color: var(--px-danger); font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.badge-pending { background: rgba(245,158,11,.12); color: var(--px-warning); font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.badge-type { background: rgba(99,102,241,.1); color: var(--px-accent-light); font-weight: 600; padding: 4px 10px; border-radius: 6px; font-family: var(--font-mono); font-size: .78rem; }

/* THEME SWITCHER */
.px-theme-btn { background: var(--px-surface-alt); border: 1px solid var(--px-border); border-radius: 8px; padding: 6px 10px; color: var(--px-text-muted); cursor: pointer; transition: var(--px-transition); font-size: .85rem; }
.px-theme-btn:hover { border-color: var(--px-accent); color: var(--px-accent-light); }

/* STATS */
.px-stat { text-align: center; padding: 1.5rem; }
.px-stat-num { font-size: 2rem; font-weight: 800; background: var(--px-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.px-stat-label { font-size: .85rem; color: var(--px-text-muted); margin-top: .25rem; }

/* FOOTER */
.px-footer { margin-top: auto; border-top: 1px solid var(--px-border); background: var(--px-surface); padding: 2.5rem 0 1.5rem; }
.px-footer a { color: var(--px-text-muted); text-decoration: none; transition: var(--px-transition); }
.px-footer a:hover { color: var(--px-accent-light); }

/* MODAL */
.modal-content { background: var(--px-surface); border: 1px solid var(--px-border); border-radius: var(--px-radius); }
.nav-tabs { border-bottom: 1px solid var(--px-border); }
.nav-tabs .nav-link { color: var(--px-text-muted); border: none; font-weight: 600; }
.nav-tabs .nav-link.active { color: var(--px-accent-light); background: transparent; border-bottom: 2px solid var(--px-accent); }

/* ALERTS */
.px-alert { border-radius: var(--px-radius-sm); border: none; font-size: .9rem; }

/* ACCORDION */
.accordion-button:not(.collapsed) { background: var(--px-surface-alt); color: var(--px-accent-light); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--px-accent); }
.accordion-button::after { filter: invert(.5); }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp .5s ease forwards; opacity: 0; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .px-hero { padding: 3rem 0 2.5rem; }
    .px-hero h1 { font-size: 1.8rem; }
    .px-price-amount { font-size: 2rem; }
    .px-location-opt .flag { font-size: 1.5rem; }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--px-bg); }
::-webkit-scrollbar-thumb { background: var(--px-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--px-accent); }

/* Smooth theme transitions */
body, .px-nav, .px-card, .px-footer, .modal-content, .form-control, .form-select { transition: background .3s ease, color .3s ease, border-color .3s ease; }
