/* ===== BETA TESTER SURVEY ===== */
.beta-gate {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(41, 169, 225, 0.18), transparent 45%),
        rgba(7, 11, 18, 0.94);
    backdrop-filter: blur(10px);
}

.beta-gate[hidden] {
    display: none !important;
}

.beta-gate-panel {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 22, 36, 0.95);
    border: 1px solid rgba(41, 169, 225, 0.35);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.beta-gate-panel h1 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: #fff;
}

.beta-gate-panel > p {
    margin: 0 0 1.25rem;
    color: #8fa3bc;
    font-size: 0.95rem;
    line-height: 1.45;
}

.beta-gate-panel label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #8fa3bc;
    margin-bottom: 0.4rem;
}

.beta-gate-panel input[type="password"] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(41, 169, 225, 0.35);
    background: rgba(7, 11, 18, 0.85);
    color: #e8edf5;
    font-size: 1rem;
}

.beta-gate-panel input[type="password"]:focus {
    outline: none;
    border-color: #29a9e1;
    box-shadow: 0 0 0 3px rgba(41, 169, 225, 0.18);
}

.beta-gate-panel button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 10px;
    background: #29a9e1;
    color: #041018;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.beta-gate-error {
    min-height: 1.25rem;
    margin-top: 0.75rem;
    color: #e57373;
    font-size: 0.88rem;
}

.beta-app[hidden] {
    display: none !important;
}

.beta-page .survey-shell {
    max-width: 960px;
}

.beta-step-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.25rem;
    padding: 0.65rem;
    background: rgba(10, 14, 23, 0.75);
    border: 1px solid rgba(41, 169, 225, 0.2);
    border-radius: 12px;
}

.beta-step-chip {
    flex: 1 1 auto;
    min-width: 6.5rem;
    border: 1px solid transparent;
    background: transparent;
    color: #8fa3bc;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.beta-step-chip.active {
    color: #29a9e1;
    border-color: rgba(41, 169, 225, 0.45);
    background: rgba(41, 169, 225, 0.1);
}

.beta-step-chip.completed {
    color: #40e9a4;
}

.beta-welcome-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: start;
}

.beta-features-card {
    background: rgba(41, 169, 225, 0.06);
    border: 1px solid rgba(41, 169, 225, 0.18);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
}

.beta-features-card h3 {
    color: #29a9e1;
    font-size: 1.05rem;
    margin: 0 0 0.85rem;
}

.beta-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.beta-feature-list li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.65rem;
    color: #b8c5d6;
    font-size: 0.9rem;
    line-height: 1.4;
}

.beta-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #40e9a4;
    font-weight: 700;
}

.beta-rating-guide {
    background: rgba(41, 169, 225, 0.06);
    border: 1px solid rgba(41, 169, 225, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin: 0 0 1.25rem;
    text-align: center;
}

.beta-rating-guide h4 {
    color: #29a9e1;
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
}

.beta-rating-guide p {
    color: #8fa3bc;
    font-size: 0.88rem;
    margin: 0 0 0.65rem;
}

.beta-rating-labels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #e8edf5;
}

.beta-rating-labels span {
    line-height: 1.35;
}

.beta-rating-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.beta-rating-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.beta-rating-table th,
.beta-rating-table td {
    padding: 0.85rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: #b8c5d6;
    font-size: 0.88rem;
}

.beta-rating-table th {
    background: rgba(41, 169, 225, 0.12);
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.beta-rating-table td:first-child {
    text-align: left;
    color: #e8edf5;
    font-weight: 500;
    min-width: 12rem;
}

.beta-rating-table input[type="radio"] {
    accent-color: #29a9e1;
    transform: scale(1.15);
}

.beta-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.beta-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.beta-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #b8c5d6;
    font-size: 0.9rem;
    cursor: pointer;
}

.beta-checkbox-item input {
    accent-color: #29a9e1;
    margin-top: 0.2rem;
}

.beta-field-incomplete {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.25) !important;
}

.beta-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

body.light-mode .beta-gate-panel {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(20, 92, 146, 0.28);
}

body.light-mode .beta-gate-panel h1 {
    color: #0b1f33;
}

body.light-mode .beta-gate-panel > p,
body.light-mode .beta-gate-panel label {
    color: #3d556c;
}

body.light-mode .beta-gate-panel input[type="password"] {
    background: #fff;
    color: #0b1f33;
}

body.light-mode .beta-step-nav,
body.light-mode .beta-features-card,
body.light-mode .beta-rating-guide {
    background: rgba(20, 92, 146, 0.05);
    border-color: rgba(20, 92, 146, 0.2);
}

body.light-mode .beta-step-chip {
    color: #3d556c;
}

body.light-mode .beta-feature-list li,
body.light-mode .beta-checkbox-item,
body.light-mode .beta-rating-table td {
    color: #3d556c;
}

body.light-mode .beta-rating-table td:first-child,
body.light-mode .beta-rating-labels {
    color: #0b1f33;
}

@media (max-width: 800px) {
    .beta-welcome-grid,
    .beta-two-col {
        grid-template-columns: 1fr;
    }

    .beta-rating-labels {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 0.5rem;
    }

    .beta-nav-buttons .interview-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}
