:root {
    color-scheme: light;
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #eef4f4;
    --text: #20242b;
    --muted: #68707d;
    --line: #dde2ea;
    --accent: #b94f6b;
    --accent-strong: #96394f;
    --teal: #147a7e;
    --gold: #b88a2d;
    --success: #1d7f58;
    --warning: #b17413;
    --danger: #b33939;
    --shadow: 0 16px 40px rgba(32, 36, 43, 0.08);
    --radius: 8px;
    --sidebar: 270px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #13171d;
    --surface: #1d232c;
    --surface-2: #202d34;
    --text: #f5f6f7;
    --muted: #a8b0bb;
    --line: #303946;
    --accent: #de6f8d;
    --accent-strong: #f08aa4;
    --teal: #4db8bd;
    --gold: #d9ad4d;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    letter-spacing: 0;
}

a {
    color: var(--teal);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

button {
    cursor: pointer;
}

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

.app-shell {
    min-height: 100vh;
    display: flex;
}

.page-shell {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar {
    width: var(--sidebar);
    background: #20242b;
    color: #ffffff;
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    flex: 0 0 var(--sidebar);
    z-index: 30;
}

.sidebar-profile {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-profile span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
    margin-top: 4px;
}

.avatar,
.brand-mark,
.gmail-logo,
.profile-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.avatar,
.brand-mark,
.profile-chip span {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
}

.nav-list {
    display: grid;
    gap: 6px;
    margin-top: 20px;
}

.nav-list a,
.logout-link {
    color: rgba(255, 255, 255, 0.78);
    padding: 11px 12px;
    border-radius: 8px;
    text-decoration: none;
}

.nav-list a:hover,
.nav-list a.active,
.logout-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.logout-link {
    display: block;
    margin-top: 20px;
}

.sidebar-close,
.mobile-menu {
    display: none;
}

.topbar {
    min-height: 72px;
    padding: 16px clamp(18px, 4vw, 42px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: var(--surface);
    text-decoration: none;
    max-width: 220px;
}

.profile-chip strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-content,
.content-wrap,
.public-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 52px;
}

.content-wrap.narrow {
    width: min(720px, calc(100% - 32px));
}

.hero-section {
    min-height: calc(100vh - 128px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(24px, 5vw, 70px);
    align-items: center;
    padding-bottom: 32px;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 7vw, 5.7rem);
    line-height: 0.95;
    margin: 10px 0 18px;
    max-width: 760px;
}

.hero-copy p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 680px;
}

.hero-panel {
    min-height: 480px;
    padding: 24px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(185, 79, 107, 0.18), rgba(20, 122, 126, 0.16)),
        repeating-linear-gradient(45deg, color-mix(in srgb, var(--surface) 86%, var(--accent)), color-mix(in srgb, var(--surface) 86%, var(--accent)) 12px, var(--surface) 12px, var(--surface) 24px);
    border: 1px solid var(--line);
    display: grid;
    align-content: end;
    gap: 14px;
    box-shadow: var(--shadow);
}

.mini-card {
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.mini-card span,
.stat-card span,
.invoice-grid span,
.totals-box span {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    margin-bottom: 5px;
}

.mini-card strong {
    font-size: 1.3rem;
}

.feature-band,
.split-grid,
.stat-grid,
.dashboard-grid,
.settings-grid,
.form-layout,
.split-workspace {
    display: grid;
    gap: 18px;
}

.feature-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 24px 0 8px;
}

.feature-band article,
.split-grid > div,
.panel,
.form-card,
.stat-card,
.invoice-card,
.empty-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-band article,
.split-grid > div,
.panel,
.form-card,
.empty-state {
    padding: 20px;
}

.page-heading {
    margin-bottom: 24px;
}

.page-heading.compact {
    margin-bottom: 18px;
}

.eyebrow {
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    margin: 0 0 8px;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

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

h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin: 0 0 10px;
}

h2 {
    font-size: 1.18rem;
    margin: 0 0 14px;
}

p {
    line-height: 1.65;
}

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

.block {
    display: block;
}

.primary-button,
.ghost-button,
.danger-button,
.text-link,
.icon-button,
.photo-actions button,
.row-actions button {
    min-height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.primary-button {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.primary-button:hover {
    background: var(--accent-strong);
    text-decoration: none;
}

.ghost-button,
.danger-button,
.icon-button,
.photo-actions button,
.row-actions button {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
}

.danger-button {
    color: var(--danger);
}

.ghost-button:hover,
.icon-button:hover,
.danger-button:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.danger-button:hover {
    border-color: var(--danger);
    background: color-mix(in srgb, var(--danger) 10%, var(--surface));
}

.text-link {
    color: var(--teal);
    padding-inline: 0;
}

.full {
    width: 100%;
}

.hero-actions,
.form-actions,
.auth-actions,
.toolbar,
.inline-row,
.inline-controls,
.row-actions,
.photo-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar {
    justify-content: space-between;
    margin-bottom: 18px;
}

.filter-form,
.search-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
}

.filter-form input[type="search"] {
    min-width: min(340px, 100%);
}

.booking-filter-form {
    flex: 1 1 760px;
    align-items: stretch;
}

.booking-filter-form input[type="search"] {
    flex: 1 1 280px;
}

.booking-filter-form select {
    flex: 0 1 170px;
    min-width: 150px;
}

.booking-filter-form input[type="date"] {
    flex: 0 1 150px;
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.stat-card {
    padding: 18px;
}

.stat-card strong {
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
}

.settings-grid,
.form-layout,
.split-workspace {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
}

.customers-management-layout {
    grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1.45fr);
}

.customer-list-layout {
    grid-template-columns: 1fr;
}

.customer-list-layout .customers-list-panel {
    grid-column: 1 / -1;
}

.customer-editor-card {
    position: sticky;
    top: 92px;
}

.customers-list-panel .panel-heading {
    align-items: flex-start;
}

.customers-table {
    min-width: 900px;
}

.customer-actions {
    align-items: flex-start;
    gap: 8px;
}

.customer-actions form {
    margin: 0;
}

.customer-stat-grid {
    margin-bottom: 18px;
}

.customer-note {
    display: block;
    margin-top: 8px;
    padding: 8px;
    border-radius: 8px;
    background: var(--surface-2);
    color: #26364d;
    font-size: 0.82rem;
    line-height: 1.45;
}

.customer-trash-control-panel {
    margin-bottom: 18px;
}

.customer-trash-forms {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 14px;
}

.customer-trash-password-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.customer-trash-password-form:only-child {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.customer-trash-layout {
    grid-template-columns: 1fr;
}

.customer-trash-layout .customers-list-panel {
    grid-column: 1 / -1;
}

.customer-trash-modal {
    width: min(980px, calc(100% - 28px));
    max-height: min(90vh, 920px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}

.customer-trash-modal::backdrop {
    background: rgba(13, 18, 28, 0.62);
}

.customer-trash-modal-head,
.customer-trash-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.customer-trash-modal-head h2 {
    margin: 0;
}

.customer-trash-modal > p,
.customer-trash-export-panel,
.customer-trash-profile {
    margin-inline: 18px;
}

.customer-trash-export-panel {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--teal) 8%, var(--surface)), color-mix(in srgb, var(--accent) 5%, var(--surface)));
}

.customer-trash-export-copy {
    display: grid;
    gap: 4px;
}

.customer-trash-export-copy span {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.customer-trash-export-copy strong {
    color: var(--text);
    font-size: 1.02rem;
}

.customer-trash-export-copy small,
.customer-export-card small {
    color: var(--muted);
    line-height: 1.35;
}

.customer-trash-export-actions {
    display: grid;
    grid-template-columns: 1.3fr repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.customer-export-card {
    min-height: 92px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    color: var(--text);
    text-decoration: none;
}

.customer-export-card:hover {
    border-color: var(--teal);
    text-decoration: none;
}

.customer-export-card strong,
.customer-export-card small {
    min-width: 0;
}

.customer-export-card small {
    grid-column: 2;
}

.customer-export-card-primary {
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, var(--teal) 8%, var(--surface)));
}

.file-badge {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--text);
    color: var(--surface);
    font-size: 0.76rem;
    font-weight: 900;
}

.customer-trash-profile {
    display: grid;
    gap: 16px;
    max-height: 54vh;
    overflow: auto;
    padding-right: 4px;
}

.customer-trash-profile section {
    display: grid;
    gap: 10px;
}

.customer-trash-profile h3 {
    margin: 0;
    font-size: 0.96rem;
}

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

.compact-table table {
    min-width: 760px;
}

.customer-trash-modal-actions {
    justify-content: flex-end;
    margin-top: 18px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
}

.stacked-panels {
    display: grid;
    gap: 18px;
}

.side-panel {
    display: grid;
    gap: 18px;
    align-content: start;
}

.panel-heading,
.invoice-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel.plain {
    box-shadow: none;
}

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

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

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

th {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--muted);
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: capitalize;
    color: var(--text);
    background: var(--surface-2);
}

.status.approved,
.status.completed,
.status.confirmed,
.status.paid,
.status.active,
.status.delivered {
    background: color-mix(in srgb, var(--success) 14%, var(--surface));
    color: var(--success);
}

.status.pending,
.status.in_progress,
.status.partial,
.status.designing,
.status.printing {
    background: color-mix(in srgb, var(--warning) 16%, var(--surface));
    color: var(--warning);
}

.status.cancelled,
.status.rejected,
.status.inactive,
.status.archived,
.status.trashed,
.status.unpaid {
    background: color-mix(in srgb, var(--danger) 14%, var(--surface));
    color: var(--danger);
}

form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 42px;
    padding: 10px 12px;
    background: var(--surface);
    color: var(--text);
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent);
}

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

.form-card.dense {
    gap: 12px;
}

.branding-upload-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.settings-media-preview {
    min-width: 116px;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}

.settings-media-preview img,
.settings-media-preview span {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: contain;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: var(--accent);
    border: 1px solid var(--line);
    font-weight: 900;
}

.settings-media-preview.compact img,
.settings-media-preview.compact span {
    width: 42px;
    height: 42px;
}

.settings-media-preview .checkbox {
    font-size: 0.78rem;
    font-weight: 700;
}

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

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

.form-section-title {
    font-weight: 900;
    color: var(--text);
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.booking-management-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
    gap: 18px;
    align-items: start;
}

.booking-entry-form {
    display: grid;
    gap: 18px;
}

.booking-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(18px, 3vw, 24px);
    box-shadow: var(--shadow);
}

.booking-section-head {
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--accent-strong);
}

.booking-section-head h2 {
    margin: 0;
    color: var(--accent-strong);
    font-size: 1.35rem;
}

.package-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.package-option {
    position: relative;
    display: grid;
    gap: 8px;
    align-content: center;
    min-height: 148px;
    padding: 18px;
    border: 2px solid var(--line);
    border-radius: 8px;
    text-align: center;
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.package-option:hover,
.package-option.selected,
.package-option:has(input:checked) {
    border-color: var(--accent-strong);
    background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.package-option:hover {
    transform: translateY(-1px);
}

.package-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.package-option strong {
    font-size: 1.02rem;
}

.package-option span {
    color: var(--muted);
    line-height: 1.35;
}

.package-price {
    color: var(--accent-strong) !important;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 900;
}

.custom-package-option {
    background: color-mix(in srgb, var(--teal) 6%, var(--surface));
}

.custom-package-price {
    margin-top: 4px;
    text-align: center;
}

.price-builder {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding: 22px 24px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-2) 62%, var(--surface));
}

.price-builder h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
}

.price-line,
.price-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.price-line span,
.price-total span {
    color: var(--text);
}

.price-line strong,
.price-total strong {
    text-align: right;
}

.adjustment-line {
    padding: 10px 14px;
    border-radius: 0;
    background: color-mix(in srgb, var(--gold) 13%, var(--surface));
}

.stepper-control {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.stepper-control button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-weight: 900;
}

.stepper-control button:hover {
    border-color: var(--accent);
}

.price-total {
    padding-top: 18px;
    border-top: 2px solid var(--accent-strong);
}

.price-total strong {
    color: var(--accent-strong);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.booking-actions {
    justify-content: flex-end;
}

.booking-side-panel .panel {
    display: grid;
    gap: 10px;
    box-shadow: var(--shadow);
}

.booking-side-panel .panel h2 {
    margin-bottom: 6px;
}

.booking-side-panel .panel textarea {
    width: 100%;
    margin: 0;
}

.checkbox {
    display: inline-flex;
    grid-auto-flow: column;
    align-items: center;
    gap: 8px;
}

.checkbox input {
    width: 18px;
    min-height: 18px;
}

.auth-page .topbar {
    border-bottom: 0;
}

.auth-wrap {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    min-height: calc(100vh - 140px);
    display: grid;
    place-items: center;
    padding: 24px 0 48px;
}

.gmail-card {
    width: min(520px, 100%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(24px, 5vw, 42px);
    box-shadow: var(--shadow);
}

.gmail-card.wide {
    width: min(820px, 100%);
}

.gmail-logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #ffffff;
    background: conic-gradient(from 180deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
    margin-bottom: 22px;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.demo-reset-link {
    margin-top: 18px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    background: var(--surface-2);
}

.toast {
    width: min(1180px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    font-weight: 700;
}

.toast.success {
    background: color-mix(in srgb, var(--success) 12%, var(--surface));
    color: var(--success);
}

.toast.error {
    background: color-mix(in srgb, var(--danger) 12%, var(--surface));
    color: var(--danger);
}

.bar-chart {
    min-height: 210px;
    display: flex;
    align-items: end;
    gap: 14px;
    padding: 20px 4px 4px;
}

.bar-item {
    flex: 1;
    display: grid;
    gap: 8px;
    justify-items: center;
}

.bar {
    display: block;
    width: 100%;
    max-width: 46px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--teal), var(--accent));
}

.timeline,
.notification-list {
    display: grid;
    gap: 10px;
}

.timeline-item,
.notification-list > div {
    padding: 12px;
    border-radius: 8px;
    background: var(--surface-2);
    display: grid;
    gap: 5px;
}

.notification-list.large > div.unread {
    border-left: 4px solid var(--accent);
}

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

.upload-card-heading h2 {
    margin-bottom: 6px;
}

.upload-card-heading p {
    margin: 0;
}

.photo-management-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.photo-settings-panel {
    position: sticky;
    top: 92px;
}

.settings-summary {
    display: grid;
    gap: 10px;
}

.settings-summary > div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.settings-summary span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.settings-summary strong {
    display: block;
    overflow-wrap: anywhere;
}

.drop-zone {
    border: 2px dashed var(--line);
    min-height: 150px;
    place-items: center;
    text-align: center;
    border-radius: 8px;
    padding: 20px;
    background: var(--surface-2);
}

.drop-zone input {
    max-width: 360px;
}

.bulk-folder-picker {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-2) 62%, var(--surface));
}

.upload-summary {
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    font-weight: 700;
}

.upload-summary.warning {
    background: color-mix(in srgb, var(--warning) 14%, var(--surface));
    color: var(--warning);
}

.selected-photo-preview {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}

.selected-photo-preview[hidden] {
    display: none;
}

.selection-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 10px;
}

.selection-preview-tile,
.selection-preview-extra {
    min-height: 128px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

.selection-preview-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--surface-2);
}

.selection-preview-tile span {
    display: block;
    padding: 8px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.3;
}

.selection-preview-extra {
    display: grid;
    place-items: center;
    padding: 12px;
    color: var(--muted);
    font-weight: 900;
    text-align: center;
}

.drop-zone.dragging {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
}

.progress-track span {
    display: block;
    width: 0%;
    height: 100%;
    background: var(--teal);
    transition: width 0.2s ease;
}

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

.photo-folder-panel {
    margin-top: 18px;
}

.selection-folder {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.photo-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    display: grid;
}

.photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--surface-2);
}

.photo-card > div {
    padding: 12px;
}

.photo-card strong,
.photo-card span {
    display: block;
}

.photo-card span {
    color: var(--muted);
    font-size: 0.84rem;
    margin-top: 4px;
}

.photo-actions {
    border-top: 1px solid var(--line);
}

.photo-command-center {
    display: grid;
    grid-template-columns: minmax(220px, 0.3fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.photo-command-copy {
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    background: var(--surface-2);
}

.photo-command-copy span,
.photo-flow-overview span,
.photo-settings-head span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.photo-command-copy strong {
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.25;
}

.photo-flow-overview {
    display: grid;
    grid-template-columns: repeat(6, minmax(96px, 1fr));
    gap: 10px;
}

.photo-flow-overview > div {
    display: grid;
    align-content: space-between;
    gap: 8px;
    min-height: 82px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-2) 58%, var(--surface));
}

.photo-flow-overview strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.photo-settings-head h2 {
    margin: 2px 0 0;
}

.photo-settings-head > strong {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: var(--surface-2);
    font-size: 0.82rem;
}

.photo-flow-toolbar .filter-form {
    align-items: end;
}

.photo-flow-toolbar label,
.folder-create-form,
.folder-settings-form,
.passcode-panel {
    min-width: min(100%, 220px);
}

.folder-create-form,
.folder-settings-form,
.passcode-panel,
.photo-selection-form {
    display: grid;
    gap: 12px;
}

.folder-create-form {
    margin: 14px 0;
}

.photo-summary {
    margin-top: 14px;
}

.photo-folder-heading {
    align-items: start;
}

.photo-folder-heading > div:first-child {
    min-width: 0;
}

.photo-folder-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.folder-settings-form {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto auto auto;
    align-items: end;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.folder-settings-form .checkbox {
    min-height: 44px;
    align-content: center;
}

.passcode-panel {
    grid-template-columns: minmax(220px, 0.4fr) auto;
    align-items: end;
    max-width: 560px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.selectable-gallery {
    align-items: start;
}

.selectable-photo,
.selected-photo-card {
    border-color: color-mix(in srgb, var(--success) 26%, var(--line));
}

.photo-select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font-weight: 900;
}

.photo-select-toggle input {
    width: 18px;
    height: 18px;
}

.photo-customization-note {
    padding: 0 12px 12px;
}

.photo-customization-note textarea {
    min-height: 84px;
    resize: vertical;
}

.photo-note {
    margin: 10px 0 0;
    padding: 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--success) 9%, var(--surface-2));
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.45;
}

.selection-confirm-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.selection-confirm-bar span {
    color: var(--muted);
    font-weight: 800;
}

.compact-empty {
    margin-top: 12px;
    padding: 18px;
}

.invoice-card {
    padding: clamp(20px, 4vw, 42px);
}

.invoice-grid,
.totals-box {
    display: grid;
    gap: 12px;
}

.invoice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px 0;
}

.invoice-grid > div,
.totals-box > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.invoice-table {
    min-width: 0;
}

.totals-box {
    width: min(380px, 100%);
    margin-left: auto;
    margin-top: 18px;
}

.receipt-note {
    padding-top: 18px;
    color: var(--muted);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-head,
.calendar-day {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
    padding: 10px;
}

.calendar-head {
    font-weight: 900;
    text-align: center;
    color: var(--muted);
}

.calendar-day {
    min-height: 126px;
    display: grid;
    gap: 8px;
    align-content: start;
}

.calendar-event {
    display: block;
    padding: 7px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--teal) 12%, var(--surface));
    color: var(--text);
    font-size: 0.8rem;
}

.site-footer {
    margin-top: auto;
    padding: 20px clamp(18px, 4vw, 42px);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.empty-state {
    text-align: center;
    padding: 42px 20px;
}

code {
    background: var(--surface-2);
    border-radius: 6px;
    padding: 2px 6px;
}

@media (max-width: 1080px) {
    .hero-section,
    .dashboard-grid,
    .settings-grid,
    .form-layout,
    .split-workspace,
    .booking-management-layout,
    .photo-management-workspace {
        grid-template-columns: 1fr;
    }

    .photo-settings-panel {
        position: static;
    }

    .customer-editor-card {
        position: static;
    }

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

@media (max-width: 860px) {
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close,
    .mobile-menu {
        display: inline-flex;
        min-height: 36px;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: var(--surface);
        color: var(--text);
        align-items: center;
        justify-content: center;
        padding: 0 12px;
    }

    .sidebar-close {
        margin-left: auto;
        margin-bottom: 12px;
    }

    .topbar {
        flex-wrap: wrap;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .hero-section {
        min-height: auto;
        padding-top: 20px;
    }

    .hero-panel {
        min-height: 340px;
    }
}

@media (max-width: 640px) {
    .main-content,
    .content-wrap,
    .public-main,
    .toast,
    .auth-wrap {
        width: min(100% - 20px, 1180px);
    }

    .stat-grid,
    .feature-band,
    .branding-upload-grid,
    .grid-form,
    .package-card-grid,
    .invoice-grid,
    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .price-builder {
        padding: 18px 14px;
    }

    .price-line,
    .price-total {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .price-line strong,
    .price-total strong,
    .stepper-control {
        justify-content: space-between;
        text-align: left;
        width: 100%;
    }

    .upload-card-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-head {
        display: none;
    }

    .calendar-day {
        min-height: auto;
    }

    .toolbar,
    .filter-form,
    .inline-controls,
    .panel-heading,
    .invoice-heading {
        align-items: stretch;
    }

    .toolbar > *,
    .filter-form > *,
    .inline-controls > *,
    .panel-heading > *,
    .invoice-actions > * {
        width: 100%;
    }

    .hero-copy h1 {
        font-size: 2.7rem;
    }

    .profile-chip strong,
    .ghost-button[href$="notifications"],
    .ghost-button[href$="notifications.php"] {
        display: none;
    }
}

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

.landing-page {
    --landing-bg: #0f0f1e;
    --landing-bg-soft: #16162a;
    --landing-text: #ffffff;
    --landing-muted: #c5c7d0;
    --landing-faint: #8b8d98;
    --landing-yellow: #ffb400;
    --landing-line: rgba(255, 255, 255, 0.08);
    --landing-accent-1: #ff6b9d;
    --landing-accent-2: #00d4ff;
    --landing-accent-3: #00ff88;
    background: var(--landing-bg);
    color: var(--landing-text);
}

.landing-page .topbar {
    display: none;
}

.landing-page .page-shell,
.landing-page .app-shell {
    background: var(--landing-bg);
}

.landing-main {
    width: 100%;
    overflow: hidden;
}

.landing-container {
    width: min(100% - 32px, 1040px);
    margin: 0 auto;
}

.landing-section {
    padding: clamp(34px, 7vw, 82px) 0;
}

.landing-hero {
    min-height: 680px;
    height: min(100svh, 760px);
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(100deg, rgba(15, 15, 31, 0.98) 0%, rgba(17, 17, 38, 1) 52%, rgba(15, 15, 31, 0.98) 100%),
        #101021;
}

.landing-hero-gradient {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle at 60% 30%, rgba(255, 107, 157, 0.18) 0%, transparent 65%),
                radial-gradient(circle at 20% 70%, rgba(0, 212, 255, 0.12) 0%, transparent 65%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 42%),
        radial-gradient(closest-side at 102% 17%, rgba(0, 131, 166, 0.28), transparent 74%);
    pointer-events: none;
}

.landing-hero::after {
    content: "";
    position: absolute;
    top: -190px;
    right: -290px;
    width: 420px;
    height: 630px;
    border-radius: 50%;
    border-left: 120px solid rgba(25, 86, 116, 0.34);
    transform: rotate(7deg);
    pointer-events: none;
}

.landing-hero .hero-inner {
    display: grid;
    align-items: center;
    position: relative;
    z-index: 4;
    padding-inline: clamp(18px, 4vw, 40px);
    padding-block: clamp(32px, 8vh, 78px);
    justify-items: center;
    text-align: center;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.landing-hero .hero-copy {
    width: 100%;
    max-width: 616px;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 36px;
    padding: 9px 17px;
    background: linear-gradient(90deg, rgba(255, 86, 151, 0.15), rgba(15, 91, 129, 0.22));
    border: 1px solid rgba(255, 89, 159, 0.32);
    border-radius: 999px;
    color: var(--landing-muted);
    font-size: 0.92rem;
    font-weight: 800;
    max-width: 260px;
    width: auto;
    white-space: nowrap;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(33, 161, 204, 0.14);
}

.hero-badge span {
    color: var(--landing-yellow);
    font-size: 0.86rem;
}

.landing-kicker {
    margin: 0 0 10px;
    color: var(--landing-yellow);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-hero .hero-copy h1,
.landing-main h1,
.landing-main h2,
.landing-main h3 {
    color: var(--landing-text);
    letter-spacing: 0;
}

.landing-hero .hero-copy h1 {
    margin: 0 0 30px;
    max-width: 616px;
    font-size: clamp(4.35rem, 8vw, 5.35rem);
    line-height: 1.07;
    font-weight: 900;
    letter-spacing: 0;
    color: var(--landing-text);
    text-shadow: 0 12px 34px rgba(3, 6, 12, 0.36);
    text-align: center;
}

.landing-hero .hero-copy p,
.landing-main p {
    color: var(--landing-muted);
}

.landing-hero .hero-copy p {
    max-width: 610px;
    margin: 0 0 34px;
    font-size: 1.06rem;
    line-height: 1.55;
    font-weight: 650;
}

.landing-button,
.dark-button,
.text-button {
    min-height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    border: 1px solid transparent;
    font-weight: 900;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.landing-button.primary {
    background: linear-gradient(135deg, var(--landing-accent-1) 0%, var(--landing-yellow) 100%);
    color: #0f0f1e;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.3);
}

.landing-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(255, 107, 157, 0.4);
}

.landing-button.outline {
    border-color: rgba(255, 255, 255, 0.86);
    color: var(--landing-text);
    background: rgba(255, 255, 255, 0.015);
    min-width: 160px;
}

.landing-button.outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--landing-yellow);
    color: var(--landing-yellow);
    transform: translateY(-2px);
}

.hero-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 0;
    justify-content: flex-start;
}

/* Hero media (image card) -- hidden on small screens, visible on desktop */
.hero-media {
    display: none;
}

@media (min-width: 900px) {

    .landing-hero .hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
        align-items: center;
        justify-items: center;
    }

    .hero-media {
        display: none;
    }

    .media-frame {
        position: relative;
        border-radius: 14px;
        overflow: hidden;
        background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
        box-shadow: 0 30px 60px rgba(3,6,12,0.45);
        min-height: 300px;
    }

    .media-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 520ms cubic-bezier(0.2,0.9,0.2,1);
        transform-origin: center center;
    }

    .media-overlay {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        background: linear-gradient(180deg, transparent 0%, rgba(3,6,12,0.62) 60%);
        color: #fff;
    }

    .media-play {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--landing-accent-1), var(--landing-yellow));
        border: none;
        color: #0f0f1e;
        font-weight: 900;
        box-shadow: 0 8px 24px rgba(0,0,0,0.36);
        display: inline-grid;
        place-items: center;
        cursor: pointer;
    }

    .media-caption strong { display:block; font-weight:800; color:#fff; }
    .media-caption span { display:block; font-size:0.9rem; color:rgba(255,255,255,0.85); }

    .hero-media:hover .media-frame img { transform: scale(1.04); }
}

