/* =========================================================
   UHealth.app Production Candidate v2.5
   Premium Healthcare Resource Dashboard
   File: assets/css/styles.css
========================================================= */

/* =========================================================
   DESIGN TOKENS
========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #dbeafe;

    --secondary: #3b82f6;

    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --accent-soft: #cffafe;

    --teal: #14b8a6;
    --green: #10b981;
    --emerald: #059669;
    --purple: #8b5cf6;
    --violet: #7c3aed;
    --orange: #f59e0b;
    --red: #ef4444;

    --hero-navy: #071226;
    --hero-navy-2: #0f172a;
    --hero-blue: #0b2a5b;

    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --bg-white: #ffffff;

    --card: #ffffff;
    --card-soft: rgba(255, 255, 255, 0.78);

    --text: #0f172a;
    --text-soft: #334155;
    --muted: #64748b;
    --muted-light: #94a3b8;

    --border: #e2e8f0;
    --border-soft: rgba(226, 232, 240, 0.72);

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.16);
    --shadow-glow: 0 0 50px rgba(6, 182, 212, 0.28);

    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --container: 1180px;

    --transition-fast: 150ms ease;
    --transition: 240ms ease;
    --transition-slow: 420ms ease;

    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================================================
   RESET / BASE
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 36rem),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.06), transparent 34rem),
        var(--bg);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button,
input {
    border: 0;
}

input {
    min-width: 0;
}

::selection {
    background: rgba(6, 182, 212, 0.25);
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 9999;
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: top var(--transition);
}

.skip-link:focus {
    top: 16px;
}

/* =========================================================
   UTILITIES
========================================================= */

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section {
    padding: 96px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.section-heading p:not(.eyebrow) {
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
    white-space: nowrap;
}

.btn svg {
    width: 17px;
    height: 17px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: #fff;
    background:
        linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.34);
}

.btn-outline {
    color: #fff;
    border: 1px solid rgba(103, 232, 249, 0.75);
    background: rgba(6, 182, 212, 0.08);
    backdrop-filter: blur(16px);
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.18);
    box-shadow: var(--shadow-glow);
}

.btn-ghost {
    color: var(--muted);
    background: var(--bg-soft);
}

.btn-ghost:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 18, 38, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
}

.header-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 1), rgba(6, 182, 212, 1));
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    color: #fff;
    font-size: 1.38rem;
    letter-spacing: -0.04em;
}

.brand-text strong span {
    color: var(--accent-light, #67e8f9);
}

.brand-text small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 600;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
}

.desktop-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 750;
    transition: color var(--transition);
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.desktop-nav a:hover {
    color: #fff;
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

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

.header-save-btn {
    min-height: 42px;
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
}

.mobile-menu-toggle svg {
    width: 22px;
    height: 22px;
    margin: auto;
}

.mobile-nav {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(7, 18, 38, 0.98);
}

.mobile-nav a {
    display: block;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 750;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================================
   HERO
========================================================= */

.hero-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(180deg, var(--hero-navy), var(--hero-navy-2));
    padding: 96px 0 108px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 14s ease-in-out infinite;
}

.hero-orb-one {
    width: 440px;
    height: 440px;
    left: -160px;
    top: 80px;
    background: rgba(6, 182, 212, 0.55);
}

.hero-orb-two {
    width: 520px;
    height: 520px;
    right: -220px;
    top: -80px;
    background: rgba(37, 99, 235, 0.55);
    animation-delay: -4s;
}

.hero-orb-three {
    width: 320px;
    height: 320px;
    left: 50%;
    bottom: -160px;
    background: rgba(139, 92, 246, 0.45);
    animation-delay: -8s;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.13;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(18px, 28px, 0) scale(1.05);
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    text-align: center;
}

.hero-badge {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(18px);
    font-size: 0.88rem;
    font-weight: 800;
}

.hero-badge svg {
    width: 17px;
    height: 17px;
    color: var(--accent-light, #67e8f9);
}

.hero-title {
    margin: 0;
    font-size: clamp(3rem, 7.8vw, 5.8rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.075em;
}

.hero-title span {
    display: block;
    color: transparent;
    background:
        linear-gradient(90deg, #a7f3d0, #67e8f9, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 45px rgba(6, 182, 212, 0.18);
}

.hero-subtitle {
    max-width: 830px;
    margin: 24px auto 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.03rem, 1.8vw, 1.28rem);
    line-height: 1.75;
}

.independent-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(20px);
}

.hero-notice {
    max-width: 850px;
    margin: 0 auto 30px;
    padding: 14px 16px;
    text-align: left;
}

.notice-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    color: var(--accent-light, #67e8f9);
    background: rgba(6, 182, 212, 0.14);
}

.notice-icon svg {
    width: 17px;
    height: 17px;
}

.independent-notice p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    line-height: 1.55;
}

.independent-notice strong {
    color: #fff;
}

/* =========================================================
   SEARCH
========================================================= */

.search-experience {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
}

.search-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(24px);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.search-shell.focused {
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.30),
        0 0 0 4px rgba(6, 182, 212, 0.22);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
}

