:root {
    --bg: #f3ede3;
    --bg-soft: #fbf8f1;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #ffffff;
    --surface-dark: #12221f;
    --ink: #18211f;
    --muted: #6e756f;
    --line: rgba(24, 33, 31, 0.1);
    --line-strong: rgba(24, 33, 31, 0.18);
    --primary: #0f5b52;
    --primary-dark: #0a3f39;
    --accent: #c4a15c;
    --accent-dark: #9f7e3f;
    --danger: #b42318;
    --warning: #b86b16;
    --success: #1f7a4d;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --shadow-soft: 0 18px 60px rgba(24, 33, 31, 0.08);
    --shadow-card: 0 12px 34px rgba(15, 91, 82, 0.12);
    --shadow-dark: 0 20px 60px rgba(6, 18, 16, 0.45);
    --font-sans: "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(196, 161, 92, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 91, 82, 0.15), transparent 22%),
        linear-gradient(180deg, #f7f1e8 0%, #f3ede3 42%, #efe6d9 100%);
}

body.admin-body,
body.customer-body {
    background:
        radial-gradient(circle at top left, rgba(196, 161, 92, 0.18), transparent 20%),
        linear-gradient(180deg, #f7f3eb 0%, #f0e7da 100%);
}

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

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

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

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

.narrow {
    width: min(780px, 100%);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 700;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    letter-spacing: -0.03em;
    margin: 0;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.button,
.link-button {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease;
}

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

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #157063);
    box-shadow: 0 14px 30px rgba(15, 91, 82, 0.22);
}

.ghost-button {
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink);
    border: 1px solid rgba(24, 33, 31, 0.1);
}

.danger-link {
    background: transparent;
    color: var(--danger);
    padding: 0;
}

.full-width {
    width: 100%;
}

.site-flash,
.flash {
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.site-flash {
    width: min(1240px, calc(100% - 32px));
    margin: 20px auto 0;
}

.flash-success,
.site-flash.success {
    background: rgba(31, 122, 77, 0.12);
    color: var(--success);
    border-color: rgba(31, 122, 77, 0.15);
}

.flash-error,
.site-flash.error {
    background: rgba(180, 35, 24, 0.12);
    color: var(--danger);
    border-color: rgba(180, 35, 24, 0.16);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(22px);
    background: rgba(247, 241, 232, 0.72);
    border-bottom: 1px solid rgba(24, 33, 31, 0.06);
}

.nav-shell,
.topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
}

.brand-mark {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.site-nav,
.nav-actions,
.customer-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav a,
.customer-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a.active,
.customer-nav a.active,
.site-nav a:hover,
.customer-nav a:hover {
    background: rgba(15, 91, 82, 0.08);
    color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(24, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.7);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.menu-toggle.dark {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.7);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
}

.hero-section,
.page-hero {
    padding: 48px 0 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.panel-card,
.detail-card,
.showcase-card,
.project-card,
.testimonial-card,
.cta-card,
.auth-card,
.auth-brand-panel,
.auth-form-panel,
.metric-card,
.empty-state,
.feed-card,
.gallery-card {
    border: 1px solid rgba(24, 33, 31, 0.08);
    background: var(--surface);
    backdrop-filter: blur(18px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.hero-copy,
.hero-panel,
.detail-card,
.panel-card,
.auth-card,
.auth-brand-panel,
.auth-form-panel,
.cta-card,
.empty-state {
    padding: 30px;
}

.hero-copy h1,
.page-hero h1,
.auth-brand-panel h1 {
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.96;
    margin-bottom: 18px;
    color: var(--ink);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 4rem);
}

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

.glass-card {
    min-height: 100%;
    border-radius: calc(var(--radius-lg) - 8px);
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(18, 34, 31, 0.9), rgba(15, 91, 82, 0.9));
    box-shadow: var(--shadow-dark);
}

.glass-card,
.glass-card p,
.glass-card li,
.glass-card .eyebrow {
    color: rgba(255, 255, 255, 0.88);
}

.feature-list {
    margin: 20px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.stat-ribbon,
.metric-grid,
.card-grid,
.project-grid,
.testimonial-grid,
.gallery-grid {
    display: grid;
    gap: 18px;
}

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

.stat-ribbon article,
.metric-card {
    padding: 18px;
}

.stat-ribbon strong,
.metric-card strong,
.auth-stats strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-dark);
}

.stat-ribbon span,
.metric-card span,
.auth-stats span {
    color: var(--muted);
}

.section-shell {
    padding: 28px 0 36px;
}

.soft-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
}

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

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    max-width: 760px;
}

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

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

