/* ---------- Base Template Settings ---------- */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus.submission-support-button {
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}


/* ---------- GradedVault Theme ---------- */

:root {
    --gv-bg: #0B0B0E;
    --gv-surface: #14141A;
    --gv-text: #FFFFFF;
    --gv-muted: #C5C8D4;
    --gv-primary: #3050A0;
    --gv-accent: #F09060;
    --gv-accent2: #903070;
    --gv-radius: 16px;
}


/* ---------- Body ---------- */

body {
    background: var(--gv-bg);
    color: var(--gv-text);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}


/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6 {
    color: var(--gv-text);
}

p {
    color: var(--gv-muted);
}

.text-muted {
    color: var(--gv-muted) !important;
}


/* ---------- Navbar ---------- */

.navbar {
    background: #101014 !important;
    border-bottom: 1px solid #1f1f26;
    padding-top: 12px;
    padding-bottom: 12px;
}


.navbar-brand {
    color: var(--gv-text) !important;
}

.navbar .nav-link {
    color: var(--gv-muted) !important;
}

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        color: var(--gv-text) !important;
    }


/* ---------- Cards ---------- */

.card {
    background: var(--gv-surface) !important;
    border: 1px solid #222 !important;
    border-radius: var(--gv-radius);
}


/* ---------- Tables ---------- */

.table {
    color: var(--gv-muted);
}

    .table th {
        color: var(--gv-text);
    }

    .table td,
    .table th {
        border-color: #222 !important;
    }

.table-hover tbody tr:hover {
    background: rgba(255,255,255,0.04) !important;
}


/* ---------- Links ---------- */

a {
    color: var(--gv-accent);
}

    a:hover {
        color: var(--gv-accent2);
    }


/* ---------- Buttons ---------- */

.btn-primary {
    background-color: var(--gv-primary);
    border-color: var(--gv-primary);
    border-radius: 12px;
}

.btn-outline-light {
    color: var(--gv-text);
    border-color: #3a3a44;
}

    .btn-outline-light:hover {
        background: rgba(255,255,255,0.08);
    }


/* ---------- Badges ---------- */

.badge.bg-primary {
    background-color: var(--gv-primary) !important;
}


/* ---------- Forms ---------- */

.form-control,
.form-select {
    background: #1b1b22 !important;
    border: 1px solid #333 !important;
    color: var(--gv-text) !important;
}

    .form-control::placeholder {
        color: #8C91A3;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--gv-primary) !important;
        box-shadow: 0 0 0 .2rem rgba(48,80,160,.25) !important;
    }


/* ---------- Dropdown ---------- */

.dropdown-menu {
    background: var(--gv-surface) !important;
    border: 1px solid #222 !important;
}

.dropdown-item {
    color: var(--gv-muted);
}

    .dropdown-item:hover {
        background: rgba(255,255,255,0.06);
        color: var(--gv-text);
    }


/* ---------- Modals ---------- */

.modal-content {
    background: var(--gv-surface);
    border: 1px solid #222;
}


/* ---------- Utility ---------- */

.border-top {
    border-top: 1px solid #222 !important;
}

.border-bottom {
    border-bottom: 1px solid #222 !important;
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.4) !important;
}
/* ---------- Navbar Brand ---------- */

.gv-brand {
    display: flex;
    align-items: center;
}

.gv-brand-logo {
    height: 40px;
    width: auto;
}

/* ---------------- Quick Submission Wizard ---------------- */

.qs-container {
    width: 75%;
    margin: auto;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .qs-container {
        width: 95%;
    }
}

.qs-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.qs-step {
    flex: 1;
    height: 6px;
    margin: 0 10px;
    background: #2a2a33;
    border-radius: 10px;
}

    .qs-step.active {
        background: var(--gv-primary);
    }