/* Left-align hero content on wide screens for better composition */
@media (min-width: 900px) {
    .landing-hero .hero-inner {
        justify-items: center;
        align-items: center;
        text-align: left;
        padding-inline: clamp(18px, 4vw, 40px);
        padding-block: clamp(32px, 8vh, 78px);
    }

    .landing-hero .hero-copy {
        align-items: flex-start;
        text-align: left;
        padding-right: 0;
        margin: 0 auto;
    }

    .hero-badge {
        justify-content: flex-start;
        margin-left: 0;
    }

    .hero-cta {
        justify-content: flex-start;
    }

    .landing-hero .hero-copy h1 {
        font-size: clamp(4.35rem, 8vw, 5.35rem);
        max-width: 616px;
        text-align: center;
    }
}

.landing-button.small {
    min-height: 32px;
    padding-inline: 14px;
    font-size: 0.75rem;
}

.section-heading {
    margin: 0 0 clamp(18px, 4vw, 34px);
}

.section-heading.center,
.center {
    text-align: center;
}

.section-heading h2,
.landing-main h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.section-heading p {
    max-width: 620px;
    margin: 10px auto 0;
    font-size: 0.9rem;
}

.landing-main span,
.landing-main h2 span {
    color: var(--landing-yellow);
}

.compact-split,
.story-split,
.production-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.92fr);
    gap: clamp(18px, 4vw, 46px);
    align-items: center;
}

.compact-split p,
.story-copy p,
.production-panel p,
.security-section p,
.price-section p {
    margin-top: 0;
    font-size: 0.92rem;
    line-height: 1.72;
}

.photo-frame,
.tall-photo,
.production-panel figure,
.trust-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #101010;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--landing-line);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.photo-frame img,
.tall-photo img,
.production-panel img,
.trust-photo img,
.person-card img,
.map-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.compact-split:hover .photo-frame img,
.compact-split:hover .tall-photo img,
.story-split:hover .photo-frame img,
.story-split:hover .tall-photo img {
    transform: scale(1.04);
}

.photo-frame {
    aspect-ratio: 1.56 / 1;
}

.tall-photo {
    min-height: 420px;
}

.trust-section,
.people-section,
.production-section {
    background: var(--landing-bg-soft);
}

.trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.72fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.trust-card {
    min-height: 180px;
    padding: 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid var(--landing-line);
    display: grid;
    align-content: start;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trust-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--landing-accent-1) 0%, var(--landing-yellow) 50%, var(--landing-accent-2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trust-card:hover {
    border-color: rgba(255, 107, 157, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(255, 107, 157, 0.1);
}

.trust-card:hover::before {
    opacity: 1;
}

.trust-card strong {
    color: var(--landing-text);
    font-size: 0.78rem;
    margin-bottom: 8px;
}

.trust-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.18;
}

.trust-card p {
    margin: 0;
    color: var(--landing-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.trust-card::after {
    content: "+";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    background: var(--landing-yellow);
    color: #101010;
    font-weight: 900;
    font-size: 0.78rem;
}

.trust-card-1 {
    grid-column: 1;
}

.trust-card-2 {
    grid-column: 3;
}

.trust-card-3 {
    grid-column: 1;
}

.trust-card-4 {
    grid-column: 3;
}

.trust-photo {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    min-height: 260px;
}

.story-section {
    background: var(--landing-bg);
}

.story-section.alt {
    padding-top: 0;
}

.story-copy h2 {
    margin-bottom: 16px;
}

.story-copy p {
    color: var(--landing-muted);
}

.reverse {
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1fr);
}

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

.person-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--landing-line);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 255, 136, 0.03) 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.person-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.person-card:hover {
    border-color: var(--landing-accent-2);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

.person-card:hover::before {
    left: 100%;
}

.person-card img {
    aspect-ratio: 1 / 1.1;
    border-radius: 8px;
    filter: saturate(0.85);
    transition: filter 0.3s ease;
}

.person-card:hover img {
    filter: saturate(1);
}

.person-card h3 {
    margin: 12px 0 4px;
    color: var(--landing-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.person-card p {
    margin: 0;
    color: var(--landing-accent-2);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.dot-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 18px;
}

.dot-row span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--landing-yellow);
    opacity: 0.45;
}

.dot-row span:first-child {
    opacity: 1;
}

.process-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.process-track::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 9%;
    right: 9%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--landing-accent-1) 20%, var(--landing-accent-2) 50%, var(--landing-accent-3) 80%, transparent);
}

.process-step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.process-step span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--landing-accent-1), var(--landing-yellow));
    color: #0f0f1e;
    font-weight: 900;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

.process-step:hover span {
    transform: scale(1.1);
    box-shadow: 0 12px 28px rgba(255, 107, 157, 0.4);
}

.process-step h3 {
    margin: 0;
    max-width: 120px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--landing-text);
}

.production-panel {
    min-height: 300px;
}

.production-panel h2 {
    margin-bottom: 14px;
    color: var(--landing-text);
}

.production-panel span {
    color: var(--landing-yellow);
}

.production-panel figure {
    justify-self: end;
    width: min(320px, 100%);
    height: 260px;
}

.story-split:hover .production-panel figure,
.compact-split:hover .production-panel figure {
    transform: scale(1.03);
}

.testimonial-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.testimonial-row::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--landing-line);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.06) 0%, rgba(0, 255, 136, 0.04) 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.testimonial-card:hover {
    border-color: var(--landing-accent-1);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(255, 107, 157, 0.12);
}

.stars {
    color: var(--landing-yellow);
    font-size: 0.85rem;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

.testimonial-card p {
    margin: 16px 0 auto;
    color: var(--landing-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-card strong {
    color: var(--landing-text);
    font-size: 0.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.security-section .photo-frame {
    aspect-ratio: 1.25 / 1;
}

.price-section {
    padding-top: 22px;
}

.price-section .landing-container {
    max-width: 720px;
}

.price-section h2 span {
    color: var(--landing-yellow);
}

.price-section p {
    width: min(560px, 100%);
    margin: 10px auto 18px;
}

.yellow-cta {
    padding: clamp(48px, 8vw, 80px) 0;
    background: linear-gradient(135deg, var(--landing-accent-1) 0%, var(--landing-yellow) 50%, var(--landing-accent-2) 100%);
    color: #0f0f1e;
    position: relative;
    overflow: hidden;
}

.yellow-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20,50 Q30,30 40,50 T60,50' stroke='rgba(255,255,255,0.05)' fill='none' stroke-width='1'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.yellow-cta h2 {
    color: #0f0f1e;
    margin: 0 0 12px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.yellow-cta p {
    width: min(600px, 100%);
    margin: 0 auto 24px;
    color: rgba(15, 15, 30, 0.8);
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.dark-button {
    background: #0f0f1e;
    color: var(--landing-yellow);
    font-weight: 800;
    transition: all 0.3s ease;
}

.dark-button:hover {
    background: rgba(15, 15, 30, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 15, 30, 0.3);
}

.text-button {
    color: #0f0f1e;
    border-color: #0f0f1e;
    font-weight: 700;
    transition: all 0.3s ease;
}

.map-section {
    height: 260px;
    background: #dce4ec;
    overflow: hidden;
}

.map-section img {
    display: block;
}

.landing-footer {
    padding: 30px 0 18px;
    background: #171717;
    color: var(--landing-text);
}

.footer-newsletter {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 0.58fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 28px;
}

.footer-newsletter h2 {
    margin: 0;
    color: var(--landing-yellow);
    font-size: clamp(1.2rem, 3vw, 2rem);
}

.footer-newsletter form {
    display: flex;
    gap: 8px;
}

.footer-newsletter input {
    min-height: 34px;
    border-radius: 999px;
    border: 0;
    background: #f4f4f4;
    color: #151515;
}

.footer-newsletter button {
    min-height: 34px;
    border-radius: 999px;
    border: 0;
    padding: 0 15px;
    background: var(--landing-yellow);
    color: #151515;
    font-weight: 900;
    font-size: 0.74rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(230px, 1.2fr) repeat(3, minmax(140px, 0.7fr));
    gap: 24px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--landing-text);
    text-decoration: none;
    font-weight: 900;
}

.footer-logo span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--landing-yellow);
    color: #151515;
}

.footer-logo .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 50%;
}

.footer-brand p,
.footer-contact p {
    color: var(--landing-muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

.footer-grid h3 {
    margin: 0 0 12px;
    color: var(--landing-text);
    font-size: 0.86rem;
    text-transform: uppercase;
}

.footer-grid nav,
.footer-contact {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-grid a {
    color: var(--landing-muted);
    font-size: 0.82rem;
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--landing-yellow);
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--landing-yellow);
    color: #151515;
    font-size: 0.68rem;
    font-weight: 900;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--landing-line);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--landing-faint);
    font-size: 0.78rem;
}

@media (max-width: 720px) {
    .landing-container {
        width: min(100% - 12px, 1040px);
    }

    .landing-section {
        padding: 32px 0;
    }

    .landing-hero {
        min-height: 620px;
        height: auto;
    }

    .landing-hero .hero-copy {
        width: 100%;
        max-width: 520px;
        padding-top: 0;
    }

    .landing-hero .hero-copy h1 {
        font-size: clamp(3rem, 14vw, 4.4rem);
        line-height: 1.07;
        margin-bottom: 22px;
    }

    .landing-hero .hero-copy p {
        font-size: 0.95rem;
        line-height: 1.58;
        margin-bottom: 28px;
    }

    .hero-badge {
        margin-bottom: 26px;
        font-size: 0.78rem;
    }

    .landing-hero .hero-cta {
        flex-wrap: wrap;
    }

    .landing-hero .landing-button {
        min-height: 42px;
        padding-inline: 18px;
        font-size: 0.82rem;
    }

    .landing-kicker {
        font-size: 0.55rem;
        margin-bottom: 4px;
    }

    .landing-button {
        min-height: 21px;
        padding-inline: 9px;
        font-size: 0.48rem;
    }

    .landing-button.small,
    .dark-button,
    .text-button {
        min-height: 20px;
        padding-inline: 9px;
        font-size: 0.48rem;
    }

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

    .section-heading h2,
    .landing-main h2 {
        font-size: 0.86rem;
        line-height: 1.2;
    }

    .section-heading p {
        font-size: 0.56rem;
        line-height: 1.45;
    }

    .compact-split,
    .story-split,
    .reverse,
    .production-panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
        gap: 12px;
    }

    .compact-split p,
    .story-copy p,
    .production-panel p,
    .security-section p,
    .price-section p {
        font-size: 0.5rem;
        line-height: 1.55;
        margin-bottom: 8px;
    }

    .photo-frame {
        border-radius: 5px;
    }

    .tall-photo {
        min-height: 160px;
        border-radius: 3px;
    }

    .trust-grid {
        grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
        gap: 10px;
    }

    .trust-card {
        min-height: 120px;
        padding: 9px;
    }

    .trust-card strong,
    .trust-card p {
        font-size: 0.48rem;
    }

    .trust-card h3 {
        font-size: 0.58rem;
        line-height: 1.2;
    }

    .trust-card::after {
        top: 7px;
        right: 7px;
        width: 13px;
        height: 13px;
        font-size: 0.5rem;
    }

    .trust-photo {
        min-height: 122px;
        border-radius: 3px;
    }

    .people-grid {
        gap: 7px;
    }

    .person-card {
        padding: 4px;
        border-radius: 4px;
    }

    .person-card img {
        border-radius: 3px;
    }

    .person-card h3 {
        margin-top: 5px;
        font-size: 0.46rem;
    }

    .person-card p {
        font-size: 0.4rem;
    }

    .process-track {
        gap: 6px;
    }

    .process-track::before {
        top: 14px;
    }

    .process-step span {
        width: 29px;
        height: 29px;
        font-size: 0.5rem;
    }

    .process-step h3 {
        font-size: 0.43rem;
        line-height: 1.18;
    }

    .production-panel {
        min-height: 130px;
    }

    .production-panel figure {
        width: 100%;
        height: 118px;
        border-radius: 3px;
    }

    .testimonial-row {
        grid-auto-columns: 78%;
        gap: 9px;
    }

    .testimonial-card {
        min-height: 132px;
        padding: 10px;
        border-radius: 4px;
    }

    .stars,
    .testimonial-card strong {
        font-size: 0.48rem;
    }

    .testimonial-card p {
        font-size: 0.49rem;
        line-height: 1.55;
        margin: 8px 0;
    }

    .yellow-cta {
        padding: 28px 0;
    }

    .yellow-cta h2 {
        font-size: 0.92rem;
    }

    .yellow-cta p {
        font-size: 0.54rem;
        line-height: 1.5;
    }

    .map-section {
        height: 145px;
    }

    .footer-newsletter {
        grid-template-columns: minmax(0, 1fr) minmax(120px, 0.78fr);
        gap: 8px;
    }

    .footer-newsletter h2 {
        font-size: 0.72rem;
    }

    .footer-newsletter input,
    .footer-newsletter button {
        min-height: 22px;
        font-size: 0.46rem;
        padding: 0 8px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.72fr));
        gap: 10px;
    }

    .footer-logo {
        gap: 5px;
        font-size: 0.5rem;
    }

    .footer-logo span {
        width: 25px;
        height: 25px;
        font-size: 0.48rem;
    }

    .footer-brand p,
    .footer-contact p,
    .footer-grid a,
    .footer-bottom {
        font-size: 0.45rem;
        line-height: 1.45;
    }

    .footer-grid h3 {
        margin-bottom: 5px;
        font-size: 0.5rem;
    }

    .footer-social a {
        width: 17px;
        height: 17px;
        font-size: 0.4rem;
    }
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 107, 157, 0.3);
    }
    50% {
        box-shadow: 0 12px 36px rgba(255, 107, 157, 0.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

.landing-hero .hero-copy {
    animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.landing-hero .hero-copy h1 {
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.landing-hero .hero-copy p {
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.hero-cta {
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.trust-card {
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.trust-card:nth-child(1) { animation-delay: 0.1s; }
.trust-card:nth-child(2) { animation-delay: 0.2s; }
.trust-card:nth-child(3) { animation-delay: 0.3s; }
.trust-card:nth-child(4) { animation-delay: 0.4s; }

.person-card {
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.testimonial-card {
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

@media (max-width: 420px) {
    .landing-container {
        width: min(100% - 10px, 1040px);
    }

    .landing-hero .hero-copy {
        width: 100%;
        max-width: 360px;
    }

    .landing-hero .hero-copy h1 {
        font-size: clamp(2.55rem, 15vw, 3.5rem);
    }

    .intro-section {
        padding-top: 20px;
    }

    .story-section {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .testimonial-row {
        grid-auto-columns: 64%;
    }

    .footer-newsletter form {
        gap: 5px;
    }
}

.studio-redesign {
    --studio-bg: #101114;
    --studio-panel: #17191d;
    --studio-panel-soft: #202328;
    --studio-text: #fbf7ef;
    --studio-muted: #c7beb0;
    --studio-line: rgba(255, 255, 255, 0.12);
    --studio-gold: #f3c969;
    --studio-rose: #d76f6a;
    --studio-ink: #101114;
    background: var(--studio-bg);
    color: var(--studio-text);
}

.studio-redesign .page-shell,
.studio-redesign .app-shell {
    background:
        radial-gradient(circle at top left, rgba(215, 111, 106, 0.12), transparent 34rem),
        linear-gradient(180deg, #101114 0%, #141519 42%, #101114 100%);
}

.studio-landing {
    overflow: hidden;
    background: transparent;
}

.studio-container,
.studio-nav {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.studio-nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--studio-line);
}

.studio-logo,
.studio-nav-links,
.studio-actions,
.studio-nav-action {
    display: inline-flex;
    align-items: center;
}

.studio-logo {
    gap: 10px;
    color: var(--studio-text);
    text-decoration: none;
}

.studio-logo span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--studio-gold);
    color: var(--studio-ink);
    font-weight: 900;
    letter-spacing: 0;
}

.studio-logo strong {
    font-size: 0.98rem;
}

.studio-logo .brand-logo {
    border-color: var(--studio-line);
    border-radius: 50%;
}

.studio-nav-links {
    gap: 24px;
}

.studio-nav-links a,
.studio-nav-action {
    color: var(--studio-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 750;
}

.studio-nav-links a:hover,
.studio-nav-action:hover {
    color: var(--studio-gold);
    text-decoration: none;
}

.studio-nav-action {
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--studio-line);
    border-radius: 999px;
}

.studio-hero {
    padding: clamp(56px, 9vw, 108px) 0 clamp(46px, 7vw, 84px);
}

.studio-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: clamp(34px, 6vw, 80px);
    align-items: center;
}

.studio-hero-copy {
    max-width: 560px;
}

.studio-eyebrow {
    margin: 0 0 14px;
    color: var(--studio-gold);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.studio-hero h1,
.studio-section h2,
.studio-cta h2 {
    margin: 0;
    color: var(--studio-text);
    letter-spacing: 0;
}

.studio-hero h1 {
    max-width: 560px;
    font-size: clamp(3rem, 6.2vw, 6.3rem);
    line-height: 0.95;
}

.studio-hero-copy > p:not(.studio-eyebrow),
.studio-section-head > p:not(.studio-eyebrow),
.studio-editorial p,
.studio-reviews p,
.studio-cta p {
    color: var(--studio-muted);
    line-height: 1.72;
}

.studio-hero-copy > p:not(.studio-eyebrow) {
    margin: 24px 0 0;
    max-width: 510px;
    font-size: 1.02rem;
}

.studio-actions {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.studio-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 900;
    color: var(--studio-text);
}

.studio-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.studio-button.primary {
    background: var(--studio-gold);
    color: var(--studio-ink);
}

.studio-button.secondary {
    border-color: var(--studio-line);
    background: rgba(255, 255, 255, 0.04);
}

.studio-hero-gallery {
    min-height: 560px;
    display: grid;
    grid-template-columns: 1fr 0.68fr;
    grid-template-rows: 1fr 190px;
    gap: 16px;
}

.hero-photo,
.portfolio-card,
.studio-editorial figure {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--studio-panel-soft);
    border: 1px solid var(--studio-line);
}

.hero-photo img,
.portfolio-card img,
.studio-editorial img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo-large {
    grid-row: 1 / span 2;
}

.hero-note {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(243, 201, 105, 0.45);
    background: linear-gradient(135deg, rgba(243, 201, 105, 0.96), rgba(215, 111, 106, 0.94));
    color: var(--studio-ink);
    display: grid;
    align-content: end;
}

.hero-note strong {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.hero-note span {
    color: rgba(16, 17, 20, 0.78);
    font-weight: 850;
    line-height: 1.35;
}

.studio-stats {
    padding: 18px 0;
    border-block: 1px solid var(--studio-line);
    background: rgba(255, 255, 255, 0.025);
}

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

.stats-grid article {
    min-height: 92px;
    display: grid;
    place-items: center;
    text-align: center;
    border-right: 1px solid var(--studio-line);
}

.stats-grid article:last-child {
    border-right: 0;
}

.stats-grid strong {
    color: var(--studio-text);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1;
}

.stats-grid span {
    color: var(--studio-muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.studio-section {
    padding: clamp(64px, 9vw, 110px) 0;
}

.studio-section-head {
    max-width: 720px;
    margin-bottom: clamp(28px, 5vw, 48px);
}

.studio-section-head.compact {
    max-width: 780px;
}

.studio-section h2,
.studio-cta h2 {
    font-size: clamp(2rem, 4.2vw, 4.1rem);
    line-height: 1.02;
}

.studio-section-head > p:not(.studio-eyebrow) {
    max-width: 620px;
    margin: 18px 0 0;
}

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

.service-card,
.process-card,
.review-card {
    border: 1px solid var(--studio-line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.service-card {
    min-height: 238px;
    padding: 26px;
    display: grid;
    align-content: end;
}

.service-card h3,
.process-card h3 {
    margin: 0 0 12px;
    color: var(--studio-text);
    font-size: 1.24rem;
}

.service-card p,
.process-card p,
.review-card p {
    margin: 0;
    color: var(--studio-muted);
    line-height: 1.65;
}

.studio-editorial {
    background: #f3eadc;
    color: #17130e;
}

.studio-editorial .studio-eyebrow {
    color: #a56231;
}

.studio-editorial h2,
.studio-editorial p {
    color: #17130e;
}

.editorial-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
    gap: clamp(32px, 7vw, 86px);
    align-items: center;
}

.studio-editorial figure {
    aspect-ratio: 0.86 / 1;
    border-color: rgba(23, 19, 14, 0.12);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.feature-list span {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #17130e;
    font-weight: 850;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.portfolio-card {
    min-height: 430px;
    position: relative;
}

.portfolio-card:nth-child(2) {
    min-height: 510px;
}

.portfolio-card figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(16, 17, 20, 0.72);
    color: var(--studio-text);
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.studio-process {
    background: var(--studio-panel);
}

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

.process-card {
    min-height: 260px;
    padding: 22px;
}

.process-card span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 52px;
    border-radius: 50%;
    background: var(--studio-gold);
    color: var(--studio-ink);
    font-weight: 950;
}

.reviews-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(240px, 0.95fr));
    gap: 18px;
    align-items: stretch;
}

.review-card {
    padding: 24px;
}

.review-card div {
    color: var(--studio-gold);
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.review-card strong {
    display: block;
    margin-top: 20px;
    color: var(--studio-text);
}

.studio-cta {
    padding: 0 0 clamp(70px, 9vw, 120px);
}

.cta-panel {
    min-height: 330px;
    padding: clamp(28px, 6vw, 58px);
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    border-radius: 8px;
    background:
        linear-gradient(115deg, rgba(16, 17, 20, 0.36), rgba(16, 17, 20, 0.92)),
        url("https://images.unsplash.com/photo-1507504031003-b417219a0fde?auto=format&fit=crop&w=1400&q=80") center / cover;
    border: 1px solid var(--studio-line);
}

.cta-panel p:not(.studio-eyebrow) {
    max-width: 560px;
    margin-bottom: 0;
}

.studio-redesign .landing-footer {
    background: #0c0d10;
    border-top: 1px solid var(--studio-line);
}

.studio-redesign .footer-newsletter h2,
.studio-redesign .footer-grid a:hover {
    color: var(--studio-gold);
}

.studio-redesign .footer-newsletter button,
.studio-redesign .footer-logo span,
.studio-redesign .footer-social a {
    background: var(--studio-gold);
    color: var(--studio-ink);
}

@media (max-width: 980px) {
    .studio-nav {
        min-height: auto;
        padding: 18px 0;
        align-items: flex-start;
    }

    .studio-nav-links {
        display: none;
    }

    .studio-hero-grid,
    .editorial-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .studio-hero-gallery {
        min-height: 480px;
        grid-template-columns: 1fr 1fr;
    }

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

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

    .portfolio-card,
    .portfolio-card:nth-child(2) {
        min-height: 360px;
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .studio-container,
    .studio-nav {
        width: min(100% - 24px, 1180px);
    }

    .studio-nav-action {
        display: none;
    }

    .studio-logo strong {
        font-size: 0.88rem;
    }

    .studio-hero {
        padding-top: 42px;
    }

    .studio-hero h1 {
        font-size: clamp(2.65rem, 16vw, 4rem);
    }

    .studio-hero-gallery {
        min-height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .hero-photo,
    .hero-photo-large {
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }

    .stats-grid,
    .service-grid,
    .process-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .stats-grid article {
        border-right: 0;
        border-bottom: 1px solid var(--studio-line);
    }

    .stats-grid article:last-child {
        border-bottom: 0;
    }

    .studio-section {
        padding: 52px 0;
    }

    .service-card,
    .process-card {
        min-height: auto;
    }

    .process-card span {
        margin-bottom: 28px;
    }

    .portfolio-card,
    .portfolio-card:nth-child(2) {
        min-height: 300px;
    }

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

    .studio-button {
        width: 100%;
    }
}

/* 2026 interface refresh */
:root {
    --bg: #f5f7f9;
    --surface: #ffffff;
    --surface-2: #eef3f5;
    --text: #191d23;
    --muted: #66717f;
    --line: #dfe6eb;
    --accent: #b84d66;
    --accent-strong: #893449;
    --teal: #0f7a7b;
    --gold: #a87a23;
    --success: #167254;
    --warning: #a66b10;
    --danger: #b3323b;
    --shadow: 0 18px 48px rgba(25, 29, 35, 0.09);
    --shadow-soft: 0 8px 22px rgba(25, 29, 35, 0.06);
    --ring: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent);
    --sidebar: 282px;
}

[data-theme="dark"] {
    --bg: #111417;
    --surface: #191e23;
    --surface-2: #20272d;
    --text: #f4f6f5;
    --muted: #a9b2bd;
    --line: #303941;
    --accent: #e0718c;
    --accent-strong: #f08da4;
    --teal: #56bdba;
    --gold: #dbb45e;
    --success: #58c89c;
    --warning: #e0ae53;
    --danger: #ed7179;
    --shadow: 0 20px 58px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.24);
}

body {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 70%, var(--bg)) 0, var(--bg) 320px),
        var(--bg);
    font-size: 15px;
}

a {
    color: var(--teal);
    font-weight: 700;
}

a:hover {
    color: var(--accent-strong);
}

.page-shell {
    background:
        linear-gradient(90deg, rgba(15, 122, 123, 0.035) 0 1px, transparent 1px 64px),
        linear-gradient(180deg, transparent 0, transparent 64px, rgba(184, 77, 102, 0.03) 65px),
        transparent;
}

.sidebar {
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, #181d22 0%, #12161a 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 16px 0 38px rgba(15, 18, 22, 0.18);
}

.sidebar-profile {
    padding: 6px 4px 20px;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sidebar-profile strong {
    color: #ffffff;
    font-size: 0.98rem;
}

.avatar {
    background: linear-gradient(135deg, var(--accent), var(--teal));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.nav-list {
    gap: 7px;
}

.nav-list a,
.logout-link {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px 0 16px;
    color: rgba(255, 255, 255, 0.74);
    border: 1px solid transparent;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav-list a::before,
.logout-link::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.34);
}

.nav-list a:hover,
.nav-list a.active,
.logout-link:hover {
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-list a.active::before {
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(219, 180, 94, 0.16);
}

.logout-link {
    margin-top: auto;
}

.topbar {
    min-height: 76px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 10px 32px rgba(25, 29, 35, 0.055);
}

.brand {
    min-width: 0;
    font-size: 0.98rem;
}

.brand-mark,
.profile-chip span {
    background: linear-gradient(135deg, var(--accent), var(--teal));
}

.brand-logo,
.brand-mark {
    box-shadow: var(--shadow-soft);
}

.mobile-menu,
.icon-button {
    width: 42px;
    padding: 0;
}

.sun-icon,
.moon-icon {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    overflow: hidden;
    color: transparent;
}

.sun-icon::before,
.moon-icon::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent);
}

.moon-icon::before {
    background: var(--teal);
    box-shadow: inset -4px 0 0 var(--surface), 0 0 0 3px color-mix(in srgb, var(--teal) 16%, transparent);
}

.topbar-actions .ghost-button[href$="notifications"],
.topbar-actions .ghost-button[href$="notifications.php"] {
    background: color-mix(in srgb, var(--teal) 8%, var(--surface));
    color: var(--teal);
}

.profile-chip {
    min-height: 42px;
    box-shadow: var(--shadow-soft);
}

.main-content,
.content-wrap,
.public-main {
    width: min(1240px, calc(100% - 36px));
    padding: 34px 0 58px;
}

.content-wrap.narrow {
    width: min(760px, calc(100% - 36px));
}

.page-heading {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.page-heading h1 {
    max-width: 920px;
    font-weight: 900;
    letter-spacing: 0;
}

.page-heading p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.eyebrow {
    color: var(--teal);
    letter-spacing: 0.1em;
}

.panel,
.form-card,
.stat-card,
.invoice-card,
.empty-state,
.booking-section,
.feature-band article,
.split-grid > div {
    border-color: color-mix(in srgb, var(--line) 82%, var(--surface));
    box-shadow: var(--shadow-soft);
}

.panel,
.form-card,
.empty-state,
.feature-band article,
.split-grid > div {
    padding: clamp(18px, 2.5vw, 24px);
}

.panel:hover,
.form-card:hover,
.stat-card:hover {
    border-color: color-mix(in srgb, var(--teal) 26%, var(--line));
}

.panel-heading {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.panel-heading h2,
.form-card h2,
.booking-section-head h2 {
    margin: 0;
    font-weight: 900;
}

.stat-grid {
    gap: 14px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    display: grid;
    align-content: space-between;
    padding: 20px;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--accent);
}

.stat-card:nth-child(2)::before {
    background: var(--teal);
}

.stat-card:nth-child(3)::before {
    background: var(--gold);
}

.stat-card:nth-child(4)::before {
    background: var(--success);
}

.stat-card span,
.mini-card span,
.invoice-grid span,
.totals-box span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.stat-card strong {
    color: var(--text);
    line-height: 1;
    letter-spacing: 0;
}

.toolbar {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    box-shadow: var(--shadow-soft);
}

.filter-form,
.search-inline,
.inline-controls {
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-2) 46%, var(--surface));
}

.panel .inline-controls,
.panel .search-inline {
    margin-bottom: 14px;
}

input,
select,
textarea {
    min-height: 44px;
    background: color-mix(in srgb, var(--surface) 94%, var(--bg));
    border-color: color-mix(in srgb, var(--line) 88%, var(--surface));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

input[type="file"] {
    padding: 8px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--teal);
    box-shadow: var(--ring);
}

form label {
    color: color-mix(in srgb, var(--muted) 86%, var(--text));
}

.primary-button,
.ghost-button,
.danger-button,
.text-link,
.icon-button,
.photo-actions button,
.row-actions button {
    min-height: 42px;
    border-radius: 8px;
    font-weight: 850;
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 10px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.icon-button:hover,
.photo-actions button:hover,
.row-actions button:hover {
    transform: translateY(-1px);
}

.ghost-button,
.icon-button,
.photo-actions button,
.row-actions button {
    background: color-mix(in srgb, var(--surface) 92%, var(--bg));
}

.table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

table {
    border-collapse: separate;
    border-spacing: 0;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: color-mix(in srgb, var(--surface-2) 76%, var(--surface));
    color: color-mix(in srgb, var(--muted) 82%, var(--text));
    letter-spacing: 0.06em;
}

td {
    background: var(--surface);
}

tbody tr:hover td {
    background: color-mix(in srgb, var(--teal) 4%, var(--surface));
}

tr:last-child td {
    border-bottom: 0;
}

.status {
    border-radius: 8px;
    border: 1px solid transparent;
}

.status.approved,
.status.completed,
.status.confirmed,
.status.paid,
.status.active,
.status.delivered {
    border-color: color-mix(in srgb, var(--success) 24%, transparent);
}

.status.pending,
.status.in_progress,
.status.partial,
.status.designing,
.status.printing {
    border-color: color-mix(in srgb, var(--warning) 26%, transparent);
}

.status.cancelled,
.status.rejected,
.status.inactive,
.status.archived,
.status.unpaid {
    border-color: color-mix(in srgb, var(--danger) 24%, transparent);
}

.dashboard-grid {
    gap: 18px;
}

.bar-chart {
    padding: 22px 8px 8px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-2) 48%, var(--surface));
}

.bar {
    background: linear-gradient(180deg, var(--teal), var(--accent));
    box-shadow: 0 10px 16px color-mix(in srgb, var(--teal) 18%, transparent);
}

.timeline-item,
.notification-list > div,
.settings-summary > div,
.upload-summary,
.demo-reset-link {
    background: color-mix(in srgb, var(--surface-2) 68%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
}

.timeline-item strong,
.notification-list strong {
    color: var(--text);
}

.notification-list.large > div.unread {
    border-left-color: var(--teal);
    background: color-mix(in srgb, var(--teal) 7%, var(--surface));
}

.booking-section-head {
    border-bottom-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.package-option {
    background: color-mix(in srgb, var(--surface) 94%, var(--bg));
    box-shadow: var(--shadow-soft);
}

.package-option:hover,
.package-option.selected,
.package-option:has(input:checked) {
    border-color: var(--teal);
    background: color-mix(in srgb, var(--teal) 7%, var(--surface));
}

.price-builder {
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
}

.adjustment-line {
    border-radius: 8px;
}

.stepper-control button {
    border-radius: 8px;
}

.photo-management-workspace,
.booking-management-layout,
.split-workspace,
.settings-grid {
    gap: 20px;
}

.drop-zone {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--teal) 7%, var(--surface)), color-mix(in srgb, var(--accent) 5%, var(--surface)));
}

.gallery-grid {
    gap: 16px;
}

.photo-card {
    box-shadow: var(--shadow-soft);
}

.photo-card img {
    transition: transform 0.18s ease;
}

.photo-card:hover img {
    transform: scale(1.025);
}

.settings-media-preview,
.selected-photo-preview,
.bulk-folder-picker {
    background: color-mix(in srgb, var(--surface-2) 68%, var(--surface));
}

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

.access-scope-list,
.customer-audit-list {
    display: grid;
    gap: 8px;
}

.access-scope-list {
    max-height: 260px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-2) 58%, var(--surface));
}

.access-scope-list .checkbox {
    justify-content: start;
    padding: 8px;
    border-radius: 8px;
    background: var(--surface);
}

.customer-audit-list > div {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-2) 62%, var(--surface));
}

.customer-audit-list span,
.customer-audit-list small {
    color: var(--muted);
}

.calendar-grid {
    gap: 10px;
}

.calendar-head {
    min-height: 42px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
}

.calendar-day {
    box-shadow: var(--shadow-soft);
}

.calendar-event {
    border: 1px solid color-mix(in srgb, var(--teal) 24%, transparent);
    background: color-mix(in srgb, var(--teal) 10%, var(--surface));
    font-weight: 800;
}

.invoice-card {
    box-shadow: var(--shadow);
}

.invoice-grid > div,
.totals-box > div {
    background: color-mix(in srgb, var(--surface-2) 46%, var(--surface));
}

.site-footer {
    background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.auth-page .page-shell {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--teal) 9%, var(--bg)), transparent 46%),
        linear-gradient(225deg, color-mix(in srgb, var(--accent) 8%, var(--bg)), transparent 44%),
        var(--bg);
}

