:root {
    --bg: #f7f8fb;
    --bg-soft: #ffffff;
    --ink: #192330;
    --ink-muted: #6d7b8f;
    --line: #e5ebf4;
    --brand: #0154ac;
    --brand-2: #e82a00;
    --good: #1fbf75;
    --warn: #f59f0a;
    --bad: #ef476f;
    --chip: #eef3fb;
}

body {
    font-family: "Plus Jakarta Sans", "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(1100px 420px at -5% -20%, rgba(1, 84, 172, 0.14) 0%, transparent 60%),
        radial-gradient(900px 420px at 110% -20%, rgba(232, 42, 0, 0.12) 0%, transparent 62%),
        var(--bg);
    color: var(--ink);
}

#app {
    background: transparent !important;
}

.container {
    max-width: 1240px;
}

.navbar {
    border: 0 !important;
    border-bottom: 1px solid #d9e1ec !important;
    background: #fff !important;
    box-shadow: none;
}

.navbar-brand {
    font-weight: 700 !important;
    letter-spacing: 0;
    margin-right: 1.1rem;
}

.site-logo {
    width: 132px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.nav-link {
    color: #33485f !important;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 0;
    padding: 0.38rem 0.58rem !important;
    line-height: 1.2;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: #0154ac !important;
    background: transparent;
}

.panel-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.58rem 1rem !important;
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, #1668dc, #2aa8f5);
    box-shadow: 0 10px 22px rgba(22, 104, 220, 0.35);
    font-weight: 800;
}

.panel-cta-link:hover,
.panel-cta-link:focus {
    color: #fff !important;
    background: linear-gradient(135deg, #0d5fcd, #1798ec);
    transform: translateY(-1px);
}

.card {
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(20, 50, 80, 0.06);
}

.card .card-body {
    padding: 1.1rem 1.2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

.changelog-hero {
    border: 1px solid #dfe8f3;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    background:
        radial-gradient(540px 220px at 0% -20%, rgba(18, 106, 208, 0.11), transparent 62%),
        radial-gradient(480px 210px at 100% 0%, rgba(181, 55, 107, 0.1), transparent 68%),
        #fbfdff;
}

.changelog-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 800;
    color: #4f6f92;
}

.changelog-list {
    display: grid;
    gap: 0.8rem;
}

.changelog-item {
    border: 1px solid #e1e9f3;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #fff;
}

.changelog-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.changelog-head h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: #183453;
}

.changelog-item p {
    color: #435d7b;
    margin-bottom: 0.45rem;
}

.changelog-item p:last-child {
    margin-bottom: 0;
}

