@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Clean, professional light palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f9fc;
    --bg-card: #ffffff;
    --bg-elevated: #f0f4f8;
    --bg-hover: #e8eef3;
    
    /* Brand colors - professional green like NerdWallet */
    --accent-primary: #0d6e3f;
    --accent-secondary: #0a5c34;
    --accent-light: #e6f4ed;
    --accent-gradient: linear-gradient(135deg, #0d6e3f 0%, #0a5c34 100%);
    
    /* Blue for links and info */
    --link-color: #0066cc;
    --link-hover: #004999;
    --info-bg: #e8f4fd;
    --info-border: #b8d4e8;
    
    /* Ratings/Stars */
    --star-color: #fbbf24;
    
    /* Text - dark on light */
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;
    
    /* Borders */
    --border-subtle: #e2e8f0;
    --border-light: #cbd5e0;
    --border-accent: #0d6e3f;
    
    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.logo h1 {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: -0.02em;
}

.logo a {
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.nav-link.active {
    color: var(--accent-primary);
    background: var(--accent-light);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 8px; /* Bridge the gap */
    z-index: 1000;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px; /* Invisible bridge */
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu > a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s;
    background: white;
    border: 1px solid var(--border-subtle);
}

.nav-dropdown-menu > a:first-child {
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-dropdown-menu > a:last-child {
    border-radius: 0 0 8px 8px;
}

.nav-dropdown-menu > a:only-child {
    border-radius: 8px;
}

.nav-dropdown-menu > a + a {
    border-top: none;
}

.nav-dropdown-menu > a:hover {
    background: var(--bg-elevated);
    color: var(--accent-primary);
}

.admin-link {
    color: var(--text-muted);
    font-size: 0.85em;
}

/* Auth Navigation Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* App Store Button */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--text-primary);
    color: white;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

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

.app-store-btn svg {
    flex-shrink: 0;
}

.btn-signin {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-signin:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.btn-signup {
    background: var(--accent-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-signup:hover {
    background: var(--accent-secondary);
}

/* User Menu in Header */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.user-menu-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
}

.user-avatar {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dropdown-item.logout {
    color: #dc2626;
}

.dropdown-item.logout:hover {
    background: #fef2f2;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.5rem 0;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    min-height: 600px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 110, 63, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(37, 99, 235, 0.08), transparent),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 32px 32px;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(13, 110, 63, 0.1);
    border: 1px solid rgba(13, 110, 63, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, #0d6e3f 0%, #059669 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #0d6e3f 0%, #059669 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(13, 110, 63, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 63, 0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 28px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.btn-hero-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
}

/* Trust Section */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-avatars {
    display: flex;
}

.trust-avatars .avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.trust-avatars .avatar:first-child {
    margin-left: 0;
}

.trust-avatars .avatar:nth-child(2) { background: linear-gradient(135deg, #0d6e3f, #059669); }
.trust-avatars .avatar:nth-child(3) { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.trust-avatars .avatar:nth-child(4) { background: linear-gradient(135deg, #f59e0b, #f97316); }
.trust-avatars .avatar:nth-child(5) { background: var(--bg-elevated); color: var(--text-secondary); }

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-stars {
    color: #fbbf24;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.trust-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    min-height: 44px;
    min-width: 320px;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
    white-space: nowrap;
}

.testimonial.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.testimonial-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-author {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 480px;
}

.hero-cards-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    width: 280px;
    height: 170px;
    border-radius: 16px;
    padding: 24px;
    color: white;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transition: box-shadow 0.3s ease;
}

.floating-card:hover {
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.35);
    animation-play-state: paused;
}

.floating-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.card-1 {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    z-index: 3;
    animation: float1 6s ease-in-out infinite;
}

.card-2 {
    background: linear-gradient(135deg, #0d6e3f 0%, #059669 100%);
    top: 80px;
    left: 10%;
    transform: rotate(6deg);
    z-index: 2;
    animation: float2 7s ease-in-out infinite;
}

.card-3 {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    top: 160px;
    right: 10%;
    transform: rotate(-6deg);
    z-index: 1;
    animation: float3 8s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateX(-50%) rotate(-3deg) translateY(0); }
    50% { transform: translateX(-50%) rotate(-3deg) translateY(-15px); }
}

@keyframes float2 {
    0%, 100% { transform: rotate(6deg) translateY(0); }
    50% { transform: rotate(6deg) translateY(-12px); }
}

@keyframes float3 {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-6deg) translateY(-18px); }
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 6px;
    margin-bottom: 20px;
}

.card-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.card-label {
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Stat Bubbles */
.hero-stats {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stat-bubble {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: floatBubble 5s ease-in-out infinite;
}

.stat-1 {
    bottom: 60px;
    left: 0;
    animation-delay: 0.5s;
}

.stat-2 {
    top: 40px;
    right: 0;
    animation-delay: 1s;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== FILTERS SECTION ========== */
.filters-section {
    padding: 48px 0 32px;
    background: var(--bg-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.section-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9em;
}

.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.75em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filter-group select {
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.9em;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
}

.filter-group select:hover {
    border-color: var(--text-muted);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(13, 110, 63, 0.15);
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.results-info p {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* ========== CARDS SECTION ========== */
.cards-section {
    padding: 0 0 80px;
    background: var(--bg-primary);
}

.cards-grid {
    /* Simple block container */
}

/* Card Item - NerdWallet Style Table */
.cards-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    display: table;
}

.cards-table thead {
    display: table-header-group;
}

.cards-table tbody {
    display: table-row-group;
}

.cards-table tr {
    display: table-row;
}

.cards-table th,
.cards-table td {
    display: table-cell;
}

.cards-table thead tr {
    background: #f0f4f8;
}

.cards-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.7em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #f0f4f8;
    border-bottom: 2px solid var(--border-subtle);
    white-space: nowrap;
}

.cards-table th:first-child {
    border-radius: 0;
}

.cards-table th:last-child {
    border-radius: 0;
}

.card-item {
    /* Standard table row */
}

.cards-table td {
    padding: 20px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
}

.cards-table td:first-child {
    border-left: none;
    border-radius: 0;
}

.cards-table td:last-child {
    border-right: none;
    border-radius: 0;
}

.card-item:hover td {
    background: var(--bg-secondary);
}

.card-item:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--accent-primary);
}

/* Card Image Cell */
.card-image-cell {
    width: 260px;
    cursor: pointer;
}

.card-image-cell:hover .card-name {
    color: var(--accent-primary);
}

.card-image-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-image {
    width: 100px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-image-placeholder {
    background: var(--bg-elevated);
    border-radius: 6px;
}

.placeholder-text {
    color: var(--text-muted);
    font-size: 0.7em;
    font-weight: 600;
    text-align: center;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-name {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--link-color);
    transition: color 0.15s;
    line-height: 1.3;
}

.card-item:hover .card-name {
    color: var(--link-hover);
    text-decoration: underline;
}

.card-issuer {
    color: var(--text-muted);
    font-size: 0.8em;
    font-weight: 400;
}

/* Rating Cell */
.rating-cell {
    min-width: 120px;
}

.rating-value {
    font-size: 1em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.rating-stars {
    display: flex;
    gap: 1px;
    margin-bottom: 4px;
}

.star {
    color: var(--star-color);
    font-size: 0.85em;
}

.star.empty {
    color: var(--border-light);
}

.rating-category {
    display: inline-block;
    padding: 4px 10px;
    margin-top: 6px;
    background: var(--accent-light, #d1fae5);
    color: var(--accent-primary, #0d6e3f);
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
}

/* Fee Cell */
.fee-cell {
    min-width: 90px;
}

.fee-value {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-primary);
}

.fee-value.no-fee {
    color: var(--accent-primary);
}

/* Intro Cell */
.intro-cell {
    min-width: 150px;
}

.intro-value {
    font-size: 0.875em;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Rewards Cell */
.rewards-cell {
    min-width: 130px;
}

.rewards-rate {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.rewards-type {
    font-size: 0.8em;
    color: var(--text-muted);
    font-weight: 400;
}

/* Apply Cell */
.apply-cell {
    min-width: 140px;
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875em;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-apply:hover {
    background: var(--accent-secondary);
}

.btn-apply::after {
    content: '›';
    font-size: 1.2em;
    font-weight: 400;
}

/* Card Action Buttons (Save / Add to Wallet) */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.btn-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-card-action:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.btn-card-action.btn-save:hover {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #d97706;
}

.btn-card-action.btn-save.active {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #d97706;
}

.btn-card-action.btn-wallet:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #16a34a;
}

.btn-card-action.btn-wallet.active {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #16a34a;
}

.apply-subtext {
    font-size: 0.75em;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-secondary);
    font-size: 1em;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.loading::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== DISCLOSURE BANNER ========== */
.disclosure-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.disclosure-icon {
    font-size: 1rem;
    flex-shrink: 0;
    color: var(--link-color);
}

.disclosure-banner p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.disclosure-banner strong {
    color: var(--text-primary);
}

.disclosure-link {
    color: var(--link-color);
    text-decoration: none;
}

.disclosure-link:hover {
    text-decoration: underline;
}

/* ========== FOOTER ========== */
.footer {
    background: #1a1a2e;
    border-top: none;
    padding: 48px 0 32px;
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.35rem 0;
    transition: color 0.15s;
}

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

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: left;
}

.advertiser-disclosure {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--accent-primary);
}

.advertiser-disclosure strong {
    color: rgba(255, 255, 255, 0.9);
}

.disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .disclosure-banner {
        flex-direction: column;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .cards-table thead {
        display: none;
    }
    
    .cards-table,
    .cards-table tbody,
    .cards-table tr,
    .cards-table td {
        display: block;
        width: 100%;
    }
    
    .card-item {
        margin-bottom: 20px;
    }
    
    .cards-table td {
        padding: 16px 20px;
        border: none !important;
        border-radius: 0 !important;
    }
    
    .cards-table td:first-child {
        border-radius: 16px 16px 0 0 !important;
        border-top: 1px solid var(--border-subtle) !important;
        border-left: 1px solid var(--border-subtle) !important;
        border-right: 1px solid var(--border-subtle) !important;
    }
    
    .cards-table td:last-child {
        border-radius: 0 0 16px 16px !important;
        border-bottom: 1px solid var(--border-subtle) !important;
        border-left: 1px solid var(--border-subtle) !important;
        border-right: 1px solid var(--border-subtle) !important;
    }
    
    .card-image-cell {
        width: 100%;
    }
    
    .card-image-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-image {
        width: 100%;
        height: 160px;
    }
    
    .btn-apply {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header-content {
        padding: 16px 0;
    }
    
    .nav {
        display: none;
    }
    
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .section-title {
        font-size: 1.25em;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* ========== COMPARISON CHECKBOX ========== */
.compare-th {
    width: 60px;
    text-align: center;
}

.compare-cell {
    width: 60px;
    text-align: center;
    vertical-align: middle !important;
}

.compare-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.compare-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.compare-checkbox .checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.compare-checkbox:hover .checkmark {
    border-color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.1);
}

.compare-checkbox input:checked + .checkmark {
    background: var(--accent-gradient);
    border-color: transparent;
}

.compare-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: 700;
}

/* Selected card row */
.card-item.selected td {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--border-accent);
}

.card-item.selected td:first-child {
    box-shadow: -4px 0 0 var(--accent-primary);
}

/* ========== COMPARE BAR (Fixed Bottom) ========== */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 16px 32px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.compare-bar.visible {
    transform: translateY(0);
}

.compare-bar-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.compare-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.compare-count {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95em;
}

.compare-previews {
    display: flex;
    gap: 8px;
}

.compare-preview-item {
    position: relative;
    width: 48px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.compare-preview-item span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.compare-preview-item .remove-card {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

.compare-preview-item:hover .remove-card {
    opacity: 1;
}

.compare-preview-item .remove-card:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.compare-bar-right {
    display: flex;
    gap: 12px;
}

.btn-clear {
    padding: 12px 20px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9em;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-compare {
    padding: 12px 28px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95em;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-compare:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-compare.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== COMPARE MODAL ========== */
.compare-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.compare-modal.open {
    opacity: 1;
    visibility: visible;
}

.compare-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.compare-modal.open .compare-modal-content {
    transform: scale(1) translateY(0);
}

.compare-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.compare-modal-header h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.compare-modal-body {
    padding: 32px;
    overflow-x: auto;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* ========== COMPARISON TABLE ========== */
.comparison-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    vertical-align: middle;
}

.comparison-table .card-header {
    background: var(--bg-elevated);
    padding: 24px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.compare-card-preview {
    width: 100px;
    height: 64px;
    margin: 0 auto 12px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
}

.compare-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.compare-placeholder {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-muted);
}

.compare-card-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1em;
    margin-bottom: 4px;
}

.compare-card-issuer {
    color: var(--text-muted);
    font-size: 0.85em;
}

.metric-header {
    width: 180px;
    text-align: left !important;
}

.metric-label {
    text-align: left !important;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9em;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
}

.metric-value {
    background: var(--bg-card);
    font-size: 0.95em;
    color: var(--text-primary);
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.metric-value.best-value {
    background: rgba(34, 197, 94, 0.1);
}

.best-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--success);
    color: white;
    font-size: 0.7em;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.value-highlight {
    font-weight: 700;
}

.value-highlight.green {
    color: var(--success);
}

.apply-row td {
    padding: 24px 16px;
    background: var(--bg-elevated);
}

.btn-apply-compare {
    display: inline-block;
    padding: 12px 24px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-apply-compare:hover {
    background: var(--success-dark);
    transform: translateY(-2px);
}

.btn-apply-compare.disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* ========== MOBILE COMPARE ========== */
@media (max-width: 768px) {
    .compare-th,
    .compare-cell {
        display: none;
    }
    
    .compare-bar-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .compare-bar-left,
    .compare-bar-right {
        width: 100%;
        justify-content: center;
    }
    
    .compare-modal-content {
        max-width: 100%;
        margin: 0 10px;
        border-radius: 16px;
    }
    
    .compare-modal-header {
        padding: 16px 20px;
    }
    
    .compare-modal-body {
        padding: 16px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
        font-size: 0.85em;
    }
    
    .compare-card-preview {
        width: 70px;
        height: 45px;
    }
    
    .compare-card-name {
        font-size: 0.85em;
    }
}

/* ========== SORTABLE HEADERS ========== */
.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.sortable:hover {
    background: rgba(124, 58, 237, 0.1);
}

.sort-icon {
    margin-left: 6px;
    opacity: 0.4;
    font-size: 0.85em;
}

.sort-icon.active {
    opacity: 1;
    color: var(--accent-primary);
}

/* ========== CARD DETAILS MODAL ========== */
.card-details-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.card-details-modal.open {
    opacity: 1;
    visibility: visible;
}

.card-details-content {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    width: 100%;
    max-width: 720px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    margin: 40px 0;
}

.card-details-modal.open .card-details-content {
    transform: scale(1) translateY(0);
}

.card-details-content .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.card-details-body {
    padding: 40px;
}

.card-details-header {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.card-details-image {
    width: 200px;
    height: 126px;
    background: var(--bg-elevated);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.card-details-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.card-details-placeholder {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-muted);
}

.card-details-title {
    flex: 1;
}

.card-details-title h2 {
    font-size: 1.75em;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.card-details-issuer {
    color: var(--text-muted);
    font-size: 1.1em;
    margin-bottom: 12px;
}

.card-details-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-details-rating .rating-value {
    font-size: 1em;
    color: var(--text-secondary);
}

.card-details-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-secondary);
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.card-details-cta {
    margin-bottom: 32px;
}

.btn-apply-large {
    display: block;
    width: 100%;
    padding: 18px 32px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1em;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.card-details-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-detail-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-detail-action:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.btn-save-detail:hover,
.btn-save-detail.active {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #d97706;
}

.btn-wallet-detail:hover,
.btn-wallet-detail.active {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #16a34a;
}

.btn-apply-large:hover {
    background: var(--success-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--success-glow);
}

.btn-apply-large.disabled {
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.card-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.detail-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.detail-icon {
    font-size: 1.5em;
    margin-bottom: 8px;
}

.detail-label {
    font-size: 0.8em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-value.highlight-green {
    color: var(--success);
}

.card-details-section {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 14px;
}

.card-details-section h3 {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.highlight-section {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-accent);
}

.rewards-list p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.reward-item:last-child {
    border-bottom: none;
}

.reward-rate {
    background: var(--accent-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9em;
}

.reward-category {
    font-weight: 600;
    text-transform: capitalize;
}

.reward-note {
    color: var(--text-muted);
    font-size: 0.85em;
}

.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.benefit-icon {
    color: var(--success);
    font-weight: 700;
}

.signup-bonus {
    text-align: center;
}

.bonus-value {
    font-size: 2em;
    font-weight: 800;
    color: var(--accent-secondary);
    margin-bottom: 8px;
}

.bonus-requirement {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.card-details-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.btn-secondary {
    flex: 1;
    padding: 14px 24px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95em;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

/* ========== SEO CONTENT SECTION ========== */
.content-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.content-block h3 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.content-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-block ul {
    list-style: none;
    padding: 0;
}

.content-block ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.content-block ul li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    margin-top: 2px;
}

.content-full {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px;
}

.content-full h3 {
    font-size: 1.75em;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tip-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.15s;
}

.tip-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.tip-icon {
    font-size: 2em;
    margin-bottom: 12px;
}

.tip-card h4 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tip-card p {
    color: var(--text-secondary);
    font-size: 0.85em;
    line-height: 1.5;
}

/* ========== NEWS SECTION ========== */
.news-section {
    padding: 64px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.news-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: none;
    padding-bottom: 0;
}

.news-section .section-header h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
}

.news-section .section-header a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-section .section-header a:hover {
    text-decoration: underline;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.news-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.news-image {
    height: 160px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    background-size: cover;
    background-position: center;
}

.news-image[style*="background-image"] {
    font-size: 0;
}

.news-content {
    padding: 20px;
}

.news-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-light);
    color: var(--accent-primary);
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-primary);
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.85em;
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8em;
}

/* ========== BLOG SECTION ========== */
.blog-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.blog-featured {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card.featured {
    display: flex;
    flex-direction: column;
}

.blog-card.featured .blog-image {
    height: 260px;
}

.blog-image {
    height: 160px;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    position: relative;
    background-size: cover;
    background-position: center;
}

.blog-image.has-image {
    font-size: 0;
}

.blog-image.gradient-1 {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
}

.blog-image.gradient-2 {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.blog-image.gradient-3 {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.blog-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    align-self: flex-start;
}

.blog-card h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.blog-card.featured h3 {
    font-size: 1.5em;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8em;
    margin-top: auto;
}

.read-more {
    color: var(--accent-secondary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ========== NEWSLETTER ========== */
.newsletter-section {
    padding: 48px 0;
    background: var(--accent-light);
    border-top: 1px solid var(--border-subtle);
}

.newsletter-content {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95em;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.95em;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(13, 110, 63, 0.15);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--accent-secondary);
}

/* ========== RESPONSIVE FOR NEW SECTIONS ========== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .blog-featured {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .card-details-body {
        padding: 24px;
    }
    
    .card-details-header {
        flex-direction: column;
        text-align: center;
    }
    
    .card-details-image {
        width: 160px;
        height: 100px;
        margin: 0 auto;
    }
    
    .card-details-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    .tips-grid,
    .news-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ========== SHOW MORE BUTTON ========== */
.show-more-container {
    display: flex;
    justify-content: center;
    padding: 32px 0;
    margin-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9em;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-show-more:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

.btn-show-more .remaining-count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85em;
}

/* ========== APP STORE BUTTON ========== */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--text-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    opacity: 1;
    position: relative;
    transition: all 0.2s ease;
    text-decoration: none;
}

.app-store-btn svg {
    opacity: 1;
}

.app-store-btn:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

