/* ============================================================
   ScriptTonic Design System V1 — Shell Styles
   Global shell & navigation primitives.
   B2 owns: header, nav, sidebar, topbar, footer, breadcrumbs, mobile.
   ============================================================ */

/* === HEADER / TOPBAR === */
.st-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--st-z-fixed);
  background-color: var(--st-surface);
  border-block-end: 1px solid var(--st-border);
}

.st-header-inner {
  display: flex;
  align-items: center;
  gap: var(--st-space-4);
  height: var(--st-topbar-height);
  padding-inline: var(--st-space-4);
  max-width: var(--st-content-max-width);
  margin-inline: auto;
}

.st-header-logo {
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
  flex-shrink: 0;
}

.st-header-logo img {
  height: 32px;
  width: auto;
}

.st-header-search {
  flex: 1;
  max-width: 480px;
}

.st-header-search form {
  display: flex;
  gap: var(--st-space-1);
}

.st-header-search .st-input {
  border-radius: var(--st-radius-full);
  padding-inline: var(--st-space-4);
}

.st-header-actions {
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
  margin-inline-start: auto;
}

/* === NAVIGATION === */
.st-nav {
  display: flex;
  align-items: center;
  gap: var(--st-space-1);
}

.st-nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--st-space-1);
  padding: var(--st-space-2) var(--st-space-3);
  font-size: var(--st-text-sm);
  font-weight: var(--st-font-medium);
  color: var(--st-text-muted);
  text-decoration: none;
  border-radius: var(--st-radius-md);
  transition: color var(--st-duration-fast) var(--st-easing-default),
              background-color var(--st-duration-fast) var(--st-easing-default);
}

.st-nav-link:hover {
  color: var(--st-text);
  background-color: var(--st-surface-elevated);
  text-decoration: none;
}

.st-nav-link.active {
  color: var(--st-interaction);
  background-color: rgba(0, 179, 255, 0.08);
}

.st-nav-link-brand {
  color: var(--st-brand);
}

.st-nav-link-brand:hover {
  color: var(--st-brand-hover);
  background-color: rgba(255, 122, 0, 0.08);
}

/* === MOBILE NAVIGATION === */
.st-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--st-touch-target);
  min-height: var(--st-touch-target);
  background: transparent;
  border: none;
  color: var(--st-text);
  cursor: pointer;
  border-radius: var(--st-radius-md);
}

.st-mobile-toggle:hover {
  background-color: var(--st-surface-elevated);
}

.st-mobile-drawer {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 300px;
  height: 100vh;
  background-color: var(--st-surface);
  border-inline-end: 1px solid var(--st-border);
  z-index: var(--st-z-modal);
  transform: translateX(-100%);
  transition: transform var(--st-duration-normal) var(--st-easing-default);
  display: flex;
  flex-direction: column;
}

.st-mobile-drawer.open {
  transform: translateX(0);
}

[dir="rtl"] .st-mobile-drawer {
  transform: translateX(100%);
}

[dir="rtl"] .st-mobile-drawer.open {
  transform: translateX(0);
}

.st-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--st-space-4);
  border-block-end: 1px solid var(--st-border);
}

.st-mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--st-space-4);
}

.st-mobile-drawer-footer {
  padding: var(--st-space-4);
  border-block-start: 1px solid var(--st-border);
}

.st-lang-code {
  font-weight: var(--st-font-semibold);
  font-size: var(--st-text-xs);
  text-transform: uppercase;
}

.st-mobile-lang-section {
  margin-block-end: var(--st-space-4);
}

.st-mobile-lang-label {
  font-size: var(--st-text-xs);
  color: var(--st-text-muted);
  text-transform: uppercase;
  font-weight: var(--st-font-semibold);
  margin-block-end: var(--st-space-2);
}

.st-mobile-lang-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st-space-2);
}

.st-mobile-lang-option {
  padding: var(--st-space-1) var(--st-space-3);
  font-size: var(--st-text-sm);
  color: var(--st-text);
  background-color: var(--st-surface-elevated);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
  text-decoration: none;
  transition: all var(--st-duration-fast) var(--st-easing-default);
}

.st-mobile-lang-option:hover,
.st-mobile-lang-option:focus {
  background-color: var(--st-accent-subtle);
  border-color: var(--st-accent);
  color: var(--st-accent);
}

