
.uwph,
.uwph * {
    box-sizing: border-box;
}

.uwph {
    --uwph-dark: #090d18;
    --uwph-ink: #111827;
    --uwph-muted: #647084;
    --uwph-line: #e6e8ef;
    --uwph-soft: #f7f8fb;
    --uwph-purple: #7c3aed;
    --uwph-blue: #2563eb;
    --uwph-green: #16a34a;
    --uwph-radius: 18px;
    --uwph-shadow: 0 16px 34px rgba(15, 23, 42, .09);
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 28px;
    color: var(--uwph-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: normal;
    background:
        radial-gradient(circle at 8% 10%, rgba(37, 99, 235, .14), transparent 28%),
        radial-gradient(circle at 92% 5%, rgba(124, 58, 237, .16), transparent 30%),
        linear-gradient(135deg, #eef4ff, #f7f2ff);
}

.uwph a { text-decoration: none; }
.uwph button,
.uwph input,
.uwph select { font: inherit; }

/* Header / Hero */
.uwph-v3-clean-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 22px;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: auto;
    margin: 0 0 18px;
    padding: 28px;
    border-radius: 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 8%, rgba(34, 197, 94, .22), transparent 28%),
        radial-gradient(circle at 18% 0%, rgba(59, 130, 246, .28), transparent 28%),
        linear-gradient(135deg, #050b18 0%, #101827 48%, #241050 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.uwph-v3-clean-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0 42%, rgba(255,255,255,.08) 42% 43%, transparent 43%),
        linear-gradient(120deg, transparent 0 62%, rgba(124,58,237,.18) 62% 65%, transparent 65%);
}

.uwph-v3-clean-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -55% 40%;
    height: 170px;
    background: radial-gradient(circle, rgba(124,58,237,.38), transparent 68%);
    pointer-events: none;
}

.uwph-v3-hero-copy,
.uwph-v3-hero-actions {
    position: relative;
    z-index: 1;
}

.uwph-v3-updated {
    display: inline-flex;
    margin-bottom: 9px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #bbf7d0;
    background: rgba(22, 163, 74, .16);
    border: 1px solid rgba(187, 247, 208, .28);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.uwph-v3-clean-hero h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(30px, 4.5vw, 50px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.uwph-v3-clean-hero p {
    max-width: 660px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.55;
}

.uwph-v3-hero-actions {
    display: grid;
    gap: 10px;
}

.uwph-search-wrap {
    position: relative;
    display: block;
}

.uwph-global-search {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 14px;
    padding: 0 42px 0 15px;
    background: rgba(255,255,255,.14);
    color: #ffffff;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.uwph-global-search::placeholder { color: rgba(255,255,255,.68); }
.uwph-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .75;
}

.uwph .uwph-v3-hero-actions .uwph-btn-primary,
.uwph .uwph-hero .uwph-btn-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 0 18px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .22) !important;
}

.uwph .uwph-v3-hero-actions .uwph-btn-primary:hover,
.uwph .uwph-hero .uwph-btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6) !important;
    box-shadow: 0 16px 30px rgba(37, 99, 235, .28) !important;
}

/* Hide old V2 clutter */
.uwph-filter-copy,
.uwph-carrier-select,
.uwph-carrier-search,
.uwph-featured-video,
.uwph-carriers .uwph-filter-panel,
.uwph-carriers .uwph-global-search,
.uwph-carriers .uwph-main-search-wrap,
.uwph-carriers .uwph-search-wrap {
    display: none !important;
}

/* General Sections */
.uwph-section { margin: 18px 0; }
.uwph-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
}
.uwph-section-head h2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -.025em;
}
.uwph-section-head h2::before {
    content: "";
    width: 10px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--uwph-purple), var(--uwph-blue));
}
.uwph-section-head p {
    max-width: 680px;
    margin: 6px 0 0;
    color: var(--uwph-muted);
    line-height: 1.5;
}
.uwph-filter-panel { margin: 0; padding: 0; background: transparent; border: 0; }

/* Carrier Section */
.uwph-carriers {
    padding: 20px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 0% 0%, rgba(124, 58, 237, .18), transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .13), transparent 32%),
        linear-gradient(135deg, #07101f 0%, #111827 100%) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .20) !important;
}
.uwph-carriers .uwph-section-head { margin-bottom: 16px !important; }
.uwph-carriers .uwph-section-head h2,
.uwph-carriers .uwph-section-head p { color: #ffffff !important; }

.uwph-carrier-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .05) !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    box-shadow: none !important;
}

.uwph-carrier-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: none !important;
}

