:root {
    --bg: #f6efe2;
    --bg-strong: #eadfcd;
    --surface: rgba(255, 251, 245, 0.9);
    --surface-strong: #fff9f0;
    --surface-dark: #143f44;
    --text: #163137;
    --muted: #5e7072;
    --line: rgba(22, 49, 55, 0.12);
    --primary: #146d67;
    --primary-dark: #0d4f50;
    --accent: #eb8b3a;
    --danger: #c04b37;
    --success: #127c4b;
    --warning: #9c6b12;
    --shadow: 0 22px 50px rgba(17, 43, 47, 0.13);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --font-base: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-base);
    background:
        radial-gradient(circle at top left, rgba(241, 143, 66, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(15, 111, 105, 0.2), transparent 28%),
        linear-gradient(180deg, #f7f2e9 0%, #f2eadb 35%, #f7f1e7 100%);
}

body.page-home {
    background:
        radial-gradient(circle at 10% 10%, rgba(235, 139, 58, 0.2), transparent 26%),
        radial-gradient(circle at 85% 15%, rgba(20, 109, 103, 0.24), transparent 24%),
        linear-gradient(135deg, #f7f0e3 0%, #f0e5d1 42%, #efe4d4 100%);
}

img {
    max-width: 100%;
}

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

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

button {
    cursor: pointer;
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.page-home .site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.compact-shell {
    width: min(960px, calc(100% - 32px));
}

.admin-shell {
    width: min(1320px, calc(100% - 32px));
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0 26px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.logo-mark strong {
    display: block;
    font-size: 1.05rem;
}

.logo-mark small {
    color: var(--muted);
    font-size: 0.82rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 14px 30px rgba(15, 111, 105, 0.25);
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.account-chip {
    display: grid;
    gap: 4px;
    min-width: 220px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(42, 37, 33, 0.08);
}

.account-chip-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(43, 37, 32, 0.68);
}

.account-chip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.account-chip strong {
    color: #2f2a25;
    font-size: 0.96rem;
}

.account-chip small {
    color: rgba(43, 37, 32, 0.72);
    font-size: 0.78rem;
}

.account-chip-action {
    min-height: 36px;
    padding: 0 14px;
    justify-self: start;
}

.account-chip.is-guest {
    background: rgba(255, 248, 232, 0.7);
    border-color: rgba(255, 173, 92, 0.18);
}

.account-chip.is-pending {
    background: rgba(241, 166, 88, 0.14);
    border-color: rgba(241, 166, 88, 0.24);
}

.site-nav a {
    color: var(--muted);
    font-weight: 600;
}

.site-nav a:hover {
    color: var(--primary-dark);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
}

.home-main {
    flex: 1;
    display: flex;
    min-height: 0;
}

.transfer-stage {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
    min-height: 0;
    background:
        linear-gradient(135deg, rgba(255, 251, 244, 0.92) 0%, rgba(245, 237, 225, 0.86) 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(18, 42, 47, 0.14);
}

.transfer-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(235, 139, 58, 0.16), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(20, 109, 103, 0.12), transparent 18%);
    pointer-events: none;
}

.stage-intro,
.stage-form-wrap {
    position: relative;
    z-index: 1;
}

.stage-intro {
    display: grid;
    align-content: space-between;
    gap: 24px;
    padding: 38px 38px 28px;
}

.stage-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.page-home h1 {
    max-width: 13ch;
    font-size: clamp(2.5rem, 3.5vw, 4.35rem);
}

.page-home .lead {
    max-width: 56ch;
    margin-top: 14px;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.trust-strip article {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(22, 49, 55, 0.07);
}

.trust-strip article strong {
    font-size: 0.96rem;
}

.trust-strip article span {
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

.membership-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.membership-pill {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(22, 49, 55, 0.08);
    background: rgba(255, 255, 255, 0.64);
}

.membership-pill.can-upload {
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.88) 0%, rgba(255, 244, 232, 0.92) 100%);
}

.membership-pill.no-upload {
    background: linear-gradient(180deg, rgba(245, 240, 232, 0.88) 0%, rgba(236, 227, 214, 0.92) 100%);
}

.membership-pill-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.membership-pill small {
    margin: 0;
}

.membership-pill-limit {
    font-weight: 700;
    color: var(--text);
}

.membership-pill small {
    color: var(--muted);
    line-height: 1.45;
}

.stage-footer-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.stage-form-wrap {
    background:
        linear-gradient(180deg, rgba(255, 253, 250, 0.84) 0%, rgba(248, 243, 236, 0.96) 100%);
    border-left: 1px solid rgba(22, 49, 55, 0.08);
}

.stage-upload-card {
    height: 100%;
    margin: 0;
    padding: 30px 30px 26px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.compact-transfer-form {
    gap: 12px;
}

.compact-transfer-form label {
    gap: 6px;
}

.compact-transfer-form label > span {
    font-size: 0.92rem;
}

.page-home input,
.page-home select,
.page-home textarea {
    padding: 12px 14px;
    border-radius: 13px;
}

.page-home textarea {
    min-height: 88px;
}

.compact-dropzone {
    min-height: 156px;
    padding: 18px;
    border-radius: 22px;
}

.compact-dropzone .dropzone-inner {
    gap: 8px;
}

.compact-dropzone .dropzone-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
}

.hero-copy,
.upload-card,
.panel,
.stat-card,
.membership-card,
.feature-strip article {
    background: var(--surface);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 42px;
    border-radius: 34px;
    min-height: 100%;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.4rem, 4vw, 4.3rem);
    max-width: 11ch;
}

h2 {
    font-size: clamp(1.7rem, 2.2vw, 2.6rem);
}

h3 {
    font-size: 1.15rem;
}

.lead {
    margin: 18px 0 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--muted);
}

.hero-points {
    margin-top: 30px;
    display: grid;
    gap: 18px;
}

.hero-points article {
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(19, 41, 43, 0.08);
}

.hero-points p,
.membership-card p,
.feature-strip p,
.panel p,
.message-panel p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.upload-card,
.panel {
    border-radius: 34px;
    padding: 28px;
}

.card-topline,
.panel-heading,
.panel-heading-spread,
.selected-summary,
.progress-copy,
.summary-grid article,
.download-summary,
.site-footer,
.filter-actions,
.action-row,
.stats-grid {
    display: flex;
    align-items: center;
}

.card-topline,
.panel-heading-spread,
.selected-summary,
.progress-copy,
.summary-grid article,
.download-summary,
.site-footer,
.filter-actions,
.action-row,
.stats-grid {
    justify-content: space-between;
}

.panel-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
}