.filter-grid .form-label {
    color: var(--ink-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.offers-command-deck {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 1rem;
    background:
        radial-gradient(680px 220px at 0% -10%, rgba(26, 122, 238, 0.2), transparent 62%),
        radial-gradient(520px 240px at 100% 0%, rgba(232, 42, 0, 0.12), transparent 66%),
        linear-gradient(145deg, #f8fcff 0%, #f5f8ff 50%, #f9fbff 100%);
    box-shadow: 0 20px 34px rgba(27, 56, 92, 0.08);
}

.offers-command-grid {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    gap: 0.9rem;
    align-items: stretch;
}

.offers-command-form {
    display: grid;
    gap: 0.9rem;
}

.offers-command-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.offers-type-switch {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 0.22rem;
    box-shadow: 0 8px 18px rgba(20, 50, 80, 0.09);
}

.offers-type-btn {
    border: 0;
    background: transparent;
    color: #4d6682;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
}

.offers-type-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #0f60c9, #2c8dea);
}

.offers-deck-count {
    color: #4c6580;
    font-size: 0.84rem;
    font-weight: 600;
}

.offers-command-lanes {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 1fr 1fr;
}

.offers-lane {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    padding: 0.72rem 0.8rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.offers-lane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.offers-lane-head span {
    color: #5b7592;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.offers-lane-head strong {
    color: #163554;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.offers-slider {
    margin: 0.2rem 0 0.1rem;
}

.offers-slider.noUi-target {
    height: 8px;
    border: 0;
    box-shadow: none;
    background: #d4e2f3;
    border-radius: 999px;
}

.offers-slider .noUi-connect {
    background: linear-gradient(90deg, #0e5ec5 0%, #2f88e8 100%);
}

.offers-slider .noUi-handle {
    width: 18px !important;
    height: 18px !important;
    right: -9px !important;
    top: -5px !important;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #0d57b8;
    box-shadow: 0 6px 14px rgba(10, 69, 143, 0.3);
}

.offers-slider .noUi-handle::before,
.offers-slider .noUi-handle::after {
    display: none;
}

.offers-command-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.offers-presets {
    display: inline-flex;
    gap: 0.34rem;
    flex-wrap: wrap;
}

.offers-preset-btn {
    border: 0;
    border-radius: 999px;
    background: rgba(16, 58, 109, 0.08);
    color: #2d4f73;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.34rem 0.6rem;
}

.offers-reset-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
}

.offers-reset-sort-link:hover,
.offers-reset-sort-link:focus {
    color: #2d4f73;
    text-decoration: none;
}

.offers-command-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.offers-clear-link {
    color: #4f6d8f;
    text-decoration: none;
    font-weight: 700;
}

.newsletter-highlight {
    border: 1px solid #dbe9fb !important;
    background:
        radial-gradient(560px 140px at 0% 0%, rgba(68, 151, 255, 0.16), transparent 66%),
        radial-gradient(460px 180px at 100% 100%, rgba(55, 214, 161, 0.14), transparent 72%),
        #f8fcff;
}

.offers-chip-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.offers-newsletter-panel {
    border-radius: 14px;
    padding: 0.76rem;
    background:
        radial-gradient(380px 130px at 100% -10%, rgba(39, 130, 231, 0.14), transparent 60%),
        linear-gradient(130deg, rgba(1, 84, 172, 0.08), rgba(232, 42, 0, 0.06)),
        rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 24px rgba(25, 56, 92, 0.1);
}

.offers-newsletter-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #486988;
}

.offers-newsletter-title {
    color: #14304e;
    font-size: 0.94rem;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.newsletter-form-feedback {
    min-height: 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.newsletter-form-feedback.is-success {
    color: #1d8b5f;
}

.newsletter-form-feedback.is-error {
    color: #be2c4c;
}

.offers-newsletter-panel .form-control {
    min-height: 38px;
    border: 0;
    box-shadow: inset 0 0 0 1px #cad8eb;
}

@media (max-width: 991.98px) {
    .offers-command-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .offers-command-deck {
        padding: 0.75rem;
    }

    .offers-command-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .offers-command-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .offers-command-actions {
        width: 100%;
    }
}

.form-label {
    color: #445a74;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.42rem;
}

.form-control,
.form-select {
    border: 1px solid #b8c4d4;
    border-radius: 12px;
    padding: 0.58rem 0.74rem;
    background: #fff;
    color: var(--ink);
}

.form-control:focus,
.form-select:focus {
    border-color: #7f97b5;
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 144, 0.14);
}

.form-check-input {
    border-color: #9fb0c6;
}

.form-check-input:focus {
    border-color: #7f97b5;
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 144, 0.12);
}

.auth-shell {
    padding: 1.2rem 0 1.8rem;
}

.auth-wrap {
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid #d6e0ee;
    background: #fff;
    box-shadow: 0 18px 34px rgba(20, 44, 70, 0.09);
}

.auth-aside {
    height: 100%;
    padding: 2rem 1.6rem;
    background: linear-gradient(170deg, #0e4d98 0%, #0b3f7e 62%, #0a3368 100%);
    color: #f4f8ff;
}

.auth-aside-register {
    background: linear-gradient(170deg, #0d4b95 0%, #114f96 52%, #0154ac 100%);
}

.auth-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.auth-title {
    font-size: 1.95rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.auth-text {
    color: rgba(239, 246, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-points {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 0.46rem;
}

.auth-points li {
    font-size: 0.88rem;
    color: #d9e8fc;
}

.auth-points li::before {
    content: ">";
    color: #e82a00;
    margin-right: 0.45rem;
    font-weight: 800;
}

.auth-panel {
    padding: 1.9rem 1.7rem;
}

.auth-panel-head h2 {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin: 0;
}

.auth-form .form-control {
    border-radius: 0;
    border-color: #b7c5d8;
    background: #fcfdff;
}

.auth-form .form-control:focus {
    border-color: #0154ac;
    box-shadow: 0 0 0 0.18rem rgba(1, 84, 172, 0.14);
}

.auth-submit {
    border-radius: 0;
    padding: 0.55rem 0.82rem;
    font-weight: 700;
}

.auth-google {
    border-radius: 0;
    border-color: #c1ccdb;
    color: #1a3c60;
    font-weight: 700;
    padding: 0.55rem 0.82rem;
}

.auth-google:hover,
.auth-google:focus {
    border-color: #9eb1c8;
    color: #102e4f;
    background: #f5f9ff;
}

.auth-link {
    color: #0154ac;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.86rem;
}

.auth-link:hover,
.auth-link:focus {
    color: #e82a00;
}

.offer-form .modal-header,
.offer-form .modal-body,
.offer-form .modal-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.offer-form .modal-body {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.panel-shell {
    max-width: 1600px;
}

.panel-sidebar-card {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: calc(100vh - 7rem);
    border-radius: 14px;
    background: #1d232a;
    border: 1px solid #11161d;
    box-shadow: 0 14px 28px rgba(13, 18, 24, 0.22);
    padding: 1rem 0.85rem;
}

.panel-sidebar-top {
    border-bottom: 1px solid #2a313a;
    padding: 0.15rem 0.45rem 0.85rem;
}

.panel-sidebar-title {
    color: #f0f4f8;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.panel-sidebar-subtitle {
    color: #9badbf;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 0.18rem;
}

.panel-nav {
    display: grid;
    gap: 0.2rem;
}

.panel-nav-link {
    color: #c0ccda;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.58rem 0.62rem;
    border: 1px solid transparent;
    transition: all 0.16s ease;
}

.panel-nav-link:hover {
    color: #f3f7fb;
    background: #2c333d;
    border-color: #3a434f;
}

.panel-nav-link.active {
    color: #f8fbff;
    background: #2271b1;
    border-color: #2a78b7;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.panel-nav-sub {
    display: grid;
    gap: 0.2rem;
    margin-left: 0.65rem;
    padding-left: 0.45rem;
    border-left: 1px solid #2f3843;
}

.panel-nav-link-sub {
    font-size: 0.82rem;
    color: #aebccf;
    padding-top: 0.48rem;
    padding-bottom: 0.48rem;
}

.panel-sidebar-user {
    margin-top: auto;
    border-top: 1px solid #2a313a;
    padding: 0.85rem 0.45rem 0.05rem;
}

.panel-user-name {
    color: #edf2f7;
    font-size: 0.86rem;
    font-weight: 700;
}

.panel-user-role {
    color: #98aabb;
    font-size: 0.74rem;
    font-weight: 600;
    margin-top: 0.1rem;
}

.panel-logout-form {
    padding: 0 0.45rem 0.1rem;
}

.deal-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.deal-details-section .card-body {
    background: #eef3fb;
}

.deal-detail-card {
    border: 1px solid #dbe5f1;
    border-radius: 12px;
    background: #f7faff;
    padding: 0.65rem 0.72rem;
}

.deal-detail-card-wide {
    grid-column: span 3;
}

.deal-detail-label {
    color: #71839b;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.25rem;
}

.deal-detail-value {
    color: #1d344f;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.deal-long-grid {
    display: grid;
    gap: 0.6rem;
}

.deal-long-card {
    border: 1px solid #dbe5f1;
    border-radius: 12px;
    background: #f9fbff;
    padding: 0.72rem;
}

.article-popover-trigger {
    color: #0154ac !important;
    text-decoration: none !important;
    line-height: 1;
}

.article-popover-trigger:hover,
.article-popover-trigger:focus {
    color: #e82a00 !important;
}

.article-offer-popover {
    --bs-popover-max-width: 360px;
    --bs-popover-border-color: #d5dde8;
    --bs-popover-body-padding-x: 0.8rem;
    --bs-popover-body-padding-y: 0.75rem;
    --bs-popover-box-shadow: 0 14px 28px rgba(26, 40, 58, 0.2);
}

.article-offer-popover .popover-body {
    color: #24384e;
}

.article-popover-content {
    display: grid;
    gap: 0.55rem;
}

.article-popover-block {
    border: 1px solid #dbe3ef;
    background: #f8fbff;
    padding: 0.58rem 0.62rem;
}

.article-popover-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.36rem;
    color: #1f3550;
}

.article-popover-line {
    font-size: 0.82rem;
    line-height: 1.35;
    color: #445b75;
}

.article-popover-check {
    color: #1fbf75;
    font-weight: 800;
    margin-right: 0.1rem;
}

@media (max-width: 991.98px) {
    .deal-details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .deal-detail-card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 575.98px) {
    .deal-details-grid {
        grid-template-columns: 1fr;
    }

    .deal-detail-card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 991.98px) {
    .panel-sidebar-card {
        position: static;
        min-height: auto;
    }
}

.btn {
    border-radius: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-width: 1px;
}

.btn-primary {
    border: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 8px 18px rgba(30, 125, 242, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #01458d, #ca2400);
}

.btn-outline-secondary,
.btn-outline-primary {
    border-color: #ced9e8;
    color: #33506f;
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover {
    color: #12253c;
    border-color: #b5c7dd;
    background: #f0f6ff;
}

.market-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.market-table thead th {
    color: #62758d;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line);
    background: #f9fbff;
    padding: 0.78rem 0.9rem;
}

.table-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.table-sort-link:hover,
.table-sort-link:focus {
    color: #264c74;
}

.table-sort-link i {
    font-size: 0.78rem;
    opacity: 0.8;
}

.offers-infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #5f7691;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.9rem 0 0.2rem;
}

.market-table tbody td {
    border-bottom: 1px solid #edf2f8;
    padding: 0.95rem 0.9rem;
    vertical-align: middle;
}

.market-table tbody tr:hover {
    background: #f9fcff;
}

.market-table tbody tr.offer-row-promo td {
    background: #fbf5f9;
}

.market-table tbody tr.offer-row-promo:hover {
    background:
        linear-gradient(90deg, rgba(242, 217, 230, 0.8) 0%, rgba(239, 221, 246, 0.55) 45%, rgba(251, 247, 252, 0.98) 100%);
}

.host-cell {
    font-weight: 700;
    color: #223147;
}

.site-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.site-favicon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: 0 0 16px;
    border-radius: 2px;
}

.kpi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    border-radius: 999px;
    background: #edf4ff;
    color: #2e5d94;
    font-weight: 700;
    padding: 0.24rem 0.62rem;
}

.badge-soft {
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.34rem 0.64rem;
}

.badge-type-link {
    background: #e9f5ff;
    color: #0154ac;
}

.badge-type-article {
    background: #ebfff5;
    color: #b92500;
}

.badge-status-approved {
    background: #e8f9ef;
    color: #1e8e5d;
}

.badge-status-pending_review {
    background: #fff6df;
    color: #9b6a06;
}

.badge-status-rejected {
    background: #ffe9ee;
    color: #b63b5a;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--chip);
    color: #4a5d77;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #f7e3ee;
    color: #92375b;
    margin-right: 0.4rem;
}

.promotion-panel {
    border-color: #ecd8e7;
    background: linear-gradient(145deg, #fffafc 0%, #fff 60%);
}

.table-action {
    white-space: nowrap;
}

.alert {
    border: 0;
    border-radius: 12px;
}

.pagination {
    gap: 0.35rem;
}

.page-link {
    border: 1px solid var(--line);
    color: #446486;
    border-radius: 9px !important;
    padding: 0.42rem 0.72rem;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-color: transparent;
}

.landing-hero {
    background: linear-gradient(140deg, #ffffff 0%, #f6faff 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 14px 30px rgba(27, 56, 92, 0.08);
}

.glass-panel {
    border: 1px solid #dbe8f7;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1rem;
}

.metric-list {
    display: grid;
    gap: 0.55rem;
}

.metric-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e8eff8;
    border-radius: 12px;
    background: #fff;
    padding: 0.52rem 0.65rem;
}

.metric-label {
    color: #61758f;
    font-size: 0.82rem;
    font-weight: 600;
}

.metric-value {
    color: #1d3958;
    font-size: 0.9rem;
    font-weight: 800;
}

.step-card {
    border-radius: 16px;
}

.step-index {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #2e5d94;
    background: #e9f2ff;
}

.mini-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.mini-kpi-card {
    border: 1px solid #e6edf7;
    border-radius: 14px;
    background: #fbfdff;
    padding: 0.72rem;
}

.mini-kpi-title {
    color: #70829a;
    font-size: 0.76rem;
    font-weight: 600;
}

.mini-kpi-value {
    color: #1f3652;
    font-size: 0.95rem;
    font-weight: 800;
}

.cta-strip {
    border: 1px solid #dce8f8;
    border-radius: 18px;
    background: linear-gradient(120deg, #f9fcff 0%, #f4fff8 100%);
    padding: 1.2rem 1.3rem;
}

.landing-v2 {
    padding-top: 0.4rem;
}

.lp-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2.4rem 0 2.1rem;
    background: #ecf4ff;
    border-bottom: 1px solid #dbe6f5;
}
 
.lp-hero-inner {
    width: 100%;
    padding-left: clamp(16px, 4vw, 56px);
    padding-right: clamp(16px, 4vw, 56px);
}
 

.lp-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 800;
    color: #4f6f92;
}

.lp-title {
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    max-width: 15ch;
    color: #11263e;
    font-weight: 800;
}

.lp-subtitle {
    color: #4e6784;
    font-size: 1rem;
    max-width: 56ch;
}

.lp-btn {
    padding: 0.5rem 0.82rem;
    font-weight: 700;
}

.lp-highlights {
    display: grid;
    gap: 0.7rem;
}

.lp-highlight {
    border: 1px solid #d9e3f3;
    background: rgba(255, 255, 255, 0.86);
    padding: 0.8rem 0.9rem;
    box-shadow: 0 10px 18px rgba(31, 68, 107, 0.08);
}

.lp-highlight strong {
    display: block;
    font-size: 0.94rem;
    color: #173b64;
}

.lp-highlight span {
    display: block;
    margin-top: 0.22rem;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #5b7290;
}

.v2-hero-full {
    width: 100%;
    padding: 2.4rem 0 2rem;
    background:
        radial-gradient(900px 360px at 0% -10%, rgba(88, 174, 255, 0.2), transparent 72%),
        radial-gradient(900px 360px at 100% -10%, rgba(74, 216, 170, 0.2), transparent 72%),
        linear-gradient(180deg, #fbfdff 0%, transparent 100%);
}

.v2-hero {
    position: relative;
    overflow: hidden;
    padding: 0.3rem 0;
}

.v2-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.v2-orb-a {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(82, 164, 255, 0.24), transparent 70%);
    right: -70px;
    top: -90px;
}

.v2-orb-b {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(62, 214, 171, 0.22), transparent 70%);
    left: -90px;
    bottom: -140px;
}

.v2-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #5f7896;
    font-weight: 700;
}

.v2-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f2034;
    font-weight: 800;
    max-width: 14ch;
}

.v2-lead {
    color: #5f7591;
    font-size: 1.05rem;
    max-width: 56ch;
}

.v2-graphic {
    position: relative;
    min-height: 360px;
}

.v2-shape {
    position: absolute;
    border-radius: 28px;
    border: 1px solid #d5e6fb;
    box-shadow: 0 14px 30px rgba(30, 86, 144, 0.08);
}

.v2-shape-a {
    right: 22px;
    top: 18px;
    width: 300px;
    height: 170px;
    background: linear-gradient(140deg, #ffffff 0%, #eff7ff 100%);
    transform: rotate(8deg);
}

.v2-shape-b {
    left: 12px;
    top: 108px;
    width: 260px;
    height: 150px;
    background: linear-gradient(140deg, #ffffff 0%, #effff8 100%);
    transform: rotate(-7deg);
}

.v2-shape-c {
    right: 46px;
    bottom: 14px;
    width: 240px;
    height: 130px;
    background: linear-gradient(140deg, #ffffff 0%, #f5f9ff 100%);
    transform: rotate(-3deg);
}

.v2-float {
    position: absolute;
    border: 1px solid #d8e7f8;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    box-shadow: 0 12px 24px rgba(24, 56, 89, 0.1);
    padding: 0.6rem 0.7rem;
    max-width: 220px;
}

.v2-float strong {
    display: block;
    font-size: 0.9rem;
    color: #1d3b5c;
}

.v2-float span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: #6a829c;
    line-height: 1.25;
}

.v2-float-1 {
    left: 12px;
    top: 18px;
}

.v2-float-2 {
    right: 0;
    top: 144px;
}

.v2-float-3 {
    left: 84px;
    bottom: 18px;
}

.v2-shot {
    border: 1px solid #d9e7f7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(24, 56, 89, 0.08);
    padding: 0.55rem;
}

.v2-shot img {
    display: block;
}

.v2-shot-caption {
    color: #667f99;
    font-size: 0.82rem;
    margin: 0.5rem 0.2rem 0.15rem;
}

.v2-info-panel {
    border: 1px solid #d9e7f7;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    padding: 0.9rem 0.95rem;
    box-shadow: 0 12px 24px rgba(24, 56, 89, 0.07);
}

.v2-info-panel h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #1e3958;
}

.v2-info-panel ul {
    margin: 0;
    padding-left: 1rem;
    color: #667f98;
    font-size: 0.88rem;
}

.v2-info-panel li + li {
    margin-top: 0.3rem;
}

.v2-marquee {
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid #dce8f7;
    background: #fff;
}

.v2-track {
    display: flex;
    gap: 1.6rem;
    white-space: nowrap;
    padding: 0.62rem 1rem;
    color: #4a6280;
    font-weight: 700;
    font-size: 0.84rem;
}

.v2-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.v2-timeline::before {
    display: none;
}

.v2-step {
    position: relative;
    padding: 2.2rem 0.9rem 0.9rem;
}

.v2-step-dot {
    position: absolute;
    top: 0;
    left: 0.9rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #22558b;
    background: #e4f0ff;
    border: 1px solid #c5dbfb;
}

.v2-step h3 {
    font-size: 1rem;
    font-weight: 750;
    margin-bottom: 0.4rem;
}

.v2-step p {
    margin: 0;
    color: #677d97;
    font-size: 0.9rem;
}

.v2-feature {
    border-radius: 20px;
    padding: 1.3rem 1.2rem;
    border: 1px solid #dae8f8;
}

.v2-feature h3 {
    font-size: 1.35rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.v2-feature p {
    color: #587089;
    margin-bottom: 0.85rem;
}

.v2-feature-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #6484a7;
    margin-bottom: 0.4rem;
}

.v2-feature-primary {
    background: linear-gradient(135deg, #0154ac 0%, #e82a00 100%);
    color: #fff;
    border: 0;
    box-shadow: 0 16px 28px rgba(24, 103, 219, 0.24);
}

.v2-feature-primary .v2-feature-kicker,
.v2-feature-primary p {
    color: rgba(255, 255, 255, 0.84);
}

.v2-feature-soft {
    background: linear-gradient(140deg, #ffffff 0%, #f3fbff 100%);
}

.v2-final-cta {
    border: 1px solid #d8e7f8;
    border-radius: 22px;
    padding: 1.35rem 1.3rem;
    background:
        radial-gradient(500px 220px at 0% 0%, rgba(106, 168, 255, 0.16), transparent 72%),
        radial-gradient(500px 220px at 100% 100%, rgba(83, 214, 169, 0.16), transparent 72%),
        #fff;
}

#cta {
    padding: 0.4rem 0 2.2rem;
}

.landing-cta-card {
    border: 1px solid #e6effa;
    border-radius: 22px;
    padding: 1.4rem 1.3rem;
    background:#ecf4ff;
    box-shadow: 0 12px 26px rgba(16, 52, 88, 0.08);
}

.landing-cta-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #5f7691;
}

.landing-cta-title {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #0f2a46;
}

.landing-cta-text {
    color: #4f6782;
    max-width: 60ch;
}

.landing-cta-points {
    display: grid;
    gap: 0.45rem;
}

.landing-cta-points span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #244766;
    font-size: 0.9rem;
    font-weight: 600;
}

.landing-cta-points span::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0154ac;
    box-shadow: 0 0 0 3px rgba(1, 84, 172, 0.15);
}

.landing-cta-stats {
    display: grid;
    gap: 0.65rem;
}

.landing-cta-stat {
    border: 1px solid #d6e5f7;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.8rem 0.9rem;
}

.landing-cta-stat strong {
    display: block;
    color: #163a5f;
    font-size: 0.93rem;
}

.landing-cta-stat span {
    display: block;
    margin-top: 0.18rem;
    color: #607994;
    font-size: 0.83rem;
}

.site-footer {
    border-top: 1px solid #dce8f8;
    background:
        radial-gradient(700px 260px at 0% 120%, rgba(88, 164, 255, 0.12), transparent 70%),
        radial-gradient(700px 260px at 100% 120%, rgba(68, 205, 157, 0.12), transparent 70%),
        #fff;
}

.footer-title {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6a829d;
    margin-bottom: 0.55rem;
}

.footer-links li {
    margin-bottom: 0.35rem;
}

.footer-links a,
.footer-links span {
    color: #385774;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: #0154ac;
}

.footer-bottom {
    border-top: 1px solid #e6eef9;
    color: #5f7691;
}

/* Flat brand style: main #0154ac, second #e82a00 only on hover */
body {
    background: var(--bg);
}

.panel-cta-link,
.btn-primary,
.page-item.active .page-link,
.v2-feature-primary,
.panel-nav-link.active {
    background: #0154ac;
    border-color: #0154ac;
    color: #fff !important;
}

.panel-cta-link:hover,
.panel-cta-link:focus,
.btn-primary:hover,
.btn-primary:focus,
.panel-nav-link.active:hover,
.page-item.active .page-link:hover,
.footer-links a:hover {
    background: #e82a00;
    border-color: #e82a00;
    color: #fff !important;
}

.panel-cta-link {
    padding: 0.42rem 0.62rem !important;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.34rem;
}

.panel-cta-link svg {
    width: 14px;
    height: 14px;
}

.navbar .dropdown-menu {
    border: 1px solid #d7e1ee;
    border-radius: 0;
    padding: 0.35rem 0;
    box-shadow: 0 8px 20px rgba(16, 32, 55, 0.08);
    min-width: 220px;
}

.navbar .dropdown-item {
    font-size: 0.8rem;
    font-weight: 600;
    color: #304960;
    padding: 0.36rem 0.75rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: #0154ac;
    background: #f3f7fc;
}

.navbar .dropdown-divider {
    margin: 0.3rem 0;
    border-top-color: #e0e8f2;
}

.nav-user-label {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #2f465c;
    border: 1px solid #d8e2ee;
    padding: 0.2rem 0.42rem;
    border-radius: 0;
    line-height: 1.2;
}

.btn-primary {
    box-shadow: 0 8px 18px rgba(1, 84, 172, 0.25);
}

.btn-outline-primary,
.btn-outline-secondary,
.page-link {
    color: #0154ac;
    border-color: rgba(1, 84, 172, 0.28);
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover {
    color: #e82a00;
    border-color: rgba(232, 42, 0, 0.4);
    background: rgba(232, 42, 0, 0.08);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    background: rgba(1, 84, 172, 0.1);
    color: #0154ac !important;
}

.kpi,
.step-index,
.v2-step-dot,
.badge-type-link,
.badge-status-approved {
    background: rgba(1, 84, 172, 0.12);
    color: #0154ac;
    border-color: rgba(1, 84, 172, 0.25);
}

.badge-type-article,
.badge-status-pending_review {
    background: rgba(232, 42, 0, 0.1);
    color: #b92500;
}

.v2-title,
.v2-info-panel h4,
.host-cell,
.v2-feature-kicker {
    color: #0154ac;
}

.v2-track,
.tag-pill {
    color: #2d4f72;
}

.v2-timeline::before { display: none; }

.v2-orb-a {
    background: rgba(1, 84, 172, 0.14);
}

.v2-orb-b {
    background: rgba(232, 42, 0, 0.12);
}

.landing-hero,
.glass-panel,
.cta-strip,
.v2-hero-full,
.v2-shape-a,
.v2-shape-b,
.v2-shape-c,
.v2-feature-soft,
.v2-info-panel,
.v2-final-cta,
.site-footer {
    background: #fff;
}

@media (max-width: 992px) {
    .auth-shell {
        padding-top: 0.7rem;
    }

    .auth-aside {
        padding: 1.35rem 1.1rem;
    }

    .auth-panel {
        padding: 1.3rem 1.1rem;
    }

    .market-table thead {
        display: none;
    }

    .market-table tbody td {
        display: block;
        border-bottom: 0;
        padding: 0.4rem 0.9rem;
    }

    .market-table tbody tr {
        display: block;
        border-bottom: 1px solid var(--line);
        padding: 0.8rem 0;
    }

    .landing-hero {
        padding: 1.2rem;
    }

    .mini-kpi-grid {
        grid-template-columns: 1fr;
    }

    .v2-hero {
        padding: 0.2rem 0;
    }

    .lp-hero {
        padding-top: 1.6rem;
        padding-bottom: 1.4rem;
    }

    .lp-title {
        max-width: 100%;
    }

    .lp-highlights {
        margin-top: 0.25rem;
    }

    .v2-title {
        max-width: 100%;
    }

    .v2-timeline {
        grid-template-columns: 1fr;
    }

    .v2-timeline::before {
        display: none;
    }

    .v2-hero-full {
        padding-top: 1.4rem;
    }

    .v2-graphic {
        min-height: 300px;
        margin-top: 0.4rem;
    }

    .v2-float {
        max-width: 190px;
    }

    .v2-float-2 {
        right: 8px;
        top: 120px;
    }

    #cta {
        padding-bottom: 1.6rem;
    }

    .landing-cta-card {
        padding: 1.05rem 0.95rem;
    }

    .landing-cta-title {
        max-width: 100%;
    }
}


.small-line img {
    width: 55px;
}

.small-line {
    font-size: 14px;
    color: #7c7b7b;
}
/* Strict compact navigation override */
.navbar,
.navbar * {
    border-radius: 0 !important;
}

.navbar {
    border-bottom: 1px solid #cfd9e6 !important;
    background: #fff !important;
    box-shadow: none !important;
    min-height: 58px;
}

.navbar-brand {
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    margin-right: 0.8rem !important;
}

.navbar .site-logo {
    width: 205px;
    height: 40px;
}

.navbar .nav-link {
    font-size: 15px !important;
    font-weight: normal;
    line-height: 1.1 !important;
    color: #24384e !important;
    padding: 0.28rem 0.42rem !important;
    background: transparent !important;
    border: 0 !important; 
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: #0154ac !important;
    background: transparent !important;
}

.navbar .nav-item + .nav-item {
    margin-left: 0.15rem;
}

.navbar .panel-cta-link {
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 0.28rem 0.5rem !important;
    color: #0154ac !important;
    background: transparent !important;
    border: 1px solid #0154ac !important;
    box-shadow: none !important;
}

.navbar .panel-cta-link:hover,
.navbar .panel-cta-link:focus {
    color: #e82a00 !important;
    border-color: #e82a00 !important;
    background: transparent !important;
}

.navbar .dropdown-menu {
    border: 1px solid #cfd9e6 !important;
    box-shadow: none !important;
    min-width: 230px;
}

.navbar .dropdown-item {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #23384f !important;
    padding: 0.34rem 0.62rem !important;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: #0154ac !important;
    background: #f5f8fc !important;
}

.navbar .dropdown-divider {
    margin: 0.22rem 0 !important;
}

.navbar .nav-avatar {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border: 1px solid #cfd9e6;
    display: inline-block;
}

.navbar .nav-user-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #22374c !important;
    border: 1px solid #d8e2ee !important;
    padding: 0.16rem 0.38rem !important;
    line-height: 1.1 !important;
    background: #eef3fb !important;
}

.navbar .logout-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 0.2rem !important;
}

