﻿:root {
    --bg-deep: #060b14;
    --bg-base: #0a1020;
    --bg-card: #0d1628;
    --bg-card2: #111d35;
    --border: #1a2d4a;
    --accent: #00e5a0;
    --accent2: #00c4ff;
    --accent-dim: rgba(0,229,160,.10);
    --accent-glow: rgba(0,229,160,.22);
    --text-bright: #ffffff;
    --text-main: #c0d4e8;
    --text-muted: #5a7490;
    --red: #ff4d6a;
    --red-dim: rgba(255,77,106,.14);
    --green: #00e5a0;
    --green-dim: rgba(0,229,160,.13);
    --yellow: #ffc44d;
    --yellow-dim: rgba(255,196,77,.13);
    --font-display: 'Orbitron',monospace;
    --font-body: 'Syne',sans-serif;
    --font-mono: 'JetBrains Mono',monospace;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --app-max-w: 480px;
    --topbar-h: 60px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    background: #020406;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center
}

#app-shell {
    width: 100%;
    max-width: var(--app-max-w);
    min-height: 100vh;
    background: var(--bg-deep);
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(ellipse 80% 50% at 70% -5%,rgba(0,229,160,.05) 0%,transparent 60%),radial-gradient(ellipse 60% 40% at 5% 95%,rgba(0,196,255,.04) 0%,transparent 55%);
    box-shadow: 0 0 80px rgba(0,0,0,.9)
}
/* TOPBAR */
/*.topbar {
            position: sticky;
            top: 0;
            z-index: 200;
            height: var(--topbar-h);
            background: rgba(6,11,20,.98);
            backdrop-filter: blur(14px);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            padding: 0 14px;
            gap: 10px;
            flex-shrink: 0
        }

        .topbar-logo {
            display: flex;
            align-items: center;
            gap: 9px;
            text-decoration: none
        }*/

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--accent-dim);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px var(--accent-glow)
}

    .logo-icon svg {
        width: 17px;
        height: 17px
    }

.logo-text {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 2px
}

    .logo-text span {
        color: var(--accent)
    }

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .2s;
    margin-left: auto;
    cursor: pointer
}

    .back-btn:hover {
        border-color: var(--accent);
        color: var(--accent)
    }

    .back-btn svg {
        width: 13px;
        height: 13px
    }
/* PAGE */
.page {
    padding: 18px 16px 40px;
    overflow-y: auto
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-dim);
    border: 1px solid rgba(0,229,160,.25);
    border-radius: 20px;
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    margin-bottom: 16px
}

.page-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent)
}

.page-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 4px
}

    .page-title span {
        color: var(--accent)
    }

.page-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 22px
}
/* FORM CARD */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    animation: fadeUp .35s ease both
}

    .form-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg,transparent,var(--accent),transparent);
        opacity: .5
    }

.card-title {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px
}

.card-title-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%
}
/* INPUT */
.input-group {
    margin-bottom: 16px
}

.input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end
}

.input-label {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 5px
}

    .input-label svg {
        width: 11px;
        height: 11px;
        color: var(--accent)
    }

.input-wrap {
    position: relative
}

.cv-input {
    width: 100%;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px 11px 38px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-bright);
    outline: none;
    transition: all .2s
}

    .cv-input.no-icon {
        padding-left: 14px
    }

    .cv-input::placeholder {
        color: var(--text-muted)
    }

    .cv-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(0,229,160,.08);
        background: rgba(13,22,40,.9)
    }

    .cv-input.error {
        border-color: var(--red) !important;
        box-shadow: 0 0 0 3px var(--red-dim) !important
    }

    .cv-input.success {
        border-color: var(--accent) !important
    }

.cv-select {
    width: 100%;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-bright);
    outline: none;
    transition: all .2s;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a7490' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center
}

    .cv-select:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(0,229,160,.08)
    }

    .cv-select option {
        background: var(--bg-card2);
        color: var(--text-bright)
    }

.input-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color .2s
}

.input-wrap:focus-within .input-ico {
    color: var(--accent)
}

.err-msg {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--red);
    margin-top: 5px;
    display: none
}

    .err-msg.show {
        display: block
    }