.st-mobile-lang-option.active {
  background-color: var(--st-accent);
  border-color: var(--st-accent);
  color: var(--st-white);
}

.st-mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: calc(var(--st-z-modal) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--st-duration-normal) var(--st-easing-default);
}

.st-mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Prevent background scrolling when mobile drawer is open */
body.st-drawer-open {
  overflow: hidden;
}

.st-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-1);
}

.st-mobile-nav-links .st-nav-link {
  padding: var(--st-space-3) var(--st-space-4);
  min-height: var(--st-touch-target);
}

/* === SIDEBAR === */
.st-sidebar {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: var(--st-sidebar-width);
  height: 100vh;
  background-color: var(--st-surface);
  border-inline-end: 1px solid var(--st-border);
  display: flex;
  flex-direction: column;
  z-index: var(--st-z-sticky);
  transform: translateX(0);
  transition: transform var(--st-duration-normal) var(--st-easing-default);
}

.st-sidebar.collapsed {
  transform: translateX(-100%);
}

[dir="rtl"] .st-sidebar {
  transform: translateX(0);
}

[dir="rtl"] .st-sidebar.collapsed {
  transform: translateX(100%);
}

.st-sidebar-header {
  padding: var(--st-space-4);
  border-block-end: 1px solid var(--st-border);
  display: flex;
  align-items: center;
  gap: var(--st-space-3);
}

.st-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--st-space-4);
}

.st-sidebar-footer {
  padding: var(--st-space-4);
  border-block-start: 1px solid var(--st-border);
}

.st-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-1);
}

.st-sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--st-space-3);
  padding: var(--st-space-2) var(--st-space-3);
  font-size: var(--st-text-sm);
  font-weight: var(--st-font-medium);
  color: var(--st-text-muted);
  text-decoration: none;
  border-radius: var(--st-radius-md);
  border-inline-start: 2px solid transparent;
  transition: color var(--st-duration-fast) var(--st-easing-default),
              background-color var(--st-duration-fast) var(--st-easing-default),
              border-color var(--st-duration-fast) var(--st-easing-default);
}

.st-sidebar-link:hover {
  color: var(--st-text);
  background-color: var(--st-surface-elevated);
  text-decoration: none;
}

.st-sidebar-link.active {
  color: var(--st-interaction);
  background-color: rgba(0, 179, 255, 0.08);
  border-inline-start-color: var(--st-interaction);
}

.st-sidebar-link-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.st-sidebar-counter {
  margin-inline-start: auto;
  padding: 2px 8px;
  font-size: var(--st-text-xs);
  font-weight: var(--st-font-semibold);
  color: #fff;
  background-color: var(--st-danger);
  border-radius: var(--st-radius-full);
  min-width: 20px;
  text-align: center;
}

/* === TOPBAR === */
.st-topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--st-z-fixed);
  background-color: var(--st-surface-elevated);
  border-block-end: 1px solid var(--st-border);
}

.st-topbar-inner {
  display: flex;
  align-items: center;
  gap: var(--st-space-3);
  height: 56px;
  padding-inline: var(--st-space-4);
}

.st-topbar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--st-touch-target);
  min-height: var(--st-touch-target);
  background: transparent;
  border: none;
  color: var(--st-text);
  cursor: pointer;
  border-radius: var(--st-radius-md);
}

.st-topbar-toggle:hover {
  background-color: var(--st-surface);
}

.st-topbar-title {
  font-size: var(--st-text-lg);
  font-weight: var(--st-font-semibold);
  color: var(--st-text);
}

.st-search-control > .st-input {
  width: 100%;
  padding-inline-start: 42px;
}

.st-topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
  margin-inline-start: auto;
}

/* === MAIN CONTENT AREA === */
.st-main {
  min-height: calc(100vh - var(--st-topbar-height));
  padding: var(--st-space-6);
}

.st-sidebar ~ .st-main {
  margin-inline-start: var(--st-sidebar-width);
}

@media (max-width: 991.98px) {
  .st-sidebar ~ .st-main {
    margin-inline-start: 0;
  }
}

/* === BREADCRUMBS === */
.st-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
  flex-wrap: wrap;
  padding: var(--st-space-3) 0;
  font-size: var(--st-text-sm);
}

.st-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: var(--st-space-2);
  color: var(--st-text-muted);
}

