:root {
    --bg: #f3efe8;
    --card: rgba(255, 255, 255, 0.82);
    --panel: rgba(255, 255, 255, 0.96);
    --text: #171515;
    --muted: #6f6761;
    --line: rgba(23, 21, 21, 0.09);
    --accent: #6e4f3a;
    --shadow: 0 20px 60px rgba(60, 45, 30, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(110, 79, 58, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.9), transparent 32%),
        linear-gradient(135deg, #f7f2ea 0%, #efe6db 100%);
    color: var(--text);
    animation: pageFade 700ms ease both;
}

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

.taplink-body {
    overflow: hidden;
}

.notify-intro {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    justify-items: center;
    align-items: center;
    padding: 18px;
    pointer-events: none;
}

.notify-card {
    width: 390px;
    min-height: 74px;
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 22px 56px rgba(60, 45, 30, 0.2);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(14px) scale(0.9);
    animation: notifySequence 2.15s cubic-bezier(.2,.8,.2,1) forwards;
}

.notify-card img {
    width: 46px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 18%;
}

.notify-card div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.notify-card strong {
    font-size: 14px;
    line-height: 1;
}

.notify-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
}

.notify-card time {
    align-self: start;
    color: rgba(111, 103, 97, 0.7);
    font-size: 12px;
}

.page {
    min-height: 100svh;
    padding: 18px;
    display: grid;
    place-items: center;
    transition: filter 220ms ease, transform 220ms ease;
}

.modal-toggle:checked ~ .page,
.modal-toggle:checked ~ .write-fab {
    filter: blur(10px);
    transform: scale(0.985);
}

.card {
    width: 760px;
    padding: 26px 28px 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.70);
    box-shadow: 0 22px 56px rgba(60, 45, 30, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(20px);
    display: grid;
    justify-items: center;
    gap: 18px;
    opacity: 0;
    transform: translateY(18px) scale(0.9);
    animation: taplinkSequence 900ms cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: 1.9s;
}

.hero {
    display: grid;
    justify-items: center;
    gap: 16px;
}

.avatar-ring {
    width: 118px;
    aspect-ratio: 1;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f4c88e, rgba(255, 255, 255, 0.18));
    box-shadow: 0 0 28px rgba(231, 173, 109, 0.28);
}

.portrait {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 18%;
    border-radius: 50%;
}

.hero-copy {
    display: grid;
    justify-items: center;
    gap: 7px;
    text-align: center;
}

.badge {
    padding: 0;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.8px;
}

.hero-copy h1 {
    margin: 0;
    font-size: 42px;
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-copy p {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

.content {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 16px;
}

.divider {
    width: 430px;
    display: grid;
    place-items: center;
    position: relative;
    margin-top: 2px;
}

.divider::before {
    content: "";
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.divider span {
    position: absolute;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background: var(--accent);
    box-shadow: 0 0 16px rgba(231, 173, 109, 0.55);
}

.social-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 14px;
}

.social-orb {
    position: relative;
    width: 58px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(110, 79, 58, 0.18);
    box-shadow:
        0 12px 26px rgba(60, 45, 30, 0.08),
        inset 0 0 0 7px rgba(255, 255, 255, 0.34);
    transition: transform 180ms ease, opacity 180ms ease;
    opacity: 1;
}

.social-orb:hover {
    transform: translateY(-3px) scale(1.04);
    border-color: rgba(110, 79, 58, 0.34);
    box-shadow:
        0 16px 32px rgba(60, 45, 30, 0.12),
        inset 0 0 0 7px rgba(255, 255, 255, 0.42);
}

.social-orb i {
    font-size: 27px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.vk i {
    color: #4f8bff;
}

.telegram i {
    color: #33a6f3;
}

.tiktok i {
    color: #2f2925;
    font-size: 24px;
    text-shadow: none;
}

.youtube i {
    color: #ff2d2d;
}

.instagram i {
    color: #c66638;
}

.vpn-hint {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    width: max-content;
    max-width: 120px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #171515;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(60, 45, 30, 0.18);
    opacity: 0;
    transform: translateX(-50%) translateY(4px) scale(0.96);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.social-orb.instagram:hover .vpn-hint,
.social-orb.instagram:focus-visible .vpn-hint,
.social-orb.instagram:active .vpn-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.write-fab {
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 8;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(23, 21, 21, 0.94);
    color: #fff;
    box-shadow: 0 16px 34px rgba(60, 45, 30, 0.2);
    cursor: pointer;
    opacity: 0;
    animation: taplinkSequence 900ms cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: 1.9s;
    transition: transform 180ms ease, box-shadow 180ms ease;
    will-change: filter, transform;
}

.write-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(60, 45, 30, 0.24);
}

.write-fab i {
    font-size: 17px;
}

.write-fab span {
    font-weight: 800;
    font-size: 14px;
}

.sent-note {
    margin: -4px 0 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.success-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(23, 21, 21, 0.22);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.success-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.success-card {
    width: 360px;
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 22px 20px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 70px rgba(60, 45, 30, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.56);
    transform: translateY(12px) scale(0.98);
    animation: successIn 260ms ease forwards;
}

.success-icon {
    width: 56px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(110, 79, 58, 0.1);
    color: var(--accent);
    font-size: 20px;
}

.success-card strong {
    font-size: 18px;
}

.success-card p {
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.success-card button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.modal-toggle {
    position: fixed;
    opacity: 0;
    pointer-events: none;
}

.message-modal {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.modal-toggle:checked ~ .message-modal {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 21, 21, 0.34);
    backdrop-filter: blur(10px);
}

.message-form {
    position: relative;
    width: 430px;
    display: grid;
    gap: 12px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(60, 45, 30, 0.18);
    transform: translateY(12px) scale(0.98);
    transition: transform 220ms ease;
}

.modal-toggle:checked ~ .message-modal .message-form {
    transform: translateY(0) scale(1);
}

.message-form h2 {
    margin: 0;
    font-size: 28px;
}

.message-form p {
    margin: -4px 0 4px;
    color: var(--muted);
    line-height: 1.45;
}

.message-form input,
.message-form textarea,
.login-panel input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
}

.message-form input,
.login-panel input {
    min-height: 48px;
    padding: 0 14px;
}

.message-form textarea {
    min-height: 116px;
    padding: 13px 14px;
    resize: vertical;
}

.message-form input:focus,
.message-form textarea:focus,
.login-panel input:focus {
    border-color: rgba(110, 79, 58, 0.34);
    box-shadow: 0 0 0 4px rgba(110, 79, 58, 0.08);
}

.message-form input:-webkit-autofill,
.message-form input:-webkit-autofill:hover,
.message-form input:-webkit-autofill:focus,
.message-form textarea:-webkit-autofill,
.login-panel input:-webkit-autofill,
.login-panel input:-webkit-autofill:hover,
.login-panel input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    caret-color: var(--text);
    transition: background-color 9999s ease-out 0s;
}

.message-form button,
.login-panel button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: var(--text);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.message-form button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.message-form-error {
    min-height: 20px;
    margin: -2px 0 0;
    color: #c7352d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--muted);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.admin-body {
    --admin-ink: #171615;
    --admin-coffee: #38251d;
    --admin-cocoa: #8a603c;
    --admin-gold: #c99355;
    --admin-gold-soft: #f5e7d6;
    --admin-taupe: #936d50;
    --admin-paper: #f7f1ea;
    --admin-cream: #fffaf5;
    --admin-muted: #706861;
    --admin-line: rgba(94, 65, 43, 0.14);
    --admin-shadow: 0 34px 100px rgba(69, 48, 31, 0.14);
    --text: var(--admin-ink);
    --muted: var(--admin-muted);
    --accent: var(--admin-cocoa);
    --line: var(--admin-line);
    --card: rgba(255, 250, 243, 0.98);
    --shadow: var(--admin-shadow);
    overflow: auto;
    min-width: 0;
    background:
        radial-gradient(circle at 8% 96%, rgba(181, 124, 62, 0.22), transparent 23%),
        radial-gradient(circle at 87% 8%, rgba(229, 204, 181, 0.54), transparent 32%),
        linear-gradient(135deg, #fffaf4 0%, #f5eee7 48%, #eee1d5 100%);
}

.admin-page {
    min-height: 100svh;
    padding: 30px 18px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: visible;
}

.admin-page:not(.admin-login-page) {
    place-items: start center;
}

.admin-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0 75%, rgba(255, 255, 255, 0.34) 75.1% 75.55%, transparent 75.65%),
        linear-gradient(120deg, transparent 0 79%, rgba(255, 255, 255, 0.24) 79.1% 79.45%, transparent 79.55%),
        radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.62), transparent 36%);
}