.panel-heading-spread {
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 111, 105, 0.12);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.badge-membership {
    background: rgba(241, 143, 66, 0.18);
    color: #7a3c06;
}

.badge.success {
    background: rgba(18, 124, 75, 0.14);
    color: var(--success);
}

.badge.warning {
    background: rgba(156, 107, 18, 0.16);
    color: var(--warning);
}

.muted,
.field-help,
.form-footnote {
    color: var(--muted);
    font-size: 0.92rem;
}

.transfer-form,
.filter-grid,
.password-form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
}

label > span {
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(15, 111, 105, 0.58);
    box-shadow: 0 0 0 4px rgba(15, 111, 105, 0.13);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

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

.align-end {
    align-items: end;
}

.dropzone {
    position: relative;
    border: 2px dashed rgba(15, 111, 105, 0.28);
    border-radius: 28px;
    padding: 24px;
    min-height: 210px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top right, rgba(241, 143, 66, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 244, 238, 0.96) 100%);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dropzone:hover,
.dropzone.is-active {
    transform: translateY(-2px);
    border-color: rgba(15, 111, 105, 0.58);
    box-shadow: 0 14px 28px rgba(15, 111, 105, 0.16);
}

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

.dropzone-inner {
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
}

.dropzone-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.dropzone-picker {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.92rem;
}

.dropzone-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 111, 105, 0.12);
    color: var(--primary);
    font-size: 2rem;
    font-weight: 400;
}

