:root {
    --bg: #f4f1ea;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #fffdf8;
    --surface-accent: #0f3d3e;
    --text: #132728;
    --muted: #55706e;
    --line: rgba(19, 39, 40, 0.12);
    --primary: #0e6b63;
    --primary-dark: #0a4f49;
    --accent: #d89d46;
    --danger: #b64747;
    --shadow: 0 28px 70px rgba(18, 42, 43, 0.12);
    --radius-lg: 28px;
    --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(216, 157, 70, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(14, 107, 99, 0.18), transparent 24%),
        linear-gradient(180deg, #f8f5ef 0%, #f1ede4 100%);
}

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

button,
input {
    font: inherit;
}

.site-shell,
.auth-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-shell {
    padding: 24px 0 48px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(19, 39, 40, 0.06);
}

.brand-lockup,
.topnav,
.topbar-actions,
.cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-pill,
.brand-name {
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
}

.brand-pill {
    color: var(--accent);
}

.brand-name {
    color: var(--surface-accent);
}

.topnav a,
.user-chip {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-cta {
    color: var(--surface-accent);
}

.hero,
.footer-banner,
.dashboard-hero {
    display: grid;
    gap: 24px;
    border-radius: var(--radius-lg);
}

.hero {
    grid-template-columns: 1.3fr 0.9fr;
    padding: 44px;
    background:
        linear-gradient(135deg, rgba(10, 79, 73, 0.96), rgba(15, 61, 62, 0.94)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    color: #f8f5ef;
    box-shadow: var(--shadow);
}

.hero h1,
.auth-panel h1,
.dashboard-hero h1,
.section-heading h2,
.footer-banner h2 {
    margin: 0;
    font-family: "Outfit", sans-serif;
    line-height: 1.02;
}

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

.hero-text,
.footer-banner p,
.dashboard-hero p,
.panel-heading p,
.module-card p,
.info-card li,
.hero-metric span,
.stat-card p,
.widget-card p,
.integration-card p,
.auth-panel p,
.auth-note,
.microcopy,
.privacy-copy {
    color: rgba(248, 245, 239, 0.82);
}

.hero-text {
    max-width: 66ch;
    margin: 18px 0 24px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-tag {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--surface-accent);
    background: rgba(216, 157, 70, 0.18);
}

.hero .section-tag,
.footer-banner .section-tag,
.dashboard-hero .section-tag {
    color: #f7ddad;
    background: rgba(216, 157, 70, 0.14);
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    font-weight: 700;
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #c47b20);
}

.button-secondary {
    color: var(--surface-accent);
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 61, 62, 0.12);
}

.button-full {
    width: 100%;
}

.trust-note,
.hero-inline-note,
.flash-message,
.error-box,
.privacy-copy {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-note,
.hero-inline-note {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(248, 245, 239, 0.88);
    background: rgba(255, 255, 255, 0.08);
}

.hero-panel,
.workflow-stack,
.quick-actions,
.widget-grid,
.integration-grid,
.stats-grid,
.module-grid,
.section-grid,
.dashboard-columns {
    display: grid;
    gap: 18px;
}

.hero-panel {
    align-content: end;
}

.hero-metric,
.info-card,
.module-card,
.panel-card,
.stat-card,
.widget-card,
.integration-card,
.auth-form-card,
.auth-panel-brand,
.footer-banner,
.dashboard-hero {
    background: var(--surface);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-metric {
    padding: 22px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
}

.hero-metric strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

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

.info-card,
.module-card,
.panel-card,
.stat-card,
.widget-card,
.integration-card,
.auth-form-card,
.auth-panel-brand,
.footer-banner,
.dashboard-hero {
    padding: 26px;
    border-radius: var(--radius-lg);
}

.info-card h2,
.panel-heading h2,
.auth-form-card h2,
.module-card h3,
.widget-card h3,
.workflow-card h3,
.integration-card strong,
.stat-card strong {
    margin: 0 0 10px;
    font-family: "Outfit", sans-serif;
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.feature-list li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.65;
}

.feature-list li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.section-block {
    margin-top: 34px;
}

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

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.table-card {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.6);
}

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

th {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

td {
    color: var(--text);
}

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

.module-card h3,
.widget-card h3,
.workflow-card h3 {
    font-size: 1.15rem;
}

.module-card p,
.panel-heading p,
.stat-card p,
.widget-card p,
.integration-card p,
.auth-form-card p,
.auth-note,
.microcopy,
.privacy-copy,
.info-card li,
th,
.topnav a,
.user-chip {
    color: var(--muted);
}

.footer-banner {
    margin-top: 36px;
    grid-template-columns: 1.2fr auto;
    align-items: center;
    background:
        radial-gradient(circle at bottom right, rgba(216, 157, 70, 0.2), transparent 24%),
        linear-gradient(135deg, rgba(10, 79, 73, 0.98), rgba(15, 61, 62, 0.98));
    color: #f8f5ef;
}

.auth-body {
    display: grid;
    place-items: center;
    padding: 20px 0;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.auth-panel {
    min-height: 780px;
    padding: 40px;
}

.auth-panel-brand {
    background:
        linear-gradient(160deg, rgba(10, 79, 73, 0.96), rgba(15, 61, 62, 0.92)),
        radial-gradient(circle at top left, rgba(216, 157, 70, 0.2), transparent 20%);
    color: #f8f5ef;
}

.auth-panel-brand h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 14px;
}

.auth-panel-form {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.5);
}

.auth-form-card {
    width: min(100%, 460px);
}

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

.auth-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
    color: var(--surface-accent);
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
}

.auth-form input:focus {
    outline: 2px solid rgba(14, 107, 99, 0.18);
    border-color: rgba(14, 107, 99, 0.35);
}

.compact {
    gap: 10px;
}

.auth-note,
.microcopy,
.privacy-copy {
    margin: 18px 0 0;
    line-height: 1.65;
}

.flash-message {
    margin-bottom: 18px;
    color: var(--surface-accent);
    background: rgba(14, 107, 99, 0.08);
    border-color: rgba(14, 107, 99, 0.16);
}

.error-box {
    margin-bottom: 18px;
    color: var(--danger);
    background: rgba(182, 71, 71, 0.08);
    border-color: rgba(182, 71, 71, 0.16);
}

.dashboard-shell .topbar {
    margin-bottom: 24px;
}

.dashboard-main {
    display: grid;
    gap: 24px;
}

.dashboard-hero {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(216, 157, 70, 0.14), transparent 18%),
        linear-gradient(135deg, rgba(10, 79, 73, 0.98), rgba(15, 61, 62, 0.95));
    color: #f8f5ef;
}

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

.stat-card span {
    display: block;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin: 12px 0 10px;
    font-size: 2.3rem;
    color: var(--surface-accent);
}

.dashboard-columns {
    grid-template-columns: 1.2fr 0.8fr;
}

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

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

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

.workflow-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(14, 107, 99, 0.06);
    border: 1px solid rgba(14, 107, 99, 0.12);
}

