:root {
    --bg: #fff7ec;
    --bg-soft: #fffaf3;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --line: rgba(28, 54, 91, 0.12);
    --text: #183153;
    --muted: #60738c;
    --navy: #183153;
    --teal: #15a39c;
    --teal-soft: #dffaf7;
    --orange: #ff8c42;
    --orange-soft: #ffe6d3;
    --yellow: #ffd166;
    --pink: #ff6f91;
    --blue: #72a8ff;
    --danger: #d9534f;
    --success: #1d9f64;
    --shadow: 0 24px 70px rgba(24, 49, 83, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 209, 102, 0.35), transparent 28%),
        radial-gradient(circle at top right, rgba(21, 163, 156, 0.22), transparent 22%),
        linear-gradient(180deg, #fff8ef 0%, #fff6ea 44%, #fffdf7 100%);
}

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

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

img {
    max-width: 100%;
}

.hidden {
    display: none !important;
}

.page-shell {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 40px;
}

.topbar {
    position: sticky;
    top: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.86);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(24, 49, 83, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-badge {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    color: #fff;
    font-family: "Baloo 2", cursive;
    font-size: 1.45rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(255, 111, 145, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong,
.section-heading h2,
.hero h1,
.showcase-card-main h2,
.story-strip h2,
.service-card h3,
.birthday-feature h3,
.birthday-card h3,
.contact-panel h2,
.workspace-card h3,
.admin-card h3,
.summary-card h4,
.checkout-lines h4,
.modal-header h3 {
    font-family: "Baloo 2", cursive;
}

.brand-copy small,
.main-nav a,
.section-heading p,
.hero-text,
.service-card p,
.birthday-card p,
.birthday-feature p,
.gallery-tile span,
.contact-cards article,
.quote-form p,
.footer span,
.footer p {
    color: var(--muted);
}

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

.main-nav a {
    font-size: 0.95rem;
    font-weight: 700;
}

.nav-cta,
.primary-btn,
.secondary-btn,
.text-btn,
.badge-soft,
.pill {
    border-radius: 999px;
}

.nav-cta,
.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta,
.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--navy), #275b8c);
    box-shadow: 0 14px 26px rgba(24, 49, 83, 0.2);
}

.secondary-btn {
    color: var(--navy);
    background: var(--orange-soft);
}

.secondary-btn:hover,
.primary-btn:hover,
.nav-cta:hover {
    transform: translateY(-1px);
}

.primary-btn.small {
    min-height: 40px;
    padding: 0 16px;
}

.text-btn,
.text-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--teal);
    font-weight: 800;
    cursor: pointer;
}

.pill,
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.82rem;
    font-weight: 800;
}

.pill {
    width: fit-content;
}

.pill-coral {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.pill-teal,
.badge-soft {
    color: var(--teal);
    background: var(--teal-soft);
}

main {
    display: grid;
    gap: 28px;
}

.hero,
.story-strip,
.services-section,
.birthday-section,
.media-section,
.pos-section {
    position: relative;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 28px;
    overflow: hidden;
}

.hero::before,
.pos-section::before {
    content: "";
    position: absolute;
    inset: auto auto -100px -60px;
    width: 220px;
    height: 220px;
    border-radius: 40px;
    background: rgba(255, 209, 102, 0.18);
    transform: rotate(18deg);
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
    margin: 0;
    line-height: 1;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(2.65rem, 6vw, 5rem);
}

.hero-text {
    max-width: 58ch;
    margin: 18px 0 0;
    font-size: 1.03rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-highlights,
.showcase-mini-grid,
.service-grid,
.birthday-placeholder-grid,
.gallery-grid,
.contact-cards {
    display: grid;
    gap: 16px;
}

.hero-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.hero-highlights article,
.showcase-card,
.service-card,
.birthday-card,
.gallery-tile,
.contact-cards article,
.workspace-block,
.sidebar-card,
.tables-panel,
.workspace-panel,
.admin-card,
.summary-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
}

.hero-highlights article,
.showcase-card,
.service-card,
.birthday-card,
.gallery-tile,
.contact-cards article {
    padding: 18px;
}

.hero-highlights strong,
.showcase-card strong,
.price-card strong {
    display: block;
}

.hero-showcase {
    display: grid;
    gap: 16px;
}

.showcase-card-main {
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(24, 49, 83, 0.98), rgba(39, 91, 140, 0.94)),
        rgba(24, 49, 83, 0.95);
    color: #fff;
}

