:root {
    --vrjets-navy: #07142c;
    --vrjets-blue: #0f3a63;
    --vrjets-muted: #6f7787;
    --vrjets-border: #e1e5ec;
    --vrjets-surface: #ffffff;
    --vrjets-background: #f7f9fc;
    --vrjets-yellow: #ffc526;
    --vrjets-yellow-dark: #f4ad00;
    --vrjets-danger: #b42318;
    --vrjets-success: #157f3b;
    --vrjets-radius-lg: 22px;
    --vrjets-radius-md: 14px;
    --vrjets-shadow: 0 24px 70px rgba(7, 20, 44, 0.12);
    --vrjets-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--vrjets-background); }

body {
    min-height: 100%;
    margin: 0;
    color: var(--vrjets-navy);
    font-family: var(--vrjets-font);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }

a { color: inherit; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .auth-plane-one { transform: rotate(24deg); }
    .auth-plane-two { transform: rotate(-18deg); }
    .auth-plane-three { transform: rotate(7deg); }
    .auth-plane-four { transform: rotate(9deg); }
}

/* Authentication mockup */
.auth-body {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 34px 18px;
    background:
        radial-gradient(ellipse at 18% 18%, rgba(255, 255, 255, 0.98) 0 16%, rgba(255, 255, 255, 0.58) 17% 32%, transparent 52%),
        radial-gradient(ellipse at 78% 24%, rgba(255, 255, 255, 0.86) 0 14%, rgba(255, 255, 255, 0.46) 15% 34%, transparent 56%),
        radial-gradient(ellipse at 50% 92%, rgba(255, 255, 255, 0.92) 0 18%, rgba(255, 255, 255, 0.50) 19% 38%, transparent 62%),
        linear-gradient(135deg, #eaf6ff 0%, #f8fcff 38%, #dcefff 70%, #ffffff 100%);
}

.auth-sky {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-sky::before,
.auth-sky::after {
    content: none;
}

.auth-aircraft-silhouette { display: none; }

.auth-dot-grid,
.auth-flight-line,
.auth-waypoint { display: none; }

.auth-plane {
    position: absolute;
    color: rgba(7, 20, 44, 0.48);
    font-size: clamp(18px, 2.4vw, 34px);
    line-height: 1;
    text-shadow: 0 12px 22px rgba(7, 20, 44, 0.08);
    will-change: transform, opacity;
}

.auth-plane-one {
    right: 9vw;
    top: 17vh;
    animation: authPlaneDriftOne 13s ease-in-out infinite;
}

.auth-plane-two {
    right: 13vw;
    bottom: 33vh;
    color: rgba(255, 197, 38, 0.72);
    animation: authPlaneDriftTwo 16s ease-in-out infinite;
}

.auth-plane-three {
    left: 50%;
    top: 7px;
    font-size: 17px;
    color: rgba(7, 20, 44, 0.82);
    animation: authPlaneTopOne 7.5s ease-in-out infinite;
}

.auth-plane-four {
    left: calc(50% + 30px);
    top: 9px;
    font-size: 15px;
    color: rgba(7, 20, 44, 0.72);
    animation: authPlaneTopTwo 8.5s ease-in-out infinite;
}

@keyframes authPlaneDriftOne {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(24deg); opacity: .34; }
    45% { transform: translate3d(-54px, 20px, 0) rotate(18deg); opacity: .62; }
    70% { transform: translate3d(-28px, -10px, 0) rotate(30deg); opacity: .50; }
}

@keyframes authPlaneDriftTwo {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-18deg); opacity: .42; }
    50% { transform: translate3d(42px, -26px, 0) rotate(-11deg); opacity: .70; }
}

@keyframes authPlaneTopOne {
    0%, 100% { transform: translate3d(-18px, 0, 0) rotate(7deg); opacity: .75; }
    50% { transform: translate3d(16px, 4px, 0) rotate(12deg); opacity: 1; }
}

@keyframes authPlaneTopTwo {
    0%, 100% { transform: translate3d(18px, 1px, 0) rotate(9deg); opacity: .62; }
    50% { transform: translate3d(-10px, -3px, 0) rotate(4deg); opacity: .95; }
}



.auth-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 542px);
}

.auth-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(224, 229, 237, .96);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(7, 20, 44, 0.12);
    padding: clamp(32px, 4.2vw, 56px) clamp(26px, 4vw, 48px);
    backdrop-filter: blur(14px);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    margin-bottom: 30px;
}

.auth-logo {
    width: 250px;
    max-width: 78%;
    height: auto;
    object-fit: contain;
    margin: 0 0 35px;
}

