/* ============================================
   BELSIS 2 — Glassmorphism + Gradient Design
   ============================================ */

:root {
    --bg-deep: #070b1e;
    --bg-card: rgba(15, 20, 55, 0.65);
    --bg-card-hover: rgba(25, 32, 80, 0.8);
    --glass-border: rgba(120, 100, 255, 0.15);
    --glass-border-hover: rgba(120, 100, 255, 0.35);
    --accent: #7c5cfc;
    --accent-glow: rgba(124, 92, 252, 0.4);
    --pink: #e056a0;
    --pink-glow: rgba(224, 86, 160, 0.4);
    --cyan: #56d4e0;
    --text: #e0e8ff;
    --text-dim: #8090c0;
    --text-bright: #ffffff;
    --vip-grad: linear-gradient(135deg, #e056a0, #7c5cfc);
    --card-radius: 16px;
    --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Animated Background ── */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #7c5cfc, transparent 70%);
    top: -200px; left: -100px;
    animation: float1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #e056a0, transparent 70%);
    bottom: -150px; right: -100px;
    animation: float2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #56d4e0, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 30s ease-in-out infinite;
    opacity: 0.15;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 60px) scale(1.1); }
    66% { transform: translate(-40px, 100px) scale(0.9); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, -80px) scale(1.15); }
    66% { transform: translate(50px, -40px) scale(0.85); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-40%, -60%) scale(1.3); }
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ── Navigation ── */
.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 11, 30, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-bright);
    font-weight: 700;
    font-size: 1.3rem;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-badge {
    background: var(--vip-grad);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* ── Hero ── */
.hero {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 5rem 1.5rem 3rem;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-block;
    background: rgba(124, 92, 252, 0.15);
    border: 1px solid rgba(124, 92, 252, 0.3);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: var(--text-bright);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--pink), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.highlight {
    color: var(--cyan);
    font-weight: 500;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-bright);
    font-family: var(--mono);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Main ── */
.main-wrap {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ── Section ── */
.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 0 0.2rem;
}

.section-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 92, 252, 0.1);
    border: 1px solid rgba(124, 92, 252, 0.2);
    border-radius: 14px;
    flex-shrink: 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-bright);
}

.section-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.15rem;
}

/* ── Card Grid ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.query-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 1.2rem 1.4rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.query-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.query-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(124, 92, 252, 0.15);
}

.query-card:hover::before {
    opacity: 1;
}

.query-card:hover .card-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

.card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 92, 252, 0.1);
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.card-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body p {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-arrow {
    font-size: 1.3rem;
    color: var(--text-dim);
    transition: all 0.3s;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* ── VIP Section ── */
.vip-section .section-icon {
    background: rgba(224, 86, 160, 0.12);
    border-color: rgba(224, 86, 160, 0.25);
}

.vip-title {
    background: var(--vip-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vip-sub { color: rgba(224, 86, 160, 0.7); }

.vip-card {
    border-color: rgba(224, 86, 160, 0.15);
    background: rgba(30, 10, 35, 0.55);
}

.vip-card .card-icon {
    background: rgba(224, 86, 160, 0.1);
}

.vip-card:hover {
    border-color: rgba(224, 86, 160, 0.4);
    box-shadow: 0 12px 40px rgba(224, 86, 160, 0.15);
    background: rgba(40, 15, 50, 0.7);
}

.vip-card:hover .card-arrow {
    color: var(--pink);
}

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(224, 86, 160, 0.1);
    border: 1px solid rgba(224, 86, 160, 0.25);
    color: var(--pink);
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.2rem;
}

.footer-cta:hover {
    background: rgba(224, 86, 160, 0.2);
    box-shadow: 0 0 25px var(--pink-glow);
    transform: scale(1.03);
}

.pulse-dot {
    width: 10px; height: 10px;
    background: var(--pink);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 12px var(--pink-glow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ── Query Page Template Styles ── */
.page-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(124, 92, 252, 0.2);
    border-radius: 10px;
    background: rgba(124, 92, 252, 0.06);
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.back-link:hover {
    background: rgba(124, 92, 252, 0.15);
    border-color: rgba(124, 92, 252, 0.4);
}

.query-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.panel-head {
    padding: 1.2rem 1.5rem;
    background: rgba(124, 92, 252, 0.06);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.panel-head h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-bright);
}

.panel-head .badge {
    background: var(--pink);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-left: auto;
}

.panel-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 0.4rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

input[type="text"],
input[type="number"],
input[type="tel"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(124, 92, 252, 0.2);
    color: var(--text-bright);
    font-family: var(--font);
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    background: rgba(0, 0, 0, 0.5);
}

input::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

.btn-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 140px;
    padding: 0.9rem 1.2rem;
    border: 2px solid;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    letter-spacing: 0.5px;
    background: transparent;
}

.btn-primary {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    background: rgba(124, 92, 252, 0.15);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
    border-color: var(--pink);
    color: var(--pink);
    box-shadow: 0 0 10px var(--pink-glow);
}

.btn-secondary:hover {
    background: rgba(224, 86, 160, 0.15);
    box-shadow: 0 0 25px var(--pink-glow);
}

.result-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.result-content {
    padding: 1.5rem;
    min-height: 120px;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.placeholder-text {
    color: var(--text-dim);
    text-align: center;
    padding: 2rem 1rem;
}

.error-text {
    color: #ff6b6b;
    text-align: center;
}

/* Result Table */
.result-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    margin: 0.5rem 0;
}

.result-table tr {
    background: rgba(124, 92, 252, 0.06);
    border-radius: 8px;
    transition: all 0.2s;
}

.result-table tr:hover {
    background: rgba(124, 92, 252, 0.12);
}

.result-table td {
    padding: 0.7rem 1rem;
}

.result-table .lbl {
    width: 35%;
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    padding-right: 1rem;
    border-right: 1px solid rgba(124, 92, 252, 0.15);
    border-radius: 8px 0 0 8px;
}

.result-table .val {
    color: var(--text-bright);
    border-radius: 0 8px 8px 0;
    word-break: break-word;
}

.result-count {
    text-align: center;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-grid .result-table {
    width: calc(50% - 0.5rem);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { padding: 3.5rem 1rem 2rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 1.5rem; }
    .card-grid { grid-template-columns: 1fr; }
    .results-grid .result-table { width: 100%; }
    .form-row { flex-direction: column; }
    .form-row .form-group { min-width: 100%; }
    .btn-row { flex-direction: column; }
    .btn { width: 100%; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .section-icon { width: 40px; height: 40px; font-size: 1.4rem; }
    .card-icon { width: 40px; height: 40px; font-size: 1.5rem; }
    .query-card { padding: 1rem; }
}