.selected-files {
    border: 1px solid rgba(19, 41, 43, 0.08);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.64);
}

.selected-files ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 12px;
}

.selected-files li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px dashed rgba(19, 41, 43, 0.1);
}

.selected-files li:first-child {
    border-top: 0;
    padding-top: 0;
}

.selected-file-copy {
    display: grid;
    gap: 3px;
}

.selected-file-path {
    color: var(--muted);
    font-size: 0.8rem;
    word-break: break-word;
}

.membership-meta-card,
.inline-note,
.alert,
.message-panel {
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.membership-meta-card {
    display: grid;
    gap: 6px;
    background: rgba(15, 111, 105, 0.08);
    border: 1px solid rgba(15, 111, 105, 0.12);
}

.inline-note,
.alert {
    border: 1px solid rgba(19, 41, 43, 0.08);
}

.inline-note.success,
.alert-success {
    background: rgba(18, 124, 75, 0.12);
    color: #115f3d;
}

.inline-note.warning {
    background: rgba(255, 190, 106, 0.18);
    color: #7a5110;
    border-color: rgba(255, 190, 106, 0.26);
}

.alert-error {
    background: rgba(192, 75, 55, 0.12);
    color: #8d2d1d;
}

.alert-warning {
    background: rgba(156, 107, 18, 0.12);
    color: #7c5710;
}

.progress-panel {
    display: grid;
    gap: 10px;
}

.progress-bar {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 111, 105, 0.1);
}

.progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    transition: width 0.2s ease;
}

.button-primary,
.button-secondary,
.button-danger,
.button-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 15px;
    border: 0;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 14px 28px rgba(15, 111, 105, 0.22);
}

.button-secondary,
.button-inline {
    color: var(--primary-dark);
    background: rgba(15, 111, 105, 0.12);
}

.button-danger {
    color: white;
    background: linear-gradient(135deg, #ce604c 0%, #ab3828 100%);
}

.button-inline {
    min-height: 40px;
    padding: 0 16px;
}

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

.button-primary:disabled {
    opacity: 0.7;
    pointer-events: none;
}

.membership-section,
.feature-strip,
.stats-grid {
    margin-top: 28px;
}

.section-heading {
    margin-bottom: 18px;
}

.membership-grid,
.feature-strip,
.stats-grid,
.summary-grid {
    display: grid;
    gap: 18px;
}

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

.membership-card {
    border-radius: 26px;
    padding: 24px;
    display: grid;
    gap: 20px;
}

.membership-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    color: var(--muted);
}

.membership-card.can-upload {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 248, 240, 0.95) 100%);
}

.membership-card.no-upload {
    background: linear-gradient(180deg, rgba(245, 240, 232, 0.95) 0%, rgba(236, 227, 214, 0.95) 100%);
}

.feature-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-strip article {
    padding: 24px;
    border-radius: 24px;
}

.centered-main {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
}

.narrow-panel {
    width: min(560px, 100%);
}

.admin-login-panel {
    padding: 24px;
}

.admin-login-title {
    font-size: clamp(1.8rem, 2.2vw, 2.2rem);
}

.wide-panel {
    width: min(980px, 100%);
}

.summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 20px;
}

.summary-grid article {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(19, 41, 43, 0.08);
}

.message-panel {
    margin-top: 20px;
    background: rgba(255, 248, 238, 0.84);
    border: 1px solid rgba(241, 143, 66, 0.16);
}

.file-table-wrap {
    margin-top: 22px;
    overflow-x: auto;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.file-table th,
.file-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(19, 41, 43, 0.08);
    vertical-align: top;
    word-break: break-word;
}

.file-table th {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.file-table td {
    background: rgba(255, 255, 255, 0.4);
}

.link-block {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary-dark);
    word-break: break-all;
}

.download-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.download-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 220px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(15, 111, 105, 0.08);
}

.split-actions {
    margin-top: 20px;
}

.admin-inline-actions {
    margin-top: 20px;
}

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

.stat-card {
    border-radius: 24px;
    padding: 22px;
    display: grid;
    gap: 10px;
}

