:root {
    --ink: #13211f;
    --muted: #62716d;
    --line: #dbe5e1;
    --paper: #ffffff;
    --wash: #f5f8f6;
    --teal: #0d7c73;
    --teal-dark: #075e58;
    --saffron: #e49b2f;
    --coral: #d9624b;
    --green: #2f8f5b;
    --navy: #1c3557;
    --shadow: 0 18px 45px rgba(19, 33, 31, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--wash);
    line-height: 1.55;
}

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

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

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

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 52px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

.brand__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--teal), var(--saffron));
    border-radius: 8px;
}

.brand__mark--image,
.footer-logo__mark--image {
    display: block;
    object-fit: contain;
    padding: 4px;
    background: #fff;
}

.brand__text {
    display: grid;
    line-height: 1.15;
}

.brand__text strong {
    font-size: 1rem;
}

.brand__text small {
    color: var(--muted);
    font-size: 0.78rem;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #263936;
    font-weight: 650;
}

.site-nav a:not(.btn) {
    padding: 8px 0;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn--primary {
    color: #fff;
    background: var(--teal);
    box-shadow: 0 10px 24px rgba(13, 124, 115, 0.22);
}

.btn--primary:hover {
    background: var(--teal-dark);
}

.btn--saffron {
    color: #261a08;
    background: var(--saffron);
}

.btn--ghost {
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
}

.btn--danger {
    color: #fff;
    background: var(--coral);
}

.btn--full {
    width: 100%;
}

.section {
    padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 52px);
}

.section--tight {
    padding-top: 34px;
    padding-bottom: 34px;
}

.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto 28px;
}

.section__head h1,
.section__head h2 {
    margin: 0;
    line-height: 1.05;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.section__head p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--muted);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: min(650px, calc(100vh - 132px));
    overflow: hidden;
    background: #0f211f;
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 25, 23, 0.88) 0%, rgba(8, 25, 23, 0.66) 42%, rgba(8, 25, 23, 0.18) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    align-self: center;
    width: min(760px, 100%);
    padding: clamp(36px, 5vw, 64px) clamp(18px, 6vw, 76px);
    color: #fff;
}

.hero__content h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(2.35rem, 5vw, 4.2rem);
    line-height: 0.96;
}

.hero__content p {
    max-width: 600px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    margin-top: 24px;
    overflow: hidden;
}