.st-breadcrumb-item a {
  color: var(--st-text-muted);
  text-decoration: none;
}

.st-breadcrumb-item a:hover {
  color: var(--st-interaction);
}

.st-breadcrumb-item.active {
  color: var(--st-text);
}

.st-breadcrumb-separator {
  color: var(--st-text-subtle);
  font-size: var(--st-text-xs);
}

/* === FOOTER === */
.st-footer {
  background-color: var(--st-surface);
  border-block-start: 1px solid var(--st-border);
  padding-block: var(--st-space-12);
}

.st-footer-inner {
  max-width: var(--st-content-max-width);
  margin-inline: auto;
  padding-inline: var(--st-space-4);
}

.st-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--st-space-8);
}

@media (max-width: 991.98px) {
  .st-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--st-space-6);
  }
}

@media (max-width: 575.98px) {
  .st-footer-grid {
    grid-template-columns: 1fr;
    gap: var(--st-space-6);
  }
}

.st-footer-about {
  display: flex;
  flex-direction: column;
  gap: var(--st-space-4);
}

.st-footer-about p {
  color: var(--st-text-muted);
  font-size: var(--st-text-sm);
  line-height: var(--st-leading-relaxed);
}

.st-footer-socials {
  display: flex;
  gap: var(--st-space-2);
}

.st-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--st-surface-elevated);
  color: var(--st-text-muted);
  border-radius: var(--st-radius-md);
  text-decoration: none;
  transition: color var(--st-duration-fast) var(--st-easing-default),
              background-color var(--st-duration-fast) var(--st-easing-default);
}

.st-footer-social-link:hover {
  background-color: var(--st-control-hover);
  color: var(--st-interaction);
  text-decoration: none;
}

.st-footer-column-title {
  font-size: var(--st-text-sm);
  font-weight: var(--st-font-semibold);
  color: var(--st-text);
  margin-block-end: var(--st-space-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.st-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--st-space-2);
}

.st-footer-link a {
  font-size: var(--st-text-sm);
  color: var(--st-text-muted);
  text-decoration: none;
}

.st-footer-link a:hover {
  color: var(--st-interaction);
}

.st-footer-bottom {
  border-block-start: 1px solid var(--st-border);
  margin-block-start: var(--st-space-8);
  padding-block-start: var(--st-space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--st-space-3);
}

.st-footer-copyright {
  font-size: var(--st-text-sm);
  color: var(--st-text-muted);
}

.st-footer-signoff {
  color: var(--st-text-subtle);
  font-size: var(--st-text-xs);
}

.st-footer-payment img {
  height: 24px;
  width: auto;
  border-radius: var(--st-radius-sm);
}

/* === DROPDOWN (SHELL-SPECIFIC) === */
.st-dropdown {
  position: relative;
}

.st-dropdown-menu {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 0;
  z-index: var(--st-z-dropdown);
  min-width: 220px;
  padding: var(--st-space-1);
  margin-block-start: var(--st-space-1);
  background-color: var(--st-surface-elevated);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
  box-shadow: var(--st-shadow-lg);
  display: none;
}

.st-dropdown.open .st-dropdown-menu {
  display: block;
}

.st-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
  padding: var(--st-space-2) var(--st-space-3);
  font-size: var(--st-text-sm);
  color: var(--st-text);
  text-decoration: none;
  border-radius: var(--st-radius-sm);
  transition: background-color var(--st-duration-fast) var(--st-easing-default);
}

.st-dropdown-item:hover {
  background-color: var(--st-control-hover);
  text-decoration: none;
  color: var(--st-text);
}

.st-dropdown-item.danger {
  color: var(--st-danger);
}

.st-dropdown-divider {
  height: 1px;
  background-color: var(--st-border);
  margin: var(--st-space-1) 0;
}

/* === USER MENU === */
.st-user-menu {
  display: flex;
  align-items: center;
  gap: var(--st-space-2);
  padding: var(--st-space-1) var(--st-space-2) var(--st-space-1) var(--st-space-1);
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--st-radius-md);
  cursor: pointer;
  transition: background-color var(--st-duration-fast) var(--st-easing-default),
              border-color var(--st-duration-fast) var(--st-easing-default);
}

.st-user-menu:hover {
  background-color: var(--st-surface-elevated);
  border-color: var(--st-border);
}

