/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #111827;
    line-height: 1.5;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo svg {
    display: block;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
}

.nav-main a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

.nav-main a::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    right: 0;
    height: 3px;
    background: #2563eb;
    transform: scaleX(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-main a:hover {
    color: #111827;
}

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

.nav-highlighted {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff !important;
    padding: 7px 14px;
    border-radius: 18px;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.nav-highlighted::after {
    display: none;
}

.nav-highlighted:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: nowrap;
}

.user-greeting {
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.btn-icon-only {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.btn-icon-only:hover {
    color: #111827;
    background: #f3f4f6;
}

.btn-user-account svg {
    width: 26px;
    height: 26px;
}

.btn-menu {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.btn-menu:hover {
    background: #f3f4f6;
}

.btn-menu span:not(.notification-badge) {
    width: 24px;
    height: 2px;
    background: #374151;
    display: block;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.btn-menu:hover span:not(.notification-badge) {
    background: #111827;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #8b5cf6;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, transparent 60%);
}

@media (max-width: 768px) {
    .hero-background::after {
        background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* Search Card */
.search-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 36px;
    max-width: 520px;
    width: 100%;
}

.search-card h1 {
    font-size: 44px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 28px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.search-tabs {
    display: flex;
    gap: 0;
    border-bottom: 3px solid #e5e5e5;
    margin-bottom: 24px;
}

.search-tabs .tab {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.search-tabs .tab.active {
    color: #111827;
    border-bottom-color: #111827;
}

.search-tabs .tab:hover {
    color: #374151;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-input-main {
    position: relative;
    width: 100%;
}

.search-input-main input {
    width: 100%;
    padding: 15px 48px 15px 18px;
    border: 2px solid #d1d5db;
    border-radius: 28px;
    font-size: 15px;
    color: #111827;
    outline: none;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-main input:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.search-input-main input::placeholder {
    color: #9ca3af;
}

.search-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #666;
}

.search-divider {
    text-align: center;
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.filter-select {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    background: #ffffff;
    cursor: pointer;
    outline: none;
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-select:hover,
.filter-select:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.filter-group-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group-inline label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.filter-select-small,
.filter-input-small {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    font-size: 15px;
    color: #1a1a1a;
    background: #ffffff;
    cursor: pointer;
    outline: none;
    font-weight: 600;
}

.filter-select-small {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filter-select-small:hover,
.filter-select-small:focus,
.filter-input-small:hover,
.filter-input-small:focus {
    border-color: #666;
}

.btn-primary-purple {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    border: none;
    padding: 17px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.btn-primary-purple:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.btn-primary-purple:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

/* Sponsored Badge */
.sponsored-badge {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 400px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.sponsor-logo svg {
    display: block;
}

.sponsor-text {
    flex: 1;
}

.sponsor-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.sponsor-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* Content Section */
.content-section {
    padding: 60px 0;
    background: #ffffff;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.content-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.deals-card {
    background: #d8ebf0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.deals-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .deals-card {
        background: #dae9ee;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .deals-illustration {
        width: 120px;
        height: 120px;
    }
    
    .deals-illustration svg {
        width: 80px;
        height: 80px;
    }
}

.content-card h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.content-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.4px;
}

.content-card p {
    font-size: 17px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

.content-badge {
    display: inline-block;
    background: #1f2937;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}

.deals-illustration {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.deals-illustration svg {
    width: 90px;
    height: 90px;
}

.deals-content .btn-black-rounded {
    align-self: flex-start;
    margin-top: 4px;
}

.news-image {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 2.2 / 1;
    object-fit: cover;
}

.news-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-black-rounded {
    padding: 15px 34px;
    border: none;
    border-radius: 30px;
    background: #111827;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-black-rounded:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
    padding: 13px 32px;
    border: 2px solid #111827;
    border-radius: 30px;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-outline-white:hover {
    background: #f9fafb;
    border-color: #1f2937;
    color: #1f2937;
    transform: translateY(-1px);
}

/* Categories Section */
.categories-section {
    padding: 56px 0 40px 0;
    background: #ffffff;
}

.section-title-left {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 28px;
    letter-spacing: -0.8px;
}

.categories-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.pill-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 28px;
    background: #f3f4f6;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.pill-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.pill-btn.active {
    background: #111827;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pill-btn-arrow {
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pill-btn-arrow:hover {
    background: #1f2937;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Electric Vehicles Section */
.ev-section {
    padding: 56px 0;
    background: #ffffff;
}

.ev-header {
    margin-bottom: 36px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ev-intro h2 {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: -0.8px;
}

.ev-intro p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.6;
}

.link-underline {
    color: #111827;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-underline:hover {
    color: #6b7280;
    text-decoration-thickness: 2.5px;
}

.ev-grid-layout {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.ev-card-small {
    display: flex;
    flex-direction: column;
}

.ev-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 14px;
    background: #f9fafb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ev-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ev-card-small:hover .ev-card-image img {
    transform: scale(1.08);
}

.ev-card-small h4 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.3;
}

.info-card .ev-card-image {
    background: linear-gradient(135deg, #d0f0ff 0%, #80d8ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-image svg {
    display: block;
}

/* Member Perks Page */
.perks-page {
    min-height: 100vh;
    background: #ffffff;
    padding-bottom: 60px;
}

.perks-page-header {
    background: #ffffff;
    padding: 40px 0 48px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 48px;
    text-align: center;
}

.perks-page-header h1 {
    margin: 0 0 12px 0;
    font-size: 40px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.8px;
}

.perks-page-header p {
    margin: 0;
    font-size: 18px;
    color: #6b7280;
    font-weight: 400;
}

.perks-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 32px;
    gap: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #663399;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.perks-loading p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    padding: 0;
    margin-top: 40px;
}

.perk-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.perk-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #8b5cf6;
}

.perk-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.perk-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.perk-card:hover .perk-image img {
    transform: scale(1.05);
}

.loyalty-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #111827;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.perk-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.perk-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.perk-content p {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
}

.loyalty-req {
    background: #fef3c7;
    color: #92400e;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px !important;
    font-weight: 600;
    border-left: 3px solid #f59e0b;
}

.perk-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.perk-btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.perk-btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.perk-btn-save {
    background: #ffffff;
    color: #8b5cf6;
    border: 2px solid #8b5cf6;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.perk-btn-save:hover {
    background: #f3e8ff;
}

.perk-btn-save:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

.no-perks {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #6b7280;
}

/* Section Headers for Visual Hierarchy */
.perks-section-header {
    margin: 0 0 32px 0;
}

.perks-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    letter-spacing: -0.4px;
}

.perks-section-header p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.filter-chip {
    padding: 8px 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: #663399;
    color: #663399;
    background: #f9fafb;
}

.filter-chip.active {
    background: #663399;
    border-color: #663399;
    color: #ffffff;
}

.filter-chip.active:hover {
    background: #552288;
    border-color: #552288;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #0a0f1e 100%);
    color: #ffffff;
    padding: 68px 0 32px;
    margin-top: 48px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 22px;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 14px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer-section a:hover {
    color: #60a5fa;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    
    .search-card {
        max-width: 100%;
    }
    
    .sponsored-badge {
        max-width: 100%;
    }
    
    .ev-grid-layout {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .nav-main {
        gap: 12px;
    }
    
    .nav-main a {
        font-size: 13px;
    }
    
    .nav-highlighted {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .perks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .perks-page-header {
        padding: 32px 0 40px 0;
    }
    
    .perks-page-header h1 {
        font-size: 36px;
        letter-spacing: -0.6px;
    }
    
    .perks-page-header p {
        font-size: 17px;
    }
    
    .header-content {
        flex-wrap: nowrap;
    }
    
    .nav-main {
        display: none;
    }
    
    .logo svg {
        width: 120px;
        height: 42px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-card {
        padding: 36px 28px;
    }
    
    .deals-card {
        flex-direction: column;
        text-align: left;
        gap: 24px;
    }
    
    .deals-illustration {
        align-self: center;
    }
    
    .deals-content {
        gap: 16px;
    }
    
    .ev-grid-layout {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Perks Page Mobile */
    .perks-page-header {
        padding: 28px 0 36px 0;
        margin-bottom: 32px;
    }
    
    .perks-page-header h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
    
    .perks-page-header p {
        font-size: 16px;
    }
    
    .perks-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 0;
    }
    
    .perk-image {
        height: 180px;
        padding: 14px;
    }
    
    .perk-actions {
        flex-direction: column;
    }
    
    .perk-btn-primary,
    .perk-btn-save {
        width: 100%;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .header-content {
        gap: 16px;
    }
    
    /* Hide main navigation on mobile */
    .nav-main {
        display: none;
    }
    
    .logo svg {
        width: 110px;
        height: 38px;
    }
    
    .user-greeting {
        font-size: 13px;
    }
    
    .header-actions {
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .user-greeting {
        display: none;
    }
    
    .nav-highlighted {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: auto;
    }
    
    .hero-content-wrapper {
        padding: 24px 16px;
        gap: 20px;
    }
    
    .search-card {
        padding: 24px 20px;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }
    
    .search-card h1 {
        font-size: 28px;
        margin-bottom: 20px;
        letter-spacing: -0.5px;
    }
    
    .search-tabs .tab {
        font-size: 14px;
        padding: 12px 12px;
    }
    
    .search-input-main input {
        font-size: 14px;
        padding: 13px 44px 13px 16px;
    }
    
    .search-divider {
        font-size: 12px;
        margin: 4px 0;
    }
    
    .filter-group label,
    .filter-group-inline label {
        font-size: 11px;
    }
    
    .filter-select,
    .filter-select-small,
    .filter-input-small {
        font-size: 14px;
        padding: 11px 14px;
    }
    
    .btn-primary-purple {
        font-size: 15px;
        padding: 15px 24px;
    }
    
    /* Sponsored Badge Mobile */
    .sponsored-badge {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .sponsor-logo svg {
        width: 50px;
        height: 50px;
    }
    
    .sponsor-title {
        font-size: 13px;
    }
    
    .sponsor-subtitle {
        font-size: 11px;
    }
    
    /* Content Sections Mobile */
    .content-section {
        padding: 40px 0;
    }
    
    .content-grid {
        gap: 16px;
    }
    
    .content-card {
        padding: 32px 24px;
        border-radius: 14px;
    }
    
    .content-card h2 {
        font-size: 28px;
    }
    
    .content-card h3 {
        font-size: 24px;
    }
    
    .content-card p {
        font-size: 16px;
    }
    
    .deals-content {
        gap: 14px;
    }
    
    .news-image {
        margin: 20px 0;
    }
    
    .deals-illustration {
        width: 110px;
        height: 110px;
    }
    
    .deals-illustration svg {
        width: 75px;
        height: 75px;
    }
    
    .news-image {
        margin: 20px 0;
        border-radius: 12px;
    }
    
    .news-actions {
        gap: 10px;
        flex-direction: column;
    }
    
    .btn-black-rounded,
    .btn-outline-white {
        width: 100%;
        text-align: center;
        padding: 13px 24px;
        font-size: 14px;
    }
    
    /* Categories Mobile */
    .categories-section {
        padding: 40px 0 32px 0;
    }
    
    .section-title-left {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .categories-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .categories-pills::-webkit-scrollbar {
        display: none;
    }
    
    .pill-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    /* EV Section Mobile */
    .ev-section {
        padding: 40px 0;
    }
    
    .ev-intro h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }
    
    .ev-intro p {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .link-underline {
        font-size: 14px;
    }
    
    .ev-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .ev-card-image {
        height: 140px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .ev-card-small h4 {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 48px 0 24px;
        margin-top: 32px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        margin-bottom: 32px;
    }
    
    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .footer-section li {
        margin-bottom: 10px;
    }
    
    .footer-section a {
        font-size: 13px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .logo svg {
        width: 95px;
        height: 33px;
    }
    
    .user-greeting {
        font-size: 12px;
    }
    
    .hero-content-wrapper {
        padding: 20px 12px;
    }
    
    .search-card {
        padding: 20px 16px;
    }
    
    .search-card h1 {
        font-size: 24px;
        margin-bottom: 18px;
    }
    
    .search-tabs .tab {
        font-size: 13px;
        padding: 11px 10px;
    }
    
    .content-card {
        padding: 24px 20px;
    }
    
    .content-card h2 {
        font-size: 24px;
    }
    
    .content-card h3 {
        font-size: 20px;
    }
    
    .content-card p {
        font-size: 14px;
    }
    
    .section-title-left {
        font-size: 24px;
    }
    
    .ev-intro h2 {
        font-size: 24px;
    }
    
    .ev-grid-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .ev-card-image {
        height: 180px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .sponsored-badge {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 12px 14px;
    }
    
    .sponsor-logo svg {
        width: 45px;
        height: 45px;
    }
    
    .sponsor-title {
        font-size: 12px;
    }
    
    .sponsor-subtitle {
        font-size: 10px;
    }
}

/* Featured Offers Carousel - Optimized for Cars.com Brand */
.featured-carousel {
    margin: 0 0 64px 0;
    background: #ffffff;
    border-radius: 0;
    padding: 0;
    position: relative;
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 0;
    position: relative;
}

.featured-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.5px;
}

.carousel-controls {
    display: flex;
    gap: 12px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.carousel-btn:hover {
    background: #663399;
    border-color: #663399;
    box-shadow: 0 2px 8px rgba(102, 51, 153, 0.2);
}

.carousel-btn:hover svg {
    color: #ffffff;
}

.carousel-btn:active {
    transform: scale(0.96);
}

.carousel-btn svg {
    color: #663399;
    transition: color 0.2s ease;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 0;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.featured-card {
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 420px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.featured-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.featured-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: #663399;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.featured-content {
    position: relative;
    z-index: 2;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
}

.featured-content h3 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.featured-description {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.featured-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.featured-btn-primary,
.featured-btn-save {
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    white-space: nowrap;
}

.featured-btn-primary {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    border: none;
}

.featured-btn-primary:hover {
    background: #b91c1c;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}

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

.featured-btn-save {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.featured-btn-save:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.featured-btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    position: relative;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-indicator:hover {
    background: #9ca3af;
    transform: scale(1.15);
}

.carousel-indicator.active {
    background: #663399;
    width: 28px;
    border-radius: 4px;
}

/* Optimize Perks Grid for Brand Alignment */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 0;
}

.perk-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.perk-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(102, 51, 153, 0.3);
}

.perk-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.perk-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.perk-card:hover .perk-image img {
    transform: scale(1.05);
}

.loyalty-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #663399;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 4px rgba(102, 51, 153, 0.2);
}

.perk-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ffffff;
}

.perk-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.perk-content p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.loyalty-req {
    font-size: 12px !important;
    color: #663399 !important;
    font-weight: 600;
    background: #f3f0f9;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 16px !important;
    border-left: 3px solid #663399;
}

.featured-content .loyalty-req {
    color: #ffffff !important;
    background: rgba(102, 51, 153, 0.3);
    border-left: 3px solid #663399;
    backdrop-filter: blur(8px);
}

.perk-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.perk-btn-primary,
.perk-btn-save {
    padding: 11px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    white-space: nowrap;
    flex: 1;
    min-width: 120px;
}

.perk-btn-primary {
    background: #663399;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(102, 51, 153, 0.2);
    border: 2px solid #663399;
}

.perk-btn-primary:hover {
    background: #552288;
    border-color: #552288;
    box-shadow: 0 3px 10px rgba(102, 51, 153, 0.3);
    transform: translateY(-1px);
}

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

.perk-btn-save {
    background: #ffffff;
    color: #663399;
    border: 2px solid #e5e7eb;
}

.perk-btn-save:hover {
    background: #f9fafb;
    border-color: #663399;
}

.perk-btn-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #9ca3af;
    border-color: #e5e7eb;
}

/* Responsive Design Improvements */
@media (max-width: 1024px) {
    .featured-carousel {
        padding: 0;
    }
    
    .featured-card {
        min-height: 380px;
    }
    
    .featured-content {
        padding: 40px 32px;
        min-height: 380px;
    }
    
    .featured-content h3 {
        font-size: 32px;
    }
    
    .featured-header h2 {
        font-size: 26px;
    }
    
    .perks-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .perks-section-header h2 {
        font-size: 24px;
    }
    
    .category-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-filters::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 768px) {
    .featured-carousel {
        padding: 0;
        margin: 0 0 40px 0;
    }
    
    .featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .featured-header h2 {
        font-size: 24px;
    }
    
    .carousel-controls {
        align-self: flex-end;
    }
    
    .carousel-btn {
        width: 42px;
        height: 42px;
    }
    
    .featured-card {
        min-height: 360px;
        border-radius: 8px;
    }
    
    .featured-content {
        padding: 32px 24px;
        min-height: 360px;
    }
    
    .featured-content h3 {
        font-size: 28px;
    }
    
    .featured-description {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .featured-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .featured-btn-primary,
    .featured-btn-save {
        width: 100%;
        justify-content: center;
    }
    
    .perks-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .perk-content {
        padding: 20px;
    }
    
    .perk-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .perk-btn-primary,
    .perk-btn-save {
        width: 100%;
    }
    
    .perks-section-header {
        margin-bottom: 24px;
    }
    
    .perks-section-header h2 {
        font-size: 22px;
    }
    
    .perks-section-header p {
        font-size: 15px;
    }
    
    .category-filters {
        margin-bottom: 24px;
        gap: 10px;
    }
    
    .filter-chip {
        font-size: 13px;
        padding: 7px 16px;
    }
    
    .perks-page-header h1 {
        font-size: 32px;
    }
    
    .perks-page-header p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .featured-carousel {
        padding: 0;
    }
    
    .featured-header h2 {
        font-size: 20px;
    }
    
    .carousel-btn {
        width: 38px;
        height: 38px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .featured-card {
        min-height: 320px;
        border-radius: 8px;
    }
    
    .featured-content {
        padding: 24px 20px;
        min-height: 320px;
    }
    
    .featured-content h3 {
        font-size: 24px;
    }
    
    .featured-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .featured-btn-primary,
    .featured-btn-save {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .carousel-indicators {
        margin-top: 20px;
        gap: 6px;
    }
    
    .carousel-indicator {
        width: 6px;
        height: 6px;
    }
    
    .carousel-indicator.active {
        width: 20px;
    }
    
    .perks-page-header {
        padding: 24px 0 32px 0;
        margin-bottom: 28px;
    }
    
    .perks-page-header h1 {
        font-size: 28px;
    }
    
    .perks-page-header p {
        font-size: 15px;
    }
    
    .nav-highlighted {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .logo svg {
        width: 100px;
        height: 35px;
    }
    
    .perks-section-header h2 {
        font-size: 20px;
    }
    
    .perks-section-header p {
        font-size: 14px;
    }
    
    .filter-chip {
        font-size: 12px;
        padding: 6px 14px;
    }
}