.showcase-card,
.testimonial-card,
.gallery-card,
.feed-card {
    padding: 24px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.showcase-card:hover,
.project-card:hover,
.testimonial-card:hover,
.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.showcase-card h2,
.showcase-card h3,
.project-card h2,
.project-card h3,
.testimonial-card h3 {
    margin: 14px 0 12px;
    font-size: 1.55rem;
}

.showcase-card a,
.project-card a {
    color: var(--primary);
    font-weight: 700;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 91, 82, 0.08);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.pill.is-success { background: rgba(31, 122, 77, 0.12); color: var(--success); }
.pill.is-warning { background: rgba(184, 107, 22, 0.12); color: var(--warning); }
.pill.is-danger { background: rgba(180, 35, 24, 0.12); color: var(--danger); }
.pill.is-neutral { background: rgba(24, 33, 31, 0.08); color: var(--muted); }

.is-success,
.is-warning,
.is-danger,
.is-neutral {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.is-success { background: rgba(31, 122, 77, 0.12); color: var(--success); }
.is-warning { background: rgba(184, 107, 22, 0.12); color: var(--warning); }
.is-danger { background: rgba(180, 35, 24, 0.12); color: var(--danger); }
.is-neutral { background: rgba(24, 33, 31, 0.08); color: var(--muted); }

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

.project-card {
    overflow: hidden;
}

.project-card__media,
.gallery-placeholder {
    min-height: 180px;
    background:
        linear-gradient(135deg, rgba(15, 91, 82, 0.85), rgba(196, 161, 92, 0.85)),
        linear-gradient(180deg, #23423c, #c4a15c);
}

.project-card__body {
    padding: 22px;
}

.meta-row,
.info-list div,
.table-actions,
.auth-links,
.footer-bottom,
.action-stack {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-row {
    margin: 16px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.meta-row.large {
    margin-top: 18px;
    font-size: 1rem;
}

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

.rating-row {
    color: var(--accent-dark);
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

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

.accordion-item {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(24, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.68);
}

.accordion-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.accordion-item p {
    margin-top: 14px;
}

.cta-band {
    padding-bottom: 60px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, rgba(18, 34, 31, 0.94), rgba(15, 91, 82, 0.92));
}

.cta-card,
.cta-card p,
.cta-card h2,
.cta-card .eyebrow {
    color: #fff;
}

.two-column-detail,
.dashboard-grid,
.admin-module-grid,
.auth-layout {
    display: grid;
    gap: 22px;
}

.two-column-detail {
    grid-template-columns: 1.2fr 0.8fr;
}

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

.admin-module-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    align-items: start;
}

.admin-module-grid.wide-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(340px, 1fr);
}

.sticky-panel {
    position: sticky;
    top: 104px;
}

.table-shell {
    overflow: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(24, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.6);
}

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

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(24, 33, 31, 0.08);
    vertical-align: top;
}

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

.data-table td span {
    color: var(--muted);
    font-size: 0.92rem;
}

.table-actions form {
    margin: 0;
}

.lux-form,
.filter-bar,
.form-grid,
.info-list,
.stack-list {
    display: grid;
    gap: 14px;
}

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

.lux-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: var(--ink);
}

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

.wide-field {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(24, 33, 31, 0.12);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(15, 91, 82, 0.5);
    box-shadow: 0 0 0 4px rgba(15, 91, 82, 0.08);
}

.checkbox-row {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px !important;
}

.checkbox-row input {
    width: auto;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 100vh;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px;
    background: linear-gradient(180deg, rgba(18, 34, 31, 0.98), rgba(11, 41, 36, 0.96));
    color: rgba(255, 255, 255, 0.84);
    overflow: hidden;
}

.sidebar-brand p,
.sidebar-user span {
    color: rgba(255, 255, 255, 0.64);
}

.sidebar-nav {
    display: grid;
    gap: 8px;
    margin: 34px 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-inline-end: 6px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.sidebar-section-title {
    margin: 16px 8px 6px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.84);
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.sidebar-user {
    margin-top: auto;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-main {
    min-width: 0;
}

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    backdrop-filter: blur(18px);
    background: rgba(247, 243, 235, 0.78);
    border-bottom: 1px solid rgba(24, 33, 31, 0.08);
}

.dashboard-content,
.customer-main {
    padding: 26px;
}

.page-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.page-intro h1 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.admin-hero {
    margin-bottom: 22px;
    padding: 28px 30px;
    border-radius: 28px;
    border: 1px solid rgba(24, 33, 31, 0.08);
    background:
        radial-gradient(circle at top right, rgba(196, 161, 92, 0.22), transparent 26%),
        linear-gradient(135deg, rgba(18, 34, 31, 0.96), rgba(15, 91, 82, 0.9));
    box-shadow: var(--shadow-dark);
}

.admin-hero,
.admin-hero h1,
.admin-hero p,
.admin-hero .eyebrow {
    color: rgba(255, 255, 255, 0.92);
}

.page-intro-actions,
.hero-filter,
.form-actions,
.chip-row,
.checkbox-grid,
.quick-links-grid,
.split-tables,
.topbar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-filter {
    align-items: center;
    justify-content: flex-end;
}

.hero-filter select {
    min-width: 220px;
    background: rgba(255, 255, 255, 0.9);
}

.rich-metrics {
    margin-top: -10px;
}

.gradient-metric {
    background:
        radial-gradient(circle at top right, rgba(196, 161, 92, 0.25), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72));
    border-color: rgba(15, 91, 82, 0.12);
}

.warm-metric {
    background:
        radial-gradient(circle at top right, rgba(15, 91, 82, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,248,239,0.82));
}

.elevated-shell {
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-soft);
}