.st-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.st-user-name {
  font-size: var(--st-text-sm);
  font-weight: var(--st-font-medium);
  color: var(--st-text);
}

/* === CART BUTTON === */
.st-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--st-touch-target);
  min-height: var(--st-touch-target);
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--st-radius-md);
  color: var(--st-text);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--st-duration-fast) var(--st-easing-default);
}

.st-cart-btn:hover {
  background-color: var(--st-surface-elevated);
  text-decoration: none;
  color: var(--st-text);
}

.st-cart-counter {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: var(--st-font-bold);
  color: #fff;
  background-color: var(--st-danger);
  border-radius: var(--st-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === NOTIFICATIONS === */
.st-notifications {
  position: relative;
}

.st-notifications-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--st-touch-target);
  min-height: var(--st-touch-target);
  background-color: transparent;
  border: none;
  border-radius: var(--st-radius-md);
  color: var(--st-text);
  cursor: pointer;
}

.st-notifications-trigger:hover {
  background-color: var(--st-surface-elevated);
}

.st-notifications-counter {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-end: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: var(--st-font-bold);
  color: #fff;
  background-color: var(--st-danger);
  border-radius: var(--st-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-notifications-menu {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 0;
  z-index: var(--st-z-dropdown);
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background-color: var(--st-surface-elevated);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
  box-shadow: var(--st-shadow-lg);
  display: none;
}

.st-notifications.open .st-notifications-menu {
  display: block;
}

.st-notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--st-space-3);
  border-block-end: 1px solid var(--st-border);
}

.st-notifications-title {
  font-size: var(--st-text-sm);
  font-weight: var(--st-font-semibold);
  color: var(--st-text);
}

.st-notifications-item {
  display: flex;
  gap: var(--st-space-3);
  padding: var(--st-space-3);
  border-block-end: 1px solid var(--st-border-subtle);
  text-decoration: none;
  transition: background-color var(--st-duration-fast) var(--st-easing-default);
}

.st-notifications-item:hover {
  background-color: var(--st-control-hover);
  text-decoration: none;
}

.st-notifications-item.unread {
  background-color: rgba(0, 179, 255, 0.04);
}

