* {
    box-sizing: border-box;
}

:root {
    --bg: #f4f4f4;
    --bg-soft: #fbfbfb;
    --text: #1f1f1f;
    --muted: #7a7a7a;
    --line: #e2e2e2;
    --white: #ffffff;
    --black: #202020;
    --blue: #0c1560;
    --blue-soft: #1b74e8;
    --accent: #ff4b42;
    --green: #24d366;
    --shadow: 0 14px 35px rgba(0, 0, 0, .08);
    --radius: 18px;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

body {
    min-height: 100vh;
}

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

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

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

.main-content {
    padding-bottom: 0;
}

.flash-wrap {
    position: relative;
    z-index: 40;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #e7e7e7;
}

.nav-wrap {
    display: grid;
    grid-template-columns: 230px 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 86px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #166ee1;
    color: #fff;
    font-size: 20px;
    margin-right: 10px;
}

.brand-title {
    font-size: 28px;
    font-weight: 800;
    color: #166ee1;
}

.brand-logo-large {
    width: auto;
    max-height: 46px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.site-nav a {
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 8px 10px;
    color: #202020;
}

.site-nav a:hover {
    color: #166ee1;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.header-icon-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #2d63d6;
    color: #fff;
    font-size: 18px;
    box-shadow: var(--shadow);
}

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

.btn, button[type=submit], .link-button {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    transition: .2s ease;
}

.btn {
    background: #166ee1;
    color: #fff;
}

.btn:hover, button[type=submit]:hover {
    transform: translateY(-1px);
}

.btn-dark,
.btn-hero-action {
    background: #1f1f1f;
    color: #fff;
}

.btn-hero-action {
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 4px;
    letter-spacing: .02em;
}

.btn-dark-outline {
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #d6d6d6;
}

.btn-light {
    background: #eef3fb;
    color: #154381;
}

.btn-danger {
    background: #d73f3f;
    color: #fff;
}

.btn-sm {
    padding: 10px 14px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

.link-button {
    background: transparent;
    color: #166ee1;
    padding: 0;
}

.inline-form {
    margin: 0;
}

.card,
.search-card,
.mini-card,
.form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,.05);
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d4d8dd;
    background: #fff;
    outline: none;
    margin-bottom: 14px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #166ee1;
    box-shadow: 0 0 0 4px rgba(22, 110, 225, .10);
}

.alert {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.alert.success {
    background: #e6fff1;
    color: #12704b;
    border: 1px solid #bfe7d1;
}

.alert.error {
    background: #fff0f0;
    color: #a32828;
    border: 1px solid #f0c6c6;
}

.hero-potengi {
    position: relative;
    padding: 92px 0 56px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(138,138,138,.78), rgba(28,28,28,.92)),
        radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255,255,255,.08), transparent 22%),
        #2d2d2d;
    overflow: hidden;
}

.hero-potengi::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.18));
    pointer-events: none;
}

.hero-potengi-inner {
    position: relative;
    z-index: 1;
}

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

.hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(54px, 7vw, 82px);
    line-height: 1;
    font-weight: 800;
}

.hero-copy p {
    margin: 0 auto 34px;
    max-width: 720px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,.92);
}

.hero-search-potengi {
    display: grid;
    grid-template-columns: 1.1fr 1fr auto;
    gap: 0;
    max-width: 730px;
    margin: 0 auto;
    background: rgba(255,255,255,.22);
    padding: 18px;
    border-radius: 4px;
}

.hero-search-potengi input,
.hero-search-potengi select {
    margin: 0;
    border-radius: 0;
    border: 0;
    min-height: 46px;
    color: #5f5f5f;
}

.hero-search-potengi input {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    border-right: 1px solid #dbdbdb;
}

.hero-search-potengi select {
    border-right: 1px solid #dbdbdb;
}

.hero-search-potengi .btn {
    min-height: 46px;
    border-radius: 0 3px 3px 0;
    padding: 0 30px;
}

.category-slider-wrap {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 14px;
    margin-top: 92px;
}

.slider-arrow {
    background: transparent;
    color: #fff;
    font-size: 34px;
    padding: 0;
    border-radius: 0;
}

.category-slider {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}

.category-tile {
    text-align: center;
    color: #fff;
}