.hero__stats div {
    padding: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.hero__stats strong {
    display: block;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.hero__stats span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.grid {
    display: grid;
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
}

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

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

.campaign-card,
.panel,
.stat,
.auth-card,
.receipt {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(19, 33, 31, 0.06);
}

.campaign-card {
    display: grid;
    overflow: hidden;
}

.campaign-card__media {
    aspect-ratio: 16 / 10;
    background: #dbe5e1;
    overflow: hidden;
}

.campaign-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-card__body {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.campaign-card h3 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.campaign-card p {
    min-height: 56px;
    margin: 0;
    color: var(--muted);
}

.campaign-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.eyebrow {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.progress {
    height: 10px;
    overflow: hidden;
    background: #e8efec;
    border-radius: 999px;
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--saffron));
}

.band {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.feature-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-top: 8px;
    background: var(--saffron);
    border-radius: 50%;
}

.auth-wrap {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 74px);
    padding: 48px 18px;
}

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

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

.field {
    display: grid;
    gap: 7px;
}

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

.field label {
    color: #314641;
    font-size: 0.9rem;
    font-weight: 750;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cbd9d4;
    border-radius: 8px;
}

.field textarea {
    min-height: 118px;
    resize: vertical;
}

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

.choice {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.choice input {
    width: 18px;
    height: 18px;
}

.choice strong {
    display: block;
}

.choice span {
    color: var(--muted);
    font-size: 0.9rem;
}

.panel {
    padding: 22px;
}

.panel-image,
.page-content-image,
.admin-preview {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.panel-image {
    aspect-ratio: 16 / 9;
    margin: 16px 0;
}

.page-content-image {
    aspect-ratio: 21 / 8;
}

.admin-preview--wide {
    width: min(320px, 100%);
    aspect-ratio: 16 / 9;
}

.admin-preview--logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    padding: 8px;
}

.admin-preview--square {
    width: 140px;
    height: 140px;
    object-fit: contain;
    padding: 8px;
}

.gallery-admin,
.campaign-gallery {
    display: grid;
    gap: 14px;
}

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

.gallery-admin__item {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.gallery-admin__item > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
}

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

.campaign-gallery figure {
    margin: 0;
}

.campaign-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.campaign-gallery figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.86rem;
}

.panel h2,
.panel h3 {
    margin-top: 0;
}

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

.sidebar {
    padding: 26px 18px;
    background: #102d2a;
    color: #fff;
}

.sidebar strong {
    display: block;
    margin-bottom: 18px;
}

.sidebar nav {
    display: grid;
    gap: 6px;
}

.sidebar a {
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
}

.sidebar a:hover,
.sidebar a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.workspace {
    padding: clamp(22px, 4vw, 38px);
}

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

.stat {
    padding: 20px;
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.stat strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

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

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

th {
    color: #314641;
    background: #f0f5f2;
    font-size: 0.86rem;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #17322e;
    background: #e7efec;
    font-size: 0.82rem;
    font-weight: 800;
}

.badge--confirmed,
.badge--active,
.badge--sent {
    color: #0f452c;
    background: #dff3e7;
}

.badge--pending,
.badge--initiated,
.badge--queued,
.badge--logged {
    color: #6c4405;
    background: #fff0ce;
}

.badge--failed,
.badge--rejected,
.badge--blocked {
    color: #7a2618;
    background: #ffe2dc;
}

.badge--paused,
.badge--draft {
    color: #243d66;
    background: #e3ecfa;
}

.notice {
    max-width: 1180px;
    margin: 18px auto 0;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.notice--success {
    color: #0f452c;
    background: #e6f6ec;
    border-color: #bfe6cf;
}

.notice--error,
.notice--warning {
    color: #713416;
    background: #fff0da;
    border-color: #f3d2a3;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
}

.receipt {
    max-width: 760px;
    margin: 0 auto;
    padding: 34px;
}

.receipt__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.receipt dl {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 8px 14px;
}

.receipt dt {
    color: var(--muted);
    font-weight: 750;
}

.toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
}

.toast {
    padding: 13px 15px;
    color: #fff;
    background: #13211f;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.empty-state {
    padding: 28px;
    color: var(--muted);
    text-align: center;
    background: #fff;
    border: 1px dashed #bdccc7;
    border-radius: 8px;
}

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background:
        linear-gradient(145deg, rgba(13, 124, 115, 0.22), rgba(228, 155, 47, 0.12)),
        #0d2421;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 44px) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-cta__eyebrow {
    color: #f3bf64;
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.footer-cta h2 {
    max-width: 680px;
    margin: 6px 0 0;
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    line-height: 1.05;
}

.footer-cta p {
    max-width: 680px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.74);
}

.footer-cta__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-cta__image {
    width: min(180px, 24vw);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
}

.btn--footer {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 1fr));
    gap: clamp(24px, 4vw, 48px);
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(34px, 5vw, 56px) 0;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.footer-logo__mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: #fff;
    font-weight: 850;
    background: linear-gradient(135deg, var(--teal), var(--saffron));
    border-radius: 8px;
}

.footer-logo span:last-child {
    display: grid;
    gap: 2px;
}

.footer-logo strong {
    font-size: 1.05rem;
}

.footer-logo small {
    max-width: 280px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.86rem;
}

.footer-brand p,
.footer-group p {
    margin: 12px 0 0;
}

.footer-brand p {
    max-width: 420px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.footer-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 750;
}

.footer-group {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-group h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1rem;
}

.footer-group a {
    width: fit-content;
    color: rgba(255, 255, 255, 0.76);
}

.footer-group a:hover,
.footer-link-strong {
    color: #f3bf64;
}

.footer-group p span {
    display: block;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.footer-link-strong {
    margin-top: 10px;
    font-weight: 850;
}

.footer-qr {
    width: 112px;
    height: 112px;
    padding: 8px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 18px 0 24px;
    color: rgba(255, 255, 255, 0.56);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    color: #fff;
    background: #128c7e;
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(18, 140, 126, 0.35);
    font-weight: 850;
}

.whatsapp-float::before {
    content: "";
    width: 12px;
    height: 12px;
    margin-right: 8px;
    background: #fff;
    border-radius: 50%;
}

@media (max-width: 920px) {
    .site-header {
        align-items: flex-start;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        left: 18px;
        right: 18px;
        display: none;
        padding: 16px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

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

    .hero {
        min-height: auto;
    }

    .hero__content {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .hero__stats,
    .grid--3,
    .grid--2,
    .gallery-admin,
    .campaign-gallery,
    .stats,
    .split,
    .footer-main,
    .dashboard {
        grid-template-columns: 1fr;
    }

    .footer-cta,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 620px) {
    .brand__text small {
        display: none;
    }

    .hero__stats,
    .form-grid,
    .choice-grid {
        grid-template-columns: 1fr;
    }

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

    .receipt__head,
    .campaign-card__meta {
        flex-direction: column;
    }

    .receipt dl {
        grid-template-columns: 1fr;
    }
}

@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .actions,
    .toast-stack {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .dashboard {
        display: block;
    }

    .workspace {
        padding: 0;
    }
}
