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

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
    border-radius: 4px;
}

body {
    font-family: 'Heebo', sans-serif;
    background: linear-gradient(135deg, #0A2540 0%, #1E3A5F 50%, #2C5282 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
        background: linear-gradient(135deg, #0A2540 0%, #1E3A5F 100%);
    }
}

.container {
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
}

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

.payment-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.payment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .payment-card {
        border-radius: 20px;
    }
    
    .payment-card:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 480px) {
    .payment-card {
        border-radius: 16px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    }
    
    .payment-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
    }
}

.header {
    background: linear-gradient(135deg, #1E3A5F 0%, #2C5282 100%);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(10px, 10px); opacity: 0.8; }
}

@media (max-width: 768px) {
    .header {
        padding: 24px 20px;
    }
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #0A2540;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

.logo-icon img {
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.logo h1 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .logo-icon img {
        width: 32px !important;
        height: 32px !important;
    }
    
    .logo h1 {
        font-size: 18px;
    }
}

.content {
    padding: 40px 30px;
}

@media (max-width: 768px) {
    .content {
        padding: 32px 24px;
    }
}

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

.payment-icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 20px;
    animation: iconBounce 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes iconBounce {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #1E3A5F;
    margin-bottom: 30px;
    animation: slideInDown 0.6s ease-out 0.2s backwards;
}

@keyframes slideInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@media (max-width: 768px) {
    .payment-icon {
        font-size: 42px;
    }
    
    .title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .payment-icon {
        font-size: 38px;
        margin-bottom: 16px;
    }
    
    .title {
        font-size: 21px;
        margin-bottom: 24px;
    }
}

.payment-details {
    background: linear-gradient(135deg, #F8F9FA 0%, #F3F4F6 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    animation: slideInUp 0.7s ease-out 0.3s backwards;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.payment-details:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .payment-details {
        padding: 20px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .payment-details {
        padding: 18px;
        border-radius: 12px;
        margin-bottom: 24px;
    }
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.detail-row:hover {
    transform: translateX(-2px);
}

.detail-row .label {
    font-size: 16px;
    color: #6B7280;
    font-weight: 500;
    transition: color 0.3s ease;
}

.detail-row:hover .label {
    color: #1E3A5F;
}

.detail-row .value {
    font-size: 16px;
    color: #1F2937;
    font-weight: 600;
    transition: all 0.3s ease;
}

.detail-row:hover .value {
    color: #D4AF37;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .detail-row .label,
    .detail-row .value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .detail-row {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    
    .detail-row .label,
    .detail-row .value {
        font-size: 13px;
    }
}

.amount-section {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 12px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        background: rgba(212, 175, 55, 0.05);
        transform: scale(1);
    }
    50% { 
        background: rgba(212, 175, 55, 0.1);
        transform: scale(1.02);
    }
}

.amount-label {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

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

.amount {
    font-size: 42px;
    font-weight: 700;
    color: #D4AF37;
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
    animation: scaleInBounce 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.5s backwards;
    transition: all 0.3s ease;
}

@keyframes scaleInBounce {
    0% { 
        transform: scale(0); 
        opacity: 0; 
    }
    60% { 
        transform: scale(1.1); 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.amount:hover {
    transform: scale(1.08);
    text-shadow: 0 4px 8px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
    .amount-section {
        padding: 16px;
    }
    
    .amount-label {
        font-size: 12px;
    }
    
    .amount {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .amount-section {
        padding: 14px;
    }
    
    .amount-label {
        font-size: 11px;
    }
    
    .amount {
        font-size: 32px;
    }
}

.pay-button {
    width: 100%;
    min-height: 56px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
    color: #0A2540;
    border: none;
    border-radius: 14px;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

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

.pay-button:hover::before {
    left: 100%;
}

.pay-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.55);
}

.pay-button:active {
    transform: translateY(-1px) scale(0.97);
    transition-duration: 0.1s;
}

.pay-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2), 0 8px 25px rgba(212, 175, 55, 0.5);
}

.pay-button svg {
    transition: transform 0.3s ease;
}

.pay-button:hover svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .pay-button {
        padding: 16px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pay-button {
        padding: 15px 20px;
        font-size: 15px;
    }
}

/* Button disabled state */
.pay-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.pay-button:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: #6B7280;
    font-size: 14px;
    animation: fadeIn 1s ease-out 0.8s backwards;
    transition: all 0.3s ease;
}

.security-badge:hover {
    color: #1E3A5F;
    transform: scale(1.05);
}

.security-badge svg {
    color: #D4AF37;
    transition: all 0.3s ease;
}

.security-badge:hover svg {
    color: #F4D03F;
    transform: rotate(10deg);
}

@media (max-width: 768px) {
    .security-badge {
        font-size: 12px;
    }
}

.footer-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 20px;
    font-weight: 300;
    animation: fadeIn 1.2s ease-out 1s backwards;
    transition: all 0.3s ease;
}

.footer-text:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-text {
        font-size: 11px;
        margin-top: 16px;
    }
}

/* Success Page Styles */
.success-card .content {
    text-align: center;
}

.success-icon {
    margin-bottom: 25px;
    animation: scaleIn 0.5s ease-out;
}

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

.success-title {
    color: #D4AF37;
}

.success-message {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 30px;
}

.transaction-info {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 20px;
    text-align: right;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid #E5E7EB;
}

.info-row .label {
    color: #6B7280;
    font-size: 14px;
}

.info-row .value {
    color: #1F2937;
    font-weight: 600;
    font-size: 14px;
}

/* Failed Page Styles */
.failed-icon {
    margin-bottom: 25px;
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.failed-title {
    color: #C9A05C;
}

.failed-message {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 30px;
}

.retry-button {
    width: 100%;
    background: linear-gradient(135deg, #1E3A5F 0%, #2C5282 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

.help-text {
    margin-top: 25px;
    font-size: 14px;
    color: #6B7280;
}

.help-text a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
}

.help-text a:hover {
    text-decoration: underline;
}

/* Responsive - Laptop Only */
@media (min-width: 1024px) and (max-width: 1280px) {
    .container {
        max-width: 600px;
        padding: 20px;
    }

    .header {
        padding: 28px 24px;
    }

    .content {
        padding: 35px 25px;
    }

    .title {
        font-size: 26px;
    }

    .amount {
        font-size: 40px;
    }
}

@media (min-width: 1281px) and (max-width: 1920px) {
    .container {
        max-width: 600px;
    }
}