.auth-brand h1,
.auth-card h1 {
    margin: 0;
    color: var(--vrjets-navy);
    font-size: clamp(2rem, 4.2vw, 2.78rem);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.auth-brand p {
    margin: 18px 0 0;
    color: #7b8494;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.45;
}

.auth-copy {
    margin: 0 0 22px;
    color: var(--vrjets-muted);
    line-height: 1.65;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label:not(.field-shell) {
    color: var(--vrjets-navy);
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    min-height: 58px;
    padding: 0 16px;
    border: 1px solid var(--vrjets-border);
    border-radius: 10px;
    background: #fff;
    color: var(--vrjets-navy);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-form input:focus {
    border-color: rgba(18, 59, 99, .72);
    box-shadow: 0 0 0 4px rgba(18, 59, 99, 0.10);
}

.field-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    border: 1px solid #d9dee7;
    border-radius: 9px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-shell:focus-within {
    border-color: rgba(18, 59, 99, .72);
    box-shadow: 0 0 0 4px rgba(18, 59, 99, 0.10);
}

.field-shell input {
    min-height: 56px;
    padding-left: 52px;
    padding-right: 18px;
    border: 0;
    box-shadow: none !important;
    background: transparent;
    font-size: 1rem;
}

.field-shell-password input { padding-right: 58px; }

.field-shell input::placeholder { color: #999da7; opacity: 1; }

.field-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    max-width: 23px;
    height: 23px;
    max-height: 23px;
    overflow: hidden;
    color: #657184;
    flex: 0 0 23px;
}

.field-icon svg,
.password-toggle svg,
.auth-secure-icon svg,
.dashboard-icon svg,
.account-link svg,
.logout-button svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    fill: currentColor;
}

.auth-form svg {
    flex: 0 0 auto;
    max-width: 28px;
    max-height: 28px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    max-width: 28px;
    height: 28px;
    max-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #657184;
    cursor: pointer;
    padding: 0;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button-primary {
    margin-top: 8px;
    background: linear-gradient(135deg, var(--vrjets-yellow) 0%, var(--vrjets-yellow-dark) 100%);
    color: var(--vrjets-navy);
    box-shadow: 0 14px 28px rgba(242, 170, 0, 0.22);
}

.button-primary-wide { width: 100%; min-height: 58px; font-size: 1.08rem; }

.button-secondary { background: #eef4fb; color: var(--vrjets-navy); }

.button-primary:hover,
.button-secondary:hover { transform: translateY(-1px); }

.button-link { text-decoration: none; }

.auth-link,
.auth-actions { margin: 22px 0 0; text-align: center; }

.auth-link-right { margin: 0 0 20px; text-align: right; }

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.auth-link a {
    color: #0075c9;
    font-weight: 650;
    font-size: .95rem;
    text-decoration: none;
}

.auth-link a:hover { text-decoration: underline; }

.auth-secure-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
    color: #626d7f;
    font-size: .96rem;
}

.auth-secure-icon {
    width: 28px;
    height: 28px;
    color: #5f6e84;
}

.alert {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.alert-success {
    background: rgba(21, 127, 59, 0.1);
    border: 1px solid rgba(21, 127, 59, 0.22);
    color: var(--vrjets-success);
}

.alert-error {
    background: rgba(180, 35, 24, 0.1);
    border: 1px solid rgba(180, 35, 24, 0.22);
    color: var(--vrjets-danger);
}

.password-hint {
    margin: 2px 0 0;
    color: var(--vrjets-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.mini-profile { display: grid; gap: 12px; margin: 22px 0; }
.mini-profile > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--vrjets-border);
    border-radius: 16px;
    background: #fff;
}
.mini-profile span { color: var(--vrjets-muted); font-weight: 700; }

@media (max-height: 760px) {
    .auth-body {
        align-items: start;
        place-items: start center;
        padding-top: max(18px, env(safe-area-inset-top));
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .auth-card { padding-top: 24px; padding-bottom: 24px; }
    .auth-brand { margin-bottom: 20px; }
    .auth-logo { width: 190px; margin-bottom: 18px; }
    .auth-brand p { margin-top: 12px; }
    .auth-secure-note { margin-top: 22px; }
}

/* Dashboard mockup */
.dashboard-body { min-height: 100vh; background: #fff; color: var(--vrjets-navy); }

.dashboard-topbar {
    height: 95px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 38px 0 42px;
    border-bottom: 1px solid #e5e5e7;
    background: rgba(255,255,255,.98);
}

.dashboard-brand { display: flex; align-items: center; gap: 76px; }
.dashboard-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}
.dashboard-logo-img {
    display: block;
    width: auto;
    height: 40px;
    max-width: 220px;
    object-fit: contain;
}
.dashboard-nav { display: flex; height: 100%; align-items: stretch; gap: 34px; }
.dashboard-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 112px;
    justify-content: center;
    color: #343947;
    text-decoration: none;
    font-size: 1.03rem;
    font-weight: 500;
}
.dashboard-nav a.is-active { color: var(--vrjets-navy); font-weight: 800; }
.dashboard-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--vrjets-yellow);
}

.dashboard-userbar { display: flex; align-items: center; gap: 28px; }
.dashboard-user-name { display: flex; align-items: center; gap: 12px; font-weight: 650; }
.dashboard-user-name::after { content: none; }
.logout-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 21px;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    background: #fff;
    color: var(--vrjets-navy);
    font-weight: 750;
    text-decoration: none;
}
.logout-button svg { width: 22px; height: 22px; }

.dashboard-main { padding: 46px 48px 72px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 298px; gap: 40px; align-items: start; }
.dashboard-title { margin: 0; font-size: clamp(2.5rem, 4vw, 3.15rem); line-height: 1.08; letter-spacing: -0.045em; font-weight: 850; }
.dashboard-subtitle { margin: 18px 0 54px; color: #505865; font-size: 1.23rem; }
.walk-grid { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 26px; }
.walk-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dde2ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(7,20,44,.08);
}
.walk-image { width: 100%; aspect-ratio: 1.42 / 1; object-fit: cover; display: block; border-bottom: 1px solid #dde2ea; }
.walk-card-body { padding: 23px 21px 26px; }
.walk-title { margin: 0 0 8px; font-size: clamp(1.72rem, 2.4vw, 2.08rem); line-height: 1.1; letter-spacing: -0.04em; font-weight: 850; }
.walk-type { margin: 0 0 21px; color: #525b68; font-size: 1.05rem; }
.walk-status { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 13px; border-radius: 8px; font-weight: 700; font-size: .95rem; }
.walk-status-active { color: #14733d; background: #eef8ef; border: 1px solid #d6ecd8; }
.walk-status-date { color: #2c2716; background: #fff5cf; border: 1px solid #f6dfa1; }
.walk-status-expired { color: #9c2c21; background: #fff0ef; border: 1px solid #f2c5c0; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.walk-button { margin-top: 23px; width: 100%; min-height: 50px; border-radius: 7px; font-weight: 650; text-decoration: none; }
.walk-button.disabled { pointer-events: none; opacity: .55; filter: grayscale(.25); }
.account-panel {
    margin-top: 76px;
    padding: 28px 26px 22px;
    border: 1px solid #dde2ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(7,20,44,.08);
}
.account-panel h2 { margin: 0 0 31px; font-size: 1.45rem; letter-spacing: -0.04em; }
.account-panel h2::after { content: ""; display: block; width: 100px; height: 2px; margin-top: 15px; background: var(--vrjets-yellow); }
.account-link {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 76px;
    color: var(--vrjets-navy);
    text-decoration: none;
    border-bottom: 1px solid #edf0f4;
}
.account-link:last-child { border-bottom: 0; }
.account-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f7f8fa;
    color: var(--vrjets-navy);
    flex: 0 0 auto;
}
.account-icon svg { width: 23px; height: 23px; }
.account-link span:nth-child(2) { flex: 1; font-weight: 500; }
.account-chevron { color: #202939; font-size: 1.8rem; line-height: 1; }
.empty-walks {
    border: 1px dashed #ccd3df;
    border-radius: 14px;
    padding: 34px;
    color: var(--vrjets-muted);
    background: #fbfcfe;
}

@media (max-width: 1180px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .account-panel { margin-top: 24px; max-width: 420px; }
    .walk-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}

@media (max-width: 780px) {
    .auth-body {
        align-items: start;
        place-items: start center;
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .auth-card { padding: 30px 22px; }
    .auth-logo { width: 210px; margin-bottom: 25px; }
    .auth-brand h1 { font-size: 2rem; }
    .auth-aircraft-silhouette, .auth-plane-two { opacity: .18; }
    .auth-flight-line-one, .auth-flight-line-two { opacity: .45; }
    .dashboard-topbar { height: auto; padding: 18px 20px; flex-direction: column; gap: 18px; }
    .dashboard-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
    .dashboard-logo-img { height: 34px; max-width: 190px; }
    .dashboard-nav { height: 44px; gap: 18px; }
    .dashboard-nav a { min-width: auto; padding: 0 8px; }
    .dashboard-userbar { justify-content: space-between; width: 100%; gap: 16px; }
    .dashboard-main { padding: 34px 20px 48px; }
    .dashboard-subtitle { margin-bottom: 30px; }
    .walk-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .auth-shell { width: 100%; }
    .auth-card { padding: 24px 18px; }
    .auth-brand { margin-bottom: 22px; }
    .auth-logo { width: 186px; margin-bottom: 18px; }
    .auth-secure-note { margin-top: 24px; }
    .auth-secure-note { align-items: flex-start; text-align: left; }
    .mini-profile > div { flex-direction: column; gap: 4px; }
    .dashboard-user-name { font-size: .95rem; }
    .logout-button { padding: 0 14px; }
}

/* Admin Desk */
.admin-shell {
    min-height: 100vh;
    background: #f5f7fb;
    color: #182235;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 3vw, 2rem);
    background: #ffffff;
    border-bottom: 1px solid rgba(24, 34, 53, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 800;
    color: #101827;
    text-decoration: none;
}

.admin-brand img { height: 34px; width: auto; }

.admin-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-nav a,
.admin-topbar-action {
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    color: #3b465b;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] { background: var(--vrjets-yellow); color: var(--vrjets-navy); }

.admin-main {
    width: min(1220px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.admin-hero,
.admin-page-heading,
.admin-panel,
.admin-stat-card {
    background: #ffffff;
    border: 1px solid rgba(24, 34, 53, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.admin-hero,
.admin-page-heading {
    padding: clamp(1.25rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-kicker {
    margin: 0 0 0.25rem;
    color: #9a7714;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-stat-card { padding: 1.25rem; }
.admin-stat-card span,
.admin-muted,
.admin-optional { color: #667085; }
.admin-stat-card strong { display: block; margin-top: 0.35rem; color: #101827; font-size: clamp(1.8rem, 4vw, 2.5rem); }

.admin-panel { padding: clamp(1rem, 2.5vw, 1.5rem); margin-bottom: 1.25rem; }

.admin-panel-header,
.admin-actions-row,
.admin-form-actions,
.admin-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-panel-header h2,
.admin-access-section h2 { margin: 0; color: #101827; }
.admin-panel-header p,
.admin-access-section p { margin: 0.25rem 0 0; color: #667085; }
.admin-action,
.admin-inline-action { white-space: nowrap; }
.admin-filter-bar { justify-content: flex-start; margin-bottom: 1rem; }

.admin-filter-bar input,
.admin-filter-bar select,
.admin-form input,
.admin-form select,
.admin-form input[type="file"],
.admin-walk-edit-card input,
.admin-walk-edit-card select {
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    background: #ffffff;
    color: #101827;
    min-height: 44px;
}

.admin-filter-bar input { min-width: min(320px, 100%); }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th,
.admin-table td { padding: 0.85rem 0.75rem; border-bottom: 1px solid #eef1f5; text-align: left; vertical-align: top; }
.admin-table th { color: #475467; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

.admin-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    background: #eef2f6;
    color: #344054;
    font-weight: 800;
    font-size: 0.78rem;
}

.admin-badge-active,
.admin-badge-pending { background: #ecfdf3; color: #027a48; }
.admin-badge-inactive,
.admin-badge-expired { background: #fef3f2; color: #b42318; }
.admin-badge-invited,
.admin-badge-used { background: #fffaeb; color: #b54708; }
.admin-badge-login-locked { margin-top: 0.35rem; background: #fef3f2; color: #b42318; }
.admin-inline-action { color: #9a7714; font-weight: 800; text-decoration: none; }

.admin-grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin-list { display: grid; gap: 0.75rem; margin-top: 1rem; }
.admin-list-row { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #eef1f5; padding-bottom: 0.75rem; }
.admin-list-row span { color: #667085; }

.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin-form label { display: grid; gap: 0.35rem; color: #344054; font-weight: 800; }
.admin-form small,
.admin-form .admin-help { color: #667085; font-weight: 500; }

.admin-readonly-box {
    border: 1px dashed #d0d5dd;
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    background: #f9fafb;
    display: grid;
    gap: 0.25rem;
}

.admin-readonly-box span { color: #667085; font-size: 0.85rem; }
.admin-access-section { margin-top: 1.5rem; }
.admin-access-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.admin-access-card { border: 1px solid #e4e7ec; border-radius: 18px; padding: 1rem; }
.admin-access-card legend { padding: 0 0.35rem; font-weight: 900; color: #101827; }
.admin-checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 0.5rem !important; margin-bottom: 0.75rem; }
.admin-checkbox-inline { align-self: end; min-height: 44px; margin-bottom: 0; }
.admin-radio-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.admin-radio-row label { display: inline-flex; grid-template-columns: none; align-items: center; gap: 0.35rem; }
.admin-radio-row input[type="date"] { width: auto; }
.admin-create-walk-form { margin-top: 1rem; }
.admin-password-grid { margin-top: 1rem; }
.admin-walk-create-panel { overflow: hidden; }
.admin-walk-create-grid { grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(260px, 0.9fr); align-items: start; }
.admin-walk-edit-list { display: grid; gap: 1rem; margin-top: 1.25rem; }
.admin-walk-edit-card {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}
.admin-walk-card-media {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}
.admin-walk-thumb {
    width: 140px;
    height: 92px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #e4e7ec;
    background: #f9fafb;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}
.admin-walk-thumb-empty {
    display: grid;
    place-items: center;
    color: #667085;
    font-weight: 800;
    font-size: 0.82rem;
}
.admin-walk-card-main { display: grid; gap: 1rem; min-width: 0; }
.admin-walk-card-title-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f6;
}
.admin-walk-card-title-row h3 { margin: 0 0 0.25rem; color: #182235; font-size: 1.05rem; letter-spacing: -0.02em; }
.admin-walk-card-title-row p { margin: 0; color: #667085; font-size: 0.88rem; }
.admin-walk-fields-grid {
    display: grid;
    grid-template-columns: minmax(190px, 1.2fr) 140px minmax(180px, 1fr) minmax(240px, 1.2fr);
    gap: 0.85rem;
    align-items: start;
}
.admin-walk-edit-card label { display: grid; gap: 0.35rem; color: #344054; font-weight: 800; font-size: 0.9rem; }
.admin-walk-edit-card small { color: #667085; font-weight: 500; line-height: 1.35; }
.admin-walk-edit-card input[type="text"],
.admin-walk-edit-card select,
.admin-walk-edit-card input[type="file"] { width: 100%; min-width: 0; }
.admin-walk-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding-top: 0.25rem;
}
.admin-walk-meta { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; font-size: 0.86rem; color: #667085; }
.auth-context,
.auth-help { color: var(--vrjets-muted); line-height: 1.55; }
.alert-warning { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; }

@media (max-width: 900px) {
    .admin-topbar,
    .admin-hero,
    .admin-page-heading { align-items: flex-start; flex-direction: column; }
    .admin-stat-grid,
    .admin-grid-two,
    .admin-form-grid,
    .admin-access-list { grid-template-columns: 1fr; }
    .admin-walk-create-grid,
    .admin-walk-edit-card,
    .admin-walk-fields-grid { grid-template-columns: 1fr; align-items: stretch; }
    .admin-walk-card-footer,
    .admin-walk-card-title-row { flex-direction: column; align-items: flex-start; }
    .admin-walk-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}



.admin-field-error input,
.admin-field-error select,
.admin-section-error,
.admin-access-card.admin-field-error {
    border-color: #d92d20 !important;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.10);
}

.admin-field-message {
    display: block;
    margin-top: 0.4rem;
    color: #b42318;
    font-size: 0.85rem;
    font-weight: 800;
}

.admin-inline-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.button-small {
    min-height: 34px;
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
}

.admin-muted {
    color: var(--vrjets-muted);
}

/* Bulk invitations */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-tab {
    border: 1px solid transparent;
    border-bottom: 0;
    background: transparent;
    color: var(--vrjets-muted);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem 0.75rem 0 0;
    cursor: pointer;
    font-weight: 700;
}

.admin-tab.is-active {
    background: var(--vrjets-surface);
    color: var(--vrjets-navy);
    border-color: rgba(148, 163, 184, 0.3);
}

.admin-tab-panel { display: none; }
.admin-tab-panel.is-active { display: block; }

.admin-bulk-email-list {
    display: grid;
    gap: 0.75rem;
    max-width: 720px;
}

.admin-bulk-email-row label {
    display: grid;
    gap: 0.35rem;
}

.admin-form-grid-single-line { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.admin-batch-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    color: var(--vrjets-muted);
    font-size: 0.9rem;
}

.admin-batch-counters span {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
}

@media (max-width: 1100px) {
    .admin-form-grid-single-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .admin-form-grid-single-line,
    .admin-bulk-email-list { grid-template-columns: 1fr; }
}


.admin-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.72);
}

.admin-bulk-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-checkbox-compact {
    gap: 0.35rem;
    white-space: nowrap;
}

.admin-bulk-user-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.admin-bulk-confirm-box {
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(239, 246, 255, 0.56);
}

.admin-bulk-summary-table {
    margin-top: 0.75rem;
}

@media (max-width: 760px) {
    .admin-bulk-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
