/*
 * Sembunyikan submenu afiliasi di sidebar My Account 
 * karena sudah digantikan oleh navigasi kartu di dashboard.
 */
.woocommerce-MyAccount-navigation ul li.vs-submenu-item {
    display: none;
}

/* =============================================
   VS - Affiliate Dashboard Styles (Refined)
   ============================================= */

.vs-dashboard-container {
    padding: 30px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.vs-dashboard-container h3 {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-top: 0;
    margin-bottom: 8px;
}

.vs-dashboard-container p {
    font-size: 15px;
    color: #666;
    margin-bottom: 35px;
}

/* === GRID LAYOUT === */
.vs-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

/* === DASHBOARD CARD === */
.vs-dashboard-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    text-decoration: none;
    color: #333;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.vs-dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    border-color: #ff7d00; /* ganti dengan warna brand Anda */
    background-color: #ffffff;
}

.vs-dashboard-card .vs-card-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 16px;
    color: #ff7d00;
}

.vs-dashboard-card h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #111;
}

.vs-dashboard-card .vs-card-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* === SPECIAL CARD: ASSET PROMOSI === */
.vs-dashboard-card.highlight {
    background: linear-gradient(135deg, #fff8f0, #ffffff);
    border-color: #ffc89a;
}

.vs-dashboard-card.highlight:hover {
    background: linear-gradient(135deg, #ffe8cc, #fff);
    box-shadow: 0 6px 14px rgba(255, 125, 0, 0.2);
}

/* === RESPONSIVE TWEAKS === */
@media (max-width: 768px) {
    .vs-dashboard-container {
        padding: 20px;
    }
    .vs-dashboard-container h3 {
        font-size: 22px;
    }
    .vs-dashboard-grid {
        gap: 16px;
    }
    .vs-dashboard-card {
        padding: 18px;
    }
}


/* =============================================
   VS - Product & Kupon Page Styles
   ============================================= */

/* Kontainer Kartu */
.vs-product-card-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.vs-product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.vs-product-card h4.vs-product-title {
    font-size: 1.25em;
    margin: 0;
    padding: 20px 25px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

/* Styling Tab */
.vs-tab-links {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 25px;
    gap: 20px;
    margin-top: -1px;
}

.vs-tab-links a.vs-tab-link {
    padding: 15px 5px;
    margin-bottom: -1px;
    text-decoration: none;
    font-weight: 600;
    color: #555;
    border-bottom: 3px solid transparent;
}

.vs-tab-links a.vs-tab-link.active {
    color: #0073aa; /* Ganti dengan warna brand Anda */
    border-bottom-color: #0073aa; /* Ganti dengan warna brand Anda */
}

.vs-tab-content-wrapper {
    padding: 25px;
}

.vs-tab-content {
    display: none; /* Sembunyikan semua tab content by default */
}

.vs-tab-content.active {
    display: block; /* Tampilkan hanya yang aktif */
}

/* Styling Form */
.vs-form-group {
    margin-bottom: 20px;
}
.vs-form-group:last-child {
    margin-bottom: 0;
}
.vs-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
}
.vs-form-group input[type="text"] {
    width: 100%;
    margin: 0 !important;
}
.vs-delete-coupon {
    color: #a00;
    font-weight: normal;
    font-size: 0.9em;
    margin-left: 10px;
}

/* Styling Form Kupon */
.vs-coupon-form {
    display: flex;
    gap: 10px;
}
.vs-coupon-form input[type="text"] {
    flex-grow: 1;
}
.vs-coupon-form button {
    flex-shrink: 0;
    height: auto !important;
    line-height: 1.5 !important;
}

/* Styling Aset Promosi */
.vs-asset-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fafafa;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.vs-asset-item:hover {
    background-color: #f1faff;
    border-color: #0073aa;
}

.vs-asset-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.vs-asset-info h5 {
    margin: 0 0 5px;
    font-size: 16px;
}

.vs-asset-info p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #555;
}

/* =============================================
   VS - Report Page Styles
   ============================================= */

/* Grid Kartu Statistik */
.vs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vs-stat-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.vs-stat-card .vs-stat-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.vs-stat-card .vs-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #111;
}

/* Kontainer Tabel */
.vs-report-table-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.vs-report-table-container table {
    margin: 0;
    border: 0;
}
.vs-report-table-container thead th {
    background-color: #f9f9f9;
}

