/* ═══ صفحات زیرمجموعه داشبورد (Wallet/Deposit/Refund/Licenses) ═══
   قبلاً فقط رنگ از تم می‌گرفتن، فونت و طراحی نه — این نسخه هر دو رو اضافه می‌کنه */

.woocommerce-MyAccount-navigation { display: none !important; }
.woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    font-family: var(--hd-font-body) !important;
}
.woocommerce-MyAccount-content * { font-family: var(--hd-font-body); }
.woocommerce-MyAccount-content h1,
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 { font-family: var(--hd-font-heading) !important; }

/* عنوان بالای هر صفحه (Wallet/Licenses/...) با استایل بقیه Dashboard ست بشه */
.hd-app-content .woocommerce-MyAccount-content > h2:first-child,
.woocommerce-account .entry-header .entry-title {
    font-family: var(--hd-font-heading) !important;
    font-size: 22px;
    margin-bottom: var(--hd-space-3);
}

/* Wallet */
.theory-wallet-summary {
    margin-bottom: var(--hd-space-3);
    background: var(--hd-bg-card, var(--hd-dark-gray));
    border: var(--hd-border-card);
    border-radius: var(--hd-radius-card);
    padding: var(--hd-space-3);
}
.theory-wallet-summary__title { font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--hd-text-secondary); }
.theory-wallet-summary__balance { font-family: var(--hd-font-mono); font-size: 28px; color: var(--hd-gold); }
.theory-wallet-table { width: 100%; border-collapse: collapse; margin-top: var(--hd-space-2); font-size: 13px; }
.theory-wallet-table th {
    text-align: left; padding: 10px; color: var(--hd-text-muted);
    font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
    border-bottom: 1px solid var(--hd-border-color);
}
.theory-wallet-table td { padding: 10px; border-bottom: 1px solid var(--hd-border-color); color: var(--hd-text-secondary); }
.theory-wallet-table tr:hover td { background: rgba(255,255,255,.02); }

/* Add Funds */
.theory-deposit-box, .theory-giftcard-box {
    background: var(--hd-bg-card, var(--hd-dark-gray));
    border-radius: var(--hd-radius-card);
    padding: var(--hd-space-3);
    box-shadow: var(--hd-shadow);
    margin-bottom: var(--hd-space-3);
    border: var(--hd-border-card);
}
.theory-deposit-box__title, .theory-giftcard-box__title {
    font-family: var(--hd-font-heading);
    font-size: 18px; font-weight: 700;
    margin-bottom: var(--hd-space-1); color: var(--hd-text-primary);
}
.theory-deposit-box__desc { color: var(--hd-text-muted); font-size: 13px; margin-bottom: var(--hd-space-2); }
.theory-amount-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: var(--hd-space-2); }
.theory-amount-btn {
    padding: 12px 0; border: 1px solid var(--hd-border-color); border-radius: var(--hd-radius-sm);
    background: var(--hd-graphite); font-family: var(--hd-font-mono); font-size: 14px; font-weight: 500;
    color: var(--hd-text-secondary); cursor: pointer; transition: all var(--hd-transition);
}
.theory-amount-btn:hover { border-color: var(--hd-gold); color: var(--hd-text-primary); }
.theory-amount-btn.is-selected { background: var(--hd-gold); color: var(--hd-black); border-color: var(--hd-gold); }
.theory-amount-input {
    width: 100%; padding: 12px; border: 1px solid var(--hd-border-color); border-radius: var(--hd-radius-sm);
    font-family: var(--hd-font-mono); font-size: 14px; margin-bottom: 12px;
    background: var(--hd-black); color: var(--hd-text-primary);
}
.theory-giftcard-box input[type="text"] {
    width: 100%; padding: 12px; border: 1px solid var(--hd-border-color); border-radius: var(--hd-radius-sm);
    font-family: var(--hd-font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 10px; background: var(--hd-black); color: var(--hd-text-primary);
}

/* Refund Status */
.theory-refund-table { width: 100%; border-collapse: collapse; margin-top: var(--hd-space-2); font-size: 13px; }
.theory-refund-table th {
    text-align: left; padding: 10px; color: var(--hd-text-muted);
    font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
    border-bottom: 1px solid var(--hd-border-color);
}
.theory-refund-table td { padding: 10px; border-bottom: 1px solid var(--hd-border-color); color: var(--hd-text-secondary); }
.theory-refund-action {
    margin-top: var(--hd-space-2); padding: var(--hd-space-2);
    background: var(--hd-graphite); border: var(--hd-border-card); border-radius: var(--hd-radius-sm);
}
.theory-refund-action strong { display: block; margin-bottom: 10px; color: var(--hd-text-primary); font-family: var(--hd-font-heading); }

/* Licenses */
.theory-licenses-table { width: 100%; border-collapse: collapse; margin-top: var(--hd-space-2); font-size: 13px; }
.theory-licenses-table th {
    text-align: left; padding: 10px; color: var(--hd-text-muted);
    font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
    border-bottom: 1px solid var(--hd-border-color);
}
.theory-licenses-table td { padding: 10px; border-bottom: 1px solid var(--hd-border-color); color: var(--hd-text-secondary); }
.theory-license-key { background: var(--hd-graphite); padding: 3px 9px; border-radius: 4px; font-family: var(--hd-font-mono); font-size: 12px; color: var(--hd-gold); }
.theory-license-secret { font-family: var(--hd-font-mono); font-size: 12px; color: var(--hd-error); word-break: break-all; }

/* Badges */
.theory-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; font-family: var(--hd-font-body); }
.theory-badge--deposit { background: var(--hd-gold); color: var(--hd-black); }
.theory-notice--deposit {
    background: rgba(212, 175, 55, 0.1); border-left: 4px solid var(--hd-gold);
    padding: 12px; margin-bottom: var(--hd-space-2); border-radius: var(--hd-radius-sm);
    color: var(--hd-text-secondary); font-size: 13px;
}

/* دکمه‌های submit عمومی همین صفحات، برای هماهنگی بیشتر */
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"],
.woocommerce-MyAccount-content .button {
    font-family: var(--hd-font-body) !important;
    background: var(--hd-gold) !important;
    color: var(--hd-black) !important;
    border: none !important;
    border-radius: var(--hd-radius-sm) !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    transition: background var(--hd-transition) !important;
}
.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content .button:hover {
    background: var(--hd-gold-hover) !important;
}