.st-notifications-image {
  width: 40px;
  height: 40px;
  border-radius: var(--st-radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.st-notifications-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-notifications-info {
  flex: 1;
  min-width: 0;
}

.st-notifications-item-title {
  font-size: var(--st-text-sm);
  font-weight: var(--st-font-medium);
  color: var(--st-text);
  margin-block-end: 2px;
}

.st-notifications-item-text {
  font-size: var(--st-text-xs);
  color: var(--st-text-muted);
}

.st-notifications-footer {
  display: block;
  padding: var(--st-space-3);
  text-align: center;
  font-size: var(--st-text-sm);
  color: var(--st-interaction);
  text-decoration: none;
  border-block-start: 1px solid var(--st-border);
}

.st-notifications-footer:hover {
  text-decoration: underline;
}

/* === RESPONSIVE SHELL === */
@media (min-width: 1200px) {
  .st-nav { display: flex; }
  .st-mobile-toggle { display: none; }
}

@media (max-width: 1199.98px) {
  .st-nav { display: none; }
  .st-mobile-toggle { display: inline-flex; }
  .st-header-search { display: none; }
}

@media (max-width: 991.98px) {
  .st-sidebar { display: none; }
  .st-sidebar.preview-open { display: flex; z-index: var(--st-z-modal); }
  .st-sidebar.preview-open + .st-sidebar-overlay { display: block; }
  .st-sidebar ~ .st-main { margin-inline-start: 0; }
  .st-topbar { display: flex; }
  .st-console-content { margin-inline-start: 0; }
  .preview-viewport .vironeer-sidebar { display: none; }
  .preview-viewport .vironeer-page-content,
  .preview-viewport .st-console-admin-content { width: 100%; min-width: 0; }
}

@media (min-width: 992px) {
  .st-topbar { display: flex; }
}

/* === ADMIN SIDEBAR (VIRONEER COMPATIBILITY) === */
.vironeer-sidebar {
  --st-admin-sidebar-header-height: 74px;
  width: var(--st-sidebar-width) !important;
  background-color: var(--st-surface) !important;
  border-inline-end: 1px solid var(--st-border) !important;
}

.vironeer-sidebar .vironeer-sidebar-menu {
  height: calc(100% - var(--st-admin-sidebar-header-height)) !important;
}

@media (min-width: 1200px) {
  .vironeer-sidebar.active {
    inset-inline-start: calc(var(--st-sidebar-width) * -1) !important;
  }
}

@media (max-width: 1199.98px) {
  .vironeer-sidebar {
    inset-inline-start: calc(var(--st-sidebar-width) * -1) !important;
  }

  .vironeer-sidebar.active {
    inset-inline-start: 0 !important;
  }
}

[dir="rtl"] .vironeer-sidebar {
  left: auto !important;
}

@media (min-width: 1200px) {
  .vironeer-page-content:not(.active),
  .vironeer-page-content:not(.active) .vironeer-page-header {
    width: calc(100% - var(--st-sidebar-width)) !important;
  }
}

.vironeer-sidebar-header {
  border-block-end: 1px solid var(--st-border) !important;
  background-color: var(--st-surface) !important;
}

.vironeer-sidebar-link {
  color: var(--st-text-muted) !important;
  border-inline-start: 2px solid transparent !important;
  border-radius: var(--st-radius-md) !important;
  transition: color var(--st-duration-fast) var(--st-easing-default),
              background-color var(--st-duration-fast) var(--st-easing-default),
              border-color var(--st-duration-fast) var(--st-easing-default);
}

.vironeer-sidebar-link:hover {
  color: var(--st-text) !important;
  background-color: var(--st-surface-elevated) !important;
}

.vironeer-sidebar-link.current {
  color: var(--st-interaction) !important;
  background-color: rgba(0, 179, 255, 0.08) !important;
  border-inline-start-color: var(--st-interaction) !important;
}

.vironeer-sidebar-link.active {
  color: var(--st-text) !important;
  background-color: var(--st-surface-elevated) !important;
}

.vironeer-sidebar-link-menu > .vironeer-sidebar-link {
  display: block;
}

.vironeer-sidebar-link .counter {
  background-color: var(--st-danger) !important;
  color: #fff !important;
  border-radius: var(--st-radius-full) !important;
  padding: 2px 8px !important;
  font-size: var(--st-text-xs) !important;
  font-weight: var(--st-font-semibold) !important;
  min-width: 20px !important;
  text-align: center !important;
}

.vironeer-sidebar-link-menu .counter {
  padding-block: 2px 1px !important;
  font-size: 10px !important;
  line-height: normal;
}

.vironeer-sidebar-logo img {
  filter: brightness(0) invert(1);
}

.vironeer-page-header {
  background-color: var(--st-surface-elevated) !important;
  border-block-end: 1px solid var(--st-border) !important;
}

.vironeer-page-header .btn-outline-success,
.vironeer-page-header .btn-outline-danger,
.vironeer-page-header .btn-outline-dark {
  border-color: var(--st-border) !important;
  color: var(--st-text-muted) !important;
}

.vironeer-page-header .btn-outline-success:hover,
.vironeer-page-header .btn-outline-danger:hover,
.vironeer-page-header .btn-outline-dark:hover {
  background-color: var(--st-surface) !important;
  color: var(--st-text) !important;
}

.vironeer-notifications-menu {
  background-color: var(--st-surface-elevated) !important;
  border: 1px solid var(--st-border) !important;
  border-radius: var(--st-radius-md) !important;
  box-shadow: var(--st-shadow-lg) !important;
}

.vironeer-notification.unread {
  background-color: rgba(0, 179, 255, 0.04) !important;
}

.vironeer-user-menu .dropdown-menu {
  background-color: var(--st-surface-elevated) !important;
  border: 1px solid var(--st-border) !important;
  border-radius: var(--st-radius-md) !important;
  box-shadow: var(--st-shadow-lg) !important;
}

.vironeer-user-menu .dropdown-item {
  color: var(--st-text) !important;
  font-size: var(--st-text-sm) !important;
  padding: var(--st-space-2) var(--st-space-3) !important;
}

.vironeer-user-menu .dropdown-item:hover {
  background-color: var(--st-control-hover) !important;
  color: var(--st-text) !important;
}

.vironeer-user-menu .dropdown-item.text-danger {
  color: var(--st-danger) !important;
}

/* === STAGE 6 / B2 VISUAL REFINEMENT === */
.st-header {
  background: rgba(11, 15, 20, 0.97);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.st-header-inner {
  width: 100%;
  height: 72px;
  gap: clamp(12px, 1.5vw, 24px);
  padding-inline: clamp(18px, 3vw, 40px);
}

.st-header-logo {
  min-width: 154px;
  text-decoration: none;
}

.st-header-logo img {
  display: block;
  width: 154px;
  height: 34px;
  object-fit: contain;
  object-position: center;
}

.st-header-nav {
  flex: 0 1 auto;
  gap: 2px;
  white-space: nowrap;
}

.st-nav-link {
  position: relative;
  min-height: 40px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: #b8c4d1;
}

.st-nav-link:hover {
  color: var(--st-text);
  background: rgba(255, 255, 255, 0.035);
}

.st-nav-link.active {
  color: var(--st-text);
  background: transparent;
}

.st-nav-link.active::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  inset-block-end: -16px;
  height: 2px;
  background: var(--st-brand);
  border-radius: 2px;
}

.st-header-search {
  flex: 1 1 340px;
  max-width: 460px;
  min-width: 220px;
}

.st-header-search form,
.st-search-control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.st-header-search .st-input {
  width: 100%;
  height: 44px;
  padding-inline: 42px 88px;
  border-radius: 10px;
  background: #111a24;
  border-color: #2a3949;
  color: var(--st-text);
}

.st-header-search .st-input::placeholder {
  color: #8393a6;
}

.st-search-icon {
  position: absolute;
  inset-inline-start: 15px;
  z-index: 1;
  color: #9eafc1;
  pointer-events: none;
}

.st-search-key {
  position: absolute;
  inset-inline-end: 10px;
  padding: 3px 7px;
  border: 1px solid #3a4b5e;
  border-radius: 5px;
  color: #9eafc1;
  background: #17212d;
  font-size: 11px;
  line-height: 1.25;
  pointer-events: none;
}

.st-header-actions {
  gap: 6px;
}

.st-header-actions .st-btn {
  min-height: 40px;
  border-radius: 7px;
}

.st-cart-btn,
.st-notifications-trigger,
.st-mobile-toggle,
.st-topbar-toggle {
  border-radius: 7px;
}

.st-cart-btn:hover,
.st-notifications-trigger:hover,
.st-mobile-toggle:hover,
.st-topbar-toggle:hover {
  color: var(--st-interaction);
  background: rgba(0, 179, 255, 0.08);
}

.st-user-menu {
  min-height: 44px;
  padding: 5px 8px 5px 5px;
  border-color: #263342;
  border-radius: 9px;
}

.st-user-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #405165;
}

.st-dropdown-menu {
  margin-block-start: 10px;
  padding: 7px;
  border-radius: 9px;
  background: #151e29;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.st-mobile-drawer {
  width: min(328px, 88vw);
  background: #101720;
  box-shadow: 22px 0 52px rgba(0, 0, 0, 0.45);
}

[dir="rtl"] .st-mobile-drawer {
  box-shadow: -22px 0 52px rgba(0, 0, 0, 0.45);
}

.st-mobile-drawer-header {
  min-height: 72px;
  padding: 14px 18px;
}

.st-mobile-drawer-body,
.st-mobile-drawer-footer {
  padding: 18px;
}

.st-mobile-nav-links .st-nav-link.active::after {
  inset-block: 9px;
  inset-inline-start: 0;
  inset-inline-end: auto;
  width: 2px;
  height: auto;
}

.st-sidebar {
  width: 272px;
  background: #101720;
  box-shadow: 16px 0 40px rgba(0, 0, 0, 0.16);
}

[dir="rtl"] .st-sidebar {
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.16);
}

