/* Yafouz Admin Theme — COLOR-ONLY
   Only changes colors. No layout, width, height, positioning, spacing, or sizing changes.
   Native WordPress + WooCommerce UI structure preserved exactly as-is. */

:root {
  --yaf-red:#E50914; --yaf-red-hover:#FF1A24; --yaf-red-soft:rgba(229,9,20,.12);
  --yafouz-bg:#0A0A0A; --yafouz-bg-secondary:#111111; --yafouz-card:#151515;
  --yafouz-border:#2A2A2A; --yafouz-border-strong:#333333;
  --yafouz-text:#FFFFFF; --yafouz-text-secondary:#A1A1AA; --yafouz-text-muted:#71717A;
  --yafouz-success:#16A34A; --yafouz-warning:#EA580C; --yafouz-danger:#EF4444; --yafouz-info:#3B82F6;
}

/* ===== ADMIN BAR ===== */
#wpadminbar,
.yafouz-admin #wpadminbar {
  background: #0A0A0A !important;
  border-bottom: 1px solid var(--yafouz-border) !important;
}
#wpadminbar .ab-item,
#wpadminbar a.ab-item,
.yafouz-admin #wpadminbar .ab-item,
.yafouz-admin #wpadminbar a.ab-item {
  color: var(--yafouz-text-secondary) !important;
}
#wpadminbar .ab-top-menu > li:hover > .ab-item,
#wpadminbar .ab-top-menu > li > .ab-item:focus,
#wpadminbar .menupop .ab-item {
  color: var(--yafouz-text) !important;
}
#wpadminbar .quicklinks .ab-sub-wrapper {
  background: var(--yafouz-card) !important;
  border: 1px solid var(--yafouz-border) !important;
}
#wpadminbar .quicklinks .ab-sub-wrapper .ab-item {
  color: var(--yafouz-text-secondary) !important;
}
#wpadminbar .quicklinks .ab-sub-wrapper .ab-item:hover {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
}

/* ===== SIDEBAR ===== */
#adminmenuback,
#adminmenuwrap,
#adminmenu,
.yafouz-admin #adminmenuback,
.yafouz-admin #adminmenuwrap,
.yafouz-admin #adminmenu {
  background: #0A0A0A !important;
  border-right: 1px solid var(--yafouz-border) !important;
}
#adminmenu a,
.yafouz-admin #adminmenu a {
  color: var(--yafouz-text-secondary) !important;
}
#adminmenu .wp-menu-image,
.yafouz-admin #adminmenu .wp-menu-image {
  color: var(--yafouz-text-muted) !important;
}
#adminmenu li.menu-top:hover,
#adminmenu li.opensub > a.menu-top,
#adminmenu li > a.menu-top:focus,
.yafouz-admin #adminmenu li.menu-top:hover,
.yafouz-admin #adminmenu li.opensub > a.menu-top,
.yafouz-admin #adminmenu li > a.menu-top:focus {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
}
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
#adminmenu li.current a.menu-top,
.yafouz-admin #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
.yafouz-admin #adminmenu li.current a.menu-top {
  background: var(--yaf-red) !important;
  color: #FFFFFF !important;
}
#adminmenu li.current .wp-menu-image,
.yafouz-admin #adminmenu li.current .wp-menu-image {
  color: #FFFFFF !important;
}
#adminmenu .wp-submenu,
.yafouz-admin #adminmenu .wp-submenu {
  background: var(--yafouz-card) !important;
  border-left-color: var(--yaf-red) !important;
}
#adminmenu .wp-submenu a,
.yafouz-admin #adminmenu .wp-submenu a {
  color: var(--yafouz-text-secondary) !important;
}
#adminmenu .wp-submenu a:hover,
.yafouz-admin #adminmenu .wp-submenu a:hover {
  color: var(--yafouz-text) !important;
  background: var(--yafouz-bg-secondary) !important;
}
#adminmenu .wp-menu-name,
.yafouz-admin #adminmenu .wp-menu-name {
  color: var(--yafouz-text-secondary) !important;
}
/* Sidebar YAFOUZ branding */
#adminmenuwrap::before,
.yafouz-admin #adminmenuwrap::before {
  background: var(--yafouz-bg) !important;
  color: var(--yafouz-text) !important;
  border-bottom-color: var(--yafouz-border) !important;
}
/* Sidebar collapsed state */
.yafouz-admin.folded #adminmenu .wp-menu-name { display: none; }

/* ===== GLOBAL CONTENT ===== */
#wpcontent,
#wpbody-content,
.yafouz-admin #wpcontent,
.yafouz-admin #wpbody-content {
  background: var(--yafouz-bg) !important;
}
#adminmenuwrap,
#adminmenuback {
  background: #0A0A0A !important;
}
#wpfooter,
.yafouz-admin #wpfooter {
  background: var(--yafouz-bg) !important;
  color: var(--yafouz-text-muted) !important;
  border-top: 1px solid var(--yafouz-border) !important;
}
#footer-thankyou,
#footer-upgrade {
  color: var(--yafouz-text-muted) !important;
}

/* ===== POSTBOX / CARDS ===== */
.postbox,
.card,
.yafouz-admin .postbox,
.yafouz-admin .card {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text) !important;
}
.postbox .postbox-header,
.postbox .postbox-header h2,
.yafouz-admin .postbox .postbox-header,
.yafouz-admin .postbox .postbox-header h2 {
  background: var(--yafouz-bg-secondary) !important;
  border-bottom-color: var(--yafouz-border) !important;
  color: var(--yafouz-text) !important;
}
.postbox .hndle,
.yafouz-admin .postbox .hndle {
  color: var(--yafouz-text) !important;
}
.postbox .inside,
.yafouz-admin .postbox .inside {
  color: var(--yafouz-text-secondary) !important;
}
.postbox .handlediv,
.yafouz-admin .postbox .handlediv {
  color: var(--yafouz-text-secondary) !important;
}
.postbox .handlediv:hover,
.yafouz-admin .postbox .handlediv:hover {
  color: var(--yafouz-text) !important;
}

/* ===== BUTTONS ===== */
.button-primary,
.page-title-action,
.woocommerce-button,
.yafouz-admin .button-primary,
.yafouz-admin .page-title-action,
.yafouz-admin .woocommerce-button {
  background: var(--yaf-red) !important;
  border-color: var(--yaf-red) !important;
  color: #FFFFFF !important;
}
.button-primary:hover,
.page-title-action:hover,
.yafouz-admin .button-primary:hover,
.yafouz-admin .page-title-action:hover {
  background: var(--yaf-red-hover) !important;
  border-color: var(--yaf-red-hover) !important;
  color: #FFFFFF !important;
}
.button-secondary,
.yafouz-admin .button-secondary {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text) !important;
}
.button-secondary:hover,
.yafouz-admin .button-secondary:hover {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border-strong) !important;
  color: var(--yafouz-text) !important;
}
.button:not(.button-primary):not(.button-secondary):not(.page-title-action),
.yafouz-admin .button:not(.button-primary):not(.button-secondary):not(.page-title-action) {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text) !important;
}
.button:not(.button-primary):not(.button-secondary):not(.page-title-action):hover,
.yafouz-admin .button:not(.button-primary):not(.button-secondary):not(.page-title-action):hover {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
}
.button:focus-visible,
.yafouz-admin .button:focus-visible {
  box-shadow: 0 0 0 1px var(--yaf-red), 0 0 0 3px rgba(229,9,20,.3) !important;
}