.gmail-card {
    border-color: color-mix(in srgb, var(--line) 70%, var(--surface));
    box-shadow: var(--shadow);
}

.gmail-logo {
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.gmail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    background: #ffffff;
}

.gmail-copy h1 {
    margin-bottom: 8px;
}

.gmail-copy p {
    margin: 0;
    color: var(--muted);
}

.toast {
    box-shadow: var(--shadow-soft);
}

.studio-redesign {
    --studio-bg: #101215;
    --studio-panel: #181c20;
    --studio-panel-soft: #22272c;
    --studio-text: #fbfaf7;
    --studio-muted: #c8c2b8;
    --studio-line: rgba(255, 255, 255, 0.12);
    --studio-gold: #e4bd63;
    --studio-rose: #cf686e;
    --studio-teal: #63b6b2;
    --studio-ink: #101215;
}

.studio-redesign .page-shell,
.studio-redesign .app-shell {
    background:
        linear-gradient(180deg, #101215 0%, #171b1f 48%, #101215 100%);
}

.studio-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(16, 18, 21, 0.82);
    backdrop-filter: blur(16px);
}

.studio-logo span,
.studio-redesign .footer-logo span,
.studio-redesign .footer-social a {
    background: linear-gradient(135deg, var(--studio-gold), var(--studio-teal));
}

.studio-hero h1 {
    letter-spacing: 0;
}

.service-card,
.process-card,
.review-card {
    border-color: var(--studio-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.portfolio-card img,
.hero-photo img {
    filter: saturate(0.98) contrast(1.04);
}

@media (max-width: 1080px) {
    .sidebar {
        box-shadow: 18px 0 40px rgba(0, 0, 0, 0.28);
    }
}

@media (max-width: 860px) {
    .topbar {
        align-items: flex-start;
    }

    .mobile-menu {
        width: auto;
        padding-inline: 14px;
    }

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

@media (max-width: 640px) {
    .main-content,
    .content-wrap,
    .public-main,
    .toast,
    .auth-wrap {
        width: min(100% - 24px, 1180px);
    }

    .page-heading {
        padding-bottom: 14px;
    }

    .toolbar,
    .filter-form,
    .search-inline,
    .inline-controls {
        padding: 10px;
    }

    .stat-card {
        min-height: 112px;
    }

    .table-wrap {
        border-radius: 8px;
    }

    .gmail-card {
        padding: 24px;
    }
}

@media print {
    body {
        background: #ffffff;
        color: #000000;
    }

    .sidebar,
    .topbar,
    .site-footer,
    .no-print,
    .toast {
        display: none !important;
    }

    .app-shell,
    .page-shell,
    .main-content {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .invoice-card,
    .panel,
    .stat-card {
        box-shadow: none;
        border-color: #cccccc;
    }

    a {
        color: #000000;
        text-decoration: none;
    }
}

/* Unified product design refresh */
:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-2: #eef3f4;
    --text: #171b21;
    --muted: #5f6a76;
    --line: #dce4e8;
    --accent: #b64d66;
    --accent-strong: #853548;
    --teal: #087b7b;
    --gold: #a9781d;
    --success: #14745a;
    --warning: #9a6813;
    --danger: #b2353f;
    --shadow: 0 20px 48px rgba(23, 27, 33, 0.1);
    --shadow-soft: 0 10px 26px rgba(23, 27, 33, 0.075);
    --ring: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent);
    --sidebar: 286px;
}

[data-theme="dark"] {
    --bg: #101417;
    --surface: #171d22;
    --surface-2: #20282e;
    --text: #f6f7f4;
    --muted: #aab4bd;
    --line: #303b43;
    --accent: #df748c;
    --accent-strong: #f093a7;
    --teal: #59c0bc;
    --gold: #e0b85d;
    --success: #68c9a1;
    --warning: #e1b15f;
    --danger: #ef7980;
    --shadow: 0 20px 56px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.24);
}

html {
    font-size: 16px;
}

body {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 72%, var(--bg)) 0, var(--bg) 340px),
        linear-gradient(90deg, rgba(8, 123, 123, 0.035) 0 1px, transparent 1px 68px),
        var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: color-mix(in srgb, var(--teal) 24%, transparent);
}

#main-content:focus {
    outline: none;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    transform: translateY(-140%);
    border-radius: 8px;
    background: var(--text);
    color: var(--surface);
    padding: 10px 14px;
    box-shadow: var(--shadow);
    transition: transform 0.16s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

a,
button,
input,
select,
textarea,
.panel,
.form-card,
.stat-card,
.photo-card,
.package-option {
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.page-shell {
    min-height: 100vh;
}

.topbar {
    min-height: 74px;
    border-bottom-color: color-mix(in srgb, var(--line) 82%, transparent);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    -webkit-backdrop-filter: blur(18px);
}

@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    .topbar,
    .studio-nav {
        background: var(--surface);
    }
}

.brand {
    min-width: 0;
}

.brand-name {
    letter-spacing: 0;
}

.brand-mark,
.avatar,
.profile-chip span {
    background: linear-gradient(135deg, var(--accent), var(--teal));
}

.icon-button,
.mobile-menu,
.sidebar-close {
    flex: 0 0 auto;
}

.mobile-menu {
    gap: 9px;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.menu-icon {
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -5px;
}

.menu-icon::after {
    top: 5px;
}

.icon-button {
    position: relative;
    overflow: hidden;
}

.sun-icon,
.moon-icon {
    color: transparent;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: inline-grid;
}

.topbar-actions {
    row-gap: 8px;
}

.profile-chip,
.ghost-button,
.primary-button,
.danger-button,
.icon-button,
.mobile-menu,
.photo-actions button,
.row-actions button,
td button:not([class]) {
    border-radius: 8px;
}

.primary-button {
    border: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    box-shadow: 0 12px 20px color-mix(in srgb, var(--accent) 22%, transparent);
}

.primary-button:hover {
    color: #ffffff;
    box-shadow: 0 16px 26px color-mix(in srgb, var(--accent) 26%, transparent);
}

.ghost-button,
.danger-button,
.icon-button,
.mobile-menu,
.photo-actions button,
.row-actions button,
td button:not([class]) {
    border-color: color-mix(in srgb, var(--line) 88%, var(--surface));
    background: color-mix(in srgb, var(--surface) 92%, var(--bg));
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.icon-button:hover,
.mobile-menu:hover,
.photo-actions button:hover,
.row-actions button:hover,
td button:not([class]):hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.text-link:hover {
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.sidebar {
    background:
        linear-gradient(180deg, #171d22 0%, #11161a 100%);
    box-shadow: 18px 0 44px rgba(10, 14, 18, 0.2);
}

.sidebar-profile {
    min-width: 0;
}

.sidebar-profile strong,
.sidebar-profile span {
    overflow-wrap: anywhere;
}

.sidebar-close {
    width: 40px;
    height: 40px;
    padding: 0;
}

.sidebar-scrim {
    display: none;
}

.nav-list a,
.logout-link {
    min-height: 42px;
    align-items: center;
}

.nav-list a.active {
    background: color-mix(in srgb, var(--teal) 18%, transparent);
}

.main-content,
.content-wrap,
.public-main {
    width: min(1240px, calc(100% - 40px));
}

.content-wrap.narrow {
    width: min(760px, calc(100% - 40px));
}

.page-heading {
    display: grid;
    gap: 8px;
}

.page-heading h1 {
    font-weight: 900;
}

.page-heading p {
    margin: 0;
}

.eyebrow {
    color: var(--teal);
}

.panel,
.form-card,
.stat-card,
.invoice-card,
.empty-state,
.booking-section,
.mini-card,
.feature-band article,
.split-grid > div,
.photo-card {
    border-color: color-mix(in srgb, var(--line) 84%, var(--surface));
    box-shadow: var(--shadow-soft);
}

.panel:hover,
.form-card:hover,
.stat-card:hover,
.photo-card:hover,
.package-option:hover {
    border-color: color-mix(in srgb, var(--teal) 28%, var(--line));
}

.panel-heading,
.invoice-heading,
.upload-card-heading {
    min-width: 0;
}

.panel-heading > *,
.invoice-heading > *,
.upload-card-heading > * {
    min-width: 0;
}

.stat-card {
    isolation: isolate;
}

.stat-card strong,
.mini-card strong {
    overflow-wrap: anywhere;
}

.toolbar,
.filter-form,
.search-inline,
.inline-controls {
    min-width: 0;
}

.toolbar {
    align-items: center;
}

.filter-form > *,
.search-inline > *,
.inline-controls > * {
    min-width: 0;
}

input,
select,
textarea {
    color-scheme: light;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    color-scheme: dark;
}

input::placeholder,
textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 70%, transparent);
}

input[readonly],
textarea[readonly] {
    background: color-mix(in srgb, var(--surface-2) 76%, var(--surface));
}

.checkbox {
    min-height: 34px;
}

.checkbox input {
    accent-color: var(--teal);
}

td form,
.row-actions form,
.photo-actions form {
    margin: 0;
}

td button:not([class]) {
    min-height: 38px;
    padding: 0 12px;
    color: var(--danger);
    border: 1px solid var(--line);
    font-weight: 800;
}

.row-actions a,
.photo-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 10px;
    background: color-mix(in srgb, var(--surface-2) 54%, var(--surface));
    text-decoration: none;
}

.row-actions select {
    min-width: 150px;
}

.table-wrap {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--muted) 44%, transparent) transparent;
}

.table-wrap::-webkit-scrollbar,
.access-scope-list::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.table-wrap::-webkit-scrollbar-thumb,
.access-scope-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 34%, transparent);
}

th,
td {
    font-size: 0.92rem;
}

tbody tr {
    transition: background 0.16s ease;
}

.status {
    max-width: 100%;
    text-align: center;
}

.auth-wrap {
    min-height: calc(100vh - 128px);
}

.gmail-card {
    position: relative;
    overflow: hidden;
}

.gmail-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--teal), var(--gold));
}

.drop-zone {
    border-color: color-mix(in srgb, var(--teal) 34%, var(--line));
}

.drop-zone.dragging {
    transform: translateY(-1px);
    box-shadow: var(--ring);
}

.progress-track span {
    background: linear-gradient(90deg, var(--teal), var(--accent));
}

.calendar-day {
    min-width: 0;
}

.calendar-day > strong {
    color: var(--text);
}

.calendar-event {
    overflow-wrap: anywhere;
}

.invoice-card {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--bg)), var(--surface));
}

.site-footer {
    background: color-mix(in srgb, var(--surface) 76%, transparent);
}

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

.main-content > section,
.content-wrap > section,
.auth-wrap > section {
    animation: wbFadeIn 0.38s ease both;
}

.main-content > section:nth-child(2),
.content-wrap > section:nth-child(2) {
    animation-delay: 0.04s;
}

.main-content > section:nth-child(3),
.content-wrap > section:nth-child(3) {
    animation-delay: 0.08s;
}

.studio-redesign .landing-footer {
    color: var(--studio-muted);
}

.studio-redesign .footer-newsletter,
.studio-redesign .footer-grid,
.studio-redesign .footer-bottom {
    width: min(1180px, calc(100% - 40px));
}

.studio-redesign .footer-grid a,
.studio-redesign .footer-contact p,
.studio-redesign .footer-brand p {
    color: var(--studio-muted);
}

.studio-redesign .footer-logo {
    color: var(--studio-text);
}

.studio-redesign .footer-newsletter input {
    border-color: var(--studio-line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--studio-text);
}

.studio-redesign .footer-newsletter button {
    border-radius: 8px;
    border: 0;
    font-weight: 900;
}

.studio-redesign .studio-nav {
    -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 1080px) {
    .main-content,
    .content-wrap,
    .public-main {
        padding-top: 28px;
    }

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

@media (max-width: 860px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar {
        width: min(86vw, var(--sidebar));
        max-width: 360px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .sidebar-scrim {
        position: fixed;
        inset: 0;
        z-index: 25;
        display: block;
        border: 0;
        background: rgba(8, 12, 16, 0.54);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .sidebar-open .sidebar-scrim {
        opacity: 1;
        pointer-events: auto;
    }

    .topbar {
        align-items: center;
        padding-inline: 16px;
    }

    .topbar-actions {
        width: auto;
        margin-left: auto;
    }

    .profile-chip {
        max-width: 168px;
    }

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

    .toolbar > *,
    .filter-form,
    .search-inline {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .studio-redesign .footer-newsletter,
    .studio-redesign .footer-grid,
    .studio-redesign .footer-bottom {
        width: min(100% - 28px, 1180px);
    }

    .studio-redesign .footer-newsletter,
    .studio-redesign .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .studio-redesign .footer-newsletter h2,
    .studio-redesign .footer-grid h3 {
        font-size: 1rem;
    }

    .studio-redesign .footer-brand p,
    .studio-redesign .footer-contact p,
    .studio-redesign .footer-grid a,
    .studio-redesign .footer-bottom {
        font-size: 0.88rem;
    }

    .studio-redesign .footer-newsletter input,
    .studio-redesign .footer-newsletter button {
        min-height: 44px;
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .main-content,
    .content-wrap,
    .public-main,
    .toast,
    .auth-wrap {
        width: min(100% - 24px, 1180px);
    }

    .topbar {
        gap: 10px;
    }

    .brand-name {
        max-width: 42vw;
    }

    .topbar-actions {
        gap: 8px;
    }

    .topbar-actions .primary-button,
    .topbar-actions .ghost-button:not([href$="notifications"]):not([href$="notifications.php"]) {
        padding-inline: 10px;
    }

    .page-heading h1 {
        font-size: clamp(1.8rem, 10vw, 2.45rem);
    }

    .panel,
    .form-card,
    .empty-state,
    .booking-section {
        padding: 18px;
    }

    .filter-form,
    .search-inline,
    .inline-controls,
    .form-actions,
    .auth-actions,
    .row-actions,
    .photo-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-form > *,
    .search-inline > *,
    .inline-controls > *,
    .form-actions > *,
    .auth-actions > *,
    .row-actions > *,
    .photo-actions > *,
    .row-actions form,
    .photo-actions form {
        width: 100%;
    }

    .primary-button,
    .ghost-button,
    .danger-button,
    .text-link,
    .photo-actions button,
    .row-actions button,
    td button:not([class]) {
        white-space: normal;
        text-align: center;
    }

    .table-wrap {
        margin-inline: -4px;
    }

    th,
    td {
        padding: 11px 9px;
    }

    .customer-credential-summary {
        grid-template-columns: 1fr;
    }

    .selection-preview-grid,
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    }

    .calendar-grid {
        gap: 10px;
    }

    .calendar-day {
        padding: 12px;
    }

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

    .totals-box {
        margin-left: 0;
    }
}

@media (max-width: 420px) {
    .brand-name {
        max-width: 34vw;
    }

    .topbar {
        padding-inline: 12px;
    }

    .icon-button,
    .mobile-menu {
        min-height: 40px;
    }

    .mobile-menu span:last-child {
        display: none;
    }

    .profile-chip {
        padding-right: 4px;
    }
}

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

/* Authenticated backend premium UI */
.backend-page {
    --bg: #f7faff;
    --surface: #ffffff;
    --surface-2: #eef5ff;
    --text: #172033;
    --muted: #647086;
    --line: rgba(107, 125, 162, 0.18);
    --accent: #8b6dff;
    --accent-strong: #5e5af7;
    --teal: #15b9d6;
    --gold: #f27ab5;
    --success: #18a778;
    --warning: #c98718;
    --danger: #d94862;
    --shadow: 0 24px 60px rgba(72, 88, 124, 0.14);
    --shadow-soft: 0 12px 30px rgba(72, 88, 124, 0.1);
    --ring: 0 0 0 3px rgba(21, 185, 214, 0.2);
    background:
        radial-gradient(circle at 15% 12%, rgba(139, 109, 255, 0.18), transparent 28rem),
        radial-gradient(circle at 84% 8%, rgba(21, 185, 214, 0.18), transparent 30rem),
        radial-gradient(circle at 76% 78%, rgba(242, 122, 181, 0.15), transparent 28rem),
        linear-gradient(180deg, #fbfdff 0%, #f4f8ff 44%, #fff8fd 100%);
    color: var(--text);
}

.backend-page .app-shell {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(rgba(95, 149, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 149, 255, 0.045) 1px, transparent 1px);
    background-size: 68px 68px;
}

.backend-page .app-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.72), transparent 28%),
        linear-gradient(300deg, rgba(255, 255, 255, 0.72), transparent 32%);
}

.backend-page .page-shell {
    background: transparent;
}

.backend-page .sidebar {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.88), rgba(246, 250, 255, 0.64)),
        linear-gradient(180deg, rgba(139, 109, 255, 0.11), rgba(21, 185, 214, 0.08));
    border-right: 1px solid rgba(255, 255, 255, 0.76);
    color: var(--text);
    box-shadow: 20px 0 54px rgba(72, 88, 124, 0.12);
    -webkit-backdrop-filter: blur(26px) saturate(1.18);
    backdrop-filter: blur(26px) saturate(1.18);
}

