/* BorderPark Index — bp-* */

.bp-page {
    --bp-navy: #0e2740;
    --bp-ink: #132536;
    --bp-muted: #5d6b78;
    --bp-line: rgba(14, 39, 64, 0.1);
    --bp-panel: #ffffff;
    --bp-soft: #f3f7fb;
    --bp-accent: #1d6b4f;
    --bp-accent-soft: rgba(29, 107, 79, 0.12);
    --bp-warn: #9a3412;
}

.bp-wrap {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.bp-hero {
    position: relative;
    padding: 3rem 0 2.25rem;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(29, 107, 79, 0.18), transparent 55%),
        linear-gradient(160deg, #0b1f33 0%, #12324d 48%, #0e2740 100%);
    color: #eef5fb;
    overflow: hidden;
}

.bp-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% 40%;
    height: 70%;
    background: radial-gradient(circle, rgba(142, 240, 176, 0.14), transparent 65%);
    pointer-events: none;
}

.bp-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.75rem;
}

.bp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(142, 240, 176, 0.14);
    border: 1px solid rgba(142, 240, 176, 0.28);
    color: #b7f5cb;
    font-size: 0.82rem;
    font-weight: 700;
}

.bp-hero h1 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.45;
}

.bp-hero__lead {
    margin: 0.85rem 0 0;
    max-width: 38rem;
    color: #c5d4e4;
    line-height: 1.85;
    font-size: 1rem;
}

.bp-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.bp-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

.bp-stat__icon {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(142, 240, 176, 0.14);
    color: #b7f5cb;
    font-size: 0.95rem;
}

.bp-stat__label {
    display: block;
    color: #a9bdd0;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.bp-stat__value {
    display: block;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.bp-section {
    padding: 2.5rem 0 3.5rem;
    background:
        linear-gradient(180deg, #eef3f8 0%, var(--bp-soft) 40%, #e8eef5 100%);
}

.bp-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 1.75rem;
}

.bp-head h2 {
    margin: 0;
    color: var(--bp-navy);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 800;
}

.bp-head p {
    margin: 0.7rem 0 0;
    color: var(--bp-muted);
    line-height: 1.85;
}

.bp-alert {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: var(--bp-warn);
}

.bp-alert--info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e3a8a;
}

.bp-alert i {
    margin-top: 0.2rem;
}

.bp-alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

.bp-alert p {
    margin: 0;
    line-height: 1.7;
}

.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.bp-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    /* aynı gri: receipt gölge / bp-soft */
    background: var(--bp-soft);
    border: 1px solid var(--bp-line);
    box-shadow:
        0 8px 14px rgba(15, 23, 42, 0.08),
        0 -6px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.bp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(29, 107, 79, 0.3);
    box-shadow:
        0 12px 22px rgba(15, 23, 42, 0.1),
        0 -8px 16px rgba(15, 23, 42, 0.06);
}

.bp-card__media {
    position: relative;
    height: 10.5rem;
    background: linear-gradient(135deg, #163a55 0%, #1d6b4f 100%);
    overflow: hidden;
}

.bp-card__media.is-fallback {
    background:
        radial-gradient(circle at 80% 20%, rgba(183, 245, 203, 0.35), transparent 45%),
        linear-gradient(135deg, #12324d 0%, #1d6b4f 100%);
}

.bp-card__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.02);
    transition: transform 0.45s ease;
}

.bp-card:hover .bp-card__cover {
    transform: scale(1.08);
}

.bp-card__media-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 20, 34, 0.08) 0%, rgba(8, 20, 34, 0.55) 100%);
    pointer-events: none;
}

.bp-card__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.1rem 1.05rem;
}

.bp-card__top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: -1.55rem;
    position: relative;
    z-index: 1;
}

.bp-card__badge {
    flex: 0 0 auto;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #1d6b4f 0%, #145a41 100%);
    border: 3px solid #fff;
    box-shadow: 0 8px 18px rgba(14, 39, 64, 0.18);
    color: #e8fff3;
    font-size: 1.45rem;
}

.bp-card__titles {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 1.55rem;
}

.bp-card__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.bp-card__name,
.bp-card__country {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    min-width: 0;
    line-height: 1.35;
}

.bp-card__name {
    color: var(--bp-ink);
    font-size: 1.08rem;
    font-weight: 800;
}

.bp-card__name i {
    color: var(--bp-accent);
    font-size: 0.92rem;
}

.bp-card__country {
    color: var(--bp-muted);
    font-size: 0.92rem;
    font-weight: 700;
    flex-shrink: 0;
}

.bp-card__country i {
    color: var(--bp-accent);
    font-size: 0.78rem;
}

.bp-card__name span,
.bp-card__country span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Receipt metrics — panel trip-account perforated style */
.bp-receipt-band {
    margin: 0.1rem -0.15rem 0.25rem;
    padding: 12px 0.15rem;
    background: transparent;
    border-radius: 10px;
}

