/* Tickexpa Visual Theme V6 — contraste consistente claro/oscuro */
html{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}

html[data-theme="light"]{
  --tx-bg:#F7F9FC;--tx-bg-soft:#F1F4F9;--tx-surface:#FFFFFF;--tx-surface-2:#F7F9FC;
  --tx-surface-3:#EEF2F7;--tx-text:#0D1B3D;--tx-text-2:#34435E;--tx-muted:#68758C;
  --tx-border:#DDE4EE;--tx-border-strong:#CBD5E3;--tx-header:rgba(255,255,255,.96);
  --tx-footer:#F3F6FA;--tx-hover:#F1EDFF;--tx-shadow:0 12px 34px rgba(13,27,61,.08);--tx-input:#FFFFFF
}
html[data-theme="dark"]{
  --tx-bg:#071229;--tx-bg-soft:#09172F;--tx-surface:#0F1D3A;--tx-surface-2:#12213F;
  --tx-surface-3:#162744;--tx-text:#F7F9FF;--tx-text-2:#D7DFF0;--tx-muted:#9EABC3;
  --tx-border:#293A5A;--tx-border-strong:#3A4C6B;--tx-header:rgba(6,18,43,.97);
  --tx-footer:#071126;--tx-hover:#172846;--tx-shadow:0 14px 38px rgba(0,0,0,.24);--tx-input:#0A1731
}

body{background:var(--tx-bg)!important;color:var(--tx-text)!important}
body,.site-header,.panel,.eventcard,.stat,.footer,input,select,textarea,.btn,.category-chip,.ticket-option,.admin-toolbar a,.cards-list article{
  transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease
}
h1,h2,h3,h4,h5,h6,strong{color:var(--tx-text)!important}
p,li,td,.eventmeta{color:var(--tx-text-2)}
.muted,small,.field-help,.builder-caption{color:var(--tx-muted)!important}
a{color:var(--purple)}
hr{border-color:var(--tx-border)!important}

.site-header{
  background:var(--tx-header)!important;border-color:var(--tx-border)!important;
  box-shadow:0 8px 28px rgba(13,27,61,.06)!important;backdrop-filter:blur(14px)
}
.site-header .desktop-nav>a,.site-header .account-nav>a,.site-header .account-nav .linkbtn,.txp-role-trigger{color:var(--tx-text)!important}
.site-header .desktop-nav>a:hover,.site-header .desktop-nav>a.active,.site-header .account-nav>a:hover{color:var(--purple)!important}

.theme-toggle{
  width:39px;height:39px;display:inline-grid;place-items:center;flex:0 0 39px;margin:0 5px 0 auto;padding:0;
  border:1px solid var(--tx-border);border-radius:12px;background:var(--tx-surface);color:var(--tx-text);cursor:pointer;
  box-shadow:0 5px 16px rgba(13,27,61,.06)
}
.theme-toggle:hover{transform:translateY(-1px);border-color:var(--purple);box-shadow:var(--tx-shadow)}
.theme-toggle:focus-visible{outline:3px solid rgba(123,45,255,.25);outline-offset:2px}
.theme-toggle svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.menu-toggle{background:var(--tx-surface)!important;border-color:var(--tx-border)!important}
.menu-toggle span{background:var(--tx-text)!important}

.panel,.eventcard,.eventbody,.ordercard,.stat,.category-chip,.authbox,.empty,.notice,.checkoutbar,.facts,.ticket-option,
.cards-list article,.admin-toolbar a,.level-card,.brand-preview,.field-manager-card,.technical-note,.provider-card,.provider-config,
.checkline,.settings-summary>div,.txp-venue-shell,.txp-zone-card,.txp-admin-addbox,.txp-admin-promo-item,.txp-admin-brand-item{
  background:var(--tx-surface)!important;border-color:var(--tx-border)!important;color:var(--tx-text)!important;box-shadow:var(--tx-shadow)
}
.home-hero,.featured-section,.organizer-section,.category-strip{background:var(--tx-bg)!important}
.txp-brand-strip{background:var(--tx-bg-soft)!important}
.txp-brand-card{background:var(--tx-surface)!important;border-color:var(--tx-border)!important}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea,.searchbar input,.buy-form input,
.provider-config input,.provider-config select,.checkout-field input,.checkout-field select,.checkout-field textarea,
.field-manager-grid input,.field-manager-grid select,.field-manager-grid textarea{
  background:var(--tx-input)!important;color:var(--tx-text)!important;border-color:var(--tx-border-strong)!important
}
input::placeholder,textarea::placeholder{color:var(--tx-muted)!important}
select option{background:var(--tx-input);color:var(--tx-text)}
label,.provider-config label,.checkout-field,.field-manager-grid label{color:var(--tx-text-2)!important}

