/* Reset và base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a url('/files/bg.png') center/cover no-repeat fixed;
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background overlay với game images */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: -1;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

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

.roblox-logo {
    width: 50px;
    height: 50px;
    background: #0066cc;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-inner {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 4px;
    transform: rotate(45deg);
    position: relative;
}

.logo-inner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 15px;
    height: 15px;
    background: #0066cc;
    border-radius: 2px;
}

.brand-text {
    background: #000;
    color: white;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    position: relative;
}

.search-bar input {
    padding: 8px 35px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    width: 200px;
}

.search-bar i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    color: #666;
}

.region {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero-banner {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.roblox-hero-logo {
    width: 100px;
    height: 100px;
    background: #0066cc;
    border-radius: 15px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-logo-inner {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    transform: rotate(45deg);
    position: relative;
}

.hero-logo-inner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 30px;
    height: 30px;
    background: #0066cc;
    border-radius: 4px;
}

.hero-banner h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
}

/* Content cards */
.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Combined card styling */
.combined-card {
    display: flex;
    flex-direction: column !important;
    gap: 30px;
}

.step-section {
    width: 100% !important;
}

.step-section h3 {
    margin-bottom: 20px;
    color: #333;
}

/* Ensure vertical layout for all screen sizes */
.combined-card {
    flex-direction: column !important;
}

.step-1 {
    order: 1;
}

.step-2 {
    order: 2;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.card h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #0066cc;
}

.help-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    float: right;
    margin-top: 5px;
}

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

.confirm-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.confirm-btn:hover {
    transform: translateY(-2px);
}

/* Package list */
.package-list-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #0066cc;
    font-weight: 600;
}


/* Packages grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.package-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.package-item:hover {
    border-color: #0066cc;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,102,204,0.2);
}

.package-item.selected {
    border-color: #ff6b35;
    background: #fff5f0;
}

.package-item.selected .select-indicator {
    opacity: 1;
    background: #28a745;
}

.package-item:not(.selected) .select-indicator {
    opacity: 0;
}

.package-image {
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/files/bg.png') center/cover;
    background-size: cover;
    background-position: center;
}

.package-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.robux-image {
    width: 50%;
    height: 50%;
    object-fit: contain;
    border-radius: 10px;
}

.robux-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255,215,0,0.4);
    z-index: 3;
}

.package-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.package-price {
    font-size: 18px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 15px;
}

.select-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transition: all 0.3s;
    opacity: 0;
}

.select-indicator i {
    font-size: 12px;
}

/* Order summary */
.order-summary {
    margin-bottom: 25px;
}

.no-package-message {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-package-message p {
    margin: 0;
    color: #6c757d;
    font-style: italic;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.item-thumbnail {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.robux-mini {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: #333;
}

.item-info {
    flex: 1;
}

.item-name {
    display: block;
    font-weight: 600;
    color: #333;
}

.item-price {
    display: block;
    color: #ff6b35;
    font-weight: bold;
}

.item-quantity {
    font-weight: bold;
    color: #666;
}

/* Payment method */
.payment-method {
    margin-bottom: 25px;
}

.payment-method label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #555;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #ccc;
}

.payment-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
}

.payment-option.selected input[type="radio"] + .radio-custom {
    border-color: #ff6b35;
}

.payment-option.selected input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #ff6b35;
    border-radius: 50%;
}

.payment-option.selected {
    border-color: #ff6b35 !important;
    background: rgba(255, 107, 53, 0.1) !important;
}

.payment-option:not(.selected) {
    border-color: #e0e0e0 !important;
    background: transparent !important;
}

