:root {
    --bg: #f4efe7;
    --surface: rgba(255, 252, 247, 0.88);
    --surface-strong: #fffdf8;
    --ink: #17211f;
    --muted: #60706d;
    --line: rgba(24, 37, 35, 0.08);
    --brand: #0f5f53;
    --brand-strong: #0a473e;
    --accent: #d98f38;
    --danger: #c45745;
    --shadow: 0 18px 50px rgba(23, 33, 31, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(217, 143, 56, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 95, 83, 0.2), transparent 30%),
        linear-gradient(180deg, #fbf7f1 0%, #f3eee4 100%);
}

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

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

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

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

.hero-shell,
.admin-hero {
    padding: 26px 0 48px;
}

.hero-shell {
    background:
        linear-gradient(135deg, rgba(16, 66, 58, 0.96), rgba(14, 101, 88, 0.88)),
        linear-gradient(120deg, #16433d, #0d4f46);
    color: #f7f7f1;
    position: relative;
    overflow: hidden;
}

.hero-shell::after,
.admin-hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -140px auto;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 143, 56, 0.32), rgba(217, 143, 56, 0));
    pointer-events: none;
}

.admin-hero {
    background:
        linear-gradient(140deg, rgba(23, 33, 31, 0.98), rgba(58, 77, 72, 0.92)),
        linear-gradient(140deg, #222f2d, #455955);
    color: #faf8f2;
    position: relative;
    overflow: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}

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

.brand-mark {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(217, 143, 56, 0.95), rgba(247, 207, 150, 0.95));
    color: #1f1a10;
    font-weight: 800;
    letter-spacing: 0.04em;
}

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

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy small {
    color: rgba(250, 248, 242, 0.76);
}

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

.ghost-link,
.lang-switch,
.secondary-btn,
.danger-btn,
.primary-btn {
    border-radius: 999px;
}

.ghost-link {
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.lang-switch {
    display: inline-flex;
    padding: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-btn {
    border: 0;
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
    background: #fffaf2;
    color: var(--brand-strong);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(255, 243, 225, 0.72);
}

.hero-copy h1,
.admin-hero-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    max-width: none;
    white-space: nowrap;
}

.hero-copy {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.hero-desc {
    margin: 18px 0 0;
    max-width: 980px;
    color: rgba(250, 248, 242, 0.82);
    font-size: 1.03rem;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    text-align-last: center;
    line-height: 1.7;
}

.hero-metrics,
.metric-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 620px;
}

.metric-chip {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-chip strong,
.metric-card strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.metric-chip span,
.metric-card span {
    color: rgba(250, 248, 242, 0.7);
    font-size: 0.9rem;
}

.hero-panel,
.card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-panel {
    border-radius: 999px;
    padding: 0;
    width: min(100%, 860px);
    margin: 28px auto 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.search-card {
    background: rgba(255, 252, 247, 0.98);
    border-radius: 999px;
    padding: 10px 10px 10px 24px;
    color: var(--ink);
    box-shadow: 0 22px 44px rgba(9, 33, 30, 0.22);
}

.search-label {
    display: none;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
}

.search-row input,
.field-grid input,
.field-grid textarea,
.field-grid select,
.filter-row select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    padding: 18px 18px;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-row input {
    border: 0;
    padding-left: 6px;
    font-size: 1rem;
    font-weight: 600;
}

.search-row input:focus,
.field-grid input:focus,
.field-grid textarea:focus,
.field-grid select:focus,
.filter-row select:focus {
    outline: none;
    border-color: rgba(15, 95, 83, 0.48);
    box-shadow: 0 0 0 4px rgba(15, 95, 83, 0.1);
}

.primary-btn,
.secondary-btn,
.danger-btn {
    border: 0;
    padding: 14px 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fbfaf4;
    box-shadow: 0 12px 30px rgba(15, 95, 83, 0.24);
    min-height: 56px;
}

.secondary-btn {
    background: #f2ece1;
    color: var(--ink);
    border: 1px solid rgba(24, 37, 35, 0.08);
}

.danger-btn {
    background: rgba(196, 87, 69, 0.12);
    color: var(--danger);
    border: 1px solid rgba(196, 87, 69, 0.18);
}

.clear-btn {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: #f1ebdf;
    color: var(--muted);
}

.helper-text,
.muted {
    margin: 10px 6px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-helper {
    margin-top: 12px;
    color: rgba(250, 248, 242, 0.72);
    text-align: center;
}

.page-main {
    padding: 28px 0 72px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.result-pill {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(15, 95, 83, 0.08);
    color: var(--brand-strong);
    font-weight: 700;
}

.toolbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.link-btn {
    border: 0;
    background: transparent;
    color: var(--brand);
    font-weight: 700;
    padding: 0;
}

.status-banner {
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(15, 95, 83, 0.14);
    background: rgba(15, 95, 83, 0.08);
    color: var(--brand-strong);
}

.industries-grid,
.merchants-grid {
    display: grid;
    gap: 18px;
}

.industries-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.merchants-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.industry-card,
.merchant-card,
.editor-card {
    position: relative;
    background: var(--surface-strong);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(24, 37, 35, 0.08);
    box-shadow: var(--shadow);
}

.industry-card,
.merchant-card {
    padding: 22px;
}

.industry-card::before,
.merchant-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 6px;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(90deg, var(--accent), rgba(15, 95, 83, 0.78));
}

.industry-name,
.merchant-name {
    margin: 0 0 10px;
    font-size: 1.35rem;
    line-height: 1.1;
}

.industry-location,
.industry-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3ecdf;
    color: #6b5a3a;
    font-size: 0.86rem;
    font-weight: 700;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef4f2;
    color: var(--brand-strong);
    font-size: 0.83rem;
    font-weight: 700;
}

.card-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.merchant-products {
    margin: 14px 0;
    color: #2b3936;
    line-height: 1.65;
}

.contact-list {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(24, 37, 35, 0.08);
}

.contact-list a,
.contact-list span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
}

.detail-shell {
    padding: 22px;
    border-radius: 32px;
    background: rgba(255, 253, 248, 0.72);
    border: 1px solid rgba(24, 37, 35, 0.08);
    box-shadow: var(--shadow);
}

.detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.no-results {
    padding: 42px 24px;
    border-radius: 28px;
    background: rgba(255, 253, 248, 0.82);
    border: 1px solid rgba(24, 37, 35, 0.08);
    text-align: center;
    box-shadow: var(--shadow);
}

.highlight {
    background: rgba(217, 143, 56, 0.24);
    border-radius: 6px;
    padding: 0 4px;
}

.site-footer {
    padding: 0 0 40px;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    padding: 24px 28px;
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.68);
    border: 1px solid rgba(24, 37, 35, 0.08);
}

.footer-title {
    margin: 0 0 8px;
    font-weight: 800;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--brand);
    font-weight: 700;
}