.login-panel,
.admin-shell {
    position: relative;
    width: min(1048px, calc(100vw - 36px));
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 244, 0.72)),
        rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(22px);
}

.admin-shell {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 244, 0.74)),
        rgba(255, 255, 255, 0.74);
    isolation: isolate;
    min-height: min(720px, calc(100svh - 60px));
    height: auto;
    overflow: visible;
}

.admin-shell::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1px;
    border-radius: 29px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 34%),
        radial-gradient(circle at 97% 2%, rgba(201, 147, 85, 0.16), transparent 28%);
    pointer-events: none;
}

.admin-page.is-switching-tab .admin-content {
    opacity: 0.56;
    pointer-events: none;
}

.login-panel {
    width: 390px;
    display: grid;
    gap: 16px;
    padding: 30px;
}

.admin-body .login-panel input {
    background: var(--admin-cream);
    border-color: var(--admin-line);
    color: var(--admin-ink);
}

.admin-body .login-panel input:focus {
    border-color: rgba(91, 63, 49, 0.38);
    box-shadow: 0 0 0 4px rgba(91, 63, 49, 0.1);
}

.admin-body .login-panel button {
    background: var(--admin-ink);
    color: var(--admin-cream);
    box-shadow: 0 14px 28px rgba(34, 22, 17, 0.16);
}

.admin-kicker {
    margin: 0;
    color: var(--admin-taupe);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2.8px;
    text-transform: uppercase;
}

.login-panel h1,
.admin-header h1 {
    margin: 0;
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    color: var(--admin-ink);
}

.admin-login-body {
    background: #fff;
}

.admin-login-body .admin-page::before {
    display: none;
}

.admin-login-page {
    display: block;
    padding: 0;
    overflow: auto;
    place-items: initial;
}

.login-stage {
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(520px, 49vw) minmax(0, 1fr);
    background: #fff;
}

.login-side {
    min-width: 0;
}

.login-side-form {
    position: relative;
    display: grid;
    place-items: center;
    padding: 46px min(7vw, 92px) 42px;
}

.login-close {
    position: absolute;
    top: 48px;
    right: 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #8d9097;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
}

.admin-login-body .login-panel {
    align-self: center;
    justify-self: center;
    width: min(480px, 100%);
    display: grid;
    gap: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.admin-login-body .login-panel h1 {
    margin-bottom: 10px;
    color: #050505;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 0;
}

.login-field {
    display: grid;
    gap: 10px;
}

.login-field span {
    color: #050505;
    font-size: 14px;
    font-weight: 800;
}

.admin-login-body .login-panel input {
    min-height: 46px;
    padding: 0 16px;
    border-color: #dfe1e5;
    border-radius: 5px;
    background: #fff;
    color: #050505;
}

.admin-login-body .login-panel input::placeholder {
    color: #868686;
}

.admin-login-body .login-panel input:focus {
    border-color: #050505;
    box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.08);
}

.admin-login-body .login-panel button {
    min-height: 56px;
    margin-top: 8px;
    border-radius: 5px;
    background: #050505;
    color: #fff;
    box-shadow: none;
}

.login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin: 6px 0 2px;
    color: #050505;
}

.login-divider span {
    height: 1px;
    background: #d7d7d7;
}

.login-divider b {
    font-size: 16px;
}

.login-secondary {
    min-height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid #050505;
    border-radius: 5px;
    color: #050505;
    font-weight: 800;
}

.login-side-preview {
    display: grid;
    place-items: center;
    padding: 48px 56px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(160deg, #101010 0%, #191512 52%, #251912 100%);
    color: #fff;
    overflow: hidden;
}

.login-aesthetic-note {
    position: relative;
    width: min(460px, 100%);
    min-height: 420px;
    display: grid;
    align-content: center;
    justify-items: start;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.04);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.login-aesthetic-note::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
}

.login-aesthetic-note::after {
    content: "";
    position: absolute;
    right: -68px;
    bottom: -92px;
    width: 240px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 166, 132, 0.24), transparent 66%);
}

.login-aesthetic-note span {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 2px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
}

.login-aesthetic-note blockquote {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 330px;
    padding: 42px 48px;
    border-radius: 24px;
    background: rgba(255, 250, 243, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-aesthetic-note p {
    position: relative;
    z-index: 1;
    max-width: 13.5ch;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.12;
}

.login-aesthetic-note blockquote::before,
.login-aesthetic-note blockquote::after {
    position: absolute;
    color: rgba(244, 208, 180, 0.58);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1;
    pointer-events: none;
}

.login-aesthetic-note blockquote::before {
    content: "\00AB";
    top: 38px;
    left: 22px;
}

.login-aesthetic-note blockquote::after {
    content: none;
}

.login-aesthetic-note p::after {
    content: "\00BB";
    color: rgba(244, 208, 180, 0.58);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1;
    pointer-events: none;
}

.admin-period {
    display: inline-flex;
    margin-top: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 250, 245, 0.7);
    border: 1px solid rgba(94, 65, 43, 0.1);
    color: var(--admin-cocoa);
    font-size: 12px;
    font-weight: 800;
}

.admin-period.is-placeholder {
    visibility: hidden;
    pointer-events: none;
}

.login-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(143, 45, 31, 0.1);
    color: #8f2d1f;
    font-size: 13px;
    font-weight: 700;
}

.admin-shell {
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    gap: 22px;
    padding: 34px;
    transition: filter 220ms ease, transform 220ms ease, opacity 220ms ease;
}

.admin-content {
    display: grid;
    align-content: start;
    gap: 22px;
    min-height: 0;
    overflow: visible;
    padding: 0 4px 4px;
    transition: opacity 140ms ease;
}

.admin-body.delete-open .admin-shell {
    filter: blur(14px);
    transform: scale(0.985);
    opacity: 0.72;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 4px 8px;
}

.admin-header .admin-logout {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 999px;
    background: rgba(255, 250, 245, 0.7);
    color: var(--admin-cocoa);
    font-size: 14px;
    font-weight: 850;
    border: 1px solid rgba(94, 65, 43, 0.1);
    box-shadow: 0 16px 38px rgba(69, 48, 31, 0.08);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-header .admin-logout span {
    color: var(--admin-gold);
}

.admin-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 245, 0.42)),
        rgba(255, 250, 245, 0.44);
    border: 1px solid rgba(94, 65, 43, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 14px 32px rgba(69, 48, 31, 0.045);
}