.stat-card span {
    color: var(--muted);
}

.stat-card strong {
    font-size: 1.7rem;
}

.filter-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    align-items: end;
}

.filter-actions {
    gap: 10px;
}

.site-footer {
    margin-top: 26px;
    padding: 16px 0 0;
    color: var(--muted);
    gap: 18px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(19, 41, 43, 0.08);
}

.home-site-footer {
    margin-top: 12px;
    padding-top: 12px;
}

@media (max-width: 1100px) {
    .page-home .site-shell {
        min-height: auto;
    }

    .home-main {
        display: block;
    }

    .transfer-stage {
        grid-template-columns: 1fr;
    }

    .stage-form-wrap {
        border-left: 0;
        border-top: 1px solid rgba(22, 49, 55, 0.08);
    }

    .trust-strip,
    .membership-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid,
    .membership-grid,
    .feature-strip,
    .stats-grid,
    .summary-grid,
    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-grid {
        align-items: stretch;
    }

    .download-hero {
        flex-direction: column;
    }
}

@media (max-width: 780px) {
    .site-shell,
    .compact-shell,
    .admin-shell {
        width: min(100% - 22px, 100%);
    }

    .site-header,
    .site-nav,
    .panel-heading-spread,
    .action-row,
    .card-topline,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-copy,
    .upload-card,
    .panel,
    .membership-card,
    .feature-strip article,
    .stat-card {
        padding: 22px;
        border-radius: 24px;
    }

    .hero-grid,
    .membership-grid,
    .feature-strip,
    .stats-grid,
    .summary-grid,
    .two-columns,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .trust-strip,
    .membership-band {
        grid-template-columns: 1fr;
    }

    .stage-intro,
    .stage-upload-card {
        padding: 24px 22px;
    }

    .stage-topline,
    .stage-footer-note {
        flex-direction: column;
        align-items: flex-start;
    }

    .dropzone {
        min-height: 180px;
    }

    .file-table {
        min-width: 620px;
    }
}

@media (max-width: 520px) {
    .page-home h1 {
        max-width: none;
    }

    body {
        font-size: 15px;
    }

    .logo-mark {
        align-items: flex-start;
    }

    .button-primary,
    .button-secondary,
    .button-danger,
    .button-inline {
        width: 100%;
    }

    .selected-files li,
    .selected-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Home page premium brand overrides */
body.page-home {
    background:
        linear-gradient(135deg, rgba(34, 24, 18, 0.36) 0%, rgba(16, 18, 20, 0.28) 52%, rgba(12, 17, 21, 0.34) 100%),
        url("../../background.png");
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed;
    color: #f9f4ed;
}

.page-home .site-shell {
    width: min(1320px, calc(100% - 28px));
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding: 12px 0 4px;
}

.page-home .site-header {
    padding: 10px 16px;
    margin-bottom: 10px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 247, 238, 0.92) 0%, rgba(247, 237, 225, 0.86) 100%);
    border: 1px solid rgba(255, 188, 119, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.page-home .logo-mark {
    gap: 16px;
}

.page-home .logo-visual {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    padding: 6px;
    background: linear-gradient(145deg, rgba(255, 168, 71, 0.18), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 180, 92, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    overflow: hidden;
}

.page-home .logo-mascot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 18px;
    display: block;
}

.page-home .logo-mark strong {
    color: #2a2521;
    font-size: 1.18rem;
    letter-spacing: 0.01em;
}

.page-home .logo-mark small {
    color: rgba(42, 37, 33, 0.68);
    font-size: 0.86rem;
}

.page-home .site-nav a {
    color: #2f2a25;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(42, 37, 33, 0.08);
}

.page-home .site-nav a:hover {
    color: #1d1916;
    background: rgba(255, 157, 67, 0.18);
    border-color: rgba(255, 157, 67, 0.22);
}

.page-home .site-nav .header-language-switcher {
    min-width: 200px;
    gap: 0;
}

.page-home .site-nav .account-chip {
    backdrop-filter: blur(12px);
}

.page-home .site-nav .header-language-switcher .language-switcher-button {
    min-height: 44px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.page-home .home-main {
    flex: 0 0 auto;
    display: block;
    min-height: auto;
}

.page-home .transfer-stage {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 173, 92, 0.14);
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.58) 0%, rgba(22, 24, 28, 0.58) 40%, rgba(16, 19, 23, 0.62) 100%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.page-home .transfer-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 18%, rgba(255, 141, 32, 0.24), transparent 24%),
        radial-gradient(circle at 34% 72%, rgba(255, 200, 120, 0.1), transparent 18%),
        radial-gradient(circle at 82% 18%, rgba(18, 138, 128, 0.1), transparent 18%);
    pointer-events: none;
}