.category-icon-tile {
    min-height: 106px;
    border-radius: 3px;
    background: var(--tile-color, #166ee1);
    display: grid;
    place-items: center;
    font-size: 42px;
    box-shadow: 0 12px 25px rgba(0,0,0,.18);
}

.category-tile span {
    display: block;
    margin-top: 14px;
    font-size: 14px;
    color: #fff;
}

.promo-strip {
    background: #ececec;
    padding: 38px 0 16px;
}

.promo-banner-card {
    min-height: 190px;
    padding: 28px 34px;
    border-radius: 0;
    background: linear-gradient(100deg, #1a73ea 0%, #1a73ea 60%, #3a8cff 100%);
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: center;
    gap: 26px;
    overflow: hidden;
}

.promo-banner-copy {
    color: #fff;
}

.promo-banner-copy small {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 12px;
}

.promo-banner-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
}

.promo-banner-copy p {
    margin: 0;
    max-width: 620px;
    font-size: 18px;
    line-height: 1.5;
}

.promo-banner-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo-banner-logo {
    max-height: 94px;
    width: auto;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}

.promo-banner-mark {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    border: 2px solid rgba(255,255,255,.42);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 44px;
    font-weight: 800;
}

.section-potengi {
    padding: 44px 0 48px;
    background: #f4f4f4;
}

.section-light {
    background: #efefef;
}

.section-news {
    padding-top: 26px;
}

.section-title-potengi {
    text-align: center;
    margin-bottom: 34px;
}

.section-title-potengi span {
    display: block;
    color: #202020;
    font-size: 16px;
    letter-spacing: .03em;
    margin-bottom: 6px;
}

.section-title-potengi h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    color: #202020;
}

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

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

.potengi-card {
    position: relative;
    background: #fff;
    min-height: 100%;
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 8px 22px rgba(0,0,0,.05);
    overflow: hidden;
}

.potengi-card-image {
    aspect-ratio: 1.12 / 1;
    background: linear-gradient(180deg, #dfe6ef, #c3cfdd);
}

.potengi-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.potengi-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 22px;
    color: rgba(255,255,255,.96);
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, #a9cde8, #748fba);
}

.ribbon-featured {
    position: absolute;
    top: 11px;
    right: -26px;
    z-index: 2;
    background: #ffe22d;
    color: #202020;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 28px;
    transform: rotate(45deg);
    box-shadow: 0 3px 8px rgba(0,0,0,.08);
}

.heart-badge {
    position: absolute;
    right: 16px;
    bottom: 122px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ef4a40;
    color: #fff;
    font-size: 21px;
    box-shadow: 0 8px 18px rgba(239, 74, 64, .32);
}

.potengi-card-body {
    padding: 18px 16px 22px;
}

.potengi-card-body h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
    color: #ff4b42;
    line-height: 1.35;
    min-height: 42px;
}

.potengi-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #37a4e2;
    font-size: 13px;
}

.meta-divider {
    color: #c6c6c6;
}

.potengi-card-body p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.55;
}

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

.news-card-potengi {
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.05);
    border: 1px solid rgba(0,0,0,.04);
    overflow: hidden;
}

