:root {
    --bg: #070b18;
    --card: rgba(28, 39, 66, 0.88);
    --card-dark: rgba(20, 29, 49, 0.92);
    --line: rgba(148, 163, 184, 0.18);

    --text: #f3f6ff;
    --muted: #a8b3c7;

    --blue: #5d7cff;
    --purple: #7b4dff;
    --cyan: #55d6be;

    --danger: #ff8793;
    --success: #55d6be;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(53, 79, 139, 0.45),
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(62, 48, 120, 0.30),
            transparent 35%
        ),
        #070b18;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.shell {
    width: min(900px, 92vw);

    margin: 0 auto;

    padding: 34px 0 60px;
}


/* =========================================================
   TOP NAV
========================================================= */

.top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 24px;
}

.brand {
    font-size: 22px;

    font-weight: 850;

    letter-spacing: -0.5px;
}

.brand span {
    color: var(--blue);
}

.nav {
    display: flex;

    gap: 8px;
}

.nav a {
    padding: 9px 14px;

    border-radius: 10px;

    border: 1px solid var(--line);

    background: rgba(255,255,255,0.02);

    color: var(--muted);

    font-size: 13px;

    transition: 0.2s;
}

.nav a:hover {
    color: white;

    border-color: rgba(110,168,255,0.45);

    background: rgba(110,168,255,0.08);
}


/* =========================================================
   MAIN CARD
========================================================= */

.card {
    width: 100%;

    background:
        linear-gradient(
            145deg,
            rgba(46, 60, 94, 0.90),
            rgba(23, 31, 52, 0.94)
        );

    border: 1px solid rgba(148,163,184,0.20);

    border-radius: 24px;

    padding: 34px;

    box-shadow:
        0 25px 80px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.04);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);
}


/* =========================================================
   PROFILE CREATE
========================================================= */

.profile-create {
    max-width: 820px;

    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.profile-create-header {
    text-align: center;

    margin-bottom: 30px;
}

.profile-create-icon {
    width: 72px;
    height: 72px;

    margin: 0 auto 15px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    font-size: 32px;

    background:
        rgba(110,168,255,0.14);

    border: 1px solid rgba(110,168,255,0.25);

    box-shadow:
        0 10px 35px rgba(0,0,0,0.20);
}

.badge {
    display: inline-block;

    padding: 6px 10px;

    margin-bottom: 12px;

    border-radius: 999px;

    background: rgba(85,214,190,0.10);

    border: 1px solid rgba(85,214,190,0.15);

    color: var(--cyan);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.3px;
}

h1 {
    margin: 0 0 10px;

    font-size: 38px;

    line-height: 1.1;

    letter-spacing: -1.3px;
}

.lead {
    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   SECTIONS
========================================================= */

.profile-section {
    margin-bottom: 18px;

    padding: 22px;

    border-radius: 18px;

    background:
        rgba(8, 15, 29, 0.35);

    border: 1px solid rgba(148,163,184,0.14);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.02);
}

.profile-section-title {
    margin-bottom: 18px;

    color: #eaf0fb;

    font-size: 16px;

    font-weight: 800;
}


/* =========================================================
   FORM
========================================================= */

.row {
    display: grid;

    grid-template-columns: 1fr 180px;

    gap: 15px;
}

label {
    display: block;

    margin: 0 0 7px;

    color: #cbd5e5;

    font-size: 12px;

    font-weight: 650;
}

input {
    width: 100%;

    height: 46px;

    padding: 0 14px;

    border-radius: 11px;

    border: 1px solid rgba(148,163,184,0.18);

    outline: none;

    background: rgba(5, 11, 22, 0.65);

    color: var(--text);

    font-size: 13px;

    transition: 0.2s;
}

input::placeholder {
    color: #66758d;
}

input:focus {
    border-color: rgba(110,168,255,0.65);

    box-shadow:
        0 0 0 3px rgba(110,168,255,0.08);
}

.profile-section > label:not(:first-child) {
    margin-top: 17px;
}


/* =========================================================
   VOICE ENROLLMENT HEADER
========================================================= */

.sample-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 15px;
}