/* ===== FORMS ===== */
input[type=text], input[type=search], input[type=email], input[type=password],
input[type=url], input[type=number], input[type=date], select, textarea,
.yafouz-admin input[type=text], .yafouz-admin input[type=search], .yafouz-admin input[type=email],
.yafouz-admin input[type=password], .yafouz-admin input[type=url], .yafouz-admin input[type=number],
.yafouz-admin input[type=date], .yafouz-admin select, .yafouz-admin textarea {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border-strong) !important;
  color: var(--yafouz-text) !important;
}
input::placeholder, textarea::placeholder,
.yafouz-admin input::placeholder, .yafouz-admin textarea::placeholder {
  color: var(--yafouz-text-muted) !important;
}
input:focus, select:focus, textarea:focus,
.yafouz-admin input:focus, .yafouz-admin select:focus, .yafouz-admin textarea:focus {
  border-color: var(--yaf-red) !important;
  box-shadow: 0 0 0 2px rgba(229,9,20,.15) !important;
}
label, .yafouz-admin label {
  color: var(--yafouz-text-secondary) !important;
}
.description, .help, .yafouz-admin .description, .yafouz-admin .help {
  color: var(--yafouz-text-muted) !important;
}
.form-table th, .yafouz-admin .form-table th {
  color: var(--yafouz-text-secondary) !important;
}
.form-table td, .yafouz-admin .form-table td {
  color: var(--yafouz-text-secondary) !important;
}
.form-table tr, .yafouz-admin .form-table tr {
  border-color: var(--yafouz-border) !important;
}
.wp-admin select option, .yafouz-admin .wp-admin select option {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
}

/* ===== NOTICES ===== */
.notice, .updated, .notice-success, .notice-error, .notice-warning, .notice-info,
.yafouz-admin .notice, .yafouz-admin .updated, .yafouz-admin .notice-success,
.yafouz-admin .notice-error, .yafouz-admin .notice-warning, .yafouz-admin .notice-info {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
.notice p, .updated p, .yafouz-admin .notice p, .yafouz-admin .updated p {
  color: var(--yafouz-text-secondary) !important;
}
.notice a, .updated a, .yafouz-admin .notice a, .yafouz-admin .updated a {
  color: var(--yaf-red) !important;
}
.notice-error { border-left-color: var(--yafouz-danger) !important; }
.notice-success { border-left-color: var(--yafouz-success) !important; }
.notice-warning { border-left-color: var(--yafouz-warning) !important; }
.notice-info { border-left-color: var(--yafouz-info) !important; }

/* ===== TABLES — colors only ===== */
.widefat,
.yafouz-admin .widefat {
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
.widefat th,
.yafouz-admin .widefat th {
  background: var(--yafouz-bg-secondary) !important;
  border-bottom-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-muted) !important;
}
.widefat td,
.yafouz-admin .widefat td {
  background: var(--yafouz-bg-secondary) !important;
  border-bottom-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
.widefat tfoot td,
.yafouz-admin .widefat tfoot td {
  background: var(--yafouz-bg-secondary) !important;
  border-top-color: var(--yafouz-border) !important;
}
.wp-list-table,
.yafouz-admin .wp-list-table {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border) !important;
}
.wp-list-table thead th,
.yafouz-admin .wp-list-table thead th {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text-muted) !important;
  border-bottom-color: var(--yafouz-border) !important;
}
.wp-list-table tbody td,
.yafouz-admin .wp-list-table tbody td {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text-secondary) !important;
  border-bottom-color: var(--yafouz-border) !important;
}
.wp-list-table tbody tr,
.yafouz-admin .wp-list-table tbody tr {
  background: var(--yafouz-bg-secondary) !important;
}
.wp-list-table tbody tr:nth-child(even),
.yafouz-admin .wp-list-table tbody tr:nth-child(even) {
  background: var(--yafouz-bg-secondary) !important;
}
.wp-list-table tbody tr:hover td,
.yafouz-admin .wp-list-table tbody tr:hover td {
  background: var(--yafouz-bg) !important;
}
.wp-list-table tbody tr.alternate:hover td,
.yafouz-admin .wp-list-table tbody tr.alternate:hover td {
  background: var(--yafouz-bg) !important;
}
.wp-list-table tbody th,
.yafouz-admin .wp-list-table tbody th {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
}
.wp-list-table .column-name a,
.yafouz-admin .wp-list-table .column-name a {
  color: var(--yaf-red) !important;
}
.wp-list-table .column-name a:hover,
.yafouz-admin .wp-list-table .column-name a:hover {
  color: var(--yaf-red-hover) !important;
}
.wp-list-table .row-actions span,
.yafouz-admin .wp-list-table .row-actions span {
  color: var(--yafouz-text-muted) !important;
}
.wp-list-table .row-actions span a,
.yafouz-admin .wp-list-table .row-actions span a {
  color: var(--yafouz-text-secondary) !important;
}
.wp-list-table .row-actions span a:hover,
.yafouz-admin .wp-list-table .row-actions span a:hover {
  color: var(--yaf-red) !important;
}
.wp-list-table tfoot td,
.yafouz-admin .wp-list-table tfoot td {
  background: var(--yafouz-bg-secondary) !important;
  border-top-color: var(--yafouz-border) !important;
}