.news-card-image {
    height: 250px;
    background: linear-gradient(135deg, #dadada, #bbbbbb);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 20px 22px 24px;
    text-align: center;
}

.news-date {
    display: block;
    margin-bottom: 18px;
    color: #7f7f7f;
    font-size: 14px;
}

.news-card-body h3 {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 500;
}

.news-card-body p {
    margin: 0 0 20px;
    color: #757575;
    line-height: 1.8;
    min-height: 86px;
}

.center-action {
    text-align: center;
    margin-top: 38px;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 18px;
    color: #8a8a8a;
}

.breadcrumbs-light {
    color: rgba(255,255,255,.88);
}

.detail-hero-wrap {
    padding: 26px 0 56px;
    background: linear-gradient(180deg, #3e3e3e, #151515 42%, #f4f4f4 42%);
}

.business-detail-card-modern {
    background: #fff;
    box-shadow: 0 18px 42px rgba(0,0,0,.10);
    overflow: hidden;
}

.business-cover-modern {
    min-height: 320px;
    background: linear-gradient(135deg, #dce7f7, #b4c6de);
}

.business-cover-modern img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.cover-placeholder-modern {
    min-height: 320px;
    display: grid;
    place-items: center;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #8fb0d1, #3d6fa1);
}

.business-detail-grid {
    display: grid;
    grid-template-columns: 1.25fr .45fr;
    gap: 24px;
    padding: 28px;
}

.detail-head-modern {
    align-items: center;
    gap: 18px;
}

.modern-logo-wrap {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.detail-head h1 {
    margin: 10px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
}

.detail-head p {
    margin: 0;
    color: #6c6c6c;
    line-height: 1.7;
}

.modern-badge {
    color: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
}

.detail-boxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.detail-box {
    padding: 18px;
    border-radius: 14px;
    background: #fbfbfb;
    border: 1px solid #ececec;
}

.detail-box strong {
    display: block;
    margin-bottom: 8px;
}

.detail-box p,
.detail-box small {
    margin: 0;
    color: #6f6f6f;
    line-height: 1.65;
}

.detail-box.full {
    grid-column: 1 / -1;
}

.business-detail-side-modern {
    display: grid;
    align-content: start;
    gap: 12px;
}

.modern-side-card {
    padding: 20px;
    line-height: 1.7;
}

.modern-side-card p {
    margin-bottom: 0;
    color: #707070;
}

.section {
    padding: 20px 0;
}

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

.section-head p {
    color: var(--muted);
    margin: 0;
}

.cards-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
}

.mini-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
}

.mini-card {
    padding: 16px;
    display: grid;
    gap: 6px;
}

.business-card {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.business-card p {
    margin: 0;
    color: var(--muted);
}

.business-card-link {
    display: grid;
    gap: 12px;
}

.business-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    background: #edf4fb;
    display: grid;
    place-items: center;
}

.business-logo-wrap.large {
    width: 88px;
    height: 88px;
    border-radius: 22px;
}

.business-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder {
    font-size: 28px;
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #0f4f6c;
    font-size: 12px;
    font-weight: 700;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
    color: var(--muted);
}

.form-actions,
.search-actions,
.admin-links,
.stack-actions,
.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.stat-card {
    padding: 22px;
}

.stat-number {
    font-size: 34px;
    font-weight: 800;
}

.stat-label {
    color: var(--muted);
}

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

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.table-wrap {
    overflow: auto;
}

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

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

.muted {
    color: var(--muted);
    font-size: 13px;
}

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

.stack-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fbfdff;
}

.wrap {
    flex-wrap: wrap;
}

.form-card {
    padding: 24px;
}

.narrow {
    max-width: 640px;
}

.empty-state {
    padding: 28px;
    text-align: center;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-line input {
    width: auto;
    margin: 0;
}

.helper {
    color: var(--muted);
    margin-bottom: 0;
}

.site-footer {
    background: #071260;
    padding: 44px 0 18px;
    color: #fff;
}

.footer-inner {
    text-align: center;
}

.footer-brand-block {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 28px;
    font-weight: 800;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.6);
    font-size: 18px;
}

.footer-copy {
    margin: 0;
    color: rgba(255,255,255,.92);
    font-size: 14px;
}

.assistant-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
}

.assistant-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    padding: 0;
    background: var(--green);
    color: #fff;
    font-size: 26px;
    box-shadow: 0 14px 28px rgba(36, 211, 102, .30);
}

.assistant-panel {
    width: min(360px, calc(100vw - 24px));
    margin-top: 10px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    overflow: hidden;
}

.assistant-panel.hidden {
    display: none;
}

.assistant-header {
    padding: 14px 16px;
    background: #101010;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assistant-close {
    background: transparent;
    color: var(--white);
    font-size: 22px;
    padding: 0;
}

.assistant-messages {
    max-height: 280px;
    overflow: auto;
    padding: 12px;
    display: grid;
    gap: 10px;
    background: #f7fbff;
}

.assistant-message {
    padding: 12px 14px;
    border-radius: 16px;
    line-height: 1.45;
}

.assistant-message.bot {
    background: #ffffff;
    border: 1px solid var(--line);
}

.assistant-message.user {
    background: #dff3fb;
    margin-left: 24px;
}

.assistant-form {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--line);
}

.assistant-form input {
    margin: 0;
}

.admin-edit-grid {
    grid-template-columns: .75fr 1.25fr;
}

.compact-list .stack-item {
    justify-content: space-between;
    align-items: center;
}

.image-preview-block {
    margin: 4px 0 14px;
    display: grid;
    gap: 8px;
}

.thumb-preview {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.thumb-preview.wide {
    width: 100%;
    max-width: 320px;
    height: 140px;
}

.check-grid {
    display: grid;
    gap: 10px;
    margin: 2px 0 18px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin: 0;
}

.check-item input {
    width: auto;
    margin: 0;
}

.log-item {
    align-items: flex-start;
}

.log-details {
    width: 100%;
}

.log-details pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8fbfe;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    margin: 10px 0 0;
    font-size: 12px;
}