.navbar .notification-nav-item {
    display: flex;
    align-items: center;
}

.navbar .notification-bell-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0 !important;
}

.navbar .notification-bell-link .bi-bell {
    font-size: 18px;
    line-height: 1;
}

.navbar .notification-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #d90429;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.navbar .notification-dropdown {
    min-width: 360px;
    max-width: 360px;
    padding: 0;
}

.navbar .notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #e1e8f1;
}

.navbar .notification-read-all {
    font-size: 12px;
    color: #0154ac;
    text-decoration: none;
}

.navbar .notification-read-all:hover,
.navbar .notification-read-all:focus {
    color: #013f80;
    text-decoration: underline;
}

.navbar .notification-item {
    display: block;
    white-space: normal;
    border-bottom: 1px solid #eef2f7;
    padding: 10px 12px !important;
}

.navbar .notification-item.is-unread {
    background: #f4f8ff !important;
}

.navbar .notification-item-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #20384f;
}

.navbar .notification-item-message {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #4f6278;
}

.navbar .notification-item-time {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #6f8094;
}

.navbar .notification-empty {
    padding: 12px;
    font-size: 13px;
    color: #6f8094;
}

.agency-upload-preview {
    border: 1px solid #d7e2ef;
    border-radius: 12px;
    padding: 0.65rem;
    background: #f7fafe;
}

