:root {
    --brand-dark: #0f2f3f;
    --brand-accent: #2dd4bf;
    --ink: #0b1f2a;
    --muted: #5b7283;
    --surface: #ffffff;
    --surface-soft: #f3f6f8;
    --stroke: #e2e8f0;
}

body {
    background: radial-gradient(circle at top, #f7fafc 0%, #eef4f6 45%, #e7eef2 100%);
    color: var(--ink);
    font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.navbar {
    background: var(--brand-dark) !important;
    border-bottom: 3px solid rgba(45, 212, 191, 0.35);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.4px;
}

.nav-link {
    color: #e2e8f0 !important;
}

.nav-link:hover {
    color: #ffffff !important;
}

.btn {
    border-radius: 0;
    font-weight: 600;
}

.btn-primary {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-primary:hover {
    background: #0b1625;
    border-color: #0b1625;
}

.btn-outline-primary {
    color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-outline-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.form-control,
.form-select {
    border-radius: 0;
    border-color: var(--stroke);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-dark);
    box-shadow: none;
}

.card {
    border-radius: 0.75rem;
    border: 1px solid var(--stroke);
}

.card-shadow {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.reveal-fade {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.48s ease-out, transform 0.48s ease-out;
    will-change: opacity, transform;
}

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

.section-title {
    font-weight: 700;
}

.hero {
    background: #ffffff;
    border: 1px solid var(--stroke);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 27, 45, 0.08);
    color: var(--brand-dark);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.ad-card-img {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.ad-card-placeholder {
    height: 200px;
    background: var(--surface-soft);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.ad-card-placeholder-logo {
    width: 76%;
    max-width: 260px;
    height: auto;
}

.badge {
    font-weight: 600;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.footer-brand {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.footer-brand:hover {
    color: #ffffff;
}

.footer-note {
    color: #dbe7f4;
    font-weight: 500;
    line-height: 1.45;
    max-width: 42ch;
}

.footer-heading {
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #b9ccdf;
}

.footer-contact {
    color: #f8fafc;
}

.footer-links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-link {
    display: inline-block;
    color: #f1f5f9;
    font-weight: 500;
    line-height: 1.5;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #d9ebff;
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.trust-strip {
    background: #f8fafc;
    border-bottom: 1px solid var(--stroke);
}

.trust-item {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.ad-header {
    background: #ffffff;
    border: 1px solid var(--stroke);
    border-radius: 1rem;
}

.ad-header .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
}

.ad-meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.price-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 100%;
    border: 1px solid var(--stroke);
    padding: 1rem;
}

.price-panel-free {
    background: #d1fae5;
    border-color: #a7f3d0;
}

.price-panel-contact {
    background: #e2e8f0;
    border-color: #cbd5f5;
}

.price-panel-fixed {
    background: #dbeafe;
    border-color: #bfdbfe;
}

.price-panel-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

@media (max-width: 767.98px) {
    .price-panel {
        padding: 1.5rem;
    }
    .price-panel-value {
        font-size: 1.6rem;
    }
    .price-panel-mobile {
        max-width: 320px;
        margin: 0 auto;
    }
}

.captcha,
.captcha img,
img.captcha {
    height: auto;
}

.captcha img,
img.captcha {
    display: block;
    width: 240px;
    max-width: 100%;
    border: 1px solid var(--stroke);
    background: #ffffff;
    padding: 0.35rem;
    margin-bottom: 0.75rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575.98px) {
    .captcha img,
    img.captcha {
        width: 100%;
    }
}

.ad-detail-img {
    max-height: 460px;
    width: 100%;
    object-fit: contain;
}

.ad-modal-img {
    max-height: 80vh;
    width: 100%;
    object-fit: contain;
}

.ad-edit-image-preview {
    height: 170px;
    object-fit: cover;
}

#adImageModal .btn-close {
    z-index: 1060;
    pointer-events: auto;
}

#adImageModal .carousel-control-prev,
#adImageModal .carousel-control-next {
    z-index: 1050;
}

.ad-carousel .carousel-control-prev-icon,
.ad-carousel .carousel-control-next-icon,
#adImageModal .carousel-control-prev-icon,
#adImageModal .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #111111;
    border-radius: 50%;
    filter: invert(1) drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}

.ad-carousel .carousel-control-prev,
.ad-carousel .carousel-control-next,
#adImageModal .carousel-control-prev,
#adImageModal .carousel-control-next {
    width: 4rem;
}

.message-card {
    white-space: pre-wrap;
}

.section-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
}

.trust-card {
    background: #ffffff;
    border: 1px solid var(--stroke);
    border-radius: 1rem;
}

.trust-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

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

.empty-state {
    background: #ffffff;
    border: 1px dashed var(--stroke);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--muted);
}

.table thead {
    background: #f8fafc;
}

.analytics-chart-wrap {
    position: relative;
    height: 260px;
}

.analytics-chart-modal-wrap {
    position: relative;
    height: 65vh;
    min-height: 380px;
}

.js-analytics-chart {
    cursor: pointer;
    transition: transform 0.14s ease-out, box-shadow 0.14s ease-out;
}

.js-analytics-chart:hover,
.js-analytics-chart:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.suggest-change-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    border-radius: 999px;
    padding: 0.7rem 1.05rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
    width: auto;
    transition: bottom 0.12s ease-out;
    will-change: bottom;
    background: #f97316;
    border-color: #ea580c;
    color: #ffffff;
}

.suggest-change-fab:hover,
.suggest-change-fab:focus {
    background: #ea580c;
    border-color: #c2410c;
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        gap: 0.35rem;
    }
    .hero {
        padding: 1.75rem;
    }
    .ad-detail-img {
        max-height: 360px;
    }
}

@media (max-width: 767.98px) {
    main.container {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }
    .hero {
        text-align: center;
    }
    .hero-badge {
        justify-content: center;
    }
    .hero .display-6 {
        font-size: 1.65rem;
    }
    .section-title,
    .section-subtitle {
        text-align: center;
    }
    .trust-card {
        text-align: center;
    }
    .ad-card-img,
    .ad-card-placeholder {
        height: 170px;
    }
    .ad-detail-img {
        max-height: 300px;
    }
    .ad-modal-img {
        max-height: 70vh;
    }
    .ad-carousel .carousel-control-prev,
    .ad-carousel .carousel-control-next,
    #adImageModal .carousel-control-prev,
    #adImageModal .carousel-control-next {
        width: 3rem;
    }
    .ad-carousel .carousel-control-prev-icon,
    .ad-carousel .carousel-control-next-icon,
    #adImageModal .carousel-control-prev-icon,
    #adImageModal .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
    .list-group-item .text-muted.small {
        display: block;
        margin-top: 0.2rem;
    }
    .empty-state {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero {
        padding: 1.4rem;
    }
    .ad-card-img,
    .ad-card-placeholder {
        height: 150px;
    }
    .ad-detail-img {
        max-height: 260px;
    }
    .btn {
        width: 100%;
    }
    .btn.btn-sm:not(.w-100) {
        width: auto;
    }
    .suggest-change-fab {
        right: 0.8rem;
        bottom: 0.8rem;
        width: auto !important;
    }
    .footer-links-grid {
        gap: 0.45rem;
    }
}
