: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%);
}

.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-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: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.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.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.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 {
    box-shadow: var(--shadow);
}

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

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