.admin-tabs a {
    position: relative;
    height: 48px;
    min-height: 48px;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 128px;
    padding: 0 20px;
    border-radius: 16px;
    color: var(--admin-muted);
    font-size: 14px;
    font-weight: 850;
    border: 1px solid transparent;
    transition: transform 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.admin-tab-icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(246, 229, 210, 0.34)),
        rgba(255, 250, 245, 0.56);
    border: 1px solid rgba(147, 109, 80, 0.14);
    color: rgba(138, 96, 60, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-tab-icon svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-tab-label {
    min-width: 0;
}

.admin-tabs a::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 5px;
    height: 2px;
    border-radius: 999px;
    background: transparent;
    transform: scaleX(0.62);
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.admin-tabs a.is-active {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 245, 0.72)),
        rgba(255, 250, 245, 0.76);
    color: var(--admin-coffee);
    border-color: rgba(156, 106, 56, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 10px 24px rgba(69, 48, 31, 0.07);
}

.admin-tabs a.is-active .admin-tab-icon {
    color: var(--admin-cocoa);
    border-color: rgba(201, 147, 85, 0.3);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(246, 229, 210, 0.7)),
        rgba(255, 250, 245, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 8px 18px rgba(201, 147, 85, 0.12);
}

.admin-tabs a.is-active::after {
    background: linear-gradient(90deg, rgba(201, 147, 85, 0.16), var(--admin-gold), rgba(201, 147, 85, 0.16));
    opacity: 1;
    transform: scaleX(1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.stats-grid article,
.admin-card {
    position: relative;
    border: 1px solid rgba(94, 65, 43, 0.11);
    border-radius: 24px;
    background: rgba(255, 250, 245, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
    overflow: hidden;
}

.stats-grid article {
    display: grid;
    gap: 8px;
    padding: 20px;
    box-shadow: 0 16px 34px rgba(69, 48, 31, 0.06);
}

.stats-grid article::before,
.admin-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, rgba(201, 147, 85, 0.88), rgba(88, 109, 98, 0.42), transparent);
    opacity: 0.78;
}

.stats-grid article:nth-child(2)::before {
    background: linear-gradient(90deg, rgba(88, 109, 98, 0.72), rgba(201, 147, 85, 0.42), transparent);
}

.stats-grid article:nth-child(3)::before {
    background: linear-gradient(90deg, rgba(181, 107, 91, 0.72), rgba(201, 147, 85, 0.42), transparent);
}

.stats-grid span {
    color: var(--admin-muted);
    font-size: 14px;
}

.stats-grid strong {
    color: var(--admin-coffee);
    font-size: 36px;
    letter-spacing: 0;
    line-height: 1;
}

.admin-card {
    padding: 22px;
    box-shadow: 0 18px 44px rgba(69, 48, 31, 0.07);
}

.admin-card h2 {
    margin: 0 0 12px;
    color: var(--admin-ink);
    font-size: 21px;
}

.admin-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.admin-card-heading-compact {
    margin-bottom: 14px;
}

.admin-card-heading h2 {
    margin-bottom: 6px;
    font-size: 24px;
}

.admin-card-heading p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.45;
}

.admin-card-heading > span {
    min-width: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(244, 234, 224, 0.84);
    color: var(--admin-cocoa);
    font-weight: 800;
}

.click-list {
    display: grid;
    gap: 10px;
}

.click-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 15px 16px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 250, 245, 0.58)),
        rgba(255, 250, 245, 0.74);
    border: 1px solid rgba(94, 65, 43, 0.08);
    box-shadow: 0 10px 26px rgba(69, 48, 31, 0.04);
}

.click-list strong {
    flex: 0 0 auto;
    color: var(--admin-coffee);
    font-size: 20px;
    line-height: 1;
}

.click-list span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.click-item-main {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: var(--admin-ink);
    font-weight: 850;
}

.click-item-main small {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 700;
}

.message-list {
    display: grid;
    gap: 10px;
}

.message-source-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.message-admin-card {
    display: grid;
    gap: 14px;
}

.message-groups {
    display: grid;
    gap: 14px;
}

.message-group {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 250, 245, 0.38)),
        rgba(255, 250, 245, 0.58);
    border: 1px solid rgba(94, 65, 43, 0.1);
    box-shadow: 0 16px 34px rgba(69, 48, 31, 0.05);
}

.message-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.message-group-head h3 {
    margin: 0;
    color: var(--admin-cocoa);
    font-size: 16px;
}

.message-group-head span {
    min-width: 32px;
    min-height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(91, 63, 49, 0.1);
    color: var(--admin-cocoa);
    font-size: 13px;
    font-weight: 800;
}

.message-list article {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 250, 245, 0.76);
    border: 1px solid rgba(94, 65, 43, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.message-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-actions form {
    margin: 0;
}

.message-actions button {
    min-height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(143, 45, 31, 0.1);
    color: #8f2d1f;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.message-actions button:hover {
    background: rgba(143, 45, 31, 0.16);
}

.message-list time,
.message-list span,
.empty {
    color: var(--muted);
    font-size: 13px;
}

.message-list p {
    margin: 0;
    line-height: 1.45;
    white-space: pre-line;
}

.client-admin-card {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.client-subtabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(94, 65, 43, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 245, 0.44)),
        rgba(255, 250, 245, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 12px 28px rgba(69, 48, 31, 0.045);
}

.client-subtabs button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: var(--admin-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.client-subtabs button:hover {
    transform: translateY(-1px);
}

.client-subtabs button.is-active {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 250, 245, 0.7)),
        rgba(255, 250, 245, 0.78);
    border-color: rgba(156, 106, 56, 0.14);
    color: var(--admin-coffee);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 10px 24px rgba(69, 48, 31, 0.07);
}

.client-subtabs span {
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(246, 229, 210, 0.72);
    color: var(--admin-cocoa);
    font-size: 11px;
    font-weight: 900;
}

.client-panel {
    display: grid;
    align-content: start;
    gap: 0;
}

.client-panel[hidden] {
    display: none;
}

.client-section-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 0;
    min-height: 560px;
    border: 1px solid rgba(94, 65, 43, 0.1);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 250, 245, 0.46)),
        rgba(255, 250, 245, 0.58);
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(69, 48, 31, 0.07);
}

.client-create-panel,
.client-list,
.client-archive {
    min-height: 560px;
}

.client-create-panel {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 0;
}

.client-create-intro {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 9px;
    min-height: 0;
    padding: 28px;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.72), transparent 36%),
        linear-gradient(150deg, rgba(201, 147, 85, 0.1), rgba(255, 255, 255, 0.1)),
        rgba(255, 250, 245, 0.62);
    border-right: 1px solid rgba(94, 65, 43, 0.09);
    overflow: hidden;
    text-align: center;
}

.client-section-intro {
    min-height: 100%;
    align-content: center;
}

.client-create-intro span {
    color: var(--admin-taupe);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3.5px;
    text-transform: uppercase;
}

.client-create-intro-compact .client-create-label {
    display: grid;
    justify-items: center;
    gap: 5px;
    font-size: 14px;
    line-height: 1.1;
}

.client-create-label b {
    font: inherit;
}

.client-create-intro strong {
    color: var(--admin-ink);
    font-size: 24px;
    line-height: 1.22;
}

.client-create-intro p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.55;
}

.client-section-content {
    display: grid;
    align-content: start;
    gap: 0;
    min-width: 0;
    min-height: 0;
    padding: 22px 20px 20px;
    background: rgba(255, 250, 245, 0.34);
}

.client-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    padding: 24px 20px 18px;
    border: 1px solid rgba(94, 65, 43, 0.08);
    border-radius: 22px;
    background: rgba(255, 250, 245, 0.36);
}

