/* DirHas1 light-blue brand theme.
   Loaded last so every ZIP51 feature remains intact while the dashboard uses
   the new DirHas visual identity. */
:root{
  color-scheme:light;
  --bg:#e8f5ff;
  --panel:#ffffff;
  --panel2:#f4faff;
  --line:#c9dfef;
  --border:#c9dfef;
  --text:#10233f;
  --muted:#60758b;
  --accent:#6d3bff;
  --accent2:#2563eb;
  --shadow:0 18px 48px rgba(49,93,136,.15);
}

html,body{
  background:
    radial-gradient(circle at 82% 4%,rgba(109,59,255,.12),transparent 28%),
    radial-gradient(circle at 12% 92%,rgba(24,199,217,.15),transparent 30%),
    linear-gradient(145deg,#eff9ff 0%,#e3f3ff 52%,#dff1ff 100%);
  color:var(--text);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:linear-gradient(120deg,rgba(255,255,255,.38),transparent 44%);
  z-index:-1;
}

.brand-logo{display:block;width:auto;height:48px;max-width:100%;object-fit:contain;object-position:left center}
.auth-hero .brand-logo{height:66px;max-width:min(310px,78vw)}
.sidebar .brand-logo{height:43px;max-width:165px}
.logo{color:#101b35}

.auth{background:transparent}
.auth-hero{
  background:
    radial-gradient(circle at 18% 20%,rgba(109,59,255,.15),transparent 28%),
    linear-gradient(145deg,rgba(255,255,255,.82),rgba(215,239,255,.82));
  border-right:1px solid rgba(157,198,226,.58);
}
.auth-panel{background:rgba(226,243,255,.58)}
.auth-card{
  color:var(--text);
  background:rgba(255,255,255,.93);
  border-color:#c7deef;
  box-shadow:0 24px 70px rgba(39,84,130,.18);
}
.auth-card h2,.hero-copy h1{color:#10213d}
.hero-copy p{color:#526d87}
.pill{border-color:#bdd8ea;background:rgba(255,255,255,.74);color:#28435e}
.linkbtn{color:#5b35d5}

.shell{background:transparent}
.sidebar{
  background:rgba(232,246,255,.95);
  border-right-color:#bfd9eb;
  box-shadow:12px 0 36px rgba(65,105,145,.07);
}
.sidebar-head{border-bottom:1px solid rgba(190,218,236,.72);margin-bottom:10px}
.sidebar .logo{padding-bottom:14px}
.nav button{color:#405d78}
.nav button:hover{background:#f8fcff;color:#162b45}
.nav button.active{
  background:linear-gradient(90deg,#ffffff,#edf8ff);
  color:#192d48;
  box-shadow:inset 3px 0 #6d3bff,0 8px 22px rgba(60,103,145,.09);
}
.sidebar-foot{border-top-color:#bdd8e9}
.plan-chip{background:rgba(255,255,255,.82);border-color:#bfd8e8;color:#203650}
.mobile-nav-toggle{background:#fff;color:#203650;border-color:#bfd8e8}
.main{background:transparent}
.topbar h1,.section-head h2,.section-head h3{color:#142a45}

.card,.modal,.owner-simple-hero,.owner-quick-grid button,.hvs-panel,.tree-node{
  color:var(--text);
  background:rgba(255,255,255,.94);
  border-color:#c7ddeb;
  box-shadow:0 12px 34px rgba(48,91,132,.09);
}
.owner-simple-hero{
  background:radial-gradient(circle at 90% 10%,rgba(109,59,255,.16),transparent 36%),linear-gradient(145deg,#fff,#edf8ff);
}
.owner-quick-grid button,.hvs-panel,.tree-node{box-shadow:none}
.owner-section-tabs{border-bottom-color:#c5ddeb}
.owner-section-tabs button{color:#4c657e}
.owner-section-tabs button.active{background:linear-gradient(135deg,#6d3bff,#2563eb);color:#fff}

.input,textarea,select{
  background:#fff;
  color:#152c47;
  -webkit-text-fill-color:#152c47;
  border-color:#bcd5e7;
}
.input::placeholder,textarea::placeholder{color:#8aa0b4;-webkit-text-fill-color:#8aa0b4}
.input:focus,textarea:focus,select:focus{
  border-color:#6d3bff;
  box-shadow:0 0 0 3px rgba(109,59,255,.12);
}
.field label{color:#405c76}
.btn{background:#e8f2fa;color:#1e3852}
.btn-primary{background:linear-gradient(135deg,#6d3bff,#2563eb);color:#fff}
.btn-good{background:#15803d;color:#fff}
.btn-danger{background:#b42335;color:#fff}
.btn-ghost{background:rgba(255,255,255,.68);border-color:#bed6e7;color:#2c4964}
.badge{background:#dceaf5;color:#36536d}
.badge.purple{background:#eee9ff;color:#5c35c7}
.kbd,.code{background:#edf6fc;border-color:#c3dbea;color:#294c70}
.notice{background:#fff8e8;border-color:#efcf86;color:#7b5412}
.notice.good{background:#ecfdf5;border-color:#9dd9b7;color:#17613c}
.empty{color:#71869a}

.table-wrap{border-color:#c4dbea;background:#fff}
table{background:#fff}
th{background:#eaf5fc;color:#526e87}
th,td{border-bottom-color:#d7e8f3;color:#223d57}
tr:hover td{background:#f5fbff}
.modal-backdrop{background:rgba(27,50,78,.55)}
.toast{background:#132a47;color:#fff}

.aff-shell,.es-tabs,.es-content{
  color:var(--text);
  background:rgba(255,255,255,.9);
  border-color:#c5dceb;
}
.aff-top,.aff-tabs{border-color:#c5dceb}
.aff-tabs button{color:#58718a}
.aff-tabs button.active{color:#5c35d0;border-color:#6d3bff}
.aff-stats>div,.aff-quick li,.aff-product-meta,.aff-link-card,.aff-settings-grid .card,
.es-stats article,.es-quick li,.es-panel,.es-block,.es-composer>header,.es-composer-grid>aside,
.es-composer form>footer,.es-test-box,.es-tabs{
  background:#f7fbff;
  border-color:#c9dfed;
  color:#203b55;
}
.aff-stats b,.aff-product h3,.aff-link-card h3{color:#17314c}
.aff-stats span,.aff-stats small,.aff-quick li span,.aff-product-meta span{color:#6d8296}
.aff-image-preview{background:#edf7ff;border-color:#9fc8e2;color:#536f88}
.es-content{min-height:620px}
.es-tabs button{color:#58718a}
.es-tabs button.active{background:linear-gradient(135deg,#6d3bff,#2563eb);color:#fff}
.es-composer-grid>aside{border-left-color:#c9dfed}
.es-block-head{background:#eaf4fb}
.es-block-tools button{background:#fff;color:#39536b;border-color:#c6dbea}
.es-csv-drop{background:#f1edff;border-color:#9879e8}
.es-floating-progress{background:#fff;border-color:#bfd8e8;box-shadow:var(--shadow)}

.growth-modal,.growth-stats article,.growth-ab-card,.growth-body details,.growth-share-preview,.growth-check{
  background:#fff;
  color:var(--text);
  border-color:#c6ddeb;
}
.growth-head,.growth-tabs,.growth-foot{border-color:#c6ddeb}
.growth-tabs button.active{background:#eee9ff;color:#5c35c7}

.hvs-library button,.hvs-block-card{
  background:#f3f9fd;
  color:#28455f;
  border-color:#c5dbea;
}
.hvs-block-card.active{border-color:#6d3bff}
.hvs-head,.hvs-footer{border-color:#c5dbea}

.hase-admin-caption,.hase-admin-panel{
  background:rgba(255,255,255,.96);
  border-color:#bed8e9;
  box-shadow:0 18px 50px rgba(35,70,105,.2);
}
.hase-admin-caption b,.hase-admin-link,.hase-admin-panel-head button{color:#17314a}
.hase-admin-panel-head small{color:#6a8197}
.hase-admin-link:hover{background:#edf7fd}

.hl-sec-hero{
  background:radial-gradient(circle at 90% 0,rgba(109,59,255,.16),transparent 36%),linear-gradient(135deg,#ffffff,#eaf6ff);
  color:#15314e;
  border:1px solid #c6deed;
}
.hl-sec-hero p,.hl-sec-limit span{color:#62798f}

.ai40-modal,.ai41-modal,.ai43-modal,.ai45-modal,.ai46-modal{box-shadow:0 30px 90px rgba(32,63,97,.3)}
.ai40-top,.ai41-head,.ai43-head,.ai45-head{
  background:linear-gradient(115deg,#fff 0%,#f0f7ff 55%,#e7f4ff 100%);
}

@media(max-width:820px){
  .auth-hero{border-right:0;border-bottom:1px solid #c4dcec}
  .sidebar{box-shadow:16px 0 45px rgba(43,78,112,.18)}
  .brand-logo{height:41px}
  .auth-hero .brand-logo{height:54px}
}
