:root {
    --yv-yellow: #F5C518;
    --yv-yellow-soft: #FFD84D;

    --yv-black: #090A0C;
    --yv-black-2: #0D0F12;

    --yv-surface: #14171B;
    --yv-surface-2: #1B1F24;
    --yv-silver: #2B3037;

    --yv-muted: #8B919A;
    --yv-text: #F4F5F7;

    --yv-border: rgba(255, 255, 255, 0.08);

    --yv-radius: 20px;
    --yv-radius-small: 14px;

    --yv-nav-height: 76px;
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: var(--yv-black);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 0;

    overflow-x: hidden;

    background: var(--yv-black);
    color: var(--yv-text);

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

    line-height: 1.5;
}

button,
input,
textarea,
select {
    font: inherit;
    font-size: 16px;
}

button,
a {
    touch-action: manipulation;
}

button {
    border: 0;
}

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

img,
video,
audio,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* =========================================================
   APP / PAGE
========================================================= */

.yv-app {
    width: 100%;
    min-height: 100dvh;

    padding-bottom:
        calc(var(--yv-nav-height) + env(safe-area-inset-bottom));
}

.yv-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;

    padding:
        calc(14px + env(safe-area-inset-top))
        18px
        24px;
}

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

.yv-header {
    min-height: 64px;

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

    margin-bottom: 20px;
}

.yv-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yv-brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            var(--yv-yellow-soft),
            var(--yv-yellow)
        );

    color: #08090A;

    font-size: 19px;
    font-weight: 900;

    box-shadow:
        0 5px 20px rgba(245, 197, 24, 0.16);
}

.yv-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.yv-brand-name {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.4px;
}

.yv-brand-name span {
    color: var(--yv-yellow);
}

.yv-brand-subtitle {
    margin-top: 4px;

    color: var(--yv-muted);

    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.25px;
}

.yv-header-action {
    display: flex;
    align-items: center;
}

.yv-icon-button {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid var(--yv-border);
    border-radius: 12px;

    background: var(--yv-surface);
    color: var(--yv-muted);

    cursor: pointer;
}

/* =========================================================
   HERO - retained for future pages
========================================================= */

.yv-hero {
    padding: 12px 0 22px;
}

.yv-eyebrow {
    color: var(--yv-yellow);

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

    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.yv-hero h1 {
    max-width: 700px;
    margin: 9px 0 10px;

    font-size: clamp(34px, 8vw, 68px);
    line-height: 0.98;
    letter-spacing: -2px;
}

.yv-hero p {
    max-width: 600px;
    margin: 0;

    color: var(--yv-muted);

    font-size: 15px;
    line-height: 1.6;
}

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

.yv-main {
    width: 100%;
}

.yv-main-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin: 0 0 20px;
}

