/* Builders Portal — dashboard hero & partner tickers */

:root {
    --portal-mint: #52b788;
    --portal-mint-glow: #7dffb8;
    --portal-teal: #054445;
    --portal-teal-deep: #041816;
    --portal-gold: #ffc107;
    --portal-gold-bright: #ffeb3b;
    --portal-dark: #0b0c10;
}

/* Full-bleed breakout from Bootstrap .container */
.portal-full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ── Hero shell ── */
.portal-dashboard-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(82, 183, 136, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 100%, rgba(255, 193, 7, 0.12) 0%, transparent 50%),
        linear-gradient(160deg, #020908 0%, var(--portal-teal-deep) 35%, #062f2e 65%, #020908 100%);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.portal-dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.015) 80px,
            rgba(255, 255, 255, 0.015) 81px
        );
    pointer-events: none;
    z-index: 0;
}

.portal-dashboard-hero__orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.portal-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    animation: portal-orb-float 12s ease-in-out infinite;
}

.portal-orb--1 {
    width: 280px;
    height: 280px;
    background: var(--portal-mint);
    top: -80px;
    left: 8%;
    animation-delay: 0s;
}

.portal-orb--2 {
    width: 220px;
    height: 220px;
    background: var(--portal-gold);
    bottom: -60px;
    right: 12%;
    animation-delay: -4s;
    animation-duration: 15s;
}

.portal-orb--3 {
    width: 160px;
    height: 160px;
    background: #01b8aa;
    top: 40%;
    left: 55%;
    animation-delay: -7s;
    animation-duration: 18s;
}

@keyframes portal-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.08); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.portal-dashboard-hero__inner {
    position: relative;
    z-index: 2;
    padding: 0 0 1.75rem;
}

/* ── Partner tickers ── */
.portal-partner-strip {
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(82, 183, 136, 0.25);
    padding: 0.55rem 0;
    overflow: hidden;
}

.portal-partner-strip--bottom {
    border-bottom: none;
    border-top: 1px solid rgba(82, 183, 136, 0.25);
    margin-top: 0.25rem;
}

.portal-partner-strip__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--portal-mint);
    white-space: nowrap;
    padding: 0 1.25rem;
    flex-shrink: 0;
}

.portal-partner-strip__track-wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    flex: 1;
}

.portal-partner-strip__row {
    display: flex;
    align-items: center;
    width: max-content;
    animation: portal-partner-scroll 45s linear infinite;
}

.portal-partner-strip--reverse .portal-partner-strip__row {
    animation-direction: reverse;
    animation-duration: 52s;
}

.portal-partner-strip:hover .portal-partner-strip__row {
    animation-play-state: paused;
}

@keyframes portal-partner-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.portal-partner-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0.85rem;
    padding: 0.35rem 1rem 0.35rem 0.45rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portal-partner-chip:hover {
    transform: scale(1.04);
    border-color: rgba(82, 183, 136, 0.55);
    box-shadow: 0 0 20px rgba(82, 183, 136, 0.25);
}

.portal-partner-chip__logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    padding: 4px;
    flex-shrink: 0;
}

.portal-partner-chip__logo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--portal-teal);
    background: linear-gradient(135deg, #fff 0%, #e8fff9 100%);
}

.portal-partner-chip__name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.02em;
}

/* ── Marquee slogan ── */
.builders-portal-marquee-wrap {
    overflow: hidden;
    padding: 1.1rem 0;
    background:
        linear-gradient(105deg, rgba(255,255,255,0.06) 0%, transparent 40%, rgba(255,193,7,0.1) 50%, transparent 60%, rgba(255,255,255,0.04) 100%);
    border-top: 3px solid var(--portal-gold);
    border-bottom: 3px solid var(--portal-gold);
    position: relative;
}

.builders-portal-marquee-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: portal-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes portal-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.builders-portal-marquee-track {
    display: flex;
    width: max-content;
    animation: builders-portal-marquee-scroll 30s linear infinite;
    will-change: transform;
}

.builders-portal-marquee-wrap:hover .builders-portal-marquee-track {
    animation-play-state: paused;
}