.backend-page .sidebar::before {
    content: "";
    position: absolute;
    inset: 14px 14px auto;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--teal), var(--gold));
    box-shadow: 0 12px 26px rgba(95, 149, 255, 0.2);
}

.backend-page .sidebar-profile {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-soft);
}

.backend-page .sidebar-profile span {
    color: var(--muted);
}

.backend-page .avatar,
.backend-page .brand-mark,
.backend-page .profile-chip span {
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(95, 149, 255, 0.22);
}

.backend-page .nav-list {
    gap: 8px;
    margin-top: 18px;
}

.backend-page .nav-list a,
.backend-page .logout-link {
    position: relative;
    min-height: 43px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    color: var(--muted);
    background: transparent;
    font-weight: 850;
}

.backend-page .nav-list a:hover,
.backend-page .logout-link:hover {
    border-color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
    box-shadow: var(--shadow-soft);
    transform: translateX(2px);
}

.backend-page .nav-list a.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong), var(--teal));
    box-shadow: 0 16px 28px rgba(95, 149, 255, 0.24);
}

.backend-page .topbar {
    min-height: 78px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.78);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(248, 251, 255, 0.6)),
        rgba(255, 255, 255, 0.62);
    box-shadow: 0 16px 44px rgba(72, 88, 124, 0.1);
    -webkit-backdrop-filter: blur(24px) saturate(1.18);
    backdrop-filter: blur(24px) saturate(1.18);
}

.backend-page .brand {
    color: var(--text);
}

.backend-page .brand-logo {
    border-color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-soft);
}

.backend-page .brand-name {
    font-weight: 950;
}

.backend-page .main-content,
.backend-page .content-wrap {
    width: min(1280px, calc(100% - 48px));
    padding-top: 36px;
}

.backend-page .page-heading {
    position: relative;
    margin-bottom: 28px;
    padding: 6px 0 18px;
}

.backend-page .page-heading::after {
    content: "";
    width: min(280px, 42vw);
    height: 4px;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--teal), var(--gold));
    box-shadow: 0 10px 24px rgba(95, 149, 255, 0.22);
}

.backend-page .eyebrow {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 12px;
    border: 1px solid rgba(139, 109, 255, 0.2);
    border-radius: 999px;
    color: #6e5ee8;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    letter-spacing: 0;
    text-transform: none;
}

.backend-page .page-heading h1 {
    color: var(--text);
    font-size: clamp(2.25rem, 4vw, 4.1rem);
    line-height: 1;
}

.backend-page .page-heading p:not(.eyebrow) {
    max-width: 740px;
    color: var(--muted);
    font-size: 1rem;
}

.backend-page .panel,
.backend-page .form-card,
.backend-page .stat-card,
.backend-page .invoice-card,
.backend-page .empty-state,
.backend-page .booking-section,
.backend-page .mini-card,
.backend-page .feature-band article,
.backend-page .split-grid > div,
.backend-page .photo-card,
.backend-page .package-option,
.backend-page .settings-media-preview,
.backend-page .drop-zone,
.backend-page .gallery-folder,
.backend-page .calendar-day,
.backend-page .calendar-head {
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
        rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(22px) saturate(1.14);
    backdrop-filter: blur(22px) saturate(1.14);
}

.backend-page .panel:hover,
.backend-page .form-card:hover,
.backend-page .stat-card:hover,
.backend-page .photo-card:hover,
.backend-page .package-option:hover {
    border-color: rgba(139, 109, 255, 0.26);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.backend-page .stat-grid {
    gap: 16px;
    margin-bottom: 22px;
}

.backend-page .stat-card {
    position: relative;
    overflow: hidden;
    min-height: 144px;
    padding: 22px;
}

.backend-page .stat-card::before {
    content: "";
    width: 92px;
    height: 92px;
    position: absolute;
    right: -26px;
    top: -26px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 109, 255, 0.28), transparent 68%);
}

.backend-page .stat-card:nth-child(2)::before {
    background: radial-gradient(circle, rgba(21, 185, 214, 0.28), transparent 68%);
}

.backend-page .stat-card:nth-child(3)::before {
    background: radial-gradient(circle, rgba(242, 122, 181, 0.28), transparent 68%);
}

.backend-page .stat-card:nth-child(4)::before {
    background: radial-gradient(circle, rgba(72, 215, 181, 0.26), transparent 68%);
}

.backend-page .stat-card span,
.backend-page .mini-card span,
.backend-page .invoice-grid span,
.backend-page .totals-box span {
    color: var(--muted);
    font-weight: 850;
}

.backend-page .stat-card strong,
.backend-page .mini-card strong {
    color: var(--text);
    font-weight: 950;
}

.backend-page .dashboard-grid,
.backend-page .settings-grid,
.backend-page .form-layout,
.backend-page .split-workspace,
.backend-page .photo-management-workspace,
.backend-page .booking-management-layout {
    gap: 18px;
}

.backend-page .panel-heading,
.backend-page .invoice-heading,
.backend-page .upload-card-heading {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(107, 125, 162, 0.12);
}

.backend-page .panel-heading h2,
.backend-page .upload-card-heading h2,
.backend-page .booking-section-head h2 {
    color: var(--text);
    font-weight: 950;
}

.backend-page .panel-heading a,
.backend-page .text-link,
.backend-page .row-actions a,
.backend-page .photo-actions a {
    color: #5d5af2;
    font-weight: 900;
}

.backend-page .table-wrap {
    border: 1px solid rgba(107, 125, 162, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.46);
}

.backend-page table {
    overflow: hidden;
}

.backend-page th {
    color: var(--muted);
    background: rgba(246, 250, 255, 0.88);
    border-bottom-color: rgba(107, 125, 162, 0.14);
    letter-spacing: 0;
    text-transform: none;
}

.backend-page td {
    border-bottom-color: rgba(107, 125, 162, 0.1);
    color: var(--text);
}

.backend-page tbody tr:hover {
    background: rgba(139, 109, 255, 0.055);
}

.backend-page input,
.backend-page select,
.backend-page textarea {
    min-height: 44px;
    border-color: rgba(107, 125, 162, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.backend-page input:focus,
.backend-page select:focus,
.backend-page textarea:focus {
    border-color: rgba(21, 185, 214, 0.64);
    box-shadow: var(--ring), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.backend-page input::placeholder,
.backend-page textarea::placeholder {
    color: rgba(100, 112, 134, 0.72);
}

.backend-page .primary-button,
.backend-page .ghost-button,
.backend-page .danger-button,
.backend-page .icon-button,
.backend-page .mobile-menu,
.backend-page .photo-actions button,
.backend-page .row-actions button,
.backend-page td button:not([class]) {
    min-height: 42px;
    border-radius: 999px;
    font-weight: 900;
}

.backend-page .primary-button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong), var(--teal));
    box-shadow: 0 16px 28px rgba(95, 149, 255, 0.24);
}

.backend-page .primary-button:hover {
    color: #ffffff;
    box-shadow: 0 20px 36px rgba(95, 149, 255, 0.3);
}

.backend-page .ghost-button,
.backend-page .danger-button,
.backend-page .icon-button,
.backend-page .mobile-menu,
.backend-page .photo-actions button,
.backend-page .row-actions button,
.backend-page td button:not([class]) {
    border-color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

.backend-page .danger-button,
.backend-page td button:not([class]) {
    color: var(--danger);
}

.backend-page .ghost-button:hover,
.backend-page .danger-button:hover,
.backend-page .icon-button:hover,
.backend-page .mobile-menu:hover,
.backend-page .photo-actions button:hover,
.backend-page .row-actions button:hover,
.backend-page td button:not([class]):hover {
    border-color: rgba(139, 109, 255, 0.28);
    background: rgba(255, 255, 255, 0.82);
}

.backend-page .profile-chip {
    min-height: 44px;
    border-color: rgba(255, 255, 255, 0.76);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow-soft);
}

.backend-page .status {
    min-height: 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 950;
    text-transform: capitalize;
}

.backend-page .status.approved,
.backend-page .status.completed,
.backend-page .status.confirmed,
.backend-page .status.paid,
.backend-page .status.active,
.backend-page .status.delivered {
    border-color: rgba(24, 167, 120, 0.18);
    background: rgba(24, 167, 120, 0.12);
    color: #0c7a57;
}

.backend-page .status.pending,
.backend-page .status.in_progress,
.backend-page .status.partial,
.backend-page .status.designing,
.backend-page .status.printing {
    border-color: rgba(201, 135, 24, 0.18);
    background: rgba(201, 135, 24, 0.12);
    color: #96620d;
}

.backend-page .status.cancelled,
.backend-page .status.rejected,
.backend-page .status.inactive,
.backend-page .status.archived,
.backend-page .status.unpaid {
    border-color: rgba(217, 72, 98, 0.18);
    background: rgba(217, 72, 98, 0.12);
    color: #b52d43;
}

.backend-page .bar-chart {
    border-radius: 8px;
    background:
        linear-gradient(rgba(95, 149, 255, 0.07) 1px, transparent 1px),
        rgba(255, 255, 255, 0.34);
    background-size: 100% 42px;
}

.backend-page .bar {
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, var(--teal), var(--accent), var(--gold));
    box-shadow: 0 12px 24px rgba(95, 149, 255, 0.2);
}

.backend-page .timeline-item,
.backend-page .notification-list > div,
.backend-page .settings-summary > div,
.backend-page .customer-note,
.backend-page .price-builder,
.backend-page .invoice-grid > div,
.backend-page .totals-box > div {
    border: 1px solid rgba(107, 125, 162, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.backend-page .package-option:hover,
.backend-page .package-option.selected,
.backend-page .package-option:has(input:checked) {
    border-color: rgba(139, 109, 255, 0.46);
    background:
        linear-gradient(135deg, rgba(139, 109, 255, 0.12), rgba(21, 185, 214, 0.08)),
        rgba(255, 255, 255, 0.72);
}

.backend-page .booking-section-head {
    border-bottom-color: rgba(139, 109, 255, 0.22);
}

.backend-page .drop-zone.dragging {
    border-color: rgba(21, 185, 214, 0.56);
    box-shadow: var(--ring), var(--shadow);
}

.backend-page .progress-track span {
    background: linear-gradient(90deg, var(--accent), var(--teal), var(--gold));
}

.backend-page .calendar-event {
    border-color: rgba(21, 185, 214, 0.22);
    background: rgba(21, 185, 214, 0.1);
}

.backend-page .toast {
    border-color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.backend-page .site-footer {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.34);
    border-top: 1px solid rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

[data-theme="dark"] .backend-page {
    --bg: #111827;
    --surface: #182133;
    --surface-2: #202b42;
    --text: #f7f9ff;
    --muted: #aab7d1;
    --line: rgba(213, 222, 255, 0.14);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.22);
    background:
        radial-gradient(circle at 16% 12%, rgba(139, 109, 255, 0.22), transparent 28rem),
        radial-gradient(circle at 84% 12%, rgba(21, 185, 214, 0.18), transparent 30rem),
        linear-gradient(180deg, #111827 0%, #151d2d 52%, #111827 100%);
}

[data-theme="dark"] .backend-page .sidebar,
[data-theme="dark"] .backend-page .topbar,
[data-theme="dark"] .backend-page .panel,
[data-theme="dark"] .backend-page .form-card,
[data-theme="dark"] .backend-page .stat-card,
[data-theme="dark"] .backend-page .invoice-card,
[data-theme="dark"] .backend-page .empty-state,
[data-theme="dark"] .backend-page .booking-section,
[data-theme="dark"] .backend-page .mini-card,
[data-theme="dark"] .backend-page .feature-band article,
[data-theme="dark"] .backend-page .split-grid > div,
[data-theme="dark"] .backend-page .photo-card,
[data-theme="dark"] .backend-page .package-option,
[data-theme="dark"] .backend-page .settings-media-preview,
[data-theme="dark"] .backend-page .drop-zone,
[data-theme="dark"] .backend-page .gallery-folder,
[data-theme="dark"] .backend-page .calendar-day,
[data-theme="dark"] .backend-page .calendar-head {
    border-color: rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(135deg, rgba(31, 42, 66, 0.82), rgba(20, 29, 47, 0.66)),
        rgba(20, 29, 47, 0.72);
}

[data-theme="dark"] .backend-page input,
[data-theme="dark"] .backend-page select,
[data-theme="dark"] .backend-page textarea,
[data-theme="dark"] .backend-page .timeline-item,
[data-theme="dark"] .backend-page .notification-list > div,
[data-theme="dark"] .backend-page .settings-summary > div,
[data-theme="dark"] .backend-page .table-wrap {
    background: rgba(20, 29, 47, 0.72);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .backend-page th {
    background: rgba(31, 42, 66, 0.86);
}

[data-theme="dark"] .backend-page .ghost-button,
[data-theme="dark"] .backend-page .danger-button,
[data-theme="dark"] .backend-page .icon-button,
[data-theme="dark"] .backend-page .mobile-menu,
[data-theme="dark"] .backend-page .profile-chip,
[data-theme="dark"] .backend-page .sidebar-profile,
[data-theme="dark"] .backend-page .nav-list a:hover,
[data-theme="dark"] .backend-page .logout-link:hover {
    background: rgba(31, 42, 66, 0.72);
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1080px) {
    .backend-page .main-content,
    .backend-page .content-wrap {
        width: min(100% - 36px, 1280px);
    }
}

@media (max-width: 860px) {
    .backend-page .sidebar {
        background:
            linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.82)),
            linear-gradient(180deg, rgba(139, 109, 255, 0.12), rgba(21, 185, 214, 0.1));
    }

    [data-theme="dark"] .backend-page .sidebar {
        background:
            linear-gradient(155deg, rgba(31, 42, 66, 0.96), rgba(20, 29, 47, 0.9)),
            linear-gradient(180deg, rgba(139, 109, 255, 0.18), rgba(21, 185, 214, 0.12));
    }

    .backend-page .topbar {
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .backend-page .main-content,
    .backend-page .content-wrap,
    .backend-page .toast {
        width: min(100% - 24px, 1280px);
    }

    .backend-page .topbar {
        min-height: 70px;
    }

    .backend-page .page-heading h1 {
        font-size: clamp(2rem, 11vw, 2.8rem);
    }

    .backend-page .stat-card {
        min-height: 122px;
    }

    .backend-page .primary-button,
    .backend-page .ghost-button,
    .backend-page .danger-button,
    .backend-page .text-link,
    .backend-page .photo-actions button,
    .backend-page .row-actions button,
    .backend-page td button:not([class]) {
        border-radius: 8px;
    }
}

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

.design-editor {
    gap: 22px;
}

.design-save-actions,
.design-preview-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.design-module-tabs {
    position: sticky;
    top: 92px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.design-module-tabs a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 900;
    text-decoration: none;
}

.design-module-tabs a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--teal));
}

.design-module {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(107, 125, 162, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.42);
}

.design-module-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.design-module-head > span {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    font-weight: 950;
    box-shadow: 0 14px 26px rgba(95, 149, 255, 0.24);
}

.design-module h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.15rem;
}

.design-module p {
    margin: 5px 0 0;
    color: var(--muted);
}

.design-control-subhead {
    display: grid;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(107, 125, 162, 0.14);
}

.design-control-subhead h4 {
    margin: 0;
    color: var(--text);
    font-size: 0.98rem;
}

.design-control-subhead p {
    margin: 0;
    color: var(--muted);
}

.design-editor input[type="color"] {
    min-height: 44px;
    padding: 5px;
}

.design-media-list {
    display: grid;
    gap: 14px;
}

.design-media-field {
    display: grid;
    grid-template-columns: 140px repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(107, 125, 162, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
}

.design-media-field legend {
    padding: 0 8px;
    color: var(--text);
    font-weight: 950;
}

.design-media-preview {
    grid-row: span 2;
    min-height: 132px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(107, 125, 162, 0.14);
    background: rgba(255, 255, 255, 0.72);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 850;
}

.design-media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.design-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.design-preview-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.design-preview-frame-wrap {
    margin-top: 14px;
    min-height: 520px;
    overflow: auto;
    border: 1px solid rgba(107, 125, 162, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(45deg, rgba(107, 125, 162, 0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(107, 125, 162, 0.08) 25%, transparent 25%),
        #f8fbff;
    background-size: 18px 18px;
}

.design-preview-frame {
    width: 100%;
    min-width: 320px;
    height: 700px;
    display: block;
    margin: 0 auto;
    border: 0;
    background: #ffffff;
    transition: width 0.2s ease;
}

.design-preview-controls .active,
.design-preview-pages .active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--teal));
}

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

.design-version-list article {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(107, 125, 162, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.54);
}

.design-version-list strong,
.settings-summary strong {
    color: var(--text);
}

.design-version-list span,
.settings-summary span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.design-version-list p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

[data-theme="dark"] .design-module-tabs,
[data-theme="dark"] .design-module,
[data-theme="dark"] .design-media-field,
[data-theme="dark"] .design-version-list article,
[data-theme="dark"] .design-media-preview {
    background: rgba(20, 29, 47, 0.72);
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1180px) {
    .design-manager-layout {
        grid-template-columns: 1fr;
    }

    .design-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .design-save-actions,
    .design-preview-controls {
        justify-content: flex-start;
    }

    .design-module-tabs {
        position: static;
    }

    .design-module {
        padding: 16px;
    }

    .design-media-field {
        grid-template-columns: 1fr;
    }

    .design-media-preview {
        grid-row: auto;
        min-height: 180px;
    }
}

/* Backend UX and Design Manager polish */
.backend-page {
    accent-color: var(--accent);
}

.backend-page a,
.backend-page button,
.backend-page input,
.backend-page select,
.backend-page textarea {
    scroll-margin-top: 104px;
}

.backend-page a:focus-visible,
.backend-page button:focus-visible,
.backend-page input:focus-visible,
.backend-page select:focus-visible,
.backend-page textarea:focus-visible,
.backend-page [tabindex]:focus-visible {
    outline: 3px solid rgba(21, 185, 214, 0.32);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(139, 109, 255, 0.14);
}

.backend-page .sidebar {
    padding: 24px 18px;
}

.backend-page .sidebar-profile {
    min-height: 78px;
}

.backend-page .sidebar-profile > div:last-child {
    min-width: 0;
}

.backend-page .nav-list a,
.backend-page .logout-link {
    padding-inline: 14px;
}

.backend-page .nav-list a.active::before {
    content: "";
    width: 5px;
    height: 22px;
    position: absolute;
    left: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.backend-page .topbar-actions {
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

.backend-page .panel,
.backend-page .form-card,
.backend-page .booking-section {
    overflow: clip;
}

.backend-page .panel-heading {
    align-items: flex-start;
}

.backend-page .panel-heading > div {
    min-width: 0;
}

.backend-page .panel-heading span,
.backend-page .upload-card-heading p {
    color: var(--muted);
    font-size: 0.88rem;
}

.backend-page .toolbar,
.backend-page .filter-form,
.backend-page .search-inline,
.backend-page .inline-controls {
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.42);
    padding: 10px;
}

.backend-page th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.backend-page td,
.backend-page th {
    height: 48px;
}

.backend-page .status {
    white-space: nowrap;
}

.backend-page form label {
    gap: 8px;
}

.backend-page input[type="color"] {
    cursor: pointer;
}

.backend-page input[type="file"] {
    padding: 9px;
}

.backend-page .checkbox {
    width: fit-content;
}

.backend-page .checkbox input {
    flex: 0 0 auto;
}

.design-workflow-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: -4px 0 18px;
}

.design-workflow-overview article {
    position: relative;
    min-height: 126px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.56)),
        rgba(255, 255, 255, 0.66);
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(20px) saturate(1.12);
    backdrop-filter: blur(20px) saturate(1.12);
}

.design-workflow-overview article::after {
    content: "";
    width: 80px;
    height: 80px;
    position: absolute;
    right: -28px;
    top: -28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 109, 255, 0.22), transparent 68%);
}

.design-workflow-overview article:nth-child(2)::after {
    background: radial-gradient(circle, rgba(21, 185, 214, 0.22), transparent 68%);
}

.design-workflow-overview article:nth-child(3)::after {
    background: radial-gradient(circle, rgba(242, 122, 181, 0.2), transparent 68%);
}

.design-workflow-overview article:nth-child(4)::after {
    background: radial-gradient(circle, rgba(24, 167, 120, 0.2), transparent 68%);
}

.design-workflow-overview span,
.design-workflow-overview small {
    display: block;
    color: var(--muted);
    font-weight: 850;
}

.design-workflow-overview strong {
    display: block;
    margin: 12px 0 6px;
    color: var(--text);
    font-size: clamp(1.4rem, 2.3vw, 2rem);
    line-height: 1;
}

.design-manager-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
}

.design-editor > .panel-heading {
    position: sticky;
    top: 78px;
    z-index: 8;
    margin: -20px -20px 0;
    padding: 16px 20px;
    border-radius: 8px 8px 0 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.76)),
        rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.design-save-actions .primary-button,
.design-save-actions .ghost-button {
    min-width: 124px;
}

.design-save-actions button:disabled {
    box-shadow: none;
}

.design-module-tabs {
    top: 154px;
}

.design-module-tabs a {
    border: 1px solid transparent;
}

.design-module-tabs a.active,
.design-module-tabs a[aria-current="true"] {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    box-shadow: 0 12px 24px rgba(95, 149, 255, 0.22);
}

.design-module {
    scroll-margin-top: 220px;
}

.design-control-subhead {
    border-top-color: rgba(107, 125, 162, 0.16);
}

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

.design-module .grid-form .full-row {
    grid-column: 1 / -1;
}

.design-module label {
    min-width: 0;
}

.design-module input,
.design-module select,
.design-module textarea {
    width: 100%;
}

.design-media-field {
    grid-template-columns: minmax(136px, 0.28fr) repeat(3, minmax(0, 1fr));
    align-items: start;
}

.design-media-field label.full-row {
    grid-column: span 3;
}

.design-media-preview {
    min-height: 164px;
}

.design-side {
    top: 96px;
    max-height: calc(100vh - 116px);
    overflow: auto;
    padding-right: 2px;
}

.design-side::-webkit-scrollbar {
    width: 8px;
}

.design-side::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(100, 112, 134, 0.28);
}

.design-preview-panel {
    padding-bottom: 16px;
}

.design-preview-pages,
.design-preview-controls {
    padding: 6px;
    border: 1px solid rgba(107, 125, 162, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
}

.design-preview-pages {
    margin-bottom: 10px;
}

.design-preview-pages button,
.design-preview-controls button {
    flex: 1 1 88px;
    box-shadow: none;
}

.design-preview-pages .active,
.design-preview-controls .active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--teal));
}

.design-preview-frame-wrap {
    min-height: 560px;
}

.design-preview-frame {
    height: 760px;
    box-shadow: 0 18px 38px rgba(72, 88, 124, 0.18);
}

.design-version-list article {
    align-items: flex-start;
}

.design-version-list article > div {
    min-width: 0;
}

.design-version-list form {
    margin: 0;
}

[data-theme="dark"] .backend-page .topbar-actions,
[data-theme="dark"] .backend-page .toolbar,
[data-theme="dark"] .backend-page .filter-form,
[data-theme="dark"] .backend-page .search-inline,
[data-theme="dark"] .backend-page .inline-controls,
[data-theme="dark"] .design-workflow-overview article,
[data-theme="dark"] .design-editor > .panel-heading,
[data-theme="dark"] .design-preview-pages,
[data-theme="dark"] .design-preview-controls {
    background: rgba(20, 29, 47, 0.72);
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1240px) {
    .design-workflow-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .design-media-field {
        grid-template-columns: minmax(132px, 0.34fr) repeat(2, minmax(0, 1fr));
    }

    .design-media-field label.full-row {
        grid-column: span 2;
    }
}