.st-sidebar-header {
  min-height: 82px;
  padding: 18px 20px;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.st-sidebar-header .st-header-logo {
  min-width: 0;
}

.st-sidebar-header .st-header-logo img {
  width: 142px;
  height: 30px;
}

.st-console-content {
  flex: 1;
  min-width: 0;
  margin-inline-start: 272px;
}

@media (max-width: 991.98px) {
  .st-console-content {
    margin-inline-start: 0;
  }
}

.st-console-admin-content {
  flex: 1;
  min-width: 0;
}

.st-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--st-z-sticky) - 1);
  border: 0;
  background: rgba(0, 0, 0, 0.62);
}

.st-admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--st-z-modal) - 1);
  border: 0;
  background: rgba(0, 0, 0, 0.62);
}

.st-shell-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: 4px;
  color: #ffad61;
  background: rgba(255, 122, 0, 0.08);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st-shell-badge-cyan {
  border-color: rgba(0, 179, 255, 0.35);
  color: #72d5ff;
  background: rgba(0, 179, 255, 0.08);
}

.st-sidebar-body {
  padding: 18px 14px;
}

.st-sidebar-links {
  gap: 3px;
}

.st-sidebar-link {
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 6px;
}

.st-sidebar-link-icon {
  width: 22px;
  color: #7f91a5;
}