.page-home .stage-intro,
.page-home .stage-form-wrap {
    position: relative;
    z-index: 1;
}

.page-home .stage-intro {
    display: grid;
    grid-template-rows: auto auto auto auto;
    align-content: center;
    justify-items: center;
    gap: 14px;
    padding: 28px 28px 24px;
    background: linear-gradient(180deg, rgba(250, 245, 237, 0.67) 0%, rgba(243, 235, 224, 0.68) 100%);
    border-bottom: 1px solid rgba(210, 178, 142, 0.24);
    text-align: center;
}

.page-home .stage-topline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1120px;
}

.page-home .language-switcher {
    position: relative;
    display: grid;
    gap: 4px;
    min-width: 210px;
    z-index: 5;
}

.page-home .language-switcher span {
    margin: 0;
    color: rgba(43, 37, 32, 0.78);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-home .language-switcher-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 38px 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 190, 120, 0.28);
    background-color: rgba(255, 247, 239, 0.96);
    color: #2b2520;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.page-home .language-switcher-button:focus {
    border-color: rgba(255, 173, 92, 0.42);
    box-shadow: 0 0 0 4px rgba(255, 173, 92, 0.14);
}

.page-home .language-switcher-value {
    color: #2b2520;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.page-home .language-switcher-caret {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-right: 2px solid #8f5319;
    border-bottom: 2px solid #8f5319;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.18s ease;
}

.page-home .language-switcher.is-open .language-switcher-caret {
    transform: rotate(-135deg) translate(-2px, -1px);
}

.page-home .language-switcher-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    gap: 2px;
    max-height: 300px;
    padding: 8px;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid rgba(143, 83, 25, 0.16);
    background: #fff8f1;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

.page-home .language-switcher.is-open .language-switcher-menu {
    display: grid;
}

.page-home .language-option {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #2b2520;
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
}

.page-home .language-option:hover,
.page-home .language-option:focus {
    background: rgba(255, 164, 73, 0.14);
    color: #1f1b17;
}

.page-home .language-option.is-selected {
    background: linear-gradient(135deg, rgba(255, 153, 59, 0.16) 0%, rgba(255, 210, 159, 0.4) 100%);
    color: #7a4313;
    font-weight: 700;
}

.page-home .eyebrow {
    margin: 0;
    color: #9d6125;
}

.page-home .badge {
    background: rgba(255, 149, 54, 0.12);
    color: #9d6125;
    border: 1px solid rgba(255, 149, 54, 0.18);
}

.page-home .badge-membership {
    background: rgba(255, 166, 88, 0.14);
    color: #9d6125;
}

.page-home h1 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(2rem, 2.8vw, 3.45rem);
    color: #2d2621;
}

.page-home .lead {
    margin: 0;
    max-width: none;
    white-space: nowrap;
    color: rgba(58, 50, 44, 0.82);
    font-size: 0.96rem;
    line-height: 1.48;
}

.page-home .trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 1120px;
}

.page-home .trust-strip article {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(120, 101, 83, 0.12);
}

.page-home .trust-strip article strong {
    color: #2f2923;
    font-size: 0.92rem;
}

.page-home .trust-strip article span {
    color: rgba(58, 50, 44, 0.78);
    font-size: 0.84rem;
    line-height: 1.42;
}