@media (max-width: 1180px) {
    .design-editor > .panel-heading,
    .design-module-tabs {
        position: static;
    }

    .design-side {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 860px) {
    .backend-page .topbar-actions {
        border-radius: 8px;
        background: transparent;
        border-color: transparent;
        padding: 0;
    }

    .backend-page .panel-heading,
    .backend-page .invoice-heading,
    .backend-page .upload-card-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .design-workflow-overview {
        grid-template-columns: 1fr;
    }

    .design-editor > .panel-heading {
        margin: -18px -18px 0;
        padding: 14px 18px;
    }
}

@media (max-width: 640px) {
    .backend-page .sidebar {
        padding-inline: 16px;
    }

    .backend-page .toolbar,
    .backend-page .filter-form,
    .backend-page .search-inline,
    .backend-page .inline-controls {
        border-radius: 8px;
    }

    .design-save-actions,
    .design-preview-controls {
        width: 100%;
    }

    .design-save-actions > *,
    .design-preview-controls > * {
        width: 100%;
    }

    .design-module .grid-form,
    .design-media-field {
        grid-template-columns: 1fr;
    }

    .design-media-field label.full-row {
        grid-column: auto;
    }

    .design-preview-frame-wrap {
        min-height: 420px;
        margin-inline: -4px;
    }

    .design-preview-frame {
        height: 620px;
    }

    .design-version-list article {
        flex-direction: column;
    }

    .design-version-list form,
    .design-version-list button {
        width: 100%;
    }
}

/* Backend information architecture refinements */
.backend-page .topbar-context {
    min-width: 0;
    margin-right: auto;
    display: grid;
    gap: 2px;
    padding-left: 4px;
}

.backend-page .topbar-context span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 850;
}

.backend-page .topbar-context strong {
    color: var(--text);
    font-size: 0.98rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backend-page .nav-list {
    gap: 14px;
}

.backend-page .nav-group {
    display: grid;
    gap: 6px;
}

.backend-page .nav-section-title {
    display: block;
    padding: 2px 10px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.backend-page .dashboard-command-center {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.54)),
        rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(20px) saturate(1.12);
    backdrop-filter: blur(20px) saturate(1.12);
}

.backend-page .dashboard-command-center span {
    display: block;
    color: #5d5af2;
    font-size: 0.78rem;
    font-weight: 950;
}

.backend-page .dashboard-command-center strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    line-height: 1.25;
}

.backend-page .quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px;
}

.backend-page .quick-action-grid a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(107, 125, 162, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--text);
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.backend-page .quick-action-grid a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    transform: translateY(-1px);
}

.backend-page .dashboard-layout-tools {
    margin-bottom: 18px;
}

.backend-page .dashboard-widget-settings {
    padding: 0;
}

.backend-page .dashboard-widget-settings summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: var(--text);
    font-weight: 950;
    cursor: pointer;
}

.backend-page .dashboard-widget-settings summary::marker {
    color: var(--accent);
}

.backend-page .dashboard-widget-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 0 18px 18px;
}

.backend-page .dashboard-widget-form label {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(107, 125, 162, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
}

.backend-page .dashboard-widget-form select {
    grid-column: 1 / -1;
}

.backend-page .dashboard-widget-form span {
    color: var(--text);
    font-weight: 900;
}

.backend-page .dashboard-widget-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.backend-page .dashboard-widget-wide {
    grid-row: span 2;
}

[data-theme="dark"] .backend-page .dashboard-command-center,
[data-theme="dark"] .backend-page .quick-action-grid a,
[data-theme="dark"] .backend-page .dashboard-widget-form label {
    background: rgba(20, 29, 47, 0.72);
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1180px) {
    .backend-page .dashboard-widget-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .backend-page .dashboard-widget-form button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .backend-page .dashboard-command-center,
    .backend-page .dashboard-widget-grid {
        grid-template-columns: 1fr;
    }

    .backend-page .dashboard-widget-wide {
        grid-row: auto;
    }
}

@media (max-width: 860px) {
    .backend-page .topbar-context {
        display: none;
    }
}

@media (max-width: 640px) {
    .backend-page .dashboard-widget-form {
        grid-template-columns: 1fr;
    }

    .backend-page .quick-action-grid {
        grid-template-columns: 1fr;
    }
}

/* Backend professional refinement */
.backend-page {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #eef3f8;
    --text: #172033;
    --muted: #657086;
    --line: rgba(113, 128, 150, 0.22);
    --accent: #3d6eea;
    --accent-strong: #264fbf;
    --teal: #0f9c95;
    --gold: #d8824f;
    --shadow: 0 18px 42px rgba(20, 32, 52, 0.1);
    --shadow-soft: 0 10px 26px rgba(20, 32, 52, 0.075);
    --ring: 0 0 0 3px rgba(61, 110, 234, 0.18);
    --backend-sidebar-bg: #111827;
    --backend-sidebar-bg-2: #172033;
    --backend-sidebar-text: #f7faff;
    --backend-sidebar-muted: #9aa7bd;
    --backend-sidebar-line: rgba(255, 255, 255, 0.1);
    --backend-sidebar-hover: rgba(255, 255, 255, 0.075);
    --backend-sidebar-active: rgba(61, 110, 234, 0.22);
    background: linear-gradient(180deg, #f8fbff 0%, #f2f5fa 46%, #f7f4f0 100%);
    color: var(--text);
}

.backend-page .app-shell {
    background:
        linear-gradient(90deg, rgba(23, 32, 51, 0.035) 0 1px, transparent 1px 72px),
        linear-gradient(180deg, rgba(23, 32, 51, 0.028) 0 1px, transparent 1px 72px),
        transparent;
}

.backend-page .app-shell::before,
.backend-page .sidebar::before {
    content: none;
    display: none;
}

.backend-page .sidebar {
    position: sticky;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 22px 14px 18px;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 22%),
        linear-gradient(180deg, var(--backend-sidebar-bg-2), var(--backend-sidebar-bg));
    border-right: 1px solid var(--backend-sidebar-line);
    color: var(--backend-sidebar-text);
    box-shadow: 16px 0 36px rgba(17, 24, 39, 0.16);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.backend-page .sidebar-accent {
    display: block;
    flex: 0 0 auto;
    height: 4px;
    margin: -10px -4px 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6d72ff 0%, var(--teal) 48%, #df7da3 100%);
    box-shadow: 0 10px 24px rgba(61, 110, 234, 0.26);
}

.backend-page .sidebar-profile {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    padding: 13px;
    border: 1px solid var(--backend-sidebar-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.backend-page .sidebar-profile-details {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.backend-page .sidebar-profile strong {
    color: var(--backend-sidebar-text);
    font-size: 0.98rem;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backend-page .sidebar-profile span,
.backend-page .sidebar-role {
    margin: 0;
    color: var(--backend-sidebar-muted);
    font-size: 0.84rem;
}

.backend-page .avatar,
.backend-page .brand-mark,
.backend-page .profile-chip span {
    border-radius: 8px;
    background: linear-gradient(135deg, #6d72ff 0%, #22b8cf 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(34, 184, 207, 0.22);
}

.backend-page .nav-list {
    display: grid;
    gap: 18px;
    margin-top: 0;
    padding-bottom: 18px;
}

.backend-page .nav-group {
    display: grid;
    gap: 5px;
}

.backend-page .nav-section-title {
    display: block;
    padding: 0 10px 5px;
    color: #78879e;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.backend-page .nav-list .nav-link,
.backend-page .logout-link.nav-link {
    position: relative;
    min-height: 44px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #c8d1e1;
    background: transparent;
    font-size: 0.94rem;
    font-weight: 760;
    text-decoration: none;
    box-shadow: none;
}

.backend-page .nav-list .nav-link::before,
.backend-page .logout-link.nav-link::before {
    content: none !important;
    display: none !important;
}

.backend-page .nav-list .nav-link:hover,
.backend-page .logout-link.nav-link:hover {
    border-color: rgba(255, 255, 255, 0.09);
    background: var(--backend-sidebar-hover);
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

.backend-page .nav-list .nav-link.active {
    border-color: rgba(125, 169, 255, 0.28);
    background:
        linear-gradient(90deg, rgba(61, 110, 234, 0.24), rgba(15, 156, 149, 0.12)),
        var(--backend-sidebar-active);
    color: #ffffff;
}

.backend-page .nav-list .nav-link.active::after {
    content: "";
    width: 3px;
    position: absolute;
    inset: 8px auto 8px 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #7da9ff, #22b8cf);
}

.backend-page .nav-glyph {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 8px;
    color: #9fb0ca;
    background: rgba(255, 255, 255, 0.065);
}

.backend-page .nav-link:hover .nav-glyph,
.backend-page .nav-link.active .nav-glyph {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
}

.backend-page .nav-glyph::before,
.backend-page .nav-glyph::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
}

.backend-page .nav-glyph::before {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.backend-page .nav-glyph::after {
    display: none;
}

.backend-page .nav-link[data-nav-key="dashboard"] .nav-glyph::before {
    width: 4px;
    height: 4px;
    border: 0;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 7px 0 0 currentColor, 0 7px 0 currentColor, 7px 7px 0 currentColor;
}

.backend-page .nav-link[data-nav-key="calendar"] .nav-glyph::before,
.backend-page .nav-link[data-nav-key="bookings"] .nav-glyph::before,
.backend-page .nav-link[data-nav-key="payments"] .nav-glyph::before,
.backend-page .nav-link[data-nav-key="packages"] .nav-glyph::before,
.backend-page .nav-link[data-nav-key="gallery"] .nav-glyph::before {
    width: 14px;
    height: 12px;
    border-radius: 3px;
}

.backend-page .nav-link[data-nav-key="calendar"] .nav-glyph::after,
.backend-page .nav-link[data-nav-key="bookings"] .nav-glyph::after,
.backend-page .nav-link[data-nav-key="payments"] .nav-glyph::after {
    display: block;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%) translateY(-2px);
}

.backend-page .nav-link[data-nav-key="notifications"] .nav-glyph::before {
    width: 12px;
    height: 12px;
    border-radius: 50% 50% 45% 45%;
}

.backend-page .nav-link[data-nav-key="notifications"] .nav-glyph::after {
    display: block;
    width: 5px;
    height: 2px;
    top: auto;
    bottom: 7px;
    border-radius: 999px;
    background: currentColor;
    transform: translateX(-50%);
}

.backend-page .nav-link[data-nav-key="booking-form"] .nav-glyph::before,
.backend-page .nav-link[data-nav-key="booking-form"] .nav-glyph::after {
    width: 14px;
    height: 2px;
    border: 0;
    border-radius: 999px;
    background: currentColor;
}

.backend-page .nav-link[data-nav-key="booking-form"] .nav-glyph::after {
    display: block;
    transform: translate(-50%, -50%) rotate(90deg);
}

.backend-page .nav-link[data-nav-key="customers"] .nav-glyph::before,
.backend-page .nav-link[data-nav-key="users"] .nav-glyph::before {
    width: 8px;
    height: 8px;
    top: 7px;
    border-radius: 50%;
    transform: translateX(-50%);
}

.backend-page .nav-link[data-nav-key="customers"] .nav-glyph::after,
.backend-page .nav-link[data-nav-key="users"] .nav-glyph::after {
    display: block;
    width: 14px;
    height: 7px;
    top: auto;
    bottom: 7px;
    border: 2px solid currentColor;
    border-radius: 8px 8px 3px 3px;
    border-bottom: 0;
    transform: translateX(-50%);
}

.backend-page .nav-link[data-nav-key="reports"] .nav-glyph::before {
    width: 3px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 5px 4px 0 currentColor, 10px -3px 0 currentColor;
}

.backend-page .nav-link[data-nav-key="design-manager"] .nav-glyph::before {
    width: 14px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(-35deg);
}

.backend-page .nav-link[data-nav-key="settings"] .nav-glyph::before {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.backend-page .nav-link[data-nav-key="settings"] .nav-glyph::after {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.backend-page .nav-link[data-nav-key="logout"] .nav-glyph::before {
    width: 13px;
    height: 9px;
    border-width: 2px 0 2px 2px;
    border-radius: 3px 0 0 3px;
}

.backend-page .nav-link[data-nav-key="logout"] .nav-glyph::after {
    display: block;
    width: 8px;
    height: 8px;
    left: auto;
    right: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.backend-page .nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backend-page .logout-link.nav-link {
    margin-top: auto;
}

.backend-page .topbar {
    min-height: 74px;
    padding: 14px clamp(18px, 3vw, 38px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 30px rgba(20, 32, 52, 0.06);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.backend-page .brand {
    color: var(--text);
    font-size: 0.98rem;
}

.backend-page .brand-name {
    font-weight: 850;
}

.backend-page .topbar-context {
    padding-left: 2px;
}

.backend-page .topbar-context span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 760;
    letter-spacing: 0;
}

.backend-page .topbar-context strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 850;
}

.backend-page .topbar-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.backend-page .topbar-actions > .icon-button,
.backend-page .topbar-actions > .ghost-button,
.backend-page .topbar-actions > .profile-chip {
    height: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
    vertical-align: middle;
}

.backend-page .topbar-actions > .icon-button {
    width: 42px;
    flex: 0 0 42px;
    padding: 0;
}

.backend-page .topbar-actions > .ghost-button {
    padding: 0 16px;
}

.backend-page .topbar-actions > .profile-chip {
    gap: 8px;
    padding: 3px 10px 3px 3px;
}

.backend-page .topbar-actions > .profile-chip span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
}

.backend-page .topbar-actions > .profile-chip strong {
    line-height: 1;
}

.backend-page .main-content,
.backend-page .content-wrap {
    width: min(1320px, calc(100% - 48px));
    padding: 30px 0 44px;
}

.backend-page .page-heading {
    gap: 7px;
    margin-bottom: 22px;
    padding: 0 0 16px;
}

.backend-page .page-heading::after {
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
}

.backend-page .eyebrow {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    align-items: center;
    margin: 0 0 8px;
    padding: 0 12px;
    border: 1px solid rgba(61, 110, 234, 0.22);
    border-radius: 999px;
    background: rgba(61, 110, 234, 0.1);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.backend-page .page-heading h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.9rem, 3.2vw, 3.05rem);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: 0;
}

.backend-page .page-heading p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.backend-page .panel,
.backend-page .form-card,
.backend-page .stat-card,
.backend-page .invoice-card,
.backend-page .empty-state,
.backend-page .booking-section,
.backend-page .mini-card,
.backend-page .feature-band article,
.backend-page .split-grid > div,
.backend-page .photo-card,
.backend-page .package-option,
.backend-page .settings-media-preview,
.backend-page .drop-zone,
.backend-page .gallery-folder,
.backend-page .calendar-day,
.backend-page .calendar-head,
.backend-page .dashboard-command-center {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.backend-page .panel:hover,
.backend-page .form-card:hover,
.backend-page .stat-card:hover,
.backend-page .photo-card:hover,
.backend-page .package-option:hover {
    border-color: rgba(61, 110, 234, 0.24);
    box-shadow: var(--shadow);
    transform: none;
}

.backend-page .stat-grid {
    gap: 14px;
    margin-bottom: 18px;
}

.backend-page .stat-card {
    min-height: 126px;
    display: grid;
    align-content: space-between;
    padding: 18px;
    overflow: hidden;
}

.backend-page .stat-card::before {
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
}

.backend-page .stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--teal), #39b980);
}

.backend-page .stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--gold), #df7da3);
}

.backend-page .stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, #df7da3, var(--accent));
}

.backend-page .stat-card span,
.backend-page .mini-card span,
.backend-page .invoice-grid span,
.backend-page .totals-box span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 760;
}

.backend-page .stat-card strong,
.backend-page .mini-card strong {
    color: var(--text);
    font-size: clamp(1.55rem, 2.1vw, 2.25rem);
    line-height: 1.1;
}

.backend-page .dashboard-command-center {
    grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.backend-page .dashboard-command-center span {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
}

.backend-page .dashboard-command-center strong {
    max-width: 420px;
    font-size: 1rem;
    font-weight: 850;
}

.backend-page .quick-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.backend-page .quick-action-grid a {
    min-height: 44px;
    border: 1px solid rgba(113, 128, 150, 0.2);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: none;
}

.backend-page .quick-action-grid a:hover {
    border-color: rgba(61, 110, 234, 0.32);
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    transform: none;
}

.backend-page .toolbar,
.backend-page .filter-form,
.backend-page .search-inline,
.backend-page .inline-controls,
.backend-page .dashboard-widget-form label,
.backend-page .timeline-item,
.backend-page .notification-list > div,
.backend-page .settings-summary > div,
.backend-page .customer-note,
.backend-page .price-builder,
.backend-page .invoice-grid > div,
.backend-page .totals-box > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.backend-page .invoice-grid > div,
.backend-page .totals-box > div {
    background:
        linear-gradient(135deg, rgba(61, 110, 234, 0.08), rgba(15, 156, 149, 0.05)),
        #ffffff;
}

.backend-page .customer-note {
    border-color: rgba(61, 110, 234, 0.16);
    background:
        linear-gradient(135deg, rgba(61, 110, 234, 0.1), rgba(15, 156, 149, 0.06)),
        #f8fbff;
    color: #26364d;
}

.backend-page .invoice-grid strong,
.backend-page .totals-box strong {
    color: var(--text);
}

.backend-page .toolbar {
    padding: 10px;
}

.backend-page input,
.backend-page select,
.backend-page textarea {
    min-height: 42px;
    border: 1px solid rgba(113, 128, 150, 0.26);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    box-shadow: none;
}

.backend-page input:focus,
.backend-page select:focus,
.backend-page textarea:focus {
    border-color: rgba(61, 110, 234, 0.52);
    box-shadow: var(--ring);
}

.backend-page .primary-button,
.backend-page .ghost-button,
.backend-page .danger-button,
.backend-page .icon-button,
.backend-page .mobile-menu,
.backend-page .photo-actions button,
.backend-page .row-actions button,
.backend-page td button:not([class]) {
    min-height: 40px;
    border-radius: 8px;
    font-weight: 800;
}

.backend-page .primary-button {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(61, 110, 234, 0.22);
}

.backend-page .primary-button:hover {
    background: linear-gradient(135deg, var(--accent-strong), var(--teal));
    transform: none;
}

.backend-page .ghost-button,
.backend-page .danger-button,
.backend-page .icon-button,
.backend-page .mobile-menu,
.backend-page .photo-actions button,
.backend-page .row-actions button,
.backend-page td button:not([class]) {
    border-color: rgba(113, 128, 150, 0.24);
    background: #ffffff;
    color: var(--text);
}

.backend-page .ghost-button:hover,
.backend-page .danger-button:hover,
.backend-page .icon-button:hover,
.backend-page .mobile-menu:hover,
.backend-page .photo-actions button:hover,
.backend-page .row-actions button:hover,
.backend-page td button:not([class]):hover {
    border-color: rgba(61, 110, 234, 0.34);
    background: #f8fafc;
    color: var(--accent-strong);
    transform: none;
}

.backend-page .profile-chip {
    min-width: 0;
    border-color: rgba(113, 128, 150, 0.22);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.backend-page .table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.backend-page .bookings-table th:last-child,
.backend-page .bookings-table td.booking-row-actions {
    width: 396px;
    min-width: 396px;
}

.backend-page .bookings-table td.booking-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    height: auto;
    min-height: 68px;
    padding-block: 10px;
}

.backend-page .bookings-table .booking-row-actions a,
.backend-page .bookings-table .booking-row-actions button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(113, 128, 150, 0.2);
    font-weight: 850;
}

.backend-page .bookings-table .booking-row-actions a {
    background: rgba(61, 110, 234, 0.08);
    color: var(--accent-strong);
}

.backend-page .bookings-table .booking-row-actions a:hover {
    border-color: rgba(61, 110, 234, 0.34);
    background: rgba(61, 110, 234, 0.14);
    color: var(--accent-strong);
}

.backend-page .bookings-table .booking-row-actions .inline-form {
    display: flex;
    margin: 0;
}

.backend-page .bookings-table .booking-row-actions .booking-status-form {
    grid-column: 1 / -1;
}

.backend-page .bookings-table .booking-row-actions select {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    margin: 0;
}

.backend-page table {
    border-collapse: separate;
    border-spacing: 0;
}

.backend-page th {
    height: 46px;
    background: #f7f9fc;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.backend-page td {
    height: 52px;
    border-bottom-color: rgba(113, 128, 150, 0.14);
}

.backend-page tbody tr:hover {
    background: rgba(61, 110, 234, 0.045);
}

.backend-page .site-footer {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .backend-page {
    --bg: #10141d;
    --surface: #171f2c;
    --surface-2: #1d2837;
    --text: #f7faff;
    --muted: #a5b0c2;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #7da9ff;
    --accent-strong: #9aa7ff;
    --teal: #33c6bd;
    --gold: #d99a66;
    --shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.22);
    background: linear-gradient(180deg, #10141d 0%, #141b27 48%, #10141d 100%);
}

[data-theme="dark"] .backend-page .app-shell {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 72px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 72px),
        transparent;
}

[data-theme="dark"] .backend-page .topbar,
[data-theme="dark"] .backend-page .panel,
[data-theme="dark"] .backend-page .form-card,
[data-theme="dark"] .backend-page .stat-card,
[data-theme="dark"] .backend-page .invoice-card,
[data-theme="dark"] .backend-page .empty-state,
[data-theme="dark"] .backend-page .booking-section,
[data-theme="dark"] .backend-page .mini-card,
[data-theme="dark"] .backend-page .feature-band article,
[data-theme="dark"] .backend-page .split-grid > div,
[data-theme="dark"] .backend-page .photo-card,
[data-theme="dark"] .backend-page .package-option,
[data-theme="dark"] .backend-page .settings-media-preview,
[data-theme="dark"] .backend-page .drop-zone,
[data-theme="dark"] .backend-page .gallery-folder,
[data-theme="dark"] .backend-page .calendar-day,
[data-theme="dark"] .backend-page .calendar-head,
[data-theme="dark"] .backend-page .dashboard-command-center,
[data-theme="dark"] .backend-page .toolbar,
[data-theme="dark"] .backend-page .filter-form,
[data-theme="dark"] .backend-page .search-inline,
[data-theme="dark"] .backend-page .inline-controls,
[data-theme="dark"] .backend-page .dashboard-widget-form label,
[data-theme="dark"] .backend-page .timeline-item,
[data-theme="dark"] .backend-page .notification-list > div,
[data-theme="dark"] .backend-page .settings-summary > div,
[data-theme="dark"] .backend-page .table-wrap,
[data-theme="dark"] .backend-page .invoice-grid > div,
[data-theme="dark"] .backend-page .totals-box > div {
    border-color: var(--line);
    background:
        linear-gradient(135deg, rgba(125, 169, 255, 0.12), rgba(51, 198, 189, 0.07)),
        rgba(16, 20, 29, 0.86);
}

[data-theme="dark"] .backend-page .invoice-grid span,
[data-theme="dark"] .backend-page .totals-box span {
    color: #9fb0cc;
}

[data-theme="dark"] .backend-page .invoice-grid strong,
[data-theme="dark"] .backend-page .totals-box strong {
    color: #f8fbff;
}

[data-theme="dark"] .backend-page .customer-note {
    border-color: rgba(125, 169, 255, 0.22);
    background:
        linear-gradient(135deg, rgba(125, 169, 255, 0.16), rgba(51, 198, 189, 0.08)),
        #121a27;
    color: #dce7fb;
}

[data-theme="dark"] .backend-page .receipt-note {
    color: #b8c4d8;
}

[data-theme="dark"] .backend-page input,
[data-theme="dark"] .backend-page select,
[data-theme="dark"] .backend-page textarea,
[data-theme="dark"] .backend-page .profile-chip,
[data-theme="dark"] .backend-page .ghost-button,
[data-theme="dark"] .backend-page .danger-button,
[data-theme="dark"] .backend-page .icon-button,
[data-theme="dark"] .backend-page .mobile-menu,
[data-theme="dark"] .backend-page .photo-actions button,
[data-theme="dark"] .backend-page .row-actions button,
[data-theme="dark"] .backend-page td button:not([class]),
[data-theme="dark"] .backend-page .quick-action-grid a {
    border-color: var(--line);
    background: rgba(16, 20, 29, 0.84);
    color: var(--text);
}

[data-theme="dark"] .backend-page .bookings-table .row-actions a {
    border-color: rgba(125, 169, 255, 0.12);
    background: rgba(125, 169, 255, 0.09);
    color: #8ea8ff;
}

[data-theme="dark"] .backend-page .bookings-table .row-actions a:hover {
    border-color: rgba(125, 169, 255, 0.28);
    background: rgba(125, 169, 255, 0.14);
    color: #c8d5ff;
}

.backend-page .booking-management-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 0 0 22px;
}

.backend-page .booking-management-heading::after {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--accent));
}

.backend-page .booking-heading-copy {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.backend-page .booking-management-heading .eyebrow {
    min-height: 30px;
    margin: 0 0 4px;
    padding: 0 14px;
    border-color: rgba(125, 169, 255, 0.4);
    background: #dbe8ff;
    color: #23314b;
    font-weight: 950;
    text-transform: uppercase;
}

.backend-page .booking-management-heading h1 {
    font-size: clamp(2.7rem, 4.2vw, 3.9rem);
    font-weight: 950;
}

.backend-page .booking-management-heading p:not(.eyebrow) {
    max-width: 720px;
    font-size: 1.05rem;
    font-weight: 760;
}

.backend-page .booking-new-button {
    min-height: 54px;
    margin-top: 50px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 950;
}

.backend-page .booking-management-toolbar {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    border-color: rgba(107, 125, 162, 0.22);
    background:
        linear-gradient(135deg, rgba(61, 110, 234, 0.08), rgba(15, 156, 149, 0.05)),
        rgba(255, 255, 255, 0.78);
    box-shadow: none;
}

.backend-page .booking-management-toolbar .booking-filter-form {
    width: 100%;
    flex: 1 1 100%;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    border-color: rgba(107, 125, 162, 0.22);
    background: rgba(255, 255, 255, 0.46);
    box-shadow: none;
}

.backend-page .booking-management-toolbar .booking-filter-form input[type="search"] {
    flex: 1 1 440px;
}

.backend-page .booking-management-toolbar .booking-filter-form select {
    flex: 0 0 188px;
}

.backend-page .booking-management-toolbar .booking-filter-form input[type="date"] {
    flex: 0 0 166px;
}

.backend-page .booking-management-toolbar .booking-filter-form button,
.backend-page .booking-management-toolbar .booking-filter-form a {
    flex: 0 0 82px;
}

[data-theme="dark"] .backend-page .booking-management-heading .eyebrow {
    border-color: rgba(219, 232, 255, 0.34);
    background: #dbe8ff;
    color: #23314b;
}

[data-theme="dark"] .backend-page .booking-management-toolbar {
    border-color: rgba(51, 198, 189, 0.18);
    background:
        linear-gradient(135deg, rgba(125, 169, 255, 0.1), rgba(51, 198, 189, 0.06)),
        rgba(18, 27, 40, 0.86);
}

[data-theme="dark"] .backend-page .booking-management-toolbar .booking-filter-form {
    border-color: rgba(125, 169, 255, 0.15);
    background: rgba(16, 24, 36, 0.78);
}

[data-theme="dark"] .backend-page .booking-management-toolbar input,
[data-theme="dark"] .backend-page .booking-management-toolbar select {
    border-color: rgba(125, 169, 255, 0.16);
    background: #101722;
    color: #f4f7ff;
}

[data-theme="dark"] .backend-page .booking-management-toolbar input::placeholder {
    color: #667189;
}

.backend-page .booking-entry-form .package-option {
    border-color: rgba(113, 128, 150, 0.24);
    background:
        linear-gradient(135deg, rgba(61, 110, 234, 0.04), rgba(15, 156, 149, 0.03)),
        #ffffff;
    color: var(--text);
}

.backend-page .booking-entry-form .package-option:hover,
.backend-page .booking-entry-form .package-option.selected,
.backend-page .booking-entry-form .package-option:has(input:checked) {
    border-color: rgba(61, 110, 234, 0.58);
    background:
        linear-gradient(135deg, rgba(61, 110, 234, 0.13), rgba(15, 156, 149, 0.08)),
        #ffffff;
}

.backend-page .booking-entry-form .custom-package-option {
    background:
        linear-gradient(135deg, rgba(15, 156, 149, 0.09), rgba(61, 110, 234, 0.05)),
        #ffffff;
}

.backend-page .booking-entry-form .package-option strong {
    color: var(--text);
}

.backend-page .booking-entry-form .package-option span:not(.package-price) {
    color: var(--muted);
}

.backend-page .booking-entry-form .package-price,
.backend-page .booking-entry-form .package-price span {
    color: var(--accent) !important;
}

.backend-page .booking-entry-form .custom-package-price {
    border-color: rgba(113, 128, 150, 0.26);
    background: #f8fafc;
    color: var(--text);
}

.backend-page .booking-entry-form .price-builder {
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(61, 110, 234, 0.08), rgba(15, 156, 149, 0.05)),
        #ffffff;
}

.backend-page .booking-entry-form .price-line span,
.backend-page .booking-entry-form .price-total span {
    color: var(--muted);
    font-weight: 760;
}

.backend-page .booking-entry-form .price-line strong,
.backend-page .booking-entry-form .price-total strong {
    color: var(--text);
}

.backend-page .booking-entry-form .adjustment-line {
    border-radius: 8px;
    background: rgba(23, 32, 51, 0.06);
}

.backend-page .booking-entry-form .stepper-control button {
    border-color: rgba(113, 128, 150, 0.24);
    background: var(--text);
    color: #ffffff;
}

.backend-page .package-domain-stack {
    display: grid;
    gap: 12px;
}

.backend-page .package-form-stack {
    display: grid;
    gap: 18px;
}

.backend-page .package-management-form {
    align-content: start;
}

.backend-page .packages-list-panel .panel-heading {
    margin-bottom: 18px;
}

.backend-page .package-section-stack {
    display: grid;
    gap: 22px;
}

.backend-page .package-list-section + .package-list-section {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.backend-page .package-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.backend-page .package-section-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
}

.backend-page .package-section-heading span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.backend-page .package-section-heading strong {
    min-width: 34px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 156, 149, 0.18);
    border-radius: 8px;
    background: rgba(15, 156, 149, 0.08);
    color: var(--teal);
    font-size: 0.86rem;
    font-weight: 900;
}

