:root {
    --site-bg: #f4f7fb;
    --site-bg-2: #eef3fb;
    --site-surface: rgba(255, 255, 255, 0.82);
    --site-surface-strong: #ffffff;
    --site-surface-soft: rgba(241, 246, 255, 0.92);
    --site-text: #0b1c30;
    --site-muted: #5b6578;
    --site-border: rgba(214, 222, 236, 0.95);
    --site-primary: #061a34;
    --site-primary-2: #102f57;
    --site-accent: #f4c20d;
    --site-accent-text: #6f5400;
    --site-success: #0f9d58;
    --site-danger: #dc2626;
    --site-shadow: 0 22px 54px rgba(11, 28, 48, 0.08);
    --site-shadow-strong: 0 32px 90px rgba(11, 28, 48, 0.12);
    --site-radius-xl: 30px;
    --site-radius-lg: 22px;
    --site-radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--site-text);
    background:
        radial-gradient(circle at top left, rgba(16, 47, 87, 0.10), transparent 30%),
        radial-gradient(circle at top right, rgba(244, 194, 13, 0.14), transparent 24%),
        linear-gradient(180deg, var(--site-bg) 0%, var(--site-bg-2) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0%, transparent 24%, transparent 76%, rgba(255, 255, 255, 0.14) 100%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.28), transparent 38%);
    opacity: 0.55;
    z-index: -1;
}

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

img {
    display: block;
    max-width: 100%;
}

.container,
.login-shell,
.shell,
.success-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.page,
.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    position: relative;
    padding: 54px 0 24px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 47, 87, 0.16), transparent);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--site-primary);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
    font-weight: 800;
}

h1,
h2,
h3 {
    letter-spacing: -0.04em;
}

h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 0.95;
}

h2 {
    margin: 0;
    font-size: 1.2rem;
}

h3 {
    margin: 0;
    font-size: 1rem;
}

p {
    line-height: 1.7;
}

.intro,
.subtitle,
.muted,
.small,
.card-subtitle,
.login-footnote,
.section-subtitle,
.meta,
.message-head,
.card-note,
.helper {
    color: var(--site-muted);
}

.intro {
    margin: 16px 0 0;
    max-width: 70ch;
    font-size: 1.05rem;
}

.topbar,
header {
    backdrop-filter: blur(18px);
}

.topbar,
header,
.card,
.panel,
.feature-card,
.submission-card,
.item-row,
.selected-card,
.search-result,
.stat,
.filter,
.summary,
.empty-state,
.card,
.login-shell .card,
.card-subtle,
.error-list,
.notice,
.error,
.site-footer,
.site-footer__bottom,
.site-header {
    border-radius: var(--site-radius-xl);
}

.topbar,
header,
.card,
.panel,
.feature-card,
.submission-card,
.item-row,
.selected-card,
.search-result,
.stat,
.filter,
.summary,
.empty-state,
.card-subtle,
.error-list,
.notice,
.error {
    border: 1px solid var(--site-border);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}

.topbar,
header {
    position: sticky;
    top: 0;
    z-index: 25;
}

.topbar,
header,
.site-header {
    background: rgba(244, 247, 251, 0.88);
    border-bottom: 1px solid rgba(214, 222, 236, 0.92);
}