.showcase-card-main p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.75);
}

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

.showcase-card .stat {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--teal);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.price-card {
    text-align: center;
}

.price-card strong {
    font-size: 1.5rem;
    color: var(--navy);
}

.story-strip,
.birthday-layout,
.media-section {
    display: grid;
    gap: 20px;
}

.story-strip {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
}

.story-strip article:last-child {
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.12), rgba(114, 168, 255, 0.12));
}

.section-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

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

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

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

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    color: var(--navy);
    font-weight: 900;
}

.birthday-layout {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
}

.birthday-feature {
    padding: 26px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(21, 163, 156, 0.08), rgba(114, 168, 255, 0.14)),
        rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
}

.birthday-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.birthday-checks span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--navy);
    font-weight: 700;
}

.birthday-disclaimer {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
    color: var(--navy);
    font-size: 0.92rem;
    line-height: 1.6;
}

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

.birthday-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 220px;
}

.birthday-card.featured {
    background: linear-gradient(180deg, rgba(255, 209, 102, 0.22), rgba(255, 255, 255, 0.96));
}

.birthday-label {
    margin: 0 0 8px;
    color: var(--pink);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.birthday-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    line-height: 1.65;
}

.birthday-list li + li {
    margin-top: 6px;
}

.birthday-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.birthday-price-row strong {
    font-size: 1.8rem;
    color: var(--navy);
}

.media-section {
    grid-template-columns: 1fr 1fr;
}

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

.gallery-tile {
    display: grid;
    place-items: center;
    min-height: 160px;
    background:
        linear-gradient(145deg, rgba(255, 140, 66, 0.1), rgba(21, 163, 156, 0.12)),
        #fff;
    text-align: center;
}

.gallery-tile.large {
    grid-column: span 2;
    min-height: 220px;
}

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

.contact-cards article {
    display: grid;
    gap: 8px;
}

.contact-cards small {
    color: var(--teal);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quote-form {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.84);
}

.form-header h3 {
    margin: 0 0 6px;
    font-family: "Baloo 2", cursive;
    font-size: 1.55rem;
}

.form-grid,
.inline-form,
.stack-form,
.admin-grid,
.admin-kpis,
.period-grid,
.metrics-grid,
.selected-summary {
    display: grid;
    gap: 14px;
}

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

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

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

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(24, 49, 83, 0.12);
    border-radius: var(--radius-sm);
    color: var(--navy);
    background: rgba(255, 255, 255, 0.96);
}

textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

#quoteFeedback,
#importFeedback {
    margin: 0;
    color: var(--teal);
    font-size: 0.92rem;
    font-weight: 700;
}

.pos-section {
    overflow: hidden;
}

.panel-toggle {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 24px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
}

.panel-toggle button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.panel-toggle button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--navy), #275b8c);
    box-shadow: 0 10px 22px rgba(24, 49, 83, 0.16);
}

.panel-view {
    display: none;
}

.panel-view.is-active {
    display: block;
}

.seller-alerts {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.seller-alert {
    padding: 14px 16px;
    border: 1px solid rgba(217, 83, 79, 0.18);
    border-radius: var(--radius-md);
    background: rgba(255, 245, 244, 0.94);
    color: var(--danger);
    font-weight: 800;
}

.pos-layout {
    display: grid;
    grid-template-columns: 300px 1fr 390px;
    gap: 18px;
}

.sidebar-card,
.tables-panel,
.workspace-panel,
.workspace-card,
.admin-card {
    padding: 20px;
}

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

.card-heading h3,
.card-heading h4 {
    margin: 0;
}

.card-heading p {
    margin: 4px 0 0;
    color: var(--muted);
}

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

.metric-card,
.kpi-card,
.period-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
}

