/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7B2D8E;
    --primary-dark: #5E1A73;
    --primary-light: #9B4DB8;
    --accent: #FFC107;
    --accent-hover: #FFB300;
    --green: #2E7D32;
    --text: #2C2C3A;
    --text-light: #6B6B80;
    --bg: #FFFFFF;
    --bg-gray: #F5F5FA;
    --border: #E0E0E8;
    --shadow: 0 4px 24px rgba(123, 45, 142, 0.08);
    --shadow-lg: 0 8px 40px rgba(123, 45, 142, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* ===== FLOATING PESO BUBBLES BACKGROUND ===== */
.peso-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.peso-bubble {
    position: absolute;
    bottom: -60px;
    font-size: 1.2rem;
    opacity: 0;
    animation: floatUp linear infinite;
    color: var(--primary);
    filter: blur(0.5px);
}

.peso-bubble::after {
    content: '₱';
    display: block;
}

.peso-bubble:nth-child(1) { left: 5%; font-size: 1rem; opacity: 0.06; animation-duration: 18s; animation-delay: 0s; }
.peso-bubble:nth-child(2) { left: 15%; font-size: 1.5rem; opacity: 0.05; animation-duration: 22s; animation-delay: 3s; }
.peso-bubble:nth-child(3) { left: 28%; font-size: 0.9rem; opacity: 0.07; animation-duration: 16s; animation-delay: 1s; }
.peso-bubble:nth-child(4) { left: 40%; font-size: 1.3rem; opacity: 0.04; animation-duration: 24s; animation-delay: 5s; }
.peso-bubble:nth-child(5) { left: 55%; font-size: 1.1rem; opacity: 0.06; animation-duration: 20s; animation-delay: 2s; }
.peso-bubble:nth-child(6) { left: 68%; font-size: 1.4rem; opacity: 0.05; animation-duration: 19s; animation-delay: 4s; }
.peso-bubble:nth-child(7) { left: 78%; font-size: 1rem; opacity: 0.07; animation-duration: 21s; animation-delay: 6s; }
.peso-bubble:nth-child(8) { left: 88%; font-size: 1.2rem; opacity: 0.04; animation-duration: 17s; animation-delay: 1.5s; }
.peso-bubble:nth-child(9) { left: 35%; font-size: 0.8rem; opacity: 0.05; animation-duration: 23s; animation-delay: 7s; }
.peso-bubble:nth-child(10) { left: 92%; font-size: 1.1rem; opacity: 0.06; animation-duration: 25s; animation-delay: 3.5s; }

@keyframes floatUp {
    0% { bottom: -60px; opacity: 0; transform: translateX(0) rotate(0deg); }
    10% { opacity: var(--bubble-opacity, 0.06); }
    90% { opacity: var(--bubble-opacity, 0.06); }
    100% { bottom: 110vh; opacity: 0; transform: translateX(40px) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .peso-bubble { animation: none; display: none; }
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--bg-gray);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(123, 45, 142, 0.3);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 800;
}
.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
}

.btn-white {
    background: #fff;
    color: var(--primary-dark);
    font-weight: 800;
}
.btn-white:hover {
    background: #f5f0ff;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Ensure button text colors don't get overridden by parent */
.btn-primary,
.btn-primary:visited,
.btn-primary:link { color: #fff; }

.btn-accent,
.btn-accent:visited,
.btn-accent:link { color: var(--primary-dark); }

.btn-white,
.btn-white:visited,
.btn-white:link { color: var(--primary-dark); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 800;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline,
.btn-outline:visited,
.btn-outline:link { color: var(--primary); }
.btn-outline:hover { color: #fff; }

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-icon {
    width: 1.4em;
    height: 1.4em;
    flex-shrink: 0;
}

.logo-robo { color: var(--primary); }
.logo-cash { color: var(--accent); }

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav a:hover {
    color: var(--primary);
}

.header-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 0;
}

/* ===== HERO ===== */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #F3ECFB 0%, #EDE4F7 30%, #FFF8E1 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 45, 142, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-content h1 {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.highlight {
    color: var(--accent-hover);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(123, 45, 142, 0.08);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.pill svg {
    flex-shrink: 0;
}

/* ===== CALCULATOR ===== */
.calc-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: var(--transition);
}

.calc-card:hover {
    border-color: var(--primary-light);
}

.calc-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    text-align: center;
}

.calc-group {
    margin-bottom: 24px;
}

.calc-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.calc-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.calc-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, var(--border) 50%, var(--border) 100%);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(123, 45, 142, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(123, 45, 142, 0.5);
}

.calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(123, 45, 142, 0.3);
    cursor: pointer;
}

.calc-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.calc-results {
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.95rem;
}

.calc-result-row.total {
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 10px;
    font-size: 1.1rem;
}

.calc-result-row.total strong {
    color: var(--primary);
    font-size: 1.2rem;
}

.calc-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 12px;
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--primary-dark);
    padding: 32px 0;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
}

.stat span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 220px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    margin: 0 auto 16px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-gray);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.step h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.step p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 60px;
    color: var(--primary-light);
    opacity: 0.5;
}

/* ===== OFFERS (static page cards) ===== */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.offer-rating .stars {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
}

.rating-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: right;
}

.offer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.offer-detail {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--bg-gray);
}

.offer-detail:nth-child(2n) {
    border-right: none;
}

.offer-detail:nth-last-child(-n+2) {
    border-bottom: none;
}

.offer-detail .label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.offer-detail strong {
    font-size: 1rem;
    color: var(--text);
    font-weight: 800;
}

.text-green {
    color: var(--green);
}

.offer-features {
    margin-bottom: 20px;
}

.offer-features li {
    padding: 4px 0;
    font-size: 0.88rem;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}

.offer-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.offer-btn {
    padding: 14px 24px;
}

/* ===== BENEFITS ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.benefit-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    transition: var(--transition);
}

.benefit-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.benefit-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(123, 45, 142, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.benefit-card h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.satisfaction-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.satisfaction-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent);
}

.satisfaction-text {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0.9;
}

.satisfaction-box ul {
    text-align: left;
    margin-bottom: 24px;
}

.satisfaction-box li {
    padding: 6px 0;
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    padding-left: 24px;
}

.satisfaction-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--accent);
}

/* ===== ELIGIBILITY ===== */
.eligibility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.elig-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.elig-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.elig-icon {
    width: 72px;
    height: 72px;
    background: rgba(123, 45, 142, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.elig-card h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.elig-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== CTA STRIP ===== */
.cta-strip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 56px 0;
    text-align: center;
    color: #fff;
}

.cta-strip h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-strip p {
    opacity: 0.85;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* ===== REVIEWS ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.review-stars {
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    background: rgba(123, 45, 142, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    font-size: 0.85rem;
}

.review-author strong {
    display: block;
    font-size: 0.95rem;
}

.review-author span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== GUIDE ===== */
.guide-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.guide-content h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    text-align: left;
}

.guide-content h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-top: 28px;
    margin-bottom: 12px;
}

.guide-content p {
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.8;
}

.guide-content ul {
    margin-bottom: 16px;
    padding-left: 0;
}

.guide-content li {
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.7;
}

.guide-content li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: 700;
}

.sidebar-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-light);
    position: sticky;
    top: 96px;
}

.sidebar-card h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.checklist li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--bg-gray);
}

.checklist li:last-child {
    border-bottom: none;
}

.sidebar-card .btn {
    margin-top: 20px;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-question svg {
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--primary);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 18px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== BOTTOM CTA ===== */
.cta-bottom {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3A0E5C 50%, var(--primary) 100%);
    padding: 72px 0;
    text-align: center;
    color: #fff;
}

.cta-bottom h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-bottom p {
    opacity: 0.85;
    margin-bottom: 28px;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #1E0A30;
    color: rgba(255,255,255,0.7);
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.5px;
}

.footer-logo .logo-robo {
    color: #C5A0E0;
}

