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

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { 
        transform: translateY(-100%); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-card {
    width: 42px;
    height: 28px;
    background: linear-gradient(135deg, #0070ba, #005ea6);
    border-radius: 6px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.logo-card::after {
    content: "";
    width: 14px;
    height: 14px;
    background: #ffc439;
    border-radius: 50%;
    position: absolute;
    right: -6px;
    top: 7px;
}

.chip {
    width: 10px;
    height: 8px;
    background: #ffc439;
    border-radius: 2px;
    position: absolute;
    left: 6px;
    top: 10px;
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    color: #0d1b3e;
}

/* Buy Now Button in Navbar */
.nav-buy-btn {
    background: linear-gradient(135deg, #0070ba, #009cde);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 112, 186, 0.3);
}

.nav-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4);
    background: linear-gradient(135deg, #005ea6, #0070ba);
}

.nav-buy-btn svg {
    width: 16px;
    height: 16px;
}

/* ===== HERO SECTION ===== */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 60px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.hero-left {
    max-width: 500px;
}

.hero-left h1 {
    font-size: 40px;
    background: linear-gradient(135deg, #0d1b3e 0%, #0070ba 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.4s both;
    margin-bottom: 26px;
    line-height: 1.4;
}

.hero-left p {
    margin: 20px 0;
    color: #555;
    animation: fadeInUp 1s ease-out 0.6s both;
    line-height: 1.6;
}

/* Pay Button */
.pay-btn {
    background: #0070ba;
    color: #fff;
    font-weight: 600;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease-out 0.8s both;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pay-btn svg {
    width: 18px;
    height: 18px;
}

.pay-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.pay-btn:hover::before {
    width: 300px;
    height: 300px;
}

.pay-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 112, 186, 0.4);
}

/* Illustration */
.illustration {
    position: relative;
    width: 250px;
    height: 200px;
    animation: fadeInRight 1s ease-out 0.4s both;
}

@keyframes fadeInRight {
    from { 
        opacity: 0; 
        transform: translateX(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.card {
    width: 200px;
    height: 120px;
    background: #0070ba;
    border-radius: 14px;
    position: absolute;
    top: 40px;
    right: 20px;
    animation: pulse 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 112, 186, 0.4);
}

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

.circle {
    width: 120px;
    height: 120px;
    background: #ffc439;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 0;
    animation: rotate 8s linear infinite;
    box-shadow: 0 10px 25px rgba(255, 196, 57, 0.4);
}

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

/* ===== PRICING SECTION ===== */
.pricing {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.pay-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #ffc439;
    animation: fadeInUp 1s ease-out 1s both;
    transition: all 0.4s ease;
    position: relative;
}

.pay-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #fcdf9d, #b7e2ff, #c3ecfd);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pay-card:hover::before {
    opacity: 1;
}

.pay-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 112, 186, 0.3);
}

.pay-card h3 {
    color: #0d1b3e;
    margin-bottom: 15px;
    font-size: 20px;
}

.price {
    font-size: 40px;
    color: #0070ba;
    animation: scaleIn 0.6s ease-out 1.2s both;
    font-weight: 700;
    margin: 15px 0;
}

@keyframes scaleIn {
    from { 
        transform: scale(0.5); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.price span {
    font-size: 14px;
    color: #777;
}

.pay-card ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.pay-card li {
    margin: 10px 0;
    color: #555;
    font-weight: 600;
}

/* Buy Now Button */
.buy-btn {
    background: #0070ba;
    color: #fff;
    font-weight: 600;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.buy-btn svg {
    width: 18px;
    height: 18px;
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.buy-btn:hover::before {
    width: 300px;
    height: 300px;
}

.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 112, 186, 0.4);
}

/* ===== FEATURES SECTION ===== */
.features {
    text-align: center;
    padding: 60px 20px;
    animation: fadeInUp 1s ease-out 1.4s both;
}

.features h2 {
    color: #0d1b3e;
    margin-bottom: 40px;
    font-size: 32px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 112, 186, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature:hover::before {
    left: 100%;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 112, 186, 0.2);
}

.feature-icon {
    color: #0070ba;
    transition: all 0.4s ease;
    display: inline-block;
    margin-bottom: 15px;
}

.feature:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    color: #009cde;
}

.feature h3 {
    color: #0d1b3e;
    margin-bottom: 10px;
    font-size: 18px;
}

.feature p {
    color: #666;
    font-size: 14px;
}

/* ===== FOOTER ===== */
.footer {
    background: #0d1b3e;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    animation: fadeIn 1s ease-out 1.6s both;
    flex-shrink: 0;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 30px;
    }

    .hero-right {
        margin-top: 40px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .navbar {
        padding: 20px 30px;
    }
}

@media (max-width: 768px) {
    .hero-left h1 {
        font-size: 32px;
    }

    .hero-left p {
        font-size: 15px;
    }

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

    .navbar {
        padding: 15px 20px;
    }

    .logo-text {
        font-size: 20px;
    }

    .nav-buy-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .pay-card {
        width: 100%;
    }

    .pricing {
        padding: 40px 20px;
    }

    .features {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 20px;
    }

    .hero-left h1 {
        font-size: 28px;
    }

    .navbar {
        padding: 12px 15px;
    }

    .logo-card {
        width: 36px;
        height: 24px;
    }

    .logo-text {
        font-size: 18px;
    }

    .nav-buy-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .nav-buy-btn svg {
        width: 14px;
        height: 14px;
    }

    .pay-btn,
    .buy-btn {
        font-size: 14px;
        padding: 12px 24px;
    }

    .price {
        font-size: 36px;
    }
}

/* ===== SUCCESS / CANCEL PAGES ===== */
.page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    background: #001f3f;
    overflow: hidden;
    padding: 20px;
}

.page-box {
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    width: 400px;
    max-width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.page-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -60px auto 30px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-circle.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.page-circle.cancel {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.page-circle svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.page-box h2 {
    margin: 20px 0 15px 0;
    color: #003087;
    font-size: 28px;
    font-weight: 700;
}

.page-box p {
    color: #555;
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.6;
}

/* Transaction Details - Nice Lined Display */
.page-box p strong {
    display: block;
    color: #2c3e50;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.page-box p:has(strong) {
    background: linear-gradient(135deg, #f3f2f2, #f8f9fa);
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid #e7c322;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-box .button {
    padding: 15px 35px;
    background: linear-gradient(135deg, #009cde, #0070ba);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.3);
    margin-top: 10px;
}

.page-box .button:hover {
    background: linear-gradient(135deg, #0070ba, #005ea6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 112, 186, 0.4);
}

.green {
    color: #28a745;
    font-weight: 700;
}

/* Success/Cancel Page Responsive */
@media (max-width: 480px) {
    .page-box {
        padding: 40px 25px;
        width: 100%;
    }

    .page-box h2 {
        font-size: 24px;
    }

    .page-circle {
        width: 70px;
        height: 70px;
        margin: -50px auto 25px auto;
    }

    .page-circle svg {
        width: 35px;
        height: 35px;
    }

    .page-box p:has(strong) {
        padding: 12px 15px;
    }
}