.metric-card strong,
.kpi-card strong,
.period-card strong,
.selected-chip strong {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
    color: var(--navy);
}

.metric-card span,
.kpi-card span,
.period-card span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.quick-menu {
    display: grid;
    gap: 10px;
}

.quick-menu-item,
.account-row,
.checkout-line,
.alert-item,
.ranking-item,
.sale-item {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
}

.quick-menu-item strong,
.account-row strong,
.sale-item strong {
    font-size: 0.98rem;
}

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

.table-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.table-card:hover,
.table-card.is-selected {
    transform: translateY(-2px);
    border-color: rgba(21, 163, 156, 0.42);
    box-shadow: 0 18px 34px rgba(24, 49, 83, 0.08);
}

.table-card.is-active {
    background: linear-gradient(180deg, rgba(255, 245, 233, 0.98), rgba(255, 255, 255, 0.96));
}

.table-head,
.table-foot,
.account-meta,
.sale-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 800;
}

.status-dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.status-dot.is-idle {
    color: var(--muted);
}

.workspace-panel {
    min-height: 100%;
}

.workspace-empty {
    display: grid;
    place-items: center;
    min-height: 340px;
    padding: 26px;
    text-align: center;
    border: 1px dashed rgba(24, 49, 83, 0.2);
    border-radius: var(--radius-lg);
    color: var(--muted);
}

.workspace-card {
    display: grid;
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
}

.workspace-top,
.account-actions,
.checkout-line-grid,
.inventory-actions,
.modal-actions {
    display: flex;
    gap: 10px;
}

.workspace-top {
    align-items: center;
    justify-content: space-between;
}

.workspace-kicker {
    margin: 0 0 4px;
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.selected-chip {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
}

.selected-chip span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.account-list,
.checkout-line-list,
.alert-list,
.ranking-list,
.sales-history {
    display: grid;
    gap: 12px;
}

.account-row,
.checkout-line {
    position: relative;
}

.account-row .account-actions,
.inventory-actions,
.modal-actions {
    flex-wrap: wrap;
}

.mini-btn {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-weight: 800;
    cursor: pointer;
}

.mini-btn.is-danger {
    color: var(--danger);
}

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

.admin-card-wide {
    grid-column: span 3;
}

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

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

.stack-form {
    gap: 12px;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-field input {
    width: auto;
}

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

.inventory-table {
    width: 100%;
    border-collapse: collapse;
}

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

.inventory-table th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.inventory-table input,
.inventory-table select {
    min-width: 92px;
    padding: 10px 12px;
}

.state-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.state-pill.is-low {
    color: #995c00;
    background: rgba(255, 209, 102, 0.24);
}

.state-pill.is-out {
    color: var(--danger);
    background: rgba(255, 111, 145, 0.16);
}

.state-pill.is-ok {
    color: var(--success);
    background: rgba(29, 159, 100, 0.13);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 24, 42, 0.58);
}

.modal-panel {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto;
    padding: 24px;
    border-radius: 28px;
    background: var(--bg-soft);
    box-shadow: 0 30px 90px rgba(12, 24, 42, 0.35);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(24, 49, 83, 0.08);
    color: var(--navy);
    font-size: 1.4rem;
    line-height: 1;
    transform: rotate(45deg);
    cursor: pointer;
}

.modal-header,
.modal-body {
    display: grid;
    gap: 18px;
}

.modal-body {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
}

.checkout-line-grid {
    flex-wrap: wrap;
}

.checkout-line-grid > * {
    flex: 1 1 180px;
}

.discount-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.discount-toggle button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.discount-toggle button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    border-color: transparent;
}

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

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.total-row strong {
    color: var(--navy);
    font-size: 1.02rem;
}