.topbar-inner,
.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand,
.title,
.site-brand__name,
.site-footer__brandmark {
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand,
.title,
.site-brand__name {
    color: var(--site-primary);
}

.site-brand__subtitle {
    color: var(--site-muted);
}

.nav,
.site-nav,
.actions,
.hero-actions,
.links,
.login-links,
.site-header__actions,
.row,
.summary,
.filter-actions,
.form-actions,
.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav,
.site-nav {
    align-items: center;
}

.nav a,
.site-nav a {
    color: var(--site-muted);
    font-weight: 700;
    transition: color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.nav a:hover,
.site-nav a:hover {
    color: var(--site-primary);
    transform: translateY(-1px);
}

.nav a.active,
.site-nav a.is-active {
    color: var(--site-primary);
    border-bottom: 2px solid var(--site-accent);
    padding-bottom: 4px;
}

.button,
.button-primary,
.button-accent,
.button-outline,
.btn,
.btn-primary,
.logout,
.cta,
.link,
.button-link,
.button-danger,
.site-header__button,
.primary,
.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.button-primary:hover,
.button-accent:hover,
.button-outline:hover,
.btn:hover,
.btn-primary:hover,
.logout:hover,
.cta:hover,
.link:hover,
.button-link:hover,
.button-danger:hover,
.site-header__button:hover,
.primary:hover,
.ghost:hover {
    transform: translateY(-1px);
}

.button,
.btn,
.button-link,
.link,
.ghost,
.button-outline,
.logout,
.site-header__button {
    background: var(--site-surface-strong);
    color: var(--site-text);
    border-color: var(--site-border);
    box-shadow: 0 10px 24px rgba(11, 28, 48, 0.08);
}

.button-primary,
.btn-primary,
.button-accent,
.cta,
.primary,
.site-header__button--primary {
    background: linear-gradient(135deg, var(--site-primary), var(--site-primary-2));
    color: #fff;
    box-shadow: 0 16px 30px rgba(6, 26, 52, 0.16);
}

.button-danger {
    background: rgba(220, 38, 38, 0.08);
    color: #b42318;
    border-color: rgba(220, 38, 38, 0.16);
}

.site-header__button--primary:hover,
.button-primary:hover,
.btn-primary:hover,
.button-accent:hover,
.cta:hover,
.primary:hover {
    box-shadow: 0 18px 40px rgba(6, 26, 52, 0.22);
}

.card,
.panel,
.feature-card,
.submission-card,
.item-row,
.selected-card,
.search-result,
.stat,
.filter,
.summary,
.empty-state,
.card-subtle,
.notice,
.error,
.error-list {
    padding: 24px;
}

.cards,
.cards-grid,
.grid-layout,
.grid,
.stats,
.filters,
.list,
.inbox,
.submission-items,
.card-search-results,
.messages,
.meta,
.price-grid,
.photo-grid,
.thumbs,
.success-grid,
.success-steps {
    display: grid;
    gap: 16px;
}

.cards,
.cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 28px 0 40px;
}

.feature-card,
.card,
.panel,
.submission-card {
    backdrop-filter: blur(16px);
}

.feature-card h2,
.card h2,
.panel h2,
.submission-card h2 {
    margin-bottom: 10px;
}

.feature-card p,
.card p,
.panel p,
.submission-card p {
    margin: 0;
}

.form-shell,
.section,
.hero,
.login-shell,
.success-shell,
.section-title,
.site-footer__inner,
.site-footer__bottom {
    padding-top: 24px;
}

.section {
    padding-bottom: 84px;
}

.section-title {
    text-align: center;
    margin-bottom: 28px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section-title p {
    margin: 12px auto 0;
    max-width: 70ch;
}

.input,
.textarea,
input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--site-text);
    padding: 13px 14px;
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.input:focus,
.textarea:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(16, 47, 87, 0.6);
    box-shadow: 0 0 0 4px rgba(16, 47, 87, 0.08);
    transform: translateY(-1px);
}

label,
.field,
.row label,
.login-shell label,
.form-grid label,
.filter-grid label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.status,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 12px;
    border: 1px solid var(--site-border);
    background: rgba(148, 163, 184, 0.08);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status.pending,
.status-pending {
    color: #9a6700;
    background: #ffefc5;
    border-color: rgba(245, 158, 11, 0.24);
}

.status.reviewing,
.status-reviewing {
    color: #094073;
    background: #dcecff;
    border-color: rgba(59, 130, 246, 0.24);
}

.status.photo_requested,
.status-photo_requested {
    color: #9a3412;
    background: #ffe4c8;
    border-color: rgba(251, 146, 60, 0.24);
}

.status.offered,
.status-offered {
    color: #4c1d95;
    background: #eee2ff;
    border-color: rgba(124, 58, 237, 0.24);
}

