/*
 * PropFirmMap Global Stylesheet
 * Consolidated from: tokens.css, layout.css, breadcrumbs.css, pfm-score.css,
 *                    accessibility.css, cookie-consent.css, feedback-widget.css, newsletter.css
 * Purpose: Single CSS file loaded on ALL pages to reduce HTTP requests.
 */

/* ════════════════════════════════════════════════════════════════
   DESIGN TOKENS (from tokens.css)
   ════════════════════════════════════════════════════════════════ */

:root {
    /* ── Brand Colors ── */
    --color-primary:        #6366f1;
    --color-primary-dark:   #4f46e5;
    --color-primary-alt:    #7489e1;   /* pagination, radio labels */
    --color-success:        #059669;

    /* ── Brand Gradients ── */
    --gradient-brand:       linear-gradient(to bottom, #7A95F8 8%, #6453CA 92%);
    --gradient-brand-h:     linear-gradient(to right, #7A95F8 8%, #6453CA 92%);
    --gradient-brand-diag:  linear-gradient(100deg, #7A95F8 0%, #6453CA 100%);

    /* ── Surfaces (white theme) ── */
    --color-surface-card:   #ffffff;   /* primary card/container bg */
    --color-surface-warm:   #f8f9fa;   /* secondary card/tab backgrounds */
    --color-surface-gray:   #f1f3f5;   /* secondary panels, date badges */
    --color-surface-input:  #f8f9fa;   /* textarea, confirmation inputs */
    --color-surface-search: #f8f9fa;   /* search box bg */
    --color-surface-hover:  #f0f0f5;   /* hover states on white cards */
    --color-surface-rating: #e5e7eb;   /* rating bar track */
    --color-surface-badge:  #f0f0f0;   /* badge backgrounds */

    /* ── Text Colors (dark text for white surfaces) ── */
    --color-text-primary:   #1a1a2e;
    --color-text-dark:      #333333;
    --color-text-mid:       #555555;
    --color-text-gray:      #666666;   /* placeholders, star labels */
    --color-text-muted:     #777777;   /* descriptions, about text */
    --color-text-subtle:    #888888;   /* section titles, date badges */
    --color-text-light:     #999999;   /* struck-through prices */
    --color-text-hint:      #aaaaaa;   /* reading time, dates, arrows */
    --color-text-meta:      #828282;   /* stat labels, descriptions */
    --color-text-disabled:  #cccccc;   /* disabled arrows, inactive icons */
    --color-text-placeholder: #9ca3af; /* input placeholders */
    --color-text-table:     #555555;   /* table headers */
    --color-text-section:   #666666;   /* compare section titles */
    --color-text-link:      #6366f1;   /* link color on white bg */

    /* ── Text Colors (light text for dark/gradient surfaces) ── */
    --color-text-on-dark:   #ffffff;
    --color-text-on-dark-muted: rgba(255, 255, 255, 0.7);

    /* ── Accent Colors ── */
    --color-accent-amber:      #d97706;  /* deal/discount accent */
    --color-accent-amber-dark: #b45309;  /* deal code text */
    --color-accent-amber-light:#f59e0b;  /* gold scores, warnings */
    --color-accent-green:      #10b981;  /* success, CTA buttons */
    --color-accent-green-dark: #059669;  /* success hover */

    /* ── Border Colors ── */
    --color-border-light:   #e5e7eb;   /* table row borders, card borders */
    --color-border-mid:     #d1d5db;   /* divider lines */
    --color-border-footer:  #7d8aba;   /* footer link underline */

    /* ── Typography ── */
    --font-family-base:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* ── Border Radius ── */
    --radius-sm:            5px;
    --radius-md:            8px;
    --radius-lg:            12px;
    --radius-xl:            20px;
    --radius-pill:          24px;
    --radius-round:         50px;
}


/* ── Nav Icon Colors ── */
.nav-icon-gold   { color: #f59e0b; }
.nav-icon-brand  { color: #7A95F8; }
.nav-icon-trophy { color: #FFD700; }
.nav-icon-green  { color: #41b618; }
.nav-icon-purple { color: #a78bfa; }
.nav-icon-user   { font-size: 20px; margin-right: 4px; }

/* Nav search bar compact style */
.search--nav {
    padding: 1px 15px !important;
    width: 90%;
}

/* Text helper: white at 85% opacity */
.text-white-85 {
    color: rgba(255, 255, 255, 0.85);
}

/* ════════════════════════════════════════════════════════════════
   LAYOUT (from layout.css)
   ════════════════════════════════════════════════════════════════ */

/* Global link styling: white on gradient background, never default blue */
a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #fff;
    text-decoration: none;
}

/* Dark link color for light/white-background containers */
.tab-content a,
.firm-card a,
.review-card a,
.payout-card a,
.profile-card a,
.blog-card__body a,
.blog-card a,
.blog-featured a,
.blog-newsletter a,
.blog-tool-link,
.quick-link-card,
.hot-deal-card,
.top-rated-card a,
.trending-card,
.blog-card-home,
.finder-cta-inner a,
.firm-hero a,
.firm-challenges-table a,
.firm-reviews-header a,
.firm-review-card a,
.firm-about-card a,
.firm-about-card-full a,
.firm-bd-card a,
.firm-stat-card a,
.firm-bottom-cta a,
.firm-no-reviews a,
.firm-table-scroll a,
.suggestions a,
.search-results a,
.search-results .result a,
.pulse-sidebar-card a,
.pulse-alert-card a,
.pulse-event__card a,
.pulse-firm-filter-active a,
.pulse-empty a,
.pulse-filters a,
.pulse-pagination a,
.alt-firm-grid a,
.alt-cta a,
.altshow-source a,
.altshow-card a,
.altshow-vs a,
.altshow-related a,
.altshow-table a {
    color: #6366f1;
}

.tab-content a:hover,
.firm-card a:hover,
.review-card a:hover,
.payout-card a:hover,
.profile-card a:hover,
.blog-card__body a:hover,
.blog-card a:hover,
.blog-featured a:hover,
.blog-newsletter a:hover,
.firm-hero a:hover,
.firm-challenges-table a:hover,
.firm-reviews-header a:hover,
.firm-review-card a:hover,
.firm-about-card a:hover,
.firm-about-card-full a:hover,
.firm-bd-card a:hover,
.firm-stat-card a:hover,
.firm-bottom-cta a:hover,
.firm-no-reviews a:hover,
.firm-table-scroll a:hover,
.pulse-sidebar-card a:hover,
.pulse-alert-card a:hover,
.pulse-event__card a:hover,
.pulse-firm-filter-active a:hover,
.pulse-empty a:hover,
.pulse-filters a:hover,
.pulse-pagination a:hover,
.alt-firm-grid a:hover,
.alt-cta a:hover,
.altshow-source a:hover,
.altshow-card a:hover,
.altshow-vs a:hover,
.altshow-related a:hover,
.altshow-table a:hover {
    color: var(--color-primary-dark);
}

.btn-block,
.frmbtn {
    color: white !important;
}

/* Ensure gradient buttons keep white text in light containers */
.firm-hero .firm-visit-btn,
.firm-hero .firm-promo-code,
.firm-hero .firm-promo-use-btn,
.firm-bottom-cta .firm-visit-btn,
.firm-table-scroll .firm-table__get-started-btn,
.firm-table-scroll .firm-table__view-btn,
.firm-table-scroll .firm-table__promo-btn {
    color: #fff !important;
}

.img_data {
    width: 60px !important;
}

.about_img {
    width: 32px !important;
}

.search-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

#searchInput {
    width: 100%;
    border-radius: 50px;
    padding: 10px 20px;
    border: 2px solid white;
    background-color: white;
    font-size: 16px;
    color: #333;
    z-index: 2;
}

.suggestions {
    position: absolute;
    width: 92%;
    background-color: white;
    border: none;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    top: 64px;
    left: 16px;
    z-index: 10000;
}

.suggestions li {
    padding: 10px;
    cursor: pointer;
    color: #333;
}

.suggestions li:hover {
    background-color: #f1f1f1;
    color: #1a1a2e;
}

.suggestions a {
    color: #333;
}

.suggestions a:hover {
    color: #1a1a2e;
}

.footer-version {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
}

.footer-version a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    border-bottom: none;
}

.footer-version a:hover {
    color: rgba(255, 255, 255, 0.6);
}


/* ════════════════════════════════════════════════════════════════
   BREADCRUMBS (from breadcrumbs.css)
   ════════════════════════════════════════════════════════════════ */

.pfm-breadcrumbs {
    margin-bottom: 8px;
}

.pfm-breadcrumbs__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.pfm-breadcrumbs__item {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    line-height: 1;
}

.pfm-breadcrumbs__separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
    font-size: 0.75rem;
}

.pfm-breadcrumbs__link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pfm-breadcrumbs__link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.pfm-breadcrumbs__link i {
    font-size: 0.9rem;
}

.pfm-breadcrumbs__current {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .pfm-breadcrumbs {
        margin-bottom: 6px;
    }

    .pfm-breadcrumbs__item {
        font-size: 0.75rem;
    }

    .pfm-breadcrumbs__current {
        max-width: 160px;
    }
}


/* ════════════════════════════════════════════════════════════════
   PFM SCORE BADGES (from pfm-score.css)
   ════════════════════════════════════════════════════════════════ */

.pfm-score-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6453CA 0%, #7A95F8 100%);
    box-shadow: 0 2px 8px rgba(100, 83, 202, 0.35);
    z-index: 2;
}

.pfm-score-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.pfm-score-label {
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-top: 2px;
}

.pfm-score-badge-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6453CA 0%, #7A95F8 100%);
    box-shadow: 0 2px 10px rgba(100, 83, 202, 0.3);
    min-width: 56px;
}

.pfm-score-value-lg {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.pfm-score-label-sm {
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-top: 3px;
}

.pfm-score-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.pfm-score-bar {
    flex-grow: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.pfm-score-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #6453CA 0%, #7A95F8 100%);
    transition: width 0.6s ease;
}

.pfm-score-inline {
    font-size: 14px;
    font-weight: 700;
    color: #6453CA;
    min-width: 32px;
    text-align: right;
}

.top-rated-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.top-rated-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.top-rated-card .firm-logo-sm {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
}

.top-rated-card .firm-name {
    color: #1a1a2e;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.top-rated-card .firm-name:hover {
    color: #6366f1;
    text-decoration: none;
}

.top-rated-rank {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    min-width: 20px;
}

@media (max-width: 576px) {
    .pfm-score-badge {
        padding: 4px 8px;
    }

    .pfm-score-value {
        font-size: 15px;
    }

    .pfm-score-label {
        font-size: 8px;
    }

    .pfm-score-badge-detail {
        padding: 6px 8px;
    }

    .pfm-score-value-lg {
        font-size: 18px;
    }
}


/* ════════════════════════════════════════════════════════════════
   ACCESSIBILITY (from accessibility.css)
   ════════════════════════════════════════════════════════════════ */

.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 12px 24px;
    background: #fff;
    color: #1f2937;
    font-weight: 700;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus-visible {
    outline: 2px solid rgba(122, 149, 248, 0.8);
    outline-offset: 2px;
    border-radius: 4px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(122, 149, 248, 0.8);
    outline-offset: 2px;
}

.menu a:focus-visible,
.menu button:focus-visible,
.quick-link-card:focus-visible,
.popular-firm-chip:focus-visible,
.top-rated-card a:focus-visible,
.finder-cta-btn:focus-visible,
footer a:focus-visible {
    outline-color: rgba(255, 255, 255, 0.9);
}

.firm-card__cta:focus-visible {
    outline-color: #fff;
    outline-offset: -2px;
}

.search-box input:focus-visible,
#searchInput:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(122, 149, 248, 0.5);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: inherit;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s ease;
}

.suggestion-item:hover {
    background: #f1f1f1;
    text-decoration: none;
    color: #333;
}

.suggestion-item__logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   LINK SECTION BACKGROUNDS
   Ensures containers with navigation links have non-transparent
   backgrounds for visual consistency and test compliance.
   ════════════════════════════════════════════════════════════════ */

/* Footer columns */
.footer-col {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 14px;
    border-radius: 10px;
}

/* Homepage containers — subtle background for link section styling */
.quick-links,
.popular-firms-grid,
.trending-grid,
.hot-deals-grid,
.blog-cards-grid,
.pulse-cards {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
}

/* Firm filters and sorting */
.firm-filter-group__pills,
.firm-sort-pills,
.account-size-filter__pills {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px;
}

/* Blog containers — subtle background for link section styling */
.blog-tools,
.blog-grid {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
}

/* Map country firms */
.country-card-firms,
.country-firms {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px;
}

/* Calendar filters */
.cal-filter-group {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px;
}

/* VS comparison grids */
.vs-popular-grid,
.vs-type-chips,
.vs-more-chips,
.vs-all-firms {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
}

/* Compare page link grids */
.cmp-suggestion-grid,
.cmp-crosslinks-grid {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
}

/* Category grid (best page) */
.cat-grid {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
}

/* Awards & Funded Calculator CTA buttons */
.awards-cta__buttons,
.fc-cta-buttons {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
}

/* Deal category page containers */
.deal-cat-grid,
.deal-top-firms,
.deals-grid {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
}

/* Deals page link sections */
.deals-browse-grid,
.dcat-nav,
.dcat-categories-grid,
.dcat-cta__links,
.nav-tabs,
.dfp-faq {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
}

/* Awards page link sections */
.awards-nav,
.awards-category__more {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
}

/* Firm view containers */
.firm-table-container,
.firm-cards-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
}

/* Challenge compare, search, and other dynamic result containers */
.cc-results,
.search-results-grid,
.account-sizes-grid {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
}

/* Pulse page link sections */
.pulse-filters,
.pulse-sidebar-cta__links,
.pulse-sidebar-card__list {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
}

/* Reports page link sections */
.reports-grid,
.reports-cta__links {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
}

/* Glossary page link sections */
.glossary-letters,
.glossary-categories,
.glossary-letter-group,
.glossary-cta__buttons,
.glossary-related-grid,
.glossary-category-list,
.glossary-firm-list,
.glossary-sidebar__card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
}