.yv-section-label {
    display: block;

    margin-bottom: 6px;

    color: var(--yv-yellow);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.yv-main-intro h1 {
    margin: 0;

    font-size: 25px;
    line-height: 1.15;
    letter-spacing: -0.7px;
}

.yv-main-intro p {
    margin: 7px 0 0;

    color: var(--yv-muted);

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

/* =========================================================
   GRID
========================================================= */

.yv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* =========================================================
   CARDS
========================================================= */

.yv-card {
    position: relative;

    min-height: 190px;
    padding: 22px;

    overflow: hidden;

    border: 1px solid var(--yv-border);
    border-radius: var(--yv-radius);

    background:
        linear-gradient(
            145deg,
            var(--yv-surface-2),
            var(--yv-surface)
        );
}

.yv-card-primary::before {
    content: "";

    position: absolute;
    top: -90px;
    right: -50px;

    width: 160px;
    height: 160px;

    border-radius: 50%;

    background: var(--yv-yellow);

    filter: blur(75px);
    opacity: 0.15;

    pointer-events: none;
}

.yv-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.yv-card-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: var(--yv-silver);

    font-size: 22px;
}

.yv-symbol {
    color: var(--yv-yellow);
}

.yv-card-status {
    padding: 6px 9px;

    border: 1px solid rgba(245, 197, 24, 0.22);
    border-radius: 20px;

    background: rgba(245, 197, 24, 0.07);
    color: var(--yv-yellow);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.yv-card h2 {
    margin: 20px 0 7px;

    font-size: 21px;
}

.yv-card p {
    margin: 0;

    color: var(--yv-muted);

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

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

.yv-btn {
    min-height: 52px;

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

    padding: 0 22px;

    border-radius: 15px;

    cursor: pointer;

    font-weight: 800;

    transition:
        transform 0.16s ease,
        opacity 0.16s ease,
        box-shadow 0.16s ease;
}

.yv-btn:active {
    transform: scale(0.985);
}

.yv-btn-primary {
    background: var(--yv-yellow);
    color: #08090A;

    box-shadow:
        0 10px 30px rgba(245, 197, 24, 0.14);
}

.yv-btn-primary:hover {
    background: var(--yv-yellow-soft);
}

.yv-btn-block {
    width: 100%;
}

.yv-card .yv-btn {
    margin-top: 22px;
}

/* =========================================================
   AUTH
========================================================= */

.yv-auth {
    width: 100%;
    max-width: 460px;

    margin: 14px auto 0;
}

.yv-auth-card {
    width: 100%;

    padding: 22px;

    border: 1px solid var(--yv-border);
    border-radius: var(--yv-radius);

    background:
        linear-gradient(
            145deg,
            var(--yv-surface-2),
            var(--yv-surface)
        );
}

.yv-auth-card h1 {
    margin: 6px 0 10px;

    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.yv-auth-subtitle {
    margin: 0 0 24px;

    color: var(--yv-muted);

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

.yv-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;

    gap: 12px;
}

.yv-form label {
    display: block;

    width: 100%;

    margin: 4px 0 0;

    color: var(--yv-muted);

    font-size: 12px;
    font-weight: 700;
}

.yv-form input,
.yv-form textarea,
.yv-form select {
    display: block;

    width: 100%;
    min-width: 0;
    max-width: 100%;

    margin: 0;
    padding: 0 15px;

    border: 1px solid var(--yv-border);
    border-radius: 13px;

    outline: none;

    background: #0E1013;
    color: var(--yv-text);

    appearance: none;
    -webkit-appearance: none;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.yv-form input,
.yv-form select {
    min-height: 52px;
}

.yv-form textarea {
    min-height: 120px;
    padding-top: 14px;
    padding-bottom: 14px;

    resize: vertical;
}

.yv-form input:focus,
.yv-form textarea:focus,
.yv-form select:focus {
    border-color: rgba(245, 197, 24, 0.65);

    box-shadow:
        0 0 0 3px rgba(245, 197, 24, 0.08);
}

.yv-form .yv-btn {
    width: 100%;

    margin-top: 10px;
}

.yv-auth-footer {
    margin-top: 20px;

    text-align: center;

    color: var(--yv-muted);

    font-size: 13px;
}

.yv-auth-footer a {
    color: var(--yv-yellow);
    font-weight: 800;
}

.yv-alert {
    margin-bottom: 18px;

    padding: 12px 14px;

    border: 1px solid rgba(245, 197, 24, 0.25);
    border-radius: 12px;

    background: rgba(245, 197, 24, 0.06);
    color: #F5D65D;

    font-size: 13px;
}

/* =========================================================
   BOTTOM NAV
========================================================= */

.yv-bottom-nav {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 100;

    height:
        calc(var(--yv-nav-height) + env(safe-area-inset-bottom));

    padding-bottom: env(safe-area-inset-bottom);

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    border-top: 1px solid var(--yv-border);

    background: rgba(14, 16, 19, 0.94);

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

.yv-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    color: var(--yv-muted);

    font-size: 10px;
    font-weight: 700;
}

.yv-nav-icon {
    font-size: 20px;
}

.yv-nav-item.active {
    color: var(--yv-yellow);
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) {

    .yv-container {
        padding-left: 28px;
        padding-right: 28px;
    }

    .yv-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .yv-auth {
        margin-top: 48px;
    }

    .yv-auth-card {
        padding: 28px;
    }

    .yv-auth-card h1 {
        font-size: 30px;
    }
}

/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 1100px) {

    .yv-container {
        padding-top: 32px;
    }

    .yv-header {
        min-height: 68px;
        margin-bottom: 34px;
    }

    .yv-main-intro {
        margin-bottom: 24px;
    }

    .yv-main-intro h1 {
        font-size: 30px;
    }

    .yv-grid {
        grid-template-columns:
            1.25fr 0.75fr 0.75fr;
    }

    .yv-bottom-nav {
        width: min(680px, calc(100% - 40px));

        left: 50%;
        right: auto;
        bottom: 20px;

        transform: translateX(-50%);

        border: 1px solid var(--yv-border);
        border-radius: 22px;

        overflow: hidden;
    }

    .yv-app {
        padding-bottom: 120px;
    }
}

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

@media (max-width: 420px) {

    .yv-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .yv-auth-card {
        padding: 20px;
    }

    .yv-card {
        min-height: auto;
        padding: 20px;
    }

    .yv-brand-name {
        font-size: 17px;
    }

    .yv-main-intro h1 {
        font-size: 24px;
    }
}
