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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.header {
    margin-bottom: 80px;
}

.logo {
    font-size: 32px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo span {
    color: #006fee;
    font-weight: 500;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: start;
}

/* Summary Section */
.summary-section {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 40px;
}

.summary-section h2 {
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.product-item {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.product-image {
    width: 64px;
    height: 80px;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.product-details {
    flex: 1;
}

.product-price {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #ffffff;
}

.product-name {
    color: #8c8c90;
    font-size: 14px;
    font-weight: 400;
}

.summary-breakdown {
    border-top: 1px solid #27272a;
    padding-top: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
    color: #b2b2b5;
    font-weight: 400;
}

.summary-row.total {
    font-weight: 500;
    font-size: 18px;
    color: #ffffff;
    border-top: 1px solid #27272a;
    padding-top: 16px;
    margin-top: 16px;
}

/* Payment Section */
.payment-section {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 48px;
}



.payment-option {
    margin-bottom: 32px;
    padding: 20px;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    background: #27272a;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
}

.payment-option:hover {
    border-color: #52525b;
    background: #3f3f46;
}

.payment-option input[type="radio"] {
    margin-right: 16px;
    transform: scale(1.1);
    flex-shrink: 0;
    accent-color: #006fee;
}

.payment-option label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    color: #ffffff;
    white-space: nowrap;
    margin: 0;
}

.card-icon {
    margin-right: 12px;
    font-size: 16px;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #b2b2b5;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-input-group {
    position: relative;
    margin-bottom: 12px;
}

.card-input-group input {
    width: 100%;
    padding: 18px 60px 18px 18px;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    font-size: 15px;
    background: #27272a;
    color: #ffffff;
    transition: all 0.15s ease;
    font-weight: 400;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.card-input-group input:focus {
    outline: none;
    border-color: #006fee;
    background: #3f3f46;
    box-shadow: 0 0 0 2px rgba(0, 111, 238, 0.2);
}

.card-input-group input::placeholder {
    color: #8c8c90;
}

.card-brands {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
}

.card-brands img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    opacity: 0.7;
}

.card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.card-details input {
    padding: 18px;
    border: 1px solid #3f3f46;
    font-size: 15px;
    background: #27272a;
    color: #ffffff;
    transition: all 0.15s ease;
    font-weight: 400;
    border-radius: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.card-details input:focus {
    outline: none;
    border-color: #006fee;
    background: #3f3f46;
    box-shadow: 0 0 0 2px rgba(0, 111, 238, 0.2);
}

.card-details input::placeholder {
    color: #8c8c90;
}

input[type="text"] {
    width: 100%;
    padding: 18px;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    font-size: 15px;
    background: #27272a;
    color: #ffffff;
    transition: all 0.15s ease;
    font-weight: 400;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="text"]:focus {
    outline: none;
    border-color: #006fee;
    background: #3f3f46;
    box-shadow: 0 0 0 2px rgba(0, 111, 238, 0.2);
}

input[type="text"]::placeholder {
    color: #8c8c90;
}

.pay-button {
    width: 100%;
    background: #006fee;
    color: #ffffff;
    border: none;
    padding: 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pay-button:hover {
    background: #2d88f1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 111, 238, 0.3);
}

.pay-button:active {
    background: #005cc4;
    transform: scale(0.98);
}

.pay-button:disabled {
    background: #3f3f46;
    color: #8c8c90;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 80px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid #3f3f46;
    border-top: 2px solid #006fee;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 32px;
}

.loading-state p {
    color: #b2b2b5;
    font-size: 15px;
    font-weight: 400;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success State */
.success-state {
    text-align: center;
    padding: 80px 20px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #17c964;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 32px;
}

.success-state h3 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.success-state p {
    color: #b2b2b5;
    margin-bottom: 40px;
    font-size: 15px;
    font-weight: 400;
}

.continue-button {
    background: #27272a;
    color: #ffffff;
    border: 1px solid #3f3f46;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.continue-button:hover {
    background: #3f3f46;
    border-color: #52525b;
}

.hidden {
    display: none;
}

/* Animations */
.card-form, .loading-state, .success-state {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Error styles */
.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .container {
        padding: 24px 16px;
    }

    .payment-section {
        padding: 24px;
    }

    .summary-section {
        padding: 24px;
    }

    .header {
        margin-bottom: 40px;
    }

    .logo {
        font-size: 28px;
    }

    .summary-section h2 {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .product-price {
        font-size: 18px;
    }

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

    .card-input-group input,
    .card-details input,
    input[type="text"] {
        padding: 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .pay-button {
        padding: 18px;
        font-size: 16px;
    }

    .payment-option {
        padding: 16px;
        margin-bottom: 24px;
    }
}

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

    .payment-section,
    .summary-section {
        padding: 20px;
    }

    .header {
        margin-bottom: 32px;
    }

    .logo {
        font-size: 24px;
    }

    .main-content {
        gap: 32px;
    }

    .product-item {
        gap: 16px;
    }

    .product-image {
        width: 56px;
        height: 72px;
    }

    .card-details {
        gap: 8px;
    }

    .card-input-group input,
    .card-details input,
    input[type="text"] {
        padding: 14px;
    }

    .pay-button {
        padding: 16px;
    }
}