.page-home .membership-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 1120px;
}

.page-home .membership-pill {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(120, 101, 83, 0.12);
    background: rgba(255, 255, 255, 0.24);
}

.page-home .membership-pill.can-upload {
    background: linear-gradient(180deg, rgba(255, 149, 52, 0.14) 0%, rgba(255, 255, 255, 0.22) 100%);
}

.page-home .membership-pill.no-upload {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.14) 100%);
}

.page-home .membership-pill-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.page-home .membership-pill-limit {
    color: #2f2923;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.page-home .membership-pill small {
    margin: 0;
    color: rgba(58, 50, 44, 0.72);
    font-size: 0.74rem;
    line-height: 1.24;
}

.page-home .stage-footer-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 4px;
    color: rgba(58, 50, 44, 0.68);
    font-size: 0.82rem;
}

.page-home .stage-form-wrap {
    display: grid;
    align-items: center;
    justify-items: center;
    background: linear-gradient(180deg, rgba(250, 245, 237, 0.67) 0%, rgba(243, 235, 224, 0.68) 100%);
    border-top: 1px solid rgba(255, 180, 92, 0.1);
    padding: 18px 20px 16px;
}

.page-home .stage-upload-card {
    height: 100%;
    margin: 0;
    width: min(1120px, 100%);
    padding: 10px 12px 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.page-home .card-topline {
    margin-bottom: 10px;
}

.page-home .compact-transfer-form {
    display: grid;
    gap: 12px;
}

.page-home .wizard-progress {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.page-home .wizard-step {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(41, 65, 69, 0.12);
    background: rgba(255, 255, 255, 0.5);
    color: #2a3538;
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.page-home .wizard-step[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.6;
}

.page-home .wizard-step.is-available:not(.is-active):hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.64);
    border-color: rgba(255, 171, 88, 0.28);
}

.page-home .wizard-step.is-active {
    background: linear-gradient(135deg, rgba(255, 168, 71, 0.18) 0%, rgba(255, 255, 255, 0.74) 100%);
    border-color: rgba(255, 168, 71, 0.32);
    box-shadow: 0 14px 32px rgba(189, 126, 59, 0.12);
}

.page-home .wizard-step-number {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(20, 109, 103, 0.1);
    color: #155651;
    font-size: 0.94rem;
    font-weight: 800;
}

.page-home .wizard-step.is-active .wizard-step-number {
    background: linear-gradient(135deg, rgba(255, 158, 64, 0.22) 0%, rgba(20, 109, 103, 0.14) 100%);
    color: #8d561d;
}

.page-home .wizard-step-copy {
    display: grid;
    gap: 3px;
}

.page-home .wizard-step-copy strong {
    color: #23383c;
    font-size: 0.95rem;
}

.page-home .wizard-step-copy small {
    color: rgba(35, 56, 60, 0.68);
    font-size: 0.8rem;
    line-height: 1.35;
}

.page-home .wizard-panel {
    display: grid;
    gap: 10px;
}

.page-home .wizard-panel[hidden] {
    display: none;
}

.page-home .wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.page-home .wizard-note {
    margin: 0;
    color: rgba(35, 56, 60, 0.78);
    font-size: 0.86rem;
    line-height: 1.5;
}

.page-home .compact-transfer-form label {
    display: grid;
    gap: 5px;
}

.page-home .compact-transfer-form label > span {
    color: #294145;
    font-size: 0.86rem;
    font-weight: 700;
}

.page-home .membership-select-row {
    max-width: 260px;
}

.page-home input,
.page-home select,
.page-home textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(41, 65, 69, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: #23383c;
    font-size: 0.95rem;
}

.page-home textarea {
    min-height: 74px;
}

.page-home .dense-grid {
    gap: 8px;
}

.page-home .form-section-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9f6122;
}

.page-home .compact-dropzone {
    min-height: 118px;
    padding: 12px;
    border-radius: 20px;
}

.page-home .compact-dropzone .dropzone-inner {
    gap: 6px;
}

.page-home .dropzone-actions {
    gap: 8px;
}