/* ===== TABNAV ===== */
.tablenav.top, .tablenav.bottom,
.yafouz-admin .tablenav.top, .yafouz-admin .tablenav.bottom {
  border-color: var(--yafouz-border) !important;
  background: var(--yafouz-bg-secondary) !important;
}
.tablenav .displaying-num,
.yafouz-admin .tablenav .displaying-num {
  color: var(--yafouz-text-muted) !important;
}
.tablenav .actions select, .tablenav .actions input,
.yafouz-admin .tablenav .actions select, .yafouz-admin .tablenav .actions input {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border-strong) !important;
  color: var(--yafouz-text) !important;
}
.tablenav .bulkactions select,
.yafouz-admin .tablenav .bulkactions select {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
  border-color: var(--yafouz-border-strong) !important;
}
.tablenav .pagination a,
.yafouz-admin .tablenav .pagination a {
  color: var(--yafouz-text-secondary) !important;
}
.tablenav .pagination a:hover,
.yafouz-admin .tablenav .pagination a:hover {
  color: var(--yafouz-text) !important;
}
.tablenav .pagination span.current,
.yafouz-admin .tablenav .pagination span.current {
  background: var(--yaf-red) !important;
  color: #FFFFFF !important;
}
.tablenav-pages,
.yafouz-admin .tablenav-pages {
  color: var(--yafouz-text-muted) !important;
}
.tablenav .pagination-links a,
.yafouz-admin .tablenav .pagination-links a {
  color: var(--yafouz-text-secondary) !important;
}
.tablenav .pagination-links span,
.yafouz-admin .tablenav .pagination-links span {
  color: var(--yafouz-text-muted) !important;
}
.search-box input[type="search"],
.yafouz-admin .search-box input[type="search"] {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
  border-color: var(--yafouz-border-strong) !important;
}
.subsubsub a,
.yafouz-admin .subsubsub a {
  color: var(--yafouz-text-secondary) !important;
}
.subsubsub a.current,
.yafouz-admin .subsubsub a.current {
  color: var(--yaf-red) !important;
}

/* ===== PRODUCT LIST PAGE — colors only ===== */
.wp-list-table.products th,
.yafouz-admin .wp-list-table.products th {
  background: var(--yafouz-bg-secondary) !important;
}
.wp-list-table.products td,
.yafouz-admin .wp-list-table.products td {
  background: transparent !important;
}
.wp-list-table.products tr:hover td,
.yafouz-admin .wp-list-table.products tr:hover td {
  background: var(--yafouz-bg) !important;
}
.wp-list-table.products .product-name a,
.yafouz-admin .wp-list-table.products .product-name a {
  color: var(--yafouz-text) !important;
}
.wp-list-table.products .product-name a:hover,
.yafouz-admin .wp-list-table.products .product-name a:hover {
  color: var(--yaf-red) !important;
}
.wp-list-table.products .column-product_type,
.yafouz-admin .wp-list-table.products .column-product_type {
  color: var(--yafouz-text-muted) !important;
}
.wp-list-table.products .product-sku,
.wp-list-table.products .column-sku,
.yafouz-admin .wp-list-table.products .product-sku,
.yafouz-admin .wp-list-table.products .column-sku {
  color: var(--yafouz-text-muted) !important;
}
.wp-list-table.products .product-stock-status,
.yafouz-admin .wp-list-table.products .product-stock-status {
  color: var(--yafouz-text-secondary) !important;
}
.wp-list-table.products .stock,
.yafouz-admin .wp-list-table.products .stock {
  color: var(--yafouz-success) !important;
}
.wp-list-table.products .out-of-stock,
.yafouz-admin .wp-list-table.products .out-of-stock {
  color: var(--yafouz-danger) !important;
}
.wp-list-table.products .onbackorder,
.yafouz-admin .wp-list-table.products .onbackorder {
  color: var(--yafouz-warning) !important;
}
.wp-list-table.products .product_cat,
.yafouz-admin .wp-list-table.products .product_cat {
  color: var(--yafouz-text-muted) !important;
}
.wp-list-table.products .column-price,
.yafouz-admin .wp-list-table.products .column-price {
  color: var(--yafouz-text) !important;
}
.wp-list-table.products .column-price del,
.yafouz-admin .wp-list-table.products .column-price del {
  color: var(--yafouz-text-muted) !important;
}
.wp-list-table.products .column-price ins,
.yafouz-admin .wp-list-table.products .column-price ins {
  color: var(--yaf-red) !important;
  text-decoration: none !important;
}
.wp-list-table.products .product_brand,
.yafouz-admin .wp-list-table.products .product_brand {
  color: var(--yafouz-text-muted) !important;
}
.wp-list-table.products .product_brand a,
.yafouz-admin .wp-list-table.products .product_brand a {
  color: var(--yafouz-text-secondary) !important;
}
.wp-list-table.products .product_brand a:hover,
.yafouz-admin .wp-list-table.products .product_brand a:hover {
  color: var(--yaf-red) !important;
}
/* Product list — row actions visible */
.wp-list-table.products .row-actions,
.yafouz-admin .wp-list-table.products .row-actions {
  visibility: visible !important;
}
/* Product list — thumbnail border color */
.wp-list-table.products .column-thumb img,
.yafouz-admin .wp-list-table.products .column-thumb img {
  border-color: var(--yafouz-border) !important;
  background: var(--yafouz-bg-secondary) !important;
}
/* Product list — page title action */
.page-title-action,
.yafouz-admin .page-title-action {
  background: var(--yaf-red) !important;
  color: #FFFFFF !important;
  border-color: var(--yaf-red) !important;
}
.page-title-action:hover,
.yafouz-admin .page-title-action:hover {
  background: var(--yaf-red-hover) !important;
  color: #FFFFFF !important;
}
/* Product list — bulk actions, search, pagination */
body.yafouz-admin #posts-filter .tablenav .bulkactions select { background:var(--yafouz-bg-secondary) !important; color:var(--yafouz-text) !important; border-color:var(--yafouz-border-strong) !important }
body.yafouz-admin #posts-filter .tablenav .actions select { background:var(--yafouz-bg-secondary) !important; color:var(--yafouz-text) !important; border-color:var(--yafouz-border-strong) !important }
body.yafouz-admin #posts-filter .search-box input[type="search"] { background:var(--yafouz-bg-secondary) !important; color:var(--yafouz-text) !important; border-color:var(--yafouz-border-strong) !important }
body.yafouz-admin #posts-filter .tablenav .displaying-num { color:var(--yafouz-text-muted) !important }
body.yafouz-admin #posts-filter .tablenav .pagination-links a { color:var(--yafouz-text-secondary) !important }
body.yafouz-admin #posts-filter .tablenav .pagination-links span { color:var(--yafouz-text-muted) !important }
body.yafouz-admin #posts-filter .tablenav .pagination-links span.current { background:var(--yaf-red) !important; color:#fff !important }
/* Product list — inline edit (quick edit) */
body.yafouz-admin #posts-filter .inline-editor { background:var(--yafouz-card) !important; border-color:var(--yafouz-border) !important; color:var(--yafouz-text-secondary) !important }
body.yafouz-admin #posts-filter .inline-editor td { background:var(--yafouz-card) !important; border-color:var(--yafouz-border) !important }
body.yafouz-admin #posts-filter .inline-editor input[type="text"] { background:var(--yafouz-bg-secondary) !important; color:var(--yafouz-text) !important; border-color:var(--yafouz-border-strong) !important }
body.yafouz-admin #posts-filter .inline-editor select { background:var(--yafouz-bg-secondary) !important; color:var(--yafouz-text) !important; border-color:var(--yafouz-border-strong) !important }
body.yafouz-admin #posts-filter .inline-editor textarea { background:var(--yafouz-bg-secondary) !important; color:var(--yafouz-text) !important; border-color:var(--yafouz-border-strong) !important }
body.yafouz-admin #posts-filter .inline-editor label { color:var(--yafouz-text-secondary) !important }