.client-create-form {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.client-form label {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.client-form label > span,
.client-switch span {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 850;
}

.client-form input,
.client-form textarea {
    width: 100%;
    border: 1px solid rgba(94, 65, 43, 0.14);
    border-radius: 14px;
    background: rgba(255, 250, 245, 0.68);
    color: var(--admin-ink);
    font: inherit;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.client-form input {
    min-height: 46px;
    padding: 0 16px;
}

.client-form textarea {
    min-height: 96px;
    padding: 13px 16px;
    resize: vertical;
}

.client-form input:focus,
.client-form textarea:focus {
    border-color: rgba(201, 147, 85, 0.52);
    box-shadow: 0 0 0 4px rgba(201, 147, 85, 0.12);
}

.client-discount-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.client-discount-toggle {
    align-self: stretch;
    white-space: nowrap;
}

.client-form-wide,
.client-form > button,
.client-create-actions {
    grid-column: 1 / -1;
}

.client-create-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: end;
}

.client-switch {
    align-self: end;
    min-height: 54px;
    display: flex !important;
    align-items: center;
    gap: 14px !important;
    padding: 0 16px;
    border: 1px solid rgba(94, 65, 43, 0.12);
    border-radius: 14px;
    background: rgba(255, 250, 245, 0.62);
}

.client-switch input {
    width: 20px;
    min-height: 20px;
    accent-color: var(--admin-cocoa);
}

.client-link-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "title"
        "url";
    align-content: center;
    gap: 8px;
    min-height: 86px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(246, 229, 210, 0.74), rgba(255, 250, 245, 0.52));
}

.client-create-form .client-link-note {
    justify-items: center;
    text-align: center;
}

.client-link-note-actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title actions"
        "url actions";
    align-items: center;
    column-gap: 14px;
}

.client-link-note span {
    grid-area: title;
    color: var(--admin-cocoa);
    font-size: 12px;
    font-weight: 900;
}

.client-link-note p {
    grid-area: url;
    margin: 0;
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.client-link-actions {
    grid-area: actions;
    display: flex;
    gap: 8px;
    align-items: center;
}

.client-link-action {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(94, 65, 43, 0.12);
    border-radius: 12px;
    background: rgba(255, 250, 245, 0.76);
    color: var(--admin-cocoa);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.68),
        0 8px 18px rgba(69, 48, 31, 0.06);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.client-link-action:hover {
    transform: translateY(-1px);
    border-color: rgba(201, 147, 85, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 12px 22px rgba(69, 48, 31, 0.09);
}

.client-link-action:disabled {
    cursor: default;
    opacity: 0.68;
    transform: none;
}

.client-link-action.is-rotate {
    color: var(--admin-muted);
}

.client-url-field {
    display: block;
}

.client-url-field input {
    border-radius: 14px;
}

.client-form button:not(.client-link-action),
.client-delete-form button {
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.client-form button:not(.client-link-action):hover,
.client-delete-form button:hover,
.admin-header .admin-logout:hover,
.admin-tabs a:hover {
    transform: translateY(-1px);
}

.client-form button:not(.client-link-action) {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #191511, #2c231b);
    color: var(--admin-cream);
    border-color: rgba(36, 27, 20, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 24px rgba(69, 48, 31, 0.16);
}

.client-form button:not(.client-link-action)::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 13px;
    background:
        linear-gradient(90deg, transparent, rgba(201, 147, 85, 0.2), transparent);
    opacity: 0.78;
    pointer-events: none;
}

.client-form button:not(.client-link-action):hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 16px 30px rgba(69, 48, 31, 0.2);
}

.client-create-actions button {
    min-width: 218px;
}

.client-create-actions button::after {
    content: none;
}

.client-create-actions button {
    min-height: 54px;
    letter-spacing: 0;
}

.client-list {
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.client-item {
    align-self: start;
    border-radius: 20px;
    background: rgba(255, 250, 245, 0.76);
    border: 1px solid rgba(94, 65, 43, 0.1);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(69, 48, 31, 0.05);
}

.client-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.client-item summary::-webkit-details-marker {
    display: none;
}

.client-item summary span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.client-item summary strong,
.client-item summary small {
    overflow-wrap: anywhere;
}

.client-item summary strong {
    font-size: 16px;
}

.client-item summary small {
    color: var(--admin-muted);
    font-size: 12px;
}

.client-item summary b {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.client-item summary b::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.client-item summary b.is-on {
    background: rgba(246, 229, 210, 0.72);
    color: var(--admin-cocoa);
}

.client-item summary b.is-on::before {
    background: var(--admin-gold);
}

.client-item summary b.is-off {
    background: rgba(143, 45, 31, 0.08);
    color: #8f2d1f;
}

.client-item summary b.is-off::before {
    background: #8f2d1f;
}

.client-item .client-form {
    margin: 0 18px 18px;
}

.client-delete-form {
    margin: -4px 18px 18px;
}

.client-delete-form button {
    width: 100%;
    background: rgba(143, 45, 31, 0.1);
    color: #8f2d1f;
}

.client-archive {
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.client-archive-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.client-archive-heading h3 {
    margin: 0;
    font-size: 18px;
}

.client-archive-heading span {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(246, 229, 210, 0.72);
    color: var(--admin-cocoa);
    font-size: 12px;
    font-weight: 900;
}

.client-archive-list {
    display: grid;
    gap: 8px;
}

.client-archive-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 14px;
    padding: 13px 14px;
    border: 1px solid rgba(94, 65, 43, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.42);
}

.client-archive-item strong,
.client-archive-item small {
    overflow-wrap: anywhere;
}

.client-archive-item small,
.client-archive-item time {
    color: var(--admin-muted);
    font-size: 12px;
}

.client-archive-item time {
    justify-self: end;
}

.client-body {
    --client-ink: #171615;
    --client-coffee: #5b3f31;
    --client-cocoa: #8c603c;
    --client-gold: #c99355;
    --client-gold-dark: #9c6a38;
    --client-paper: #f7f0e8;
    --client-white: #fffaf5;
    --client-line: rgba(96, 65, 42, 0.16);
    --client-muted: #6f6761;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 2% 102%, rgba(183, 126, 61, 0.22), transparent 18%),
        radial-gradient(circle at 84% 6%, rgba(232, 207, 184, 0.48), transparent 30%),
        linear-gradient(135deg, #fffaf4 0%, #f6efe7 46%, #efe3d7 100%);
    color: var(--client-ink);
}

.client-body::before,
.client-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.client-body::before {
    background:
        linear-gradient(120deg, transparent 0 74%, rgba(255, 255, 255, 0.34) 74.1% 74.55%, transparent 74.65%),
        linear-gradient(120deg, transparent 0 79%, rgba(255, 255, 255, 0.24) 79.1% 79.35%, transparent 79.45%),
        linear-gradient(120deg, transparent 0 84%, rgba(255, 255, 255, 0.18) 84.1% 84.25%, transparent 84.35%);
    opacity: 0.8;
}

.client-body::after {
    background: radial-gradient(ellipse at -3% 99%, rgba(90, 54, 22, 0.14), transparent 20%);
    filter: blur(8px);
}

.client-header {
    position: fixed;
    z-index: 20;
    top: max(22px, calc(50svh - 390px));
    left: 50%;
    width: min(1360px, calc(100% - 44px));
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transform: translateX(-50%);
    color: var(--client-ink);
}

.client-brand {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.client-header-badge,
.client-header-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--client-cocoa);
    font-size: 14px;
    font-weight: 850;
    box-shadow: 0 16px 40px rgba(72, 48, 28, 0.08);
    backdrop-filter: blur(20px);
}

.client-header-link {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(23, 19, 16, 0.78);
    color: #fffaf3;
    box-shadow: 0 16px 30px rgba(28, 23, 19, 0.18);
    backdrop-filter: blur(16px);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.client-header-badge {
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.client-header-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(205, 151, 91, 0.34);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 38px rgba(72, 48, 28, 0.13);
}

.client-header-badge:focus-visible {
    outline: 2px solid var(--client-gold);
    outline-offset: 3px;
}

.client-delivery-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.client-delivery-fieldset legend {
    margin-bottom: 9px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 850;
}

.client-delivery-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.client-delivery-options label {
    min-width: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    border: 1px solid rgba(94, 65, 43, 0.12);
    border-radius: 14px;
    background: rgba(255, 250, 245, 0.62);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.client-delivery-options label:has(input:checked) {
    border-color: rgba(201, 147, 85, 0.46);
    background: rgba(246, 229, 210, 0.68);
    box-shadow: 0 0 0 3px rgba(201, 147, 85, 0.1);
}

.client-delivery-options input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: var(--admin-cocoa);
}

.client-delivery-options span {
    min-width: 0;
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.15;
}

.client-delivery-options label:has(input:checked) span {
    color: var(--admin-coffee);
}

.client-header-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(42, 31, 23, 0.88);
    box-shadow: 0 20px 36px rgba(72, 48, 28, 0.24);
}

.client-link-icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    flex: 0 0 auto;
}

.client-link-icon svg {
    width: 14px;
    height: 14px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-link-text {
    white-space: nowrap;
}

.client-header-badge i,
.client-header-link i {
    color: var(--client-gold);
    font-style: normal;
    font-size: 16px;
}

.client-header-badge .client-badge-arrow,
.client-header > span .client-badge-arrow {
    width: 13px;
    height: 13px;
    display: inline-block;
    flex: 0 0 13px;
    background: currentColor;
    clip-path: polygon(0 42%, 59% 42%, 59% 13%, 100% 50%, 59% 87%, 59% 58%, 0 58%);
    transform: rotate(-45deg);
}

.client-page {
    min-height: 100svh;
    height: auto;
    display: grid;
    place-items: center;
    padding: 106px 24px 40px;
    position: relative;
    overflow: visible;
}

.client-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 35%, rgba(255, 255, 255, 0.78), transparent 32%),
        radial-gradient(circle at 74% 50%, rgba(207, 167, 125, 0.18), transparent 30%);
    pointer-events: none;
}

.client-page::after {
    content: none;
}

.client-card {
    position: relative;
    z-index: 1;
    width: min(1340px, 100%);
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 450px);
    grid-template-areas:
        "copy portrait"
        "details details";
    align-content: start;
    gap: 34px 54px;
    padding: 42px 46px 42px;
    border-radius: 40px;
    background:
        radial-gradient(circle at 83% 7%, rgba(201, 147, 85, 0.12), transparent 24%),
        radial-gradient(circle at 13% 7%, rgba(255, 255, 255, 0.72), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 244, 0.8)),
        rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 38px 110px rgba(59, 40, 26, 0.16);
    overflow: hidden;
    backdrop-filter: blur(18px);
    animation: clientCardIn 760ms cubic-bezier(.2, .75, .25, 1) both;
}

