﻿:root {
    --black: #050505;
    --black-soft: #111111;
    --ink: #151515;
    --muted: #6f737a;
    --paper: #ffffff;
    --stone: #f4f4f1;
    --stone-strong: #e8e8e2;
    --line: #d9d9d2;
    --silver: #bfc3c8;
    --accent: #b7ff5a;
    --danger: #b3261e;
    --success: #167a4a;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
    --radius: 8px;
    --display: Georgia, "Times New Roman", serif;
    --body: Arial, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--stone);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.65;
    letter-spacing: 0;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 5, 5, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.nav,
.hero-shell,
.section,
.proof-band,
.footer-inner,
.auth-header-inner,
.auth-main,
.admin-shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand,
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-family: var(--display);
    font-size: 1.08rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.brand-logo,
.footer-logo,
.auth-brand img {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    object-fit: cover;
    background: #000000;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    outline: none;
}

.nav-list .nav-pill {
    margin-left: 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #ffffff;
    border-radius: 2px;
}

.hero {
    position: relative;
    overflow: hidden;
    background: #030303;
    color: #ffffff;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.18;
}

.hero-shell {
    min-height: calc(100svh - 128px);
    max-height: 840px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.82fr);
    align-items: center;
    gap: 58px;
    padding: 72px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.auth-copy h1,
.dashboard-title h1 {
    margin: 0;
    font-family: var(--display);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 720px;
    font-size: 5.7rem;
}

.hero-lede {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.22rem;
}

.hero-actions,
.inline-actions,
.form-actions,
.table-actions,
.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions,
.inline-actions {
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.button-light {
    background: #ffffff;
    color: #050505;
    box-shadow: 0 18px 38px rgba(255, 255, 255, 0.16);
}

.button-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.button-dark {
    background: var(--black);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.button-outline,
.button-muted {
    background: #ffffff;
    border-color: var(--line);
    color: var(--ink);
}

.button-danger {
    background: #fff6f5;
    border-color: #f0b9b4;
    color: var(--danger);
}

.button:disabled {
    background: #d7d7d0;
    color: #777a7e;
    box-shadow: none;
    cursor: not-allowed;
}

.button:disabled:hover {
    transform: none;
}

.hero-visual {
    justify-self: end;
    width: min(470px, 100%);
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 90px rgba(255, 255, 255, 0.08);
}

.proof-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    transform: translateY(-1px);
    border-inline: 1px solid var(--line);
    background: #ffffff;
}

.proof-band div {
    min-height: 132px;
    padding: 26px;
    border-right: 1px solid var(--line);
}

.proof-band div:last-child {
    border-right: 0;
}

.proof-band strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.2;
}

.proof-band span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.section {
    padding: 84px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-heading.align-start {
    margin-left: 0;
    text-align: left;
}

.section-heading h2 {
    color: var(--ink);
    font-size: 3.1rem;
}

.section-heading p:not(.eyebrow) {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

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

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

.feature-card,
.process-panel,
.contact-form,
.auth-card,
.admin-card,
.table-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
}

.feature-card {
    min-height: 260px;
    padding: 24px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    border-radius: var(--radius);
    background: var(--black);
    color: #ffffff;
    font-weight: 900;
    line-height: 1;
}

.feature-card:nth-child(2) .feature-icon {
    background: #263238;
}

.feature-card:nth-child(3) .feature-icon {
    background: #214d34;
}

.feature-card:nth-child(4) .feature-icon {
    background: #4b3a64;
}

.feature-card h3,
.timeline h3,
.process-panel h3,
.admin-card h2,
.table-panel h2,
.auth-card h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 1.18rem;
    line-height: 1.25;
}

.feature-card p,
.timeline p,
.process-panel p {
    margin: 0;
    color: var(--muted);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.08fr);
    gap: 70px;
    align-items: start;
}

.process-section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 96px max(16px, calc((100% - 1180px) / 2)) 104px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, var(--black) 0 46%, var(--stone) 46% 100%);
    background-repeat: repeat, repeat, no-repeat;
    background-size: 68px 68px, 68px 68px, 100% 100%;
}

.process-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
    gap: 54px;
    align-items: end;
    margin-bottom: 32px;
}

.process-section .section-heading h2 {
    color: #ffffff;
}

.process-section .section-heading p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.7);
}

.process-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.process-metrics div {
    min-height: 116px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.process-metrics strong {
    display: block;
    color: var(--accent);
    font-family: var(--display);
    font-size: 2.15rem;
    line-height: 1;
}

.process-metrics span {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 900;
}

.process-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.38fr);
    gap: 18px;
    align-items: start;
    padding: 18px;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.timeline {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 22px;
    min-height: 296px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.timeline li::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: var(--black);
}