.uwph-carrier-hit {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    padding: 10px 14px !important;
    border-radius: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--uwph-card-bg, linear-gradient(180deg, #f8fafc 0%, #e9eef5 100%)) !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .10) !important;
    cursor: pointer !important;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
.uwph-carrier-hit::after,
.uwph-carrier-top::before { display: none !important; content: none !important; }
.uwph-carrier-hit::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 5px !important;
    border-radius: 18px 0 0 18px !important;
    background: var(--uwph-secondary, #7c3aed) !important;
}
.uwph-carrier-hit:hover,
.uwph-carrier-card.is-active .uwph-carrier-hit {
    transform: translateY(-2px) !important;
    border-color: rgba(124, 58, 237, .35) !important;
    box-shadow: 0 14px 26px rgba(15, 23, 42, .16) !important;
}
.uwph-carrier-top {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
.uwph-carrier-top img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: var(--uwph-logo-max-width, 78%) !important;
    max-height: var(--uwph-logo-max-height, 42px) !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
    filter: none !important;
}
.uwph-carrier-top strong {
    display: block !important;
    color: var(--uwph-card-text, #111827) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-shadow: none !important;
}
.uwph-carrier-body { display: none !important; }

/* Latest Promos */
.uwph-latest {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(248,250,252,.96));
    box-shadow: var(--uwph-shadow);
}
.uwph-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff !important;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15,23,42,.14);
}
.uwph-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.uwph-promo-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.uwph-promo-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--uwph-primary, #111827), var(--uwph-secondary, #7c3aed));
    z-index: 2;
}
.uwph-promo-card:hover {
    transform: translateY(-2px);
    border-color: #d6dde8;
    box-shadow: 0 16px 30px rgba(15, 23, 42, .1);
}
.uwph-promo-media {
    display: block;
    background: radial-gradient(circle at 50% 0%, rgba(124,58,237,.08), transparent 35%), #f8fafc;
    border-bottom: 1px solid var(--uwph-line);
}
.uwph-promo-media img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: contain;
    padding: 10px;
}
.uwph-promo-body { padding: 15px; }
.uwph-promo-badge,
.uwph-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 9px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid var(--uwph-secondary, #7c3aed);
    color: var(--uwph-primary, #111827);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 3px 10px rgba(15, 23, 42, .06);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.uwph-promo-card h3 { margin: 0 0 7px; color: #111827; font-size: 18px; line-height: 1.22; }
.uwph-promo-card p { margin: 0 0 10px; color: #647084; line-height: 1.45; }
.uwph-promo-date { display: block; margin-bottom: 11px; color: #647084; font-size: 13px; font-weight: 700; }
.uwph-promo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.uwph-small-btn,
.uwph-tool-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid #d9e2ef;
    border-radius: 11px;
    padding: 0 12px;
    background: #f8fafc;
    color: #111827;
    font-weight: 850;
    font-size: 13px;
    cursor: pointer;
}
.uwph-promo-actions .uwph-small-btn:first-child {
    background: linear-gradient(135deg, var(--uwph-primary, #111827), var(--uwph-secondary, #7c3aed));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(15, 23, 42, .14);
}
.uwph-promo-content { display: none; }
.uwph:not(.uwph-results-active) .uwph-promo-card { display: none !important; }
.uwph:not(.uwph-results-active) .uwph-empty-promos { display: block !important; }
.uwph-results-active .uwph-promo-card[hidden] { display: none !important; }
.uwph-empty {
    padding: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #647084;
    text-align: center;
}
.uwph-empty-promos {
    background: radial-gradient(circle at 0 0, rgba(124, 58, 237, .1), transparent 28%), linear-gradient(135deg, #ffffff, #f8fafc);
    color: #475569;
    font-weight: 750;
}

/* Tools */
.uwph-tools {
    padding: 18px;
    border-radius: 24px;
    background: radial-gradient(circle at 0 0, rgba(37, 99, 235, .1), transparent 30%), linear-gradient(135deg, #ffffff, #f4f7fb);
    border: 1px solid rgba(148, 163, 184, .28);
}
.uwph-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.uwph-tool-card {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 16px;
    border: 1px solid var(--uwph-line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
}
.uwph-tool-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #16a34a);
}
.uwph-tool-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.12));
}
.uwph-tool-card strong,
.uwph-tool-card h3 { display: block; margin: 0 0 8px; color: #111827; font-size: 17px; }
.uwph-tool-card p { margin: 0 0 12px; color: #647084; line-height: 1.45; }
[hidden] { display: none !important; }

@media (min-width: 1180px) { .uwph-promo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (min-width: 901px) {
    .uwph-carrier-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .uwph-carrier-hit { height: 96px !important; min-height: 96px !important; max-height: 96px !important; }
}

@media (max-width: 900px) {
    .uwph { max-width: 100%; padding: 0 0 14px; border-radius: 0; background: linear-gradient(180deg, #eef4ff, #f8fafc); }
    .uwph-v3-clean-hero { grid-template-columns: 1fr; margin: 0 0 14px; padding: 20px; border-radius: 0 0 24px 24px; }
    .uwph-v3-clean-hero h1 { font-size: 34px; }
    .uwph-latest,
    .uwph-tools { margin-left: 10px; margin-right: 10px; padding: 12px; border-radius: 18px; }
    .uwph-promo-grid,
    .uwph-tool-grid { grid-template-columns: 1fr; }
    .uwph-promo-media img { height: 170px; }
}

@media (max-width: 768px) {
    .uwph-carriers { margin: 12px 10px !important; padding: 16px !important; border-radius: 22px !important; }
    .uwph-carrier-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        padding: 10px !important;
        background: rgba(255, 255, 255, .05) !important;
        border: 1px solid rgba(255, 255, 255, .08) !important;
    }
    .uwph-carrier-hit { height: 78px !important; min-height: 78px !important; max-height: 78px !important; padding: 8px 10px !important; border-radius: 16px !important; }
    .uwph-carrier-top img {
        max-width: var(--uwph-logo-mobile-max-width, var(--uwph-logo-max-width, 78%)) !important;
        max-height: var(--uwph-logo-mobile-max-height, 34px) !important;
    }
    .uwph-carrier-top strong { font-size: 15px !important; }
}

@media (max-width: 480px) {
    .uwph-v3-clean-hero { padding: 18px 14px; }
    .uwph-v3-clean-hero h1 { font-size: 29px; line-height: 1.12; }
    .uwph-v3-clean-hero p { font-size: 14px; line-height: 1.45; }
    .uwph-section-head { display: block; }
    .uwph-section-head h2 { font-size: 22px; }
    .uwph-view-all { width: 100%; margin-top: 12px; }
    .uwph-carrier-grid { gap: 10px !important; }
    .uwph-carrier-hit { height: 74px !important; min-height: 74px !important; max-height: 74px !important; }
    .uwph-carrier-top strong { font-size: 14px !important; }
}