@keyframes builders-portal-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.builders-portal-marquee-text {
    flex-shrink: 0;
    font-family: 'Bebas Neue', 'Oswald', 'Impact', sans-serif;
    font-size: clamp(1.85rem, 4.8vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-right: 4rem;
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(255, 193, 7, 0.4),
        0 3px 0 rgba(0, 0, 0, 0.35),
        0 6px 16px rgba(0, 0, 0, 0.45),
        2px 2px 0 #014a44;
}

.builders-portal-marquee-text .marquee-brand {
    color: var(--portal-gold-bright);
    text-shadow: 0 0 24px rgba(255, 235, 59, 0.65), 0 3px 0 rgba(0,0,0,0.4);
}

.builders-portal-marquee-text .marquee-divider {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 0.3em;
}

.builders-portal-marquee-text .marquee-highlight {
    color: var(--portal-mint-glow);
    font-style: italic;
    letter-spacing: 0.09em;
}

/* ── Feature showcase (email signature icons) ── */
.portal-feature-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 0.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

.portal-feature-card {
    position: relative;
    text-align: center;
    padding: 1.25rem 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(82, 183, 136, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    animation: portal-card-enter 0.7s ease backwards;
}

.portal-feature-card:nth-child(1) { animation-delay: 0.1s; }
.portal-feature-card:nth-child(2) { animation-delay: 0.25s; }
.portal-feature-card:nth-child(3) { animation-delay: 0.4s; }
.portal-feature-card:nth-child(4) { animation-delay: 0.55s; }

@keyframes portal-card-enter {
    from { opacity: 0; transform: translateY(24px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.portal-feature-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(82, 183, 136, 0.65);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(82, 183, 136, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.portal-feature-card__icon-ring {
    width: 88px;
    height: 88px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(82, 183, 136, 0.35) 0%, rgba(5, 68, 69, 0.9) 70%);
    border: 2px solid rgba(82, 183, 136, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 4px rgba(82, 183, 136, 0.12),
        0 0 24px rgba(82, 183, 136, 0.35),
        inset 0 -4px 12px rgba(0, 0, 0, 0.3);
    animation: portal-icon-pulse 3s ease-in-out infinite;
}

.portal-feature-card:nth-child(2) .portal-feature-card__icon-ring { animation-delay: -0.8s; }
.portal-feature-card:nth-child(3) .portal-feature-card__icon-ring { animation-delay: -1.6s; }
.portal-feature-card:nth-child(4) .portal-feature-card__icon-ring { animation-delay: -2.4s; }

@keyframes portal-icon-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.12), 0 0 24px rgba(82, 183, 136, 0.35), inset 0 -4px 12px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(82, 183, 136, 0.18), 0 0 40px rgba(82, 183, 136, 0.5), inset 0 -4px 12px rgba(0,0,0,0.3); }
}

.portal-feature-card__icon-ring svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.portal-feature-card__title {
    font-family: 'Oswald', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}

.portal-feature-card__title span {
    display: block;
    color: var(--portal-mint);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    margin-top: 0.15rem;
}

/* 24/7 badge */
.portal-247-row {
    display: flex;
    justify-content: center;
    padding: 1rem 1rem 0.5rem;
}

.portal-247-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.25rem;
    background: linear-gradient(135deg, var(--portal-mint) 0%, #3d9970 100%);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(82, 183, 136, 0.45);
    animation: portal-badge-glow 2.5s ease-in-out infinite;
}

.portal-247-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: portal-dot-blink 1.5s ease-in-out infinite;
}

@keyframes portal-badge-glow {
    0%, 100% { box-shadow: 0 0 16px rgba(82, 183, 136, 0.35); transform: scale(1); }
    50% { box-shadow: 0 0 32px rgba(82, 183, 136, 0.65); transform: scale(1.03); }
}

@keyframes portal-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Sparkle particles */
.portal-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.portal-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: portal-sparkle 4s ease-in-out infinite;
}

.portal-sparkle:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.portal-sparkle:nth-child(2) { top: 55%; left: 78%; animation-delay: 1.2s; }
.portal-sparkle:nth-child(3) { top: 72%; left: 35%; animation-delay: 2.4s; }
.portal-sparkle:nth-child(4) { top: 30%; left: 62%; animation-delay: 0.6s; }
.portal-sparkle:nth-child(5) { top: 85%; left: 88%; animation-delay: 3s; }

@keyframes portal-sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 0.9; transform: scale(1.5); box-shadow: 0 0 8px rgba(255,255,255,0.8); }
}

/* Search section intro pulse */
.portal-search-prompt {
    text-align: center;
    margin-bottom: 1.25rem;
    animation: portal-card-enter 0.8s ease 0.7s backwards;
}

.portal-search-prompt p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #495057;
    margin: 0;
}

.portal-search-prompt strong {
    color: var(--primary-color, #01998e);
}

@media (max-width: 992px) {
    .portal-feature-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .portal-feature-showcase {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .portal-feature-card {
        padding: 0.85rem 0.5rem 0.75rem;
    }

    .portal-feature-card__icon-ring {
        width: 68px;
        height: 68px;
    }

    .portal-feature-card__icon-ring svg {
        width: 34px;
        height: 34px;
    }

    .portal-feature-card__title {
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-orb,
    .portal-partner-strip__row,
    .builders-portal-marquee-track,
    .portal-feature-card,
    .portal-feature-card__icon-ring,
    .portal-247-badge,
    .portal-sparkle,
    .builders-portal-marquee-wrap::after {
        animation: none !important;
    }

    .builders-portal-marquee-track {
        width: 100%;
        justify-content: center;
    }

    .builders-portal-marquee-text[aria-hidden="true"] {
        display: none;
    }

    .builders-portal-marquee-text {
        padding-right: 0;
        white-space: normal;
        text-align: center;
        font-size: clamp(1.2rem, 4vw, 1.75rem);
    }
}