.client-card::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(96, 65, 42, 0.08);
    border-radius: 32px;
    pointer-events: none;
}

.client-card::after {
    content: "";
    position: absolute;
    right: -122px;
    bottom: -162px;
    width: 560px;
    aspect-ratio: 1;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 250, 245, 0.74), transparent 52%),
        repeating-linear-gradient(155deg, rgba(198, 155, 111, 0.09) 0 1px, transparent 1px 16px);
    opacity: 0.58;
    pointer-events: none;
}

.client-copy,
.client-portrait-panel,
.client-detail-grid {
    position: relative;
    z-index: 1;
}

.client-copy {
    grid-area: copy;
    align-self: start;
    display: grid;
    align-content: start;
    gap: 20px;
    padding: 8px 0 0;
    max-width: 700px;
}

.client-kicker {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--client-cocoa);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 4.8px;
    text-transform: uppercase;
}

.client-kicker i {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(156, 106, 56, 0.16);
    border-radius: 50%;
    background: linear-gradient(145deg, #fffaf3, #f3e2cd);
    box-shadow: 0 12px 26px rgba(108, 72, 39, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.client-kicker i svg {
    width: 29px;
    height: 29px;
    display: block;
    fill: none;
    stroke: var(--client-gold-dark);
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-kicker i .client-camera-body {
    fill: rgba(255, 250, 243, 0.5);
    stroke-width: 1.35;
}

.client-kicker i .client-camera-lens {
    fill: rgba(201, 147, 85, 0.08);
    stroke-width: 1.35;
}

.client-kicker i .client-camera-lens-core,
.client-kicker i .client-camera-status {
    fill: var(--client-gold-dark);
    stroke: none;
}

.client-card h1 {
    margin: 0;
    max-width: none;
    color: var(--client-ink);
    font-size: 58px;
    font-weight: 920;
    line-height: 0.98;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: 0 10px 24px rgba(17, 16, 15, 0.1);
}

.client-card h1 span {
    display: block;
    white-space: nowrap;
}

.client-card h1 span:last-child {
    margin-top: 10px;
    color: var(--client-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
}

.client-lead {
    max-width: 620px;
    margin: 0;
    color: var(--client-muted);
    font-size: 19px;
    line-height: 1.58;
}

.client-lead > span {
    display: block;
}

.client-portrait-panel {
    grid-area: portrait;
    min-height: 380px;
    width: min(100%, 450px);
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 16px;
    align-self: center;
    justify-self: end;
    isolation: isolate;
}

.client-portrait-panel::before {
    content: none;
}

.client-portrait-panel::after {
    content: none;
}

.client-photo-stage {
    position: relative;
    width: 444px;
    height: 406px;
    isolation: isolate;
    overflow: visible;
    animation: clientFloat 8s ease-in-out infinite;
}

.client-photo-stage::before,
.client-photo-stage::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 44%;
    border: 1px solid rgba(201, 147, 85, 0.28);
    border-radius: 50%;
    pointer-events: none;
}

.client-photo-stage::before {
    width: 360px;
    height: 360px;
    transform: translate(-50%, -50%) rotate(-4deg);
}

.client-photo-stage::after {
    width: 284px;
    height: 284px;
    border-color: rgba(122, 89, 70, 0.12);
    transform: translate(-50%, -50%);
}

.client-person-plate {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 44%;
    width: 284px;
    height: 284px;
    display: grid;
    place-items: end center;
    overflow: hidden;
    background: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.client-hero-person {
    position: absolute;
    left: 50%;
    bottom: -86px;
    width: auto;
    height: 382px;
    display: block;
    object-fit: contain;
    object-position: 50% 100%;
    transform: translateX(-50%);
    filter:
        grayscale(0.06)
        contrast(1.05)
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.74))
        drop-shadow(0 24px 30px rgba(44, 33, 26, 0.2));
}

.client-photographer-card {
    width: min(372px, 100%);
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: -48px;
    padding: 20px 24px 22px;
    border: 1px solid rgba(96, 65, 42, 0.14);
    border-radius: 26px;
    background: rgba(255, 250, 245, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 44px rgba(63, 43, 28, 0.1);
    text-align: center;
}

.client-photographer-card span {
    color: var(--client-cocoa);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 4.2px;
    text-transform: uppercase;
}

.client-photographer-card strong {
    color: var(--client-ink);
    font-size: 22px;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.client-detail-grid {
    grid-area: details;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 2px;
}

.client-detail-grid-single {
    grid-template-columns: 1fr;
}

.client-discount {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    padding: 20px 22px;
    border: 1px solid rgba(96, 65, 42, 0.16);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 245, 0.56));
    color: var(--client-ink);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 16px 36px rgba(69, 48, 31, 0.05);
    backdrop-filter: blur(12px);
}

.client-discount > i {
    color: var(--client-gold);
    font-style: normal;
    font-size: 44px;
    line-height: 1;
}

.client-discount > div {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
}

.client-discount > div > span,
.client-discount > div > strong,
.client-discount > div > p {
    display: block;
    width: 100%;
    text-align: center;
}

.client-discount span,
.client-discount p {
    color: #6f6761;
    font-size: 15px;
}

.client-discount strong {
    color: var(--client-gold);
    font-size: 22px;
    font-weight: 850;
    line-height: 1.15;
    overflow-wrap: break-word;
    word-break: normal;
}

.client-discount .client-discount-prompt {
    color: #6f6761;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
}

.client-discount p {
    margin: 0;
}

.client-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.client-button {
    min-width: 0;
    min-height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(156, 106, 56, 0.18);
    font-size: 16px;
    font-weight: 850;
    transition: transform 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    overflow: hidden;
}

.client-button:hover {
    transform: translateY(-2px);
}

.client-button i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(201, 147, 85, 0.12);
    color: var(--client-gold);
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}

.client-button-primary {
    min-height: 56px;
    padding: 0 28px;
    border-color: rgba(52, 36, 24, 0.78);
    background: linear-gradient(135deg, #1d1712, #49301e);
    color: #fffaf4;
    font-size: 14px;
    box-shadow: 0 16px 38px rgba(42, 27, 17, 0.2);
}

.client-button-primary i {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-size: 18px;
}

.client-button-primary:hover {
    border-color: rgba(201, 147, 85, 0.68);
    background: linear-gradient(135deg, #2a1d14, #654323);
    box-shadow: 0 20px 48px rgba(42, 27, 17, 0.28);
}

.client-button-secondary {
    background: rgba(255, 250, 245, 0.94);
    color: var(--client-cocoa);
}

.client-button-secondary:hover {
    background: var(--client-white);
    border-color: rgba(156, 106, 56, 0.32);
}

.client-review-note {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 20px;
    align-content: center;
    margin: 0;
    padding: 22px 30px;
    border: 1px solid rgba(96, 65, 42, 0.14);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255, 250, 245, 0.84), rgba(255, 255, 255, 0.58));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 16px 36px rgba(69, 48, 31, 0.04);
    color: var(--client-muted);
    font-size: 15px;
    line-height: 1.65;
    backdrop-filter: blur(12px);
}

.client-review-note i {
    align-self: flex-start;
    color: var(--client-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 50px;
    font-style: normal;
    line-height: 0.9;
}

.client-review-note span {
    display: block;
    max-width: 760px;
}

.client-card-unavailable {
    min-height: 460px;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: start;
    max-width: 760px;
}

.client-card-unavailable h1 {
    position: relative;
    z-index: 1;
    max-width: 11ch;
}

.client-card-unavailable .client-lead {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.client-card-unavailable .client-kicker {
    position: relative;
    z-index: 1;
}

@keyframes clientCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes clientFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(0.6deg);
    }
}

.delete-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(23, 17, 14, 0.34);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.delete-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.delete-backdrop {
    position: absolute;
    inset: 0;
}

.delete-card {
    position: relative;
    width: min(420px, 100%);
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 24px 20px 20px;
    border-radius: 22px;
    background: rgba(255, 250, 243, 0.96);
    border: 1px solid rgba(255, 250, 243, 0.72);
    box-shadow: 0 26px 76px rgba(34, 22, 17, 0.28);
    transform: translateY(12px) scale(0.98);
    animation: successIn 220ms ease forwards;
}

.delete-card h2 {
    margin: 0;
    font-size: 26px;
    text-align: center;
}

.delete-preview {
    margin: 0;
    width: 100%;
    min-width: 0;
    max-width: 34ch;
    color: var(--admin-muted);
    text-align: center;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.delete-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.delete-actions button,
.delete-close {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.delete-cancel,
.delete-confirm {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 800;
}

.delete-cancel {
    background: rgba(91, 63, 49, 0.1);
    color: var(--admin-ink);
}

.delete-confirm {
    background: #8f2d1f;
    color: var(--admin-cream);
}

.delete-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(91, 63, 49, 0.08);
    color: var(--admin-muted);
    font-size: 24px;
    line-height: 1;
}

@media (max-width: 820px) {
    .page {
        padding: 10px;
        align-items: center;
    }

    .notify-card {
        width: 350px;
    }

    .card {
        width: 390px;
        min-height: auto;
        justify-content: center;
        gap: 10px;
        padding: 18px 14px 14px;
        border-radius: 24px;
    }

    .avatar-ring {
        width: 78px;
    }

    .hero-copy h1 {
        font-size: 24px;
    }

    .hero {
        gap: 12px;
    }

    .hero-copy {
        gap: 5px;
    }

    .hero-copy p {
        font-size: 14px;
    }

    .social-row {
        display: flex;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 7px;
        width: auto;
        max-width: none;
        padding-top: 10px;
    }

    .social-orb {
        width: 48px;
    }

    .social-orb i {
        font-size: 21px;
    }

    .message-form {
        width: 390px;
        padding: 22px 16px 16px;
        border-radius: 22px;
    }

    .write-fab {
        right: 14px;
        bottom: 14px;
        min-height: 46px;
        padding: 0 13px;
    }

    .write-fab span {
        font-size: 12px;
    }

    .success-card {
        width: 320px;
        padding: 20px 16px 18px;
        border-radius: 22px;
    }

    .client-header {
        position: absolute;
        top: calc(16px + env(safe-area-inset-top));
        right: auto;
        left: 50%;
        width: calc(100% - 32px);
        min-height: 48px;
        margin: 0;
        justify-content: center;
        transform: translateX(-50%);
        pointer-events: none;
    }

    .client-body.client-no-discount .client-header {
        top: calc(16px + env(safe-area-inset-top));
    }

    .client-brand {
        font-size: 15px;
    }

    .client-header-badge,
    .client-header-link {
        min-height: 36px;
        padding: 0 12px;
        font-size: 11px;
    }

    .client-header-link {
        gap: 12px;
        min-height: 44px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--client-ink);
        box-shadow: none;
        backdrop-filter: none;
    }

    .client-header-link:hover {
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .client-header-link:focus-visible {
        border-radius: 6px;
        outline: 2px solid var(--client-gold);
        outline-offset: 4px;
    }

    .client-link-icon {
        width: 42px;
        height: 42px;
        border: 0;
        background: linear-gradient(145deg, #21160f, #3a281b);
        color: #d8a064;
        box-shadow: 0 9px 22px rgba(48, 31, 20, 0.2);
    }

    .client-header-link:active .client-link-icon {
        transform: scale(0.96);
    }

    .client-link-icon svg {
        width: 16px;
        height: 16px;
        stroke-width: 1.7;
    }

    .client-link-text {
        color: var(--client-ink);
        font-size: 13px;
        font-weight: 850;
    }

    .client-header-badge {
        display: inline-flex;
        pointer-events: auto;
    }

    .client-body {
        height: auto;
        overflow: auto;
        overflow-x: hidden;
    }

    .client-page {
        height: auto;
        padding: 72px 16px 24px;
        place-items: center;
        overflow: visible;
    }

    .client-card {
        width: 100%;
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "details";
        gap: 18px;
        padding: 28px 20px 24px;
        border-radius: 30px;
    }

    .client-card::before {
        inset: 12px;
        border-radius: 22px;
    }

    .client-card h1 {
        max-width: none;
        font-size: 30px;
        line-height: 1.06;
    }

    .client-card h1 span {
        white-space: normal;
    }

    .client-card h1 span:first-child {
        white-space: nowrap;
    }

    .client-card h1 span:last-child {
        margin-top: 6px;
    }

    .client-lead,
    .client-review-note {
        font-size: 15px;
    }

    .client-kicker {
        gap: 12px;
        font-size: 11px;
        letter-spacing: 2.4px;
    }

    .client-kicker i {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(213, 160, 101, .12);
        border-radius: 10px;
        background: #fbecda;
        box-shadow: 0 8px 20px rgba(183, 124, 66, .12), inset 0 1px 0 rgba(255, 255, 255, .72);
    }

    .client-kicker i svg {
        width: 24px;
        height: 24px;
        stroke: #d39a5d;
        stroke-width: 1.45;
        transform: translateY(-0.5px);
    }

    .client-kicker i .client-camera-body,
    .client-kicker i .client-camera-lens {
        fill: none;
        stroke-width: 1.45;
    }

    .client-kicker i .client-camera-lens-core,
    .client-kicker i .client-camera-status {
        display: none;
    }

    .client-actions,
    .client-detail-grid {
        grid-template-columns: 1fr;
    }

    .client-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .client-button {
        width: 100%;
        min-height: 58px;
        min-width: 0;
        justify-content: center;
        padding: 0 20px;
        font-size: 16px;
    }

    .client-portrait-panel {
        display: none;
    }

    .client-portrait-panel::before {
        inset: 42px 34px 42px;
    }

    .client-photo-stage {
        width: 332px;
        height: 340px;
    }

    .client-person-plate {
        left: 50%;
        top: 44%;
        width: 252px;
        height: 252px;
    }

    .client-hero-person {
        height: 328px;
        bottom: -76px;
    }

    .client-photographer-card {
        width: 100%;
        margin-top: -12px;
        border-radius: 22px;
    }

    .client-discount,
    .client-review-note {
        min-height: 0;
    }

    .client-discount {
        justify-content: flex-start;
    }

    .client-review-note {
        align-items: flex-start;
        gap: 14px;
        padding: 20px 18px;
    }

    .client-review-note i {
        font-size: 42px;
    }
}

@media (max-width: 420px) {
    .notify-card,
    .card,
    .message-form {
        width: 350px;
    }

    .divider {
        width: 270px;
    }

    .client-header-badge {
        display: inline-flex;
    }

    .client-brand {
        font-size: 16px;
    }

    .client-card h1 {
        font-size: 27px;
    }

    .client-photo-stage {
        width: 286px;
        height: 294px;
    }

    .client-photo-stage::before {
        width: 280px;
        height: 280px;
    }

    .client-photo-stage::after {
        width: 236px;
        height: 236px;
    }

    .client-person-plate {
        left: 50%;
        top: 44%;
        width: 236px;
        height: 236px;
    }

    .client-hero-person {
        height: 306px;
        bottom: -72px;
    }
}

@media (max-width: 1100px) {
    .login-stage {
        grid-template-columns: 1fr;
    }

    .login-side-form {
        min-height: 100svh;
    }

    .login-side-preview {
        display: none;
    }
}

@media (max-width: 900px) {
    .client-form {
        grid-template-columns: 1fr;
    }

    .client-discount-controls,
    .client-create-actions {
        grid-template-columns: 1fr;
    }

    .client-create-actions button {
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .admin-header,
    .message-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .message-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-tabs a {
        padding: 0 4px;
        font-size: 11px;
        min-width: 0;
        gap: 4px;
    }

    .admin-tab-icon {
        width: 24px;
        height: 24px;
        border-radius: 8px;
    }

    .admin-tab-icon svg {
        width: 15px;
        height: 15px;
    }

    .admin-shell,
    .login-panel {
        width: min(390px, 100%);
        min-height: 0;
        border-radius: 22px;
        padding: 18px;
    }

    .admin-period {
        margin-top: 6px;
    }

    .login-panel h1,
    .admin-header h1 {
        font-size: 30px;
    }

    .delete-card {
        padding: 20px 16px 16px;
        border-radius: 20px;
    }

    .delete-card h2 {
        font-size: 22px;
    }

    .delete-actions {
        flex-direction: column;
    }

    .delete-cancel,
    .delete-confirm {
        width: 100%;
    }

    .admin-card-heading,
    .client-item summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-form {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .client-form textarea {
        min-height: 112px;
    }

    .client-create-panel {
        grid-template-columns: 1fr;
    }

    .client-subtabs {
        grid-template-columns: 1fr;
    }

    .client-subtabs button {
        justify-content: space-between;
        padding: 0 14px;
    }

    .client-create-intro {
        border-right: 0;
        border-bottom: 1px solid rgba(91, 63, 49, 0.11);
        padding: 22px;
    }

    .client-create-actions {
        grid-template-columns: 1fr;
    }

    .client-discount-controls {
        grid-template-columns: 1fr;
    }

    .client-delivery-options {
        grid-template-columns: 1fr;
    }

    .client-link-note-actions {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "url"
            "actions";
    }

    .client-link-actions {
        flex-wrap: wrap;
    }

    .client-link-action {
        flex: 1 1 138px;
    }

    .client-create-actions button {
        min-width: 0;
    }

    .login-side-form {
        padding: 30px 24px;
    }

    .login-close {
        top: 28px;
        right: 20px;
    }

    .admin-login-body .login-panel {
        width: min(480px, 100%);
        padding: 0;
    }

    .admin-login-body .login-panel h1 {
        font-size: 38px;
    }

    .login-aesthetic-note p {
        font-size: 32px;
    }
}

@media (max-width: 420px) {
    .login-side-form {
        padding: 24px 18px;
    }

    .admin-login-body .login-panel h1 {
        font-size: 34px;
    }

    .login-divider {
        gap: 16px;
    }
}

@media (max-width: 720px) {
    .admin-body:not(.admin-login-body) {
        overscroll-behavior-y: contain;
    }

    .admin-page:not(.admin-login-page) {
        display: block;
        min-height: 100svh;
        padding: max(14px, env(safe-area-inset-top)) 12px calc(98px + env(safe-area-inset-bottom));
    }

    .admin-page:not(.admin-login-page)::before {
        background:
            radial-gradient(circle at 82% 4%, rgba(229, 204, 181, 0.42), transparent 28%),
            linear-gradient(145deg, rgba(255, 255, 255, 0.5), transparent 42%);
    }

    .admin-shell {
        width: 100%;
        min-height: 0;
        gap: 10px;
        padding: 8px 4px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .admin-shell::before {
        content: none;
    }

    .admin-header {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 12px;
        padding: 4px 4px 0;
    }

    .admin-header > div {
        min-width: 0;
    }

    .admin-kicker {
        font-size: 10px;
        letter-spacing: 2.2px;
    }

    .admin-header h1 {
        margin-top: 5px;
        font-size: 30px;
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    .admin-header > form {
        margin: 0;
    }

    .admin-header .admin-logout {
        width: 44px;
        min-height: 44px;
        padding: 0;
        border-radius: 14px;
        font-size: 0;
        box-shadow: 0 10px 24px rgba(69, 48, 31, 0.08);
    }

    .admin-header .admin-logout span {
        font-size: 20px;
    }

    .admin-period {
        min-height: 28px;
        align-items: center;
        margin-top: 8px;
        padding: 4px 10px;
        font-size: 11px;
    }

    .admin-period.is-placeholder {
        display: none;
    }

    .admin-tabs {
        position: fixed;
        z-index: 80;
        left: 12px;
        right: 12px;
        bottom: max(10px, env(safe-area-inset-bottom));
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        padding: 6px;
        border-radius: 20px;
        background: rgba(255, 250, 245, 0.94);
        border-color: rgba(94, 65, 43, 0.14);
        box-shadow: 0 18px 48px rgba(48, 31, 20, 0.22);
        backdrop-filter: blur(20px);
    }

    .admin-tabs a {
        height: 56px;
        min-height: 56px;
        flex-direction: column;
        gap: 3px;
        padding: 4px 2px;
        border-radius: 14px;
        font-size: 10px;
        line-height: 1;
    }

    .admin-tabs a::after {
        left: 24%;
        right: 24%;
        bottom: 3px;
    }

    .admin-tab-icon {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    .admin-tab-icon svg {
        width: 16px;
        height: 16px;
    }

    .admin-content {
        gap: 14px;
        padding: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stats-grid article {
        min-height: 104px;
        align-content: space-between;
        gap: 10px;
        padding: 16px;
        border-radius: 18px;
    }

    .stats-grid span {
        font-size: 12px;
        line-height: 1.25;
    }

    .stats-grid strong {
        font-size: 30px;
    }

    .admin-card {
        padding: 16px;
        border-radius: 20px;
        box-shadow: 0 12px 30px rgba(69, 48, 31, 0.06);
    }

    .admin-card h2,
    .admin-card-heading h2 {
        font-size: 19px;
        line-height: 1.2;
    }

    .admin-card-heading {
        gap: 10px;
        margin-bottom: 14px;
    }

    .click-list {
        gap: 8px;
    }

    .click-list div {
        min-height: 54px;
        padding: 12px 13px;
        border-radius: 14px;
    }

    .click-list strong {
        font-size: 18px;
    }

    .client-admin-card {
        gap: 12px;
        padding: 10px 0 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .client-admin-card::before {
        content: none;
    }

    .client-subtabs {
        position: sticky;
        z-index: 15;
        top: 8px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        padding: 5px;
        border-radius: 17px;
        background: rgba(255, 250, 245, 0.94);
        box-shadow: 0 10px 28px rgba(69, 48, 31, 0.1);
        backdrop-filter: blur(18px);
    }

    .client-subtabs button {
        min-width: 0;
        min-height: 48px;
        justify-content: center;
        gap: 5px;
        padding: 0 5px;
        border-radius: 12px;
        font-size: 11px;
        line-height: 1.1;
    }

    .client-subtabs span {
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        font-size: 10px;
    }

    .client-section-shell,
    .client-create-panel,
    .client-list,
    .client-archive {
        min-height: 0;
    }

    .client-section-shell,
    .client-create-panel {
        grid-template-columns: 1fr;
    }

    .client-section-shell {
        border-radius: 20px;
        overflow: visible;
    }

    .client-create-intro {
        min-height: 52px;
        align-content: center;
        padding: 8px 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(91, 63, 49, 0.1);
        border-radius: 20px 20px 0 0;
    }

    .client-create-intro-compact .client-create-label {
        display: flex;
        gap: 5px;
        font-size: 12px;
    }

    .client-section-content {
        padding: 12px;
        border-radius: 0 0 20px 20px;
    }

    .client-form {
        gap: 14px;
        margin: 0;
        padding: 4px;
        border: 0;
        background: transparent;
    }

    .client-form label {
        gap: 7px;
    }

    .client-form label > span,
    .client-switch span,
    .client-delivery-fieldset legend {
        font-size: 12px;
    }

    .client-form input,
    .client-form textarea {
        font-size: 16px;
    }

    .client-form input {
        min-height: 50px;
        padding: 0 14px;
    }

    .client-form textarea {
        min-height: 128px;
        padding: 13px 14px;
    }

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

    .client-delivery-options label {
        min-height: 50px;
    }

    .client-link-note {
        min-height: 0;
        padding: 14px;
        border-radius: 14px;
    }

    .client-link-note-actions {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "url"
            "actions";
    }

    .client-link-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
    }

    .client-link-action {
        min-height: 44px;
        padding: 0 8px;
        white-space: normal;
    }

    .client-discount-controls,
    .client-create-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .client-switch {
        min-height: 52px;
        padding: 0 14px;
    }

    .client-switch input {
        width: 22px;
        min-height: 22px;
    }

    .client-create-actions button,
    .client-form button:not(.client-link-action) {
        width: 100%;
        min-height: 52px;
    }

    .client-list {
        gap: 10px;
    }

    .client-item {
        border-radius: 17px;
    }

    .client-item summary {
        min-height: 78px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 14px;
    }

    .client-item summary span {
        min-width: 0;
    }

    .client-item summary strong {
        font-size: 15px;
    }

    .client-item summary small {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 11px;
    }

    .client-item summary b {
        padding: 8px 10px;
        font-size: 10px;
    }

    .client-item .client-form {
        margin: 0;
        padding: 14px;
        border-top: 1px solid rgba(94, 65, 43, 0.09);
        border-radius: 0;
    }

    .client-delete-form {
        margin: 0;
        padding: 0 14px 14px;
    }

    .client-delete-form button {
        min-height: 48px;
    }

    .client-archive-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px;
    }

    .client-archive-item time {
        justify-self: start;
    }

    .message-admin-card {
        padding: 14px;
    }

    .message-group {
        gap: 8px;
        padding: 10px;
        border-radius: 18px;
    }

    .message-list article {
        padding: 13px;
        border-radius: 15px;
    }

    .message-head {
        gap: 8px;
    }

    .message-actions {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .message-actions form {
        margin-left: auto;
    }

    .message-actions button {
        min-height: 40px;
        padding: 0 14px;
    }

    .delete-modal {
        padding: 16px;
    }

    .delete-card {
        width: min(100%, 390px);
        max-height: calc(100svh - 32px);
        overflow-y: auto;
        padding: 22px 16px 16px;
    }

    .delete-preview {
        overflow-wrap: anywhere;
    }

    .delete-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .delete-cancel,
    .delete-confirm {
        min-height: 48px;
    }
}

@keyframes pageFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes notifySequence {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.9);
    }
    18% {
        opacity: 1;
        transform: translateY(0) scale(1.02);
    }
    28% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    70% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.96);
    }
}

@keyframes taplinkSequence {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.9);
    }
    28% {
        opacity: 1;
        transform: translateY(0) scale(1.02);
    }
    42% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes successIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes avatarPop {
    0% {
        opacity: 0;
        transform: scale(0.75);
    }
    70% {
        transform: scale(1.04);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes copyLift {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

    body {
        animation: none;
    }

    .card,
    .avatar-ring,
    .hero-copy,
    .social-orb,
    .write-fab,
    .notify-card {
        opacity: 1;
        transform: none;
    }

    .notify-intro {
        display: none;
    }
}
/* Mobile pages are portrait-only; desktop layouts remain unaffected. */
.portrait-orientation-lock {
    display: none;
}

@media (orientation: landscape) and (max-width: 1000px) and (pointer: coarse),
       (orientation: landscape) and (max-width: 1000px) and (hover: none),
       (orientation: landscape) and (max-width: 1000px) and (max-height: 500px) {
    .portrait-orientation-lock {
        position: fixed;
        z-index: 100000;
        inset: 0;
        display: grid;
        place-items: center;
        padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
        background: #f7f2ea;
        color: #171513;
        text-align: center;
    }

    .portrait-orientation-lock-card {
        width: min(420px, 100%);
        padding: 28px;
        border: 1px solid rgba(91, 63, 49, .18);
        border-radius: 28px;
        background: rgba(255, 255, 255, .78);
        box-shadow: 0 20px 55px rgba(54, 39, 30, .16);
    }

    .portrait-orientation-lock-icon {
        display: block;
        margin-bottom: 12px;
        color: #6e4d3b;
        font-size: 38px;
        line-height: 1;
    }

    .portrait-orientation-lock strong {
        display: block;
        font-size: 22px;
        line-height: 1.15;
    }

    .portrait-orientation-lock span:last-child {
        display: block;
        margin-top: 8px;
        color: #766d67;
        font-size: 14px;
        line-height: 1.4;
    }
}