.total-row.is-final {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.toast-region {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: grid;
    gap: 10px;
}

.toast {
    min-width: 260px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(24, 49, 83, 0.96);
    color: #fff;
    box-shadow: 0 18px 30px rgba(12, 24, 42, 0.24);
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 12px 6px;
}

.footer small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

@media (max-width: 1200px) {
    .hero,
    .birthday-layout,
    .media-section,
    .pos-layout,
    .modal-body,
    .story-strip {
        grid-template-columns: 1fr;
    }

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

    .admin-card-wide {
        grid-column: span 2;
    }

    .tables-grid,
    .birthday-placeholder-grid,
    .hero-highlights,
    .showcase-mini-grid,
    .gallery-grid,
    .contact-cards,
    .selected-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .page-shell {
        width: min(100% - 20px, 1400px);
    }

    .topbar,
    .main-nav,
    .form-actions,
    .workspace-top,
    .card-heading,
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        gap: 10px;
    }

    .hero,
    .story-strip,
    .services-section,
    .birthday-section,
    .media-section,
    .pos-section {
        padding: 22px;
    }

    .service-grid,
    .tables-grid,
    .birthday-placeholder-grid,
    .hero-highlights,
    .showcase-mini-grid,
    .gallery-grid,
    .contact-cards,
    .form-grid,
    .inline-form,
    .selected-summary,
    .metrics-grid,
    .admin-grid,
    .admin-kpis,
    .period-grid {
        grid-template-columns: 1fr;
    }

    .admin-card-wide {
        grid-column: span 1;
    }

    .gallery-tile.large {
        grid-column: span 1;
    }

    .modal-panel {
        width: min(100% - 16px, 1180px);
        margin: 12px auto;
        padding: 18px;
    }
}

.private-entry {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: stretch;
}

.private-entry-copy,
.private-entry-card,
.workspace-banner,
.seller-alerts-card,
.product-selection-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
}

.private-entry-card p strong {
    color: var(--navy);
}