.surface-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.72));
}

.spotlight-card {
    background:
        radial-gradient(circle at top left, rgba(196, 161, 92, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
}

.compact-button {
    padding: 10px 14px;
    font-size: 0.9rem;
}

.table-actions--split {
    justify-content: space-between;
    padding: 18px 18px 0;
}

.table-shell .eyebrow,
.panel-card .eyebrow {
    margin-bottom: 8px;
}

.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(248, 243, 236, 0.96);
    backdrop-filter: blur(10px);
    font-size: 0.88rem;
    color: var(--primary-dark);
}

.data-table tbody tr {
    transition: background 0.2s ease, transform 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(15, 91, 82, 0.04);
}

.data-table td {
    font-size: 0.95rem;
}

.data-table td .button {
    white-space: nowrap;
}

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

.quick-link-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(24, 33, 31, 0.08);
    background: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    color: var(--primary-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

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

.form-actions {
    align-items: center;
    justify-content: flex-start;
    margin-top: 4px;
}

.mono-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.86rem;
    direction: ltr;
    display: inline-block;
    word-break: break-all;
}

.split-tables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0 18px 18px;
}

.compact-stack {
    gap: 10px;
}

.topbar-actions {
    align-items: center;
    justify-content: flex-end;
}

.sidebar-brand {
    padding: 18px 18px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.08);
}