/* ===== WOOCOMMERCE LIST TABLE ===== */
.woocommerce_list_table,
.yafouz-admin .woocommerce_list_table {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
}
.woocommerce_list_table th,
.yafouz-admin .woocommerce_list_table th {
  background: var(--yafouz-bg-secondary) !important;
  border-bottom-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-muted) !important;
}
.woocommerce_list_table td,
.yafouz-admin .woocommerce_list_table td {
  border-bottom-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
.woocommerce_list_table tr:hover td,
.yafouz-admin .woocommerce_list_table tr:hover td {
  background: var(--yafouz-bg) !important;
}
.woocommerce-layout__header,
.yafouz-admin .woocommerce-layout__header {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
}
.woocommerce-layout__header-breadcrumbs span,
.yafouz-admin .woocommerce-layout__header-breadcrumbs span {
  color: var(--yafouz-text-secondary) !important;
}
.woocommerce-layout__header-title,
.yafouz-admin .woocommerce-layout__header-title {
  color: var(--yafouz-text) !important;
}
/* WooCommerce notices */
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-message,
.yafouz-admin .woocommerce-notices-wrapper .woocommerce-error,
.yafouz-admin .woocommerce-notices-wrapper .woocommerce-info,
.yafouz-admin .woocommerce-notices-wrapper .woocommerce-message {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
.woocommerce-notices-wrapper .woocommerce-error,
.yafouz-admin .woocommerce-notices-wrapper .woocommerce-error { border-left-color: var(--yafouz-danger) !important; }
.woocommerce-notices-wrapper .woocommerce-info,
.yafouz-admin .woocommerce-notices-wrapper .woocommerce-info { border-left-color: var(--yafouz-info) !important; }
.woocommerce-notices-wrapper .woocommerce-message,
.yafouz-admin .woocommerce-notices-wrapper .woocommerce-message { border-left-color: var(--yafouz-success) !important; }

/* ===== PRODUCT EDITOR — colors only ===== */
#titlediv, .yafouz-admin #titlediv {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
}
#titlediv #title, .yafouz-admin #titlediv #title {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border-strong) !important;
  color: var(--yafouz-text) !important;
}
#titlediv #title:focus, .yafouz-admin #titlediv #title:focus {
  border-color: var(--yaf-red) !important;
  box-shadow: 0 0 0 2px rgba(229,9,20,.15) !important;
}
#titlediv #title::placeholder, .yafouz-admin #titlediv #title::placeholder {
  color: var(--yafouz-text-muted) !important;
}
/* Editor */
.wp-editor-wrap, .yafouz-admin .wp-editor-wrap {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
}
.mce-container .mce-panel, .mce-panel,
.yafouz-admin .mce-container .mce-panel, .yafouz-admin .mce-panel {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border) !important;
}
.mce-container .mce-toolbar, .mce-toolbar,
.yafouz-admin .mce-container .mce-toolbar, .yafouz-admin .mce-toolbar {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border) !important;
}
.mce-btn, .yafouz-admin .mce-btn {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
.mce-btn:hover, .yafouz-admin .mce-btn:hover {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
}
.mce-btn.mce-active, .mce-btn.mce-active:hover,
.yafouz-admin .mce-btn.mce-active, .yafouz-admin .mce-btn.mce-active:hover {
  background: var(--yaf-red) !important;
  color: #FFFFFF !important;
}
.mce-btn i, .yafouz-admin .mce-btn i { color: var(--yafouz-text-secondary) !important; }
.mce-btn:hover i, .yafouz-admin .mce-btn:hover i { color: var(--yafouz-text) !important; }
.mce-separator, .yafouz-admin .mce-separator { border-color: var(--yafouz-border) !important; }
.mce-menu-item, .yafouz-admin .mce-menu-item {
  background: var(--yafouz-card) !important;
  color: var(--yafouz-text-secondary) !important;
}
.mce-menu-item:hover, .mce-menu-item.mce-active,
.yafouz-admin .mce-menu-item:hover, .yafouz-admin .mce-menu-item.mce-active {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
}
.mce-container .mce-menu, .yafouz-admin .mce-container .mce-menu {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
}
.mce-content-body, .mce-edit-area iframe,
.yafouz-admin .mce-content-body, .yafouz-admin .mce-edit-area iframe {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
}
.wp-editor-tabs, .yafouz-admin .wp-editor-tabs {
  background: var(--yafouz-bg-secondary) !important;
  border-bottom-color: var(--yafouz-border) !important;
}
.wp-editor-tabs .wp-switch-editor,
.yafouz-admin .wp-editor-tabs .wp-switch-editor {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text-muted) !important;
  border-color: var(--yafouz-border) !important;
}
.wp-editor-tabs .wp-switch-editor:hover,
.yafouz-admin .wp-editor-tabs .wp-switch-editor:hover {
  color: var(--yafouz-text) !important;
}
.wp-editor-tabs .wp-switch-editor.current, .wp-editor-tabs .wp-switch-editor.active,
.yafouz-admin .wp-editor-tabs .wp-switch-editor.current, .yafouz-admin .wp-editor-tabs .wp-switch-editor.active {
  background: var(--yafouz-card) !important;
  color: var(--yaf-red) !important;
  border-bottom-color: var(--yafouz-card) !important;
}
.wp-editor-area, .yafouz-admin .wp-editor-area {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
  border-color: var(--yafouz-border-strong) !important;
}
.quicktags-toolbar, .yafouz-admin .quicktags-toolbar {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border) !important;
}
.quicktags-toolbar .button, .yafouz-admin .quicktags-toolbar .button {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
.quicktags-toolbar .button:hover, .yafouz-admin .quicktags-toolbar .button:hover {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
}

/* ===== PRODUCT DATA PANEL ===== */
#woocommerce-product-data, .yafouz-admin #woocommerce-product-data {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
#woocommerce-product-data .postbox-header, .yafouz-admin #woocommerce-product-data .postbox-header {
  background: var(--yafouz-bg-secondary) !important;
  border-bottom-color: var(--yafouz-border) !important;
}
#woocommerce-product-data .postbox-header h2, .yafouz-admin #woocommerce-product-data .postbox-header h2 {
  color: var(--yafouz-text) !important;
}
.product_data_tabs, .yafouz-admin .product_data_tabs {
  background: var(--yafouz-bg-secondary) !important;
  border-right-color: var(--yafouz-border) !important;
}
.product_data_tabs li a, .yafouz-admin .product_data_tabs li a {
  color: var(--yafouz-text-muted) !important;
  border-left-color: transparent !important;
}
.product_data_tabs li a:hover, .yafouz-admin .product_data_tabs li a:hover {
  color: var(--yafouz-text) !important;
  background: var(--yafouz-bg-secondary) !important;
}
.product_data_tabs li.active a, .product_data_tabs li.ui-tabs-active a,
.yafouz-admin .product_data_tabs li.active a, .yafouz-admin .product_data_tabs li.ui-tabs-active a {
  color: var(--yaf-red) !important;
  background: var(--yafouz-card) !important;
  border-left-color: var(--yaf-red) !important;
}
.product_data_tabs .product_data_tabs_group-title,
.yafouz-admin .product_data_tabs .product_data_tabs_group-title {
  color: var(--yafouz-text-muted) !important;
  border-top-color: var(--yafouz-border) !important;
}
#product_data .panel, .woocommerce_options_panel,
.yafouz-admin #product_data .panel, .yafouz-admin .woocommerce_options_panel {
  background: var(--yafouz-card) !important;
  color: var(--yafouz-text-secondary) !important;
}
.woocommerce_options_panel .form-table th, .yafouz-admin .woocommerce_options_panel .form-table th {
  color: var(--yafouz-text-secondary) !important;
  border-bottom-color: var(--yafouz-border) !important;
}
.woocommerce_options_panel .form-table td, .yafouz-admin .woocommerce_options_panel .form-table td {
  color: var(--yafouz-text-secondary) !important;
  border-bottom-color: var(--yafouz-border) !important;
}
.woocommerce_options_panel input, .woocommerce_options_panel select, .woocommerce_options_panel textarea,
.yafouz-admin .woocommerce_options_panel input, .yafouz-admin .woocommerce_options_panel select, .yafouz-admin .woocommerce_options_panel textarea {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border-strong) !important;
  color: var(--yafouz-text) !important;
}
.woocommerce_options_panel input:focus, .woocommerce_options_panel select:focus, .woocommerce_options_panel textarea:focus,
.yafouz-admin .woocommerce_options_panel input:focus, .yafouz-admin .woocommerce_options_panel select:focus, .yafouz-admin .woocommerce_options_panel textarea:focus {
  border-color: var(--yaf-red) !important;
  box-shadow: 0 0 0 2px rgba(229,9,20,.15) !important;
}
#product-type label, .yafouz-admin #product-type label {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-muted) !important;
}
#product-type label:hover, .yafouz-admin #product-type label:hover {
  color: var(--yafouz-text) !important;
}
#product-type input[type="radio"]:checked + label, .yafouz-admin #product-type input[type="radio"]:checked + label {
  background: var(--yaf-red) !important;
  border-color: var(--yaf-red) !important;
  color: #FFFFFF !important;
}
.stock_fields input, .inventory_options input, .inventory_options select,
.yafouz-admin .stock_fields input, .yafouz-admin .inventory_options input, .yafouz-admin .inventory_options select {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
  border-color: var(--yafouz-border-strong) !important;
}
.stock_status_field select, .yafouz-admin .stock_status_field select {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
  border-color: var(--yafouz-border-strong) !important;
}
#_virtual, #_downloadable, .yafouz-admin #_virtual, .yafouz-admin #_downloadable {
  accent-color: var(--yaf-red) !important;
}

