/* ===========================================
   Provider Page Styles
   Uses CSS variable --provider-color for theming
   =========================================== */

/* Provider color defaults (overridden per page — the single functional accent) */
:root {
    --provider-color: #0072f5;
    --provider-light: color-mix(in srgb, var(--provider-color) 12%, white);
    --provider-dark: color-mix(in srgb, var(--provider-color) 85%, black);
}

.site-content {
    width: 100%;
}

.main-content {
    width: 100%;
}

/* Timer redirect page styles */
.bill-form-centered {
    text-align: center;
}

.bill-form-description {
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.redirect-icon {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

.timer-message {
    margin-top: 15px;
    color: var(--provider-color);
    font-weight: 500;
    display: none;
}

/* Calculator no-result placeholder */
.no-result-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.no-result-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Bill Check Section */
.bill-check-section {
    background: var(--card-bg, white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 920px;
    margin: 2.5rem auto;
    overflow: hidden;
    border: none;
}

/* Provider hero: white surface, thin provider-color top accent (functional marker) */
.bill-header {
    background: var(--card-bg, white);
    color: var(--text);
    padding: 3.5rem 2.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--provider-color);
    box-shadow: inset 0 -1px 0 var(--border-color);
}

.bill-header svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    padding: 0.85rem;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--provider-color) 10%, white);
    color: var(--provider-color);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--provider-color) 18%, transparent);
}

.bill-header h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: var(--provider-heading-color);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.bill-header p {
    font-size: 1.1rem;
    margin: 0 auto;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 500px;
    line-height: 1.6;
}

/* Bill Form */
.bill-form {
    padding: 2.5rem 2rem;
    max-width: 520px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 1.75rem;
}

.input-group label {
    display: block;
    color: var(--text, #1f2937);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group label::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--provider-color);
    border-radius: 2px;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color, #ebebeb);
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 400;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--card-bg, white);
    color: var(--text, #171717);
}

.search-input:focus {
    border-color: var(--provider-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--provider-color) 14%, transparent);
}

.search-input::placeholder {
    color: var(--text-muted, #9ca3af);
    font-weight: 400;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--provider-color);
    color: var(--provider-contrast);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), filter var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.submit-btn:hover {
    background: var(--provider-color);
    filter: brightness(0.9);
}

.submit-btn:active {
    transform: translateY(1px);
}

.submit-btn svg {
    width: 22px;
    height: 22px;
}

/* Providers Section */
.providers-section {
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
}

