
@import 'variables.css';

@import 'base.css';


@import 'components/button.css';

@import 'components/card.css';

@import 'components/form.css';

@import 'components/navbar.css';

@import 'components/modal.css';

@import 'components/components.css';

@import 'pages/home.css';

@import 'pages/games.css';

@import 'pages/user.css';

@import 'pages/payment.css';

@import 'pages/cdkey-coupons.css';

@import 'pages/user-accounts.css';

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes shakeHorizontal {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake-horizontal {
    animation: shakeHorizontal 0.6s ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(155, 89, 182, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(155, 89, 182, 0.8), 0 0 30px rgba(233, 30, 99, 0.4);
    }
}

.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-flow {
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite;
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.4s ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown 0.4s ease-out;
}

.animate-scaleIn {
    animation: scaleIn 0.3s ease-out;
}

.animate-bounce {
    animation: bounce 1s ease infinite;
}

.animate-pulse {
    animation: pulse 2s ease infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

.transition-all {
    transition: all var(--duration-normal) var(--ease-default);
}

.transition-transform {
    transition: transform var(--duration-normal) var(--ease-default);
}

.transition-colors {
    transition: color var(--duration-fast) var(--ease-default),
                background-color var(--duration-fast) var(--ease-default),
                border-color var(--duration-fast) var(--ease-default);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-shadow:hover {
    box-shadow: var(--shadow-lg);
}

.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: var(--zindex-toast, 1090);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.custom-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--color-card, #1a1a2e);
    border-radius: var(--radius-md, 0.5rem);
    box-shadow: var(--shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.3));
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 350px;
    border-left: 4px solid;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.custom-toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.custom-toast-success {
    border-left-color: var(--color-success, #10b981);
}

.custom-toast-danger,
.custom-toast-error {
    border-left-color: var(--color-danger, #ef4444);
}

.toast-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-text, #e2e8f0);
}

.toast-title {
    font-weight: 600;
}

.toast-message {
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: var(--color-text-muted, #94a3b8);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--color-text, #e2e8f0);
}

@media print {
    .navbar,
    .footer,
    .customer-service-float,
    .back-to-top,
    .btn,
    .modal {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

#balanceSuccessModal .modal-dialog {
    max-width: 380px;
}

.balance-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.balance-modal-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    position: relative;
}

.balance-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.balance-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.balance-success-icon {
    margin-bottom: 0.75rem;
}

.balance-icon-circle {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: balance-pop 0.5s ease-out;
}

@keyframes balance-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.balance-modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.balance-modal-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0;
}

.balance-modal-body {
    padding: 1.5rem;
    background: #fff;
}

.balance-info-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

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

.balance-info-item + .balance-info-item {
    margin-top: 0.75rem;
}

.balance-info-divider {
    height: 1px;
    background: #d1fae5;
    margin: 0.75rem 0;
}

.balance-info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.balance-info-value {
    font-size: 1.35rem;
    font-weight: 700;
}

.balance-gained .balance-info-value {
    color: #10b981;
}

.balance-total .balance-info-value {
    color: #3b82f6;
}

.balance-success-actions {
    display: flex;
    gap: 0.75rem;
}

.balance-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.balance-action-btn.continue-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
}

.balance-action-btn.continue-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.balance-action-btn.view-btn {
    border-color: #d1d5db;
    color: #4b5563;
}

.balance-action-btn.view-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
}

#balanceSuccessModal .modal-title {
    display: flex;
    align-items: center;
    font-weight: 600;
}
