/* Original Twenty-One layout, new theme switch and non-blocking animation layer. */
@media screen {
html[data-serhat-theme="dark"] { color-scheme: dark; background: #101a29; }
html[data-serhat-theme="light"] { color-scheme: light; }
html[data-serhat-theme="dark"] body, html[data-serhat-theme="dark"] body.primary-bg-color { background:#101a29!important;color:#e5edf8!important; }
html[data-serhat-theme="dark"] { --sh-ink:#e5edf8;--sh-muted:#afc0d6;--sh-line:#34465e;--sh-soft:#223248;--sh-blue:#8bbdff; }
html[data-serhat-theme="dark"] #main-body,html[data-serhat-theme="dark"] .primary-content { background-color:transparent!important;color:#e5edf8; }
html[data-serhat-theme="dark"] #header,html[data-serhat-theme="dark"] #header .sh-brandbar,html[data-serhat-theme="dark"] #footer.sh-footer,html[data-serhat-theme="dark"] #footer.sh-footer .sh-contact-strip { background:#192638!important;color:#e5edf8!important;border-color:#34465e!important; }
html[data-serhat-theme="dark"] #header .navbar-brand img.logo-img,html[data-serhat-theme="dark"] #footer .sh-footer-logo,html[data-serhat-theme="dark"] .invoice-container img[title] { background:#f8fafc;border-radius:7px;padding:5px; }
html[data-serhat-theme="dark"] #header .sh-action {background:#21334c!important;border-color:#3b5271!important;color:#c5ddff!important;}
html[data-serhat-theme="dark"] #header .sh-action:hover {background:#2a456a!important;color:#fff!important;}
html[data-serhat-theme="dark"] #footer .sh-contact-value,html[data-serhat-theme="dark"] #footer .sh-footer-heading {color:#cfe2ff!important;}
html[data-serhat-theme="dark"] #footer .sh-contact-label,html[data-serhat-theme="dark"] #footer .sh-footer-description,html[data-serhat-theme="dark"] #footer .sh-footer-links a,html[data-serhat-theme="dark"] #footer .sh-footer-bottom-links a {color:#afc0d6!important;}
html[data-serhat-theme="dark"] :is(.card,.modal-content,.dropdown-menu,.popover,.list-group-item,.panel,.well,.md-editor,.md-header,.md-footer,.md-preview,.bg-white,.bg-light,.dataTables_wrapper .dataTables_paginate .paginate_button) {border-color:#34465e!important;}
html[data-serhat-theme="dark"] :is(.bg-white,.bg-light) {background:#192638!important;color:#e5edf8!important;}
html[data-serhat-theme="dark"] :is(input.form-control,textarea.form-control,select.form-control,.custom-select,.custom-file-label,.input-group-text,.md-editor textarea) {background:#131f30!important;color:#e5edf8!important;border-color:#3b4e69!important;}
html[data-serhat-theme="dark"] :is(input,textarea)::placeholder {color:#9eafc6!important;opacity:1;}
html[data-serhat-theme="dark"] input:-webkit-autofill {box-shadow:0 0 0 1000px #131f30 inset!important;-webkit-text-fill-color:#e5edf8!important;caret-color:#e5edf8;}
html[data-serhat-theme="dark"] :is(.text-muted,.text-secondary,.help-block,.form-text,.breadcrumb-item.active) {color:#afc0d6!important;}
html[data-serhat-theme="dark"] :is(.text-dark,.text-body) {color:#e5edf8!important;}
html[data-serhat-theme="dark"] .alert-info,html[data-serhat-theme="dark"] .alert-primary {background:#203858!important;color:#c5dfff!important;border-color:#42638d!important;}
html[data-serhat-theme="dark"] .alert-success {background:#193a32!important;color:#a5e7c8!important;border-color:#376a56!important;}
html[data-serhat-theme="dark"] .alert-warning {background:#392e20!important;color:#ffdb9a!important;border-color:#806033!important;}
html[data-serhat-theme="dark"] .alert-danger {background:#412832!important;color:#ffc0cb!important;border-color:#854655!important;}
html[data-serhat-theme="dark"] .alert :is(a,strong,.alert-link) {color:inherit!important;}
html[data-serhat-theme="dark"] .badge-light {background:#263950!important;color:#d6e7ff!important;}
html[data-serhat-theme="dark"] :is(.badge-warning,.btn-warning) {background:#735019!important;color:#fff1ce!important;border-color:#916a2e!important;}
html[data-serhat-theme="dark"] .product-details .product-icon {background:#263950!important;}
html[data-serhat-theme="dark"] .product-details .product-icon .fa-circle {color:#3a577b!important;}
html[data-serhat-theme="dark"] :is(.sh-ticket-white .posted-by-name,.serhat-price-main,.serhat-due-date,.sh-load-value,.sh-uptime-value) {color:#e5edf8!important;}
html[data-serhat-theme="dark"] :is(.serhat-products-page,.sh-invoices-page,.sh-domains-page,.sh-support-page) {background:transparent!important;}
/* Existing reset hook (V13) already reads data-serhat-theme; support older markup too. */
html[data-serhat-theme="dark"] #sh-reset-v8-wrap #sh-reset-v8-box .sh5-card,html[data-serhat-theme="dark"] #sh-reset-v8-wrap #sh-reset-v8-box .sh5-head,html[data-serhat-theme="dark"] #sh-reset-v8-wrap #sh-reset-v8-box .sh5-body {background:#192638!important;border-color:#34465e!important;color:#e5edf8!important;}
html[data-serhat-theme="dark"] #sh-reset-v8-wrap #sh-reset-v8-box :is(.sh5-item,.sh6-quota,.sh6-extra,.sh5-head-badge,.sh6-pill) {background:#223248!important;color:#d6e7ff!important;border-color:#3b4e69!important;}
html[data-serhat-theme="dark"] #sh-reset-v8-wrap #sh-reset-v8-box :is(.sh5-title,.sh5-item strong,.sh6-quota-main>strong,.sh6-extra strong,.sh6-extra-price) {color:#e5edf8!important;}
html[data-serhat-theme="dark"] #sh-reset-v8-wrap #sh-reset-v8-box :is(.sh5-sub,.sh5-item small,.sh6-help,.sh6-extra span) {color:#afc0d6!important;}
html[data-serhat-theme="dark"] #sh-reset-v8-wrap #sh-reset-v8-box .sh5-warning,html[data-serhat-theme="dark"] #sh-reset-v8-wrap #sh-reset-v8-box .sh5-warning strong {background:#392e20!important;color:#ffdb9a!important;border-color:#806033!important;}
html[data-serhat-theme="dark"] #sh-reset-v8-wrap #sh-reset-v8-box .sh6-quota-full {background:#412832!important;border-color:#854655!important;}
/* Toggle uses the original header's action button geometry. */
#header .sh-classic-mode-item {flex:0 0 auto;}
.sh-classic-mode {cursor:pointer;}
.sh-classic-mode [data-sh-mode-icon] {font-size:21px;line-height:1;display:inline-block;font-family:Arial,sans-serif;}
.sh-classic-mode:focus-visible {outline:3px solid #74b2ff!important;outline-offset:3px;}
.sh-classic-doc-controls {display:flex;justify-content:flex-end;padding:10px max(12px,env(safe-area-inset-right));}
.sh-classic-doc-controls .sh-classic-mode {display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #7c9bc0;border-radius:9px;background:#fff;color:#173c72;font-weight:600;}
html[data-serhat-theme="dark"] .sh-classic-doc-controls .sh-classic-mode {background:#21334c;color:#c5ddff;}
@media(max-width:767px){
 #header .sh-brandbar-inner {gap:6px!important;}
 #header .navbar-brand {flex:1 1 0!important;max-width:none!important;min-width:0!important;}
 #header .navbar-brand img.logo-img {max-width:100%!important;object-fit:contain;}
 #header .sh-actions {flex:0 0 auto!important;gap:4px!important;margin-left:auto!important;}
 #header .sh-actions .sh-action {min-height:40px;min-width:38px;}
 #header .sh-actions .sh-cart {min-width:44px;}
 .invoice-container .table {overflow-wrap:anywhere;}
}
@media(max-width:360px){#header .sh-actions .sh-action{min-width:34px;width:34px;min-height:38px;}#header .sh-actions .sh-cart{width:auto;min-width:39px;}}
/* Keep animations away from layout ancestors, payment fields and dialog positioning. */
@media(prefers-reduced-motion:no-preference){
 @keyframes shClassicArrive {from {opacity:.72;} to {opacity:1;}}
 @keyframes shClassicGlow {0%,100% {box-shadow:0 0 0 0 rgba(60,132,237,0);} 50% {box-shadow:0 0 0 3px rgba(60,132,237,.18);}}
 @keyframes shClassicPulse {0%,100%{box-shadow:0 0 0 0 rgba(51,192,143,.0);}50%{box-shadow:0 0 0 5px rgba(51,192,143,.15);}}
 @keyframes shClassicIcon {0%{transform:scale(.85) rotate(-20deg);}100%{transform:scale(1) rotate(0);}}
 #main-body :is(.sh-auth-card,.sh-home-panel-wrap,.sh-store-product-card,.sh-ticket-department-card,.serhat-service-row,.sh-home-link-card) {animation:shClassicArrive .42s ease-out both;}
 #header .sh-action,.sh-classic-mode,#main-body :is(.btn,.sh-home-link-card,.sh-store-product-card,.serhat-service-row,.sh-ticket-department-card,.sh-stat-item,.serhat-stat-card),#footer a {transition:background-color .22s ease,color .22s ease,border-color .22s ease,box-shadow .22s ease,filter .22s ease;}
 #main-body :is(.serhat-status.status-active,.serhat-status.status-aktif) .serhat-status-dot{animation:shClassicPulse 2.5s ease-in-out infinite;}
 #main-body .serhat-remaining:not(.locked):not(.expired) .serhat-remaining-status-dot{animation:shClassicGlow 2.5s ease-in-out infinite;}
 #header .sh-classic-mode:hover [data-sh-mode-icon],#header .sh-classic-mode:focus-visible [data-sh-mode-icon] {animation:shClassicIcon .35s ease-out both;}
 @media(hover:hover) and (pointer:fine){
  #main-body :is(.sh-store-product-card,.sh-home-link-card,.sh-ticket-department-card,.serhat-service-row,.sh-stat-item,.serhat-stat-card):hover {box-shadow:0 0 0 1px rgba(81,145,255,.55),0 10px 26px rgba(38,101,200,.14)!important;}
  #main-body .btn:not(:disabled):hover,#header .sh-action:hover {filter:brightness(1.12);}
  #footer a:hover {text-decoration:underline;}
 }
 #main-body :is(input,select,textarea):focus-visible {outline:2px solid #72aaff;outline-offset:2px;}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important;} #header *,#main-body *,#footer *,#serhat-announcement * {animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}}
}