.brand-logo-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
}

.admin-settings-grid {
    grid-template-columns: .8fr 1.2fr;
}

.settings-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}

.settings-empty {
    min-height: 96px;
    display: grid;
    place-items: center;
    background: #f8fbfe;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--muted);
    padding: 12px;
}

.settings-logo-preview {
    width: 180px;
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
}

.settings-favicon-preview {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
}

@media (max-width: 1200px) {
    .potengi-business-grid,
    .results-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .nav-wrap,
    .business-detail-grid,
    .dashboard-grid,
    .settings-preview-grid,
    .admin-settings-grid,
    .admin-edit-grid,
    .promo-banner-card {
        grid-template-columns: 1fr;
    }

    .nav-wrap {
        padding: 14px 0;
    }

    .site-nav,
    .header-actions {
        justify-content: flex-start;
    }

    .hero-copy h1 {
        font-size: clamp(40px, 11vw, 62px);
    }

    .hero-search-potengi {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }

    .hero-search-potengi input,
    .hero-search-potengi select,
    .hero-search-potengi .btn {
        border-radius: 4px;
        border: 0;
    }

    .category-slider-wrap {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 50px;
    }

    .slider-arrow {
        display: none;
    }

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

    .potengi-business-grid,
    .results-grid,
    .cards-grid,
    .mini-grid,
    .news-grid-potengi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-hero-wrap {
        background: linear-gradient(180deg, #3e3e3e, #151515 26%, #f4f4f4 26%);
    }
}

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

    .site-nav {
        gap: 6px;
    }

    .site-nav a {
        padding: 6px 0;
        font-size: 13px;
    }

    .btn-hero-action {
        width: 100%;
    }

    .hero-potengi {
        padding-top: 54px;
    }

    .hero-copy p {
        font-size: 16px;
    }

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

    .potengi-business-grid,
    .results-grid,
    .cards-grid,
    .mini-grid,
    .news-grid-potengi,
    .detail-boxes {
        grid-template-columns: 1fr;
    }

    .heart-badge {
        bottom: 118px;
    }

    .assistant-form {
        flex-direction: column;
    }
}

/* interactive homepage */
.hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(8px);
    margin-bottom: 18px;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-quick-search {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.hero-quick-search > span {
    width: 100%;
    font-size: 13px;
    color: rgba(255,255,255,.82);
}

.hero-chip {
    background: rgba(255,255,255,.11);
    color: #fff;
    border: 1px solid rgba(255,255,255,.24);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-chip:hover,
.hero-chip.is-active {
    background: #fff;
    color: #202020;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 860px;
    margin: 28px auto 0;
}

.hero-stat-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    padding: 18px 20px;
    text-align: center;
    box-shadow: 0 14px 28px rgba(0,0,0,.10);
}

.hero-stat-number {
    display: block;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
    margin-bottom: 8px;
    font-weight: 800;
}

.hero-stat-card span {
    color: rgba(255,255,255,.84);
    font-size: 14px;
}

.promo-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.showcase-tab-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.showcase-tab-btn {
    background: #fff;
    color: #202020;
    border: 1px solid #dcdcdc;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 700;
}

.showcase-tab-btn.is-active {
    background: #202020;
    color: #fff;
    border-color: #202020;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.showcase-panel {
    display: none;
}

.showcase-panel.is-active {
    display: block;
    animation: fadeSlideIn .35s ease;
}

.hover-lift {
    transition: transform .22s ease, box-shadow .22s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(0,0,0,.12);
}

.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}

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

.reveal-up.delay-1 { transition-delay: .1s; }
.reveal-up.delay-2 { transition-delay: .2s; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 768px) {
    .promo-banner-actions {
        flex-direction: column;
    }

    .showcase-tab-buttons {
        gap: 8px;
    }

    .showcase-tab-btn {
        width: calc(50% - 4px);
    }
}

@media (max-width: 640px) {
    .hero-quick-search {
        justify-content: flex-start;
    }

    .hero-chip {
        width: 100%;
    }

    .showcase-tab-btn {
        width: 100%;
    }
}

.category-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.category-slider::-webkit-scrollbar { display: none; }
.category-slider .category-tile { min-width: calc((100% - 56px) / 8); }

@media (max-width: 1024px) {
    .category-slider .category-tile { min-width: calc((100% - 24px) / 4); }
}