.page-home .compact-dropzone .dropzone-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.55rem;
}

.page-home .selected-files {
    padding: 10px 12px;
    border-radius: 16px;
    color: #1f1b17;
}

.page-home .selected-files ul {
    margin-top: 8px;
    gap: 6px;
}

.page-home .selected-summary,
.page-home .selected-files li {
    padding-top: 6px;
    font-size: 0.84rem;
    color: #1f1b17;
}

.page-home .selected-summary strong,
.page-home .selected-file-copy strong {
    color: #1f1b17;
}

.page-home .selected-file-path {
    color: rgba(35, 56, 60, 0.66);
    font-size: 0.76rem;
}

.page-home .turnstile-card {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(41, 65, 69, 0.1);
}

.page-home .turnstile-copy {
    display: grid;
    gap: 4px;
}

.page-home .turnstile-copy strong {
    color: #23383c;
    font-size: 0.95rem;
}

.page-home .turnstile-copy span {
    color: rgba(35, 56, 60, 0.74);
    font-size: 0.84rem;
    line-height: 1.5;
}

.page-home .turnstile-widget {
    min-height: 70px;
}

.page-home .turnstile-message {
    margin: 0;
}

.page-home .turnstile-message.is-success {
    color: #115f3d;
}

.page-home .turnstile-message.is-warning {
    color: #8a5b12;
}

.page-home .turnstile-message.is-error {
    color: #8d2d1d;
}

.page-home .membership-meta-card,
.page-home .inline-note,
.page-home .alert {
    padding: 10px 12px;
    border-radius: 12px;
}

.page-home .alert-warning {
    background: rgba(255, 190, 106, 0.18);
    color: #7a5110;
    border-color: rgba(255, 190, 106, 0.26);
}

.page-home .submit-row {
    display: grid;
    gap: 6px;
    align-content: start;
}

.page-home .submit-row .button-primary {
    min-height: 46px;
}

.page-home .form-footnote,
.page-home .field-help,
.page-home .muted {
    color: rgba(35, 56, 60, 0.72);
    font-size: 0.84rem;
}

.page-home .field-help {
    color: #1f1b17;
    font-weight: 600;
}

.page-home .home-site-footer {
    margin-top: 8px;
    padding-top: 8px;
    font-size: 0.83rem;
    color: rgba(255, 239, 226, 0.6);
    border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
    .page-home .site-shell {
        min-height: auto;
        padding: 16px 0 18px;
    }

    .page-home .home-main {
        display: block;
    }

    .page-home .wizard-progress,
    .page-home .membership-band,
    .page-home .trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .page-home .site-header,
    .page-home .site-nav,
    .page-home .stage-topline,
    .page-home .stage-footer-note,
    .page-home .home-site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-home .transfer-stage,
    .page-home .wizard-progress,
    .page-home .membership-band,
    .page-home .trust-strip,
    .page-home .two-columns {
        grid-template-columns: 1fr;
    }

    .page-home .language-switcher {
        min-width: 100%;
    }

    .page-home .site-nav .header-language-switcher {
        min-width: 100%;
    }

    .account-chip {
        width: 100%;
        min-width: 0;
    }

    .page-home .stage-intro,
    .page-home .stage-upload-card {
        padding: 22px 20px;
    }

    .page-home .membership-select-row {
        max-width: none;
    }

    .page-home h1 {
        max-width: none;
        white-space: normal;
        font-size: clamp(2.15rem, 8vw, 3rem);
    }

    .page-home .lead {
        white-space: normal;
    }

    .page-home .logo-visual {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .page-home .wizard-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.page-home .receiver-branding-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.92) 0%, rgba(248, 239, 227, 0.92) 100%);
    border: 1px solid rgba(255, 176, 92, 0.18);
}

.page-home .receiver-branding-card.is-locked {
    background: linear-gradient(180deg, rgba(246, 239, 231, 0.88) 0%, rgba(240, 230, 217, 0.92) 100%);
}

.page-home .receiver-branding-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.page-home .receiver-branding-head strong {
    display: block;
    color: #23383c;
    font-size: 0.96rem;
}