/* ════════════════════════════════════════════════════════════════
   DARK BACKGROUND LINK SAFETY
   Ensures all links on dark/gradient backgrounds are visible.
   ════════════════════════════════════════════════════════════════ */
.dfp-faq__a a,
.deals-empty a,
.awards-empty a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dfp-faq__a a:hover,
.deals-empty a:hover,
.awards-empty a:hover {
    color: rgba(255,255,255,0.8);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ════════════════════════════════════════════════════════════════
   COOKIE CONSENT (from cookie-consent.css)
   ════════════════════════════════════════════════════════════════ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.visible {
    transform: translateY(0);
}

.cookie-consent__inner {
    max-width: 900px;
    margin: 0 auto 20px;
    background: rgba(30, 20, 60, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

.cookie-consent__text {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-family-base);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent__text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-consent__text a:hover {
    color: #fff;
}

.cookie-consent__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent__btn {
    font-family: var(--font-family-base);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.cookie-consent__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cookie-consent__btn--accept {
    background: var(--color-primary);
    color: #fff;
}

.cookie-consent__btn--decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent__btn--decline:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 576px) {
    .cookie-consent__inner {
        flex-direction: column;
        margin: 0 10px 10px;
        padding: 16px 20px;
        gap: 14px;
    }

    .cookie-consent__text {
        font-size: 13px;
        text-align: center;
    }

    .cookie-consent__actions {
        width: 100%;
        justify-content: center;
    }
}


/* ════════════════════════════════════════════════════════════════
   FEEDBACK WIDGET (from feedback-widget.css)
   ════════════════════════════════════════════════════════════════ */

.feedback-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.55);
}

.feedback-fab svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.feedback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.feedback-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feedback-modal {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    background: rgba(30, 15, 60, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    z-index: 9999;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.feedback-modal.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.feedback-modal__header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback-modal__title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.feedback-modal__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.feedback-modal__close:hover {
    color: #fff;
}

.feedback-modal__body {
    padding: 16px 20px 20px;
}

.feedback-types {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.feedback-type-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.feedback-type-btn:hover {
    border-color: rgba(168, 85, 247, 0.5);
    color: #fff;
}

.feedback-type-btn.selected {
    background: rgba(168, 85, 247, 0.25);
    border-color: #a855f7;
    color: #fff;
}

.feedback-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.15s;
}

.feedback-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.feedback-textarea:focus {
    outline: none;
    border-color: #a855f7;
}

.feedback-email {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 13px;
    margin-top: 10px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.feedback-email::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.feedback-email:focus {
    outline: none;
    border-color: #a855f7;
}

.feedback-submit {
    width: 100%;
    padding: 10px;
    margin-top: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.feedback-submit:hover {
    opacity: 0.9;
}

.feedback-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback-error {
    color: #f87171;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.feedback-error.visible {
    display: block;
}

.feedback-success {
    text-align: center;
    padding: 32px 20px;
}

.feedback-success__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feedback-success__icon svg {
    width: 28px;
    height: 28px;
    fill: #22c55e;
}

.feedback-success__title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feedback-success__text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.feedback-charcount {
    text-align: right;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
}

@media (max-width: 576px) {
    .feedback-modal {
        right: 8px;
        bottom: 80px;
        width: calc(100vw - 16px);
    }

    .feedback-fab {
        bottom: 16px;
        right: 16px;
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .feedback-fab svg {
        width: 18px;
        height: 18px;
    }
}


/* ════════════════════════════════════════════════════════════════
   NEWSLETTER (from newsletter.css)
   ════════════════════════════════════════════════════════════════ */

.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    width: 100%;
}

.newsletter-form__input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.newsletter-form__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form__input:focus {
    border-color: rgba(122, 149, 248, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.newsletter-form__btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7A95F8, #6366f1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.newsletter-form__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(122, 149, 248, 0.4);
}

.newsletter-form__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.newsletter-form__btn i {
    margin-right: 6px;
}

.newsletter-alert {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-top: 8px;
    max-width: 480px;
}

.newsletter-alert--success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.newsletter-alert--error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.newsletter-cta {
    text-align: center;
    padding: 48px 24px;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.newsletter-cta__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(122, 149, 248, 0.2), rgba(99, 102, 241, 0.2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.newsletter-cta__icon i {
    font-size: 24px;
    color: #7A95F8;
}

.newsletter-cta__title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.newsletter-cta__subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-cta .newsletter-form {
    margin: 0 auto;
    justify-content: center;
}

.newsletter-cta .newsletter-alert {
    margin-left: auto;
    margin-right: auto;
}

.newsletter-cta__privacy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
}

.newsletter-cta__privacy a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
}

.footer-newsletter {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.footer-newsletter__sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 12px;
    line-height: 1.5;
    max-width: 520px;
}

.footer-newsletter .newsletter-form__input {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 10px;
}

.footer-newsletter .newsletter-form__btn {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 10px;
}

.newsletter-sidebar {
    padding: 24px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 32px;
}

.newsletter-sidebar__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.newsletter-sidebar__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 16px;
}

.newsletter-sidebar .newsletter-form {
    flex-direction: column;
}

.newsletter-sidebar .newsletter-form__input {
    width: 100%;
}

.newsletter-sidebar .newsletter-form__btn {
    width: 100%;
}

.newsletter-unsub-card {
    text-align: center;
    padding: 60px 32px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.newsletter-unsub-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
}

.newsletter-unsub-icon--success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.newsletter-unsub-icon--error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.newsletter-unsub-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.newsletter-unsub-message {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 8px;
}

.newsletter-unsub-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 28px;
}

.newsletter-unsub-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #7A95F8, #6366f1);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-unsub-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(122, 149, 248, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Deals Alert Banner (top of /deals) */
.deals-alert-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.08);
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}

.deals-alert-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(122, 149, 248, 0.04), rgba(99, 102, 241, 0.04));
    pointer-events: none;
}