table{color:var(--tx-text)!important}
th{background:var(--tx-bg-soft)!important;color:var(--tx-muted)!important;border-color:var(--tx-border)!important}
td{background:var(--tx-surface)!important;color:var(--tx-text-2)!important;border-color:var(--tx-border)!important}
tr:hover td{background:var(--tx-hover)!important}

.btn:not(.ghost){color:#fff!important}
.btn.ghost,.ghost,button.ghost,.light-button,.level-tab,.vd-template-grid button,.vd-tool-list button,.vd-secondary-btn,
.vd-level-list button,.vd-easy-add button,.vd-preset-item button,.vd-section-list button,.vd-zoom-controls button,
.txp-venue-toolbar button,.txp-venue-level-tabs button{
  background:var(--tx-surface)!important;color:var(--tx-text)!important;border-color:var(--tx-border-strong)!important
}
.btn.ghost:hover,.ghost:hover,button.ghost:hover,.admin-toolbar a:hover{
  color:var(--purple)!important;border-color:var(--purple)!important;background:var(--tx-hover)!important
}

html[data-theme="dark"] .status.verified,html[data-theme="dark"] .status.published,html[data-theme="dark"] .status.paid,html[data-theme="dark"] .status.valid{
  background:#0C2A25!important;border-color:#1B5E50!important;color:#76E6BE!important
}
html[data-theme="dark"] .status.pending,html[data-theme="dark"] .status.review,html[data-theme="dark"] .status.draft{
  background:#2B2412!important;border-color:#675226!important;color:#FFD779!important
}
html[data-theme="dark"] .status.suspended,html[data-theme="dark"] .status.cancelled,html[data-theme="dark"] .status.refunded{
  background:#321720!important;border-color:#713246!important;color:#FF9BAE!important
}

.footer{background:var(--tx-footer)!important;border-color:var(--tx-border)!important;color:var(--tx-muted)!important}
.footer strong{color:var(--tx-text)!important}
.footer a{color:var(--tx-text-2)!important}
.footer a:hover{color:var(--purple)!important}
.footer-bottom{border-color:var(--tx-border)!important}

.provider-title strong,.provider-config h3,.panama-methods strong,form[action="/admin/payments"]>h3,
form[action="/admin/payments"] .checkline strong{color:var(--tx-text)!important}
.method-list,.provider-config-head p,.panama-methods span{color:var(--tx-muted)!important}

.vd-page{background:var(--tx-bg)!important}
.vd-sidebar,.vd-center,.vd-inspector-empty,.vd-seat-quick,.vd-preset-empty{
  background:var(--tx-surface)!important;border-color:var(--tx-border)!important;color:var(--tx-text)!important
}
.vd-stage-wrap{background:radial-gradient(circle at 50% 15%,var(--tx-surface-3),var(--tx-bg-soft))!important}
.vd-canvas,.level-map,.section-builder{background-color:var(--tx-bg-soft)!important;border-color:var(--tx-border)!important}
.txp-pro-head,.txp-pro-levels,.txp-pro-legend,.txp-zone-card{
  background:var(--tx-surface)!important;border-color:var(--tx-border)!important;color:var(--tx-text)!important
}
.txp-pro-head h2,.txp-detail-head h3,.txp-zone-card h3{color:var(--tx-text)!important}
.txp-pro-actions button,.txp-pro-levels button,.txp-zone-close,.txp-zone-buy input{
  background:var(--tx-surface-2)!important;color:var(--tx-text)!important;border-color:var(--tx-border)!important
}

.txp-logo-dark{display:none!important}
html[data-theme="dark"] .txp-logo-light{display:none!important}
html[data-theme="dark"] .txp-logo-dark{display:block!important}

html:not(.theme-ready) *,html:not(.theme-ready) *::before,html:not(.theme-ready) *::after{transition:none!important}

@media(max-width:620px){
  .theme-toggle{width:36px;height:36px;flex-basis:36px;border-radius:10px;margin-right:6px}
  .theme-toggle svg{width:17px;height:17px}
}
