/* Dr.Tuning Credits Frontend Styles - Premium Pricing */

.drtuning-credit-dashboard {
    background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.credit-balance {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 102, 0, 0.05));
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.credit-balance h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.balance-amount {
    font-size: 3em;
    font-weight: 700;
    background: linear-gradient(45deg, #FF0000, #FF6600, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.balance-value {
    font-size: 1.5em;
    color: #00ff00;
    font-weight: 600;
    margin-bottom: 10px;
}

.pricing-reminder {
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1em;
    background: rgba(255, 215, 0, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}

.buy-credits-btn {
    background: linear-gradient(45deg, #FF6600, #FFD700);
    color: #000000;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.buy-credits-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.4);
    color: #000000;
    text-decoration: none;
}

.tools-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.tools-preview h4 {
    color: #FFD700;
    margin-bottom: 15px;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.tool-item {
    color: #cccccc;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #FF6600;
    font-size: 0.9em;
}

.recent-activity {
    margin-top: 30px;
}

.recent-activity h3 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.transactions-table th,
.transactions-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.transactions-table th {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}

.transactions-table td {
    color: #cccccc;
}

.transactions-table .positive {
    color: #00ff00;
    font-weight: 600;
}

.transactions-table .negative {
    color: #ff6666;
    font-weight: 600;
}

/* Buy Credits Page - Premium Styling */
.drtuning-buy-credits {
    background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.drtuning-buy-credits h3 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
}

.drtuning-buy-credits p {
    text-align: center;
    color: #cccccc;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.pricing-info {
    background: linear-gradient(45deg, #FF0000, #FF6600, #FFD700);
    color: #000000;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 1.2em;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.credit-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.credit-package {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.credit-package:hover {
    transform: translateY(-8px);
    border-color: #FFD700;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.4);
}

.credit-package.popular {
    border-color: #FF6600;
    box-shadow: 0 15px 35px rgba(255, 102, 0, 0.3);
    transform: scale(1.05);
}

.credit-package.popular:hover {
    box-shadow: 0 25px 50px rgba(255, 102, 0, 0.5);
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #FF0000, #FF6600);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.savings-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #00ff00, #32cd32);
    color: #000000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
}

.package-amount {
    font-size: 2.2em;
    font-weight: 700;
    background: linear-gradient(45deg, #FF0000, #FF6600, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.package-price {
    font-size: 1.8em;
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 8px;
}

.package-description {
    color: #cccccc;
    font-size: 0.9em;
    margin-bottom: 10px;
    font-style: italic;
}

.package-value {
    margin-bottom: 20px;
}

.per-credit {
    color: #cccccc;
    font-size: 0.85em;
    font-style: italic;
}

.purchase-btn {
    background: linear-gradient(45deg, #FF0000, #FF6600);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: auto;
}

.purchase-btn:hover {
    background: linear-gradient(45deg, #FF6600, #FFD700);
    transform: translateY(-2px);
}

.premium-info {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 102, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.premium-info h4 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #FFD700;
    text-align: left;
}

.info-item strong {
    color: #FFD700;
    display: block;
    margin-bottom: 5px;
}

.info-item span {
    color: #cccccc;
    font-size: 0.9em;
}

.payment-security {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 30px;
    text-align: center;
}

.payment-security p {
    color: #66ff66;
    margin: 0;
    font-weight: 500;
}

/* Credit History Page */
.drtuning-credit-history {
    background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.drtuning-credit-history h3 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
}

.drtuning-credit-history .pricing-reminder {
    text-align: center;
    margin-bottom: 25px;
}

/* User Credits Display */
.drtuning-user-credits {
    background: linear-gradient(45deg, #FFD700, #FF6600);
    color: #000000;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.9em;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .credit-packages {
        grid-template-columns: 1fr;
    }
    
    .balance-amount {
        font-size: 2.5em;
    }
    
    .package-amount {
        font-size: 2em;
    }
    
    .drtuning-credit-dashboard,
    .drtuning-buy-credits,
    .drtuning-credit-history {
        padding: 20px;
        margin: 10px 0;
    }
    
    .transactions-table {
        font-size: 0.9em;
    }
    
    .transactions-table th,
    .transactions-table td {
        padding: 8px 10px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .credit-package.popular {
        transform: none;
    }
    
    .credit-package.popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .transactions-table th,
    .transactions-table td {
        padding: 6px 8px;
        font-size: 0.8em;
    }
    
    .credit-balance {
        padding: 15px;
    }
    
    .balance-amount {
        font-size: 2em;
    }
    
    .pricing-info {
        font-size: 1em;
        padding: 12px;
    }
    
    .package-amount {
        font-size: 1.8em;
    }
    
    .package-price {
        font-size: 1.5em;
    }
}

/* Notification styles */
.drtuning-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.drtuning-notification.success {
    background: linear-gradient(45deg, #00ff00, #32cd32);
    color: #000;
}

.drtuning-notification.info {
    background: linear-gradient(45deg, #FFD700, #FF6600);
    color: #000;
}