.backend-page .packages-table {
    min-width: 760px;
}

.backend-page .packages-event-table {
    min-width: 620px;
}

.backend-page .packages-album-table {
    min-width: 680px;
}

.backend-page .packages-table th:last-child,
.backend-page .packages-table td:last-child {
    width: 150px;
}

.backend-page .packages-table td:first-child {
    font-weight: 850;
}

.backend-page .package-action-links {
    display: grid;
    gap: 6px;
    align-items: start;
}

.backend-page .package-action-links a {
    width: fit-content;
    color: var(--teal);
    font-weight: 900;
}

[data-theme="dark"] .backend-page .package-section-heading strong {
    border-color: rgba(51, 198, 189, 0.22);
    background: rgba(51, 198, 189, 0.1);
}

.backend-page .event-type-group,
.backend-page .package-detail-group {
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(113, 128, 150, 0.18);
    border-radius: 8px;
    background: rgba(61, 110, 234, 0.045);
}

.backend-page .package-domain-section {
    border-left-width: 4px;
}

.backend-page .package-event-types-section {
    border-left-color: var(--accent);
}

.backend-page .package-album-group {
    border-left-color: var(--teal);
    background: rgba(15, 156, 149, 0.045);
}

.backend-page .package-album-fields {
    display: grid;
    gap: 12px;
}

.backend-page .event-production-fields {
    margin-top: 16px;
}

.backend-page .booking-options-section {
    padding-block: 18px;
}

.backend-page .booking-option-toggle {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(113, 128, 150, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(61, 110, 234, 0.08), rgba(15, 156, 149, 0.05)),
        rgba(255, 255, 255, 0.72);
    color: var(--text);
    cursor: pointer;
}

.backend-page .booking-option-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.backend-page .option-switch {
    position: relative;
    width: 52px;
    height: 30px;
    border: 1px solid rgba(113, 128, 150, 0.34);
    border-radius: 999px;
    background: rgba(23, 32, 51, 0.12);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.backend-page .option-switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(23, 32, 51, 0.18);
    transition: transform 0.18s ease;
}

.backend-page .booking-option-toggle input:checked + .option-switch {
    border-color: rgba(61, 110, 234, 0.58);
    background: linear-gradient(135deg, var(--accent), var(--teal));
}

.backend-page .booking-option-toggle input:checked + .option-switch::after {
    transform: translateX(22px);
}

.backend-page .booking-option-toggle input:focus-visible + .option-switch {
    outline: 3px solid rgba(21, 185, 214, 0.32);
    outline-offset: 2px;
}

.backend-page .booking-option-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.backend-page .booking-option-copy strong {
    color: var(--text);
    font-size: 1rem;
}

.backend-page .booking-option-copy span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.backend-page .album-details-section[hidden] {
    display: none;
}

.backend-page .album-details-grid {
    align-items: end;
}

.backend-page .required-mark {
    color: var(--danger);
    font-weight: 950;
}

.backend-page .event-type-group legend,
.backend-page .package-detail-group legend {
    padding: 0 6px;
    margin-bottom: 10px;
    color: var(--muted);
    font-weight: 800;
}

.backend-page .event-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.backend-page .event-type-option {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(113, 128, 150, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--text);
    font-weight: 760;
}

.backend-page .event-type-option input {
    width: 16px;
    min-height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.backend-page .event-type-option span {
    line-height: 1;
}

.backend-page .event-schedule-fields {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.backend-page .event-schedule-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.5fr) repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid rgba(113, 128, 150, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.backend-page .event-schedule-row[hidden] {
    display: none;
}

.backend-page .event-schedule-row > strong {
    align-self: center;
    color: var(--text);
    font-size: 0.95rem;
}

[data-theme="dark"] .backend-page .booking-entry-form .package-option {
    border-color: rgba(125, 169, 255, 0.16);
    background:
        linear-gradient(135deg, rgba(125, 169, 255, 0.05), rgba(51, 198, 189, 0.035)),
        rgba(16, 20, 29, 0.82);
    color: #f8fbff;
}

[data-theme="dark"] .backend-page .booking-entry-form .package-option:hover,
[data-theme="dark"] .backend-page .booking-entry-form .package-option.selected,
[data-theme="dark"] .backend-page .booking-entry-form .package-option:has(input:checked) {
    border-color: rgba(125, 169, 255, 0.62);
    background:
        linear-gradient(135deg, rgba(125, 169, 255, 0.18), rgba(51, 198, 189, 0.08)),
        rgba(18, 25, 37, 0.96);
}

[data-theme="dark"] .backend-page .booking-entry-form .custom-package-option {
    background:
        linear-gradient(135deg, rgba(51, 198, 189, 0.1), rgba(125, 169, 255, 0.06)),
        rgba(16, 20, 29, 0.86);
}

[data-theme="dark"] .backend-page .booking-entry-form .package-option strong {
    color: #f8fbff;
}

[data-theme="dark"] .backend-page .booking-entry-form .package-option span:not(.package-price) {
    color: #aebbd0;
}

[data-theme="dark"] .backend-page .booking-entry-form .package-price,
[data-theme="dark"] .backend-page .booking-entry-form .package-price span {
    color: #9aaeff !important;
}

[data-theme="dark"] .backend-page .booking-entry-form .custom-package-price {
    border-color: rgba(125, 169, 255, 0.16);
    background: rgba(9, 13, 20, 0.74);
    color: #f8fbff;
}

[data-theme="dark"] .backend-page .booking-entry-form .price-builder {
    border-color: rgba(125, 169, 255, 0.16);
    background:
        linear-gradient(135deg, rgba(125, 169, 255, 0.1), rgba(51, 198, 189, 0.055)),
        rgba(16, 20, 29, 0.84);
}

[data-theme="dark"] .backend-page .booking-entry-form .price-line span,
[data-theme="dark"] .backend-page .booking-entry-form .price-total span {
    color: #aebbd0;
}

[data-theme="dark"] .backend-page .booking-entry-form .price-line strong,
[data-theme="dark"] .backend-page .booking-entry-form .price-total strong {
    color: #f8fbff;
}

[data-theme="dark"] .backend-page .booking-entry-form .adjustment-line {
    background: rgba(9, 13, 20, 0.72);
}

[data-theme="dark"] .backend-page .booking-entry-form .stepper-control button {
    border-color: rgba(125, 169, 255, 0.16);
    background: #0f1726;
    color: #f8fbff;
}

[data-theme="dark"] .backend-page .event-type-group legend,
[data-theme="dark"] .backend-page .package-detail-group legend {
    color: #aebbd0;
}

[data-theme="dark"] .backend-page .event-type-group,
[data-theme="dark"] .backend-page .package-detail-group {
    border-color: rgba(125, 169, 255, 0.16);
    background: rgba(125, 169, 255, 0.055);
}

[data-theme="dark"] .backend-page .package-album-group {
    background: rgba(51, 198, 189, 0.045);
}

[data-theme="dark"] .backend-page .event-type-option {
    border-color: rgba(125, 169, 255, 0.16);
    background: rgba(16, 20, 29, 0.82);
    color: #f8fbff;
}

[data-theme="dark"] .backend-page .booking-option-toggle {
    border-color: rgba(125, 169, 255, 0.16);
    background:
        linear-gradient(135deg, rgba(125, 169, 255, 0.08), rgba(51, 198, 189, 0.05)),
        rgba(16, 20, 29, 0.78);
    color: #f8fbff;
}

[data-theme="dark"] .backend-page .option-switch {
    border-color: rgba(125, 169, 255, 0.18);
    background: rgba(9, 13, 20, 0.72);
}

[data-theme="dark"] .backend-page .booking-option-copy strong {
    color: #f8fbff;
}

[data-theme="dark"] .backend-page .booking-option-copy span {
    color: #aebbd0;
}

[data-theme="dark"] .backend-page .event-schedule-row {
    border-color: rgba(125, 169, 255, 0.16);
    background: rgba(16, 20, 29, 0.78);
}

[data-theme="dark"] .backend-page .event-schedule-row > strong {
    color: #f8fbff;
}

/* Payment management */
.backend-page .payment-summary-grid .finance-stat {
    gap: 10px;
    min-height: 136px;
}

.backend-page .payment-summary-grid .finance-stat::before {
    content: "";
    inset: 0 0 auto;
    height: 4px;
    border-radius: 8px 8px 0 0;
}

.backend-page .payment-summary-grid .income-stat::before {
    background: linear-gradient(90deg, var(--success), var(--teal));
}

.backend-page .payment-summary-grid .expense-stat::before {
    background: linear-gradient(90deg, var(--warning), var(--gold));
}

.backend-page .payment-summary-grid .net-stat::before {
    background: linear-gradient(90deg, var(--accent), var(--teal));
}

.backend-page .payment-summary-grid .net-stat.is-negative::before {
    background: linear-gradient(90deg, var(--danger), var(--warning));
}

.backend-page .payment-summary-grid .receipt-stat::before {
    background: linear-gradient(90deg, #6b74d6, var(--accent));
}

.backend-page .finance-stat small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 760;
    line-height: 1.35;
}

.backend-page .payment-entry-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.backend-page .payment-form-card {
    position: relative;
    overflow: hidden;
    border-left-width: 4px;
}

.backend-page .payment-form-card-primary {
    border-left-color: var(--success);
}

.backend-page .expense-form-card {
    border-left-color: var(--warning);
}

.backend-page .payment-card-heading {
    display: grid;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.backend-page .payment-card-heading span {
    width: fit-content;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(113, 128, 150, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
}

.backend-page .payment-card-heading h2 {
    margin: 0;
}

.backend-page .payment-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.backend-page .payment-form-grid.single {
    grid-template-columns: 1fr;
}

.backend-page .payment-status,
.backend-page .receipt-link {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: capitalize;
    white-space: nowrap;
}

.backend-page .payment-status-advance {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--accent);
}

.backend-page .payment-status-partial {
    background: color-mix(in srgb, var(--warning) 15%, var(--surface));
    color: var(--warning);
}

.backend-page .payment-status-full {
    background: color-mix(in srgb, var(--success) 14%, var(--surface));
    color: var(--success);
}

.backend-page .receipt-link {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--teal);
    text-decoration: none;
}

.backend-page .receipt-link:hover {
    border-color: var(--teal);
    text-decoration: none;
}

.backend-page .payment-history-table {
    min-width: 1120px;
}

.backend-page .payment-history-table tbody td {
    height: auto;
    vertical-align: middle;
}

.backend-page .payment-actions-cell {
    width: 390px;
    min-width: 390px;
    padding-block: 12px;
    vertical-align: top;
}

.backend-page .payment-row-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    min-width: 0;
}

.backend-page .payment-row-actions form {
    margin: 0;
}

.backend-page .payment-row-actions .danger-button,
.backend-page .payment-row-actions .receipt-link,
.backend-page .payment-more-menu summary {
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 850;
}

.backend-page .payment-row-actions .danger-button {
    box-shadow: none;
}

.backend-page .payment-more-menu {
    min-width: 0;
}

.backend-page .payment-more-menu[open] {
    grid-column: 1 / -1;
}

.backend-page .payment-more-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.backend-page .payment-more-menu summary::-webkit-details-marker {
    display: none;
}

.backend-page .payment-more-menu div {
    width: 100%;
    margin-top: 8px;
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

.backend-page .payment-more-menu span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.backend-page .payment-history-panel,
.backend-page .expense-history-panel {
    margin-top: 18px;
}

[data-theme="dark"] .backend-page .payment-card-heading span,
[data-theme="dark"] .backend-page .receipt-link,
[data-theme="dark"] .backend-page .payment-more-menu summary,
[data-theme="dark"] .backend-page .payment-more-menu div {
    border-color: rgba(125, 169, 255, 0.16);
    background: rgba(16, 20, 29, 0.82);
}

@media (max-width: 980px) {
    .backend-page .payment-entry-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .backend-page .payment-form-grid {
        grid-template-columns: 1fr;
    }

    .backend-page .payment-row-actions {
        grid-template-columns: 1fr;
    }

    .backend-page .payment-actions-cell {
        min-width: 220px;
        width: 220px;
    }
}

@media (max-width: 760px) {
    .backend-page .event-schedule-row {
        grid-template-columns: 1fr;
    }

    .customer-trash-forms,
    .customer-trash-password-form,
    .customer-trash-password-form:only-child,
    .customer-trash-summary,
    .customer-trash-export-actions {
        grid-template-columns: 1fr;
    }

    .customer-trash-modal-head,
    .customer-trash-modal-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

[data-theme="dark"] .backend-page th {
    background: rgba(20, 27, 39, 0.96);
}

[data-theme="dark"] .backend-page .eyebrow {
    border-color: rgba(125, 169, 255, 0.38);
    background: #dbe7ff;
    color: #10203d;
}

[data-theme="dark"] .backend-page .site-footer {
    background: rgba(16, 20, 29, 0.82);
    border-top-color: var(--line);
}

@media (max-width: 1080px) {
    .backend-page .main-content,
    .backend-page .content-wrap {
        width: min(100% - 36px, 1320px);
    }
}

@media (max-width: 980px) {
    .backend-page .dashboard-command-center,
    .backend-page .dashboard-widget-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .backend-page .sidebar {
        position: fixed;
        width: min(88vw, var(--sidebar));
        max-width: 360px;
        padding: 22px 14px max(18px, env(safe-area-inset-bottom));
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 22%),
            linear-gradient(180deg, var(--backend-sidebar-bg-2), var(--backend-sidebar-bg));
    }

    .backend-page .sidebar-close {
        flex: 0 0 40px;
        align-self: flex-end;
        margin: 0 0 12px;
        border-color: var(--backend-sidebar-line);
        background: rgba(255, 255, 255, 0.07);
        color: var(--backend-sidebar-text);
    }

    .backend-page .sidebar-accent {
        margin-top: 0;
    }

    .backend-page .topbar {
        min-height: 68px;
        gap: 12px;
        padding-inline: 16px;
    }

    .backend-page .topbar-actions {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .backend-page .main-content,
    .backend-page .content-wrap,
    .backend-page .toast {
        width: min(100% - 24px, 1320px);
        padding-top: 24px;
    }

    .backend-page .page-heading h1 {
        font-size: clamp(1.85rem, 9vw, 2.55rem);
    }

    .backend-page .dashboard-command-center,
    .backend-page .panel,
    .backend-page .form-card,
    .backend-page .booking-section {
        padding: 16px;
    }

    .backend-page .quick-action-grid,
    .backend-page .dashboard-widget-form {
        grid-template-columns: 1fr;
    }

    .backend-page .topbar-actions .ghost-button[href$="notifications"],
    .backend-page .topbar-actions .ghost-button[href$="notifications.php"] {
        max-width: 118px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Backend-aligned auth screens */
.auth-page {
    --auth-bg: #0b1020;
    --auth-panel: #141b2e;
    --auth-panel-strong: #182238;
    --auth-text: #f9f2e8;
    --auth-muted: #d6c9bd;
    --auth-line: rgba(255, 245, 236, 0.16);
    --auth-accent: #dda867;
    --auth-accent-strong: #f0c987;
    --auth-teal: #7dccd5;
    --auth-gold: #dda867;
    --auth-danger: #ff8b8b;
    --auth-shadow: 0 24px 64px rgba(4, 8, 17, 0.42);
    background: var(--auth-bg);
    color: var(--auth-text);
}

.auth-page .app-shell,
.auth-page .page-shell {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(221, 168, 103, 0.07), transparent 430px),
        linear-gradient(90deg, rgba(255, 245, 236, 0.04) 0 1px, transparent 1px 86px),
        linear-gradient(180deg, #0b1020 0%, #101729 52%, #0b1020 100%);
}

.auth-page .topbar {
    min-height: 68px;
    padding: 12px clamp(16px, 3vw, 32px);
    border-bottom: 1px solid var(--auth-line);
    background: rgba(11, 16, 32, 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.auth-page .brand {
    min-width: 0;
    color: var(--auth-text);
}

.auth-page .brand:hover {
    text-decoration: none;
}

.auth-page .brand-name {
    color: var(--auth-text);
    font-weight: 850;
}

.auth-page .brand-mark,
.auth-page .gmail-logo {
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-teal));
    color: #090e1d;
    box-shadow: 0 14px 30px rgba(221, 168, 103, 0.2);
}

.auth-page .brand-logo,
.auth-page .gmail-logo img {
    border-color: var(--auth-line);
    background: rgba(255, 255, 255, 0.94);
}

.auth-page .topbar-actions {
    gap: 10px;
}

.auth-page .icon-button,
.auth-page .ghost-button,
.auth-page .primary-button {
    min-height: 40px;
    border-radius: 8px;
    font-weight: 850;
    transform: none;
}

.auth-page .icon-button,
.auth-page .ghost-button {
    border-color: var(--auth-line);
    background: rgba(20, 27, 46, 0.74);
    color: var(--auth-text);
}

.auth-page .primary-button {
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-strong));
    color: #090e1d;
    box-shadow: 0 14px 28px rgba(221, 168, 103, 0.24);
}

.auth-page .primary-button:hover,
.auth-page .ghost-button:hover,
.auth-page .icon-button:hover {
    border-color: rgba(221, 168, 103, 0.34);
    background-color: rgba(221, 168, 103, 0.12);
    color: var(--auth-text);
    text-decoration: none;
    transform: none;
}

.auth-page .primary-button:hover {
    background: linear-gradient(135deg, var(--auth-accent-strong), var(--auth-teal));
    color: #090e1d;
}

.auth-wrap {
    width: min(1040px, calc(100% - 32px));
    min-height: calc(100vh - 132px);
    align-items: center;
    padding: clamp(26px, 5vw, 54px) 0;
}

.auth-page .gmail-card {
    width: min(520px, 100%);
    padding: clamp(26px, 4.5vw, 42px);
    border: 1px solid var(--auth-line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(221, 168, 103, 0.12), rgba(125, 204, 213, 0.07)),
        rgba(20, 27, 46, 0.88);
    box-shadow: var(--auth-shadow);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.auth-page .gmail-card.wide {
    width: min(820px, 100%);
}

.auth-page .gmail-card::before {
    height: 4px;
    background: linear-gradient(90deg, var(--auth-accent), var(--auth-teal), var(--auth-gold));
}

.auth-page .gmail-logo {
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-page .gmail-copy h1 {
    margin: 0 0 8px;
    color: var(--auth-text);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    letter-spacing: 0;
}

.auth-page .gmail-copy p {
    max-width: 560px;
    color: var(--auth-muted);
}

.auth-page .auth-form {
    gap: 16px;
    margin-top: 28px;
}

.auth-page form label {
    color: var(--auth-muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.auth-page input,
.auth-page select,
.auth-page textarea {
    min-height: 46px;
    border: 1px solid rgba(255, 245, 236, 0.16);
    border-radius: 8px;
    background: rgba(9, 14, 29, 0.72);
    color: var(--auth-text);
    box-shadow: none;
}

.auth-page input:focus,
.auth-page select:focus,
.auth-page textarea:focus {
    border-color: rgba(125, 204, 213, 0.58);
    box-shadow: 0 0 0 3px rgba(125, 204, 213, 0.16);
}

.auth-page .checkbox {
    color: var(--auth-muted);
    font-weight: 780;
}

.auth-page .checkbox input {
    width: 18px;
    min-height: 18px;
    border-color: rgba(214, 201, 189, 0.42);
    accent-color: var(--auth-accent);
}

.auth-page .inline-row {
    justify-content: space-between;
    gap: 12px;
}

.auth-page a,
.auth-page .text-link {
    color: var(--auth-teal);
    font-weight: 850;
}

.auth-page .auth-actions {
    justify-content: flex-end;
    gap: 12px;
    margin-top: 4px;
}

.auth-page .auth-actions .primary-button {
    min-width: 104px;
}

.auth-page .demo-reset-link {
    border: 1px solid var(--auth-line);
    background: rgba(9, 14, 29, 0.58);
    color: var(--auth-text);
}

.auth-page .toast {
    border-color: var(--auth-line);
    background: rgba(20, 27, 46, 0.92);
    box-shadow: var(--auth-shadow);
}

.auth-page .toast.success {
    color: var(--auth-teal);
}

.auth-page .toast.error {
    color: var(--auth-danger);
}

.auth-page .site-footer {
    border-top: 1px solid var(--auth-line);
    background: rgba(9, 14, 29, 0.84);
    color: var(--auth-muted);
}

@media (max-width: 720px) {
    .auth-page .topbar {
        flex-wrap: wrap;
        padding-inline: 12px;
    }

    .auth-page .brand-name {
        max-width: min(46vw, 240px);
    }

    .auth-page .topbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
    }

    .auth-page .topbar-actions > * {
        width: 100%;
    }

    .auth-page .gmail-card {
        padding: 24px;
    }

    .auth-page .grid-form {
        grid-template-columns: 1fr;
    }

    .auth-page .full-row {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .auth-wrap {
        width: min(100% - 24px, 1040px);
        min-height: auto;
        align-items: start;
        padding-block: 24px;
    }

    .auth-page .inline-row,
    .auth-page .auth-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-page .auth-actions .primary-button,
    .auth-page .auth-actions .text-link {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .photo-command-center {
        grid-template-columns: 1fr;
    }

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

    .photo-flow-toolbar .filter-form,
    .folder-settings-form,
    .passcode-panel {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .photo-folder-badges {
        justify-content: flex-start;
    }

    .selection-confirm-bar {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    .photo-flow-overview {
        grid-template-columns: 1fr;
    }
}

/* Photo Management upload panel */
.backend-page .photo-management-workspace .upload-card {
    padding: 24px;
    border: 1px solid #34445a;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(125, 169, 255, 0.055), transparent 42%),
        linear-gradient(145deg, #1b2738 0%, #162233 56%, #11272e 100%);
    color: #f4f7fb;
    box-shadow: none;
}

.backend-page .photo-management-workspace .upload-card:hover {
    border-color: #34445a;
    box-shadow: none;
}

.backend-page .photo-management-workspace .upload-card-heading {
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.backend-page .photo-management-workspace .upload-card-heading h2 {
    margin: 0 0 4px;
    color: #f7faff;
    font-size: 1.28rem;
    font-weight: 950;
}

.backend-page .photo-management-workspace .upload-card-heading p {
    color: #aeb9c8;
    font-size: 0.95rem;
}

.backend-page .photo-management-workspace .upload-card .status.active {
    min-height: 30px;
    border: 1px solid rgba(22, 163, 127, 0.22);
    border-radius: 999px;
    background: rgba(12, 131, 104, 0.2);
    color: #16c997;
    font-size: 0.78rem;
    font-weight: 950;
}

.backend-page .photo-management-workspace .upload-card .grid-form {
    gap: 14px;
}

.backend-page .photo-management-workspace .upload-card label {
    color: #b8c2d0;
    font-size: 0.92rem;
    font-weight: 900;
}

.backend-page .photo-management-workspace .upload-card select,
.backend-page .photo-management-workspace .upload-card input[type="file"] {
    min-height: 42px;
    border: 1px solid #2f3e52;
    border-radius: 8px;
    background: #0f1621;
    color: #f7faff;
    font-weight: 850;
    box-shadow: none;
}

.backend-page .photo-management-workspace .upload-card select:disabled {
    opacity: 1;
}

.backend-page .photo-management-workspace .upload-card input[type="file"] {
    padding: 8px;
}

.backend-page .photo-management-workspace .upload-card input[type="file"]::file-selector-button {
    min-height: 28px;
    margin-right: 8px;
    border: 0;
    border-radius: 2px;
    background: #737373;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
}

.backend-page .photo-management-workspace .upload-card .drop-zone {
    min-height: 150px;
    gap: 26px;
    padding: 30px 20px;
    border: 1px solid #33445a;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(125, 169, 255, 0.045), rgba(51, 198, 189, 0.065)),
        #172334;
    color: #b8c2d0;
}

.backend-page .photo-management-workspace .upload-card .drop-zone span {
    color: #b8c2d0;
    font-weight: 900;
}

.backend-page .photo-management-workspace .upload-card .drop-zone input[type="file"] {
    width: min(360px, 100%);
}

.backend-page .photo-management-workspace .upload-card .drop-zone.dragging {
    border-color: rgba(51, 198, 189, 0.56);
    background:
        linear-gradient(135deg, rgba(125, 169, 255, 0.07), rgba(51, 198, 189, 0.12)),
        #172334;
}

.backend-page .photo-management-workspace .upload-card .bulk-folder-picker {
    min-height: 102px;
    align-content: center;
    padding: 16px 14px;
    border: 1px solid #33445a;
    border-radius: 8px;
    background: rgba(23, 35, 52, 0.82);
}

.backend-page .photo-management-workspace .upload-card .bulk-folder-picker input[type="file"] {
    width: 100%;
}

.backend-page .photo-management-workspace .upload-card .upload-summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    border: 1px solid #33445a;
    border-radius: 8px;
    background: rgba(23, 35, 52, 0.82);
    color: #b8c2d0;
    font-weight: 900;
}

.backend-page .photo-management-workspace .upload-card .progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(31, 46, 66, 0.9);
}

.backend-page .photo-management-workspace .upload-card .progress-track span {
    background: linear-gradient(90deg, #6ea0ff, #8fa2ff);
}

.backend-page .photo-management-workspace .upload-card > .primary-button {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #74a0f6, #98a4ff);
    color: #ffffff;
    font-weight: 950;
    box-shadow: none;
}

.backend-page .photo-management-workspace .upload-card > .primary-button:hover {
    background: linear-gradient(135deg, #85adff, #a7afff);
}

@media (max-width: 640px) {
    .backend-page .photo-management-workspace .upload-card {
        padding: 18px;
    }
}

.gallery-share-panel {
    margin-bottom: 18px;
}

.gallery-share-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.4fr);
    gap: 12px;
}

.gallery-share-actions,
.gallery-access-form,
.folder-admin-tools,
.folder-rename-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

.gallery-share-actions {
    grid-column: 1 / -1;
}

.gallery-access-form {
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
}

.folder-admin-tools {
    justify-content: space-between;
    margin: -4px 0 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
}

.folder-rename-form {
    flex: 1 1 360px;
}

.folder-rename-form label {
    flex: 1 1 220px;
}

.client-gallery-page {
    --client-bg: #10151f;
    --client-panel: #171f2c;
    --client-panel-2: #202b3a;
    --client-text: #f7faff;
    --client-muted: #aebbd0;
    --client-line: rgba(255, 255, 255, 0.12);
    --client-accent: #7da9ff;
    --client-teal: #33c6bd;
    --client-gold: #f0b86c;
    background: radial-gradient(circle at 18% 0%, rgba(125, 169, 255, 0.16), transparent 30%), var(--client-bg);
    color: var(--client-text);
}

.client-gallery-page .topbar,
.client-gallery-page .site-footer {
    border-color: var(--client-line);
    background: rgba(16, 21, 31, 0.86);
    color: var(--client-muted);
}

.client-gallery-page .brand-name,
.client-gallery-page .site-footer span {
    color: var(--client-text);
}

.client-gallery-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(26px, 5vw, 54px) 0;
}

.client-gallery-lock,
.client-gallery-empty,
.client-gallery-hero,
.client-folder,
.client-confirm-form {
    border: 1px solid var(--client-line);
    border-radius: 8px;
    background: rgba(23, 31, 44, 0.9);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.client-gallery-lock {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 28px;
    align-items: center;
    min-height: 420px;
    padding: clamp(24px, 5vw, 48px);
}

.client-gallery-lock span,
.client-gallery-hero span,
.client-folder-head span,
.client-selection-counter span,
.client-selection-counter small {
    color: var(--client-muted);
    font-weight: 850;
}

.client-gallery-lock h1,
.client-gallery-hero h1 {
    margin: 8px 0 12px;
    color: var(--client-text);
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.04;
}

.client-gallery-lock p,
.client-gallery-hero p,
.client-gallery-empty p {
    color: var(--client-muted);
    line-height: 1.65;
}

.client-gallery-lock form {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--client-line);
    border-radius: 8px;
    background: rgba(12, 17, 26, 0.72);
}

.client-gallery-page input,
.client-gallery-page select,
.client-gallery-page textarea {
    border: 1px solid rgba(125, 169, 255, 0.18);
    border-radius: 8px;
    background: rgba(7, 11, 18, 0.76);
    color: var(--client-text);
}

.client-gallery-page .primary-button {
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--client-accent), var(--client-teal));
    color: #07111f;
    font-weight: 950;
}

.client-gallery-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
    padding: clamp(20px, 4vw, 34px);
}

.client-selection-counter {
    min-width: 150px;
    padding: 16px;
    border: 1px solid var(--client-line);
    border-radius: 8px;
    background: rgba(12, 17, 26, 0.62);
    text-align: center;
}

.client-selection-counter strong {
    display: block;
    color: var(--client-teal);
    font-size: 2.2rem;
    line-height: 1;
}

.client-confirm-form {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    padding: 12px;
}

.client-folder {
    margin-top: 16px;
    padding: 16px;
}

.client-folder-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.client-folder-head h2 {
    margin: 0 0 4px;
    color: var(--client-text);
}

.client-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.client-photo-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--client-line);
    border-radius: 8px;
    background: rgba(12, 17, 26, 0.74);
}

.client-photo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.client-photo-card label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 10px;
    color: var(--client-text);
    font-weight: 900;
}

.client-photo-card input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--client-teal);
}

.client-photo-card.is-selected {
    border-color: rgba(51, 198, 189, 0.72);
    box-shadow: 0 0 0 2px rgba(51, 198, 189, 0.18);
}

.client-photo-card.is-selected label {
    background: rgba(51, 198, 189, 0.12);
}

.client-gallery-empty {
    padding: clamp(24px, 5vw, 44px);
    text-align: center;
}

.drive-gallery-toolbar {
    margin-bottom: 16px;
}

.drive-gallery-summary {
    margin-bottom: 16px;
}

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

.drive-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.drive-photo-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.drive-photo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--surface-2);
}