/* ===== PRODUCT DATA SIDEBAR PANELS ===== */
#postimagediv, #woocommerce-product-images, #product_catdiv, #tagsdiv-post_tag,
#product_tagdiv, #postexcerptdiv, #postcustomdiv, #commentstatusdiv, #slugdiv,
.yafouz-admin #postimagediv, .yafouz-admin #woocommerce-product-images,
.yafouz-admin #product_catdiv, .yafouz-admin #tagsdiv-post_tag,
.yafouz-admin #product_tagdiv, .yafouz-admin #postexcerptdiv,
.yafouz-admin #postcustomdiv, .yafouz-admin #commentstatusdiv, .yafouz-admin #slugdiv {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
#postimagediv .postbox-header, #woocommerce-product-images .postbox-header,
#product_catdiv .postbox-header, #tagsdiv-post_tag .postbox-header,
#product_tagdiv .postbox-header, #postexcerptdiv .postbox-header,
.yafouz-admin #postimagediv .postbox-header, .yafouz-admin #woocommerce-product-images .postbox-header,
.yafouz-admin #product_catdiv .postbox-header, .yafouz-admin #tagsdiv-post_tag .postbox-header,
.yafouz-admin #product_tagdiv .postbox-header, .yafouz-admin #postexcerptdiv .postbox-header {
  background: var(--yafouz-bg-secondary) !important;
  border-bottom-color: var(--yafouz-border) !important;
}
#postimagediv .postbox-header h2, #woocommerce-product-images .postbox-header h2,
#product_catdiv .postbox-header h2, #tagsdiv-post_tag .postbox-header h2,
.yafouz-admin #postimagediv .postbox-header h2, .yafouz-admin #woocommerce-product-images .postbox-header h2,
.yafouz-admin #product_catdiv .postbox-header h2, .yafouz-admin #tagsdiv-post_tag .postbox-header h2 {
  color: var(--yafouz-text) !important;
}
#set-post-thumbnail, .yafouz-admin #set-post-thumbnail {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
#set-post-thumbnail:hover, .yafouz-admin #set-post-thumbnail:hover {
  border-color: var(--yaf-red) !important;
  color: var(--yaf-red) !important;
}
.product_images .image, .yafouz-admin .product_images .image {
  border-color: var(--yafouz-border) !important;
  background: var(--yafouz-bg-secondary) !important;
}
.product_images .toolbar, .yafouz-admin .product_images .toolbar {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border) !important;
}
.product_images .image .delete, .product_images .image .edit,
.yafouz-admin .product_images .image .delete, .yafouz-admin .product_images .image .edit {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
.product_images .image .delete:hover, .product_images .image .edit:hover,
.yafouz-admin .product_images .image .delete:hover, .yafouz-admin .product_images .image .edit:hover {
  background: var(--yaf-red) !important;
  border-color: var(--yaf-red) !important;
  color: #FFFFFF !important;
}

/* ===== PRODUCT CATEGORIES ===== */
.categorydiv .tabs-panel, .yafouz-admin .categorydiv .tabs-panel {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border-strong) !important;
  color: var(--yafouz-text-secondary) !important;
}
.categorychecklist li label, .yafouz-admin .categorychecklist li label {
  color: var(--yafouz-text-secondary) !important;
}
.categorychecklist li label:hover, .yafouz-admin .categorychecklist li label:hover {
  background: var(--yafouz-bg-secondary) !important;
}
.categorychecklist li label input[type="checkbox"],
.categorychecklist li input[type="checkbox"],
.yafouz-admin .categorychecklist li label input[type="checkbox"],
.yafouz-admin .categorychecklist li input[type="checkbox"] {
  accent-color: var(--yaf-red) !important;
}
.category-add, .yafouz-admin .category-add {
  border-top-color: var(--yafouz-border) !important;
}
.category-add .form-field label, .yafouz-admin .category-add .form-field label {
  color: var(--yafouz-text-secondary) !important;
}
.category-add .form-field input, .category-add .form-field select,
.yafouz-admin .category-add .form-field input, .yafouz-admin .category-add .form-field select {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border-strong) !important;
  color: var(--yafouz-text) !important;
}