.search-main-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: var(--primary);
}

#portalSearch {
    width: 100%;
    color: var(--text);
    outline: none;
    background: transparent;
    font-size: 1.03rem;
    font-weight: 650;
}

#portalSearch::placeholder {
    color: #7c8799;
    font-weight: 600;
}

.search-submit {
    min-width: 132px;
    min-height: 58px;
    border-radius: 20px;
    font-size: 1rem;
}

.search-suggestions {
    display: none;
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    top: calc(100% + 14px);
    overflow: hidden;
    text-align: left;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background var(--transition);
}

.suggestion-item:hover,
.suggestion-item.active {
    background: #f8fafc;
}

.suggestion-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.suggestion-item strong {
    display: block;
    color: var(--text);
    font-size: 0.96rem;
}

.suggestion-item small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-weight: 650;
}

/* =========================================================
   POPULAR SEARCHES
========================================================= */

.popular-searches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 24px auto 0;
}

.popular-searches span {
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.9rem;
    font-weight: 800;
}

.search-chip,
.portal-pill {
    border-radius: var(--radius-pill);
    font-weight: 800;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        color var(--transition);
}

.search-chip {
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.search-chip:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.17);
    border-color: rgba(103, 232, 249, 0.42);
}

/* =========================================================
   SEARCH RESULTS
========================================================= */

.search-results-section {
    padding: 44px 0 24px;
    background:
        linear-gradient(180deg, #ffffff, var(--bg));
}

.results-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
    gap: 24px;
    align-items: start;
}

.results-panel,
.intent-offer-panel {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
}

.results-panel {
    padding: 30px;
}

.intent-offer-panel {
    position: sticky;
    top: 102px;
    padding: 26px;
}

.results-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.results-header h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    letter-spacing: -0.04em;
}

.results-summary {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.7;
}

.provider-results {
    display: grid;
    gap: 14px;
}

.provider-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.provider-card-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--primary);
    background: var(--primary-soft);
}

.provider-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.provider-card p {
    margin: 7px 0 12px;
    color: var(--muted);
    line-height: 1.55;
}

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

.small-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 0.84rem;
    font-weight: 850;
}

.small-action.neutral {
    color: var(--text-soft);
    background: var(--bg-soft);
}

.resource-guidance {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.guidance-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: #f8fafc;
    border: 1px solid var(--border);
}

.guidance-card h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    font-size: 1rem;
}

.guidance-card svg {
    width: 18px;
    height: 18px;
    color: var(--accent-dark);
}

.guidance-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.offer-panel-header h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.035em;
}

.dynamic-offer-slot {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.dynamic-offer-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, #fff, #f8fafc);
}

.dynamic-offer-card.primary {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.11);
}

.dynamic-offer-card h4 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    font-size: 1.03rem;
}

.dynamic-offer-card h4 svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.dynamic-offer-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

.dynamic-offer-card .btn {
    width: 100%;
    min-height: 42px;
}

.offer-disclaimer {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

/* =========================================================
   PORTAL STRIP
========================================================= */

.portal-strip-section {
    position: relative;
    margin-top: -42px;
    padding: 0 0 30px;
    z-index: 4;
}

.portal-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    overflow-x: auto;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
}

.portal-strip::-webkit-scrollbar {
    height: 0;
}

.portal-strip-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-weight: 900;
    border-radius: 16px;
    background: var(--bg-soft);
}