/* Badge Status */
.vs-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.4;
}
.vs-status-unpaid {
    background-color: #fff8e1;
    color: #e65100;
    border: 1px solid #ffecb3;
}
.vs-status-paid {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

/* Paginasi */
.vs-pagination ul.page-numbers {
    border: none;
    padding: 0;
}
.vs-pagination .page-numbers {
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    margin: 0 2px;
    border-radius: 4px;
}
.vs-pagination .page-numbers.current,
.vs-pagination .page-numbers:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}
.vs-pagination .page-numbers.current {
    font-weight: 600;
    background-color: #0073aa; /* Ganti dengan warna brand Anda */
    border-color: #0073aa; /* Ganti dengan warna brand Anda */
    color: #fff;
}

/* === ASSET PROMOSI PAGE === */
.vs-banner {
    background: linear-gradient(135deg, #fff4e6, #fff);
    border: 1px solid #ffe0b3;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 35px;
    text-align: center;
}
.vs-banner h2 {
    font-size: 24px;
    color: #ff7d00;
    margin-bottom: 10px;
}
.vs-banner p {
    color: #555;
    font-size: 15px;
}

/* === ASSET CARD === */
.vs-assets-grid .asset-card {
    text-align: left;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0; /* Reset padding kartu dasar */
}
.vs-asset-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.vs-asset-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 5px;
    padding: 0 20px;
}
.vs-asset-price {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
    display: block;
    padding: 0 20px;
}
.vs-asset-content {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    padding: 0 20px;
    margin-bottom: 20px;
}


/* === ACTION BUTTONS === */
.vs-asset-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 20px 20px;
    border-top: 1px solid #f5f5f5;
    padding-top: 20px;
    margin-top: 20px;
}
.vs-asset-actions label {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: -5px;
}
.vs-aff-link {
    width: 100%;
    font-size: 13px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    text-align: left;
    color: #555;
}
.vs-btn-copy, .vs-btn-secondary {
    display: inline-block;
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
}
.vs-btn-copy {
    background: #ff7d00;
    color: #fff;
}
.vs-btn-copy:hover {
    background: #e96f00;
}
.vs-btn-secondary {
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
}
.vs-btn-secondary:hover {
    background: #e6e6e6;
}

/* === PROMOTIONAL ASSETS (di dalam CPT) === */
.vs-promotional-assets {
    text-align: left;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.vs-promotional-assets h5 {
    font-size: 15px;
    color: #ff7d00;
    margin-bottom: 10px;
}
.vs-promo-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}
.vs-promotional-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}
.vs-promo-content h6 {
    font-size: 14px;
    margin: 0 0 4px;
}
.vs-promo-desc {
    font-size: 13px;
    color: #555;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .vs-promo-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/*
 * Style untuk Form Detail Bank Kustom
 * di halaman "Detail Akun"
 */
.vs-bank-details-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.vs-bank-details-form fieldset {
    padding: 0;
    margin: 0;
    border: 0;
}

.vs-bank-details-form legend {
    font-size: 1.5em; /* 24px */
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.vs-bank-details-form em {
    font-size: 0.9em;
    color: #555;
    font-style: italic;
}

/* =============================================
   VS - Gamification (Progress Bar) Styles
   ============================================= */

.vs-gamification-box {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Header (Level Kiri - Target Kanan) */
.vs-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.vs-current-level strong {
    color: #333;
    text-transform: capitalize;
}

.vs-target-level strong {
    color: #ff7d00;
}

/* Batang Progress */
.vs-progress-bar-container {
    background-color: #eee;
    border-radius: 10px;
    height: 12px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
}

.vs-progress-bar-fill {
    background: linear-gradient(90deg, #ff7d00, #ffb347);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

/* Teks Motivasi Bawah */
.vs-progress-text {
    font-size: 13px;
    color: #666;
    text-align: center;
}

.vs-progress-text strong {
    color: #222;
}

/* Tampilan Khusus Gold (Max Level) */
.vs-gamification-box.vs-level-gold {
    background: linear-gradient(135deg, #fffbf0, #fff);
    border-color: #ffe082;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.vs-level-badge {
    background-color: #ffca28;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vs-level-info h4 {
    margin: 5px 0;
    color: #d4a017;
}