/**
 * Vatamam UI Redesign v5.4.0
 * Customer panel, expert panel, external auction cards, auth recovery and admin responsive.
 */
:root{
  --vt-brand:#0b4138;
  --vt-brand-2:#135e50;
  --vt-brand-soft:#edf6f3;
  --vt-gold:#c79a52;
  --vt-gold-soft:#fbf5ea;
  --vt-ink:#17211f;
  --vt-muted:#66736f;
  --vt-border:#dfe7e4;
  --vt-surface:#f5f7f6;
  --vt-white:#fff;
  --vt-danger:#b42318;
  --vt-warning:#b7791f;
  --vt-success:#087a5b;
  --vt-shadow:0 12px 35px rgba(21,48,42,.08);
  --vt-radius:18px;
}

/* ─────────────────────────────────────────────────────────
   Logged-out / wrong-role panel states
───────────────────────────────────────────────────────── */
.vt-panel-gate{
  direction:rtl;
  min-height:calc(100vh - 80px);
  padding:clamp(28px,6vw,80px) 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 15% 15%,rgba(199,154,82,.12),transparent 32%),
    radial-gradient(circle at 85% 80%,rgba(11,65,56,.09),transparent 36%),
    #f7f6f2;
}
.vt-panel-gate__card{
  width:min(100%,620px);
  background:#fff;
  border:1px solid rgba(11,65,56,.12);
  border-radius:24px;
  padding:clamp(26px,5vw,48px);
  box-shadow:0 22px 60px rgba(23,33,31,.11);
  text-align:center;
  position:relative;
  overflow:hidden;
}
.vt-panel-gate__card:before{
  content:"";position:absolute;inset:0 0 auto;height:5px;
  background:linear-gradient(90deg,var(--vt-brand),var(--vt-gold),var(--vt-brand));
}
.vt-panel-gate__icon{
  width:82px;height:82px;border-radius:24px;margin:0 auto 22px;
  display:flex;align-items:center;justify-content:center;font-size:38px;
  background:linear-gradient(145deg,var(--vt-gold-soft),#f4e2bf);
  color:var(--vt-brand);box-shadow:0 10px 24px rgba(199,154,82,.2);
}
.vt-panel-gate__card h2{margin:0 0 10px;color:var(--vt-ink);font-size:clamp(20px,3vw,27px);line-height:1.6}
.vt-panel-gate__card p{margin:0 auto 24px;color:var(--vt-muted);font-size:14px;line-height:2;max-width:480px}
.vt-panel-gate__actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.vt-panel-gate__button{
  min-height:46px;padding:0 22px;border-radius:12px;text-decoration:none!important;
  font-weight:800;font-size:14px;display:inline-flex;align-items:center;justify-content:center;
  transition:.2s ease;border:1px solid transparent;
}
.vt-panel-gate__button--primary{background:var(--vt-brand);color:#fff!important;box-shadow:0 8px 18px rgba(11,65,56,.2)}
.vt-panel-gate__button--primary:hover{background:#07352e;transform:translateY(-1px)}
.vt-panel-gate__button--secondary{background:#fff;color:var(--vt-brand)!important;border-color:#cbd8d4}
.vt-panel-gate__button--secondary:hover{background:var(--vt-brand-soft)}

/* ─────────────────────────────────────────────────────────
   Customer panel redesign
───────────────────────────────────────────────────────── */
body .wrap.antique-user-panel.vt-customer-panel{
  max-width:1380px!important;
  margin:0 auto!important;
  padding:28px!important;
  color:var(--vt-ink);
  background:linear-gradient(180deg,#f8faf9 0%,#f4f6f5 100%);
  border-radius:26px;
  min-height:70vh;
}
.vt-customer-panel .antique-welcome-card{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center!important;
  gap:18px!important;
  padding:24px!important;
  margin:0 0 18px!important;
  border-radius:22px!important;
  background:
    linear-gradient(135deg,rgba(11,65,56,.97),rgba(19,94,80,.94)),
    #0b4138!important;
  color:#fff!important;
  border:none!important;
  box-shadow:0 18px 38px rgba(11,65,56,.18)!important;
  position:relative;overflow:hidden;
}
.vt-customer-panel .antique-welcome-card:after{
  content:"";position:absolute;width:220px;height:220px;border-radius:50%;
  left:-70px;bottom:-120px;background:rgba(199,154,82,.18);pointer-events:none;
}
.vt-customer-panel .antique-welcome-card .avatar{
  width:72px!important;height:72px!important;min-width:72px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  border-radius:20px!important;background:rgba(255,255,255,.13)!important;
  border:1px solid rgba(255,255,255,.28)!important;color:#fff!important;
  font-size:25px!important;font-weight:900!important;overflow:hidden;
}
.vt-customer-panel .antique-welcome-card .avatar img{width:100%!important;height:100%!important;border-radius:20px!important;object-fit:cover!important}
.vt-customer-panel .welcome-text h1{margin:0 0 5px!important;color:#fff!important;font-size:23px!important;font-weight:900!important}
.vt-customer-panel .welcome-text p{margin:0!important;color:rgba(255,255,255,.78)!important;font-size:13px!important}
.vt-customer-panel .logout-section{position:relative;z-index:1;display:flex!important;gap:8px!important}
.vt-customer-panel .logout-btn,
.vt-customer-panel .vt-bell-btn{
  min-height:42px!important;border-radius:11px!important;padding:0 15px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  font-size:13px!important;font-weight:800!important;text-decoration:none!important;
}
.vt-customer-panel .logout-btn{background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.25)!important;color:#fff!important}
.vt-customer-panel .logout-btn:hover{background:rgba(255,255,255,.2)!important}
.vt-customer-panel .vt-bell-btn{background:#fff!important;color:var(--vt-brand)!important;border:none!important}

.vt-customer-panel .antique-tabs-wrapper{
  position:sticky;top:10px;z-index:90;
  display:flex!important;gap:7px!important;align-items:center!important;
  padding:8px!important;margin:0 0 20px!important;
  background:rgba(255,255,255,.94)!important;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1px solid var(--vt-border)!important;border-radius:16px!important;
  box-shadow:0 8px 22px rgba(20,47,41,.07)!important;
}
.vt-customer-panel .antique-tab-button{
  min-height:42px!important;padding:0 16px!important;border-radius:11px!important;
  border:1px solid transparent!important;background:transparent!important;
  color:#52605c!important;font-size:13px!important;font-weight:800!important;white-space:nowrap;
}
.vt-customer-panel .antique-tab-button:hover{background:var(--vt-brand-soft)!important;color:var(--vt-brand)!important}
.vt-customer-panel .antique-tab-button.active{
  background:var(--vt-brand)!important;color:#fff!important;border-color:var(--vt-brand)!important;
  box-shadow:0 6px 15px rgba(11,65,56,.18)!important;
}
.vt-customer-panel .antique-tab-content{animation:vtPanelFade .22s ease}
@keyframes vtPanelFade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}

.vt-customer-panel .card,
.vt-customer-panel .request-form-card,
.vt-customer-panel .profile-card{
  background:#fff!important;border:1px solid var(--vt-border)!important;
  border-radius:18px!important;box-shadow:0 9px 26px rgba(23,50,44,.055)!important;
  padding:20px!important;margin-bottom:16px!important;
}
.vt-customer-panel .card h2,
.vt-customer-panel .card h3{color:var(--vt-ink)!important;font-weight:900!important}
.vt-customer-panel .card-container{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;margin-bottom:18px!important;
}
.vt-customer-panel .card-container .card{
  margin:0!important;min-width:0!important;text-align:right!important;
  position:relative;overflow:hidden;transition:.2s ease;
}
.vt-customer-panel .card-container .card:before{
  content:"";position:absolute;right:0;top:0;bottom:0;width:4px;background:var(--vt-gold);
}
.vt-customer-panel .card-container a.card:hover{transform:translateY(-2px);box-shadow:var(--vt-shadow)!important}
.vt-customer-panel .card-container .card h3{font-size:13px!important;color:var(--vt-muted)!important;margin:0 0 12px!important}
.vt-customer-panel .stat-number{font-size:28px!important;color:var(--vt-brand)!important;font-weight:900!important;margin:0!important}

.vt-customer-panel .chart-container{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;margin-bottom:18px!important;
}
.vt-customer-panel .chart-card{min-width:0!important;height:350px!important;position:relative!important;padding-bottom:18px!important}
.vt-customer-panel .chart-card h3{margin:0 0 10px!important;font-size:14px!important}
.vt-customer-panel .chart-card canvas{display:block!important;width:100%!important;height:270px!important;max-height:270px!important}

.vt-customer-panel input[type=text],
.vt-customer-panel input[type=email],
.vt-customer-panel input[type=tel],
.vt-customer-panel input[type=password],
.vt-customer-panel input[type=number],
.vt-customer-panel input[type=url],
.vt-customer-panel select,
.vt-customer-panel textarea{
  width:100%!important;border:1.5px solid var(--vt-border)!important;border-radius:11px!important;
  background:#fbfcfc!important;color:var(--vt-ink)!important;padding:11px 13px!important;
  box-shadow:none!important;outline:none!important;transition:.18s ease;
}
.vt-customer-panel input:focus,
.vt-customer-panel select:focus,
.vt-customer-panel textarea:focus{
  border-color:var(--vt-brand)!important;background:#fff!important;
  box-shadow:0 0 0 3px rgba(11,65,56,.09)!important;
}
.vt-customer-panel .button,
.vt-customer-panel button[type=submit]{border-radius:10px!important;font-weight:800!important}
.vt-customer-panel .button-primary,
.vt-customer-panel button[type=submit]:not(.button-secondary){background:var(--vt-brand)!important;border-color:var(--vt-brand)!important;color:#fff!important}

/* Payment result: compact inline banner, never a page-cover overlay */
.vt-payment-notice{
  display:flex;align-items:flex-start;gap:12px;margin:0 0 18px;padding:15px 17px;
  border-radius:14px;background:#fff;border:1px solid var(--vt-border);box-shadow:0 7px 18px rgba(17,46,39,.06)
}
.vt-payment-notice__icon{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex:0 0 38px;font-size:19px}
.vt-payment-notice--success{border-right:4px solid var(--vt-success)}
.vt-payment-notice--success .vt-payment-notice__icon{background:#e6f7f1;color:var(--vt-success)}
.vt-payment-notice--error{border-right:4px solid var(--vt-danger)}
.vt-payment-notice--error .vt-payment-notice__icon{background:#fff0ee;color:var(--vt-danger)}
.vt-payment-notice--warning{border-right:4px solid var(--vt-warning)}
.vt-payment-notice--warning .vt-payment-notice__icon{background:#fff7e5;color:var(--vt-warning)}
.vt-payment-notice__body{min-width:0;flex:1}
.vt-payment-notice__body strong{display:block;color:var(--vt-ink);font-size:14px;margin-bottom:3px}
.vt-payment-notice__body p{margin:0;color:var(--vt-muted);font-size:13px;line-height:1.8}
.vt-payment-notice__action{align-self:center;white-space:nowrap;background:var(--vt-brand);color:#fff!important;text-decoration:none!important;padding:9px 13px;border-radius:9px;font-size:12px;font-weight:800}

/* Request type badges */
.vt-request-type-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap}
.vt-request-type-badge--external{background:#e9f6f2;color:#075c47;border:1px solid #b8ded3}
.vt-request-type-badge--manual{background:#f4f4f5;color:#52525b;border:1px solid #dedee2}

/* ─────────────────────────────────────────────────────────
   External auction product card and gallery
───────────────────────────────────────────────────────── */
.vt-external-product-card{
  position:relative;margin:0 0 20px!important;padding:18px!important;
  border:1px solid #dce6e2!important;border-radius:18px!important;
  background:linear-gradient(180deg,#fff,#fbfdfc)!important;
  box-shadow:0 12px 30px rgba(23,52,45,.07)!important;overflow:hidden;
}
.vt-external-product-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--vt-brand),var(--vt-gold))}
.vt-external-product-card__badge{position:static!important;display:inline-flex!important;margin:0 0 14px!important;background:var(--vt-brand-soft)!important;color:var(--vt-brand)!important;border:1px solid #c7ddd6!important}
.vt-external-product-card__layout{display:grid!important;grid-template-columns:minmax(220px,300px) minmax(0,1fr)!important;gap:22px!important;align-items:start!important}
.vt-external-product-card__media{min-width:0}
.vt-external-product-card__image{aspect-ratio:1/1!important;border-radius:14px!important;border:1px solid var(--vt-border)!important;background:#f4f6f5!important;overflow:hidden!important}
.vt-external-product-card__image img{width:100%!important;height:100%!important;object-fit:contain!important;background:#fff!important}
.vt-external-product-card__gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:8px}
.vt-external-product-card__thumb{display:block;aspect-ratio:1/1;border:1px solid var(--vt-border);border-radius:9px;overflow:hidden;background:#fff}
.vt-external-product-card__thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:.2s ease}
.vt-external-product-card__thumb:hover img{transform:scale(1.05)}
.vt-external-product-card__content h3{font-size:21px!important;line-height:1.65!important;margin:0 0 12px!important;color:var(--vt-ink)!important}
.vt-external-product-card__meta{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
.vt-external-product-card__meta-item{background:#f7faf9!important;border:1px solid #e3ebe8!important;border-radius:11px!important;padding:10px 11px!important}
.vt-external-product-card__meta-item span{color:#7b8884!important;font-size:11px!important;margin-bottom:4px!important}
.vt-external-product-card__meta-item strong{color:#26332f!important;font-size:13px!important;line-height:1.6!important}
.vt-external-product-card__attributes{margin-top:12px;padding:12px;border-radius:12px;background:var(--vt-gold-soft);border:1px solid #edd8b5}
.vt-external-product-card__attributes-title{font-size:12px;font-weight:900;color:#72501c;margin-bottom:8px}
.vt-external-product-card__attributes-list{display:flex;flex-wrap:wrap;gap:7px}
.vt-external-product-card__attribute{font-size:11px;color:#6a4c20;background:#fff;padding:5px 8px;border-radius:8px;border:1px solid #ead6b5}
.vt-external-product-card__actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.vt-external-product-card__link{margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:0 16px!important;border-radius:10px!important;background:var(--vt-brand)!important;color:#fff!important;font-size:13px!important;font-weight:900!important;text-decoration:none!important}
.vt-external-product-card__link--ghost{background:#fff!important;color:var(--vt-brand)!important;border:1px solid #c7d8d3!important}

/* ─────────────────────────────────────────────────────────
   Password recovery redesign
───────────────────────────────────────────────────────── */
#vt-recovery.vt-auth-page{min-height:calc(100vh - 80px);padding:32px 14px;background:radial-gradient(circle at top right,rgba(199,154,82,.12),transparent 30%),#f6f7f6}
#vt-recovery .vt-auth-card{max-width:470px;border:1px solid var(--vt-border);box-shadow:0 20px 55px rgba(20,48,41,.12)}
#vt-recovery .vt-auth-header{padding-top:30px}
#vt-recovery .vt-brand-circle{background:linear-gradient(135deg,var(--vt-gold-soft),#f0d6a8);color:var(--vt-brand)}
#vt-recovery .vt-ap-dot.active{background:var(--vt-brand);border-color:var(--vt-brand)}
#vt-recovery .vt-ap-line.done,#vt-recovery .vt-ap-dot.done{background:var(--vt-gold);border-color:var(--vt-gold)}
#vt-recovery .vt-input:focus,#vt-recovery .vt-otp-box:focus{border-color:var(--vt-brand);box-shadow:0 0 0 3px rgba(11,65,56,.1)}
#vt-recovery .vt-send-btn{border-color:var(--vt-brand);color:var(--vt-brand)}
#vt-recovery .vt-send-btn:hover:not(:disabled){background:var(--vt-brand);color:#fff}
#vt-recovery .vt-btn{background:linear-gradient(135deg,var(--vt-brand-2),var(--vt-brand));box-shadow:0 6px 18px rgba(11,65,56,.22)}
#vt-recovery .vt-auth-footer a{color:var(--vt-brand)}

/* ─────────────────────────────────────────────────────────
   Admin + expert panel responsive hardening
───────────────────────────────────────────────────────── */
.vt-admin-page,
.wrap[class*="antique"],
.wrap[class*="vatamam"],
.antique-expert-panel{max-width:100%;box-sizing:border-box}
.wrap[class*="antique"] .wp-list-table,
.wrap[class*="vatamam"] .wp-list-table,
.antique-expert-panel .wp-list-table{border-collapse:separate;border-spacing:0;border:1px solid var(--vt-border);border-radius:13px;overflow:hidden;background:#fff}
.wrap[class*="antique"] .wp-list-table th,
.wrap[class*="vatamam"] .wp-list-table th,
.antique-expert-panel .wp-list-table th{background:#f5f8f7;color:#43524e;font-weight:800;padding:12px 10px}
.wrap[class*="antique"] .wp-list-table td,
.wrap[class*="vatamam"] .wp-list-table td,
.antique-expert-panel .wp-list-table td{padding:11px 10px;vertical-align:middle;overflow-wrap:anywhere}
.wrap[class*="antique"] .button,
.wrap[class*="vatamam"] .button,
.antique-expert-panel .button{border-radius:8px}

@media(max-width:1100px){
  .vt-external-product-card__meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .vt-customer-panel .card-container{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:782px){
  body .wrap.antique-user-panel.vt-customer-panel{padding:14px!important;border-radius:0!important;min-height:100vh}
  .vt-customer-panel .antique-welcome-card{grid-template-columns:auto 1fr!important;padding:18px!important;border-radius:17px!important}
  .vt-customer-panel .logout-section{grid-column:1/-1;width:100%;justify-content:flex-start!important}
  .vt-customer-panel .logout-section>*{flex:1}
  .vt-customer-panel .antique-tabs-wrapper{top:0;border-radius:12px!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none}
  .vt-customer-panel .antique-tabs-wrapper::-webkit-scrollbar{display:none}
  .vt-customer-panel .antique-tab-button{flex:0 0 auto!important}
  .vt-customer-panel .card-container{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .vt-customer-panel .chart-container{grid-template-columns:1fr!important}
  .vt-customer-panel .chart-card{height:320px!important}
  .vt-customer-panel .chart-card canvas{height:245px!important;max-height:245px!important}
  .vt-external-product-card__layout{grid-template-columns:1fr!important}
  .vt-external-product-card__media{max-width:420px;width:100%;margin:0 auto}
  .vt-external-product-card__meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .vt-payment-notice{flex-wrap:wrap}
  .vt-payment-notice__action{width:100%;text-align:center}

  /* WP admin tables become readable cards on mobile */
  .wrap[class*="antique"] .modern-table thead,
  .wrap[class*="vatamam"] .modern-table thead,
  .antique-expert-panel .modern-table thead{display:none!important}
  .wrap[class*="antique"] .modern-table tbody,
  .wrap[class*="vatamam"] .modern-table tbody,
  .antique-expert-panel .modern-table tbody{display:block!important}
  .wrap[class*="antique"] .modern-table tr,
  .wrap[class*="vatamam"] .modern-table tr,
  .antique-expert-panel .modern-table tr{display:block!important;margin:0 0 12px!important;padding:12px!important;border:1px solid var(--vt-border)!important;border-radius:12px!important;background:#fff!important;box-shadow:0 5px 14px rgba(18,46,40,.05)!important}
  .wrap[class*="antique"] .modern-table td,
  .wrap[class*="vatamam"] .modern-table td,
  .antique-expert-panel .modern-table td{display:flex!important;align-items:flex-start!important;gap:10px!important;width:100%!important;max-width:none!important;min-width:0!important;padding:8px 0!important;border:0!important;border-bottom:1px solid #eef2f1!important}
  .wrap[class*="antique"] .modern-table td:last-child,
  .wrap[class*="vatamam"] .modern-table td:last-child,
  .antique-expert-panel .modern-table td:last-child{border-bottom:0!important;flex-wrap:wrap!important}
  .wrap[class*="antique"] .modern-table td[data-label]:before,
  .wrap[class*="vatamam"] .modern-table td[data-label]:before,
  .antique-expert-panel .modern-table td[data-label]:before{content:attr(data-label);min-width:92px;flex:0 0 92px;font-size:11px;font-weight:900;color:#74817d}
  .wrap[class*="antique"] .modern-table td .button,
  .wrap[class*="vatamam"] .modern-table td .button,
  .antique-expert-panel .modern-table td .button{flex:1;min-width:100px;text-align:center}
}
@media(max-width:520px){
  .vt-panel-gate{padding:22px 12px}
  .vt-panel-gate__card{padding:28px 18px;border-radius:18px}
  .vt-panel-gate__actions{flex-direction:column}
  .vt-panel-gate__button{width:100%}
  .vt-customer-panel .antique-welcome-card{grid-template-columns:1fr!important;text-align:center}
  .vt-customer-panel .antique-welcome-card .avatar{margin:auto}
  .vt-customer-panel .logout-section{flex-direction:column}
  .vt-customer-panel .card-container{grid-template-columns:1fr!important}
  .vt-customer-panel .card{padding:15px!important}
  .vt-external-product-card{padding:13px!important}
  .vt-external-product-card__meta{grid-template-columns:1fr!important}
  .vt-external-product-card__gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
  #vt-recovery .vt-auth-body{padding:0 15px 18px}
  #vt-recovery .vt-otp-box{width:40px;height:50px;font-size:20px}
}

/* Stable selectors for every Vatamam admin screen. */
body.vt-plugin-admin #wpbody-content{box-sizing:border-box;overflow-x:hidden}
body.vt-plugin-admin #wpbody-content>.wrap{max-width:100%;box-sizing:border-box;margin-left:0}
body.vt-plugin-admin .wp-list-table{border-collapse:separate;border-spacing:0;border:1px solid var(--vt-border);border-radius:13px;overflow:hidden;background:#fff}
body.vt-plugin-admin .wp-list-table th{background:#f5f8f7;color:#43524e;font-weight:800;padding:12px 10px}
body.vt-plugin-admin .wp-list-table td{padding:11px 10px;vertical-align:middle;overflow-wrap:anywhere}
body.vt-plugin-admin .button{border-radius:8px}
body.vt-plugin-admin img,body.vt-plugin-admin video{max-width:100%;height:auto}
body.vt-plugin-admin .form-table{width:100%;table-layout:auto}
body.vt-plugin-admin input[type=text],body.vt-plugin-admin input[type=email],body.vt-plugin-admin input[type=tel],body.vt-plugin-admin input[type=url],body.vt-plugin-admin input[type=number],body.vt-plugin-admin input[type=password],body.vt-plugin-admin select,body.vt-plugin-admin textarea{max-width:100%;box-sizing:border-box}

/* Expert dashboard and chart visibility on narrow screens. */
.antique-expert-panel .chart-container{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:stretch!important}
.antique-expert-panel .chart-card{min-width:0!important;height:360px!important;position:relative!important;overflow:hidden!important}
.antique-expert-panel .chart-card canvas{display:block!important;width:100%!important;height:280px!important;max-height:280px!important}
.antique-expert-panel .card-container{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:13px!important}
.antique-expert-panel .antique-tabs-wrapper{overflow-x:auto!important;scrollbar-width:none}
.antique-expert-panel .antique-tabs-wrapper::-webkit-scrollbar{display:none}
.antique-expert-panel .antique-tab-button{white-space:nowrap!important;flex:0 0 auto!important}
.antique-expert-panel .form-row{max-width:100%;box-sizing:border-box}

@media(max-width:782px){
  body.vt-plugin-admin #wpbody-content{padding-left:10px!important;padding-right:10px!important}
  body.vt-plugin-admin #wpbody-content>.wrap{margin:10px 0 0!important;padding:0!important}
  body.vt-plugin-admin .form-table,body.vt-plugin-admin .form-table tbody,body.vt-plugin-admin .form-table tr,body.vt-plugin-admin .form-table th,body.vt-plugin-admin .form-table td{display:block!important;width:100%!important;box-sizing:border-box!important}
  body.vt-plugin-admin .form-table th{padding:12px 0 5px!important;background:transparent!important;border:0!important}
  body.vt-plugin-admin .form-table td{padding:0 0 14px!important;border:0!important}
  body.vt-plugin-admin .tablenav{height:auto!important;display:flex!important;gap:8px!important;flex-wrap:wrap!important;align-items:center!important}
  body.vt-plugin-admin .tablenav .alignleft,body.vt-plugin-admin .tablenav .alignright{float:none!important;margin:0!important;max-width:100%!important}
  body.vt-plugin-admin .search-box{position:static!important;float:none!important;display:flex!important;gap:6px!important;max-width:100%!important}
  body.vt-plugin-admin .search-box input[type=search]{min-width:0!important;max-width:100%!important;flex:1!important}

  body.vt-plugin-admin .modern-table thead{display:none!important}
  body.vt-plugin-admin .modern-table tbody{display:block!important}
  body.vt-plugin-admin .modern-table tr{display:block!important;margin:0 0 12px!important;padding:12px!important;border:1px solid var(--vt-border)!important;border-radius:12px!important;background:#fff!important;box-shadow:0 5px 14px rgba(18,46,40,.05)!important}
  body.vt-plugin-admin .modern-table td{display:flex!important;align-items:flex-start!important;gap:10px!important;width:100%!important;max-width:none!important;min-width:0!important;padding:8px 0!important;border:0!important;border-bottom:1px solid #eef2f1!important;box-sizing:border-box!important}
  body.vt-plugin-admin .modern-table td:last-child{border-bottom:0!important;flex-wrap:wrap!important}
  body.vt-plugin-admin .modern-table td[data-label]:before{content:attr(data-label);min-width:92px;flex:0 0 92px;font-size:11px;font-weight:900;color:#74817d}
  body.vt-plugin-admin .modern-table td .button{flex:1;min-width:100px;text-align:center}

  .antique-expert-panel{padding:12px!important;margin:0!important;max-width:100%!important;overflow:hidden!important}
  .antique-expert-panel .antique-welcome-card{padding:17px!important;border-radius:16px!important;display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:12px!important}
  .antique-expert-panel .logout-section{grid-column:1/-1!important;width:100%!important;display:flex!important;gap:8px!important}
  .antique-expert-panel .logout-section>*{flex:1!important}
  .antique-expert-panel .antique-tabs-wrapper{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;padding:7px!important;position:sticky!important;top:0!important;z-index:80!important;background:rgba(255,255,255,.96)!important}
  .antique-expert-panel .card-container{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .antique-expert-panel .chart-container{grid-template-columns:1fr!important}
  .antique-expert-panel .chart-card{height:330px!important;padding:16px!important}
  .antique-expert-panel .chart-card canvas{height:250px!important;max-height:250px!important}
  .antique-expert-panel [style*="grid-template-columns:1fr 1fr 1fr"]{grid-template-columns:1fr!important}
  .antique-expert-panel [style*="minmax(300px"]{grid-template-columns:1fr!important}
}

@media(max-width:520px){
  .antique-expert-panel .antique-welcome-card{grid-template-columns:1fr!important;text-align:center!important}
  .antique-expert-panel .antique-welcome-card .avatar{margin:auto!important}
  .antique-expert-panel .logout-section{flex-direction:column!important}
  .antique-expert-panel .card-container{grid-template-columns:1fr!important}
  .antique-expert-panel .chart-card{height:305px!important}
  .antique-expert-panel .chart-card canvas{height:225px!important;max-height:225px!important}
}

/* ═══════════════════════════════════════════════════════
   Admin font-size overrides (audit patch — Task 3)
   Scoped strictly to plugin admin pages via body.vt-plugin-admin
   so the rest of the WordPress admin is unaffected. Sizes only —
   padding untouched so table rows do not grow unnecessarily tall.
═══════════════════════════════════════════════════════ */
body.vt-plugin-admin #wpbody-content .wrap{font-size:14px;}
body.vt-plugin-admin #wpbody-content .wrap p,
body.vt-plugin-admin #wpbody-content .wrap li,
body.vt-plugin-admin #wpbody-content .wrap label,
body.vt-plugin-admin #wpbody-content .wrap td,
body.vt-plugin-admin #wpbody-content .wrap .vtc-tbl td{font-size:14px;}
body.vt-plugin-admin #wpbody-content .wrap table.wp-list-table,
body.vt-plugin-admin #wpbody-content .wrap .vtc-tbl,
body.vt-plugin-admin #wpbody-content .wrap .modern-table{font-size:13.75px;}
body.vt-plugin-admin #wpbody-content .wrap th,
body.vt-plugin-admin #wpbody-content .wrap .vtc-tbl th{font-size:13.75px;}
body.vt-plugin-admin #wpbody-content .wrap .button,
body.vt-plugin-admin #wpbody-content .wrap .vtcbtn,
body.vt-plugin-admin #wpbody-content .wrap .nav-tab,
body.vt-plugin-admin #wpbody-content .wrap .vtc-tab,
body.vt-plugin-admin #wpbody-content .wrap .vt-admin-notif-filter-btn{font-size:13.75px;}
body.vt-plugin-admin #wpbody-content .wrap .description,
body.vt-plugin-admin #wpbody-content .wrap .vtc-mt,
body.vt-plugin-admin #wpbody-content .wrap small{font-size:12px;}
body.vt-plugin-admin #wpbody-content .wrap .vtc-card-h h3,
body.vt-plugin-admin #wpbody-content .wrap .postbox h2,
body.vt-plugin-admin #wpbody-content .wrap .anc-title{font-size:15.5px;}
body.vt-plugin-admin #wpbody-content .wrap input[type=text],
body.vt-plugin-admin #wpbody-content .wrap input[type=email],
body.vt-plugin-admin #wpbody-content .wrap input[type=tel],
body.vt-plugin-admin #wpbody-content .wrap input[type=number],
body.vt-plugin-admin #wpbody-content .wrap input[type=password],
body.vt-plugin-admin #wpbody-content .wrap input[type=search],
body.vt-plugin-admin #wpbody-content .wrap select,
body.vt-plugin-admin #wpbody-content .wrap textarea,
body.vt-plugin-admin #wpbody-content .wrap .vtc-fi,
body.vt-plugin-admin #wpbody-content .wrap .vtc-search{font-size:14px;}