.footer-logo .logo-cash {
    color: var(--accent);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    padding: 6px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-links h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    padding: 5px 0;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

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

.footer-bottom p {
    font-size: 0.8rem;
    margin-bottom: 4px;
    opacity: 0.6;
}

/* ===== STICKY BAR ===== */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid var(--primary);
    padding: 12px 0;
    z-index: 998;
    transform: translateY(100%);
    transition: var(--transition);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

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

.sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-text strong {
    display: block;
    font-size: 1rem;
    color: var(--primary-dark);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-calculator {
        max-width: 460px;
        width: 100%;
        margin: 0 auto;
    }

    .hero-pills {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .guide-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav, .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
        /* Ensure tappable area is at least 44px */
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }

    .hero {
        padding: 88px 0 32px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
        line-height: 1.25;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-calculator {
        max-width: 100%;
    }

    .hero-pills {
        gap: 8px;
        margin-bottom: 24px;
    }

    .pill {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    .calc-card {
        padding: 24px;
        max-width: 100%;
    }

    .calc-card h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .calc-value {
        font-size: 1.3rem;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat strong {
        font-size: 1.4rem;
    }

    .stat span {
        font-size: 0.8rem;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .step {
        max-width: 100%;
    }

    /* Offer cards mobile */
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .offer-card {
        padding: 20px;
        max-width: 100%;
    }

    .offer-card::before {
        width: 3px;
    }

    /* Disable hover transform on mobile to prevent overflow */
    .offer-card:hover {
        transform: none;
    }

    .offer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .offer-header .offer-logo-img {
        height: 36px;
    }

    .offer-promo {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .offer-promo::before,
    .offer-promo::after {
        display: none;
    }

    .offer-details {
        gap: 0;
    }

    .offer-detail {
        padding: 8px 12px;
    }

    .offer-detail .label {
        font-size: 0.68rem;
    }

    .offer-detail strong {
        font-size: 0.82rem;
        word-break: break-word;
    }

    .offer-features li {
        font-size: 0.84rem;
    }

    .offer-badge {
        font-size: 0.68rem;
        padding: 3px 10px;
        right: 12px;
        top: -1px;
    }

    /* Benefits mobile */
    .benefit-card {
        padding: 16px;
        gap: 12px;
    }

    .benefit-icon {
        width: 48px;
        height: 48px;
    }

    .benefit-icon svg {
        width: 28px;
        height: 28px;
    }

    .satisfaction-box {
        padding: 24px;
    }

    .satisfaction-number {
        font-size: 2.5rem;
    }

    /* Eligibility mobile */
    .eligibility-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .elig-card {
        padding: 24px;
    }

    .elig-icon {
        width: 56px;
        height: 56px;
    }

    /* Reviews mobile */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .review-card {
        padding: 20px;
    }

    .review-text {
        font-size: 0.9rem;
    }

    /* Guide mobile */
    .guide-content h2 {
        font-size: 1.4rem;
    }

    .guide-content h3 {
        font-size: 1.1rem;
    }

    /* Footer mobile */
    .footer {
        padding: 40px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 28px;
    }

    .footer-logo {
        font-size: 1.3rem;
        justify-content: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-badges {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links h4 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 0.88rem;
        padding: 6px 0;
        display: inline-block;
        min-height: 44px;
        line-height: 32px;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-bottom {
        padding: 16px 0;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }

    /* CTA mobile */
    .cta-strip h2, .cta-bottom h2 {
        font-size: 1.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .cta-strip p, .cta-bottom p {
        font-size: 0.9rem;
    }

    .sticky-text span {
        display: none;
    }

    .sticky-bar .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-height: 44px;
    }

    /* Header mobile */
    .logo {
        font-size: 1.3rem;
        max-width: calc(100vw - 100px);
        overflow: hidden;
    }

    .header-inner {
        height: 60px;
    }

    .mobile-menu {
        top: 60px;
    }

    .mobile-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Buttons mobile - ensure minimum tappable size */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .btn-block {
        padding: 12px 16px;
    }

    /* Prevent any element from causing horizontal scroll */
    .container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero {
        padding: 76px 0 28px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-pills {
        gap: 6px;
    }

    .pill {
        font-size: 0.74rem;
        padding: 5px 10px;
    }

    .calc-card {
        padding: 16px;
        border-radius: 12px;
    }

    .calc-card h3 {
        font-size: 1rem;
    }

    .calc-value {
        font-size: 1.15rem;
    }

    .calc-results {
        padding: 12px;
    }

    .calc-result-row {
        font-size: 0.85rem;
    }

    .calc-result-row span,
    .calc-result-row strong {
        word-break: break-word;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat strong {
        font-size: 1.2rem;
    }

    .stat span {
        font-size: 0.75rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-subtitle {
        font-size: 0.88rem;
        margin-bottom: 24px;
    }

    .offer-card {
        padding: 14px;
        border-radius: 12px;
    }

    .offer-details {
        gap: 0;
    }

    .offer-detail {
        padding: 7px 10px;
    }

    .offer-detail .label {
        font-size: 0.65rem;
    }

    .offer-detail strong {
        font-size: 0.78rem;
        word-break: break-word;
    }

    .offer-badge {
        right: 8px;
        font-size: 0.62rem;
        padding: 2px 8px;
    }

    .elig-card {
        padding: 20px;
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer-brand p {
        font-size: 0.82rem;
    }

    .cta-strip, .cta-bottom {
        padding: 40px 0;
    }

    /* Sticky bar better spacing on small phones */
    .sticky-inner {
        gap: 12px;
    }

    .sticky-text strong {
        font-size: 0.88rem;
    }

    /* FAQ questions easier to tap */
    .faq-question {
        padding: 16px 16px;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .faq-answer p {
        padding: 0 16px 16px;
        font-size: 0.88rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .nav,
    .hamburger,
    .mobile-menu,
    .footer,
    .sticky-bar,
    .peso-bubbles,
    .loading-overlay,
    .offers-modal,
    .cta-strip,
    .cta-bottom {
        display: none !important;
    }

    .hero::before {
        display: none !important;
    }

    body {
        overflow: visible !important;
    }

    .hero {
        padding-top: 24px !important;
        background: #F3ECFB !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .offer-card,
    .review-card,
    .benefit-card,
    .elig-card,
    .calc-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }

    .offer-card:hover,
    .review-card:hover,
    .benefit-card:hover,
    .elig-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .container {
        max-width: 100% !important;
    }
}

/* Inline lender logos in tables and content */
.inline-logo {
    height: 28px;
    width: auto;
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
}

/* Slightly larger in table cells */
td .inline-logo {
    height: 32px;
}

/* ===== OFFER LOGO IMG ===== */
.offer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.offer-promo {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 16px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(46,125,50,0.08) 0%, rgba(46,125,50,0.04) 100%);
    border: 1px dashed rgba(46,125,50,0.3);
    border-radius: 8px;
    text-align: center;
    position: relative;
    letter-spacing: 0.3px;
}

.offer-promo::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--bg-gray);
    border-radius: 50%;
    border-right: 1px dashed rgba(46,125,50,0.3);
}

.offer-promo::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--bg-gray);
    border-radius: 50%;
    border-left: 1px dashed rgba(46,125,50,0.3);
}

/* Offer badge (static page cards) */
.offer-badge {
    position: absolute;
    top: -1px;
    right: 24px;
    background: linear-gradient(135deg, var(--accent), #FFD54F);
    color: #333;
    padding: 5px 16px;
    border-radius: 0 0 8px 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255,193,7,0.3);
    z-index: 2;
}

/* Static offer-card enhancements */
.offer-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    border: 2px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border);
    transition: var(--transition);
    border-radius: 4px 0 0 4px;
}

.offer-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.offer-card:hover::before {
    background: linear-gradient(to bottom, var(--primary), var(--primary-light), var(--accent));
    width: 4px;
}

.offer-card.recommended {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.offer-card.recommended::before {
    background: linear-gradient(to bottom, var(--accent), var(--primary));
    width: 4px;
}

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

.offer-header .offer-logo-img {
    height: 56px;
    padding: 8px 14px;
    background: var(--bg-gray);
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 30, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-box {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px 40px;
    text-align: center;
    max-width: 420px;
    width: 92%;
    box-shadow: 0 32px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
    animation: loadingBoxIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loading-box.pulse {
    animation: loadingBoxIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), subtlePulse 2s ease-in-out infinite 0.5s;
}

@keyframes loadingBoxIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 32px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1); }
    50% { box-shadow: 0 32px 80px rgba(123,45,142,0.2), 0 0 40px rgba(123,45,142,0.08), 0 0 0 1px rgba(255,255,255,0.1); }
}

/* Progress Ring */
.loading-ring-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 24px;
}

.loading-ring {
    width: 130px;
    height: 130px;
    transform: rotate(-90deg);
}

.loading-ring-bg {
    fill: none;
    stroke: var(--bg-gray);
    stroke-width: 6;
}

.loading-ring-progress {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
}

.loading-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

/* Gradient Progress Bar */
.loading-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 28px;
}

.loading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

/* Loading Steps */
.loading-steps {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.35;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    background: transparent;
}

.loading-step span {
    font-weight: 600;
}

.loading-step.active {
    opacity: 1;
    color: var(--primary);
    font-weight: 700;
    background: rgba(123,45,142,0.06);
}

.loading-step.done {
    opacity: 1;
    color: var(--green);
    background: rgba(46,125,50,0.05);
}

/* Step icon wrap */
.step-icon-wrap {
    position: relative;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
}

.loading-step.active .step-dot {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(123,45,142,0.15);
    animation: dotPulse 1.2s ease-in-out infinite;
}

.loading-step.done .step-dot {
    display: none;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(123,45,142,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(123,45,142,0.08); }
}

.step-check {
    display: none;
    color: #fff;
}

.loading-step.done .step-check {
    display: block;
}

.loading-step.done .step-icon-wrap {
    background: var(--green);
    border-radius: 50%;
    animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* ===== OFFERS MODAL ===== */
.offers-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 30, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.offers-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 32px 80px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    background: #fff;
    color: var(--text);
    border-color: var(--text-light);
    transform: rotate(90deg);
}

/* Modal Header - fixed top */
.modal-header {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 16px;
    padding: 32px 36px 24px;
    background: linear-gradient(135deg, rgba(123,45,142,0.04) 0%, rgba(255,193,7,0.04) 100%);
    border-bottom: 1px solid var(--border);
}

.modal-header-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.modal-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 2px;
    line-height: 1.3;
}

.text-accent {
    color: var(--accent-hover);
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Offers list - scrollable */
.modal-offers {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px 36px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.modal-offer {
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(16px);
    flex-shrink: 0;
}

.modal-offer.animate-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-offer:last-child {
    margin-bottom: 0;
}

.modal-offer:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 32px rgba(123,45,142,0.1);
}

/* Recommended card */
.modal-offer.recommended {
    border: 2px solid var(--primary-light);
    background: #fff;
    box-shadow: 0 4px 20px rgba(123,45,142,0.1);
}

.modal-offer.recommended:hover {
    box-shadow: 0 8px 40px rgba(123,45,142,0.15);
}

.modal-offer-glow {
    display: none;
}

/* Badge inside modal */
.modal-offer .offer-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 6px 16px;
    border-radius: 16px 0 12px 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 3;
}

/* Match Score */
.match-score {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-light);
    background: var(--bg-gray);
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 3;
}

.match-score-num {
    font-weight: 900;
    color: var(--primary);
}

.modal-offer.recommended .match-score {
    background: rgba(123,45,142,0.08);
}

/* Offer body - horizontal card layout */
.modal-offer-body {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    position: relative;
    z-index: 1;
}

.modal-offer.recommended .modal-offer-body {
    padding-top: 36px;
}

/* Logo area */
.modal-offer-logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-logo-box {
    width: 130px;
    height: 80px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px solid var(--border);
}

.modal-offer-logo {
    height: 48px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
}

/* Center details */
.modal-offer-center {
    min-width: 0;
}

/* Promo banner */
.modal-offer-promo-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--green);
    background: linear-gradient(135deg, rgba(46,125,50,0.1) 0%, rgba(46,125,50,0.04) 100%);
    border: 1px dashed rgba(46,125,50,0.25);
    padding: 6px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.modal-offer-promo-banner svg {
    color: var(--green);
    flex-shrink: 0;
}

/* Detail chips - 2x2 grid */
.modal-offer-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.modal-chip {
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.modal-chip-label {
    font-size: 0.72rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.modal-chip-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text);
}

.modal-chip-green {
    color: var(--green);
}

/* Tags */
.modal-offer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--bg-gray);
    color: var(--text-light);
}