/* ===== PRODUCT TAGS ===== */
.tagchecklist .ntdelbutton, .yafouz-admin .tagchecklist .ntdelbutton {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-muted) !important;
}
.tagchecklist .ntdelbutton:hover, .yafouz-admin .tagchecklist .ntdelbutton:hover {
  background: var(--yaf-red) !important;
  border-color: var(--yaf-red) !important;
  color: #FFFFFF !important;
}
.tagchecklist .inside, .yafouz-admin .tagchecklist .inside {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
#new-tag-product_tag, .yafouz-admin #new-tag-product_tag {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border-strong) !important;
  color: var(--yafouz-text) !important;
}

/* ===== PUBLISH PANEL ===== */
#submitdiv, #publishing-action, .yafouz-admin #submitdiv, .yafouz-admin #publishing-action {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
}
#publishing-action .button-primary, #publish,
.yafouz-admin #publishing-action .button-primary, .yafouz-admin #publish {
  background: var(--yaf-red) !important;
  border-color: var(--yaf-red) !important;
  color: #FFFFFF !important;
}
#publishing-action .button-primary:hover, #publish:hover,
.yafouz-admin #publishing-action .button-primary:hover, .yafouz-admin #publish:hover {
  background: var(--yaf-red-hover) !important;
  border-color: var(--yaf-red-hover) !important;
}
#save-post, .yafouz-admin #save-post {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
#save-post:hover, .yafouz-admin #save-post:hover {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
}
#post-status-display, .misc-pub-curstatus, .misc-pub-visibility, #timestamp,
.yafouz-admin #post-status-display, .yafouz-admin .misc-pub-curstatus,
.yafouz-admin .misc-pub-visibility, .yafouz-admin #timestamp {
  color: var(--yafouz-text-muted) !important;
}

/* ===== SELECT2 ===== */
.select2-container, .yafouz-admin .select2-container {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border-strong) !important;
  color: var(--yafouz-text) !important;
}
.select2-container .select2-choice, .yafouz-admin .select2-container .select2-choice {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
}
.select2-container .select2-choice .select2-chosen, .yafouz-admin .select2-container .select2-choice .select2-chosen {
  color: var(--yafouz-text) !important;
}
.select2-container .select2-choice .select2-arrow, .yafouz-admin .select2-container .select2-choice .select2-arrow {
  background: transparent !important;
  border-left-color: var(--yafouz-border) !important;
}
.select2-container .select2-choice .select2-arrow b, .yafouz-admin .select2-container .select2-choice .select2-arrow b {
  border-color: var(--yafouz-text-muted) transparent transparent transparent !important;
}
.select2-container-active, .yafouz-admin .select2-container-active {
  border-color: var(--yaf-red) !important;
  box-shadow: 0 0 0 2px rgba(229,9,20,.15) !important;
}
.select2-container-active .select2-choice, .yafouz-admin .select2-container-active .select2-choice {
  background: var(--yafouz-bg) !important;
}
.select2-container-multi .select2-choices, .yafouz-admin .select2-container-multi .select2-choices {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border-strong) !important;
}
.select2-container-multi .select2-choices .select2-search-choice, .yafouz-admin .select2-container-multi .select2-choices .select2-search-choice {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close, .yafouz-admin .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close {
  color: var(--yafouz-text-muted) !important;
}
.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover, .yafouz-admin .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
  color: var(--yaf-red) !important;
}
.select2-container-multi .select2-choices .select2-search-field input, .yafouz-admin .select2-container-multi .select2-choices .select2-search-field input {
  background: transparent !important;
  color: var(--yafouz-text) !important;
}
.select2-search input, .yafouz-admin .select2-search input {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border-strong) !important;
  color: var(--yafouz-text) !important;
}
.select2-search input:focus, .yafouz-admin .select2-search input:focus {
  border-color: var(--yaf-red) !important;
  box-shadow: 0 0 0 2px rgba(229,9,20,.15) !important;
}
.select2-drop, .yafouz-admin .select2-drop {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
.select2-results li, .yafouz-admin .select2-results li {
  color: var(--yafouz-text-secondary) !important;
}
.select2-results li:hover, .yafouz-admin .select2-results li:hover {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
}
.select2-results .select2-highlighted, .yafouz-admin .select2-results .select2-highlighted {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
}
.select2-results .select2-no-results, .select2-results .select2-searching,
.yafouz-admin .select2-results .select2-no-results, .yafouz-admin .select2-results .select2-searching {
  color: var(--yafouz-text-muted) !important;
}
.select2-drop-active, .yafouz-admin .select2-drop-active {
  border-color: var(--yaf-red) !important;
}

/* ===== ORDERS ===== */
.wc-orders-list-table td, .wp-list-table.order_notes td, .wp-list-table.shop_order td,
.wc-orders-list-table thead th, .wp-list-table.order_notes thead th,
.yafouz-admin .wc-orders-list-table td, .yafouz-admin .wp-list-table.order_notes td,
.yafouz-admin .wp-list-table.shop_order td, .yafouz-admin .wc-orders-list-table thead th,
.yafouz-admin .wp-list-table.order_notes thead th {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text-muted) !important;
  border-color: var(--yafouz-border) !important;
}
.wc-orders-list-table tr:hover td, .wp-list-table.order_notes tr:hover td, .wp-list-table.shop_order tr:hover td,
.yafouz-admin .wc-orders-list-table tr:hover td, .yafouz-admin .wp-list-table.order_notes tr:hover td,
.yafouz-admin .wp-list-table.shop_order tr:hover td {
  background: var(--yafouz-bg) !important;
}
.wp-list-table.shop_order tbody tr, .yafouz-admin .wp-list-table.shop_order tbody tr {
  background: transparent !important;
}
.order-status { display: inline-block; }
.order-status.status-pending { background: rgba(234,88,12,.12) !important; color: var(--yafouz-warning) !important; border-color: rgba(234,88,12,.25) !important; }
.order-status.status-processing { background: rgba(59,130,246,.12) !important; color: var(--yafouz-info) !important; border-color: rgba(59,130,246,.25) !important; }
.order-status.status-completed { background: rgba(22,163,74,.12) !important; color: var(--yafouz-success) !important; border-color: rgba(22,163,74,.25) !important; }
.order-status.status-cancelled { background: rgba(239,68,68,.12) !important; color: var(--yafouz-danger) !important; border-color: rgba(239,68,68,.25) !important; }
.order-status.status-refunded { background: rgba(139,92,246,.12) !important; color: #8b5cf6 !important; border-color: rgba(139,92,246,.25) !important; }
.order-status.status-on-hold { background: rgba(234,88,12,.12) !important; color: var(--yafouz-warning) !important; border-color: rgba(234,88,12,.25) !important; }
.order-status.status-failed { background: rgba(239,68,68,.12) !important; color: var(--yafouz-danger) !important; border-color: rgba(239,68,68,.25) !important; }
.wc-orders-search-button, .yafouz-admin .wc-orders-search-button {
  background: var(--yaf-red) !important;
  color: #FFFFFF !important;
  border-color: var(--yaf-red) !important;
}
.wc-orders-search-button:hover, .yafouz-admin .wc-orders-search-button:hover {
  background: var(--yaf-red-hover) !important;
}
.wc-orders-filter-options select, .yafouz-admin .wc-orders-filter-options select {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
  border-color: var(--yafouz-border-strong) !important;
}
#wc-orders-search-input, .yafouz-admin #wc-orders-search-input {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
  border-color: var(--yafouz-border-strong) !important;
}