.workflow-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.widget-card,
.integration-card {
    min-height: 140px;
}

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

.detail-card,
.policy-card {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
}

.detail-card span,
.policy-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.detail-card strong {
    font-family: "Outfit", sans-serif;
    font-size: 1.2rem;
    color: var(--surface-accent);
}

.policy-list {
    display: grid;
    gap: 16px;
}

.policy-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.inline-membership-form,
.stacked-membership-form {
    display: grid;
    gap: 10px;
}

.inline-membership-form {
    grid-template-columns: minmax(160px, 1fr) auto;
    align-items: center;
}

.inline-membership-form input,
.stacked-membership-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.checkline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.checkline input {
    width: auto;
}

.pagination-wrap {
    margin-top: 18px;
}

.pagination-wrap nav {
    display: flex;
    justify-content: flex-end;
}

.pagination-wrap svg {
    width: 16px;
    height: 16px;
}

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

@media (max-width: 960px) {
    .hero,
    .section-grid,
    .module-grid,
    .footer-banner,
    .auth-shell,
    .dashboard-hero,
    .stats-grid,
    .dashboard-columns,
    .widget-grid,
    .integration-grid,
    .detail-grid,
    .quick-actions.two-up {
        grid-template-columns: 1fr;
    }

    .topbar,
    .topbar-actions,
    .topnav,
    .cta-row {
        flex-wrap: wrap;
    }

    .hero,
    .auth-panel,
    .footer-banner,
    .dashboard-hero,
    .panel-card,
    .module-card,
    .stat-card,
    .info-card,
    .auth-form-card {
        padding: 22px;
    }

    .auth-panel {
        min-height: auto;
    }

    .inline-membership-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-shell,
    .auth-shell {
        width: min(100% - 20px, 1180px);
    }

    .topbar {
        border-radius: 24px;
    }

    .hero h1,
    .auth-panel h1,
    .section-heading h2,
    .footer-banner h2,
    .dashboard-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    th,
    td {
        min-width: 180px;
    }
}