.workspace-shell {
    min-height: 100vh;
    padding: 20px;
    background:
        radial-gradient(circle at top left, rgba(21, 163, 156, 0.12), transparent 20%),
        radial-gradient(circle at bottom right, rgba(255, 140, 66, 0.14), transparent 24%),
        linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

.workspace-header,
.workspace-banner,
.workspace-header-actions,
.workspace-banner-actions,
.workspace-tabs,
.seller-shell,
.seller-top-grid,
.drawer-action-grid,
.product-modal-layout,
.filter-chips,
.table-drawer-head {
    display: flex;
    gap: 16px;
}

.workspace-header,
.workspace-banner {
    align-items: center;
    justify-content: space-between;
}

.workspace-header {
    width: min(1440px, 100%);
    margin: 0 auto 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(24, 49, 83, 0.08);
}

.workspace-user {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(21, 163, 156, 0.12);
    color: var(--teal);
    font-weight: 800;
}

.workspace-main {
    width: min(1440px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.workspace-banner {
    background:
        linear-gradient(135deg, rgba(24, 49, 83, 0.96), rgba(37, 90, 138, 0.92)),
        rgba(24, 49, 83, 0.95);
    color: #fff;
}

.workspace-banner h2 {
    margin: 0 0 8px;
    font-family: "Baloo 2", cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.workspace-banner p {
    max-width: 72ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.workspace-banner .eyebrow {
    color: var(--yellow);
}

.workspace-banner .text-btn {
    color: var(--yellow);
}

.workspace-tabs {
    align-items: center;
    width: fit-content;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
}

.workspace-tabs button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.workspace-tabs button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--navy), #275b8c);
}

.app-view {
    display: none;
}

.app-view.is-active {
    display: block;
}

.seller-shell {
    align-items: flex-start;
}

.seller-stage {
    flex: 1 1 auto;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.seller-sidepanel {
    flex: 0 0 360px;
    display: grid;
    gap: 18px;
}

.seller-top-grid {
    align-items: stretch;
    margin-bottom: 18px;
}

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

.seller-alerts-card {
    flex: 0 0 320px;
}

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

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 44;
    background: rgba(12, 24, 42, 0.32);
}

.table-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    width: min(470px, 100%);
    padding: 22px;
    display: grid;
    align-content: start;
    gap: 18px;
    background: #fffdf8;
    box-shadow: -18px 0 40px rgba(12, 24, 42, 0.18);
    overflow-y: auto;
}

.table-drawer-head {
    align-items: center;
    justify-content: space-between;
}

.drawer-action-grid {
    flex-wrap: wrap;
}

.drawer-action-grid .secondary-btn,
.drawer-action-grid .primary-btn {
    flex: 1 1 calc(50% - 8px);
}

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

.modal-header.simple {
    margin-bottom: 12px;
}

.plan-selector {
    display: grid;
    gap: 12px;
}

.plan-card,
.product-card-choice {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover,
.product-card-choice:hover,
.plan-card.is-selected,
.product-card-choice.is-selected {
    transform: translateY(-1px);
    border-color: rgba(21, 163, 156, 0.42);
    box-shadow: 0 16px 26px rgba(24, 49, 83, 0.08);
}

.plan-card strong,
.product-card-choice strong {
    font-size: 1.02rem;
}

.plan-card span,
.product-card-choice span,
.selected-product-preview span {
    color: var(--muted);
}

.product-modal-layout {
    align-items: start;
}

.product-browser {
    flex: 1 1 auto;
    display: grid;
    gap: 14px;
}

.product-selection-card {
    flex: 0 0 320px;
}

.filter-chips {
    flex-wrap: wrap;
}

.filter-chips button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.filter-chips button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--teal), #1ca9c8);
    border-color: transparent;
}

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

.selected-product-preview {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px dashed rgba(24, 49, 83, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1200px) {
    .private-entry,
    .seller-shell,
    .product-modal-layout,
    .seller-top-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .seller-sidepanel,
    .seller-alerts-card,
    .product-selection-card {
        flex: none;
    }

    .seller-tables,
    .metrics-grid-wide,
    .product-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .workspace-shell {
        padding: 12px;
    }

    .workspace-header,
    .workspace-banner,
    .workspace-header-actions,
    .workspace-banner-actions,
    .workspace-tabs,
    .table-drawer-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .seller-tables,
    .metrics-grid-wide,
    .product-result-grid {
        grid-template-columns: 1fr;
    }

    .drawer-action-grid .secondary-btn,
    .drawer-action-grid .primary-btn {
        flex-basis: 100%;
    }
}

:root {
    --bg: #eaf7ff;
    --bg-soft: #f7fbff;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --line: rgba(49, 113, 214, 0.14);
    --text: #112e60;
    --muted: #577196;
    --navy: #123a7a;
    --teal: #00c2d1;
    --teal-soft: #dcfbff;
    --orange: #ff9438;
    --orange-soft: #ffe3b3;
    --yellow: #ffd84d;
    --pink: #ff5fa2;
    --blue: #5f88ff;
    --danger: #ff4f73;
    --success: #12b76a;
    --shadow: 0 24px 70px rgba(18, 58, 122, 0.14);
}

body {
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 95, 162, 0.18), transparent 22%),
        radial-gradient(circle at 88% 12%, rgba(0, 194, 209, 0.2), transparent 24%),
        radial-gradient(circle at 18% 86%, rgba(255, 216, 77, 0.22), transparent 22%),
        linear-gradient(180deg, #ecf8ff 0%, #dff1ff 46%, #f5fbff 100%);
}

.topbar {
    border: 1px solid rgba(95, 136, 255, 0.14);
    background: rgba(243, 250, 255, 0.86);
}

.brand-badge {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 14px 30px rgba(255, 95, 162, 0.26);
}

.nav-cta,
.primary-btn {
    background: linear-gradient(135deg, #00bfd0, #4c7ff6);
    box-shadow: 0 16px 28px rgba(34, 116, 233, 0.24);
}

.secondary-btn {
    color: var(--navy);
    background: linear-gradient(135deg, #ffe07a, #ffac4f);
    box-shadow: 0 12px 24px rgba(255, 172, 79, 0.24);
}

.hero,
.story-strip,
.services-section,
.birthday-section,
.media-section,
.pos-section {
    border: 1px solid rgba(95, 136, 255, 0.12);
    background: rgba(255, 255, 255, 0.76);
}

.workspace-shell {
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 95, 162, 0.14), transparent 18%),
        radial-gradient(circle at 88% 16%, rgba(0, 194, 209, 0.18), transparent 20%),
        radial-gradient(circle at 20% 84%, rgba(255, 216, 77, 0.18), transparent 22%),
        linear-gradient(180deg, #eef8ff 0%, #e0f0ff 50%, #f7fbff 100%);
}

.workspace-header {
    border: 1px solid rgba(95, 136, 255, 0.18);
    background: rgba(255, 255, 255, 0.78);
}

.workspace-user {
    background: rgba(95, 136, 255, 0.12);
    color: var(--blue);
}

.workspace-banner {
    background:
        radial-gradient(circle at top right, rgba(255, 216, 77, 0.18), transparent 22%),
        linear-gradient(135deg, #123a7a 0%, #245dc8 52%, #00bfd0 100%);
}

.workspace-tabs {
    border: 1px solid rgba(95, 136, 255, 0.16);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 26px rgba(18, 58, 122, 0.08);
}

.seller-stage,
.sidebar-card,
.admin-card,
.workspace-block,
.private-entry-copy,
.private-entry-card,
.workspace-banner,
.seller-alerts-card,
.product-selection-card,
.quote-form,
.modal-panel,
.table-drawer {
    border-color: rgba(95, 136, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 249, 255, 0.92));
}

.seller-stage {
    box-shadow: 0 26px 60px rgba(18, 58, 122, 0.12);
}

.seller-alerts-card {
    background:
        radial-gradient(circle at top right, rgba(255, 95, 162, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 250, 255, 0.92));
}

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

.metric-card,
.kpi-card,
.period-card,
.quick-menu-item,
.account-row,
.checkout-line,
.alert-item,
.ranking-item,
.sale-item,
.selected-chip,
.gallery-tile,
.contact-cards article {
    border-color: rgba(95, 136, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.92));
    box-shadow: 0 10px 24px rgba(18, 58, 122, 0.06);
}

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

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--teal));
}