.st-sidebar-link.active {
  color: var(--st-text);
  background: rgba(0, 179, 255, 0.08);
  border-inline-start-color: var(--st-interaction);
}

.st-sidebar-link.active .st-sidebar-link-icon {
  color: var(--st-interaction);
}

.st-balance-panel {
  padding: 14px;
  margin-block-end: 18px;
  border: 1px solid #263342;
  border-radius: 7px;
  background: #151e29;
}

.st-topbar {
  background: rgba(16, 23, 32, 0.96);
  backdrop-filter: blur(12px);
}

.st-topbar-inner {
  height: 64px;
  padding-inline: clamp(16px, 2.5vw, 32px);
}

.st-topbar-title {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.st-main {
  padding: clamp(20px, 3vw, 40px);
  background: var(--st-canvas);
}

.st-footer {
  padding-block: 48px 22px;
  background: #0d131b;
}

.st-footer-brand img,
.st-footer-about .st-header-logo img {
  width: 172px;
  height: auto;
}

.st-footer-column-title {
  color: #c8d2dd;
  font-size: 12px;
  letter-spacing: 0.09em;
}

.st-footer-link a,
.st-footer-text,
.footer-text {
  color: #90a0b1;
}

.st-footer-bottom {
  padding-block-start: 18px;
}

.st-footer .footer-upper,
.st-footer .footer-lower {
  background: transparent;
}

.st-footer .footer-upper {
  padding-block: 0 36px;
}

.st-footer .footer-lower {
  border-block-start: 1px solid var(--st-border);
  padding-block-start: 18px;
}

.vironeer-sidebar-logo img {
  width: 154px;
  max-height: 34px;
  object-fit: contain;
  filter: none !important;
}

.vironeer-sidebar-header {
  height: var(--st-admin-sidebar-header-height) !important;
  min-height: var(--st-admin-sidebar-header-height);
}

.vironeer-page-header {
  min-height: 64px;
  padding-inline: clamp(16px, 2.5vw, 32px) !important;
}

.st-preview-shell {
  min-height: 100%;
  background:
    radial-gradient(circle at 76% 0%, rgba(0, 179, 255, 0.055), transparent 30%),
    var(--st-canvas);
}

.st-preview-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--st-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.st-preview-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--st-brand);
}

.st-preview-panel {
  border: 1px solid #263342;
  border-radius: 8px;
  background: #101720;
}

@media (max-width: 1399.98px) {
  .st-header-inner { gap: 12px; }
  .st-nav-link { padding-inline: 9px; }
  .st-header-search { max-width: 360px; }
}

@media (max-width: 1199.98px) {
  .st-header-inner { height: 66px; }
  .st-header-logo { min-width: 146px; }
  .st-header-logo img { width: 146px; height: 32px; }
  .st-header-search { display: none; }
}

@media (max-width: 767.98px) {
  .st-console-content { margin-inline-start: 0; }
  .preview-viewport .vironeer-sidebar { display: none; }
  .preview-viewport .vironeer-sidebar.preview-open {
    display: block;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: var(--st-z-modal);
    width: min(280px, 86vw) !important;
  }
  .preview-viewport .vironeer-sidebar.preview-open + .st-admin-sidebar-overlay { display: block; }
  .preview-viewport .vironeer-page-content { width: 100%; min-width: 0; }
  .preview-viewport .vironeer-page-header .st-btn { padding-inline: 9px; font-size: 12px; }
  .preview-viewport .vironeer-page-header .st-user-name { display: none; }
  .st-header-inner { padding-inline: 14px; }
  .st-header-logo { min-width: 132px; }
  .st-header-logo img { width: 132px; height: 29px; }
  .st-header-actions { margin-inline-start: auto; }
  .st-main { padding: 20px 16px; }
  .st-topbar-inner { padding-inline: 14px; }
  .st-footer { padding-block-start: 36px; }
}