.providers-section h2 {
    color: var(--text, #1f2937);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.providers-section>p {
    text-align: center;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 2rem;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.provider-card {
    background: var(--card-bg, white);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--provider-color);
    opacity: 0;
    transition: opacity var(--transition);
}

.provider-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.provider-card:hover::before {
    opacity: 1;
}

.provider-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.provider-logo {
    width: 44px;
    height: 44px;
    background: var(--provider-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.provider-logo svg {
    width: 22px;
    height: 22px;
}

.provider-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text, #1f2937);
    font-weight: 600;
}

.provider-info .region {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: color-mix(in srgb, var(--provider-color) 8%, #f9fafb);
    color: var(--text-secondary, #4d4d4d);
    border: 1px solid color-mix(in srgb, var(--provider-color) 15%, #e5e7eb);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.provider-details {
    color: var(--text-secondary, #6b7280);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.provider-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: var(--provider-color);
    color: var(--provider-contrast, white);
    border-radius: var(--radius-sm, 8px);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition, 0.18s ease);
}

.provider-link:hover {
    background: var(--provider-color);
    color: var(--provider-contrast, white) !important;
    filter: brightness(0.9);
    transform: translateX(4px);
}

.provider-link svg {
    width: 16px;
    height: 16px;
}

/* Reference Guide */
.reference-guide {
    background: var(--card-bg, white);
    border-radius: 24px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color, #e5e7eb);
}

.reference-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reference-icon {
    width: 48px;
    height: 48px;
    background: var(--provider-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.reference-icon svg {
    width: 24px;
    height: 24px;
}

.reference-title h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text, #1f2937);
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--secondary-color, #f9fafb);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.step-item:hover {
    background: var(--provider-light);
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--provider-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    color: var(--text, #374151);
    font-size: 0.9rem;
}

/* Info Container */
.info-container {
    background: var(--secondary-color, linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%));
    border-radius: 24px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color, #e5e7eb);
}

.info-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--provider-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-title h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text, #1f2937);
}

.info-title p {
    margin: 0;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--card-bg, white);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--card-border, rgba(0, 0, 0, 0.06));
    box-shadow: var(--shadow-sm);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-card-header .card-icon {
    width: 36px;
    height: 36px;
    background: var(--provider-color);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-header .card-icon svg {
    width: 18px;
    height: 18px;
}

.card-title {
    margin: 0;
    font-size: 1rem;
    color: var(--text, #1f2937);
    font-weight: 600;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--text, #374151);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li svg {
    width: 16px;
    height: 16px;
    color: var(--provider-color);
    flex-shrink: 0;
}

.contact-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--provider-color);
    color: var(--provider-contrast);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease, filter 0.3s ease;
}

.contact-link:hover {
    background: var(--provider-color);
    filter: brightness(0.9);
}

.contact-link svg {
    width: 14px;
    height: 14px;
}

/* Bill Info Sections */
.bill-info-sections {
    max-width: 900px;
    margin: 2rem auto;
    display: grid;
    gap: 1.5rem;
}

.quick-access-section,
.bill-info-box {
    background: var(--card-bg, white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color, #e5e7eb);
}

.quick-access-section h2,
.bill-info-box h2 {
    color: var(--text);
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.quick-access-section p,
.bill-info-box p {
    color: var(--text-secondary, #6b7280);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.quick-access-section a,
.bill-info-box a {
    color: var(--provider-color);
    text-decoration: none;
    font-weight: 500;
}

.quick-access-section a:hover,
.bill-info-box a:hover {
    text-decoration: underline;
}

.how-to-check,
.why-choose {
    margin-top: 1.5rem;
}

.how-to-check h3,
.why-choose h3 {
    color: var(--text, #1f2937);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.why-choose ul,
.bill-info-box ul {
    list-style: none;
    padding: 0;
}

.why-choose li,
.bill-info-box li {
    color: var(--text, #374151);
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.why-choose li::before,
.bill-info-box li::before {
    content: "✓";
    color: var(--provider-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* FAQ Section */
.faq-section {
    background: var(--card-bg, white);
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
    border: 1px solid var(--border-color, #e5e7eb);
}

.faq-section h2 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    color: var(--text, #1f2937);
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 1.25rem;
    background: var(--secondary-color, #f9fafb);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--provider-light);
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--provider-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.7;
    background: var(--card-bg, white);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
    max-height: 500px;
    padding: 1rem 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {

    .bill-check-section {
        width: auto;
        max-width: calc(100vw - 2rem);
        margin: 1rem auto;
        border-radius: 16px;
        overflow: hidden;
    }

    .bill-header {
        padding: 2rem 1.5rem;
    }

    /* Constrain animated pseudo-elements on mobile */
    .bill-header::before {
        left: 0;
        width: 100%;
        animation: none;
    }

    .bill-header::after {
        right: -40px;
        bottom: -40px;
        width: 120px;
        height: 120px;
        border-width: 20px;
    }

    .providers-section,
    .reference-guide,
    .info-container,
    .bill-info-sections,
    .faq-section {
        margin: 1rem;
        border-radius: 16px;
    }

    .bill-form {
        padding: 1.5rem;
    }

    .providers-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
    }

    /* Touch-Friendly Tap Targets for Mobile */
    .provider-link {
        padding: 1rem 1.25rem;
        min-height: 48px;
    }

    .submit-btn {
        min-height: 56px;
    }

    .faq-question {
        min-height: 56px;
        padding: 1.25rem;
    }

    /* Sticky Submit Button on Mobile - Removed Fixed Positioning */
    .bill-form {
        padding-bottom: 0;
    }

    .bill-form .submit-btn {
        position: relative;
        margin-top: 1rem;
        border-radius: 14px;
        width: 100%;
    }
}

/* ===========================================
   Provider Logo Images
   =========================================== */
.provider-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.provider-logo.has-image {
    background: white;
    padding: 4px;
}

/* ===========================================
   Skeleton Loading Animation
   =========================================== */
.skeleton {
    background: linear-gradient(90deg,
            var(--skeleton-base, #f0f0f0) 25%,
            var(--skeleton-shine, #e0e0e0) 50%,
            var(--skeleton-base, #f0f0f0) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite ease-in-out;
    border-radius: 8px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-button {
    height: 56px;
    width: 100%;
    border-radius: 16px;
}

.skeleton-card {
    height: 180px;
    border-radius: 20px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Dark mode skeleton colors */
@media (prefers-color-scheme: dark) {
    .skeleton {
        --skeleton-base: #2d2d2d;
        --skeleton-shine: #3d3d3d;
    }
}

/* ===========================================
   Focus States for Accessibility
   =========================================== */
.submit-btn:focus-visible,
.provider-link:focus-visible,
.search-input:focus-visible,
.contact-link:focus-visible {
    outline: 3px solid var(--provider-color);
    outline-offset: 3px;
}

.faq-question:focus-visible,
details summary:focus-visible {
    outline: 3px solid var(--provider-color);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--provider-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0 0 12px 12px;
    z-index: 9999;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ===========================================
   Prefers Reduced Motion Support
   =========================================== */
@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;
    }

    .bill-header::before {
        animation: none;
    }

    .skeleton {
        animation: none;
        background: var(--skeleton-base, #f0f0f0);
    }
}

/* ===========================================
   Recent Searches
   =========================================== */
.recent-searches {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-subtle);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px var(--card-border);
}

.recent-searches-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.recent-searches-header h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary, #374151);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.01em;
}

/* Professional clock/history icon */
.recent-searches-header h4::before {
    content: '';
    display: inline-flex;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--provider-color), var(--provider-dark));
    border-radius: 6px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    -webkit-mask-size: 16px;
    mask-size: 16px;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    flex-shrink: 0;
}

.recent-searches-header h4 svg {
    display: none;
    /* Hide old SVG, using CSS icon instead */
}

.clear-history-btn {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.clear-history-btn::before {
    content: '×';
    font-size: 1rem;
    line-height: 1;
}

.clear-history-btn:hover {
    color: white;
    background: #ef4444;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.recent-searches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.recent-search-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem 0.6rem 0.75rem;
    background: white;
    color: var(--provider-color);
    border: 1px solid color-mix(in srgb, var(--provider-color) 25%, transparent);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
}

/* Bill icon before reference number */
.recent-search-item::before {
    content: '';
    display: inline-flex;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--provider-light), color-mix(in srgb, var(--provider-color) 30%, white));
    border-radius: 8px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
    -webkit-mask-size: 18px;
    mask-size: 18px;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    flex-shrink: 0;
}

.recent-search-item:hover {
    background: var(--provider-color);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.recent-search-item:hover::before {
    background: rgba(255, 255, 255, 0.25);
}

.recent-search-item svg {
    display: none;
    /* Using CSS icons instead */
}

.recent-search-item .remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    color: inherit;
    transition: all 0.2s ease;
    margin-left: 0.25rem;
}

.recent-search-item .remove-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    color: white;
    transform: scale(1.1);
}

.recent-search-item:hover .remove-btn {
    background: rgba(255, 255, 255, 0.2);
}

.recent-search-item:hover .remove-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.no-recent-searches {
    color: var(--text-muted, #9ca3af);
    font-size: 0.9rem;
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.no-recent-searches::before {
    content: '📋';
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .recent-searches {
        margin-top: 1rem;
        padding: 0.875rem;
        border-radius: 12px;
    }

    .recent-searches-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding-bottom: 0.875rem;
        margin-bottom: 0.875rem;
    }

    .recent-searches-header h4 {
        font-size: 0.9rem;
    }

    .clear-history-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.65rem;
        width: 100%;
        justify-content: center;
    }

    .recent-searches-list {
        gap: 0.5rem;
    }

    .recent-search-item {
        padding: 0.5rem 0.75rem 0.5rem 0.6rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .recent-search-item::before {
        font-size: 0.9rem;
    }

    .recent-search-item .delete-btn {
        width: 20px;
        height: 20px;
        font-size: 0.9rem;
    }

    .no-recent-searches {
        padding: 1.25rem 0.875rem;
        font-size: 0.85rem;
    }
}


/* Hide recent searches when empty */
.recent-searches:empty,
.recent-searches.hidden {
    display: none;
}