.status.countered,
.status-countered {
    color: #6b21a8;
    background: #f3e8ff;
    border-color: rgba(168, 85, 247, 0.24);
}

.status.accepted,
.status-accepted,
.status.paid,
.status-paid,
.status.cash_paid,
.status-cash_paid {
    color: #166534;
    background: #dcfce7;
    border-color: rgba(34, 197, 94, 0.24);
}

.status.shipping_requested,
.status-shipping_requested,
.status.in_transit,
.status-in_transit,
.status.received,
.status-received {
    color: #0f4c81;
    background: #dbeafe;
    border-color: rgba(59, 130, 246, 0.24);
}

.status.payment_requested,
.status-payment_requested {
    color: #92400e;
    background: #fef3c7;
    border-color: rgba(245, 158, 11, 0.24);
}

.status.cancelled,
.status-cancelled {
    color: #7f1d1d;
    background: #fee2e2;
    border-color: rgba(220, 38, 38, 0.24);
}

.empty-state,
.empty,
.empty-search {
    text-align: center;
    color: var(--site-muted);
    border: 1px dashed rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.70);
    border-radius: var(--site-radius-xl);
}

.required-mark {
    color: var(--site-accent-text);
    font-weight: 800;
    margin-left: 0.2rem;
}

.login-shell {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 54px 0 36px;
}

.login-shell .card,
.login-shell .notice,
.login-shell .error {
    width: min(560px, 100%);
}

.card-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--site-primary), var(--site-primary-2));
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 16px 30px rgba(6, 26, 52, 0.18);
}

.login-footnote {
    margin-top: 18px;
    text-align: center;
    font-size: 0.92rem;
}

.success-shell {
    padding-bottom: 44px;
}

.success-grid {
    grid-template-columns: 1.15fr 0.85fr;
    margin-top: 14px;
}

.success-card,
.success-next {
    min-height: 100%;
}

.success-number {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--site-primary), var(--site-primary-2));
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    box-shadow: 0 18px 32px rgba(6, 26, 52, 0.18);
}

.success-steps {
    margin: 16px 0 0;
    padding-left: 18px;
}

.success-steps li {
    color: var(--site-muted);
}

.hero-actions,
.success-actions {
    margin-top: 24px;
}

.success-actions {
    justify-content: flex-start;
}

.site-footer {
    margin-top: 24px;
    background: linear-gradient(180deg, #061a34 0%, #041126 100%);
    color: rgba(255, 255, 255, 0.84);
    border-radius: 30px 30px 0 0;
    overflow: hidden;
}

.site-footer__inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 28px;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.site-footer__section h3,
.site-footer__section h2 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.site-footer__section a,
.site-footer__links a {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 600;
}

.site-footer__section a:hover,
.site-footer__links a:hover {
    color: #fff;
}

.site-footer__bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
}

.site-footer--compact .site-footer__inner {
    grid-template-columns: 1fr;
}

.site-footer--compact .site-footer__bottom {
    padding-bottom: 18px;
}

@media (max-width: 1024px) {
    .cards,
    .cards-grid,
    .success-grid,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .topbar,
    header,
    .topbar-inner,
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .container,
    .login-shell,
    .shell,
    .success-shell,
    .site-footer__inner,
    .site-footer__bottom {
        width: min(100% - 20px, 100%);
    }

    .hero {
        padding-top: 36px;
    }

    h1 {
        font-size: clamp(2.1rem, 10vw, 3.2rem);
    }

    .card,
    .panel,
    .feature-card,
    .submission-card,
    .item-row,
    .selected-card,
    .search-result,
    .stat,
    .filter,
    .summary,
    .empty-state,
    .error-list,
    .notice,
    .error {
        padding: 18px;
    }

    .hero-actions,
    .success-actions,
    .actions,
    .filter-actions,
    .form-actions,
    .login-links,
    .links {
        width: 100%;
    }

    .button,
    .button-primary,
    .button-accent,
    .button-outline,
    .btn,
    .btn-primary,
    .logout,
    .cta,
    .link,
    .button-link,
    .button-danger,
    .site-header__button,
    .primary,
    .ghost {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}