.portal-strip-label svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.portal-pill {
    flex: 0 0 auto;
    padding: 10px 16px;
    color: var(--text-soft);
    background: #fff;
    border: 1px solid var(--border);
}

.portal-pill:hover {
    color: var(--primary);
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: var(--shadow-sm);
}

.portal-strip-note {
    margin: 12px 8px 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

/* =========================================================
   RESOURCE CARDS
========================================================= */

.common-resources-section {
    padding-top: 72px;
}

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

.resource-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-soft);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.78));
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.resource-card::before {
    content: "";
    position: absolute;
    inset: auto -20% -50% -20%;
    height: 120px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.10), transparent 62%);
    opacity: 0;
    transition: opacity var(--transition);
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(6, 182, 212, 0.26);
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-icon,
.affiliate-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    margin-bottom: 22px;
}

.resource-icon svg,
.affiliate-icon svg {
    width: 34px;
    height: 34px;
}

.teal {
    color: #0891b2;
    background: rgba(6, 182, 212, 0.13);
}

.purple {
    color: var(--violet);
    background: rgba(139, 92, 246, 0.13);
}

.blue {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.13);
}

.green {
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.13);
}

.violet {
    color: var(--violet);
    background: rgba(124, 58, 237, 0.13);
}

.orange {
    color: var(--orange);
    background: rgba(245, 158, 11, 0.14);
}

.resource-card h3 {
    margin: 0 0 10px;
    font-size: 1.17rem;
    letter-spacing: -0.025em;
}

.resource-card p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.65;
}

.card-link {
    position: absolute;
    left: 28px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: var(--primary);
    background: transparent;
    font-weight: 850;
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.card-link:hover svg {
    transform: translateX(3px);
}

/* =========================================================
   MOST REQUESTED
========================================================= */

.most-requested-section {
    padding: 82px 0;
    background:
        linear-gradient(135deg, rgba(219, 234, 254, 0.65), rgba(207, 250, 254, 0.55));
}

.requested-layout {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 48px;
    align-items: center;
}

.requested-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.requested-copy p:not(.eyebrow) {
    margin: 18px 0 0;
    color: var(--text-soft);
    line-height: 1.75;
    font-size: 1.05rem;
}

.requested-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.requested-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 3px;
    align-items: center;
    padding: 20px;
    text-align: left;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.72);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.requested-item:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.requested-item svg {
    grid-row: span 2;
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.requested-item span {
    font-weight: 900;
}

.requested-item small {
    color: var(--muted);
    font-weight: 650;
}

/* =========================================================
   AFFILIATE / ADDITIONAL RESOURCES
========================================================= */

.additional-resources-section {
    background: #fff;
}

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

.affiliate-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 315px;
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.affiliate-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.20);
}

.affiliate-card-primary {
    border: 2px solid rgba(16, 185, 129, 0.35);
}

.affiliate-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    color: #047857;
    background: rgba(16, 185, 129, 0.13);
    font-size: 0.78rem;
    font-weight: 900;
}

.affiliate-content h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    letter-spacing: -0.035em;
}

.affiliate-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.btn-affiliate {
    width: 100%;
    margin-top: auto;
    color: #fff;
    border-radius: 16px;
    background:
        linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.affiliate-card-primary .btn-affiliate {
    background:
        linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.22);
}

.affiliate-section-note {
    max-width: 850px;
    margin: 26px auto 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
    text-align: center;
}

/* =========================================================
   SAVE RESOURCES
========================================================= */

.save-resources-section {
    background:
        radial-gradient(circle at 15% 0%, rgba(6, 182, 212, 0.12), transparent 34rem),
        var(--bg);
}

.save-card {
    display: grid;
    grid-template-columns: 0.45fr 1fr 0.9fr;
    gap: 34px;
    align-items: center;
    padding: 38px;
    border-radius: 34px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.save-card-visual {
    display: grid;
    place-items: center;
}

.save-icon {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    color: var(--accent-dark);
    border-radius: 42px;
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.13), rgba(37, 99, 235, 0.10));
}

.save-icon svg {
    width: 62px;
    height: 62px;
}

.save-card-content h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.4vw, 2.65rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.save-card-content p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.save-benefits {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.save-benefits li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-soft);
    font-weight: 750;
}