.ok-msg {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    margin-top: 5px;
    display: none;
    align-items: center;
    gap: 4px
}

    .ok-msg.show {
        display: flex
    }
/* PHONE ROW */
.phone-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px
}
/* VALIDATED BADGE */
.ref-validated {
    /*display: none;*/
    align-items: center;
    gap: 10px;
    background: rgba(0,229,160,.06);
    border: 1px solid rgba(0,229,160,.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-top: 10px;
}

    .ref-validated.show {
        display: flex
    }

.ref-validated-ico {
    width: 28px;
    height: 28px;
    background: var(--green-dim);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0
}

.ref-validated-info {
}

.ref-validated-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px
}

.ref-validated-name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: #fff
}
/* VALIDATE BTN */
.btn-validate {
    background: rgba(0,229,160,.1);
    border: 1px solid rgba(0,229,160,.3);
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    flex-shrink: 0
}

    .btn-validate:hover {
        background: var(--accent-dim);
        border-color: var(--accent)
    }

    .btn-validate.validated {
        background: var(--green-dim);
        border-color: var(--accent);
        color: var(--accent)
    }
/* CHECKBOX */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px
}

.cv-checkbox {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--bg-card2);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    appearance: none;
    -webkit-appearance: none;
    transition: all .2s;
    position: relative
}

    .cv-checkbox:checked {
        background: var(--accent);
        border-color: var(--accent)
    }

        .cv-checkbox:checked::after {
            content: '✓';
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: var(--bg-deep);
            font-weight: 700
        }

.checkbox-label {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.5
}

    .checkbox-label a {
        color: var(--accent);
        text-decoration: none
    }
/* SUBMIT BTN */
.btn-register {
    width: 100%;
    background: var(--accent);
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 0 20px var(--accent-glow)
}

    .btn-register:hover {
        background: #00ffb3;
        box-shadow: 0 0 32px rgba(0,229,160,.5);
        transform: translateY(-1px)
    }

    .btn-register:disabled {
        opacity: .5;
        cursor: not-allowed;
        transform: none
    }
/* SUCCESS SECTION */
.success-section {
   /* display: none;*/
    animation: fadeUp .4s ease both
}

    .success-section.show {
        display: block
    }

.success-banner {
    background: var(--green-dim);
    border: 1px solid rgba(0,229,160,.3);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px
}

.success-banner-ico {
    width: 44px;
    height: 44px;
    background: rgba(0,229,160,.15);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 0 16px var(--accent-glow)
}

.success-banner-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px
}

.success-banner-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent)
}
/* DETAILS TABLE */
.details-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 18px;
    position: relative
}

    .details-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg,transparent,var(--accent2),transparent);
        opacity: .5
    }

.details-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px
}

.details-head-title {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase
}

.details-table {
    width: 100%;
    border-collapse: collapse
}

    .details-table tr:not(:last-child) td {
        border-bottom: 1px solid rgba(26,45,74,.5)
    }

    .details-table td {
        padding: 12px 16px;
        font-size: 12px
    }

        .details-table td:first-child {
            font-family: var(--font-display);
            font-size: 9px;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            width: 40%
        }

        .details-table td:last-child {
            font-family: var(--font-mono);
            color: var(--text-bright);
            font-weight: 600
        }

            .details-table td:last-child.highlight {
                color: var(--accent)
            }

            .details-table td:last-child.blue {
                color: var(--accent2)
            }

.copy-pwd-btn {
    background: var(--accent-dim);
    border: 1px solid rgba(0,229,160,.2);
    border-radius: 5px;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent);
    cursor: pointer;
    transition: all .2s;
    margin-left: 8px
}

    .copy-pwd-btn:hover {
        background: var(--accent);
        color: var(--bg-deep)
    }

.action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.btn-goto {
    flex: 1;
    background: var(--accent-dim);
    border: 1px solid rgba(0,229,160,.28);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px
}

    .btn-goto:hover {
        background: var(--accent);
        color: var(--bg-deep)
    }

.btn-goto-primary {
    flex: 1;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    color: var(--bg-deep);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 0 16px var(--accent-glow)
}

    .btn-goto-primary:hover {
        background: #00ffb3;
        box-shadow: 0 0 28px rgba(0,229,160,.5)
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes pulse {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}