.drive-photo-card.is-selected {
    border-color: color-mix(in srgb, var(--teal) 70%, var(--line));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 18%, transparent), var(--shadow);
}

.drive-photo-meta,
.drive-photo-card .photo-customization-note {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.drive-photo-meta strong {
    overflow-wrap: anywhere;
}

.drive-photo-meta > span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 750;
}

.drive-photo-card .photo-select-toggle {
    justify-content: space-between;
    min-height: 38px;
    padding: 0;
}

.drive-photo-card textarea {
    min-height: 84px;
    resize: vertical;
}

.drive-selection-bar {
    position: sticky;
    bottom: 14px;
    z-index: 5;
    box-shadow: var(--shadow);
}

@media (max-width: 760px) {
    .gallery-share-grid,
    .client-gallery-lock,
    .client-gallery-hero {
        grid-template-columns: 1fr;
    }

    .gallery-access-form,
    .folder-admin-tools,
    .folder-rename-form,
    .client-folder-head,
    .client-confirm-form,
    .drive-selection-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .client-selection-counter {
        text-align: left;
    }
}

/* Public frontend editorial refresh */
.studio-redesign {
    --studio-bg: #11100d;
    --studio-bg-lift: #181712;
    --studio-panel: #1f1e18;
    --studio-panel-soft: #29271f;
    --studio-paper: #f6efe4;
    --studio-paper-soft: #efe1cc;
    --studio-text: #fffaf0;
    --studio-muted: #d7caba;
    --studio-line: rgba(246, 239, 228, 0.16);
    --studio-gold: #d9b45b;
    --studio-rose: #d76e63;
    --studio-teal: #6fc2b7;
    --studio-ink: #11100d;
    --studio-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    background: var(--studio-bg);
    color: var(--studio-text);
}

.studio-redesign,
.studio-redesign * {
    letter-spacing: 0;
}

.studio-redesign .app-shell,
.studio-redesign .page-shell {
    background:
        linear-gradient(180deg, rgba(217, 180, 91, 0.08), transparent 420px),
        linear-gradient(90deg, rgba(246, 239, 228, 0.035) 0 1px, transparent 1px 84px),
        linear-gradient(180deg, var(--studio-bg) 0%, var(--studio-bg-lift) 52%, var(--studio-bg) 100%);
    color: var(--studio-text);
}

.landing-page .topbar {
    display: none;
}

.studio-landing {
    overflow: hidden;
}

.studio-container,
.studio-nav,
.studio-redesign .footer-newsletter,
.studio-redesign .footer-grid,
.studio-redesign .footer-bottom {
    width: min(1200px, calc(100% - 48px));
}

.studio-nav {
    min-height: 84px;
    border-bottom: 1px solid var(--studio-line);
    background: rgba(17, 16, 13, 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.studio-logo,
.studio-nav-links a,
.studio-nav-action {
    color: var(--studio-text);
}

.studio-logo span,
.studio-redesign .footer-logo span,
.auth-page .gmail-logo,
.studio-redesign .brand-mark {
    border-radius: 8px;
    background: linear-gradient(135deg, var(--studio-gold), var(--studio-teal));
    color: var(--studio-ink);
}

.studio-logo strong {
    font-size: 1rem;
    font-weight: 950;
}

.studio-nav-links {
    padding: 8px;
    border: 1px solid var(--studio-line);
    border-radius: 8px;
    background: rgba(246, 239, 228, 0.045);
}

.studio-nav-links a,
.studio-nav-action {
    min-height: 40px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 850;
    color: var(--studio-muted);
}

.studio-nav-links a {
    padding: 0 10px;
}

.studio-nav-links a:hover,
.studio-nav-action:hover {
    background: rgba(246, 239, 228, 0.08);
    color: var(--studio-text);
}

.studio-nav-action {
    padding: 0 16px;
    border: 1px solid rgba(217, 180, 91, 0.48);
    background: rgba(217, 180, 91, 0.08);
    color: var(--studio-gold);
}

.studio-hero {
    position: relative;
    padding: 74px 0 58px;
}

.studio-hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 180, 91, 0.58), rgba(111, 194, 183, 0.42), transparent);
}

.studio-hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 64px;
}

.studio-hero-copy {
    max-width: 620px;
}

.studio-eyebrow,
.studio-redesign .eyebrow {
    color: var(--studio-gold);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.studio-hero h1 {
    max-width: 640px;
    font-size: 5.2rem;
    line-height: 0.95;
    text-wrap: balance;
}

.studio-section h2,
.studio-cta h2,
.public-story-page h1 {
    font-size: 3.65rem;
    line-height: 1;
    text-wrap: balance;
}

.studio-hero-copy > p:not(.studio-eyebrow),
.studio-section-head > p:not(.studio-eyebrow),
.studio-editorial p,
.studio-reviews p,
.studio-cta p,
.public-story-page p {
    color: var(--studio-muted);
    line-height: 1.72;
}

.studio-actions {
    margin-top: 34px;
}

.studio-button,
.studio-redesign .primary-button,
.studio-redesign .ghost-button {
    min-height: 48px;
    border-radius: 8px;
    font-weight: 950;
}

.studio-button.primary,
.studio-redesign .primary-button {
    border: 0;
    background: linear-gradient(135deg, var(--studio-gold), #f0d48a);
    color: var(--studio-ink);
    box-shadow: 0 16px 30px rgba(217, 180, 91, 0.22);
}

.studio-button.secondary,
.studio-redesign .ghost-button {
    border: 1px solid var(--studio-line);
    background: rgba(246, 239, 228, 0.055);
    color: var(--studio-text);
}

.studio-button:hover,
.studio-redesign .primary-button:hover,
.studio-redesign .ghost-button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.studio-hero-gallery {
    min-height: 590px;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.58fr);
    grid-template-rows: minmax(0, 1fr) 188px;
    gap: 14px;
}

.hero-photo,
.portfolio-card,
.studio-editorial figure,
.public-story-visual,
.public-contact-card {
    border: 1px solid var(--studio-line);
    border-radius: 8px;
    background: var(--studio-panel);
    box-shadow: var(--studio-shadow);
}

.hero-photo img,
.portfolio-card img,
.studio-editorial img,
.public-story-visual img,
.public-contact-card img {
    filter: saturate(0.96) contrast(1.06);
}

.hero-note {
    border: 0;
    background:
        linear-gradient(140deg, rgba(217, 180, 91, 0.96), rgba(111, 194, 183, 0.9)),
        var(--studio-gold);
    color: var(--studio-ink);
    box-shadow: var(--studio-shadow);
}

.hero-note strong {
    font-size: 2.65rem;
}

.studio-stats {
    padding: 24px 0;
    border-block: 1px solid var(--studio-line);
    background: rgba(246, 239, 228, 0.04);
}

.stats-grid article {
    min-height: 104px;
}

.stats-grid strong {
    color: var(--studio-paper);
    font-size: 2.25rem;
}

.stats-grid span {
    color: var(--studio-muted);
}

.studio-section {
    padding: 92px 0;
}

.studio-section-head {
    max-width: 760px;
}

.service-grid,
.process-grid {
    gap: 16px;
}

.service-card,
.process-card,
.review-card {
    border: 1px solid var(--studio-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(246, 239, 228, 0.08), rgba(246, 239, 228, 0.028)),
        var(--studio-panel);
    box-shadow: none;
}

.service-card {
    min-height: 254px;
    padding: 28px;
}

.service-card h3,
.process-card h3,
.review-card strong {
    color: var(--studio-text);
}

.service-card p,
.process-card p,
.review-card p {
    color: var(--studio-muted);
}

.studio-editorial {
    background:
        linear-gradient(90deg, rgba(17, 16, 13, 0.05) 0 1px, transparent 1px 76px),
        var(--studio-paper);
    color: var(--studio-ink);
}

.studio-editorial .studio-eyebrow {
    color: #8d5933;
}

.studio-editorial h2,
.studio-editorial p {
    color: var(--studio-ink);
}

.studio-editorial figure {
    box-shadow: 0 24px 58px rgba(70, 45, 22, 0.18);
}

.feature-list span {
    min-height: 52px;
    border: 1px solid rgba(17, 16, 13, 0.1);
    background: rgba(255, 255, 255, 0.78);
}

.portfolio-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 16px;
}

.portfolio-card {
    min-height: 450px;
}

.portfolio-card:nth-child(2) {
    min-height: 535px;
}

.portfolio-card figcaption {
    min-height: 46px;
    border-radius: 8px;
    background: rgba(17, 16, 13, 0.72);
}

.studio-process {
    background:
        linear-gradient(180deg, rgba(246, 239, 228, 0.035), transparent),
        var(--studio-bg-lift);
}

.process-card {
    min-height: 270px;
}

.process-card span {
    border-radius: 8px;
    background: rgba(217, 180, 91, 0.13);
    color: var(--studio-gold);
}

.review-card div {
    color: var(--studio-gold);
}

.cta-panel {
    min-height: 350px;
    border: 1px solid var(--studio-line);
    border-radius: 8px;
    background:
        linear-gradient(115deg, rgba(17, 16, 13, 0.24), rgba(17, 16, 13, 0.9)),
        url("https://images.unsplash.com/photo-1507504031003-b417219a0fde?auto=format&fit=crop&w=1500&q=80") center / cover;
    box-shadow: var(--studio-shadow);
}

.studio-redesign .landing-footer,
.studio-redesign .site-footer {
    border-top: 1px solid var(--studio-line);
    background: #0d0c0a;
    color: var(--studio-muted);
}

.studio-redesign .footer-newsletter {
    border-bottom: 1px solid var(--studio-line);
}

.studio-redesign .footer-newsletter h2,
.studio-redesign .footer-grid h3,
.studio-redesign .footer-logo,
.studio-redesign .footer-grid a:hover {
    color: var(--studio-text);
}

.studio-redesign .footer-grid a,
.studio-redesign .footer-contact p,
.studio-redesign .footer-brand p,
.studio-redesign .footer-bottom {
    color: var(--studio-muted);
}

.studio-redesign .footer-newsletter input {
    border-color: var(--studio-line);
    background: rgba(246, 239, 228, 0.07);
    color: var(--studio-text);
}

.studio-redesign .footer-newsletter button,
.studio-redesign .footer-social a {
    border-radius: 8px;
    background: var(--studio-gold);
    color: var(--studio-ink);
}

.public-story-page .topbar {
    border-bottom: 1px solid var(--studio-line);
    background: rgba(17, 16, 13, 0.88);
    color: var(--studio-text);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.public-story-page .brand,
.public-story-page .brand-name {
    color: var(--studio-text);
}

.public-story-page .topbar .ghost-button {
    color: var(--studio-text);
}

.public-story-page .content-wrap {
    width: min(1180px, calc(100% - 48px));
    padding: 58px 0 82px;
}

.public-story-page .page-heading {
    margin-bottom: 32px;
    padding-bottom: 0;
    border-bottom: 0;
}

.public-story-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 42px;
    align-items: center;
}

.public-story-hero h1,
.public-story-page .page-heading h1 {
    max-width: 780px;
    margin: 0;
    color: var(--studio-text);
}

.public-story-page .page-heading p:not(.eyebrow) {
    max-width: 680px;
    margin-top: 18px;
}

.public-story-visual {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.public-story-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.public-story-grid > div,
.public-story-page .form-card,
.public-contact-card {
    border-color: var(--studio-line);
    background:
        linear-gradient(180deg, rgba(246, 239, 228, 0.08), rgba(246, 239, 228, 0.028)),
        var(--studio-panel);
    color: var(--studio-text);
    box-shadow: none;
}

.public-story-grid h2 {
    color: var(--studio-text);
    font-size: 1.22rem;
}

.public-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
    gap: 18px;
    align-items: stretch;
}

.public-story-page .form-card {
    gap: 16px;
    padding: 26px;
}

.public-story-page .form-card label {
    color: var(--studio-muted);
    font-weight: 850;
}

.public-story-page input,
.public-story-page textarea,
.public-story-page select {
    min-height: 48px;
    border-color: var(--studio-line);
    background: rgba(246, 239, 228, 0.07);
    color: var(--studio-text);
}

.public-story-page textarea {
    min-height: 160px;
}

.public-story-page input:focus,
.public-story-page textarea:focus,
.public-story-page select:focus {
    border-color: rgba(111, 194, 183, 0.72);
    box-shadow: 0 0 0 3px rgba(111, 194, 183, 0.16);
}

.public-contact-card {
    display: grid;
    grid-template-rows: minmax(260px, 1fr) auto;
    overflow: hidden;
}

.public-contact-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.public-contact-card div {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.public-contact-card strong {
    color: var(--studio-text);
}

.public-contact-card span {
    color: var(--studio-muted);
    overflow-wrap: anywhere;
}

.contact-booking-page .content-wrap {
    width: min(1180px, calc(100% - 48px));
    padding: 58px 0 86px;
}

.contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
    gap: 26px;
    align-items: stretch;
    margin-bottom: 22px;
}

.contact-hero-copy,
.contact-hero-visual,
.contact-intake-form,
.contact-detail-card,
.contact-process-card {
    border: 1px solid var(--studio-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(246, 239, 228, 0.08), rgba(246, 239, 228, 0.028)),
        var(--studio-panel);
    color: var(--studio-text);
}

.contact-hero-copy {
    display: grid;
    align-content: end;
    min-height: 440px;
    padding: clamp(28px, 5vw, 54px);
}

.contact-hero-copy h1 {
    max-width: 780px;
    margin: 0;
    color: var(--studio-text);
    font-size: 5rem;
    line-height: 0.96;
}

.contact-hero-copy > p:not(.eyebrow) {
    max-width: 650px;
    margin-top: 18px;
    color: var(--studio-muted);
}

.contact-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 32px;
}

.contact-quick-actions a {
    min-height: 84px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(246, 239, 228, 0.15);
    border-radius: 8px;
    background: rgba(246, 239, 228, 0.055);
    color: var(--studio-text);
    text-decoration: none;
}

.contact-quick-actions a:hover {
    border-color: rgba(125, 204, 213, 0.54);
    background: rgba(125, 204, 213, 0.09);
}

.contact-quick-actions span {
    color: var(--studio-teal);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-quick-actions strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.96rem;
}

.contact-hero-visual {
    position: relative;
    min-height: 440px;
    margin: 0;
    overflow: hidden;
}

.contact-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.05);
}

.contact-hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(9, 14, 29, 0.9));
}

.contact-hero-visual figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid rgba(246, 239, 228, 0.18);
    border-radius: 8px;
    background: rgba(9, 14, 29, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.contact-hero-visual figcaption strong {
    color: var(--studio-text);
}

.contact-hero-visual figcaption span {
    color: var(--studio-muted);
    line-height: 1.45;
}

.contact-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
    gap: 22px;
    align-items: start;
}

.contact-intake-form {
    gap: 20px;
    padding: clamp(22px, 4vw, 34px);
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contact-form-head {
    display: grid;
    gap: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--studio-line);
}

.contact-form-head h2,
.contact-detail-card h2,
.contact-process-card h2 {
    margin: 0;
    color: var(--studio-text);
    font-size: 1.45rem;
}

.contact-form-head p:not(.eyebrow) {
    margin: 0;
    color: var(--studio-muted);
}

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

.contact-fieldset {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.contact-fieldset legend {
    color: var(--studio-muted);
    font-size: 0.9rem;
    font-weight: 850;
}

.contact-choice-grid,
.contact-option-grid {
    display: grid;
    gap: 10px;
}

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

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

.contact-choice-grid label,
.contact-option-grid label {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--studio-line);
    border-radius: 8px;
    background: rgba(246, 239, 228, 0.055);
    color: var(--studio-text);
    font-weight: 800;
}