.save-benefits svg {
    width: 18px;
    height: 18px;
    color: var(--green);
}

.save-form {
    display: grid;
    gap: 12px;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.save-form label {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 850;
}

.save-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 15px;
    outline: none;
    color: var(--text);
    background: #fff;
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.save-form input:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.save-form .btn {
    width: 100%;
    border-radius: 15px;
}

.form-note,
.form-message {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.form-message.success {
    color: var(--emerald);
    font-weight: 800;
}

.form-message.error {
    color: var(--red);
    font-weight: 800;
}

/* =========================================================
   TRUST
========================================================= */

.trust-section {
    padding: 34px 0 66px;
    background: var(--bg);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.trust-item {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border-soft);
}

.trust-item svg {
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    color: var(--accent-dark);
}

.trust-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.trust-item span {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: var(--hero-navy);
    color: rgba(255, 255, 255, 0.78);
    padding: 64px 0 34px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 58px;
    align-items: start;
}

.footer-brand p {
    max-width: 560px;
    margin: 18px 0 0;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 180px);
    gap: 34px;
}

.footer-links h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 0.95rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    padding: 7px 0;
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-disclosures {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-disclosures p {
    max-width: 1000px;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    line-height: 1.65;
}

.footer-disclosures strong {
    color: #fff;
}

.copyright {
    margin-top: 22px !important;
}

/* =========================================================
   MODAL
========================================================= */

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
}

.modal {
    position: relative;
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    overflow: auto;
    padding: 34px;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    color: var(--muted);
    background: var(--bg-soft);
}

.modal-close:hover {
    color: var(--text);
}

.modal h2 {
    margin: 0 44px 16px 0;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.modal-content {
    color: var(--text-soft);
    line-height: 1.7;
}

.modal-content p {
    margin: 0 0 14px;
}

/* =========================================================
   TOAST / LOADING / ANIMATION HELPERS
========================================================= */

.toast {
    position: fixed;
    z-index: 3500;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    opacity: 0;
    padding: 13px 18px;
    color: #fff;
    background: rgba(15, 23, 42, 0.94);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    font-weight: 800;
    transition:
        opacity var(--transition),
        transform var(--transition);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 520ms ease,
        transform 520ms ease;
}

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

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1120px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: grid;
    }

    .mobile-nav.active {
        display: block;
    }

    .results-layout,
    .requested-layout,
    .save-card {
        grid-template-columns: 1fr;
    }

    .intent-offer-panel {
        position: static;
    }

    .save-card-visual {
        display: none;
    }

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

@media (max-width: 920px) {
    .resource-grid,
    .affiliate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .hero-section {
        padding: 70px 0 88px;
    }

    .header-container {
        min-height: 68px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .brand-text strong {
        font-size: 1.16rem;
    }

    .brand-text small {
        display: none;
    }

    .header-save-btn {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.55rem, 13vw, 4.2rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-notice {
        border-radius: var(--radius-lg);
    }

    .search-shell {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .search-input-wrap,
    .search-submit {
        min-height: 54px;
        border-radius: 17px;
    }

    .popular-searches {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .popular-searches::-webkit-scrollbar {
        height: 0;
    }

    .popular-searches span {
        flex: 0 0 auto;
    }

    .search-chip {
        flex: 0 0 auto;
    }

    .portal-strip-section {
        margin-top: -28px;
    }

    .resource-grid,
    .affiliate-grid,
    .requested-list,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 0;
    }

    .results-panel,
    .intent-offer-panel,
    .save-card {
        padding: 22px;
        border-radius: 24px;
    }

    .results-header {
        flex-direction: column;
    }

    .resource-card,
    .affiliate-card {
        min-height: auto;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 28px 22px;
    }
}

@media (max-width: 420px) {
    .hero-badge {
        width: 100%;
        justify-content: center;
        font-size: 0.78rem;
    }

    .independent-notice {
        flex-direction: column;
        align-items: flex-start;
    }

    #portalSearch {
        font-size: 0.94rem;
    }

    .portal-strip {
        border-radius: 20px;
    }

    .requested-item {
        grid-template-columns: 1fr;
    }

    .requested-item svg {
        grid-row: auto;
    }
}