@media (max-width: 640px) {
    .category-slider .category-tile { min-width: calc((100% - 8px) / 2); }
}

/* interactive home v2 */
.top-showcase {
    background: #f1f1f1;
    padding: 18px 0 0;
}

.top-showcase-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px 26px 0 0;
    min-height: 280px;
    background: #fff;
    box-shadow: 0 24px 55px rgba(10, 18, 40, .14);
}

.top-showcase-track {
    position: relative;
    min-height: 280px;
}

.top-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(260px, 42%) 1fr;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
}

.top-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.top-slide-media {
    background: linear-gradient(135deg, #156fe2, #081a5b);
    min-height: 280px;
}

.top-slide-media img,
.top-slide-media .top-slide-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-slide-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    padding: 20px;
    text-align: center;
}

.top-slide-copy {
    padding: 34px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffffff, #f5f8fe);
}

.top-slide-kicker {
    display: inline-flex;
    align-self: flex-start;
    background: rgba(21, 111, 226, .1);
    color: #156fe2;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.top-slide-copy h2 {
    margin: 0;
    color: #10182f;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.05;
}

.top-slide-copy p {
    margin: 0;
    color: #58627b;
    font-size: 16px;
}

.top-slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.top-showcase-controls {
    position: absolute;
    right: 24px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.top-showcase-arrow,
.top-showcase-dot {
    border: 0;
    cursor: pointer;
}

.top-showcase-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #0b1b56;
    box-shadow: 0 10px 22px rgba(9, 18, 40, .12);
}

.top-showcase-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-showcase-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(21, 111, 226, .25);
}

.top-showcase-dot.is-active {
    background: #156fe2;
    transform: scale(1.15);
}

.search-input-wrap {
    position: relative;
}

.hero-search-potengi .search-input-wrap input {
    margin-bottom: 0;
}

.hero-suggestion-box {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(10, 18, 40, .18);
    border: 1px solid rgba(10, 18, 40, .08);
    overflow: hidden;
    z-index: 30;
}

.hero-suggestion-box.hidden {
    display: none;
}

.hero-suggestion-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    color: #17203b;
    text-decoration: none;
    border-bottom: 1px solid #edf1f7;
}

.hero-suggestion-item:last-child {
    border-bottom: 0;
}

.hero-suggestion-item:hover,
.hero-suggestion-item.is-active {
    background: #f4f8ff;
}

.hero-suggestion-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-suggestion-main strong {
    color: #10182f;
}

.hero-suggestion-main small,
.hero-suggestion-views {
    color: #6a738b;
    font-size: 12px;
}

.hero-trending-row {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,.88);
}

.hero-trending-row > span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .85;
}

.hero-trending-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.hero-trending-link:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.18);
}

.section-showcase-stream {
    padding-top: 52px;
    padding-bottom: 56px;
    background: linear-gradient(180deg, #081a5b 0%, #0d255f 100%);
}

.section-title-light span,
.section-title-light h2 {
    color: #fff;
}

.continuous-strip {
    overflow: hidden;
    padding: 8px 0 6px;
}

.continuous-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: stream-move 34s linear infinite;
    will-change: transform;
}

.continuous-strip:hover .continuous-track {
    animation-play-state: paused;
}

@keyframes stream-move {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.stream-card {
    width: 250px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,.96);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 18px 35px rgba(2, 8, 30, .2);
}

.stream-card-media {
    height: 158px;
    background: #d9e2f6;
}

.stream-card-media img,
.stream-card-media .potengi-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
    color: #11192f;
}

.stream-card-body span,
.stream-card-body small {
    color: #66708a;
}

.card-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 12px;
    color: #6a738b;
}

.card-stats-row-sm {
    margin-top: 0;
    margin-bottom: 14px;
    justify-content: flex-start;
}

.potengi-card .card-stats-row span:last-child {
    text-align: right;
}

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

    .top-slide-media {
        min-height: 180px;
    }

    .top-slide-copy {
        padding: 24px;
    }

    .hero-search-potengi {
        grid-template-columns: 1fr;
        gap: 12px;
        background: transparent;
        padding: 0;
    }

    .top-showcase-controls {
        left: 18px;
        right: 18px;
        justify-content: space-between;
        bottom: 18px;
    }
}