.table-card {
    border: 1px solid rgba(95, 136, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 255, 0.94));
    box-shadow: 0 12px 28px rgba(18, 58, 122, 0.06);
}

.table-card:hover,
.table-card.is-selected {
    border-color: rgba(0, 194, 209, 0.34);
    box-shadow: 0 20px 36px rgba(18, 58, 122, 0.12);
}

.table-card.is-active {
    background:
        radial-gradient(circle at top right, rgba(0, 194, 209, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 248, 255, 0.96));
}

.table-card.is-warning {
    border-color: rgba(255, 148, 56, 0.38);
}

.table-card.is-soon {
    border-color: rgba(255, 216, 77, 0.42);
}

.table-card.is-expired {
    border-color: rgba(255, 79, 115, 0.44);
    box-shadow: 0 18px 40px rgba(255, 79, 115, 0.14);
}

.table-timer-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-dot {
    color: var(--teal);
}

.status-dot.is-idle {
    color: #6d7f9b;
}

.selected-summary {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.selected-chip strong {
    font-size: 1.15rem;
}

.seller-alert {
    display: grid;
    gap: 6px;
    padding: 15px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 800;
}

.seller-alert strong,
.kid-timer-item strong {
    font-size: 0.98rem;
}

.seller-alert span,
.kid-timer-item span {
    color: inherit;
    font-weight: 700;
}

.seller-alert.is-warning {
    color: #a75400;
    border-color: rgba(255, 148, 56, 0.2);
    background: linear-gradient(180deg, rgba(255, 237, 218, 0.98), rgba(255, 244, 231, 0.94));
}

.seller-alert.is-expired {
    color: #bf1f4c;
    border-color: rgba(255, 79, 115, 0.2);
    background: linear-gradient(180deg, rgba(255, 234, 238, 0.98), rgba(255, 243, 246, 0.94));
}

.seller-alert.is-stock {
    color: #0c7f8a;
    border-color: rgba(0, 194, 209, 0.18);
    background: linear-gradient(180deg, rgba(225, 252, 255, 0.98), rgba(241, 255, 255, 0.94));
}

.table-drawer {
    background:
        radial-gradient(circle at top right, rgba(255, 216, 77, 0.12), transparent 18%),
        linear-gradient(180deg, #f8fdff 0%, #ecf7ff 100%);
    box-shadow: -20px 0 44px rgba(18, 58, 122, 0.16);
}

.drawer-action-grid .secondary-btn,
.drawer-action-grid .primary-btn {
    min-height: 54px;
}

.kid-timer-list {
    display: grid;
    gap: 12px;
}

.kid-timer-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(95, 136, 255, 0.14);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 255, 0.92));
}

