/* ═══════════════════════════════════════════════════════
   FIRK.PRO — стилі
   ═══════════════════════════════════════════════════════ */

:root {
    --bg:        #07090f;
    --bg2:       #0c1019;
    --panel:     #0f1523;
    --panel2:    #161d2e;
    --border:    #1f2a42;
    --text:      #f0f6ff;
    --text2:     #a8b8d4;
    --muted:     #5e6d88;
    --accent:    #00e0ff;
    --accent2:   #a855f7;
    --neon:      #00ffc8;
    --ok:        #00ff9d;
    --warn:      #ffb340;
    --bad:       #ff3860;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--neon); }

code {
    font-family: "Consolas", monospace;
    background: var(--panel2);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.9em;
}

/* ─── NAV ─── */
.nav {
    background: rgba(7, 9, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 8px;
    font-size: 16px;
}
.accent { color: var(--accent); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a { color: var(--text2); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--text); }

/* ─── BUTTONS ─── */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #001018 !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 224, 255, 0.3);
    color: #001018 !important;
}
.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--text) !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
}
.btn-ghost:hover {
    border-color: var(--accent);
    background: var(--panel);
    color: var(--accent) !important;
}
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ─── HERO ─── */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 52px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 18px;
    color: var(--text2);
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 14px; color: var(--muted); }

/* ─── MOCKUP ─── */
.hero-visual { display: flex; justify-content: center; }
.mockup {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(0, 224, 255, 0.1);
}
.mockup-bar {
    background: var(--bg2);
    padding: 12px 16px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}
.mockup-bar span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
}
.mockup-bar span:nth-child(1) { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #febc2e; }
.mockup-bar span:nth-child(3) { background: #28c840; }

.mockup-body { padding: 24px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mockup-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}
.mockup-label {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.mockup-value {
    font-family: "Consolas", monospace;
    font-size: 28px;
    font-weight: 700;
}
.mockup-chart {
    grid-column: 1 / -1;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    height: 100px;
}
.mockup-chart svg { width: 100%; height: 100%; }

/* ─── FEATURES ─── */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}
.features h2, .pricing h2 {
    font-size: 38px;
    text-align: center;
    margin-bottom: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: all .3s;
}
.feature:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 224, 255, 0.1);
}
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text2); font-size: 14px; }

/* ─── PRICING ─── */
.pricing {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.price-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    transition: all .3s;
}
.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 60px rgba(0, 224, 255, 0.15);
}
.ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #001018;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    letter-spacing: 0.05em;
}
.price-card h3 { font-size: 16px; color: var(--text2); margin-bottom: 12px; font-weight: 600; }
.price {
    font-size: 48px;
    font-weight: 800;
    font-family: "Consolas", monospace;
    color: var(--accent);
    line-height: 1;
}
.price span { font-size: 42px; }
.period {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 24px;
    margin-top: 6px;
}
.price-card ul {
    list-style: none;
    margin: 24px 0;
    padding: 0;
}
.price-card ul li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text2);
    border-bottom: 1px solid var(--border);
}
.price-card ul li:last-child { border-bottom: none; }
.price-card .btn-primary {
    display: block;
    text-align: center;
    margin-top: 12px;
}

/* ─── CHECK PAGE ─── */
.check-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 24px;
}
.check-container h1 {
    font-size: 32px;
    margin-bottom: 12px;
    text-align: center;
}
.check-sub {
    text-align: center;
    color: var(--text2);
    margin-bottom: 32px;
}
.check-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.check-form input {
    flex: 1;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-family: "Consolas", monospace;
    letter-spacing: 0.05em;
    outline: none;
    transition: all .2s;
}
.check-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.15);
}
.check-form button {
    padding: 16px 28px;
    font-size: 15px;
}
.check-result {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    min-height: 100px;
    margin-bottom: 32px;
}
.check-result.success { border-color: var(--ok); }
.check-result.error { border-color: var(--bad); }
.check-result.warning { border-color: var(--warn); }
.result-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.check-result.success .result-title { color: var(--ok); }
.check-result.error .result-title { color: var(--bad); }
.check-result.warning .result-title { color: var(--warn); }
.result-body { color: var(--text2); font-size: 14px; }
.check-details {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    padding: 16px;
    background: var(--bg2);
    border-radius: 10px;
}
.check-details > div {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.check-details span { color: var(--muted); }
.check-details b { color: var(--text); }
.check-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.check-help {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}
.check-help h3 { font-size: 16px; margin-bottom: 14px; }
.check-help ol {
    padding-left: 20px;
    color: var(--text2);
    font-size: 14px;
}
.check-help ol li { padding: 4px 0; }

/* ─── LOADING ─── */
.loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text2);
    font-size: 14px;
}
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FOOTER ─── */
.footer {
    border-top: 1px solid var(--border);
    margin-top: 80px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text2); font-size: 14px; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        text-align: center;
    }
    .hero h1 { font-size: 36px; }
    .hero-actions { justify-content: center; }
    .nav-links a:not(.btn-primary) { display: none; }
    .features h2, .pricing h2 { font-size: 28px; }
}

/* ═══════════════════════════════════════════════════════════
   SUPPORT CHAT
   ═══════════════════════════════════════════════════════════ */
.support-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.support-window {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    height: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.support-header {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-size: 15px;
}
.support-status {
    color: var(--neon);
    margin-right: 8px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.support-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s;
}
.support-close:hover { color: var(--bad); }

.support-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg);
}
.support-empty {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    padding: 40px 20px;
}
.support-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    animation: slideIn 0.2s;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.support-bubble.support-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #001018;
    border-bottom-right-radius: 4px;
}
.support-bubble.support-admin {
    align-self: flex-start;
    background: var(--panel2);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.support-text {
    white-space: pre-wrap;
    word-break: break-word;
}
.support-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

.support-input-area {
    border-top: 1px solid var(--border);
    padding: 12px;
    background: var(--bg2);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.support-input-area input {
    flex: 1;
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.support-input-area input:focus {
    border-color: var(--accent);
}
#support-name {
    flex: 0 0 100%;
    font-size: 12px;
    padding: 6px 10px;
    opacity: 0.7;
}
.support-input-area button {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

/* На мобільному — на весь екран */
@media (max-width: 640px) {
    .support-window {
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .support-modal { padding: 0; }
}