@media (max-width: 575.98px) {
  .st-header-actions { display: none; }
  .preview-viewport .vironeer-page-header > div[style*="display: flex"] { display: none !important; }
}

@media (max-width: 374.98px) {
  .st-header-logo { min-width: 118px; }
  .st-header-logo img { width: 118px; height: 27px; }
  .st-header-inner { gap: 4px; padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-mobile-drawer,
  .st-mobile-overlay,
  .st-nav-link,
  .st-sidebar-link,
  .st-dropdown-menu {
    transition: none !important;
  }
}

/* === B2 INTERNAL SHELL FINAL POLISH === */
.st-sidebar-workspace,
.st-sidebar-reviewer {
  border-inline-end-color: #2b3948;
}

.st-sidebar-workspace .st-sidebar-header {
  box-shadow: inset 0 -2px 0 rgba(255, 122, 0, 0.22);
}

.st-sidebar-reviewer .st-sidebar-header {
  box-shadow: inset 0 -2px 0 rgba(0, 179, 255, 0.24);
}

.st-sidebar-section,
.st-admin-section {
  margin: 14px 10px 5px;
  color: #718296;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.st-sidebar-links > .st-sidebar-section:first-child,
.vironeer-sidebar-links > .st-admin-section:first-child {
  margin-block-start: 2px;
}

.st-sidebar-section-cyan {
  color: #72d5ff;
}

.st-sidebar-workspace .st-sidebar-link.active {
  color: var(--st-text);
  border-inline-start-color: var(--st-brand);
  background: rgba(255, 122, 0, 0.09);
}

.st-sidebar-workspace .st-sidebar-link.active .st-sidebar-link-icon {
  color: var(--st-brand);
}

.st-sidebar-reviewer .st-sidebar-link.active {
  background: rgba(0, 179, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(0, 179, 255, 0.06);
}

.st-sidebar-workspace .st-sidebar-link:hover {
  background: rgba(255, 122, 0, 0.045);
}

.st-sidebar-reviewer .st-sidebar-link:hover {
  background: rgba(0, 179, 255, 0.05);
}

.st-topbar-context {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 38px;
  padding-inline-start: 13px;
  border-inline-start: 2px solid var(--st-brand);
}

.st-topbar-context-review {
  border-inline-start-color: var(--st-interaction);
}

.st-topbar-eyebrow {
  color: #8091a4;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.st-topbar-context .st-topbar-title {
  margin-block-start: 2px;
  font-size: 14px;
  line-height: 1.25;
}

.st-admin-context {
  display: flex;
  flex-direction: column;
  min-width: 126px;
  margin-inline: 0 auto;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--st-brand);
  color: #d7dee7;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.vironeer-sidebar-links .st-admin-section {
  margin-inline: 14px;
  padding-block-start: 8px;
  border-block-start: 1px solid rgba(38, 51, 66, 0.72);
}

.vironeer-sidebar-links > .st-admin-section:first-child {
  padding-block-start: 0;
  border-block-start: 0;
}

.vironeer-sidebar-links-cont .st-admin-section {
  margin-block-start: 16px;
}

.vironeer-sidebar-links-cont > .vironeer-sidebar-link {
  min-height: 38px;
}

.vironeer-sidebar-link.current {
  box-shadow: inset 0 0 0 1px rgba(0, 179, 255, 0.05);
}

.vironeer-sidebar-link-title > span:first-child > i {
  color: #7f91a5;
}

.vironeer-sidebar-link.current .vironeer-sidebar-link-title > span:first-child > i {
  color: var(--st-interaction);
}

.st-sidebar-link:focus-visible,
.vironeer-sidebar-link:focus-visible,
.st-topbar button:focus-visible,
.vironeer-page-header a:focus-visible,
.vironeer-page-header button:focus-visible {
  outline: 2px solid var(--st-interaction);
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .st-topbar-context {
    min-height: 34px;
    padding-inline-start: 10px;
  }

  .st-sidebar-section {
    margin-block-start: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-sidebar-workspace .st-sidebar-link,
  .st-sidebar-reviewer .st-sidebar-link,
  .vironeer-sidebar-link {
    transition: none !important;
  }
}
