* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.header {
    background-color: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e74c3c;
    font-size: 20px;
    font-weight: bold;
}

.logo svg {
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.container {
    max-width: 900px;
    margin: 50px auto;
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}


.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.game-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-select select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.history-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    background: white;
    padding: 0 10px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.step-number.inactive {
    background: #e0e0e0;
    color: #999;
}

.step-label {
    font-size: 12px;
    color: #3498db;
    white-space: nowrap;
}

.step-label.inactive {
    color: #999;
}

.section-title {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

.guide-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.guide-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.section-header {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 20px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 25px;
    transition: background 0.3s;
}

.submit-btn:hover:not(:disabled) {
    background: #c0392b;
}

.submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.back-btn {
    width: 100%;
    padding: 15px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #7f8c8d;
}

.error-info {
    padding: 15px;
    background: #ffebee;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #c62828;
    display: none;
}

.player-info-box {
    background: #e3f2fd;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-info-text {
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

.package-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.package-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.package-item:hover:not(.disabled) {
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.package-item.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

.package-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.diamond-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #56ccf2, #2f80ed);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

.package-amount {
    font-weight: 700;
    color: #333;
    font-size: 15px;
    line-height: 1.3;
}

.package-price-box {
    background: #ffebee;
    padding: 8px 20px;
    border-radius: 20px;
    width: 100%;
}

.package-price {
    font-weight: 700;
    color: #e74c3c;
    font-size: 15px;
}

.info-box {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 15px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .info-label {
    display: block;
    font-size: 13px;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}

.info-input {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-input::after {
    content: '⟳';
    color: #999;
    font-size: 18px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-row.total {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
    color: #e74c3c;
}

.info-label {
    color: #333;
    font-weight: bold;
}

.info-value {
    color: #333;
    font-weight: 500;
}

.payment-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.payment-method {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.payment-method:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.payment-method.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

.payment-logo {
    width: 80px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
}

.payment-diamond {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.payment-diamond::before {
    content: '💎';
    font-size: 16px;
}

.payment-method-name {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.payment-method-desc {
    font-size: 12px;
    color: #333;
    font-weight: bold;
    margin-top: 2px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.modal-close:hover {
    color: #000;
}

.modal-header {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.modal-body {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.modal-question {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.modal-btn {
    width: 100%;
    padding: 15px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-btn:hover {
    background: #c0392b;
}

.vongquay-container {
    margin: 20px 0 30px;
    position: relative;
}

.vongquay-btn {
    width: 100%;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.vongquay-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: vongquay-glow-rotate 3s linear infinite;
}

@keyframes vongquay-glow-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.vongquay-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    border-radius: 15px;
}

.vongquay-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vongquay-icon {
    font-size: 40px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: vongquay-icon-bounce 2s ease-in-out infinite;
}

@keyframes vongquay-icon-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.vongquay-sparkle {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 20px;
    animation: vongquay-sparkle-twinkle 1.5s ease-in-out infinite;
}

@keyframes vongquay-sparkle-twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

.vongquay-text {
    flex: 1;
    margin: 0 20px;
    text-align: left;
}

.vongquay-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
    line-height: 1.2;
}

.vongquay-subtitle {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.vongquay-arrow {
    font-size: 24px;
    animation: vongquay-arrow-pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes vongquay-arrow-pulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(5px);
        opacity: 1;
    }
}

.vongquay-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.vongquay-btn:hover .vongquay-icon {
    animation: vongquay-icon-spin 0.6s ease-in-out;
}

@keyframes vongquay-icon-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.vongquay-btn:hover .vongquay-arrow {
    animation: vongquay-arrow-bounce 0.6s ease-in-out infinite;
}

@keyframes vongquay-arrow-bounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

.vongquay-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
    /* Khóa cố định viewport mobile */
    html {
        overflow-x: hidden;
        width: 100%;
        position: fixed;
        height: 100%;
    }
    
    body {
        background: white;
        overflow-x: hidden;
        overflow-y: auto;
        width: 100%;
        height: 100%;
        position: relative;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    input, textarea, select {
        -webkit-user-select: text;
        user-select: text;
    }
    
    .header {
        padding: 12px 15px;
        position: sticky;
        top: 0;
        z-index: 100;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 12px;
    }
    
    .container {
        margin: 0;
        padding: 20px 15px;
        border-radius: 0;
        box-shadow: none;
        max-width: 100vw;
        overflow-x: hidden;
        width: 100%;
    }
    
    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .history-link {
        font-size: 13px;
    }
    
    .progress-bar {
        margin-bottom: 25px;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .progress-bar::-webkit-scrollbar {
        display: none;
    }
    
    .step {
        padding: 0 5px;
        min-width: 80px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .step-label {
        font-size: 10px;
        text-align: center;
    }
    
    .section-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .section-header {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 15px;
    }
    
    .package-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .package-item {
        padding: 15px 10px;
        gap: 8px;
    }
    
    .diamond-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .package-amount {
        font-size: 13px;
    }
    
    .package-price {
        font-size: 13px;
    }
    
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .payment-method {
        padding: 15px 10px;
    }
    
    .payment-logo {
        width: 60px;
        height: 40px;
    }
    
    .payment-diamond {
        font-size: 12px;
    }
    
    .payment-method-desc {
        font-size: 11px;
    }
    
    .info-box {
        padding: 15px;
    }
    
    .info-item .info-label {
        font-size: 12px;
    }
    
    .info-input {
        padding: 10px;
        font-size: 13px;
    }
    
    .form-group select,
    .form-group input,
    .form-control {
        padding: 10px;
        font-size: 14px;
    }
    
    .submit-btn,
    .back-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .player-info-box {
        padding: 12px 15px;
    }
    
    .player-info-text {
        font-size: 14px;
    }
    
    .vongquay-container {
        margin: 15px 0 20px;
    }
    
    .vongquay-content {
        padding: 15px 18px;
    }
    
    .vongquay-icon {
        font-size: 32px;
    }
    
    .vongquay-sparkle {
        font-size: 16px;
    }
    
    .vongquay-text {
        margin: 0 12px;
    }
    
    .vongquay-title {
        font-size: 16px;
    }
    
    .vongquay-subtitle {
        font-size: 11px;
    }
    
    .vongquay-arrow {
        font-size: 20px;
    }
    
    .payment-info {
        padding: 15px;
    }
    
    .info-row {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .warning-box {
        padding: 12px;
        font-size: 13px;
    }
    
    .result-container {
        padding: 30px 20px;
    }
    
    .result-icon {
        width: 70px;
        height: 70px;
    }
    
    .result-icon .icon-circle {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }
    
    .result-title {
        font-size: 20px;
    }
    
    .result-transaction-id {
        font-size: 14px;
        word-break: break-all;
    }
    
    .result-details {
        padding: 15px;
    }
    
    .result-row {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .result-label,
    .result-value {
        font-size: 13px;
    }
    
    .loading-container {
        padding: 40px 20px;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
    }
    
    .loading-text {
        font-size: 18px;
    }
    
    .loading-notice {
        font-size: 13px;
    }
    
    .modal-content {
        width: 95%;
        padding: 25px 20px;
        margin: 20% auto;
    }
    
    .modal-header {
        font-size: 18px;
    }
    
    .modal-body {
        font-size: 14px;
    }
}

.loading-container {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 30px;
}

.result-container {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 30px;
}

.result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}

.result-icon.error .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #e74c3c;
}

.result-icon.success .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #27ae60;
}

.result-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.result-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.result-transaction-id {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.result-details {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 14px;
    color: #666;
}

.result-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-align: right;
}

.result-value.error-text {
    color: #e74c3c;
    font-weight: 600;
}

.captcha-box {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.captcha-question {
    background: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    border: 2px solid #3498db;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.loading-notice {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.submit-btn.processing {
    background: #e74c3c;
    opacity: 0.8;
}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
    
    .package-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .step {
        padding: 0 3px;
        min-width: 70px;
    }
    
    .step-label {
        font-size: 9px;
    }
    
    .game-icon {
        width: 35px;
        height: 35px;
    }
    
    .game-select select {
        font-size: 13px;
        padding: 6px 10px;
    }
}


.payment-notice {
    margin: 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    border: 2px solid rgba(231, 76, 60, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.payment-notice-text {
    font-size: 14px;
    color: #c62828;
    line-height: 1.6;
    font-weight: 600;
}

.payment-notice-text strong {
    color: #e74c3c;
    font-weight: 700;
}
