/* ═══════════════════════════════════════════════════════
   VOYAGER TRAVEL AGENCY - Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
    --primary: #0f4c75;
    --primary-dark: #0b3558;
    --primary-light: #1b6fa8;
    --accent: #f7a440;
    --accent-dark: #e08e2a;
    --success: #2ecc71;
    --danger: #e74c3c;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; line-height: 1.2; }

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

/* ═══════════════════ NAVBAR ═══════════════════ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-container {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; font-family: 'Playfair Display', serif;
    font-size: 1.6rem; font-weight: 700; color: var(--white);
    transition: var(--transition);
}
.navbar.scrolled .logo { color: var(--primary); }
.logo i { font-size: 1.4rem; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    text-decoration: none; color: rgba(255,255,255,0.9);
    font-weight: 500; font-size: 0.95rem; transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--accent);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--text); }
.cart-btn { position: relative; }
.cart-count {
    position: absolute; top: -8px; right: -12px;
    background: var(--accent); color: var(--white);
    font-size: 0.7rem; font-weight: 700; width: 20px; height: 20px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.cart-count.bump { animation: bump 0.3s ease; }
@keyframes bump { 50% { transform: scale(1.4); } }

/* ═══════════════════ HERO ═══════════════════ */
.hero {
    height: 100vh; min-height: 700px; position: relative;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,76,117,0.75) 0%, rgba(11,53,88,0.6) 50%, rgba(0,0,0,0.4) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center; color: var(--white);
    max-width: 800px; padding: 0 24px;
    animation: fadeInUp 1s ease;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } }
.hero-subtitle {
    font-size: 1rem; text-transform: uppercase; letter-spacing: 4px;
    color: var(--accent); font-weight: 600; margin-bottom: 16px;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900;
    margin-bottom: 20px; line-height: 1.1;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-desc {
    font-size: 1.15rem; opacity: 0.9; margin-bottom: 40px;
    line-height: 1.8; font-weight: 300;
}
.hero-scroll {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 2; color: var(--white); font-size: 1.5rem; opacity: 0.6;
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(12px); } }

/* ═══════════════════ BUTTONS ═══════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border: none; border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white); box-shadow: 0 4px 16px rgba(247,164,64,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(247,164,64,0.45); }
.btn-secondary { background: var(--white); color: var(--text); border: 2px solid #e0e0e0; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ═══════════════════ FEATURES ═══════════════════ */
.features { padding: 80px 0; background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.feature-card {
    text-align: center; padding: 40px 24px;
    border-radius: var(--radius); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.feature-icon {
    width: 72px; height: 72px; margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.5rem;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* ═══════════════════ SECTION HEADERS ═══════════════════ */
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 3px;
    color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-desc { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ═══════════════════ PACKAGES ═══════════════════ */
.packages-section { padding: 100px 0; }
.filter-bar {
    display: flex; justify-content: center; gap: 12px;
    margin-bottom: 48px; flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 24px; border: 2px solid #e0e0e0; border-radius: 50px;
    background: var(--white); color: var(--text-light); font-weight: 600;
    font-size: 0.9rem; cursor: pointer; transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary); color: var(--white); border-color: var(--primary);
}
.packages-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px;
}
.package-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    position: relative;
}
.package-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.package-image {
    position: relative; height: 240px; overflow: hidden;
}
.package-image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;
}
.package-card:hover .package-image img { transform: scale(1.08); }
.package-badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--accent); color: var(--white);
    padding: 6px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
}
.package-duration {
    position: absolute; bottom: 16px; right: 16px;
    background: rgba(0,0,0,0.65); color: var(--white); backdrop-filter: blur(8px);
    padding: 6px 14px; border-radius: 50px; font-size: 0.82rem; font-weight: 500;
}
.package-body { padding: 24px; }
.package-location {
    display: flex; align-items: center; gap: 6px;
    color: var(--primary-light); font-size: 0.85rem; font-weight: 600;
    margin-bottom: 8px;
}
.package-title { font-size: 1.3rem; margin-bottom: 10px; }
.package-desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.6; }
.package-features {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.package-feature {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.8rem; color: var(--text-light);
    background: var(--bg); padding: 4px 10px; border-radius: 50px;
}
.package-feature i { color: var(--primary-light); font-size: 0.7rem; }
.package-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px; border-top: 1px solid #f0f0f0;
}
.package-price { display: flex; flex-direction: column; }
.price-label { font-size: 0.75rem; color: var(--text-light); }
.price-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem; font-weight: 700; color: var(--primary);
}
.price-value small { font-size: 0.7rem; font-weight: 400; color: var(--text-light); }