.dashboard-sidebar .brand-mark {
    color: #fff;
}

.sidebar-nav a {
    position: relative;
    font-weight: 600;
}

.sidebar-nav a.active::before {
    content: "";
    position: absolute;
    inset: 10px 0 10px auto;
    width: 4px;
    border-radius: 999px;
    background: var(--accent);
}

.dashboard-topbar {
    box-shadow: 0 8px 24px rgba(24, 33, 31, 0.05);
}

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

.stack-list > * + * {
    margin-top: 0;
}

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

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

.chart-panel {
    min-height: 260px;
}

.chart-placeholder {
    display: grid;
    align-items: end;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    min-height: 200px;
}

.chart-placeholder div {
    background: linear-gradient(180deg, rgba(196, 161, 92, 0.3), rgba(15, 91, 82, 0.8));
    border-radius: 16px 16px 6px 6px;
}

.chart-placeholder div:nth-child(1) { height: 42%; }
.chart-placeholder div:nth-child(2) { height: 66%; }
.chart-placeholder div:nth-child(3) { height: 50%; }
.chart-placeholder div:nth-child(4) { height: 82%; }
.chart-placeholder div:nth-child(5) { height: 62%; }
.chart-placeholder div:nth-child(6) { height: 92%; }

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

.notes-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(24, 33, 31, 0.08);
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.auth-layout {
    grid-template-columns: 1.05fr 0.95fr;
    width: min(1280px, 100%);
}

.auth-brand-panel {
    min-height: 100%;
    background:
        linear-gradient(135deg, rgba(18, 34, 31, 0.94), rgba(15, 91, 82, 0.88)),
        linear-gradient(180deg, #17332d, #bea166);
    color: rgba(255, 255, 255, 0.88);
}

.auth-brand-panel p,
.auth-brand-panel .eyebrow,
.auth-brand-panel span,
.auth-brand-panel h1 {
    color: rgba(255, 255, 255, 0.92);
}

.auth-stats {
    margin-top: 28px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-stats article {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-card {
    max-width: 560px;
    margin: 0 auto;
}

.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 18px;
}

.auth-links {
    margin-top: 18px;
}

.customer-topbar {
    position: sticky;
    top: 0;
    z-index: 12;
    backdrop-filter: blur(16px);
    background: rgba(247, 243, 235, 0.82);
    border-bottom: 1px solid rgba(24, 33, 31, 0.06);
}

.empty-state {
    text-align: left;
}

.empty-state.center {
    text-align: center;
}

.empty-state h3,
.empty-state h1 {
    margin-bottom: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.wysiwyg-content p + p {
    margin-top: 16px;
}

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

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

@media (max-width: 960px) {
    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: var(--radius-lg);
        background: rgba(255, 255, 255, 0.95);
        box-shadow: var(--shadow-soft);
    }

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

    .nav-actions {
        display: none;
    }

    .hero-grid,
    .two-column-detail,
    .admin-module-grid,
    .dashboard-grid,
    .auth-layout,
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 40;
    }

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

    .dashboard-topbar {
        padding: 18px;
    }

    .sticky-panel {
        position: static;
    }

    .metric-grid,
    .metric-grid.compact,
    .stat-ribbon,
    .filter-bar,
    .form-grid.two,
    .auth-stats {
        grid-template-columns: 1fr;
    }

    .cta-card,
    .page-intro,
    .section-heading,
    .topbar-row {
        align-items: start;
        flex-direction: column;
    }

    .hero-filter,
    .form-actions,
    .page-intro-actions,
    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .quick-links-grid,
    .split-tables,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .card-grid,
    .project-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .container {
        width: min(100% - 20px, 1240px);
    }

    .hero-copy,
    .hero-panel,
    .detail-card,
    .panel-card,
    .auth-card,
    .auth-brand-panel,
    .auth-form-panel,
    .cta-card,
    .empty-state {
        padding: 22px;
    }
}