/* ===== COUPONS ===== */
.wp-list-table.coupons thead th, .yafouz-admin .wp-list-table.coupons thead th {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text-muted) !important;
  border-color: var(--yafouz-border) !important;
}
.wp-list-table.coupons tbody td, .yafouz-admin .wp-list-table.coupons tbody td {
  background: transparent !important;
  color: var(--yafouz-text-secondary) !important;
  border-color: var(--yafouz-border) !important;
}
.wp-list-table.coupons tbody tr:hover td, .yafouz-admin .wp-list-table.coupons tbody tr:hover td {
  background: var(--yafouz-bg) !important;
}
.wp-list-table.coupons .column-code a, .yafouz-admin .wp-list-table.coupons .column-code a {
  color: var(--yaf-red) !important;
}
.wp-list-table.coupons .column-amount, .yafouz-admin .wp-list-table.coupons .column-amount {
  color: var(--yafouz-text) !important;
}

/* ===== CUSTOMERS ===== */
.wp-list-table.customers thead th, .yafouz-admin .wp-list-table.customers thead th {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text-muted) !important;
  border-color: var(--yafouz-border) !important;
}
.wp-list-table.customers tbody td, .yafouz-admin .wp-list-table.customers tbody td {
  background: transparent !important;
  color: var(--yafouz-text-secondary) !important;
  border-color: var(--yafouz-border) !important;
}
.wp-list-table.customers tbody tr:hover td, .yafouz-admin .wp-list-table.customers tbody tr:hover td {
  background: var(--yafouz-bg) !important;
}

/* ===== WOOCOMMERCE SETTINGS ===== */
.wc_settings_sub_subsub, .yafouz-admin .wc_settings_sub_subsub {
  background: transparent !important;
}
.wc_settings_sub_subsub a, .yafouz-admin .wc_settings_sub_subsub a {
  color: var(--yafouz-text-secondary) !important;
}
.wc_settings_sub_subsub a:hover, .yafouz-admin .wc_settings_sub_subsub a:hover {
  color: var(--yafouz-text) !important;
  background: var(--yafouz-bg-secondary) !important;
}
.wc_settings_sub_subsub a.current, .yafouz-admin .wc_settings_sub_subsub a.current {
  color: var(--yaf-red) !important;
}
.settings .form-table th, .yafouz-admin .settings .form-table th {
  color: var(--yafouz-text-secondary) !important;
}
.settings .form-table td, .yafouz-admin .settings .form-table td {
  color: var(--yafouz-text-secondary) !important;
}
.settings .form-table tr, .yafouz-admin .settings .form-table tr {
  border-color: var(--yafouz-border) !important;
}
.wc-settings-sub-title, .yafouz-admin .wc-settings-sub-title {
  color: var(--yafouz-text) !important;
}
.wc-settings-description, .yafouz-admin .wc-settings-description {
  color: var(--yafouz-text-muted) !important;
}

/* ===== MODALS ===== */
.wc-modal, .yafouz-admin .wc-modal {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
.wc-modal-backdrop, .yafouz-admin .wc-modal-backdrop {
  background: rgba(0,0,0,.6) !important;
}
.wc-modal h2, .yafouz-admin .wc-modal h2 { color: var(--yafouz-text) !important; }
.wc-modal p, .yafouz-admin .wc-modal p { color: var(--yafouz-text-secondary) !important; }
.wc-modal input, .wc-modal select, .wc-modal textarea,
.yafouz-admin .wc-modal input, .yafouz-admin .wc-modal select, .yafouz-admin .wc-modal textarea {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border-strong) !important;
  color: var(--yafouz-text) !important;
}

/* ===== DATEPICKER ===== */
.ui-datepicker, .yafouz-admin .ui-datepicker {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
.ui-datepicker-header, .yafouz-admin .ui-datepicker-header {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border) !important;
}
.ui-datepicker-title, .yafouz-admin .ui-datepicker-title {
  color: var(--yafouz-text) !important;
}
.ui-datepicker-prev, .ui-datepicker-next, .yafouz-admin .ui-datepicker-prev, .yafouz-admin .ui-datepicker-next {
  color: var(--yafouz-text-muted) !important;
}
.ui-datepicker-prev:hover, .ui-datepicker-next:hover,
.yafouz-admin .ui-datepicker-prev:hover, .yafouz-admin .ui-datepicker-next:hover {
  color: var(--yafouz-text) !important;
  background: var(--yafouz-bg-secondary) !important;
}
.ui-datepicker th, .yafouz-admin .ui-datepicker th {
  color: var(--yafouz-text-muted) !important;
  border-bottom-color: var(--yafouz-border) !important;
}
.ui-datepicker td a, .ui-datepicker td span,
.yafouz-admin .ui-datepicker td a, .yafouz-admin .ui-datepicker td span {
  color: var(--yafouz-text-secondary) !important;
}
.ui-datepicker td a:hover, .yafouz-admin .ui-datepicker td a:hover {
  color: var(--yafouz-text) !important;
  background: var(--yafouz-bg-secondary) !important;
}
.ui-state-active, .yafouz-admin .ui-state-active {
  background: var(--yaf-red) !important;
  color: #FFFFFF !important;
}
.ui-state-highlight, .yafouz-admin .ui-state-highlight {
  background: var(--yaf-red-soft) !important;
  color: var(--yaf-red) !important;
}