.timeline-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: var(--radius);
    background: var(--black);
    color: #ffffff;
    font-family: var(--display);
    font-size: 1.16rem;
    font-weight: 900;
    line-height: 1;
}

.step-label {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.step-output {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--stone);
}

.step-output span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.step-output strong {
    color: var(--ink);
    font-size: 0.94rem;
    text-align: right;
}

.process-panel {
    position: sticky;
    top: 94px;
    min-height: 100%;
    padding: 28px;
    background: var(--black);
    color: #ffffff;
    box-shadow: none;
}

.process-panel-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-family: var(--display);
    font-weight: 900;
}

.process-panel h3 {
    color: #ffffff;
    font-family: var(--display);
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.06;
}

.process-panel p:not(.eyebrow) {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.66);
}

.process-panel ul {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.process-panel li {
    display: grid;
    gap: 5px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.process-panel span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.process-panel strong {
    color: #ffffff;
    font-size: 1rem;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
    gap: 70px;
    align-items: start;
}

.contact-form,
.auth-form,
.customer-form {
    display: grid;
    gap: 16px;
}

.contact-form {
    padding: 26px;
}

.contact-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field-group {
    display: grid;
    gap: 7px;
}

label {
    color: #242424;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #cfcfca;
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    padding: 12px 14px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

.password-field {
    position: relative;
}

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

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 160ms ease, color 160ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: var(--stone);
    color: var(--ink);
    outline: none;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle.is-visible::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(-38deg);
}

.contact-form textarea {
    min-height: 116px;
}

.field-hint {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.field-hint.is-error {
    color: var(--danger);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.09);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #343434;
    font-weight: 700;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 5px;
    accent-color: var(--black);
}

.submit-button {
    width: 100%;
}

.form-status,
.auth-status,
.admin-status {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.form-status.is-error,
.auth-status.is-error,
.admin-status.is-error {
    color: var(--danger);
}

.form-status.is-success,
.auth-status.is-success,
.admin-status.is-success {
    color: var(--success);
}

.form-status.is-success {
    display: grid;
    gap: 4px;
}

.form-status.is-success strong {
    color: var(--ink);
    font-size: 1.08rem;
}

.form-status.is-success span {
    color: var(--success);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.modal.is-open {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(460px, 100%);
    padding: 32px;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    text-align: center;
}

.modal-content h2 {
    margin: 0 0 10px;
    font-family: var(--display);
    font-size: 2rem;
    line-height: 1.05;
}

.modal-content p {
    margin: 0 0 22px;
    color: var(--muted);
}

.modal-content [data-close-modal][lang="he"] {
    font-weight: 900;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: var(--radius);
    background: #eeeeea;
    color: var(--ink);
    font-size: 1.15rem;
    cursor: pointer;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--black);
}

.footer-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: rgba(255, 255, 255, 0.68);
}

.discord-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.discord-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Auth and admin pages */
.auth-page {
    background: var(--black);
    color: #ffffff;
}

.auth-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: #050505;
}

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

.auth-home-link {
    color: rgba(255, 255, 255, 0.74);
    font-weight: 800;
    text-decoration: none;
}

.auth-home-link:hover,
.auth-home-link:focus-visible {
    color: #ffffff;
    outline: none;
}

.auth-main {
    min-height: calc(100svh - 76px);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
    align-items: center;
    gap: 70px;
    padding: 62px 0;
}

.auth-copy h1 {
    max-width: 680px;
    color: #ffffff;
    font-size: 4.4rem;
}

.auth-copy p {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.14rem;
}

.auth-mini-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 680px;
    padding: 0;
    margin: 34px 0 0;
    list-style: none;
}

.auth-mini-list li {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.auth-card {
    padding: 28px;
    color: var(--ink);
}

.admin-page.auth-page #admin-login-view,
.customer-signin-page.auth-page .customer-auth-main {
    position: relative;
    width: min(100% - 32px, 520px);
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
    min-height: calc(100svh - 76px);
    padding: 58px 0;
}

.admin-page.auth-page,
.customer-signin-page.auth-page {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0, rgba(255, 255, 255, 0.055) 1px, transparent 1px, transparent 100%),
        linear-gradient(160deg, #050505 0%, #111111 48%, #050505 100%);
    background-size: 44px 44px, auto;
}

.admin-page.auth-page .auth-card,
.customer-signin-page.auth-page .auth-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 244, 241, 0.98));
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
}

.admin-page.auth-page .auth-card::before,
.customer-signin-page.auth-page .auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #ffffff, var(--accent), #ffffff);
}