.card-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.input-group input {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.input-group input:focus {
    outline: none;
    border-color: #0066cc;
}

/* Total payment */
.total-payment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.total-payment span:first-child {
    font-weight: 600;
    color: #555;
}

.total-amount {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b35;
}

/* Terms */
.terms {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.terms-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s;
}

.terms-link:hover {
    text-decoration: none;
    background: #e7f3ff;
    color: #004499;
}

/* Pay now button */
.pay-now-btn {
    width: 100%;
    padding: 15px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.pay-now-btn:hover {
    background: #5a6268;
}

.pay-now-btn.active {
    background: #28a745;
}

.pay-now-btn.active:hover {
    background: #218838;
}

.pay-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #000;
}

.terms-modal {
    max-height: 70vh;
    overflow-y: auto;
}

.terms-modal h3 {
    margin-bottom: 20px;
    color: #333;
}

.terms-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

/* Responsive design */
@media (max-width: 1024px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .content-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    
    .payment-options {
        flex-direction: column;
    }
    
    .total-payment {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    margin-top: 60px;
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff6b35;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* Help and Contact Modals */
.help-content h4 {
    color: #0066cc;
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

.help-content p {
    margin-bottom: 15px;
    color: #666;
}

.help-content .highlight {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-item i {
    font-size: 24px;
    color: #0066cc;
    width: 30px;
    text-align: center;
}

.contact-item h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.contact-item p {
    margin: 0;
    color: #666;
}

/* ID Guide Modal */
.id-guide-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.id-guide-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.guide-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
}

.guide-steps {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.guide-steps h4 {
    color: #0066cc;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.guide-steps ol {
    margin: 0;
    padding-left: 20px;
}

.guide-steps li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .id-guide-modal {
        max-width: 95%;
        margin: 5% auto;
    }
    
    .guide-image {
        max-height: 300px;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 10px;
    }
    
    .card {
        padding: 20px;
    }
    
    .hero-banner {
        padding: 20px;
    }
    
    .hero-banner h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ================== ZALO CHAT WIDGET ================== */
.zalo-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.zalo-chat-link {
    text-decoration: none;
    display: block;
}

.zalo-chat-bubble {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Chat message bubble */
.zalo-chat-message {
    background: linear-gradient(135deg, #0084ff, #0066cc);
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 132, 255, 0.3);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    white-space: nowrap;
    animation: slideInMessage 1s ease forwards 2s;
}

.zalo-chat-message i {
    font-size: 16px;
    animation: bounce 2s ease-in-out infinite;
}

/* Chat button */
.zalo-chat-button {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0084ff, #00a8ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 132, 255, 0.4);
    animation: pulse 2s infinite;
}

.zalo-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 132, 255, 0.6);
}

.zalo-chat-bubble:hover .zalo-chat-message {
    opacity: 1;
    transform: translateX(0);
}

/* Zalo icon */
.zalo-icon {
    width: 28px;
    height: 28px;
    color: white;
    transition: all 0.3s ease;
}

.zalo-icon svg {
    width: 100%;
    height: 100%;
}

.zalo-chat-button:hover .zalo-icon {
    transform: scale(0.8);
    opacity: 0;
}

/* Zalo text */
.zalo-text {
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.zalo-chat-button:hover .zalo-text {
    opacity: 1;
    transform: scale(1);
}

/* Ripple effects */
.zalo-ripple,
.zalo-ripple-delay {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(0, 132, 255, 0.4);
    border-radius: 50%;
    animation: ripple 2s linear infinite;
}

.zalo-ripple-delay {
    animation-delay: 1s;
    border-color: rgba(0, 168, 255, 0.3);
}

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

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .zalo-chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .zalo-chat-button {
        width: 50px;
        height: 50px;
    }
    
    .zalo-icon {
        width: 24px;
        height: 24px;
    }
    
    .zalo-chat-message {
        display: none; /* Hide message on mobile to save space */
    }
    
    .zalo-text {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .zalo-chat-widget {
        bottom: 10px;
        right: 10px;
    }
    
    .zalo-chat-button {
        width: 45px;
        height: 45px;
    }
    
    .zalo-icon {
        width: 20px;
        height: 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .zalo-chat-message {
        background: linear-gradient(135deg, #1a73e8, #1557b0);
        box-shadow: 0 4px 20px rgba(26, 115, 232, 0.4);
    }
    
    .zalo-chat-button {
        background: linear-gradient(135deg, #1a73e8, #1557b0);
        box-shadow: 0 4px 20px rgba(26, 115, 232, 0.5);
    }
    
    .zalo-ripple {
        border-color: rgba(26, 115, 232, 0.4);
    }
    
    .zalo-ripple-delay {
        border-color: rgba(21, 87, 176, 0.3);
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .zalo-chat-button {
        border: 2px solid #000;
    }
    
    .zalo-chat-message {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .zalo-chat-widget * {
        animation: none !important;
        transition: none !important;
    }
    
    .zalo-chat-message {
        opacity: 1;
        transform: none;
    }
}
/* ================== END ZALO CHAT WIDGET ================== */
