/* Gaming Tokens Plugin Styles */

.gaming-tokens-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.gaming-tokens-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.1" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.gaming-tokens-container > * {
    position: relative;
    z-index: 2;
}

/* Header Section */
.gaming-header {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tokens-dashboard {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.user-avatar {
    border-radius: 50%;
    border: 4px solid #fff;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.user-stats h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.token-balance {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.token-icon {
    font-size: 32px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.balance-info {
    display: flex;
    flex-direction: column;
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 900;
    color: #ffeb3b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.balance-currency {
    font-size: 16px;
    opacity: 0.8;
}



/* Token Purchase */
.tokens-shop h3 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.token-purchase-card {
    background: linear-gradient(145deg, #2a2a3e, #1e1e30);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.token-purchase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 2s ease-in-out;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.purchase-header {
    text-align: center;
    margin-bottom: 30px;
}

.purchase-icon {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
    animation: pulse 2s infinite;
}

.purchase-header h4 {
    font-size: 28px;
    margin: 15px 0 10px;
    color: #fff;
    font-weight: 700;
}

.purchase-header p {
    font-size: 18px;
    color: #4ecdc4;
    font-weight: 600;
    margin: 0;
}

/* Token Slider */
.token-selector {
    max-width: 600px;
    margin: 0 auto;
}

.slider-container {
    margin-bottom: 30px;
}

.slider-container label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.slider-wrapper {
    position: relative;
    margin: 20px 0;
}

.token-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, #1e1e30, #2a2a3e);
    outline: none;
    -webkit-appearance: none;
    position: relative;
}

.token-slider::-webkit-slider-thumb {
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.token-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.token-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}

/* Token Display */
.token-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-count, .token-price {
    text-align: center;
}

.count-label, .price-label {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.count-value {
    font-size: 32px;
    font-weight: 900;
    color: #ffeb3b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.price-value {
    font-size: 32px;
    font-weight: 900;
    color: #4caf50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Quick Amount Buttons */
.quick-amounts {
    margin-bottom: 25px;
}

.quick-amounts h5 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
}

.quick-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-btn {
    background: linear-gradient(145deg, #3a3a4e, #2e2e40);
    border: 2px solid transparent;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.quick-btn:hover {
    border-color: #4ecdc4;
    background: linear-gradient(145deg, #4ecdc4, #3a9d9a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.quick-btn.active {
    border-color: #ff6b6b;
    background: linear-gradient(145deg, #ff6b6b, #e55a5a);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Manual Input */
.manual-input {
    margin-bottom: 30px;
}

.manual-input label {
    display: block;
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #3a3a4e, #2e2e40);
    border-radius: 10px;
    padding: 5px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: #4ecdc4;
}

.manual-input-field {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 15px;
    width: 100px;
    text-align: center;
    outline: none;
}

.input-suffix {
    color: #888;
    padding-right: 15px;
    font-size: 14px;
}

/* Main Buy Button */
.buy-button-main {
    width: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    color: white;
    padding: 20px 30px;
    border-radius: 25px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.buy-button-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.buy-button-main:hover::before {
    left: 100%;
}

.buy-button-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.buy-button-main:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 24px;
}

.btn-text {
    flex: 1;
}

.btn-price {
    font-size: 24px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
}

/* Purchase Features */
.purchase-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.purchase-features .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #fff;
}

.purchase-features .feature-icon {
    font-size: 20px;
}



/* Gaming Features */
.gaming-features {
    margin: 40px 0;
}

.feature-section h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #4ecdc4;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    background: linear-gradient(145deg, #2a2a3e, #1e1e30);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.feature-item p {
    opacity: 0.8;
    line-height: 1.6;
}

/* Transaction History */
.transaction-history {
    margin-top: 40px;
}

.transaction-history h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #4ecdc4;
}

.transactions-list {
    background: linear-gradient(145deg, #2a2a3e, #1e1e30);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.transaction-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

.transaction-details {
    flex: 1;
}

.transaction-amount {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.transaction-item.add .transaction-amount {
    color: #4caf50;
}

.transaction-item.spend .transaction-amount {
    color: #f44336;
}

.transaction-description {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.transaction-date {
    font-size: 12px;
    opacity: 0.6;
}

.no-transactions .empty-state {
    text-align: center;
    padding: 40px;
    background: linear-gradient(145deg, #2a2a3e, #1e1e30);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.empty-state h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.empty-state p {
    opacity: 0.8;
    font-size: 16px;
}

/* 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.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #2a2a3e, #1e1e30);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #4ecdc4;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

.modal-body {
    padding: 25px;
}

.purchase-summary {
    background: linear-gradient(145deg, #3a3a4e, #2e2e40);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: 700;
    font-size: 18px;
    color: #4caf50;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    padding-top: 15px;
}

.payment-methods h4 {
    margin-bottom: 20px;
    color: #fff;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: linear-gradient(145deg, #3a3a4e, #2e2e40);
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + .payment-card {
    border-color: #4ecdc4;
    background: linear-gradient(145deg, #4ecdc4, #3a9d9a);
}

.payment-icon {
    font-size: 24px;
    margin-right: 15px;
}

.modal-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-cancel,
.btn-confirm {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cancel {
    background: linear-gradient(45deg, #666, #555);
    color: #fff;
}

.btn-cancel:hover {
    background: linear-gradient(45deg, #777, #666);
}

.btn-confirm {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: #fff;
}

.btn-confirm:hover {
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gaming-tokens-container {
        padding: 15px;
        margin: 10px;
    }
    
    .tokens-dashboard {
        flex-direction: column;
        text-align: center;
    }
    

    
    .token-purchase-card {
        padding: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .user-stats h2 {
        font-size: 24px;
    }
    
    .balance-amount {
        font-size: 28px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .token-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .quick-buttons {
        justify-content: center;
    }
    
    .quick-btn {
        min-width: 50px;
        padding: 8px 15px;
    }
    
    .buy-button-main {
        padding: 15px 20px;
        font-size: 18px;
    }
    
    .btn-price {
        font-size: 20px;
    }
    
    .purchase-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .token-balance {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .balance-info {
        align-items: center;
    }
    
    .token-purchase-card {
        padding: 15px;
    }
    
    .purchase-header h4 {
        font-size: 24px;
    }
    
    .purchase-header p {
        font-size: 16px;
    }
    
    .token-display {
        padding: 15px;
    }
    
    .count-value, .price-value {
        font-size: 24px;
    }
    
    .quick-buttons {
        gap: 8px;
    }
    
    .quick-btn {
        min-width: 45px;
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .buy-button-main {
        padding: 12px 15px;
        font-size: 16px;
        gap: 10px;
    }
    
    .btn-icon {
        font-size: 20px;
    }
    
    .btn-price {
        font-size: 18px;
        padding: 3px 10px;
    }
    
    .input-group {
        justify-content: center;
    }
    
    .manual-input-field {
        width: 80px;
    }
}