.qs-section {
    display: none;
    animation: slideRight .30s ease;
}

    .qs-section.active {
        display: block;
    }

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(45px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Red validation text */
.qs-error {
    display: none;
    margin-top: 6px;
    font-size: .9rem;
    color: #ff5b5b;
}

/* Inputs valid/invalid (works on dark theme) */
.is-valid {
    border-color: rgba(40,167,69,.85) !important;
}

.is-invalid {
    border-color: rgba(220,53,69,.85) !important;
}

/* Tier rows layout */
.qs-tier-rows {
    display: block;
}

.qs-tier-row {
    padding: 10px 6px;
    border-radius: 12px;
}

/* Stepper */
.qs-stepper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qs-stepper-input {
    text-align: center;
    min-width: 90px;
}

.qs-stepper-btn {
    width: 44px;
}

/* ---------- Layout / Nav polish ---------- */

.gv-navbar {
    background: linear-gradient(180deg, #111318 0%, #0B0B0E 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.gv-brand {
    min-width: 0;
    text-decoration: none;
    gap: 0.75rem;
    margin-right: 0.35rem;
    padding-left: 0.15rem;
    padding-right: 0.95rem;
}

@media (min-width: 992px) {
    .gv-navbar .container-fluid {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .gv-nav-main {
        gap: 0.1rem;
    }
}

.gv-brand-logo {
    height: 42px;
    width: auto;
    display: block;
}

.gv-brand-text {
    font-size: 1rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.gv-nav-main .nav-link,
.gv-user-link,
.navbar .nav-link {
    color: #D5D9E4 !important;
    font-weight: 500;
    padding: 0.7rem 0.95rem !important;
    border-radius: 10px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .gv-nav-main .nav-link:hover,
    .gv-nav-main .nav-link:focus,
    .gv-user-link:hover,
    .gv-user-link:focus,
    .navbar .nav-link:hover,
    .navbar .nav-link:focus {
        color: #FFFFFF !important;
        background: rgba(255,255,255,0.07);
    }

.gv-dropdown {
    background: #14141A !important;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 0.45rem;
    min-width: 240px;
}

    .gv-dropdown .dropdown-item {
        color: #D5D9E4;
        border-radius: 10px;
        padding: 0.7rem 0.85rem;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

        .gv-dropdown .dropdown-item:hover,
        .gv-dropdown .dropdown-item:focus {
            background: rgba(255,255,255,0.08);
            color: #FFFFFF;
        }

    .gv-dropdown .dropdown-divider {
        border-color: rgba(255,255,255,0.08);
    }

/* ---------- Mobile nav ---------- */

@media (max-width: 991.98px) {
    .gv-brand-logo {
        height: 36px;
    }

    .gv-brand-text {
        font-size: 0.95rem;
        white-space: normal;
        line-height: 1.1;
    }

    .navbar-collapse {
        margin-top: 0.9rem;
        background: #111318;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px;
        padding: 0.8rem;
    }

    .gv-nav-main .nav-link,
    .gv-user-link,
    .navbar .nav-link {
        display: block;
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .gv-dropdown {
        min-width: 100%;
        margin-top: 0.35rem;
    }
}

/* ---------- Buttons / links visibility ---------- */

.btn-outline-light {
    color: #FFFFFF !important;
    border-color: rgba(255,255,255,0.35) !important;
    background-color: transparent;
}

    .btn-outline-light:hover,
    .btn-outline-light:focus,
    .btn-outline-light:active {
        color: #0B0B0E !important;
        background-color: #FFFFFF !important;
        border-color: #FFFFFF !important;
        box-shadow: none !important;
    }

    /* Helps the back button stand out a little more */
    .btn-outline-light,
    .btn-outline-light.btn-sm {
        font-weight: 600;
    }

/* ---------- General responsive spacing ---------- */

main.pb-4 {
    min-height: calc(100vh - 110px);
}

.card {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    h1, h2 {
        line-height: 1.15;
    }

    .table-responsive {
        border-radius: 12px;
    }
}

/* ---------- Grading Services Page ---------- */

.gv-page-wrap {
    max-width: 1500px;
    margin: 0 auto;
}

.gv-page-header {
    background: linear-gradient(135deg, rgba(48,80,160,0.18), rgba(240,144,96,0.10));
    border: 1px solid rgba(255,255,255,0.06);
}

.gv-page-eyebrow {
    color: var(--gv-accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.gv-section-title {
    color: white;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.gv-sub-title {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.gv-pricing-table {
    margin-bottom: 0;
}

    .gv-pricing-table th {
        white-space: nowrap;
        color: white;
        font-size: 0.92rem;
        background: rgba(255,255,255,0.04);
    }

    .gv-pricing-table td {
        vertical-align: top;
        color: var(--gv-muted);
        font-size: 0.94rem;
    }

    .gv-pricing-table th,
    .gv-pricing-table td {
        border-color: rgba(255,255,255,0.08) !important;
    }

@media (max-width: 991.98px) {
    .gv-page-header {
        padding: 1.5rem !important;
    }

    .gv-section-title {
        font-size: 1.15rem;
    }

    .gv-sub-title {
        font-size: 1rem;
    }

    .gv-pricing-table th,
    .gv-pricing-table td {
        font-size: 0.88rem;
    }
}
/* ---------- Info Pages ---------- */

.gv-feature-stack {
    display: grid;
    gap: 1rem;
}

.gv-feature-item {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
}

.gv-contact-block {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
}

.gv-contact-label {
    color: var(--gv-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.gv-contact-value,
.gv-contact-value a {
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
}

    .gv-contact-value a:hover {
        color: var(--gv-accent);
    }
/* ---------- My Submissions ---------- */

.submission-summary-card,
.submission-detail-card {
    border: 1px solid rgba(255,255,255,0.08);
}

.submission-stage-badge {
    font-size: 0.85rem;
    padding: 0.55rem 0.8rem;
}

.submission-stage-badge-lg {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
}

.submission-field-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gv-muted);
    margin-bottom: 0.35rem;
}

.submission-field-value {
    color: white;
    font-weight: 500;
    word-break: break-word;
}

.submission-detail-title {
    color: white;
    font-weight: 700;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.1;
}

/* ---------- Sleek tracker ---------- */

.tracker-shell {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 1.4rem 1rem 1rem 1rem;
}

.tracker-scroll {
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.tracker-row {
    display: flex;
    align-items: flex-start;
    min-width: 920px;
}

.tracker-step {
    flex: 1;
    position: relative;
    text-align: center;
}

.tracker-line-left,
.tracker-line-right {
    position: absolute;
    top: 17px;
    height: 3px;
    background: rgba(255,255,255,0.12);
    z-index: 1;
}

.tracker-line-left {
    left: 0;
    right: 50%;
}

.tracker-line-right {
    left: 50%;
    right: 0;
}

.tracker-step:first-child .tracker-line-left {
    display: none;
}

.tracker-step:last-child .tracker-line-right {
    display: none;
}

.tracker-dot-wrap {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 0.8rem;
    border-radius: 999px;
}

.tracker-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.18);
    transition: all 0.2s ease;
}

.tracker-label {
    max-width: 95px;
    margin: 0 auto;
    color: var(--gv-muted);
    font-size: 0.8rem;
    line-height: 1.2;
}

.tracker-step.complete .tracker-dot {
    background: var(--gv-accent);
    border-color: var(--gv-accent);
}

.tracker-step.complete .tracker-line-left,
.tracker-step.complete .tracker-line-right {
    background: var(--gv-accent);
}

.tracker-step.complete .tracker-label {
    color: white;
    font-weight: 600;
}

.tracker-step.current .tracker-dot-wrap {
    box-shadow: 0 0 0 8px rgba(255,255,255,0.06);
}

.tracker-step.current .tracker-dot {
    background: #ffffff;
    border-color: var(--gv-accent);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

.tracker-step.current .tracker-label {
    color: white;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .submission-stage-badge-lg {
        width: 100%;
        text-align: center;
    }

    .tracker-shell {
        padding: 1rem 0.8rem 0.8rem 0.8rem;
    }
}

.submission-inner-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
}

.alert-success {
    border-radius: 14px;
}

.form-control admin-notes-box {
    min-height: 500px;
}

.tracker-step.current .tracker-line-left {
    background: var(--gv-accent);
}

.tracker-step.current .tracker-dot {
    background: var(--gv-accent);
    border-color: var(--gv-accent);
}
/* My Submissions tracker cleanup */

.tracker-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
}

.tracker-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    min-width: 1320px;
}

.tracker-step {
    flex: 1 0 110px;
    min-width: 110px;
    max-width: 130px;
    position: relative;
    text-align: center;
}

.tracker-label {
    max-width: 112px;
    min-height: 2.4em;
    margin: 0 auto;
    color: var(--gv-muted);
    font-size: 0.72rem;
    line-height: 1.15;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tracker-step.current .tracker-line-left {
    background: var(--gv-accent);
}

.tracker-step.current .tracker-line-right {
    background: rgba(255, 255, 255, 0.12);
}

.tracker-step.current .tracker-dot {
    background: var(--gv-accent);
    border-color: var(--gv-accent);
}

.shipping-pulse {
    display: inline-block;
    color: #ffc107;
    font-weight: 800;
    font-size: 1rem;
    animation: shippingPulse 0.9s ease-in-out infinite;
}

@keyframes shippingPulse {

    0% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 193, 7, 0), 0 0 0 rgba(255, 193, 7, 0);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
        text-shadow: 0 0 10px rgba(255, 193, 7, 0.9), 0 0 22px rgba(255, 193, 7, 0.75);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 193, 7, 0), 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Support messaging */
.support-launcher {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1050;
    border-radius: 999px;
    padding: .75rem 1.15rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.gv-support-modal {
    background: #151922;
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
}

    .gv-support-modal .modal-header,
    .gv-support-modal .modal-footer {
        border-color: rgba(255,255,255,.09);
    }

.support-order-options {
    display: grid;
    gap: .55rem;
    max-height: 240px;
    overflow-y: auto;
}

.support-order-option {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .8rem;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    cursor: pointer;
}

    .support-order-option:hover {
        background: rgba(255,255,255,.04);
    }

.support-message-preview {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-thread {
    display: grid;
    gap: 1rem;
}

.support-bubble-row {
    display: flex;
}

    .support-bubble-row.support-admin {
        justify-content: flex-start;
    }

    .support-bubble-row.support-customer {
        justify-content: flex-end;
    }

.support-bubble {
    max-width: min(760px, 88%);
    padding: .9rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
}

.support-customer .support-bubble {
    background: rgba(13,110,253,.18);
    border-color: rgba(13,110,253,.32);
}

.support-message-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 576px) {
    .support-launcher {
        left: 12px;
        bottom: 12px;
    }

    .support-bubble {
        max-width: 96%;
    }
}

/* ==========================================================
   Graded Vault Mobile Experience
   Mobile-first presentation overrides only. No business logic.
   ========================================================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Keep the primary navigation available like an app header. */
.gv-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    border-color: rgba(255,255,255,.16) !important;
    border-radius: 12px;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 .2rem rgba(48,80,160,.28);
    }

/* Touch-friendly controls site-wide. */
.btn,
.form-control,
.form-select,
.navbar .nav-link,
.dropdown-item {
    min-height: 44px;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

@media (max-width: 991.98px) {
    body {
        margin-bottom: 0;
    }

    .gv-navbar {
        padding-top: .55rem;
        padding-bottom: .55rem;
    }

    .gv-brand-logo {
        height: 34px;
    }

    .gv-brand-text {
        font-size: .92rem;
    }

    .navbar-collapse {
        max-height: calc(100dvh - 78px);
        overflow-y: auto;
        overscroll-behavior: contain;
        margin-top: .55rem;
        padding: .55rem;
        border-radius: 14px;
    }

    .navbar-nav {
        gap: .1rem;
    }

    .gv-nav-main .nav-link,
    .gv-user-link,
    .navbar .nav-link {
        padding: .72rem .8rem !important;
        margin-bottom: 0;
    }

    .gv-dropdown {
        position: static !important;
        transform: none !important;
        width: 100%;
        min-width: 0;
        margin: .15rem 0 .45rem !important;
        padding: .35rem;
        box-shadow: none;
        background: rgba(255,255,255,.035) !important;
    }

        .gv-dropdown .dropdown-item {
            display: flex;
            align-items: center;
            padding: .68rem .78rem;
        }
}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

        /* Main page gutters: enough breathing room without wasting phone width. */
        body > .container-fluid,
        header .container-fluid {
            padding-left: 12px !important;
            padding-right: 12px !important;
        }

            body > .container-fluid.mt-4 {
                margin-top: 1rem !important;
            }

    main.pb-4 {
        padding-bottom: 5.5rem !important;
    }

    h1,
    .h1 {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
    }

    h2,
    .h2 {
        font-size: clamp(1.45rem, 7vw, 1.85rem);
    }

    h3,
    .h3 {
        font-size: 1.3rem;
    }

    h4,
    .h4 {
        font-size: 1.15rem;
    }

    /* Bootstrap's p-4/p-5 is too large on a 320-430px phone. */
    .card.p-4,
    .card.p-5,
    .card.p-lg-5,
    .submission-summary-card,
    .submission-detail-card,
    .submission-inner-card {
        padding: 1rem !important;
    }

    .card {
        border-radius: 14px;
    }

    .row.g-4 {
        --bs-gutter-y: 1rem;
    }

    /* Common page-heading rows stack instead of squeezing title + action. */
    main > .d-flex.justify-content-between.align-items-center,
    main > .d-flex.justify-content-between.align-items-start {
        align-items: stretch !important;
        flex-direction: column;
        gap: .75rem;
    }

        main > .d-flex.justify-content-between.align-items-center > .btn,
        main > .d-flex.justify-content-between.align-items-start > .btn {
            width: 100%;
        }

    /* Buttons used as the primary action group on customer cards. */
    .submission-summary-card > .d-flex.flex-wrap.gap-2,
    .submission-detail-card .d-flex.flex-wrap.gap-2 {
        width: 100%;
    }

        .submission-summary-card > .d-flex.flex-wrap.gap-2 > .btn,
        .submission-detail-card .d-flex.flex-wrap.gap-2 > .btn {
            flex: 1 1 100%;
            width: 100%;
        }

    .submission-stage-badge,
    .submission-stage-badge-lg {
        white-space: normal;
        line-height: 1.2;
    }

    /* Submission progress becomes a compact vertical timeline on phones. */
    .tracker-shell {
        padding: .9rem .8rem !important;
        border-radius: 16px;
    }

    .tracker-scroll {
        overflow: visible;
        padding: 0;
    }

    .tracker-row {
        display: block !important;
        min-width: 0 !important;
    }

    .tracker-step {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        min-width: 0 !important;
        min-height: 52px;
        padding: 0 0 .45rem;
        text-align: left;
    }

    .tracker-dot-wrap {
        grid-column: 1;
        grid-row: 1;
        width: 34px;
        height: 34px;
        margin: 0;
    }

    .tracker-label {
        grid-column: 2;
        grid-row: 1;
        max-width: none;
        margin: 0;
        padding-left: .25rem;
        font-size: .9rem;
        line-height: 1.25;
    }

    .tracker-line-left {
        display: none !important;
    }

    .tracker-line-right {
        display: block;
        top: 30px;
        bottom: -8px;
        left: 16px;
        right: auto;
        width: 3px;
        height: auto;
    }

    .tracker-step:last-child .tracker-line-right {
        display: none;
    }

    /* Dense tables stay readable and intentionally swipe instead of compressing. */
    .table-responsive {
        margin-left: -.25rem;
        margin-right: -.25rem;
        padding: 0 .25rem .35rem;
        border-radius: 12px;
    }

        .table-responsive > .table {
            margin-bottom: .25rem;
        }

    .table th,
    .table td {
        padding: .65rem .6rem;
        vertical-align: middle;
    }

    /* Forms and action rows should not force side-by-side controls on a phone. */
    .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: .5rem;
    }

        .modal-footer > * {
            width: 100%;
            margin: 0 !important;
        }

    .modal-dialog {
        margin: .65rem;
    }

    .gv-support-modal {
        border-radius: 16px;
    }

    .qs-container {
        width: 100%;
        margin-top: 1rem;
    }

    .qs-progress {
        margin-bottom: 1.25rem;
    }

    .qs-step {
        margin: 0 3px;
    }

    .qs-stepper {
        width: 100%;
    }

    .qs-stepper-input {
        min-width: 0;
        flex: 1;
    }

    .qs-stepper-btn {
        width: 48px;
        min-width: 48px;
    }

    /* Floating support button respects modern iPhone safe areas. */
    .support-launcher {
        left: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        min-height: 46px;
        padding: .68rem 1rem;
    }
}

@media (max-width: 420px) {
    .gv-brand-text {
        max-width: 145px;
    }

    .submission-field-value {
        overflow-wrap: anywhere;
    }

    .btn {
        white-space: normal;
    }
}


/* ==========================================================
   Mobile Pass 2 - customer submission clarity + UI consistency
   ========================================================== */

/* Keep actions in one Graded Vault visual family. Danger remains red for destructive actions. */
.btn:not(.btn-danger):not(.btn-outline-danger):not(.btn-close) {
    border-radius: 12px;
    font-weight: 650;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.btn-primary,
.btn-success,
.btn-info,
.btn-secondary {
    background: var(--gv-primary) !important;
    border-color: var(--gv-primary) !important;
    color: #fff !important;
}

.btn-outline-light,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-secondary {
    background: rgba(48,80,160,.10) !important;
    border-color: rgba(92,126,210,.72) !important;
    color: #fff !important;
}

    .btn-primary:hover,
    .btn-success:hover,
    .btn-info:hover,
    .btn-secondary:hover,
    .btn-outline-light:hover,
    .btn-outline-primary:hover,
    .btn-outline-success:hover,
    .btn-outline-info:hover,
    .btn-outline-secondary:hover {
        background: #3c61bd !important;
        border-color: #5275cc !important;
        color: #fff !important;
    }

/* Support stays visible at the upper-right, immediately below sticky navigation. */
.support-launcher {
    left: auto !important;
    right: max(16px, env(safe-area-inset-right));
    top: 82px;
    bottom: auto !important;
    min-height: 44px;
    padding: .62rem 1rem;
    z-index: 1025;
}

/* Reserve enough top breathing room so the fixed support control does not cover first-page actions. */
.gv-main-shell {
    padding-top: 2.8rem;
}

.submission-page-heading,
.submission-detail-top,
.submission-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.submission-stage-snapshot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: .7rem;
    padding: .9rem;
    background: rgba(48,80,160,.10);
    border: 1px solid rgba(92,126,210,.28);
    border-radius: 14px;
}

.submission-stage-current,
.submission-stage-next {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .18rem;
}

    .submission-stage-current strong,
    .submission-stage-next strong {
        overflow-wrap: anywhere;
    }

.submission-stage-kicker {
    color: var(--gv-muted);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.submission-stage-arrow {
    align-self: center;
    color: var(--gv-accent);
    font-size: 1.35rem;
    font-weight: 700;
}

.submission-stage-snapshot-lg {
    padding: 1rem 1.15rem;
}

.submission-summary-facts,
.customer-card-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

    .submission-summary-facts > div,
    .customer-card-facts > div {
        min-width: 0;
    }

.submission-all-stages {
    border: 1px solid #2b2b35;
    border-radius: 12px;
    padding: .8rem 1rem;
    background: rgba(255,255,255,.025);
}

    .submission-all-stages summary {
        cursor: pointer;
        font-weight: 650;
        color: var(--gv-text);
    }

.submission-stage-list {
    display: grid;
    gap: .35rem;
}

.submission-stage-list-item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    align-items: center;
    gap: .6rem;
    padding: .42rem .2rem;
    color: var(--gv-muted);
}

.submission-stage-list-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #565b69;
}

.submission-stage-list-item.complete .submission-stage-list-dot,
.submission-stage-list-item.current .submission-stage-list-dot {
    border-color: var(--gv-primary);
    background: var(--gv-primary);
}

.submission-stage-list-item.current {
    color: #fff;
    font-weight: 650;
}

.viz-stage-now,
.invoice-needed-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: .2rem .5rem;
    background: rgba(240,144,96,.15);
    border: 1px solid rgba(240,144,96,.38);
    color: #ffc09c;
    font-size: .78rem;
    font-weight: 700;
}

.submission-shipping-compact {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .8rem 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    border: 1px solid #2a2a32;
}

.customer-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.customer-card-item {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #292932;
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.customer-card-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: .85rem;
}

.customer-card-name {
    font-size: 1.02rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.customer-card-facts .submission-field-label {
    display: block;
    margin-bottom: .14rem;
}

.customer-card-facts strong {
    display: block;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .gv-main-shell {
        padding-top: 3.4rem;
    }

    .support-launcher {
        top: 72px;
        right: max(10px, env(safe-area-inset-right));
        min-height: 40px;
        padding: .5rem .75rem;
        font-size: .86rem;
    }

    .submission-stage-snapshot {
        grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
        gap: .35rem;
        padding: .75rem;
    }

    .submission-summary-facts,
    .customer-card-facts {
        grid-template-columns: 1fr 1fr;
    }

        .submission-summary-facts > div:last-child,
        .customer-card-facts > div:last-child {
            grid-column: 1 / -1;
        }

    .customer-card-grid {
        grid-template-columns: 1fr;
    }

    .submission-card-actions,
    .submission-page-heading,
    .submission-detail-top {
        align-items: stretch;
    }

        .submission-card-actions .btn,
        .submission-page-heading .btn,
        .submission-detail-top .btn {
            width: 100%;
        }

    .customer-card-main {
        flex-direction: column;
    }
}

/* ===== Desktop submission roadmap / Mobile Pass 2.1 ===== */
.submission-desktop-roadmap {
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    padding: 1rem 1.1rem 1.15rem;
    background: linear-gradient(180deg, rgba(48,80,160,.09), rgba(255,255,255,.018));
}

.submission-roadmap-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.05rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

    .submission-roadmap-header > div:first-child {
        display: flex;
        flex-direction: column;
        gap: .18rem;
    }

    .submission-roadmap-header strong {
        color: #fff;
        font-size: 1rem;
    }

.submission-roadmap-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .8rem;
    color: var(--gv-muted);
    font-size: .76rem;
}

    .submission-roadmap-legend span {
        display: inline-flex;
        align-items: center;
        gap: .32rem;
    }

.roadmap-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.1);
}

    .roadmap-legend-dot.complete {
        background: var(--gv-accent);
        border-color: var(--gv-accent);
    }

    .roadmap-legend-dot.current {
        background: #fff;
        border-color: var(--gv-accent);
        box-shadow: 0 0 0 3px rgba(82,117,204,.22);
    }

.submission-roadmap {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 1.15rem;
}

.submission-roadmap-step {
    min-width: 0;
    position: relative;
}

.submission-roadmap-marker {
    position: relative;
    height: 22px;
    display: flex;
    align-items: center;
}

.submission-roadmap-dot {
    position: relative;
    z-index: 2;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.22);
    background: #191b22;
}

.submission-roadmap-line {
    position: absolute;
    z-index: 1;
    left: 13px;
    right: 0;
    top: 10px;
    height: 2px;
    background: rgba(255,255,255,.11);
}

.submission-roadmap-step.complete .submission-roadmap-dot {
    background: var(--gv-accent);
    border-color: var(--gv-accent);
}

.submission-roadmap-step.complete .submission-roadmap-line {
    background: var(--gv-accent);
}

.submission-roadmap-step.current .submission-roadmap-dot {
    background: #fff;
    border-color: var(--gv-accent);
    box-shadow: 0 0 0 5px rgba(82,117,204,.22);
}

.submission-roadmap-step.current .submission-roadmap-line {
    background: linear-gradient(90deg, var(--gv-accent), rgba(255,255,255,.11));
}

.submission-roadmap-label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .12rem .35rem;
    align-items: start;
    padding-right: .7rem;
    color: var(--gv-muted);
    font-size: .76rem;
    line-height: 1.22;
}

.submission-roadmap-number {
    color: rgba(255,255,255,.42);
    font-size: .68rem;
    padding-top: .05rem;
}

.submission-roadmap-step.complete .submission-roadmap-label,
.submission-roadmap-step.current .submission-roadmap-label {
    color: #fff;
}

.submission-roadmap-step.current .submission-roadmap-label {
    font-weight: 700;
}

.submission-roadmap-now {
    grid-column: 2;
    width: fit-content;
    margin-top: .18rem;
    padding: .12rem .42rem;
    border-radius: 999px;
    background: rgba(82,117,204,.2);
    border: 1px solid rgba(82,117,204,.45);
    color: #dce5ff;
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.submission-roadmap-large {
    row-gap: 1.35rem;
}

@media (min-width: 1200px) {
    .submission-roadmap {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .submission-roadmap {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* ===== Submission list + QA/logout polish / Mobile Pass 2.2 ===== */
.submission-summary-list {
    display: grid;
    gap: .9rem;
}

.submission-summary-row {
    min-width: 0;
}

    .submission-summary-row .submission-summary-card {
        border: 1px solid rgba(255,255,255,.09);
        border-radius: 14px;
        background: rgba(255,255,255,.025);
    }

.identity-centered-page {
    min-height: 52vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.identity-centered-panel {
    width: min(100%, 520px);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
}

@media (min-width: 768px) {
    .submission-summary-row .submission-summary-card {
        border-radius: 10px;
    }

    .submission-roadmap-step.current .submission-roadmap-dot {
        position: relative;
        z-index: 1;
        background: #ffffff;
        border-color: #9fbcff;
        box-shadow: 0 0 0 4px rgba(116,157,255,.34), 0 0 14px rgba(126,166,255,.92), 0 0 28px rgba(82,117,204,.62);
    }

        .submission-roadmap-step.current .submission-roadmap-dot::after {
            content: "";
            position: absolute;
            inset: -2px;
            border: 3px solid rgba(180,207,255,.98);
            border-radius: 50%;
            box-shadow: 0 0 10px rgba(160,195,255,.95), 0 0 24px rgba(82,117,204,.78);
            pointer-events: none;
            animation: gv-stage-radar-ping 1.65s cubic-bezier(.12,.72,.25,1) infinite;
            transform-origin: center;
        }

    @keyframes gv-stage-radar-ping {
        0% {
            transform: scale(.92);
            opacity: 1;
            border-color: rgba(220,235,255,1);
            box-shadow: 0 0 12px rgba(190,216,255,1), 0 0 30px rgba(100,145,255,.95);
        }

        22% {
            opacity: .9;
        }

        100% {
            transform: scale(3.15);
            opacity: 0;
            border-color: rgba(110,155,255,0);
            box-shadow: 0 0 22px rgba(120,165,255,0), 0 0 42px rgba(82,117,204,0);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .submission-roadmap-step.current .submission-roadmap-dot::after {
        animation: none !important;
        display: none;
    }
}

/* Keep button text centered vertically and horizontally across the app. */
.btn,
button.btn,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* Softer warning/gold treatment so support actions do not dominate the page. */
.btn-warning {
    --bs-btn-color: #f3e8bd;
    --bs-btn-bg: #75652f;
    --bs-btn-border-color: #8b7838;
    --bs-btn-hover-color: #fff7dc;
    --bs-btn-hover-bg: #88763a;
    --bs-btn-hover-border-color: #9a8641;
    --bs-btn-active-color: #fff7dc;
    --bs-btn-active-bg: #665829;
    --bs-btn-active-border-color: #7a6931;
}

.bg-warning {
    background-color: #75652f !important;
}

.text-warning {
    color: #d7bd67 !important;
}

/* Compact order-level support action on My Submissions. */
.submission-support-button {
    min-height: 30px;
    padding: .22rem .58rem;
    border-radius: .45rem;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}


/* Subtle admin-only VIP indicator. */
.gv-vip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .08rem .32rem;
    border-radius: 999px;
    border: 1px solid rgba(214, 176, 76, .48);
    background: rgba(214, 176, 76, .10);
    color: #d7bc72;
    font-size: .62rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .06em;
    vertical-align: middle;
}

.gv-vip-badge-support {
    border-color: rgba(226, 188, 82, .65);
    background: rgba(226, 188, 82, .15);
}

/* Completed submission roadmap: solid green line + clear white check, no pulse. */
.submission-roadmap-complete .submission-roadmap-line {
    background:#2fbf71 !important;
}
.submission-roadmap-complete .submission-roadmap-dot {
    background:#2fbf71 !important;
    border-color:#2fbf71 !important;
    box-shadow:none !important;
    animation:none !important;
}
.submission-roadmap-complete .submission-roadmap-dot::before {
    animation:none !important;
    display:none !important;
}
.submission-roadmap-complete .submission-roadmap-dot::after {
    animation:none !important;
    display:none !important;
}
.submission-roadmap-complete .submission-roadmap-step:last-child .submission-roadmap-dot {
    position:relative;
    width:13px !important;
    height:13px !important;
    min-width:13px;
    flex:0 0 13px;
    background:#2fbf71 !important;
    border:2px solid #2fbf71 !important;
    box-shadow:none !important;
}
.submission-roadmap-complete .submission-roadmap-step:last-child .submission-roadmap-dot::after {
    content:"✓";
    display:grid !important;
    place-items:center;
    position:absolute;
    inset:-2px;
    color:#fff;
    font-size:9px;
    font-weight:900;
    line-height:1;
    transform:none !important;
    opacity:1 !important;
    border:0 !important;
    background:transparent !important;
}

/* Give the admin order header enough vertical room for the isolated Delete action. */
.master-order-header-roomy {
    min-height: 300px;
    padding-top: 5.5rem !important;
}
.master-order-header-roomy .master-order-actions-wrap {
    margin-top: 3.5rem !important;
}

/* Keep customer/company submission cards comfortably spaced without changing text size. */
.submission-summary-card-roomy {
    min-height: 360px;
}


/* Support request type + searchable order picker */
.support-request-types {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.support-request-type {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .7rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    cursor: pointer;
    font-size: .86rem;
    font-weight: 600;
}

.support-request-type:hover {
    background: rgba(255,255,255,.07);
}

.support-order-combobox {
    position: relative;
}

.support-order-results {
    position: absolute;
    z-index: 1080;
    top: calc(100% + .35rem);
    left: 0;
    right: 0;
    display: grid;
    gap: .4rem;
    max-height: 220px;
    overflow-y: auto;
    padding: .2rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .75rem;
    background: #111827;
    box-shadow: 0 .8rem 2rem rgba(0,0,0,.35);
}

.support-order-results.d-none {
    display: none !important;
}

.support-order-result {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .6rem .7rem;
    border: 0;
    border-radius: .55rem;
    background: rgba(255,255,255,.035);
    color: inherit;
    text-align: left;
}

.support-order-result:hover,
.support-order-result:focus {
    background: rgba(255,255,255,.08);
    outline: none;
}

.support-selected-orders {
    min-height: 38px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .4rem .5rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: .65rem;
    background: rgba(255,255,255,.025);
}

.support-selected-order-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .55rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: inherit;
    font-size: .8rem;
    font-weight: 700;
}

/* ---------- Admin User Manager hover readability ---------- */
.admin-user-table.table-hover tbody tr:hover,
.admin-user-table.table-hover tbody tr:hover td,
.admin-user-table.table-hover tbody tr:hover th,
.admin-user-table.table-hover tbody tr:hover span:not(.badge),
.admin-user-table.table-hover tbody tr:hover a {
    color: #fff !important;
}
