/* Dashboard Grid */
.ait-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ait-dashboard-card {
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #dedede;
}

.ait-dashboard-card h3 {
    margin-top: 0;

}

/* Credit Meter */
.ait-credit-meter {
border: 1px solid #dedede;
    border-radius: 10px;
    height: 30px;
    position: relative;
    overflow: hidden;
}

.ait-credit-used {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    height: 100%;
    transition: width 0.5s ease;
}

.ait-credit-meter span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

/* Tools Grid */
.ait-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ait-tool-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.ait-tool-card:hover {
    transform: translateY(-5px);
}

.ait-tool-card h3 {
    margin-top: 0;
}

.ait-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 5px;
}

.ait-badge.free {
    background: #4CAF50;
    color: #fff;
}

.ait-badge.paid {
    background: #FF9800;
    color: #fff;
}

.ait-badge.category {
    background: #2196F3;
    color: #fff;
}

/* Subscription Plans */
.ait-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.ait-plan-card {
    border: 1px solid #dedede;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.ait-plan-card.active {
    border: 3px solid #4CAF50;
    transform: scale(1.05);
}

.ait-plan-card h3 {
    font-size: 24px;
    margin-top: 0;
}

.ait-plan-price {
    margin: 20px 0;
}

.ait-price {
    font-size: 36px;
    font-weight: bold;

}

.ait-price-free {
    font-size: 36px;
    font-weight: bold;
    color: #4CAF50;
}

.ait-plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.ait-plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ait-current-plan {
    display: inline-block;
    padding: 10px 20px;
    background: #4CAF50;
    color: #fff;
    border-radius: 5px;
}

/* Buttons */
.ait-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.ait-btn:hover {
    background: #45a049;
}

/* Affiliate */
.ait-affiliate-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ait-stat-box {
border: 1px solid #dedede;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.ait-stat-box h4 {
    margin: 0 0 10px 0;
    color: #666;
}

.ait-stat-box p {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.ait-referral-code {
border: 1px solid #dedede;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
}

.ait-referral-code span {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

.ait-share-links {
    margin: 20px 0;
}

.ait-share-links a {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 20px;
    background: #1DA1F2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.ait-share-links a:last-child {
    background: #3b5998;
}

/* Rewards */
.ait-points-display {
    font-size: 48px;
    font-weight: bold;
    color: #4CAF50;
}

.ait-reward-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ait-reward-item {
padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dedede;
}

.ait-reward-item h4 {
    margin: 0 0 10px 0;
}

.ait-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.ait-history-table th,
.ait-history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.ait-history-table th {

    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .ait-dashboard-grid,
    .ait-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .ait-tools-grid {
        grid-template-columns: 1fr;
    }
}
/* ======================================================
   AI ToolSuite — Tool Gate Styles
   ====================================================== */
.ait-tool-gate { border: 1px solid #e0e0e0; border-radius: 10px; overflow: hidden; margin: 20px 0; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ait-gate-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: #f9f9fb; border-bottom: 1px solid #e0e0e0; flex-wrap: wrap; gap: 10px; }
.ait-gate-tool-info { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.ait-gate-tool-info .dashicons { color: #2271b1; font-size: 22px; width: 22px; height: 22px; }
.ait-gate-credits { display: flex; align-items: center; gap: 12px; }
.ait-credits-ok { color: #2d7a2d; font-size: 13px; font-weight: 500; }
.ait-credits-low { color: #996800; font-size: 13px; font-weight: 500; }
.ait-use-tool-btn { cursor: pointer; }
.ait-tool-content { padding: 24px; }
.ait-gate-blocked { display: flex; }
.ait-gate-upgrade-box { text-align: center; padding: 48px 24px; width: 100%; }
.ait-gate-upgrade-box h3 { font-size: 20px; margin: 16px 0 8px; }
.ait-gate-upgrade-box p { color: #666; margin-bottom: 20px; }
.ait-gate-login { text-align: center; padding: 48px 24px; border: 1px solid #e0e0e0; border-radius: 10px; }
.ait-gate-login h3 { font-size: 20px; margin: 16px 0 8px; }
.ait-gate-login p { color: #666; margin-bottom: 20px; }
.ait-gate-login .button { margin: 0 6px; }
.ait-notice { padding: 12px 16px; border-radius: 6px; margin: 10px 0; }
.ait-notice-error { background: #fde8e8; color: #b91c1c; border: 1px solid #fca5a5; }

/* ======================================================
   DASHBOARD — profile summary + transaction history
   ====================================================== */
.ait-dashboard-topbar { margin-bottom: 20px; }
.ait-profile-summary { display: flex; align-items: center; gap: 16px; }
.ait-profile-summary img { border-radius: 50%; flex-shrink: 0; }
.ait-profile-summary h2 { margin: 0 0 4px; }
.ait-profile-meta { margin: 0; color: #666; font-size: 13.5px; }
.ait-card-subtext { color: #888; font-size: 12.5px; margin-top: 6px; }
.ait-btn-small { display: inline-block; padding: 6px 14px; font-size: 13px; }
.ait-btn-outline { background: transparent; border: 1.5px solid #2271b1; color: #2271b1; }

.ait-section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ait-transaction-count { font-size: 13px; color: #777; }

.ait-status-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; text-transform: capitalize; }
.ait-status-completed, .ait-status-active { background: #e6f4ea; color: #1e7e34; }
.ait-status-pending { background: #fff8e1; color: #a56b00; }
.ait-status-failed, .ait-status-cancelled { background: #fde8e8; color: #b91c1c; }

.ait-transaction-table-wrap { overflow-x: auto; border: 1px solid #e0e0e0; border-radius: 10px; }
.ait-transaction-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.ait-transaction-table thead th { text-align: left; padding: 12px 16px; background: #f9f9fb; border-bottom: 1px solid #e0e0e0; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #666; }
.ait-transaction-table tbody td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.ait-transaction-table tbody tr:last-child td { border-bottom: none; }
.ait-transaction-type { white-space: nowrap; }
.ait-transaction-credits.positive { color: #1e7e34; font-weight: 600; }
.ait-transaction-credits.negative { color: #b91c1c; font-weight: 600; }
.ait-transaction-none { color: #bbb; }
.ait-transaction-free { color: #1e7e34; font-weight: 600; }
.ait-load-more-wrap { display: flex; justify-content: center; margin-top: 16px; }

@media (max-width: 600px) {
    .ait-profile-summary { flex-direction: column; align-items: flex-start; text-align: left; }
}