.bp-receipt {
    position: relative;
    margin: 0;
    padding: 0.35rem 0.7rem 0.2rem;
    background: #fff;
    border: 0;
    border-radius: 0;
    filter:
        drop-shadow(0 8px 14px rgba(15, 23, 42, 0.08))
        drop-shadow(0 -6px 12px rgba(15, 23, 42, 0.05));
}

.bp-receipt::before,
.bp-receipt::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 10px;
    pointer-events: none;
}

.bp-receipt::before {
    top: -10px;
    background:
        linear-gradient(-45deg, #fff 6.5px, transparent 0) 0 0 / 13px 10px repeat-x,
        linear-gradient(45deg, #fff 6.5px, transparent 0) 6.5px 0 / 13px 10px repeat-x;
}

.bp-receipt::after {
    bottom: -10px;
    background:
        linear-gradient(-135deg, #fff 6.5px, transparent 0) 0 0 / 13px 10px repeat-x,
        linear-gradient(135deg, #fff 6.5px, transparent 0) 6.5px 0 / 13px 10px repeat-x;
}

.bp-receipt__list {
    margin: 0;
    padding: 0;
    display: grid;
}

.bp-receipt__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.55rem 0.1rem;
    min-width: 0;
}

.bp-receipt__row + .bp-receipt__row {
    border-top: 1px solid rgba(168, 140, 168, 0.16);
}

.bp-receipt__row dt {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    min-width: 0;
    color: var(--bp-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.bp-receipt__row dt i {
    color: var(--bp-accent);
    width: 1rem;
    text-align: center;
    font-size: 0.78rem;
    flex: 0 0 auto;
}

.bp-receipt__row dt span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bp-receipt__row dd {
    margin: 0;
    flex: 0 0 auto;
    color: var(--bp-navy);
    font-size: 1.02rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* birebir: .assign-rule / .trip-collect-card__rule (gövdeli çizgi) */
.bp-card__rule {
    position: relative;
    display: grid;
    justify-items: center;
    pointer-events: none;
    margin-top: auto;
}

.bp-card__rule::before {
    content: "";
    width: 78%;
    height: 1px;
    margin: 0.4rem 0 0.55rem;
    background: linear-gradient(90deg, transparent 0%, rgba(29, 107, 79, 0.12) 8%, rgba(29, 107, 79, 0.9) 24%, rgba(29, 107, 79, 0.9) 76%, rgba(29, 107, 79, 0.12) 92%, transparent 100%);
}

.bp-card__rule::after {
    content: "";
    position: absolute;
    top: calc(0.4rem + 0.5px);
    left: 50%;
    z-index: 1;
    width: 2.4rem;
    height: 0.32rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #34d399 0%, #1d6b4f 100%);
    box-shadow: 0 1px 1px rgba(29, 107, 79, 0.28);
    transform: translate(-50%, -50%);
}

.bp-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.15rem;
    border-top: 0;
    box-shadow: none;
    flex-wrap: nowrap;
}

.bp-card__total {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--bp-muted);
    font-size: 0.86rem;
    white-space: nowrap;
    min-width: 0;
}

.bp-card__total i {
    color: var(--bp-accent);
}

.bp-card__total strong {
    color: var(--bp-navy);
    font-variant-numeric: tabular-nums;
}

.bp-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--bp-accent-soft);
    color: var(--bp-accent);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: background 0.2s ease, color 0.2s ease;
}

.bp-card__cta:hover {
    background: rgba(29, 107, 79, 0.2);
    color: #145a41;
    text-decoration: none;
}

.bp-card__cta[data-auth-spring-icon].is-busy {
    pointer-events: none;
    gap: 0;
    min-width: 6.5rem;
    justify-content: center;
    font-size: 0;
    line-height: 0;
    color: transparent;
    animation: bp-cta-spring 0.55s ease;
}

.bp-card__cta[data-auth-spring-icon].is-busy > span,
.bp-card__cta[data-auth-spring-icon].is-busy > i {
    display: none;
}

.bp-card__cta[data-auth-spring-icon].is-busy::after {
    content: "";
    display: inline-block;
    width: 0.95rem;
    height: 0.95rem;
    border: 2px solid rgba(29, 107, 79, 0.25);
    border-top-color: var(--bp-accent);
    border-radius: 50%;
    animation: bp-cta-spin 0.7s linear infinite;
}

@keyframes bp-cta-spring {
    0% { transform: scale(1); }
    35% { transform: scale(0.94); }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bp-cta-spin {
    to { transform: rotate(360deg); }
}

.bp-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.bp-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (max-width: 980px) {
    .bp-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .bp-hero {
        padding: 2.25rem 0 1.75rem;
    }

    .bp-hero__stats,
    .bp-grid {
        grid-template-columns: 1fr;
    }

    .bp-card__media {
        height: 11.5rem;
    }

    .bp-card__foot {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }

    .bp-card__total {
        font-size: 0.8rem;
        min-width: 0;
    }

    .bp-card__cta {
        flex: 0 0 auto;
        padding: 0.38rem 0.65rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}