.tag-green {
    background: rgba(46,125,50,0.08);
    color: var(--green);
}

/* CTA area */
.modal-offer-cta-area {
    display: flex;
    align-items: center;
}

.modal-cta-btn {
    white-space: nowrap;
    padding: 12px 24px;
    font-size: 0.88rem;
    font-weight: 800;
    border-radius: 12px;
    min-width: 130px;
    text-align: center;
}

/* Modal footer - fixed bottom */
.modal-footer-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 36px;
    background: var(--bg-gray);
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.modal-footer-powered svg {
    color: var(--green);
}

.modal-footer-powered strong {
    color: var(--primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Modal & Loading responsive */
@media (max-width: 768px) {
    .modal-offer-body {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .modal-offer.recommended .modal-offer-body {
        padding-top: 36px;
    }

    .modal-offer-logo-area {
        justify-content: flex-start;
    }

    .modal-logo-box {
        width: 100px;
        height: 56px;
        padding: 8px;
    }

    .modal-offer-logo {
        height: 32px;
        max-width: 84px;
    }

    .modal-offer-cta-area {
        width: 100%;
    }

    .modal-cta-btn {
        width: 100%;
        display: block;
        padding: 14px 20px;
        min-height: 44px;
    }

    .modal-header {
        padding: 20px 16px 16px;
        padding-right: 52px; /* Leave room for close button */
        gap: 12px;
    }

    .modal-header-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 12px;
    }

    .modal-header-icon svg {
        width: 22px;
        height: 22px;
    }

    .modal-content h2 {
        font-size: 1.15rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .modal-subtitle {
        font-size: 0.82rem;
    }

    /* Ensure modal doesn't exceed screen width */
    .modal-content {
        max-width: calc(100vw - 20px);
        border-radius: 16px;
    }

    .modal-offers {
        padding: 12px 16px;
        gap: 0;
    }

    .modal-offer {
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .modal-offer-promo-banner {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .modal-offer-chips {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .modal-chip {
        padding: 6px 10px;
        border-radius: 8px;
    }

    .modal-chip-label {
        font-size: 0.62rem;
    }

    .modal-chip-value {
        font-size: 0.85rem;
    }

    .modal-offer-tags {
        gap: 4px;
    }

    .tag {
        font-size: 0.68rem;
        padding: 2px 8px;
    }

    .modal-footer-powered {
        padding: 12px 16px;
        font-size: 0.75rem;
    }

    .match-score {
        top: 10px;
        right: 10px;
        font-size: 0.68rem;
        padding: 3px 8px;
    }

    .modal-offer .offer-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
        left: 12px;
    }

    /* Close button must be at least 44px for mobile tappability */
    .modal-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }

    .modal-close svg {
        width: 18px;
        height: 18px;
    }

    .offers-modal {
        padding: 12px 8px;
    }

    /* Loading mobile */
    .loading-box {
        padding: 32px 24px 28px;
        border-radius: 16px;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .loading-ring-wrap {
        width: 100px;
        height: 100px;
        margin-bottom: 16px;
    }

    .loading-ring {
        width: 100px;
        height: 100px;
    }

    .loading-countdown {
        font-size: 2.2rem;
    }

    .loading-title {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .loading-progress-bar {
        margin-bottom: 20px;
    }

    .loading-step {
        padding: 8px 10px;
        font-size: 0.84rem;
        gap: 10px;
    }

    .step-icon-wrap {
        width: 22px;
        height: 22px;
    }

    .step-check {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .modal-offer-body {
        padding: 12px;
    }

    .modal-header {
        padding: 16px 14px 14px;
        padding-right: 52px; /* Room for close button */
    }

    .modal-content h2 {
        font-size: 1.05rem;
    }

    .modal-offers {
        padding: 10px 12px;
    }

    .modal-offer-chips {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .modal-cta-btn {
        font-size: 0.85rem;
        padding: 12px 16px;
    }

    .offers-modal {
        padding: 8px 6px;
    }

    .loading-box {
        padding: 24px 16px 20px;
        width: 94%;
        max-height: 85vh;
    }

    .loading-ring-wrap {
        width: 80px;
        height: 80px;
    }

    .loading-ring {
        width: 80px;
        height: 80px;
    }

    .loading-countdown {
        font-size: 1.6rem;
    }

    .loading-title {
        font-size: 0.88rem;
    }

    .loading-step {
        font-size: 0.8rem;
        padding: 6px 8px;
        gap: 8px;
    }
}