.contact-choice-grid input,
.contact-option-grid input {
    width: 16px;
    min-height: 16px;
    accent-color: var(--studio-teal);
}

.contact-submit-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contact-submit-row .primary-button {
    min-width: 190px;
}

.contact-submit-row span {
    color: var(--studio-muted);
    font-size: 0.86rem;
}

.contact-side-panel {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 98px;
}

.contact-detail-card,
.contact-process-card {
    padding: 22px;
}

.contact-detail-card dl {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
}

.contact-detail-card div {
    display: grid;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--studio-line);
}

.contact-detail-card dt {
    color: var(--studio-teal);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-detail-card dd {
    margin: 0;
    color: var(--studio-text);
    overflow-wrap: anywhere;
}

.contact-process-card ol {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: contact-steps;
}

.contact-process-card li {
    position: relative;
    display: grid;
    gap: 4px;
    padding-left: 42px;
    counter-increment: contact-steps;
}

.contact-process-card li::before {
    content: counter(contact-steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(125, 204, 213, 0.14);
    color: var(--studio-teal);
    font-size: 0.78rem;
    font-weight: 950;
}

.contact-process-card strong {
    color: var(--studio-text);
}

.contact-process-card span {
    color: var(--studio-muted);
    line-height: 1.45;
}

.auth-page {
    --auth-bg: #0b1020;
    --auth-panel: #141b2e;
    --auth-text: #f9f2e8;
    --auth-muted: #d6c9bd;
    --auth-line: rgba(255, 245, 236, 0.16);
    --auth-accent: #dda867;
    --auth-accent-strong: #f0c987;
    --auth-teal: #7dccd5;
    --auth-gold: #dda867;
    --auth-danger: #ff8a83;
    --auth-shadow: 0 28px 70px rgba(4, 8, 17, 0.42);
    background: var(--auth-bg);
    color: var(--auth-text);
}

.auth-page,
.auth-page * {
    letter-spacing: 0;
}

.auth-page .app-shell,
.auth-page .page-shell {
    background:
        linear-gradient(180deg, rgba(221, 168, 103, 0.07), transparent 430px),
        linear-gradient(90deg, rgba(255, 245, 236, 0.04) 0 1px, transparent 1px 86px),
        var(--auth-bg);
}

.auth-page .topbar {
    border-bottom: 1px solid var(--auth-line);
    background: rgba(11, 16, 32, 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.auth-page .brand,
.auth-page .brand-name,
.auth-page .topbar .ghost-button {
    color: var(--auth-text);
}

.auth-page .brand-mark,
.auth-page .profile-chip span {
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-teal));
    color: #090e1d;
}

.auth-page .gmail-logo {
    border-radius: 8px;
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-teal));
    color: #090e1d;
}

.auth-wrap {
    width: min(1080px, calc(100% - 48px));
    min-height: calc(100vh - 132px);
    padding: 56px 0;
}

.auth-page .gmail-card {
    border-color: var(--auth-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 245, 236, 0.08), rgba(255, 245, 236, 0.028)),
        var(--auth-panel);
    box-shadow: var(--auth-shadow);
}

.auth-page .gmail-card::before {
    height: 4px;
    background: linear-gradient(90deg, var(--auth-accent), var(--auth-teal), #f08db4);
}

.auth-page .gmail-copy h1 {
    color: var(--auth-text);
    font-size: 2.85rem;
    line-height: 1;
}

.auth-page .gmail-copy p,
.auth-page form label,
.auth-page .checkbox {
    color: var(--auth-muted);
}

.auth-page input,
.auth-page select,
.auth-page textarea {
    border-color: var(--auth-line);
    background: rgba(255, 245, 236, 0.07);
    color: var(--auth-text);
}

.auth-page input:focus,
.auth-page select:focus,
.auth-page textarea:focus {
    border-color: rgba(125, 204, 213, 0.72);
    box-shadow: 0 0 0 3px rgba(125, 204, 213, 0.16);
}

.auth-page a,
.auth-page .text-link {
    color: var(--auth-teal);
}

.auth-page .primary-button {
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-strong));
    color: #090e1d;
    box-shadow: 0 16px 30px rgba(221, 168, 103, 0.22);
}

.auth-page .primary-button:hover {
    background: linear-gradient(135deg, var(--auth-accent-strong), var(--auth-teal));
    color: #090e1d;
}

.auth-page .site-footer {
    border-top: 1px solid var(--auth-line);
    background: #090e1d;
    color: var(--auth-muted);
}

@media (max-width: 1080px) {
    .studio-hero-grid,
    .public-story-hero,
    .public-contact-layout,
    .contact-hero,
    .contact-workspace {
        grid-template-columns: 1fr;
    }

    .contact-side-panel {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-hero-copy h1 {
        font-size: 3.8rem;
    }

    .studio-hero-gallery {
        min-height: 520px;
    }

    .public-contact-card {
        grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 900px) {
    .studio-nav {
        gap: 14px;
        padding: 16px 0;
    }

    .studio-nav-links {
        display: none;
    }

    .studio-hero {
        padding-top: 56px;
    }

    .studio-hero h1 {
        font-size: 3.75rem;
    }

    .studio-section h2,
    .studio-cta h2,
    .public-story-page h1,
    .public-story-page .page-heading h1 {
        font-size: 2.75rem;
    }

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

    .portfolio-grid,
    .reviews-grid,
    .editorial-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card,
    .portfolio-card:nth-child(2) {
        min-height: 360px;
    }
}

@media (max-width: 680px) {
    .studio-container,
    .studio-nav,
    .studio-redesign .footer-newsletter,
    .studio-redesign .footer-grid,
    .studio-redesign .footer-bottom,
    .public-story-page .content-wrap,
    .auth-wrap {
        width: min(100% - 28px, 1200px);
    }

    .studio-nav-action {
        display: none;
    }

    .studio-logo strong {
        font-size: 0.9rem;
    }

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

    .studio-section h2,
    .studio-cta h2,
    .public-story-page h1,
    .public-story-page .page-heading h1 {
        font-size: 2.25rem;
    }

    .studio-hero-gallery {
        min-height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .hero-photo,
    .hero-photo-large {
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }

    .stats-grid,
    .service-grid,
    .process-grid,
    .feature-list,
    .public-story-grid,
    .contact-form-grid,
    .contact-choice-grid,
    .contact-option-grid,
    .contact-side-panel {
        grid-template-columns: 1fr;
    }

    .contact-booking-page .content-wrap {
        width: min(100% - 28px, 1180px);
    }

    .contact-hero-copy,
    .contact-hero-visual {
        min-height: auto;
    }

    .contact-hero-copy h1 {
        font-size: 2.55rem;
    }

    .contact-quick-actions {
        grid-template-columns: 1fr;
    }

    .contact-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-submit-row .primary-button {
        width: 100%;
    }

    .studio-section {
        padding: 62px 0;
    }

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

    .studio-button,
    .studio-actions .studio-button,
    .auth-page .auth-actions .primary-button,
    .auth-page .auth-actions .text-link {
        width: 100%;
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-contact-card {
        grid-template-columns: 1fr;
    }

    .public-contact-card img {
        aspect-ratio: 4 / 3;
    }

    .auth-page .gmail-copy h1 {
        font-size: 2.25rem;
    }
}

/* Public frontend redesign: full-bleed studio landing */
.studio-redesign {
    --studio-bg: #0b1020;
    --studio-bg-lift: #101729;
    --studio-panel: #141b2e;
    --studio-panel-soft: #182238;
    --studio-paper: #101729;
    --studio-paper-soft: #172033;
    --studio-text: #f9f2e8;
    --studio-muted: #d6c9bd;
    --studio-line: rgba(255, 245, 236, 0.16);
    --studio-gold: #dda867;
    --studio-coral: #f08db4;
    --studio-teal: #7dccd5;
    --studio-plum: #4b355e;
    --studio-ink: #090e1d;
    --studio-shadow: 0 28px 74px rgba(4, 8, 17, 0.42);
    background: var(--studio-bg);
    color: var(--studio-text);
}

.studio-redesign .app-shell,
.studio-redesign .page-shell {
    background:
        linear-gradient(180deg, rgba(221, 168, 103, 0.07), transparent 460px),
        linear-gradient(90deg, rgba(255, 245, 236, 0.04) 0 1px, transparent 1px 86px),
        linear-gradient(180deg, var(--studio-bg) 0%, var(--studio-bg-lift) 50%, var(--studio-bg) 100%);
}

.studio-landing {
    position: relative;
    overflow: clip;
}

.studio-container,
.studio-nav,
.studio-redesign .footer-newsletter,
.studio-redesign .footer-grid,
.studio-redesign .footer-bottom {
    width: min(1180px, calc(100% - 48px));
}

.studio-nav {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 10;
    min-height: 66px;
    padding: 0 12px 0 14px;
    border: 1px solid rgba(255, 245, 236, 0.18);
    border-radius: 8px;
    background: rgba(11, 16, 32, 0.82);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    transform: translateX(-50%);
}

.studio-logo span,
.studio-redesign .footer-logo span,
.studio-redesign .brand-mark {
    border-radius: 8px;
    background: linear-gradient(135deg, var(--studio-gold), var(--studio-teal));
    color: var(--studio-ink);
}

.studio-logo strong {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-nav-links {
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(255, 245, 236, 0.12);
    border-radius: 8px;
    background: rgba(255, 245, 236, 0.055);
}

.studio-nav-links a,
.studio-nav-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    color: rgba(255, 245, 236, 0.78);
    font-weight: 850;
}

.studio-nav-links a {
    padding: 0 11px;
}

.studio-nav-links a:hover,
.studio-nav-action:hover {
    background: rgba(255, 245, 236, 0.1);
    color: var(--studio-text);
}

.studio-nav-action {
    padding: 0 15px;
    border-color: rgba(125, 204, 213, 0.4);
    background: rgba(125, 204, 213, 0.12);
    color: var(--studio-teal);
}

.studio-hero {
    position: relative;
    isolation: isolate;
    min-height: 88svh;
    padding: 116px 0 22px;
    display: grid;
    align-content: end;
    overflow: hidden;
}

.studio-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--studio-panel);
}

.studio-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
    filter: saturate(1.04) contrast(1.05);
}

.studio-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(9, 14, 29, 0.94), rgba(9, 14, 29, 0.66) 46%, rgba(9, 14, 29, 0.22)),
        linear-gradient(180deg, rgba(9, 14, 29, 0.48), rgba(9, 14, 29, 0.18) 42%, rgba(9, 14, 29, 0.92));
}

.studio-hero-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(286px, 0.38fr);
    gap: 42px;
    align-items: end;
}

.studio-hero-copy {
    max-width: 770px;
}

.studio-eyebrow,
.studio-redesign .eyebrow {
    color: var(--studio-teal);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0;
}

.studio-hero h1 {
    max-width: 790px;
    font-size: 5.6rem;
    line-height: 0.96;
}

.studio-hero-copy > p:not(.studio-eyebrow) {
    max-width: 650px;
    margin-top: 22px;
    color: rgba(249, 242, 232, 0.86);
    font-size: 1.05rem;
}

.studio-actions {
    margin-top: 30px;
}

.studio-button,
.studio-redesign .primary-button,
.studio-redesign .ghost-button {
    min-height: 48px;
    border-radius: 8px;
    font-weight: 950;
}

.studio-button.primary,
.studio-redesign .primary-button {
    background: linear-gradient(135deg, var(--studio-gold), #f0c987);
    color: var(--studio-ink);
    box-shadow: 0 18px 36px rgba(221, 168, 103, 0.24);
}

.studio-button.secondary,
.studio-redesign .ghost-button {
    border-color: rgba(255, 245, 236, 0.28);
    background: rgba(255, 245, 236, 0.08);
    color: var(--studio-text);
}

.studio-hero-panel,
.hero-proof-strip {
    border: 1px solid rgba(255, 245, 236, 0.18);
    border-radius: 8px;
    background: rgba(20, 27, 46, 0.78);
    box-shadow: var(--studio-shadow);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.studio-hero-panel {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.studio-panel-kicker {
    color: var(--studio-gold);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.studio-hero-panel strong {
    color: var(--studio-text);
    font-size: 1.55rem;
    line-height: 1.08;
}

.studio-hero-panel p {
    margin: 0;
    color: rgba(249, 242, 232, 0.78);
    line-height: 1.62;
}

.studio-hero-details {
    display: grid;
    gap: 10px;
    margin: 4px 0 0;
}

.studio-hero-details div {
    display: grid;
    grid-template-columns: minmax(88px, 0.7fr) minmax(0, 1fr);
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 245, 236, 0.14);
}

.studio-hero-details dt {
    color: rgba(249, 242, 232, 0.62);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.studio-hero-details dd {
    margin: 0;
    color: var(--studio-text);
    font-weight: 900;
}

.hero-proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(860px, calc(100% - 48px));
    margin-top: 34px;
    padding: 6px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(221, 168, 103, 0.22), rgba(125, 204, 213, 0.2)),
        rgba(20, 27, 46, 0.78);
}

.landing-page .studio-container.hero-proof-strip {
    width: min(860px, calc(100% - 48px));
    border-color: rgba(255, 245, 236, 0.22);
    background:
        linear-gradient(135deg, rgba(221, 168, 103, 0.22), rgba(125, 204, 213, 0.2)),
        rgba(20, 27, 46, 0.78);
    box-shadow: 0 22px 60px rgba(4, 8, 17, 0.36);
}

.hero-proof-strip div {
    position: relative;
    min-height: 88px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 16px 20px;
    border-right: 0;
    border-radius: 7px;
    background: rgba(9, 14, 29, 0.62);
}

.hero-proof-strip div::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--studio-gold), var(--studio-teal));
}

.hero-proof-strip strong {
    color: var(--studio-text);
    font-size: 1.7rem;
    line-height: 1;
}

.hero-proof-strip span {
    color: rgba(249, 242, 232, 0.72);
    font-size: 0.82rem;
    font-weight: 750;
}

.studio-stats {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 245, 236, 0.08);
    border-bottom: 1px solid rgba(255, 245, 236, 0.08);
    background:
        linear-gradient(180deg, rgba(221, 168, 103, 0.045), transparent),
        #0b1020;
    color: var(--studio-text);
}

.stats-grid article {
    border-color: rgba(255, 245, 236, 0.14);
}

.stats-grid strong {
    color: var(--studio-text);
}

.stats-grid span {
    color: rgba(249, 242, 232, 0.68);
}

.studio-section {
    padding: 88px 0;
}

.studio-section-head {
    max-width: 780px;
}

.studio-section h2,
.studio-cta h2,
.public-story-page h1 {
    font-size: 3.55rem;
    line-height: 1.03;
}

.service-card,
.process-card,
.review-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 245, 236, 0.085), rgba(255, 245, 236, 0.025)),
        rgba(20, 27, 46, 0.95);
}

.service-card {
    min-height: 282px;
    align-content: start;
    padding: 26px;
}

.service-card::after {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    top: 0;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, var(--studio-gold), var(--studio-coral), var(--studio-teal));
}

.service-card-index {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 34px;
    border: 1px solid rgba(255, 245, 236, 0.18);
    border-radius: 8px;
    color: var(--studio-teal);
    font-weight: 950;
}

.service-card h3,
.process-card h3,
.review-card strong {
    color: var(--studio-text);
}

.service-card small {
    display: block;
    margin-top: 20px;
    color: var(--studio-gold);
    font-size: 0.78rem;
    font-weight: 900;
}

.studio-editorial {
    background:
        linear-gradient(120deg, rgba(240, 141, 180, 0.12), transparent 34%),
        linear-gradient(90deg, rgba(255, 245, 236, 0.035) 0 1px, transparent 1px 78px),
        #0b1020;
    color: var(--studio-text);
    overflow: hidden;
}

.studio-editorial .studio-eyebrow {
    color: var(--studio-gold);
}

.studio-editorial h2 {
    max-width: 650px;
    color: var(--studio-text);
}

.studio-editorial p {
    color: var(--studio-muted);
}

.editorial-copy {
    max-width: 640px;
}

.editorial-visual {
    position: relative;
    min-height: 620px;
    aspect-ratio: 0.86 / 1;
    border: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.landing-page .studio-editorial .editorial-visual {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.editorial-visual::before {
    content: "";
    position: absolute;
    inset: 28px -22px -24px 32px;
    border: 1px solid rgba(255, 245, 236, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(221, 168, 103, 0.3), rgba(125, 204, 213, 0.22)),
        rgba(20, 27, 46, 0.62);
}

.editorial-visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 245, 236, 0.14);
    object-fit: cover;
    box-shadow: 0 28px 70px rgba(4, 8, 17, 0.34);
}

.editorial-photo-note {
    position: absolute;
    right: -28px;
    bottom: 34px;
    z-index: 2;
    width: min(270px, 72%);
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(255, 245, 236, 0.12);
    border-radius: 8px;
    background: rgba(20, 27, 46, 0.9);
    box-shadow: 0 22px 48px rgba(4, 8, 17, 0.28);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.editorial-photo-note strong {
    color: var(--studio-text);
    font-size: 1rem;
}

.editorial-photo-note span {
    color: rgba(249, 242, 232, 0.68);
    font-size: 0.86rem;
    line-height: 1.45;
}

.feature-list {
    gap: 12px;
}

.feature-card {
    min-height: 132px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
    align-content: start;
    padding: 16px;
    border: 1px solid rgba(255, 245, 236, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 245, 236, 0.085), rgba(255, 245, 236, 0.025)),
        rgba(20, 27, 46, 0.9);
    box-shadow: 0 10px 24px rgba(4, 8, 17, 0.16);
}

.feature-card span {
    width: 34px;
    height: 34px;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--studio-gold);
    color: var(--studio-ink);
    box-shadow: none;
    font-size: 0.76rem;
    font-weight: 950;
}

.feature-card strong {
    align-self: center;
    color: var(--studio-text);
    line-height: 1.18;
}

.feature-card small {
    grid-column: 2;
    color: rgba(249, 242, 232, 0.64);
    line-height: 1.45;
}

.portfolio-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr) minmax(0, 1fr);
}

.portfolio-card {
    min-height: 460px;
}

.portfolio-card figcaption {
    min-height: 74px;
    display: grid;
    align-content: center;
    gap: 4px;
    border-radius: 8px;
    background: rgba(9, 14, 29, 0.82);
}

.portfolio-card figcaption strong,
.portfolio-card figcaption span {
    min-width: 0;
}

.portfolio-card figcaption span {
    color: rgba(249, 242, 232, 0.72);
    font-size: 0.82rem;
    font-weight: 650;
}

.studio-process {
    background:
        linear-gradient(180deg, rgba(221, 168, 103, 0.05), transparent),
        var(--studio-bg-lift);
}

.process-card {
    min-height: 284px;
}

.process-card span {
    border-radius: 8px;
    background: rgba(125, 204, 213, 0.14);
    color: var(--studio-teal);
}

.pricing-section {
    padding: 92px 0 104px;
    background:
        linear-gradient(180deg, rgba(221, 168, 103, 0.04), transparent 36%),
        var(--studio-bg);
    color: var(--studio-text);
}

.pricing-heading {
    max-width: 860px;
    margin: 0 auto 52px;
    text-align: center;
}

.pricing-kicker {
    margin: 0 0 14px;
    color: var(--studio-gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.pricing-heading h2 {
    margin: 0;
    color: #fff5ec;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.9rem;
    font-weight: 400;
    line-height: 1.08;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    min-height: 610px;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 18px;
    padding: 48px;
    border: 1px solid rgba(255, 245, 236, 0.08);
    border-radius: 8px;
    background: var(--studio-panel);
    color: #f7efe6;
}

.pricing-card.featured {
    border-color: rgba(221, 168, 103, 0.58);
    background:
        linear-gradient(180deg, rgba(221, 168, 103, 0.05), transparent 36%),
        var(--studio-panel);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--studio-gold);
    color: #090e1d;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.pricing-plan-name {
    margin: 0;
    color: #f08db4;
    font-size: 0.86rem;
    font-weight: 850;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.pricing-card:nth-child(2) .pricing-plan-name {
    color: var(--studio-gold);
}

.pricing-card:nth-child(3) .pricing-plan-name {
    color: var(--studio-teal);
}

.pricing-price {
    display: block;
    color: #f7efe6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.15rem;
    font-weight: 400;
    line-height: 1;
}

.pricing-copy {
    max-width: 260px;
    margin: 0;
    color: rgba(247, 239, 230, 0.78);
    font-size: 1.02rem;
    line-height: 1.52;
}

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

.pricing-features li {
    position: relative;
    padding-left: 30px;
    color: #fff7ee;
    line-height: 1.25;
}

.pricing-features li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.22em;
    width: 7px;
    height: 12px;
    border-right: 2px solid var(--studio-gold);
    border-bottom: 2px solid var(--studio-gold);
    transform: rotate(45deg);
}

.pricing-button {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    border: 1px solid rgba(255, 245, 236, 0.28);
    border-radius: 999px;
    color: #fff7ee;
    font-weight: 900;
    text-decoration: none;
}

.pricing-button.primary {
    border-color: var(--studio-gold);
    background: var(--studio-gold);
    color: #090e1d;
}

.pricing-button:hover {
    border-color: var(--studio-gold);
    color: #fff7ee;
    text-decoration: none;
    transform: translateY(-1px);
}

.pricing-button.primary:hover {
    color: #090e1d;
}

.review-card div {
    color: var(--studio-gold);
}

.cta-panel {
    min-height: 340px;
    border-color: rgba(255, 245, 236, 0.22);
    background:
        linear-gradient(115deg, rgba(9, 14, 29, 0.34), rgba(9, 14, 29, 0.94)),
        url("https://images.unsplash.com/photo-1507504031003-b417219a0fde?auto=format&fit=crop&w=1500&q=80") center / cover;
    box-shadow: var(--studio-shadow);
}

.studio-redesign .landing-footer,
.studio-redesign .site-footer {
    background: #090e1d;
}

.studio-redesign .footer-newsletter input {
    background: rgba(255, 245, 236, 0.08);
}

.studio-redesign .footer-newsletter button,
.studio-redesign .footer-social a {
    border-radius: 8px;
    background: var(--studio-gold);
    color: var(--studio-ink);
}

@media (max-width: 1080px) {
    .studio-hero {
        min-height: 86svh;
    }

    .studio-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .studio-hero h1 {
        font-size: 4.35rem;
    }

    .studio-hero-panel {
        max-width: 620px;
    }

    .studio-section h2,
    .studio-cta h2,
    .public-story-page h1,
    .public-story-page .page-heading h1 {
        font-size: 2.85rem;
    }
}

@media (max-width: 820px) {
    .studio-container,
    .studio-nav,
    .studio-redesign .footer-newsletter,
    .studio-redesign .footer-grid,
    .studio-redesign .footer-bottom {
        width: min(100% - 28px, 1180px);
    }

    .studio-nav {
        top: 12px;
        min-height: 60px;
        gap: 12px;
    }

    .studio-nav-links {
        display: none;
    }

    .studio-hero {
        min-height: 84svh;
        padding-top: 92px;
    }

    .studio-hero h1 {
        font-size: 3.1rem;
    }

    .studio-hero-copy > p:not(.studio-eyebrow) {
        font-size: 0.98rem;
    }

    .studio-hero-panel {
        display: none;
    }

    .hero-proof-strip {
        margin-top: 26px;
    }

    .service-grid,
    .process-grid,
    .reviews-grid,
    .editorial-grid,
    .portfolio-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-section {
        padding: 72px 0;
    }

    .pricing-heading {
        margin-bottom: 34px;
        text-align: left;
    }

    .pricing-heading h2 {
        font-size: 2.35rem;
    }

    .pricing-card {
        min-height: auto;
        padding: 34px;
    }

    .editorial-visual {
        min-height: auto;
        aspect-ratio: 4 / 3;
    }

    .editorial-visual::before {
        inset: 18px -12px -14px 18px;
    }

    .editorial-photo-note {
        right: 14px;
        bottom: 14px;
        width: min(300px, calc(100% - 28px));
    }

    .portfolio-card,
    .portfolio-card:nth-child(2) {
        min-height: 360px;
    }
}

@media (max-width: 560px) {
    .studio-nav-action {
        display: none;
    }

    .studio-logo strong {
        max-width: 180px;
    }

    .studio-hero {
        min-height: 82svh;
        padding-bottom: 14px;
    }

    .studio-hero h1 {
        font-size: 2.55rem;
    }

    .studio-actions {
        margin-top: 22px;
    }

    .hero-proof-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: min(100% - 24px, 860px);
        padding: 4px;
    }

    .hero-proof-strip div {
        min-height: 78px;
        padding: 12px 10px;
    }

    .hero-proof-strip div::before {
        width: 22px;
    }

    .hero-proof-strip strong {
        font-size: 1.18rem;
    }

    .hero-proof-strip span {
        font-size: 0.68rem;
        line-height: 1.2;
    }

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

    .stats-grid article:nth-child(2) {
        border-right: 0;
    }

    .studio-section {
        padding: 58px 0;
    }

    .studio-section h2,
    .studio-cta h2,
    .public-story-page h1,
    .public-story-page .page-heading h1 {
        font-size: 2.18rem;
    }

    .pricing-heading h2 {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 28px;
    }

    .pricing-price {
        font-size: 2.7rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }

    .editorial-photo-note {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 10px;
    }
}