.sample-title {
    font-size: 16px;

    font-weight: 800;
}

.sample-number {
    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(110,168,255,0.10);

    border: 1px solid rgba(110,168,255,0.20);

    color: #abc3ff;

    font-size: 11px;

    font-weight: 800;
}


/* =========================================================
   PROGRESS
========================================================= */

.progress {
    width: 100%;

    height: 5px;

    margin-bottom: 20px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(255,255,255,0.06);
}

.progress-bar {
    width: 0%;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--purple)
        );

    transition: width 0.3s ease;
}


/* =========================================================
   PARAGRAPH
========================================================= */

.paragraph-label {
    margin-bottom: 8px;

    color: #8998af;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}

.paragraph-box {
    min-height: 145px;

    padding: 17px 18px;

    border-radius: 14px;

    border: 1px solid rgba(148,163,184,0.13);

    background:
        rgba(4, 10, 21, 0.60);

    color: #dce5f3;

    font-size: 13px;

    line-height: 1.75;

    box-shadow:
        inset 0 1px 8px rgba(0,0,0,0.15);
}


/* =========================================================
   BUTTON BASE
========================================================= */

.btn {
    width: 100%;

    height: 46px;

    margin-top: 13px;

    border: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #5d72ff,
            #7b4dff
        );

    color: white;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.15s,
        box-shadow 0.15s,
        opacity 0.15s;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);

    box-shadow:
        0 8px 25px rgba(101,82,255,0.25);
}

.btn:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}

.btn.secondary {
    background:
        rgba(110,168,255,0.08);

    border: 1px solid rgba(110,168,255,0.20);

    color: #bcd0ff;
}


/* =========================================================
   RECORD BUTTONS
========================================================= */

.record-controls {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: 12px;
}

.record-main,
.stop-main {
    width: 100%;

    height: 48px;

    border-radius: 12px;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    transition: 0.2s;
}

.record-main {
    border: 0;

    background:
        linear-gradient(
            135deg,
            #5d72ff,
            #7b4dff
        );

    color: white;
}

.record-main:hover:not(:disabled) {
    transform: translateY(-1px);

    box-shadow:
        0 8px 25px rgba(101,82,255,0.28);
}

.stop-main {
    border: 1px solid rgba(255,135,147,0.25);

    background:
        rgba(255,135,147,0.08);

    color: #ffadb5;
}

.stop-main:hover:not(:disabled) {
    background:
        rgba(255,135,147,0.13);
}

.record-main:disabled,
.stop-main:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}


/* =========================================================
   RECORD STATUS
========================================================= */

.record-status {
    margin-top: 13px;

    text-align: center;

    color: #8493a9;

    font-size: 12px;
}

.record-status.recording {
    color: #ff9ca7;

    font-weight: 700;
}

.record-status.ready {
    color: #8493a9;
}


/* =========================================================
   AUDIO
========================================================= */

audio {
    width: 100%;

    height: 42px;

    margin-top: 14px;

    border-radius: 10px;
}


/* =========================================================
   SAMPLE ACTIONS
========================================================= */

.sample-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: 12px;
}

.sample-actions .btn {
    margin-top: 0;
}


/* =========================================================
   SAMPLE COUNTER
========================================================= */

.sample-counter {
    margin-bottom: 14px;

    text-align: center;

    color: var(--muted);

    font-size: 12px;
}

.sample-counter strong {
    color: white;

    font-size: 13px;
}


/* =========================================================
   CREATE PROFILE BUTTON
========================================================= */

.create-profile-btn {
    width: 100%;

    height: 50px;

    border: 0;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #5d72ff,
            #7b4dff
        );

    color: white;

    font-size: 14px;

    font-weight: 850;

    cursor: pointer;

    transition: 0.2s;
}

