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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #101c2c;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: #1a2332;
    border-bottom: 1px solid #2d3748;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-img {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.logo-text span {
    color: #03DBA5;
}

/* Main Content */
.main {
    padding: 30px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

/* Form Column */
.form-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section {
    background-color: #1a2332;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #2d3748;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    background-color: #03DBA5;
    color: #0a0e1a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Notice Box */
.notice-box {
    background-color: rgba(3, 219, 165, 0.1);
    border: 1px solid rgba(3, 219, 165, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.notice-box p {
    margin-bottom: 8px;
}

.notice-box p:last-child {
    margin-bottom: 0;
}

/* Input Group */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-field {
    width: 100%;
    padding: 12px 15px;
    background-color: #0f1923;
    border: 1px solid #2d3748;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #03DBA5;
}

.input-field::placeholder {
    color: #718096;
}

/* User Verification */
.user-verification {
    padding: 12px 15px;
    background-color: rgba(3, 219, 165, 0.1);
    border: 1px solid rgba(3, 219, 165, 0.3);
    border-radius: 6px;
    margin-top: 12px;
}

.verification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verification-icon {
    width: 24px;
    height: 24px;
    background-color: #03DBA5;
    color: #0a0e1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.verification-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-nickname {
    color: #03DBA5;
    font-size: 14px;
    font-weight: 500;
}

.change-account-btn {
    padding: 6px 12px;
    background-color: transparent;
    border: 1px solid #03DBA5;
    border-radius: 4px;
    color: #03DBA5;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.change-account-btn:hover {
    background-color: rgba(3, 219, 165, 0.1);
}

.verification-error {
    padding: 12px 15px;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}

.verification-error::before {
    content: '⚠';
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 5px;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: rgba(3, 219, 165, 0.1);
    border: 1px solid rgba(3, 219, 165, 0.3);
    border-radius: 6px;
    color: #03DBA5;
    font-size: 14px;
    margin-top: 12px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(3, 219, 165, 0.3);
    border-top-color: #03DBA5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Packages List */
.packages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.package-item {
    background-color: #0f1923;
    border: 2px solid #2d3748;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.package-item:hover {
    border-color: #03DBA5;
    background-color: rgba(3, 219, 165, 0.05);
}

.package-item.selected {
    border-color: #03DBA5;
    background-color: rgba(3, 219, 165, 0.1);
}

.package-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.package-info {
    text-align: center;
    width: 100%;
}

.package-price {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.package-desc {
    font-size: 13px;
    color: #a0aec0;
    line-height: 1.5;
}

.package-desc .bonus {
    color: #fbbf24;
    font-size: 12px;
}

.package-check {
    width: 20px;
    height: 20px;
    border: 2px solid #2d3748;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: all 0.3s;
}

.package-item.selected .package-check {
    border-color: #03DBA5;
    background-color: #03DBA5;
}

.package-item.selected .package-check::after {
    content: '✓';
    color: #0a0e1a;
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Payment List */
.payment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-item {
    background-color: #0f1923;
    border: 2px solid #2d3748;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-item:hover {
    border-color: #03DBA5;
    background-color: rgba(3, 219, 165, 0.05);
}

.payment-item.selected {
    border-color: #03DBA5;
    background-color: rgba(3, 219, 165, 0.1);
}

.payment-logo {
    width: 50px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.payment-subname {
    font-size: 12px;
    color: #718096;
}

.payment-price {
    font-size: 14px;
    color: #a0aec0;
    margin-right: 10px;
    font-weight: 500;
}

.payment-check {
    width: 20px;
    height: 20px;
    border: 2px solid #2d3748;
    border-radius: 50%;
    transition: all 0.3s;
    flex-shrink: 0;
    position: relative;
}

.payment-item.selected .payment-check {
    border-color: #03DBA5;
    background-color: #03DBA5;
}

.payment-item.selected .payment-check::after {
    content: '✓';
    color: #0a0e1a;
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Email Section */
.email-section {
    margin-bottom: 20px;
}

.email-label {
    display: block;
    font-size: 14px;
    color: #a0aec0;
    margin-bottom: 8px;
    font-weight: 500;
}

.email-hint {
    font-size: 12px;
    color: #718096;
    margin-top: 6px;
}

/* Buy Button */
.buy-button {
    width: 100%;
    padding: 15px;
    background-color: #03DBA5;
    color: #0a0e1a;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-button:hover:not(:disabled) {
    background-color: #02b88c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 219, 165, 0.3);
}

.buy-button:disabled {
    background-color: #2d3748;
    color: #718096;
    cursor: not-allowed;
}

/* Banner Column */
.banner-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.banner {
    background-color: #1a2332;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2d3748;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.product-info {
    background-color: #1a2332;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #2d3748;
}

.info-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.info-content {
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-content p {
    margin-bottom: 10px;
}

.download-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-buttons {
    display: flex;
    gap: 10px;
}

.download-btn {
    flex: 1;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn img {
    width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    transition: transform 0.3s;
}

.download-btn:hover img {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: #1a2332;
    border-top: 1px solid #2d3748;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-country {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ffffff;
}

.flag {
    font-size: 18px;
}

.footer-links {
    font-size: 13px;
    color: #a0aec0;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #03DBA5;
}

.footer-right {
    font-size: 13px;
    color: #a0aec0;
}

/* Mobile Purchase Bar */
.mobile-purchase-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a2332;
    border-top: 1px solid #2d3748;
    padding: 15px;
    z-index: 100;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.mobile-total-label {
    color: #a0aec0;
}

.mobile-total-amount {
    color: #03DBA5;
    font-weight: 700;
}

.mobile-buy-button {
    width: 100%;
    padding: 12px;
    background-color: #03DBA5;
    color: #0a0e1a;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-buy-button:hover:not(:disabled) {
    background-color: #02b88c;
}

.mobile-buy-button:disabled {
    background-color: #2d3748;
    color: #718096;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .banner-column {
        order: -1;
    }

    .banner {
        max-height: 300px;
    }

    .banner-placeholder svg {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .packages-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .package-item {
        padding: 12px;
    }

    .package-icon {
        font-size: 28px;
    }

    .form-section {
        padding: 20px;
    }

    .mobile-purchase-bar {
        display: block;
    }

    .main {
        padding-bottom: 100px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .packages-list {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 14px;
    }

    .download-buttons {
        flex-direction: column;
    }

    .verification-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .verification-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .change-account-btn {
        width: 100%;
    }
}