/* ═══════════════════ TESTIMONIALS ═══════════════════ */
.testimonials { padding: 100px 0; background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.testimonial-card {
    background: var(--bg); padding: 32px; border-radius: var(--radius);
    position: relative;
}
.testimonial-card::before {
    content: '\201C'; position: absolute; top: 16px; right: 24px;
    font-size: 4rem; font-family: 'Playfair Display', serif;
    color: var(--primary); opacity: 0.1; line-height: 1;
}
.testimonial-stars { color: var(--accent); margin-bottom: 16px; font-size: 0.9rem; display: flex; gap: 2px; }
.testimonial-card p { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-light); }

/* ═══════════════════ ABOUT ═══════════════════ */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-images { position: relative; }
.about-img-main { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-img-secondary {
    position: absolute; bottom: -40px; right: -40px;
    width: 55%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 6px solid var(--white);
}
.about-content .section-label { text-align: left; }
.about-content .section-title { text-align: left; }
.about-content p { color: var(--text-light); margin-bottom: 32px; font-size: 1.05rem; }
.about-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }

/* ═══════════════════ CART DRAWER ═══════════════════ */
.cart-overlay {
    position: fixed; inset: 0; z-index: 1500;
    background: rgba(0,0,0,0.45); backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1600;
    width: 460px; max-width: 92vw;
    background: var(--white);
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid #f0f0f0;
    background: var(--bg); flex-shrink: 0;
}
.cart-drawer-header h3 {
    font-size: 1.15rem; margin: 0;
    display: flex; align-items: center; gap: 10px;
}
.cart-drawer-header h3 i { color: var(--primary); font-size: 1rem; }
.cart-close-btn {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: transparent; color: var(--text-light); font-size: 1.1rem;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.cart-close-btn:hover { background: #f0f0f0; color: var(--text); }

.cart-drawer-body {
    flex: 1; overflow-y: auto; padding: 16px 24px;
}

.cart-empty-drawer {
    text-align: center; padding: 60px 16px;
}
.cart-empty-drawer i { font-size: 3rem; color: #ddd; margin-bottom: 16px; display: block; }
.cart-empty-drawer h4 { font-size: 1.1rem; margin-bottom: 6px; }
.cart-empty-drawer p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }

.cart-items-drawer { display: flex; flex-direction: column; gap: 12px; }

.cart-item-d {
    display: flex; gap: 14px; padding: 14px;
    background: var(--bg); border-radius: var(--radius-sm);
    transition: var(--transition); position: relative;
}
.cart-item-d:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.cart-item-d-img {
    width: 90px; height: 68px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
}
.cart-item-d-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-d-info { flex: 1; min-width: 0; }
.cart-item-d-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem; font-weight: 600; margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-d-meta {
    font-size: 0.78rem; color: var(--text-light);
    display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.cart-item-d-bottom {
    display: flex; justify-content: space-between; align-items: center;
}
.cart-item-d-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem; font-weight: 700; color: var(--primary);
}
.cart-item-d-remove {
    background: none; border: none; color: var(--danger); cursor: pointer;
    font-size: 0.75rem; opacity: 0.5; transition: var(--transition);
    display: flex; align-items: center; gap: 4px; padding: 4px;
}
.cart-item-d-remove:hover { opacity: 1; }

/* Cart Footer */
.cart-drawer-footer {
    padding: 20px 24px; border-top: 1px solid #f0f0f0;
    background: var(--white); flex-shrink: 0;
}
.summary-compact { margin-bottom: 16px; }
.summary-line-sm {
    display: flex; justify-content: space-between;
    padding: 3px 0; font-size: 0.85rem; color: var(--text-light);
}
.discount-sm span { color: var(--success); }
.summary-total-sm {
    display: flex; justify-content: space-between;
    padding: 10px 0 0; margin-top: 8px;
    border-top: 2px solid var(--primary);
    font-weight: 700; font-size: 1.1rem;
}
.summary-total-sm span:last-child {
    color: var(--primary); font-family: 'Playfair Display', serif; font-size: 1.3rem;
}

/* Payment method selector - compact */
.payment-methods-compact {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-bottom: 14px;
}
.pay-opt { cursor: pointer; }
.pay-opt input { display: none; }
.disabled-opt { cursor: not-allowed; opacity: 0.45; }
.pay-opt-inner {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border: 2px solid #e8e8e8; border-radius: var(--radius-sm);
    font-size: 0.85rem; font-weight: 600; transition: var(--transition);
    position: relative;
}
.pay-opt-inner.selected,
.pay-opt input:checked + .pay-opt-inner {
    border-color: var(--primary); background: rgba(15,76,117,0.04);
    color: var(--primary);
}
.pay-opt-inner i { font-size: 1rem; }
.pay-opt input:checked + .pay-opt-inner i { color: var(--accent); }
.pay-rec {
    position: absolute; top: -7px; right: 8px;
    font-size: 0.6rem; background: var(--success); color: var(--white);
    padding: 1px 6px; border-radius: 50px; font-weight: 700; text-transform: uppercase;
}
.pay-soon {
    position: absolute; top: -7px; right: 8px;
    font-size: 0.6rem; background: #ff9800; color: var(--white);
    padding: 1px 6px; border-radius: 50px; font-weight: 700; text-transform: uppercase;
}
.secure-note-sm {
    text-align: center; margin-top: 10px;
    font-size: 0.75rem; color: var(--text-light);
}
.secure-note-sm i { color: var(--success); }

/* ═══════════════════ CHECKOUT ═══════════════════ */
.checkout-section { padding: 120px 0 80px; min-height: 80vh; }
.checkout-wrapper { max-width: 800px; margin: 0 auto; }
.checkout-steps {
    display: flex; justify-content: center; gap: 0; margin-bottom: 48px;
    position: relative;
}
.step {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 24px; font-size: 0.9rem; font-weight: 600;
    color: var(--text-light); position: relative;
}
.step span {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #e0e0e0; color: var(--white); font-weight: 700;
    transition: var(--transition);
}
.step.active span { background: var(--primary); }
.step.completed span { background: var(--success); }
.step.active { color: var(--primary); }
.step.completed { color: var(--success); }
.step + .step::before {
    content: ''; position: absolute; left: -20px; top: 50%;
    width: 40px; height: 2px; background: #e0e0e0;
    transform: translateY(-50%);
}
.step.active + .step::before, .step.completed + .step::before { background: var(--primary); }

/* Forms */
.checkout-step-content {
    background: var(--white); padding: 40px; border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.checkout-step-content h3 {
    font-size: 1.4rem; margin-bottom: 28px;
    display: flex; align-items: center; gap: 12px;
}
.checkout-step-content h3 i { color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: span 2; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select {
    padding: 12px 16px; border: 2px solid #e8e8e8; border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--text);
    transition: var(--transition);
}
.form-group input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(15,76,117,0.1); }
.form-actions { display: flex; justify-content: space-between; margin-top: 32px; gap: 12px; }

/* Order Review */
.order-review { margin-bottom: 16px; }
.review-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; border-bottom: 1px solid #f0f0f0;
}
.review-item:last-child { border-bottom: none; }
.review-item-info { display: flex; align-items: center; gap: 16px; }
.review-item-img { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; }
.review-item-img img { width: 100%; height: 100%; object-fit: cover; }
.review-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; margin-top: 16px; background: var(--bg);
    border-radius: var(--radius-sm); font-weight: 700;
}
.review-total span:last-child {
    font-size: 1.4rem; color: var(--primary);
    font-family: 'Playfair Display', serif;
}
.review-buyer {
    margin-top: 20px; padding: 20px; background: var(--bg);
    border-radius: var(--radius-sm);
}
.review-buyer h4 { font-family: 'Inter', sans-serif; font-size: 0.9rem; margin-bottom: 8px; }
.review-buyer p { font-size: 0.9rem; color: var(--text-light); }

/* Payment Processing */
.payment-processing { text-align: center; padding: 40px 0; }
.processing-animation {
    position: relative; width: 100px; height: 100px; margin: 0 auto 28px;
    display: flex; align-items: center; justify-content: center;
}
.processing-animation i { font-size: 2.5rem; color: var(--accent); z-index: 2; position: relative; }
.pulse-ring {
    position: absolute; inset: 0; border: 3px solid var(--primary);
    border-radius: 50%; animation: pulse-ring 1.5s infinite;
}
@keyframes pulse-ring { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.progress-bar {
    width: 100%; max-width: 400px; height: 6px; background: #eee;
    border-radius: 10px; margin: 20px auto; overflow: hidden;
}
.progress-fill {
    height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px; transition: width 0.5s ease;
}
.progress-text { font-size: 0.85rem; color: var(--text-light); }

/* Payment Result */
.payment-result { text-align: center; padding: 20px 0; }
.result-icon { font-size: 4rem; margin-bottom: 16px; }
.result-icon.success { color: var(--success); }
.result-icon.error { color: var(--danger); }
.result-icon.pending { color: var(--accent); }
.payment-result h3 { font-size: 1.5rem; margin-bottom: 12px; }
.payment-result p { color: var(--text-light); margin-bottom: 8px; }
.payment-link-box {
    margin: 24px auto; max-width: 500px; padding: 20px;
    background: var(--bg); border-radius: var(--radius-sm);
    border: 2px dashed var(--primary-light);
}
.payment-link-box a {
    color: var(--primary); word-break: break-all; font-weight: 600;
    text-decoration: none;
}
.payment-link-box a:hover { text-decoration: underline; }
.payment-link-box .link-note { font-size: 0.82rem; color: var(--text-light); margin-top: 8px; }

/* Status tracking */
.status-section { padding: 120px 0 80px; min-height: 80vh; }
.status-card {
    max-width: 700px; margin: 0 auto; background: var(--white);
    padding: 48px; border-radius: var(--radius); box-shadow: var(--shadow);
    text-align: center;
}
.status-timeline {
    display: flex; flex-direction: column; gap: 0; margin: 32px 0;
    text-align: left; max-width: 400px; margin-left: auto; margin-right: auto;
}
.timeline-step {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 12px 0; position: relative;
}
.timeline-step::before {
    content: ''; position: absolute; left: 15px; top: 36px;
    width: 2px; height: calc(100% - 24px); background: #eee;
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #eee; color: var(--text-light); font-size: 0.8rem;
}
.timeline-dot.active { background: var(--primary); color: var(--white); animation: pulse 2s infinite; }
.timeline-dot.done { background: var(--success); color: var(--white); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(15,76,117,0.4); } 50% { box-shadow: 0 0 0 8px rgba(15,76,117,0); } }
.timeline-info strong { display: block; font-size: 0.9rem; }
.timeline-info span { font-size: 0.8rem; color: var(--text-light); }

/* ═══════════════════ CONFIG MODAL ═══════════════════ */
.config-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%; border: none;
    background: var(--primary); color: var(--white); font-size: 1.2rem;
    cursor: pointer; box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.config-fab:hover { transform: scale(1.1); }
.config-fab.connected { background: var(--success); }
.config-modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
}
.config-modal {
    background: var(--white); padding: 36px; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); width: 100%; max-width: 480px;
}
.config-modal h3 { font-size: 1.3rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.config-modal h3 i { color: var(--primary); }
.config-desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 24px; }
.config-status {
    padding: 12px; border-radius: var(--radius-sm); margin-bottom: 16px;
    font-size: 0.9rem; display: none;
}
.config-status.success { display: block; background: #e8f5e9; color: #2e7d32; }
.config-status.error { display: block; background: #ffebee; color: #c62828; }

/* ═══════════════════ TOAST ═══════════════════ */
.toast-container { position: fixed; top: 100px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; border-radius: var(--radius-sm);
    background: var(--white); box-shadow: var(--shadow-lg);
    animation: slideIn 0.4s ease; min-width: 300px;
    font-size: 0.9rem; font-weight: 500;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }
.toast i { font-size: 1.2rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--primary); }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } }

/* ═══════════════════ FOOTER ═══════════════════ */
.footer { background: #1a1a2e; color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); text-decoration: none;
}
.social-links a:hover { background: var(--accent); color: var(--white); }
.footer-links h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 0.95rem; margin-bottom: 16px; }
.footer-links a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; padding: 4px 0; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.payment-badges { display: flex; flex-direction: column; gap: 8px; }
.pay-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08); padding: 8px 14px;
    border-radius: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.7);
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 0.8rem; }

/* ═══════════════════ CHECKOUT/STATUS SECTIONS ═══════════════════ */
#sectionCheckout,
#sectionStatus {
    min-height: 100vh;
    padding-top: 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
#sectionCheckout.visible,
#sectionStatus.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════ ORDER REVIEW ═══════════════════ */
.review-items-list { margin-bottom: 24px; }
.review-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; border-bottom: 1px solid #eee;
}
.review-item-info { display: flex; align-items: center; gap: 14px; }
.review-item-img {
    width: 60px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0;
}
.review-item-img img { width: 100%; height: 100%; object-fit: cover; }

.review-totals {
    background: var(--bg); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 24px;
}
.review-total-line {
    display: flex; justify-content: space-between; padding: 8px 0;
    font-size: 0.95rem; color: var(--text-light);
}
.review-total-line.discount { color: var(--success); }
.review-total-line.grand-total {
    border-top: 2px solid var(--primary); margin-top: 8px; padding-top: 14px;
    font-size: 1.15rem; font-weight: 700; color: var(--text);
}