.create-profile-btn:hover:not(:disabled) {
    transform: translateY(-1px);

    box-shadow:
        0 10px 30px rgba(101,82,255,0.28);
}

.create-profile-btn:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}


/* =========================================================
   STATUS
========================================================= */

.status {
    display: none;

    margin-top: 13px;

    padding: 11px 13px;

    border-radius: 11px;

    font-size: 12px;

    line-height: 1.5;
}

.status.show {
    display: block;
}

.status.error {
    color: #ffb5bd;

    background:
        rgba(255,135,147,0.08);

    border: 1px solid rgba(255,135,147,0.16);
}

.status.ok {
    color: #a9eee2;

    background:
        rgba(85,214,190,0.08);

    border: 1px solid rgba(85,214,190,0.15);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .shell {
        width: 94vw;

        padding-top: 20px;
    }

    .card {
        padding: 22px;

        border-radius: 20px;
    }

    .row {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 32px;
    }

    .profile-section {
        padding: 18px;
    }
}


@media (max-width: 520px) {

    .top {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }

    .nav {
        width: 100%;
    }

    .nav a {
        text-align: center;
    }

    .record-controls,
    .sample-actions {
        grid-template-columns: 1fr;
    }

    .sample-header {
        align-items: flex-start;

        gap: 10px;

        flex-direction: column;
    }

    .paragraph-box {
        font-size: 12px;

        min-height: 170px;
    }
}


.new-question-btn {
    width: auto;
    min-width: 145px;
    height: 38px;
    margin-top: 12px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 10px;
    border: 1px solid rgba(110, 168, 255, 0.22);

    background: rgba(110, 168, 255, 0.08);
    color: #bcd0ff;

    font-size: 12px;
    font-weight: 750;
    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}

.new-question-btn:hover {
    background: rgba(110, 168, 255, 0.14);
    border-color: rgba(110, 168, 255, 0.40);
    color: #dce7ff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(70, 100, 255, 0.12);
}

.new-question-btn:active {
    transform: translateY(0);
}

.new-question-icon {
    font-size: 17px;
    line-height: 1;
}

/* =========================================================
   NATURAL QUESTION UI
   ========================================================= */

.paragraph-label {
    margin-bottom: 8px;
    color: #8998af;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.paragraph-box {
    min-height: 145px;
    padding: 17px 18px;

    display: flex;
    align-items: center;

    border-radius: 14px;

    border: 1px solid rgba(148, 163, 184, .13);

    background: rgba(4, 10, 21, .60);

    color: #dce5f3;

    font-size: 14px;
    line-height: 1.75;

    box-shadow:
        inset 0 1px 8px rgba(0, 0, 0, .15);
}


/* =========================================================
   VOICE TIP
   ========================================================= */

.voice-tip {
    margin-top: 10px;

    color: #7f8da5;

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   NEW QUESTION BUTTON
   ========================================================= */

.new-question-btn {
    width: auto;
    min-width: 145px;
    height: 38px;

    margin-top: 12px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 10px;

    border: 1px solid rgba(110, 168, 255, .22);

    background: rgba(110, 168, 255, .08);

    color: #bcd0ff;

    font-size: 12px;
    font-weight: 750;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}


.new-question-btn:hover {
    background: rgba(110, 168, 255, .14);

    border-color:
        rgba(110, 168, 255, .40);

    color: #dce7ff;

    transform:
        translateY(-1px);

    box-shadow:
        0 6px 18px rgba(70, 100, 255, .12);
}


.new-question-btn:active {
    transform: translateY(0);
}


.new-question-icon {
    font-size: 17px;
    line-height: 1;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .paragraph-box {
        font-size: 13px;
        min-height: 170px;
    }

    .new-question-btn {
        width: 100%;
    }

}

.profile-link {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    font-weight: 600;
}


.paragraph-box {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
}

.question-hindi {
    display: block;
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 12px;
}

.question-english {
    display: block;
    width: 100%;
    font-size: 20px;
    line-height: 1.5;
    opacity: 0.75;
}