.deals-alert-banner > * {
    position: relative;
    z-index: 1;
}

.deals-alert-banner__icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7A95F8, #6366f1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.deals-alert-banner__body {
    flex: 1 1 auto;
    min-width: 0;
}

.deals-alert-banner__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.deals-alert-banner__desc {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
    line-height: 1.4;
}

.deals-alert-banner__form {
    flex: 0 1 420px;
    max-width: 420px;
    margin: 0;
}

/* Newsletter CTA Deals Variant */
.newsletter-cta--deals {
    background: linear-gradient(135deg, #fff 0%, #faf9ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.1);
}

.newsletter-cta--deals .newsletter-cta__icon {
    background: linear-gradient(135deg, #7A95F8, #6366f1);
}

.newsletter-cta--deals .newsletter-cta__icon i {
    color: #fff;
}

.newsletter-cta__benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 18px;
}

.newsletter-cta__benefit {
    font-size: 12px;
    font-weight: 500;
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.newsletter-cta__benefit i {
    color: #10b981;
    font-size: 16px;
}

@media (max-width: 860px) {
    .deals-alert-banner {
        flex-wrap: wrap;
    }

    .deals-alert-banner__form {
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 6px;
    }
}

@media (max-width: 520px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form__btn {
        width: 100%;
    }

    .newsletter-cta {
        padding: 32px 16px;
    }

    .newsletter-cta__title {
        font-size: 18px;
    }

    .newsletter-unsub-card {
        padding: 40px 20px;
    }

    .deals-alert-banner {
        padding: 16px;
        gap: 12px;
    }

    .deals-alert-banner__icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .deals-alert-banner__title {
        font-size: 14px;
    }
}

/* ════════════════════════════════════════════════════════════════
   UTILITY CLASSES (extracted from inline styles)
   ════════════════════════════════════════════════════════════════ */
.pt-section { padding-top: 2.5rem; }
.text-muted-gradient { opacity: 0.75; }
.gap-md { gap: 12px; }
.country-flag-sm { width: 20px; height: 14px; border-radius: 2px; vertical-align: middle; }
.icon-sm { font-size: 13px; }

/* ════════════════════════════════════════════════════════════════
   SOCIAL SHARE BUTTONS (reusable component)
   ════════════════════════════════════════════════════════════════ */
.social-share--inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-share__label {
    color: #999;
    font-size: 13px;
    font-weight: 500;
    margin-right: 4px;
}

.social-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--color-border-light, #e5e7eb);
    background: var(--color-surface-warm, #f8f9fa);
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-share__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.social-share__btn--facebook:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.social-share__btn--twitter:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.social-share__btn--linkedin:hover {
    background: #0a66c2;
    color: #fff;
    border-color: #0a66c2;
}

.social-share__btn--copy:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.social-share__btn--copy.copied {
    background: var(--color-success, #10b981);
    color: #fff;
    border-color: var(--color-success, #10b981);
}

.social-share__x-icon {
    width: 16px;
    height: 16px;
}

/* ════════════════════════════════════════════════════════════════
   PUSH NOTIFICATION PROMPT
   ════════════════════════════════════════════════════════════════ */

.push-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.push-prompt--visible {
    transform: translateY(0);
    pointer-events: auto;
}

.push-prompt__inner {
    max-width: 560px;
    margin: 0 auto 20px;
    background: rgba(30, 20, 60, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg, 16px);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

.push-prompt__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    color: #fff;
    animation: pushBell 2s ease-in-out infinite;
}

@keyframes pushBell {
    0%, 80%, 100% { transform: rotate(0deg); }
    85% { transform: rotate(8deg); }
    90% { transform: rotate(-8deg); }
    95% { transform: rotate(4deg); }
}

.push-prompt__text {
    flex: 1;
    min-width: 0;
}

.push-prompt__text strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.push-prompt__text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.4;
}

.push-prompt__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.push-prompt__btn {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-md, 8px);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.push-prompt__btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.push-prompt__btn--yes {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
}

.push-prompt__btn--no {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.push-prompt__btn--no:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 576px) {
    .push-prompt__inner {
        flex-wrap: wrap;
        margin: 0 10px 10px;
        padding: 16px;
        gap: 12px;
    }
    .push-prompt__text { flex-basis: calc(100% - 60px); }
    .push-prompt__actions { width: 100%; justify-content: center; }
}


/* ════════════════════════════════════════════════════════════════
   SCROLL TO TOP BUTTON
   ════════════════════════════════════════════════════════════════ */

.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-surface-card, #fff);
    border: 1px solid var(--color-border-light, #e5e7eb);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: var(--color-text-secondary, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s ease,
                box-shadow 0.2s ease;
    z-index: 999;
    font-size: 20px;
    line-height: 1;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--color-primary, #6366f1);
    color: #fff;
    border-color: var(--color-primary, #6366f1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

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

@media (max-width: 576px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 16px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 18px;
    }
}

/* ---- OFFER URGENCY PILL ----
   Rendered by resources/views/partials/offer-urgency-pill.blade.php whenever
   an offer's expires_at is within the next 14 days. Used on firm show page,
   /deals index, /deals/{slug}, and homepage hot-deals. Shared here so every
   surface gets identical visuals without duplicating CSS. */
.offer-urgency-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-urgency-pill i {
    font-size: 14px;
    line-height: 1;
}

.offer-urgency-pill--sm {
    padding: 3px 8px;
    font-size: 11px;
    gap: 4px;
}

.offer-urgency-pill--sm i {
    font-size: 12px;
}

.offer-urgency-pill--amber {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.offer-urgency-pill--red {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.35);
    animation: offer-urgency-pulse 1.8s ease-in-out infinite;
}

@keyframes offer-urgency-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
    50%      { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* Home hot-deal card hosts the pill below the code line — keep it spaced. */
.hot-deal-card .offer-urgency-pill {
    margin-top: 6px;
    align-self: flex-start;
}