.admin-page.auth-page .auth-card h2,
.customer-signin-page.auth-page .auth-card h2 {
    margin: 0 0 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: clamp(2.2rem, 8vw, 3.25rem);
    line-height: 1;
    text-align: center;
}

.customer-signin-page.auth-page .auth-card h2 {
    font-size: clamp(1.8rem, 6vw, 2.65rem);
    text-wrap: balance;
}

.customer-signin-page.auth-page .auth-card h2.customer-auth-title {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 24px;
}

.customer-auth-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--muted);
    font-family: var(--body);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-auth-title strong {
    display: block;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    line-height: 0.96;
    white-space: nowrap;
}

.admin-page.auth-page .auth-form,
.customer-signin-page.auth-page .auth-form {
    gap: 18px;
}

.admin-page.auth-page .field-group,
.customer-signin-page.auth-page .field-group {
    gap: 9px;
}

.admin-page.auth-page label,
.customer-signin-page.auth-page label {
    color: #242424;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-page.auth-page input,
.customer-signin-page.auth-page input {
    min-height: 54px;
    border-color: #c9c9c2;
    background: #ffffff;
    font-weight: 700;
}

.admin-page.auth-page input:focus,
.customer-signin-page.auth-page input:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.admin-page.auth-page .button-dark,
.customer-signin-page.auth-page .button-dark {
    min-height: 54px;
    margin-top: 6px;
    font-size: 1rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.admin-page.auth-page .auth-status,
.customer-signin-page.auth-page .auth-status {
    text-align: center;
}

.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;
}

.admin-page.auth-page,
.customer-signin-page.auth-page {
    background:
        radial-gradient(circle at 16% 14%, rgba(35, 89, 219, 0.1), transparent 30%),
        linear-gradient(180deg, #eef3fb 0%, #f7f9fe 100%);
    color: var(--ink);
}

.admin-page.auth-page #admin-login-view.split-auth-main,
.customer-signin-page.auth-page .customer-auth-main.split-auth-main {
    width: min(100% - 32px, 1144px);
    min-height: calc(100svh - 76px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 44px 0;
}

.admin-page.auth-page .split-auth-card,
.customer-signin-page.auth-page .split-auth-card {
    width: 100%;
    min-height: 500px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid #d5dceb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 26px 72px rgba(29, 44, 74, 0.18);
}

.admin-page.auth-page .split-auth-card::before,
.customer-signin-page.auth-page .split-auth-card::before {
    display: none;
}

.split-auth-form-panel {
    display: grid;
    align-content: center;
    padding: clamp(34px, 5vw, 48px);
    background: #ffffff;
}

.split-auth-heading h1 {
    margin: 0 0 24px;
    color: #060606;
    font-family: var(--body);
    font-size: clamp(1.65rem, 2.6vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    letter-spacing: 0.02em;
}

.admin-page.auth-page .split-auth-form,
.customer-signin-page.auth-page .split-auth-form {
    gap: 20px;
}

.admin-page.auth-page .split-field-group,
.customer-signin-page.auth-page .split-field-group {
    gap: 0;
}

.split-input-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 52px;
    overflow: hidden;
    border: 1px solid #e2e7f2;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(18, 31, 55, 0.08);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.split-password-row {
    grid-template-columns: 48px minmax(0, 1fr) 38px;
}

.split-input-row:focus-within {
    border-color: #2e54ff;
    box-shadow: 0 0 0 4px rgba(46, 84, 255, 0.12), 0 12px 24px rgba(18, 31, 55, 0.12);
    transform: translateY(-1px);
}

.split-input-icon {
    display: grid;
    place-items: center;
    border-right: 1px solid #e8ecf5;
    color: #2e54ff;
}

.split-input-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-page.auth-page .split-input-row input,
.customer-signin-page.auth-page .split-input-row input {
    min-height: 52px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: #22283a;
    font-weight: 700;
    box-shadow: none;
}

.admin-page.auth-page .split-input-row input:focus,
.customer-signin-page.auth-page .split-input-row input:focus {
    box-shadow: none;
}

.admin-page.auth-page .split-input-row input::placeholder,
.customer-signin-page.auth-page .split-input-row input::placeholder {
    color: #6f7688;
    opacity: 1;
}

.split-password-row input {
    padding-right: 12px;
}

.split-password-toggle {
    position: static;
    width: 38px;
    height: auto;
    min-height: 52px;
    border-left: 1px solid #e8ecf5;
    border-radius: 0;
    color: #2e54ff;
    transform: none;
}

.split-password-toggle:hover,
.split-password-toggle:focus-visible {
    background: #f3f6ff;
    color: #1d35bd;
}

.split-password-toggle.is-visible::after {
    width: 22px;
    height: 2px;
}

.admin-page.auth-page .split-login-button,
.customer-signin-page.auth-page .split-login-button {
    min-height: 52px;
    margin-top: 12px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(90deg, #2416a8 0%, #1f78ef 100%);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(31, 120, 239, 0.28);
}

.admin-page.auth-page .split-login-button:hover,
.admin-page.auth-page .split-login-button:focus-visible,
.customer-signin-page.auth-page .split-login-button:hover,
.customer-signin-page.auth-page .split-login-button:focus-visible {
    background: linear-gradient(90deg, #1f1398 0%, #186be1 100%);
    color: #ffffff;
    transform: translateY(-1px);
}

.split-auth-brand-panel {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 44px;
    background:
        radial-gradient(circle at 62% 48%, rgba(0, 238, 255, 0.4), transparent 20%),
        linear-gradient(135deg, #2530bf 0%, #207df0 100%);
    color: #ffffff;
}

.split-auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: 42px auto 42px 24%;
    width: 180px;
    border: 4px solid rgba(29, 245, 255, 0.78);
    border-right: 0;
    border-radius: 100% 0 0 100% / 50% 0 0 50%;
    transform: skewX(-10deg);
}

.split-auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 132px;
    border-radius: 70px 90px 90px 70px;
    background: rgba(19, 210, 230, 0.86);
    transform: translate(54px, -8px);
}

.split-brand-content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
}

.split-brand-content img {
    width: 136px;
    height: 136px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 18px 45px rgba(4, 13, 63, 0.34);
}

.admin-page.auth-page .split-brand-content h2,
.customer-signin-page.auth-page .split-brand-content h2 {
    margin: 0;
    padding: 0;
    border: 0;
    color: #ffffff;
    font-family: var(--body);
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.split-auth-brand-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.admin-page.auth-page .split-auth-card .auth-status,
.customer-signin-page.auth-page .split-auth-card .auth-status {
    min-height: 24px;
    margin: 0;
    color: #4e5668;
    font-weight: 800;
    text-align: center;
}

.twofa-creation-main {
    align-items: start;
}

.twofa-setup-card {
    align-self: start;
}

.twofa-qr-panel {
    display: grid;
    gap: 16px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.twofa-qr-box {
    display: grid;
    place-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.twofa-qr-box svg {
    display: block;
    width: min(260px, 100%);
    height: auto;
}

.twofa-secret-panel {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--stone);
}

.twofa-secret-panel span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.twofa-secret-panel code {
    color: var(--ink);
    font-family: "Courier New", monospace;
    font-size: 0.95rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.auth-card h2 {
    font-family: var(--display);
    font-size: 2.1rem;
    font-weight: 500;
}

.auth-card > p {
    margin: 0 0 22px;
    color: var(--muted);
}

.customer-summary {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 18px 0 24px;
    list-style: none;
}

.customer-summary li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.customer-summary span {
    color: var(--muted);
}

.is-hidden {
    display: none !important;
}

.dashboard-page {
    min-height: 100vh;
    background: var(--stone);
}

.admin-shell {
    padding: 44px 0 78px;
}

.dashboard-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px;
}

.dashboard-title h1 {
    color: var(--ink);
    font-size: 3.2rem;
}

.dashboard-title p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--muted);
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.metric-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.metric-card span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.metric-card strong {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
    line-height: 1;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
    align-items: start;
}

.admin-card,
.table-panel {
    padding: 24px;
}

.customer-form textarea {
    min-height: 96px;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.table-toolbar h2 {
    margin-bottom: 0;
}

.table-toolbar input {
    max-width: 280px;
}

.table-wrap {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: #333333;
    font-size: 0.82rem;
    text-transform: uppercase;
}

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

.data-table strong {
    color: var(--ink);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef8f2;
    color: var(--success);
    font-size: 0.82rem;
    font-weight: 900;
}

.status-badge.suspended,
.status-badge.paused {
    background: #fff8d8;
    color: #8a6500;
}

.empty-state {
    margin: 18px 0 0;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1020px) {
    .hero-shell,
    .auth-main,
    .split-section,
    .process-intro,
    .process-board,
    .contact-section,
    .admin-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-shell {
        max-height: none;
    }

    .hero-visual {
        justify-self: start;
        width: min(380px, 100%);
    }

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

    .process-panel {
        position: static;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .section-heading.align-start {
        max-width: 760px;
    }
}

@media (max-width: 760px) {
    .nav,
    .auth-header-inner {
        min-height: 66px;
    }

    .brand span,
    .auth-brand span,
    .footer-brand span {
        white-space: normal;
    }

    .nav-toggle {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 66px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: var(--radius);
        background: #090909;
        box-shadow: var(--shadow);
    }

    .nav-list.is-open {
        display: flex;
    }

    .nav-list .nav-pill {
        margin-left: 0;
    }

    .hero-shell {
        min-height: auto;
        padding: 54px 0 44px;
    }

    .hero h1 {
        font-size: 3.35rem;
    }

    .hero-lede {
        font-size: 1.04rem;
    }

    .section {
        padding: 62px 0;
    }

    .process-section {
        padding: 62px 16px;
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
            linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
            linear-gradient(180deg, var(--black) 0 38%, var(--stone) 38% 100%);
        background-repeat: repeat, repeat, no-repeat;
        background-size: 68px 68px, 68px 68px, 100% 100%;
    }

    .section-heading h2,
    .dashboard-title h1 {
        font-size: 2.35rem;
    }

    .auth-copy h1 {
        font-size: 3rem;
    }

    .proof-band,
    .feature-grid,
    .process-metrics,
    .admin-metrics,
    .auth-mini-list {
        grid-template-columns: 1fr;
    }

    .proof-band div {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .proof-band div:last-child {
        border-bottom: 0;
    }

    .dashboard-title,
    .table-toolbar,
    .footer-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-inner {
        padding: 24px 0;
        text-align: center;
    }

    .footer-brand,
    .discord-link {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .brand,
    .auth-brand {
        font-size: 0.98rem;
    }

    .brand-logo,
    .auth-brand img {
        width: 38px;
        height: 38px;
    }

    .hero h1 {
        font-size: 2.85rem;
    }

    .hero-actions,
    .inline-actions,
    .form-actions,
    .dashboard-actions,
    .table-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .timeline li {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .process-board {
        padding: 12px;
    }

    .step-output {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .step-output strong {
        text-align: left;
    }

    .customer-summary li {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .auth-card,
    .admin-card,
    .table-panel,
    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 900px) {
    .admin-page.auth-page .split-auth-card,
    .customer-signin-page.auth-page .split-auth-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .split-auth-brand-panel {
        order: -1;
        min-height: 244px;
        padding: 34px 22px;
    }

    .split-auth-brand-panel::before {
        inset: 26px auto 26px 19%;
        width: 150px;
    }

    .split-auth-brand-panel::after {
        width: 164px;
        height: 108px;
        transform: translate(44px, -4px);
    }

    .split-brand-content img {
        width: 104px;
        height: 104px;
    }
}

@media (max-width: 560px) {
    .admin-page.auth-page #admin-login-view.split-auth-main,
    .customer-signin-page.auth-page .customer-auth-main.split-auth-main {
        width: calc(100% - 20px);
        padding: 24px 0;
    }

    .split-auth-form-panel {
        padding: 28px 20px;
    }

    .split-auth-heading h1 {
        margin-bottom: 20px;
        font-size: 1.55rem;
    }

    .split-input-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .split-password-row {
        grid-template-columns: 44px minmax(0, 1fr) 38px;
    }

    .split-auth-brand-panel {
        min-height: 210px;
    }
}

/* Dashboard upgrades */
.static-nav-list {
    display: flex;
}

.compact-heading {
    margin-bottom: 22px;
}

.compact-heading h2 {
    font-size: 2.25rem;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.admin-tab {
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.admin-tab:hover,
.admin-tab:focus-visible,
.admin-tab.is-active {
    background: var(--black);
    color: #ffffff;
    outline: none;
}

.admin-tab-panel {
    display: none;
}

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

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

.wide-form {
    padding: 26px;
}

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

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

.full-span {
    grid-column: 1 / -1;
}

.form-section-header {
    margin-bottom: 16px;
}

.form-section-header.separated {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.form-section-header h3,
.tos-editor-toolbar h3,
.customer-hosting-panel h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.18rem;
    line-height: 1.25;
}

.form-section-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.compact-section-header {
    margin-bottom: 14px;
}

.admin-modal .modal-content {
    width: min(760px, 100%);
    max-height: min(86vh, 820px);
    overflow: auto;
    text-align: left;
}

.admin-modal .large-modal-content {
    width: min(920px, 100%);
}

.admin-modal .modal-content h2 {
    margin-bottom: 18px;
}

.hosting-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 24px;
}

.hosting-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.hosting-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.hosting-card h4 {
    margin: 0;
    color: var(--ink);
    font-size: 1.02rem;
}

.hosting-card-header span {
    display: inline-flex;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.hosting-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.hosting-details div {
    padding: 10px;
    border-radius: var(--radius);
    background: var(--stone);
}

.hosting-details dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hosting-details dd {
    margin: 4px 0 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.compact-hosting-list {
    margin-top: 12px;
}

.compact-empty {
    margin: 0;
}

.tos-editor-toolbar,
.tos-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tos-editor-toolbar {
    margin: 22px 0 14px;
}

.tos-sections-editor {
    display: grid;
    gap: 14px;
}

.tos-section-editor {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--stone);
}

.tos-section-header h4 {
    margin: 0;
    color: var(--ink);
}

.tos-manager-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
    gap: 18px;
    align-items: start;
}

.tos-preview-panel {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.tos-legal-preview {
    max-height: 720px;
    overflow: auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(5, 5, 5, 0.02);
}

.tos-preview-document-header {
    padding-bottom: 22px;
    border-bottom: 2px solid var(--black);
}

.tos-preview-kicker,
.tos-preview-updated {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tos-preview-title {
    margin: 6px 0 0;
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.tos-preview-updated,
.tos-preview-intro,
.tos-preview-empty {
    margin: 10px 0 0;
}

.tos-preview-intro,
.tos-preview-empty,
.tos-preview-section-body {
    color: var(--muted);
}

.tos-preview-section {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.tos-preview-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.tos-preview-section-number,
.tos-preview-clause-number {
    color: var(--black);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.tos-preview-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--stone);
}

.tos-preview-section-heading {
    display: block;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--black);
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.08;
    text-align: start;
}

.tos-preview-section-body {
    margin: 12px 0 0;
    text-align: start;
}

.tos-preview-clause-list {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 14px 0 0;
    list-style: none;
}

.tos-preview-clause {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(217, 217, 210, 0.72);
    color: var(--ink);
}

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

.gmail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.gmail-card {
    display: grid;
    gap: 16px;
    align-content: start;
}

.gmail-card textarea {
    min-height: 180px;
}

.generated-code-card {
    display: grid;
    gap: 4px;
    margin-top: 2px;
    padding: 18px;
    border: 1px solid rgba(183, 255, 90, 0.28);
    border-left: 5px solid var(--accent);
    border-radius: var(--radius);
    background: var(--black);
    color: #ffffff;
}

.generated-code-card span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.generated-code-card strong {
    font-family: "Courier New", monospace;
    font-size: 2.1rem;
    line-height: 1.05;
}

.email-history-panel {
    margin-top: 18px;
}

.email-history-table {
    min-width: 1020px;
}

.contact-requests-table {
    min-width: 1180px;
}

.contact-request-message {
    max-width: 420px;
    margin: 0;
    color: var(--ink);
    line-height: 1.5;
    white-space: pre-wrap;
}

.email-code-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--stone);
    color: var(--ink);
    font-family: "Courier New", monospace;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
}

.email-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
}

.email-status-badge.sent {
    background: #eef8f2;
    color: var(--success);
}

.email-status-badge.failed {
    background: #fff4ef;
    color: var(--danger);
}

.email-status-badge.pending {
    background: #fff8d8;
    color: #8a6500;
}

.email-status-wrap {
    display: grid;
    gap: 6px;
}

.email-status-wrap small {
    display: block;
    max-width: 260px;
    color: var(--danger);
    line-height: 1.35;
}

.receipt-builder-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    gap: 16px;
    align-items: start;
}

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

.receipt-items-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.receipt-add-item-button {
    flex: 0 0 auto;
    align-self: flex-start;
    width: fit-content;
    min-height: 40px;
    padding: 8px 13px 8px 10px;
    border-color: var(--black);
    background: #ffffff;
    color: var(--ink);
    box-shadow: none;
    white-space: nowrap;
}

.receipt-add-item-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--black);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.receipt-add-item-button:hover,
.receipt-add-item-button:focus-visible {
    background: var(--black);
    color: #ffffff;
}

.receipt-add-item-button:hover span,
.receipt-add-item-button:focus-visible span {
    background: var(--accent);
    color: var(--black);
}

.receipt-items-list {
    display: grid;
    gap: 12px;
}

.receipt-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.36fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--stone);
}

.receipt-remove-item {
    min-height: 48px;
}

.receipt-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--black);
    color: #ffffff;
}

.receipt-total-bar span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.receipt-total-bar strong {
    font-size: 1.7rem;
    line-height: 1;
}

.receipt-preview-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
}

.receipt-document {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

.receipt-document-header {
    padding: 24px;
    background: var(--black);
    color: #ffffff;
}

.receipt-document-header h3 {
    margin: 0 0 6px;
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.receipt-document-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    overflow-wrap: anywhere;
}

.receipt-preview-items {
    display: grid;
    padding: 0 24px;
}

.receipt-preview-items > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.receipt-preview-items span {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.receipt-preview-items strong {
    color: var(--ink);
    white-space: nowrap;
}

.receipt-preview-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 24px 24px;
    padding-top: 18px;
    border-top: 2px solid var(--black);
}

.receipt-preview-total span {
    color: var(--ink);
    font-weight: 900;
}

.receipt-preview-total strong {
    color: var(--ink);
    font-size: 1.45rem;
}

.receipt-meta {
    margin: 0;
    padding: 14px 24px;
    border-top: 1px solid var(--line);
    background: var(--stone);
    color: var(--muted);
    font-size: 0.9rem;
}

.receipts-table {
    min-width: 980px;
}

/* Public ToS page */
.tos-page {
    background: var(--stone);
}

.tos-hero {
    background: var(--black);
    color: #ffffff;
}

.tos-hero-inner,
.tos-content-section {
    width: min(1040px, calc(100% - 32px));
    margin-inline: auto;
}

.tos-hero-inner {
    padding: 76px 0 66px;
}

.tos-hero h1 {
    margin: 0;
    max-width: 760px;
    font-family: var(--display);
    font-size: clamp(3.2rem, 8vw, 5.6rem);
    font-weight: 500;
    line-height: 0.98;
    text-wrap: balance;
}

.tos-hero p {
    max-width: 720px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.14rem;
}

.tos-updated {
    display: inline-flex;
    margin-top: 22px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 900;
}

.tos-content-section {
    padding: 54px 0 84px;
}

.tos-document {
    display: grid;
    gap: 0;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.08);
}

.tos-section-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 22px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.tos-section-card:first-child {
    padding-top: 0;
}

.tos-section-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.tos-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--black);
    color: #ffffff;
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.tos-section-content {
    min-width: 0;
}

.tos-section-card h2 {
    display: block;
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--black);
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 900;
    line-height: 1.08;
    text-align: start;
    text-wrap: balance;
}

.tos-section-card p {
    margin: 16px 0 0;
    color: var(--muted);
    text-align: start;
}

.tos-clause-list {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.tos-clause {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid rgba(217, 217, 210, 0.72);
    color: var(--ink);
}

.tos-clause-number {
    color: var(--black);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.tos-clause-text {
    min-width: 0;
    text-align: start;
}

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

    .gmail-grid,
    .tos-manager-grid,
    .receipt-builder-grid {
        grid-template-columns: 1fr;
    }

    .receipt-preview-panel {
        position: static;
    }

    .tos-preview-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .static-nav-list {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .form-grid.two-columns,
    .contact-fields-grid,
    .hosting-details,
    .admin-metrics,
    .gmail-grid,
    .receipt-builder-grid,
    .receipt-item-row {
        grid-template-columns: 1fr;
    }

    .tos-hero h1 {
        font-size: 3rem;
    }

    .tos-section-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px 0;
    }

    .tos-section-number {
        width: 48px;
        height: 48px;
    }

    .tos-clause,
    .tos-preview-clause {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .tos-preview-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-tabs,
    .tos-editor-toolbar,
    .tos-section-header,
    .hosting-card-header,
    .receipt-items-header {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .static-nav-list {
        gap: 4px;
    }

    .static-nav-list a {
        padding-inline: 8px;
        font-size: 0.82rem;
    }
}

/* Customer area */
.customer-dashboard-page {
    min-height: 100vh;
    background: var(--stone);
    color: var(--ink);
}

.portal-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.portal-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px;
    background: var(--black);
    color: #ffffff;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

.portal-brand img {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    object-fit: cover;
}

.portal-nav {
    display: grid;
    gap: 8px;
}

.portal-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.72);
    font-weight: 900;
    text-decoration: none;
}

.portal-nav a:hover,
.portal-nav a:focus-visible,
.portal-nav a.is-active {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    outline: none;
}

.portal-sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.portal-sidebar-footer span,
.portal-sidebar-footer small {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    font-weight: 800;
}

.portal-sidebar-footer strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.portal-main {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
    padding: 42px 0 70px;
}

.portal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.portal-header h1 {
    margin: 0;
    max-width: 760px;
    font-family: var(--display);
    font-size: 3.7rem;
    font-weight: 500;
    line-height: 0.98;
}

.portal-header p:not(.eyebrow) {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.portal-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.portal-metric-card,
.portal-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
}

.portal-metric-card {
    padding: 20px;
}

.portal-metric-card span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portal-metric-card strong {
    display: block;
    margin-top: 10px;
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1.1;
}

.portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.portal-card {
    padding: 24px;
}

.portal-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.portal-card h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 500;
    line-height: 1.08;
}

.portal-detail-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.portal-detail-list div {
    padding: 14px;
    border-radius: var(--radius);
    background: var(--stone);
}

.portal-detail-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portal-detail-list dd {
    margin: 5px 0 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.notes-card p,
.support-panel-modern p {
    margin: 0;
    color: var(--muted);
}

.hosting-panel,
.support-panel-modern {
    margin-top: 16px;
}

.portal-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--black);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
}

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

.portal-hosting-grid .hosting-card {
    background: var(--stone);
}

.customer-signin-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 100%),
        linear-gradient(90deg, #050505 0%, #0d0f0c 48%, #050505 100%);
    background-size: 42px 42px, auto;
}