/* ===== WP LOGIN ===== */
body.login { background: #0A0A0A !important; }
body.login #loginform {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
}
body.login #loginform label { color: var(--yafouz-text-secondary) !important; }
body.login #loginform input[type=text], body.login #loginform input[type=password] {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border-strong) !important;
  color: var(--yafouz-text) !important;
}
body.login .button-primary {
  background: var(--yaf-red) !important;
  border-color: var(--yaf-red) !important;
  color: #FFFFFF !important;
}
body.login .button-primary:hover {
  background: var(--yaf-red-hover) !important;
  border-color: var(--yaf-red-hover) !important;
}
body.login #nav a, body.login #backtoblog a { color: var(--yafouz-text-secondary) !important; }
body.login #nav a:hover { color: var(--yaf-red) !important; }

/* ===== WP MODALS / MEDIA ===== */
.media-modal, .yafouz-admin .media-modal {
  background: var(--yafouz-card) !important;
  color: var(--yafouz-text) !important;
}
.media-modal-backdrop, .yafouz-admin .media-modal-backdrop {
  background: rgba(0,0,0,.6) !important;
}
.wp-picker-container .wp-color-result, .yafouz-admin .wp-picker-container .wp-color-result {
  border-color: var(--yafouz-border) !important;
}
#screen-options, .yafouz-admin #screen-options {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
}
#screen-options label, .yafouz-admin #screen-options label {
  color: var(--yafouz-text-secondary) !important;
}
.screen-meta, .yafouz-admin .screen-meta {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
}
.screen-meta-links a, .yafouz-admin .screen-meta-links a {
  color: var(--yafouz-text-secondary) !important;
}
.screen-meta-links a:hover, .yafouz-admin .screen-meta-links a:hover {
  color: var(--yaf-red) !important;
}

/* ===== WP UNIVERSAL TEXT COLORS ===== */
.yafouz-admin, .yafouz-admin p, .yafouz-admin span, .yafouz-admin div, .yafouz-admin td, .yafouz-admin th,
.yafouz-admin label, .yafouz-admin option {
  color: var(--yafouz-text-secondary) !important;
}
.yafouz-admin .wrap h1, .yafouz-admin .wrap h2, .yafouz-admin .wrap h3,
.yafouz-admin #post-body h1, .yafouz-admin #post-body h2, .yafouz-admin #post-body h3,
.yafouz-admin #poststuff h2, .yafouz-admin #poststuff h3, .yafouz-admin #poststuff h4 {
  color: var(--yafouz-text) !important;
}
#wpcontent a, .yafouz-admin #wpcontent a { color: var(--yafouz-text-secondary) !important; }
#wpcontent a:hover, .yafouz-admin #wpcontent a:hover { color: var(--yaf-red) !important; }

/* ===== WP NAV TABS ===== */
.nav-tab, .yafouz-admin .nav-tab {
  color: var(--yafouz-text-secondary) !important;
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
}
.nav-tab-active, .yafouz-admin .nav-tab-active {
  color: var(--yaf-red) !important;
  background: var(--yafouz-bg) !important;
  border-color: var(--yafouz-border) !important;
}
.nav-tab:hover, .yafouz-admin .nav-tab:hover {
  color: var(--yafouz-text) !important;
}

/* ===== WP WIDGETS ===== */
#widgets-right .widget-top, .yafouz-admin #widgets-right .widget-top {
  background: var(--yafouz-bg-secondary) !important;
  border-color: var(--yafouz-border) !important;
}
#widgets-right .widget-top h2, .yafouz-admin #widgets-right .widget-top h2 {
  color: var(--yafouz-text) !important;
}
#widgets-right .widget-inside, .yafouz-admin #widgets-right .widget-inside {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
}
.widget-title, .yafouz-admin .widget-title { color: var(--yafouz-text) !important; }
.widget-description, .yafouz-admin .widget-description { color: var(--yafouz-text-muted) !important; }
.widget-control-save, .yafouz-admin .widget-control-save {
  background: var(--yaf-red) !important;
  color: #FFFFFF !important;
  border-color: var(--yaf-red) !important;
}

/* ===== WP INLINE EDIT ===== */
.inline-editor, .yafouz-admin .inline-editor {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
}

/* ===== WP PROFILE ===== */
#your-profile label, .yafouz-admin #your-profile label { color: var(--yafouz-text-secondary) !important; }
#your-profile input, .yafouz-admin #your-profile input {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
  border-color: var(--yafouz-border-strong) !important;
}
#your-profile select, .yafouz-admin #your-profile select {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
  border-color: var(--yafouz-border-strong) !important;
}
#your-profile textarea, .yafouz-admin #your-profile textarea {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
  border-color: var(--yafouz-border-strong) !important;
}

/* ===== WP DASHBOARD ===== */
.welcome-panel, .yafouz-admin .welcome-panel {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
.welcome-panel h2, .welcome-panel h3,
.yafouz-admin .welcome-panel h2, .yafouz-admin .welcome-panel h3 {
  color: var(--yafouz-text) !important;
}
.welcome-panel p, .yafouz-admin .welcome-panel p { color: var(--yafouz-text-secondary) !important; }
.welcome-panel a, .yafouz-admin .welcome-panel a { color: var(--yaf-red) !important; }
#dashboard-widgets .postbox, .yafouz-admin #dashboard-widgets .postbox {
  background: var(--yafouz-card) !important;
  border-color: var(--yafouz-border) !important;
  color: var(--yafouz-text-secondary) !important;
}
#dashboard-widgets .postbox h2, #dashboard-widgets .postbox h3, #dashboard-widgets .postbox h4,
.yafouz-admin #dashboard-widgets .postbox h2, .yafouz-admin #dashboard-widgets .postbox h3,
.yafouz-admin #dashboard-widgets .postbox h4 {
  color: var(--yafouz-text) !important;
}
#dashboard-widgets .quickdraft-widget textarea,
.yafouz-admin #dashboard-widgets .quickdraft-widget textarea {
  background: var(--yafouz-bg-secondary) !important;
  color: var(--yafouz-text) !important;
  border-color: var(--yafouz-border-strong) !important;
}

/* ===== WP RTL ===== */
body.rtl .yafouz-admin #adminmenu .wp-submenu { border-right-color: var(--yaf-red) !important; }

/* ===== FORCE DARK ON INLINE STYLES (beats WooCommerce JS) ===== */
.wp-list-table td[style], .wp-list-table th[style], .wp-list-table tr[style],
.wp-list-table td[style*="background"], .wp-list-table th[style*="background"],
.wp-list-table tr[style*="background"],
.wp-list-table td[style*="background-color"], .wp-list-table th[style*="background-color"],
.wp-list-table tr[style*="background-color"],
.yafouz-admin .wp-list-table td[style], .yafouz-admin .wp-list-table th[style],
.yafouz-admin .wp-list-table tr[style] {
  background: var(--yafouz-bg-secondary) !important;
  background-color: var(--yafouz-bg-secondary) !important;
  background-image: none !important;
  border-bottom-color: var(--yafouz-border) !important;
}