.page-home .receiver-branding-head p,
.page-home .receiver-branding-locked p {
    margin: 6px 0 0;
    color: rgba(35, 56, 60, 0.72);
    font-size: 0.86rem;
    line-height: 1.5;
}

.page-home .receiver-branding-unlocked,
.page-home .receiver-branding-locked {
    display: grid;
    gap: 10px;
}

.page-home .receiver-branding-grid {
    align-items: stretch;
}

.page-home .branding-preview {
    min-height: 112px;
    padding: 14px;
    border-radius: 16px;
    display: grid;
    align-content: end;
    gap: 6px;
    background:
        linear-gradient(180deg, rgba(27, 21, 16, 0.04), rgba(27, 21, 16, 0.08)),
        linear-gradient(135deg, rgba(255, 168, 71, 0.16), rgba(15, 111, 105, 0.12));
    border: 1px solid rgba(41, 65, 69, 0.08);
    background-size: cover;
    background-position: center;
}

.page-home .branding-preview.has-image {
    color: #fff8f0;
    border-color: rgba(18, 28, 31, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.page-home .branding-preview.has-image .muted,
.page-home .branding-preview.has-image strong {
    color: inherit;
}

.page-home .branding-files {
    padding: 10px 12px;
}

.page-home .branding-files ul {
    margin-top: 8px;
    gap: 6px;
}

.page-home .branding-files li {
    padding-top: 6px;
}

.download-page-shell {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(12, 16, 21, 0.58), rgba(10, 12, 16, 0.68)),
        var(--receiver-background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.download-page-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 156, 58, 0.22), transparent 22%),
        linear-gradient(180deg, rgba(13, 16, 21, 0.24) 0%, rgba(13, 16, 21, 0.56) 100%);
    pointer-events: none;
}

.page-download .site-shell {
    position: relative;
    z-index: 1;
    padding-top: 26px;
    padding-bottom: 26px;
}

.page-download .site-header,
.page-download .panel,
.page-download .site-footer {
    backdrop-filter: blur(18px);
}

.page-download .site-header {
    padding: 12px 18px;
    border-radius: 24px;
    background: rgba(255, 248, 238, 0.77);
    border: 1px solid rgba(255, 255, 255, 0.58);
}

.page-download .panel {
    background: rgba(255, 250, 243, 0.77);
}

.page-download .guest-download-banner {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 248, 238, 0.78);
    border: 1px solid rgba(241, 143, 66, 0.2);
}

.page-download .guest-download-copy {
    display: grid;
    gap: 8px;
}

.page-download .guest-download-copy strong {
    color: #1e2f33;
    font-size: 1.05rem;
}

.page-download .guest-download-copy p {
    margin: 0;
    color: rgba(30, 47, 51, 0.78);
    line-height: 1.6;
}

.page-download .guest-download-cta {
    white-space: nowrap;
}

.button-primary.is-disabled,
.button-inline.is-disabled {
    opacity: 0.6;
    pointer-events: auto;
    cursor: not-allowed;
    box-shadow: none;
}

.sender-backoffice-panel {
    margin-top: 22px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 250, 243, 0.72);
}

.sender-backoffice-panel .panel-heading {
    margin-bottom: 0;
}

.sender-backoffice-preview {
    min-width: 250px;
    max-width: 320px;
    min-height: 160px;
    padding: 18px;
    border-radius: 22px;
    display: grid;
    align-content: end;
    gap: 8px;
    color: #fff8f0;
    background:
        linear-gradient(180deg, rgba(8, 11, 15, 0.14), rgba(8, 11, 15, 0.6)),
        var(--sender-preview-image);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sender-backoffice-preview .muted,
.sender-backoffice-preview strong {
    color: inherit;
}

.sender-backoffice-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

@media (max-width: 860px) {
    .page-home .receiver-branding-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .sender-backoffice-preview {
        min-width: 100%;
        max-width: none;
    }

    .page-download .guest-download-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-download .guest-download-cta {
        width: 100%;
    }
}