.review-buyer {
    background: var(--bg); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 24px;
}
.review-buyer h4 { margin-bottom: 8px; font-family: 'Inter', sans-serif; font-size: 0.95rem; }
.review-buyer p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

.review-payment-badge {
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f0ff 100%);
    border: 1px solid rgba(15, 76, 117, 0.1);
    border-radius: var(--radius-sm); padding: 20px;
}
.rpb-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.review-payment-badge p { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* ═══════════════════ PAYMENT RESULT ═══════════════════ */
.result-icon {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
}
.result-icon.success { background: #e8f5e9; color: var(--success); }
.result-icon.error { background: #ffebee; color: var(--danger); }
.result-icon.warning { background: #fff8e1; color: #f57c00; }
.result-icon.info { background: #e3f2fd; color: var(--primary); }
.result-icon.pending { background: #fff8e1; color: var(--accent); }

.payment-link-box {
    background: var(--bg); border-radius: var(--radius-sm); padding: 20px; margin: 20px 0;
    text-align: left; word-break: break-all;
}
.payment-link-box a { color: var(--primary); font-size: 0.9rem; }
.link-note { font-size: 0.82rem; color: var(--text-light); margin-top: 10px; }

.result-details-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin: 24px 0; text-align: left;
}
.result-detail {
    background: var(--bg); border-radius: var(--radius-sm); padding: 16px;
}
.rd-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 6px; }
.rd-value { font-size: 1rem; font-weight: 600; color: var(--text); }
.rd-status { color: #f57c00; }
.rd-amount { color: var(--primary); font-size: 1.1rem; }

.result-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px;
}

/* ═══════════════════ STATUS TIMELINE ═══════════════════ */
.status-timeline { padding-left: 10px; }
.timeline-step { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 20px; position: relative; }
.timeline-step:not(:last-child)::after {
    content: ''; position: absolute; left: 13px; top: 30px; bottom: 0;
    width: 2px; background: #ddd;
}
.timeline-dot {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; flex-shrink: 0; position: relative; z-index: 1;
}
.timeline-dot.done { background: #e8f5e9; color: var(--success); }
.timeline-dot.active { background: var(--primary); color: var(--white); }
.timeline-info { display: flex; flex-direction: column; }
.timeline-info strong { font-size: 0.9rem; }
.timeline-info span { font-size: 0.78rem; color: var(--text-light); }

/* ═══════════════════ PROCESSING ANIMATION ═══════════════════ */
.processing-animation { position: relative; display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin: 0 auto; }
.pulse-ring {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    border: 3px solid var(--primary); opacity: 0;
    animation: pulseRing 1.5s ease-out infinite;
}
@keyframes pulseRing {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-img-secondary { position: static; width: 60%; margin-top: -80px; margin-left: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .packages-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .checkout-steps { flex-wrap: wrap; }
    .step + .step::before { display: none; }
    .cart-drawer { width: 100vw; max-width: 100vw; }
    .result-details-grid { grid-template-columns: 1fr; }
    .review-payment-badge { flex-direction: column; text-align: center; }
}

/* ═══════════════════ LOGIN OVERLAY (finto demo/demo) ═══════════════════ */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(15, 23, 42, .85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
    padding: 32px 28px;
    width: 100%;
    max-width: 380px;
}
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary, #2563eb);
    margin-bottom: 18px;
}
.login-logo i { font-size: 1.6rem; }
.login-card h3 {
    font-size: 1.1rem;
    margin: 0 0 6px;
    text-align: center;
    color: var(--text, #1e293b);
}
.login-desc {
    font-size: .85rem;
    color: var(--text-light, #64748b);
    text-align: center;
    margin: 0 0 18px;
}
.login-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .85rem;
    margin: 6px 0 12px;
}
.login-config-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: .85rem;
    color: var(--text-light, #64748b);
    text-decoration: none;
}
.login-config-link:hover { color: var(--primary, #2563eb); }

/* ═══════════════════ NAV LOGOUT ═══════════════════ */
.nav-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: inherit;
    text-decoration: none;
    transition: background .2s;
    margin-left: 4px;
}
.nav-logout:hover { background: rgba(255, 255, 255, .3); }
.navbar.scrolled .nav-logout { background: #f1f5f9; color: var(--text, #1e293b); }
.navbar.scrolled .nav-logout:hover { background: #e2e8f0; }

/* ═══════════════════ PAYMENT IFRAME MODAL ═══════════════════ */
.payment-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(15, 23, 42, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.payment-modal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
    width: 100%;
    max-width: 760px;
    height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.payment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--primary, #2563eb);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
}
.payment-modal-header i.fa-lock { margin-right: 6px; }
.payment-modal-close {
    background: rgba(255, 255, 255, .15);
    border: 0;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.payment-modal-close:hover { background: rgba(255, 255, 255, .3); }
.payment-modal iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: #f8fafc;
}

@media (max-width: 640px) {
    .payment-modal { height: 92vh; max-width: 100vw; border-radius: 0; }
}