@media (max-width: 720px) {
    .top-showcase {
        padding-top: 10px;
    }

    .top-showcase-shell,
    .top-showcase-track,
    .top-slide,
    .top-slide-media {
        min-height: 0;
    }

    .top-slide-copy h2 {
        font-size: 28px;
    }

    .top-slide-actions {
        flex-direction: column;
    }

    .hero-trending-row {
        justify-content: flex-start;
    }

    .stream-card {
        width: 220px;
        min-width: 220px;
    }

    .card-stats-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


.hero-potengi-compact {
    padding: 54px 0 64px;
}

.search-page-subtitle {
    margin: 10px auto 0;
    max-width: 760px;
    color: #5f6f85;
    text-align: center;
    font-size: 16px;
}

.search-results-page {
    padding-top: 24px;
}


.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.event-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 43, 77, 0.10);
    border: 1px solid rgba(0, 76, 163, 0.08);
}

.event-card-media {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, rgba(0, 76, 163, 0.12), rgba(255, 116, 0, 0.18));
}

.event-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-date-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: #FF7400;
    color: #fff;
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(255, 116, 0, 0.25);
}

.event-card-body {
    padding: 20px;
    display: grid;
    gap: 12px;
}

.event-card-body h3 {
    margin: 0;
    color: #0b2143;
    font-size: 22px;
}

.event-business-line {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #004CA3;
    text-transform: uppercase;
}

.event-meta-list {
    display: grid;
    gap: 8px;
    color: #5f6f85;
    font-size: 14px;
}

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

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

@media (max-width: 900px) {
    .event-form-grid {
        grid-template-columns: 1fr;
    }
}


/* Restauro de menus, páginas, anunciantes e barra admin */
.admin-toolbar {background:#0f2f63;color:#fff;border-bottom:1px solid rgba(255,255,255,.12);}
.admin-toolbar-inner {display:flex;gap:10px;flex-wrap:wrap;padding:10px 0;align-items:center;}
.admin-toolbar-link {color:#fff;text-decoration:none;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.10);font-size:13px;font-weight:700;letter-spacing:.03em;}
.admin-toolbar-link:hover {background:rgba(255,255,255,.18);} 
.admin-block-fieldset {padding:16px;border:1px solid rgba(15,47,99,.10);border-radius:18px;background:#fff7ef;margin-bottom:16px;}
.admin-plugin-card {max-width:860px;}
.page-editor-block {padding:18px 0;border-bottom:1px solid rgba(15,47,99,.08);}
.page-editor-block:last-child {border-bottom:none;}
.page-hero {background:linear-gradient(135deg,#0f2f63 0%,#004ca3 100%);color:#fff;padding:72px 0 56px;}
.page-hero .hero-kicker {display:inline-flex;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.14);font-weight:700;letter-spacing:.08em;margin-bottom:14px;font-size:12px;}
.page-hero h1 {font-size:clamp(2rem,4vw,3rem);margin:0 0 14px;}
.page-hero p {max-width:760px;font-size:1.05rem;opacity:.95;margin:0;}
.content-page-card {background:#fff;border-radius:28px;padding:28px;box-shadow:0 18px 48px rgba(15,47,99,.10);}
.content-page.wysiwyg p {margin:0 0 14px;line-height:1.75;}
.content-page.wysiwyg ul {padding-left:20px;line-height:1.7;}
.advertisers-filter-card {background:#fff;border-radius:24px;padding:24px;box-shadow:0 18px 46px rgba(15,47,99,.08);margin-bottom:28px;}
.advertisers-filter-form {display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:16px;align-items:end;}
.advertisers-filter-form .form-field {display:flex;flex-direction:column;gap:8px;}
.advertisers-filter-form .form-field.grow {min-width:0;}
.advertisers-filter-form label {font-size:12px;font-weight:700;letter-spacing:.05em;color:#0f2f63;text-transform:uppercase;}
.advertisers-filter-form input,.advertisers-filter-form select {height:52px;border-radius:16px;border:1px solid rgba(15,47,99,.14);padding:0 16px;background:#fff;}
.advertisers-filter-form input:focus,.advertisers-filter-form select:focus {outline:none;border-color:#ff7400;box-shadow:0 0 0 3px rgba(255,116,0,.14);}
.advertisers-filter-actions {display:flex;gap:10px;align-items:center;}
.advertisers-results-head {margin-top:8px;}
@media (max-width: 980px){.advertisers-filter-form{grid-template-columns:1fr 1fr;}.advertisers-filter-actions{grid-column:1/-1;}}
@media (max-width: 680px){.advertisers-filter-form{grid-template-columns:1fr;}.advertisers-filter-actions{flex-direction:column;align-items:stretch;}}
