/* QudratCode V5 shared shell safeguards — no blanket page repainting. */
html{color-scheme:light;scroll-behavior:smooth}
html,body,button,input,select,textarea,optgroup{font-family:"Cairo",sans-serif}
body{color:var(--qc-text,#2f3b4a)}
body a{text-decoration:none}
.qc-unified-dashboard-sidebar{background:rgba(255,255,255,.98);border-color:rgba(79,172,254,.16);box-shadow:-12px 0 36px rgba(36,56,75,.08)}
.qc-unified-nav a,.qc-unified-nav button{font-family:"Cairo",sans-serif;color:var(--qc-dark,#24384b)}
.qc-unified-nav a:hover,.qc-unified-nav a.active,.qc-unified-nav button:hover{color:var(--qc-primary,#4facfe);background:linear-gradient(135deg,rgba(79,172,254,.13),rgba(0,242,254,.08))}
body:not(.qc-home-reference) :where(.btn-primary,.btn-main,.qc-btn-primary,.primary-btn,.header-btn.primary,.semantic-search-btn,.qc-global-register,.btn-login,.btn-register){color:#fff!important;background:linear-gradient(135deg,var(--qc-primary,#4facfe),var(--qc-secondary,#00f2fe))!important;border-color:transparent!important}
body:not(.qc-home-reference) :where(.btn-soft,.qc-btn-soft,.btn-secondary,.btn-outline-primary,.header-btn.soft,.header-btn.secondary,.semantic-clear-btn,.qc-global-login,.qc-btn-muted){color:var(--qc-deep,#244966)!important;background:linear-gradient(135deg,rgba(79,172,254,.10),rgba(0,242,254,.055))!important;border:1px solid rgba(79,172,254,.24)!important}
body:not(.qc-home-reference) :where(.btn-white,.btn-light,.btn-outline-secondary,.header-btn.white,.home-top-btn,.cancel-btn){color:var(--qc-deep,#244966)!important;background:#fff!important;border:1px solid rgba(79,172,254,.20)!important}
body:not(.qc-home-reference) :where(.btn-danger,.qc-btn-danger,.danger-btn,.delete-btn){color:#fff!important;background:var(--qc-danger,#dc3545)!important;border-color:var(--qc-danger,#dc3545)!important}
body:not(.qc-home-reference) :where(.btn-outline-danger,.btn-danger-soft,.soft-danger-button){color:#a71f30!important;background:rgba(220,53,69,.10)!important;border:1px solid rgba(220,53,69,.25)!important}
body:not(.qc-home-reference) :where(.modal-content,.confirm-card,.qc-confirm-card,.dialog-card,.popup-content,.overlay-card){background:#fff!important;color:var(--qc-text,#2f3b4a)!important;border:1px solid rgba(79,172,254,.18)!important;border-radius:24px!important;box-shadow:0 26px 70px rgba(31,55,82,.15)!important}
.qc-auth-layout{background:radial-gradient(circle at top right,rgba(79,172,254,.20),transparent 32%),radial-gradient(circle at bottom left,rgba(0,242,254,.13),transparent 32%),#f4f8fc!important}
body img{max-width:100%}

/* Keep uploaded platform logo visually as an icon, not a free-size image */
.brand-icon.has-logo img,
.qc-global-brand-logo img,
.qc-home-footer-logo img,
.qc-brand-icon-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: right center !important;
    border-radius: 14px !important;
    padding: 3px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}
