/* ===================================
   CHECKOUT PAGE ENHANCEMENTS
   Beautiful, Responsive, Creative Theme
   Matching Homepage Colors & Style
   =================================== */

/* ===================================
   BODY & BACKGROUND
   =================================== */

body {
    background: linear-gradient(to bottom, #ffffff 0%, #f7fafc 50%, #edf2f7 100%) !important;
    background-attachment: fixed;
}

/* ===================================
   NAVBAR ENHANCEMENTS FOR CHECKOUT
   =================================== */

.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.03) 0%, 
        rgba(240, 147, 251, 0.03) 50%,
        rgba(118, 75, 162, 0.03) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.navbar .logo i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6)) drop-shadow(0 0 30px rgba(240, 147, 251, 0.4));
    }
}

/* ===================================
   CHECKOUT SECTION
   =================================== */

.checkout-section {
    min-height: 100vh;
    padding: 140px 1rem 80px;
    background: linear-gradient(to bottom, #ffffff 0%, #f7fafc 50%, #edf2f7 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

/* Animated gradient orbs in background - matching home page */
.checkout-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float-orb-1 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-orb-1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(100px, 100px);
    }
}

/* Secondary floating orb */
.checkout-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float-orb-2 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-orb-2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-80px, -80px);
    }
}

/* ===================================
   PROGRESS STEPS - Enhanced to match home page
   =================================== */

.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.6s ease;
}

.checkout-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.05) 0%, 
        rgba(240, 147, 251, 0.05) 100%);
    border-radius: var(--border-radius);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.4),
        0 0 30px rgba(240, 147, 251, 0.2);
    transform: scale(1.1);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(102, 126, 234, 0.4),
            0 0 40px rgba(240, 147, 251, 0.2);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(102, 126, 234, 0.5),
            0 0 60px rgba(240, 147, 251, 0.3);
    }
}

.step-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.progress-step.active .step-label {
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin: 0 1rem;
    position: relative;
    top: -20px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transition: width 0.6s ease;
    border-radius: 3px;
}

.progress-step.active ~ .progress-line::before,
.progress-step.completed ~ .progress-line::before {
    width: 100%;
}

/* ===================================
   CHECKOUT CONTAINER
   =================================== */

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

/* ===================================
   CHECKOUT CARDS - Matching home page feature cards
   =================================== */

.checkout-card {
    background: white !important;
    padding: 2rem !important;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color-light);
    position: relative;
    overflow: hidden;
}

.checkout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.checkout-card:hover::before {
    transform: scaleX(1);
}

.checkout-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.2);
}

/* Card Header */
.checkout-card .card-header,
.checkout-card h2 {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    font-weight: 700;
    /* margin-bottom: 2rem; */
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-card .card-header i,
.checkout-card h2 i {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
}

.card-body {
    padding: 0 !important;
}

/* ===================================
   PLAN OPTIONS GRID - Matching home page pricing cards
   =================================== */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-option {
    background: linear-gradient(145deg, #ffffff 0%, #f8f7ff 100%);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
}

.plans-grid .plan-option:nth-child(1) { animation-delay: 0.1s; }
.plans-grid .plan-option:nth-child(2) { animation-delay: 0.15s; }
.plans-grid .plan-option:nth-child(3) { animation-delay: 0.2s; }
.plans-grid .plan-option:nth-child(4) { animation-delay: 0.25s; }
.plans-grid .plan-option:nth-child(5) { animation-delay: 0.3s; }

/* Gradient border effect from home page */
.plan-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.plan-option:hover::before {
    opacity: 1;
}

.plan-option::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.plan-option:hover::after {
    opacity: 1;
}

.plan-option:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25), 0 0 40px rgba(240, 147, 251, 0.15);
}

.plan-option.active,
.plan-option.selected {
    background: linear-gradient(145deg, #faf9ff 0%, #f0edff 100%);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3), 
                0 0 60px rgba(240, 147, 251, 0.2);
}

.plan-option.active::before,
.plan-option.selected::before {
    opacity: 1;
    animation: rotate-gradient 4s linear infinite;
}

.plan-option.recommended {
    background: linear-gradient(145deg, #faf9ff 0%, #f0edff 100%);
    border: 2px solid transparent;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.plan-option.recommended::before {
    opacity: 1;
}

@keyframes rotate-gradient {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Recommended Badge - matching home page best value badge */
.plan-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c471ed 50%, #667eea 100%);
    background-size: 200% 200%;
    color: #ffffff;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.5);
    animation: badge-pulse-checkout 2s ease-in-out infinite, gradient-shift 3s ease infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes badge-pulse-checkout {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(255, 107, 157, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
    }
}

/* Plan Header */
.plan-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.6rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 1rem 0;
}

.plan-price .currency {
    font-size: 1.25rem;
    vertical-align: super;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.25rem;
}

.plan-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    letter-spacing: -2px;
}

.credits-info {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    font-weight: 500;
    text-align: center;
}

.savings {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 0.35rem;
    text-align: center;
    display: block;
}

/* Plan Features - matching home page */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.plan-features li {
    color: #475569;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.plan-features li:hover {
    color: #667eea;
    transform: translateX(6px);
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, transparent 100%);
    border-radius: 6px;
    padding-left: 8px;
}

.plan-features li i {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    min-width: 20px;
}

/* ===================================
   ORDER SUMMARY SIDEBAR - Matching home page style
   =================================== */

.order-summary {
    position: sticky;
    top: 120px;
    background: #dad4fd;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color-light);
    animation: fadeInRight 0.8s ease;
    transition: var(--transition);
}

.order-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.order-summary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.order-summary h3 {
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-summary h3 i {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color-light);
    transition: all 0.3s ease;
}

.summary-item:hover {
    background: linear-gradient(90deg,
        rgba(102, 126, 234, 0.05) 0%,
        transparent 100%);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: 6px;
}

.summary-item .label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.summary-item .value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.summary-item.total {
    border-bottom: none;
    padding-top: 1rem;
    font-size: 1.05rem;
    margin-top: 0.75rem;
    border-top: 2px solid var(--border-color);
}

.summary-item.total .label,
.summary-item.total .value {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--border-color), 
        transparent);
    margin: 0.75rem 0;
}

