/* ===== NewAI Hub - Partner Portal ===== */

:root {
    --hub-bg: #0a0f1a;
    --hub-surface: #111827;
    --hub-border: #1e293b;
    --hub-primary: #40baab;
    --hub-primary-light: #7fffef;
    --hub-text: #e2e8f0;
    --hub-text-muted: #64748b;
    --hub-accent: #ffaa00;
}

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

body {
    background: var(--hub-bg);
    color: var(--hub-text);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(64,186,171,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64,186,171,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.scanlines {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}

.page-container {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.hero-badge {
    display: inline-block;
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3em;
    color: var(--hub-primary);
    border: 1px solid var(--hub-primary);
    padding: 6px 20px; border-radius: 2px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800; letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.15rem; color: var(--hub-text-muted);
    max-width: 520px; margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex; justify-content: center; gap: 48px;
    margin-bottom: 40px;
}

.stat-item { text-align: center; }

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem; font-weight: 700;
    color: var(--hub-primary-light);
}

.stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.15em;
    color: var(--hub-text-muted);
    margin-top: 4px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
    color: var(--hub-bg); background: var(--hub-primary);
    border: none; border-radius: 2px;
    padding: 14px 40px; cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:hover { background: var(--hub-primary-light); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    display: inline-block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem; letter-spacing: 0.08em;
    color: var(--hub-text-muted);
    text-decoration: none;
    margin-left: 20px; padding: 14px 20px;
    border: 1px solid var(--hub-border); border-radius: 2px;
    transition: all 0.2s;
}
.btn-secondary:hover { color: var(--hub-text); border-color: var(--hub-text-muted); }

.btn-cancel {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem; color: var(--hub-text-muted);
    background: none; border: 1px solid var(--hub-border);
    padding: 12px 24px; border-radius: 2px; cursor: pointer;
}
.btn-cancel:hover { border-color: var(--hub-text-muted); }

/* ===== Section ===== */
.section {
    padding: 60px 0;
    border-top: 1px solid var(--hub-border);
}

.section-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem; letter-spacing: 0.2em;
    color: var(--hub-primary);
    margin-bottom: 12px;
}

.section-desc {
    color: var(--hub-text-muted); font-size: 1rem;
    margin-bottom: 32px;
}

/* Steps */
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-top: 32px;
}

.step-card {
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: 4px; padding: 32px 24px;
}

.step-num {
    font-family: 'Orbitron', monospace;
    font-size: 2rem; font-weight: 800;
    color: var(--hub-primary); opacity: 0.3;
    margin-bottom: 12px;
}

.step-title {
    font-family: 'Orbitron', monospace;
    font-size: 1rem; font-weight: 600; color: #fff;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.95rem; color: var(--hub-text-muted);
    line-height: 1.5;
}

/* ===== Competition Grid ===== */
.comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.comp-card {
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: 4px; padding: 16px;
    transition: border-color 0.2s;
}
.comp-card:hover { border-color: var(--hub-primary); }

.comp-card-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}

.comp-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem; letter-spacing: 0.1em;
    padding: 2px 8px; border-radius: 2px;
}

.comp-country {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem; color: var(--hub-text-muted);
}

.comp-name {
    font-size: 0.9rem; font-weight: 600; color: #fff;
    line-height: 1.3; margin-bottom: 4px;
}

.comp-fee {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem; color: var(--hub-accent);
}

.loading-text {
    font-family: 'Share Tech Mono', monospace;
    color: var(--hub-text-muted); font-size: 0.85rem;
    padding: 40px; text-align: center;
    grid-column: 1 / -1;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }

.modal {
    position: relative;
    background: var(--hub-surface);
    border: 1px solid var(--hub-primary);
    border-radius: 4px;
    padding: 40px; width: 90%; max-width: 560px;
    max-height: 90vh; overflow-y: auto;
}

.modal-corner {
    position: absolute; width: 12px; height: 12px;
    border-color: var(--hub-primary); border-style: solid; border-width: 0;
}
.modal-corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.modal-corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.modal-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.modal-corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem; font-weight: 700; color: #fff;
    margin-bottom: 28px;
}

/* Form */
.form-row { margin-bottom: 16px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-row label {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.1em;
    color: var(--hub-text-muted);
    margin-bottom: 6px;
}

.form-row input,
.form-row select {
    width: 100%; padding: 10px 12px;
    background: var(--hub-bg); border: 1px solid var(--hub-border);
    border-radius: 2px; color: var(--hub-text);
    font-family: 'Rajdhani', sans-serif; font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-row input:focus,
.form-row select:focus {
    outline: none; border-color: var(--hub-primary);
}

.form-actions {
    display: flex; justify-content: flex-end; gap: 12px;
    margin-top: 28px;
}

/* Result */
.form-result {
    text-align: center; padding: 20px 0;
}
.form-result.success .result-icon {
    font-size: 3rem; color: var(--hub-primary);
    margin-bottom: 16px;
}
.form-result.success .result-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem; font-weight: 700; color: #fff;
    margin-bottom: 20px;
}
.form-result .result-detail {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem; color: var(--hub-text-muted);
    line-height: 2;
    margin-bottom: 16px;
}
.form-result .result-detail strong { color: var(--hub-primary-light); }
.form-result .result-note {
    font-size: 0.9rem; color: var(--hub-text-muted);
    margin-bottom: 24px;
}
.form-result.error .result-title { color: #ef4444; }

/* ===== Footer ===== */
.footer {
    padding: 40px 0; text-align: center;
    border-top: 1px solid var(--hub-border);
}
.footer-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem; color: var(--hub-text-muted);
}
.footer-text a { color: var(--hub-primary); text-decoration: none; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero { padding: 48px 0 40px; }
    .hero-stats { gap: 24px; }
    .steps-grid { grid-template-columns: 1fr; }
    .comp-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .form-row.two-col { grid-template-columns: 1fr; }
    .btn-secondary { display: block; margin: 12px auto 0; }
}