.timer-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.timer-pill.is-neutral {
    color: var(--blue);
    background: rgba(95, 136, 255, 0.12);
}

.timer-pill.is-active {
    color: #078997;
    background: rgba(0, 194, 209, 0.14);
}

.timer-pill.is-soon {
    color: #8a5d00;
    background: rgba(255, 216, 77, 0.22);
}

.timer-pill.is-warning {
    color: #ac5600;
    background: rgba(255, 148, 56, 0.22);
}

.timer-pill.is-expired {
    color: #c01f4d;
    background: rgba(255, 79, 115, 0.18);
}

.product-card-choice,
.plan-card {
    border-color: rgba(95, 136, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 255, 0.92));
}

.product-card-choice.is-selected,
.plan-card.is-selected {
    border-color: rgba(0, 194, 209, 0.34);
    box-shadow: 0 18px 30px rgba(18, 58, 122, 0.1);
}

.modal-panel {
    background:
        radial-gradient(circle at top right, rgba(0, 194, 209, 0.08), transparent 18%),
        linear-gradient(180deg, #f9fdff 0%, #eef7ff 100%);
}

.modal-close {
    background: rgba(95, 136, 255, 0.1);
}

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

@media (max-width: 860px) {
    .metrics-grid-wide {
        grid-template-columns: 1fr;
    }
}

/* Public site cleanup */
main {
    display: grid;
    gap: 24px;
}

.hero-copy,
.hero-showcase,
.birthday-layout,
.private-entry {
    align-items: start;
}

.hero-text,
.section-heading p,
.story-strip article:last-child p,
.birthday-feature p,
.private-entry-copy p,
.private-entry-card p,
.contact-panel .section-heading p {
    max-width: 62ch;
}

.hero-highlights article,
.service-card,
.birthday-card,
.gallery-tile,
.contact-cards article {
    position: relative;
    overflow: hidden;
}

.hero-highlights article::before,
.service-card::before,
.contact-cards article::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--teal));
}

.hero-highlights article:nth-child(2)::before,
.service-card:nth-child(2)::before,
.contact-cards article:nth-child(2)::before {
    background: linear-gradient(90deg, var(--blue), var(--teal));
}

.hero-highlights article:nth-child(3)::before,
.service-card:nth-child(3)::before,
.contact-cards article:nth-child(3)::before {
    background: linear-gradient(90deg, var(--orange), var(--pink));
}

.showcase-card-main {
    background:
        radial-gradient(circle at top right, rgba(255, 216, 77, 0.34), transparent 24%),
        linear-gradient(135deg, #1d3470 0%, #2555b8 44%, #00bfd1 100%);
}

.birthday-feature,
.private-entry-card {
    background:
        radial-gradient(circle at top right, rgba(255, 216, 77, 0.22), transparent 24%),
        linear-gradient(145deg, rgba(29, 52, 112, 0.96), rgba(37, 85, 184, 0.92));
    color: #ffffff;
}

.birthday-feature p,
.birthday-feature .birthday-disclaimer,
.private-entry-card p {
    color: rgba(255, 255, 255, 0.82);
}

.birthday-feature .pill,
.private-entry-card .birthday-label {
    color: #102243;
}

.gallery-tile {
    min-height: 150px;
    align-content: end;
    background:
        radial-gradient(circle at top right, rgba(95, 136, 255, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 255, 0.94));
}

.contact-panel,
.gallery-panel {
    height: 100%;
}

.contact-cards article strong {
    font-size: 1rem;
    line-height: 1.45;
}