.admin-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
}

.card {
    border-radius: 28px;
}

.admin-sidebar,
.admin-section {
    padding: 24px;
}

.sidebar-section + .sidebar-section {
    margin-top: 28px;
}

.action-stack {
    display: grid;
    gap: 10px;
}

.wide-btn {
    width: 100%;
}

.file-label {
    cursor: pointer;
}

.metric-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: #f7f1e6;
}

.metric-card span {
    color: var(--muted);
}

.simple-steps {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.6;
}

.admin-main {
    display: grid;
    gap: 22px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.section-head h2,
.sidebar-section h2 {
    margin: 0;
    font-size: 1.45rem;
}

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

.editor-card {
    padding: 18px;
}

.editor-card h3 {
    margin: 0;
    font-size: 1.08rem;
}

.editor-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.field-grid {
    display: grid;
    gap: 12px;
}

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

.field-grid label,
.filter-row label {
    display: grid;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
}

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

.editor-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.empty-state {
    padding: 18px;
    border-radius: 20px;
    background: #f7f1e6;
    color: var(--muted);
}

@media (max-width: 960px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .admin-hero-copy h1 {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    .topbar,
    .toolbar,
    .detail-head,
    .footer-wrap,
    .section-head {
        align-items: stretch;
    }

    .search-row,
    .field-grid.two-col {
        grid-template-columns: 1fr;
    }

    .search-card {
        border-radius: 28px;
        padding: 14px;
    }

    .hero-copy h1,
    .admin-hero-copy h1 {
        font-size: clamp(2rem, 7vw, 2.7rem);
        white-space: normal;
    }

    .search-row input {
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.9);
        padding-left: 18px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .ghost-link,
    .lang-switch,
    .primary-btn,
    .secondary-btn,
    .danger-btn {
        width: 100%;
    }

    .topbar-actions {
        width: 100%;
    }
}