.agency-preview-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #d8e4f0;
}

.agency-preview-cover {
    width: 100%;
    max-height: 190px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #d8e4f0;
}

.agency-card {
    border: 1px solid #d7e2ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(20, 50, 80, 0.08);
    overflow: hidden;
}

.agency-card-cover {
    height: 130px;
    background:
        linear-gradient(130deg, rgba(1, 84, 172, 0.35), rgba(232, 42, 0, 0.28)),
        #eff5fc;
    background-size: cover;
    background-position: center;
}

.agency-card-body {
    padding: 0.95rem;
}

.agency-card-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: -35px;
    margin-bottom: 0.55rem;
}

.agency-card-logo {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    border: 3px solid #fff; 
    box-shadow: 0 8px 20px rgba(21, 60, 99, 0.18);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.agency-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agency-card-title {
    font-size: 1rem;
    margin: 0 0 0.18rem;
    font-weight: 800;
}

.agency-card-title a {
    color: #1b2f47;
    text-decoration: none;
}

.agency-card-title a:hover {
    color: #0154ac;
}

.agency-card-year {
    font-size: 0.8rem;
    color: #5f7690;
    font-weight: 600;
}

.agency-card-text {
    color: #445a72;
    font-size: 0.88rem;
    min-height: 54px;
    margin-bottom: 0.8rem;
}

.agency-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.agency-stat-item {
    border: 1px solid #d6e2f0;
    border-radius: 12px;
    padding: 0.5rem 0.6rem;
    background: #f7fafe;
    display: flex;
    flex-direction: column;
}

.agency-stat-item strong {
    color: #153552;
    font-size: 1rem;
    line-height: 1.1;
}

.agency-stat-item span {
    color: #5b738b;
    font-size: 0.76rem;
    margin-top: 0.18rem;
}

.agency-link-icons {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.agency-link-icons a {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #d8e3f0;
    background: #fff;
    color: #22486d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.agency-link-icons a:hover {
    border-color: #0154ac;
    color: #0154ac;
}

.agency-profile-card {
    border: 1px solid #d4dfec;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 15px 34px rgba(19, 49, 78, 0.09);
}

.agency-profile-cover {
    height: 250px;
    background:
        linear-gradient(120deg, rgba(1, 84, 172, 0.45), rgba(232, 42, 0, 0.36)),
        #eef4fb;
    background-size: cover;
    background-position: center;
}

.agency-profile-body {
    padding: 1.1rem;
}

.agency-profile-header {
    display: flex;
    align-items: flex-end;
    gap: 0.85rem;
    margin-top: -72px;
}

.agency-profile-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    border: 4px solid #fff; 
    box-shadow: 0 12px 22px rgba(17, 62, 108, 0.24);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}

.agency-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agency-profile-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #19314b;
}

.agency-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: #5e7891;
    font-size: 0.85rem;
    font-weight: 600;
}

.agency-profile-description {
    color: #334a63;
}

.agency-link-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #d8e4f1;
    border-radius: 12px;
    padding: 0.56rem 0.65rem;
    text-decoration: none;
    color: #214568;
    background: #fff;
}

.agency-link-pill:hover {
    color: #0154ac;
    border-color: #0154ac;
}

@media (max-width: 767px) {
    .agency-profile-cover {
        height: 180px;
    }

    .agency-profile-header {
        align-items: center;
        margin-top: -52px;
    }

    .agency-profile-logo {
        width: 86px;
        height: 86px;
        border-radius: 20px;
    }
}