.customer-signin-shell {
    width: min(1120px, calc(100% - 32px));
    min-height: calc(100svh - 76px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    align-items: center;
    gap: 46px;
    margin-inline: auto;
    padding: 56px 0 70px;
}

.customer-signin-visual {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(183, 255, 90, 0.12), transparent 34%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0.07)),
        #080808;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
    animation: signin-panel-in 560ms ease both;
}

.customer-signin-visual::before,
.customer-signin-visual::after {
    content: "";
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    pointer-events: none;
}

.customer-signin-visual::after {
    inset: auto 28px 28px;
    height: 2px;
    border: 0;
    background: linear-gradient(90deg, transparent, rgba(183, 255, 90, 0.75), transparent);
}

.customer-signin-orbit {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 54px;
}

.customer-signin-orbit img {
    width: min(340px, 70%);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
    animation: signin-logo-drift 6s ease-in-out infinite;
}

.customer-signin-lines {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 52px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    color: #ffffff;
}

.customer-signin-lines span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7));
}

.customer-signin-lines span:last-child {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), transparent);
}

.customer-signin-lines strong {
    font-size: 1.05rem;
    letter-spacing: 0;
}

.customer-signin-panel {
    padding: 34px;
    border: 1px solid rgba(217, 217, 210, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    animation: signin-card-in 620ms ease 80ms both;
}

.customer-signin-card-header {
    display: grid;
    gap: 6px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.customer-signin-card-header img {
    width: 58px;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 50%;
    object-fit: cover;
}

.customer-signin-title-row {
    display: grid;
    gap: 6px;
}

.customer-signin-title-row span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-signin-title-row h1 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(2.15rem, 5vw, 3rem);
    line-height: 1.02;
}

.customer-signin-card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.customer-signin-panel .auth-form {
    gap: 18px;
}

.customer-signin-panel .field-group {
    gap: 9px;
}

.customer-signin-panel label {
    font-size: 0.92rem;
}

.customer-signin-panel input {
    min-height: 52px;
    background: #fbfbf8;
}

.customer-signin-panel .button {
    min-height: 54px;
    margin-top: 4px;
    font-size: 1rem;
}

@keyframes signin-panel-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes signin-card-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes signin-logo-drift {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-signin-visual,
    .customer-signin-panel,
    .customer-signin-orbit img {
        animation: none;
    }
}

@media (max-width: 980px) {
    .customer-signin-shell {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 0 52px;
    }

    .customer-signin-visual {
        min-height: 250px;
    }

    .customer-signin-orbit {
        padding: 30px;
    }

    .customer-signin-orbit img {
        width: min(210px, 54%);
    }

    .customer-signin-lines {
        left: 28px;
        right: 28px;
        bottom: 28px;
    }

    .customer-signin-panel {
        width: min(520px, 100%);
        justify-self: center;
    }
}

@media (max-width: 600px) {
    .customer-signin-shell {
        width: min(100% - 24px, 520px);
        padding-top: 24px;
    }

    .customer-signin-visual {
        min-height: 178px;
    }

    .customer-signin-visual::before {
        inset: 16px;
    }

    .customer-signin-visual::after {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .customer-signin-orbit img {
        width: 132px;
    }

    .customer-signin-lines {
        display: none;
    }

    .customer-signin-panel {
        padding: 24px;
    }

    .customer-signin-card-header {
        margin-bottom: 22px;
        padding-bottom: 20px;
    }

    .customer-signin-title-row h1 {
        font-size: clamp(2rem, 12vw, 2.55rem);
    }

    .customer-signin-card-header img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 980px) {
    .portal-layout {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        position: static;
        height: auto;
    }

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

    .portal-sidebar-footer {
        margin-top: 0;
    }

    .portal-grid,
    .portal-hosting-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .portal-main {
        padding-top: 30px;
    }

    .portal-header,
    .portal-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-header h1 {
        font-size: 2.65rem;
    }

    .portal-metrics,
    .portal-nav {
        grid-template-columns: 1fr;
    }
}