.promo-code {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.promo-code input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    transition: var(--transition);
}

.promo-code input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-apply-promo {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-apply-promo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trust-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color-light);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.trust-item i {
    color: var(--success-color);
    font-size: 0.9rem;
}

/* ===================================
   PAYMENT FORM - Matching home page input styles
   =================================== */

.payment-form {
    margin-top: 2rem;
    animation: fade-in-up 0.6s ease-out;
}

.form-group {
    margin-bottom: 1.5rem;
    animation: slideInUp 0.6s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary-color);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    z-index: 2;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-with-icon input,
.input-with-icon select,
.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    padding-left: 1rem;
}

.input-with-icon input:focus,
.input-with-icon select:focus,
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.15),
        0 4px 8px rgba(118, 75, 162, 0.1);
    transform: translateY(-2px);
}

.input-with-icon input:focus ~ i {
    transform: scale(1.15);
    color: var(--primary-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
}

.card-brands {
    position: absolute;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
    align-items: center;
}

.card-brands img {
    transition: all 0.3s ease;
    filter: grayscale(100%) opacity(0.5);
    border-radius: 4px;
}

.card-brands img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.card-support-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border-radius: 8px;
    border-left: 3px solid var(--success-color);
    font-size: 0.875rem;
}

.card-support-message i {
    color: var(--success-color);
}

.card-support-message span {
    color: var(--success-color);
    font-weight: 600;
}

/* ===================================
   BUTTONS - Matching home page button styles
   =================================== */

.btn-primary,
.btn-full,
#continueBtn,
#buyNowBtn,
.btn-checkout,
button[type="submit"] {
    width: 100% !important;
    padding: 1.125rem 2rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: var(--border-radius-sm);
    color: white !important;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 1.5rem;
}

.btn-primary::before,
.btn-full::before,
#continueBtn::before,
#buyNowBtn::before,
.btn-checkout::before,
button[type="submit"]::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 cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::before,
.btn-full:hover::before,
#continueBtn:hover::before,
#buyNowBtn:hover::before,
.btn-checkout:hover::before,
button[type="submit"]:hover::before {
    left: 100%;
}

.btn-primary:hover,
.btn-full:hover,
#continueBtn:hover,
#buyNowBtn:hover,
.btn-checkout:hover,
button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(102, 126, 234, 0.5),
        0 0 40px rgba(240, 147, 251, 0.3);
}

.btn-primary:active,
.btn-full:active,
#continueBtn:active,
#buyNowBtn:active,
.btn-checkout:active,
button[type="submit"]:active {
    transform: translateY(-1px) scale(0.98);
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.1),
        rgba(5, 150, 105, 0.05));
    border-radius: var(--border-radius-sm);
    color: var(--success-color);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.security-badge i {
    font-size: 1.25rem;
}

/* ===================================
   FOOTER - Matching home page
   =================================== */

.footer {
    background: white;
    border-top: 1px solid var(--border-color-light);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    margin: 0;
}

.security-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.security-badges span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
}

.security-badges span i {
    color: var(--success-color);
}

/* ===================================
   ANIMATIONS - Matching home page
   =================================== */

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

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

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

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

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

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
    
    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .checkout-section {
        padding: 120px 1rem 60px;
    }
    
    .checkout-progress {
        padding: 1rem;
    }
    
    .progress-line {
        width: 60px;
        margin: 0 0.75rem;
    }
    
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.85rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-card {
        padding: 1.5rem !important;
    }
    
    .checkout-card .card-header h2,
    .checkout-card h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .checkout-section {
        padding: 100px 0.75rem 40px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .step-label {
        display: none;
    }
    
    .progress-line {
        width: 40px;
        margin: 0 0.5rem;
    }
    
    .checkout-card .card-header h2,
    .checkout-card h2 {
        font-size: 1.35rem;
    }
    
    .plan-price .amount {
        font-size: 2.25rem;
    }
    
    .order-summary {
        padding: 1.5rem;
    }
    
    .order-summary h3 {
        font-size: 1.25rem;
    }
    
    .btn-primary,
    .btn-full,
    #continueBtn,
    #buyNowBtn,
    .btn-checkout,
    button[type="submit"] {
        font-size: 1rem !important;
        padding: 1rem 1.5rem !important;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Ensure high contrast for better readability */
@media (prefers-contrast: high) {
    .checkout-card,
    .plan-option,
    .order-summary {
        border-width: 2px;
        border-color: var(--text-primary);
    }
    
    .plan-option:hover,
    .plan-option.active,
    .plan-option.selected {
        border-color: var(--primary-color);
        border-width: 3px;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Reserved for future dark mode implementation */
}
