/* Resync Master Studio Stylesheet - 100% Luxury Monochrome (Black & White) */

/* 1. TOP NATIVE APPLICATION MENU STRIP */
.top-menu-strip {
  height: 36px;
  background-color: #121212;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  -webkit-app-region: drag;
  z-index: 100;
  user-select: none;
  flex-shrink: 0;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.top-menu-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-brand-title {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  margin-right: 12px;
  letter-spacing: 0.2px;
  -webkit-app-region: no-drag;
}

.app-version {
  color: #707070;
  font-size: 10px;
  font-weight: 400;
  margin-left: 4px;
}

.native-menu-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  -webkit-app-region: no-drag;
}

.menu-item-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: #8e8e8e;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.menu-item-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

/* Topbar Dropdown Menu */
.menu-dropdown-wrapper {
  position: relative;
  display: inline-block;
  -webkit-app-region: no-drag;
}

.menu-dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.menu-dropdown-list.show {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item-btn {
  background: none;
  border: none;
  color: #8e8e8e;
  font-size: 11px;
  text-align: left;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.dropdown-item-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 3px 0;
}

.top-menu-right {
  display: flex;
  align-items: center;
  gap: 14px;
  -webkit-app-region: no-drag;
}

.live-clock {
  font-size: 10px;
  color: #707070;
  font-variant-numeric: tabular-nums;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  -webkit-app-region: no-drag;
}

.window-dot-btn {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  max-width: 10px !important;
  min-height: 10px !important;
  max-height: 10px !important;
  border-radius: 50% !important;
  background-color: #48484a !important;
  border: none !important;
  cursor: pointer;
  padding: 0 !important;
  display: inline-block;
  outline: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-sizing: border-box;
  flex-shrink: 0;
}

.window-dot-btn:hover {
  background-color: #d1d1d6 !important;
  transform: scale(1.15);
}

.window-dot-btn.close-dot:hover {
  background-color: #ffffff !important;
  transform: scale(1.15);
}

/* 🍎 macOS Adaptive Native Traffic Lights */
body.platform-darwin .top-menu-strip {
  padding-left: 78px;
}
body.platform-darwin .top-menu-right .window-controls {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}
body.platform-darwin .lock-window-controls {
  position: absolute;
  left: 18px;
  top: 18px;
  margin: 0;
}
body.platform-darwin .window-controls,
body.platform-darwin .lock-window-controls {
  display: flex !important;
  flex-direction: row !important;
}
body.platform-darwin .window-dot-btn.close-dot {
  order: 1 !important;
  background-color: #ff5f56 !important;
}
body.platform-darwin .window-dot-btn.min-dot {
  order: 2 !important;
  background-color: #ffbd2e !important;
}
body.platform-darwin .window-dot-btn.max-dot {
  order: 3 !important;
  background-color: #27c93f !important;
}

/* 2. WORKSTATION CONTAINER */
.workstation-container {
  flex: 1;
  display: flex;
  flex-direction: row;
  height: calc(100vh - 36px - 28px);
  overflow: hidden;
  background-color: #0c0c0c;
}

/* 2.1 LEFT SIDEBAR WORKSTATION */
.mobile-top-header {
  display: none;
}

.btn-sidebar-mobile-close {
  display: none;
}

.sidebar-mobile-backdrop {
  display: none;
}

.workstation-sidebar {
  width: 250px;
  background-color: #0e0e11;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  padding: 14px 10px 10px 10px;
  gap: 12px;
  flex-shrink: 0;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), padding 0.22s ease;
  overflow: hidden;
  user-select: none;
  z-index: 10;
}

.workstation-sidebar.collapsed {
  width: 64px;
  padding: 14px 8px 10px 8px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-square-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.brand-letter {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.brand-square-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  box-sizing: border-box;
  display: block;
}

.sidebar-brand-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.sidebar-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.4px;
}

.sidebar-brand-version {
  font-size: 10px;
  font-weight: 600;
  color: #666666;
}

.btn-sidebar-collapse {
  background: transparent;
  border: none;
  color: #71717a;
  cursor: pointer;
  padding: 4px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-sidebar-collapse:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.workstation-sidebar.collapsed .btn-sidebar-collapse svg {
  transform: rotate(180deg);
}

.workstation-sidebar.collapsed .sidebar-brand-info,
.workstation-sidebar.collapsed .sidebar-section-title,
.workstation-sidebar.collapsed .sidebar-section-badge,
.workstation-sidebar.collapsed .nav-text-col,
.workstation-sidebar.collapsed .sidebar-user-meta,
.workstation-sidebar.collapsed .sidebar-user-gear {
  display: none !important;
}

.workstation-sidebar.collapsed .sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 2px 0 8px 0;
}

.workstation-sidebar.collapsed .sidebar-brand {
  cursor: pointer;
}

.workstation-sidebar.collapsed .btn-sidebar-collapse {
  display: flex !important;
  width: 28px;
  height: 24px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  cursor: pointer;
}

.workstation-sidebar.collapsed .btn-sidebar-collapse:hover {
  background: #27272a;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.workstation-sidebar.collapsed .btn-sidebar-collapse svg {
  transform: rotate(180deg);
}

.sidebar-nav-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.sidebar-nav-scroll::-webkit-scrollbar {
  width: 3px;
}

.sidebar-nav-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  margin-bottom: 2px;
}

.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #636366;
  text-transform: uppercase;
}

.sidebar-section-badge {
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: #27272a;
  color: #d4d4d8;
  letter-spacing: 0.4px;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
}

.sidebar-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-item.active {
  background: #1c1c20;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sidebar-nav-item .nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8e8e93;
  transition: all 0.16s ease;
}

.sidebar-nav-item:hover .nav-icon {
  color: #ffffff;
  transform: scale(1.08);
}

.sidebar-nav-item.active .nav-icon {
  color: #F40500;
}

.sidebar-nav-item .nav-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.nav-text-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.nav-label {
  font-size: 12px;
  font-weight: 600;
  color: #a1a1aa;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.sidebar-nav-item:hover .nav-label {
  color: #f4f4f5;
}

.sidebar-nav-item.active .nav-label {
  color: #ffffff;
  font-weight: 700;
}

.nav-sublabel {
  font-size: 9.5px;
  color: #52525b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.sidebar-nav-item:hover .nav-sublabel,
.sidebar-nav-item.active .nav-sublabel {
  color: #71717a;
}

/* Sidebar User Footer */
.sidebar-user-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-lang-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-lang-box .resync-lang-switcher {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  padding: 3px 6px;
}

.sidebar-lang-box .resync-lang-btn {
  flex: 1;
  text-align: center;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50px;
  background: transparent;
  border: none;
  color: #71717a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-lang-box .resync-lang-btn:hover {
  color: #ffffff;
}

.sidebar-lang-box .resync-lang-btn.active {
  background: #F40500;
  color: #FFFFFF;
}

.sidebar-lang-box .resync-lang-sep {
  display: none;
}

.workstation-sidebar.collapsed .sidebar-lang-box {
  padding: 0;
}

.workstation-sidebar.collapsed .sidebar-lang-box .resync-lang-switcher {
  flex-direction: column;
  border-radius: 8px;
  padding: 4px 2px;
}

.workstation-sidebar.collapsed .sidebar-lang-box .resync-lang-btn {
  font-size: 9px;
  padding: 3px 0;
}

.sidebar-user-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #141417;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  outline: none;
}

.sidebar-user-card:hover {
  background: #1c1c20;
}

.sidebar-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.sidebar-user-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-tier {
  font-size: 9px;
  font-weight: 600;
  color: #a1a1aa;
}

.sidebar-user-gear {
  color: #71717a;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.15s ease;
}

.sidebar-user-gear svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.sidebar-user-card:hover .sidebar-user-gear {
  transform: rotate(30deg);
  color: #ffffff;
}

/* Responsivitas Mobile: Sidebar dikelola via off-canvas drawer di section 3 */

/* 2.2 MAIN WORKSPACE CONTENT */
.main-workspace-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #0c0c0c;
}

.workspace-top-bar {
  height: 48px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 14px;
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  -webkit-app-region: drag;
  overflow: visible;
  position: relative;
  z-index: 100;
}

.workspace-top-bar .breadcrumb-group,
.workspace-top-bar .top-action-group,
.workspace-top-bar button,
.workspace-top-bar a,
.workspace-top-bar input,
.workspace-top-bar .mini-profile-avatar {
  -webkit-app-region: no-drag;
}

.header-window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-app-region: no-drag;
  height: 28px;
  flex-shrink: 0;
}

.breadcrumb-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #707070;
}

.breadcrumb-sep {
  color: #383838;
}

.breadcrumb-active {
  color: #FFFFFF;
  font-weight: 600;
}

.top-search-group {
  flex: 1;
  max-width: 320px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 4px 10px;
  gap: 8px;
  font-size: 11px;
}

.search-input-wrapper input {
  background: none;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 11px;
  flex: 1;
}

.search-input-wrapper input::placeholder {
  color: #555555;
}

.search-hotkey {
  font-size: 9px;
  color: #707070;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  padding: 1px 4px;
}

.top-action-group {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.btn-new-project-pill {
  background: #F40500;
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  height: 28px;
  min-height: 28px !important;
  max-height: 28px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  line-height: 1;
  box-sizing: border-box;
  flex-shrink: 0;
}

.btn-new-project-pill:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

.mini-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2a2a2a;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mini-profile-avatar:hover {
  background: #383838;
  transform: scale(1.05);
}

/* License Status Pill Button - Monochrome */
.license-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  height: 28px;
  min-height: 28px !important;
  max-height: 28px;
  padding: 0 12px;
  border-radius: 50px;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  box-sizing: border-box;
  flex-shrink: 0;
}

.license-status-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.license-status-btn.active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.license-status-btn.unlicensed {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #8e8e8e;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #707070;
}

.license-status-btn.active .status-indicator-dot {
  background: #F40500;
  box-shadow: 0 0 6px rgba(244, 5, 0, 0.8);
}

/* WhatsApp Help / Support Button in Topbar */
.btn-topbar-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  height: 28px;
  min-height: 28px !important;
  max-height: 28px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: #d4d4d8;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  box-sizing: border-box;
  flex-shrink: 0;
  -webkit-app-region: no-drag;
}

.btn-topbar-help .topbar-help-icon {
  width: 13px;
  height: 13px;
  stroke: #a1a1aa;
  transition: stroke 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.btn-topbar-help:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: #25D366;
  transform: translateY(-1px);
}

.btn-topbar-help:hover .topbar-help-icon {
  stroke: #25D366;
  transform: scale(1.1);
}

.btn-topbar-help:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .btn-topbar-help {
    padding: 0;
    width: 28px;
    height: 28px;
    justify-content: center;
    border-radius: 50%;
  }
  .btn-topbar-help .topbar-help-text {
    display: none;
  }
}

/* Workspace Scroll Area (Fullwidth Responsive & Consistent Studio Padding) */
.workspace-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.workspace-scroll-area::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Welcome Greeting (Compact Luxury Workstation) */
.welcome-hero-banner {
  margin-bottom: 2px;
}

.welcome-hero-banner.compact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.welcome-banner-left {
  flex: 1;
  min-width: 280px;
}

.welcome-banner-right.quick-actions-row {
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  gap: 8px;
}

.welcome-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.welcome-subtitle {
  font-size: 11px;
  color: #71717a;
  margin-top: 2px;
}

/* 4 Quick Info KPI Cards (Monochrome Klepto Structure & Compact Strip) */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.kpi-cards-grid.compact-kpi-strip {
  gap: 8px;
  background: #111114;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
}

.compact-kpi-strip .kpi-card {
  background: transparent;
  padding: 4px 8px;
  border-right: none;
  border-radius: 0;
}

.compact-kpi-strip .kpi-card:last-child {
  border-right: none;
}

.kpi-card {
  background: #141414;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kpi-label {
  font-size: 9.5px;
  color: #71717a;
  font-weight: 500;
}

.kpi-value {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
}

.highlight-green,
.highlight-cyan,
.highlight-blue {
  color: #FFFFFF;
}

.pulse-dot-green {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  margin-right: 6px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Quick Actions Row */
.quick-actions-row {
  display: flex;
  gap: 8px;
}

.btn-quick-action {
  background: #181818;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #8e8e8e;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* 2-Column Dashboard Cards (Monochrome Grid) */
.dashboard-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.studio-card {
  background: #141414;
  border: none;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-main-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.card-desc-text {
  font-size: 11px;
  color: #707070;
  margin-top: 2px;
}

.header-stats {
  display: flex;
  gap: 8px;
}

.stat-chip {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
}

.stat-chip span.label {
  font-size: 8px;
  text-transform: uppercase;
  color: #707070;
  font-weight: 700;
}

.stat-chip span.value {
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
}

/* Activity Chart Bars - Monochrome */
.activity-chart-area {
  height: 140px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4px;
}

.chart-bars-row {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 100%;
  gap: 6px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
  flex: 1;
}

.bar-fill {
  width: 100%;
  max-width: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transition: height 0.3s ease, background 0.15s;
}

.bar-col:hover .bar-fill,
.bar-col.active .bar-fill {
  background: #F40500;
}

.bar-day {
  font-size: 9px;
  color: #707070;
  font-weight: 600;
}

/* History Card Body */
.history-card-body {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-history-state {
  text-align: center;
}

.empty-subtext {
  color: #707070;
  font-size: 11px;
}

/* Embedded Workstation Card */
.workstation-embed-card {
  margin-top: 4px;
  gap: 16px;
}

/* Dropzone Area - Monochrome */
.dropzone-container {
  width: 100%;
  min-height: 150px;
  cursor: pointer;
  border-radius: 12px;
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #121212;
}

.dropzone-container:hover .dropzone-inner,
.dropzone-container.drag-over .dropzone-inner {
  border-color: #F40500;
  background: rgba(255, 255, 255, 0.04);
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #FFFFFF;
  transition: all 0.25s ease;
}

.dropzone-container:hover .dropzone-icon {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.dropzone-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}

.dropzone-subtitle {
  font-size: 11px;
  color: #707070;
  margin-top: 3px;
}

.highlight-click {
  color: #FFFFFF;
  text-decoration: underline;
  cursor: pointer;
}

.dropzone-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.d-tag {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: #8e8e8e;
}

/* Preset Section - Monochrome */
.preset-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 10px;
  color: #707070;
}

/* Format Output Master Section */
.format-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.format-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.format-pill {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.format-pill:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.12);
}

.format-pill.active {
  background: #202020;
  border-color: #F40500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.f-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.format-pill .f-badge {
  font-size: 8px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #a0a0a0;
  letter-spacing: 0.5px;
}

.format-pill.active .f-badge {
  background: #F40500;
  color: #FFFFFF;
}

.format-pill .f-ext {
  font-size: 9px;
  font-family: monospace;
  font-weight: 700;
  color: #666666;
}

.format-pill.active .f-ext {
  color: #FFFFFF;
}

.format-pill .f-name {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
}

.format-pill .f-hint {
  font-size: 9px;
  color: #707070;
  line-height: 1.3;
}

/* Preset Category Grouping (Resync v2 Studio Sections) */
.preset-categories-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.preset-category-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.preset-category-block:hover {
  background: rgba(255, 255, 255, 0.04);
}

.preset-category-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: none;
}

.category-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
}

.category-badge.detector-badge {
  color: #FFFFFF;
}

.category-badge.studio-badge {
  color: #e2e8f0;
}

.category-count {
  font-size: 9px;
  font-weight: 700;
  color: #888888;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

.category-desc {
  font-size: 10px;
  color: #707070;
  margin: 0;
  line-height: 1.4;
}

.preset-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preset-pills-submithub {
  grid-template-columns: repeat(2, 1fr);
}

.preset-pills-daw {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1120px) {
  .preset-pills-daw {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   STEP 3 MODE SWITCHER (MODE SIMPLE VS MODE CUSTOM)
═══════════════════════════════════════════════════════════════════ */
.step3-mode-selection {
  display: none !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.step3-mode-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  user-select: none;
}

.step3-mode-pill:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.step3-mode-pill.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: #F40500 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(244, 5, 0, 0.10);
}

.mode-pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mode-pill-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.mode-pill-badge-pro {
  background: #F40500;
  color: #FFFFFF;
}

.mode-active-indicator {
  font-size: 10px;
  font-weight: 800;
  color: #FFFFFF;
  background: #F40500;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

.mode-pill-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-pill-icon {
  font-size: 18px;
}

.mode-pill-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.mode-pill-desc {
  font-size: 11px;
  color: #888888;
  line-height: 1.45;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   CUSTOM LAB PRO HEADER & AUDIO PREVIEW PLAYER DOCK
═══════════════════════════════════════════════════════════════════ */
.custom-lab-pro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.custom-lab-pro-header .pro-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.custom-lab-pro-header .pro-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-lab-pro-header .pro-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.custom-lab-pro-header .pro-desc {
  font-size: 11px;
  color: #888888;
  margin-top: 2px;
  display: block;
}

/* Batch Scope Transparency Banner */
.custom-lab-scope-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
}

.custom-lab-scope-banner .scope-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.custom-lab-scope-banner .scope-text {
  font-size: 11.5px;
  color: #A0A0A5;
  line-height: 1.4;
}

.custom-lab-scope-banner .scope-highlight {
  color: #FFFFFF;
  font-weight: 700;
}

/* Audio Player Dock */
.custom-player-dock {
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.player-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.player-sound-wave-icon {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.player-track-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.player-track-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-track-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

.player-track-selector-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #18181A;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px 4px;
}

.btn-track-nav {
  background: transparent;
  border: none;
  color: #8E8E93;
  font-size: 9px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-track-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.btn-track-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.player-track-select {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  max-width: 320px;
  padding: 2px 4px;
}

.player-track-select option {
  background: #18181B;
  color: #FFFFFF;
  font-size: 12px;
}

.player-track-status {
  font-size: 11px;
  color: #777777;
}

/* A/B Switch Buttons */
.player-ab-toggle {
  display: flex;
  background: #18181a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
  flex-shrink: 0;
}

.btn-ab-switch {
  background: transparent;
  border: none;
  color: #888888;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-ab-switch:hover {
  color: #FFFFFF;
}

.btn-ab-switch.active {
  background: #F40500;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Player Controls Row */
.player-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-player-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #F40500;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(244, 5, 0, 0.35);
}

.btn-player-play:hover {
  transform: scale(1.06);
  background: #EEEEEE;
}

.btn-player-play:active {
  transform: scale(0.96);
}

.btn-player-play:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.player-scrubber-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.player-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F40500, #CC0100);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.player-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #777777;
  font-family: monospace;
}

.player-volume-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.volume-icon {
  font-size: 14px;
  color: #888888;
}

.player-volume-slider {
  width: 75px;
  height: 4px;
  accent-color: #F40500;
  cursor: pointer;
}

/* Loading Indicator */
.player-loading-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.player-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #F40500;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Custom Lab Pro Rack Styles */
.custom-lab-block {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.custom-lab-block.active-preset {
  border: none !important;
  box-shadow: none !important;
}

.custom-lab-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 4px 2px;
}

.custom-lab-toggle-row .toggle-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-lab-icon {
  font-size: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-lab-toggle-row .toggle-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toggle-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-lab-toggle-row .toggle-title {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.custom-lab-toggle-row .toggle-desc {
  font-size: 11px;
  color: #888888;
  line-height: 1.4;
}

.custom-lab-toggle-row .toggle-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-status-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: #888888;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.custom-status-pill.active {
  background: #F40500;
  color: #FFFFFF;
  border-color: #F40500;
  box-shadow: 0 0 12px rgba(244, 5, 0, 0.35);
}

.toggle-arrow {
  font-size: 11px;
  color: #888888;
  transition: transform 0.3s ease;
}

.toggle-arrow.open {
  transform: rotate(180deg);
}

.custom-lab-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.custom-lab-panel.hidden {
  display: none !important;
}

.custom-lab-templates-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.template-label {
  font-size: 10px;
  font-weight: 700;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-template-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e0e0e0;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-template-chip:hover {
  background: #F40500;
  color: #FFFFFF;
  border-color: #F40500;
}

.btn-template-chip.reset {
  margin-left: auto;
  color: #888888;
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-template-chip.reset:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.custom-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 1120px) {
  .custom-controls-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .custom-controls-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .custom-lab-templates-bar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .btn-template-chip.reset {
    margin-left: 0;
  }
  .custom-control-card {
    padding: 12px 14px;
  }
  .custom-slider {
    height: 6px;
    margin: 8px 0 4px 0;
  }
  .custom-slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }
  .player-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .player-ab-toggle {
    width: 100%;
  }
  .btn-ab-switch {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
  }
  .player-controls-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .player-volume-wrapper {
    margin-left: auto;
  }
}

.custom-control-card {
  background: #141414;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}

.custom-control-card:hover {
  background: #181818;
}

.ctrl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ctrl-label {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}

.ctrl-value {
  font-size: 10px;
  font-weight: 800;
  color: #000000;
  background: #FFFFFF;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 6px 0 2px 0;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #F40500;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(244, 5, 0, 0.45);
  transition: transform 0.1s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.ctrl-hint {
  font-size: 9px;
  color: #666666;
  line-height: 1.3;
}

.custom-lab-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.btn-use-custom {
  background: #F40500;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(244, 5, 0, 0.35);
}

.btn-use-custom:hover {
  background: #e6e6e6;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
}

.preset-card {
  background: #141414;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.preset-card:hover {
  background: #1c1c1c;
}

.preset-card.active {
  background: #202020;
  box-shadow: inset 0 0 0 1px #F40500, 0 8px 24px rgba(0, 0, 0, 0.5);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Preset Info Button in Card Header */
.btn-preset-info {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  padding: 0;
  outline: none;
  flex-shrink: 0;
}

.btn-preset-info:hover {
  background: #F40500;
  color: #FFFFFF;
  border-color: #F40500;
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(244, 5, 0, 0.45);
}

.preset-card.active .btn-preset-info {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Preset Detailed Info Modal Elements */
.info-modal-desc {
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.6;
  margin: 0 0 14px 0;
}

.info-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.spec-card {
  background: #18181b;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 9px;
  color: #71717a;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.spec-val {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.info-sections-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.info-section-card {
  background: #151518;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-section-card:hover {
  background: #1c1c20;
}

.info-section-card.goal-card {
  border-left: 3px solid #ffffff;
}

.info-section-card.dsp-card {
  border-left: 3px solid #71717a;
}

.info-section-card.effect-card {
  border-left: 3px solid #a1a1aa;
}

.info-section-card.usecase-card {
  border-left: 3px solid #e4e4e7;
}

.info-section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-section-text {
  font-size: 11px;
  color: #a1a1aa;
  line-height: 1.5;
  margin: 0;
}

.pill-badge {
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  border: none;
}

.pill-badge.rec {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: none;
}

.pill-badge.neutral {
  background: rgba(255, 255, 255, 0.06);
  color: #8e8e8e;
  border: none;
}

.pill-badge.club {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: none;
}

.card-icon {
  font-size: 12px;
  filter: grayscale(100%);
}

.pill-name {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.pill-desc {
  font-size: 10px;
  color: #707070;
  line-height: 1.4;
  flex: 1;
}

.pill-chips {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.pill-chips span {
  font-size: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #8e8e8e;
  padding: 2px 6px;
  border-radius: 3px;
  border: none;
}

/* Metadata Accordion */
.metadata-accordion {
  background: #141414;
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion-icon {
  font-size: 14px;
  filter: grayscale(100%);
}

.accordion-title {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
}

.accordion-subtitle {
  font-size: 9px;
  color: #707070;
}

.accordion-chevron {
  font-size: 9px;
  color: #707070;
  transition: transform 0.2s;
}

.accordion-chevron.open {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 12px 14px;
  border-top: none;
  background: #111111;
}

.accordion-body.open {
  display: block;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 10px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-group label {
  font-size: 10px;
  color: #707070;
  font-weight: 500;
}

.input-group input {
  background: #181818;
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  color: #FFFFFF;
  font-size: 11px;
  outline: none;
}

.input-group input:focus {
  background: #202020;
}

/* Batch Progress Card - Monochrome */
.batch-progress-card {
  background: #151515;
  border: none;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-label-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-title {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
}

.progress-time-est {
  font-size: 10px;
  color: #8e8e8e;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F40500, #CC0100);
  border-radius: 10px;
  transition: width 0.2s ease;
}

.progress-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #707070;
}

/* Queue Section - Monochrome */
.queue-section {
  background: #141414;
  border: none;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.queue-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-badge {
  background: #F40500;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}

#queue-count {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
}

.queue-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-clear-queue {
  background: none;
  border: none;
  color: #707070;
  font-size: 10px;
  cursor: pointer;
}

.btn-clear-queue:hover {
  color: #FFFFFF;
}

.status-indicator {
  font-size: 10px;
  color: #8e8e8e;
}

.queue-items {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.queue-items::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.empty-queue-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #707070;
  text-align: center;
}

.empty-icon {
  font-size: 22px;
  margin-bottom: 4px;
  filter: grayscale(100%);
}

.empty-queue-placeholder p {
  font-size: 11px;
  font-weight: 600;
  color: #8e8e8e;
}

.empty-queue-placeholder span {
  font-size: 10px;
  color: #555555;
  margin-top: 2px;
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 6px;
  background: #171717;
  border: none;
  font-size: 11px;
}

.queue-item .item-title {
  color: #FFFFFF;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.queue-format-badge {
  font-size: 8px;
  font-weight: 800;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.queue-item .item-status {
  font-size: 10px;
  color: #707070;
}

.queue-item.done .item-status {
  color: #FFFFFF;
  font-weight: 600;
}

/* App Footer inside Workstation */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-open-folder {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1c1c1c;
  border: none;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-open-folder:hover {
  background: rgba(255, 255, 255, 0.08);
}

.auto-open-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #707070;
  cursor: pointer;
}

/* Action Button - Pill Putih Pekat Monokrom Khas Resync */
.btn-process-now {
  background: #F40500;
  color: #FFFFFF;
  border: none;
  border-radius: 25px;
  padding: 8px 22px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(244, 5, 0, 0.35);
  transition: all 0.15s;
}

.btn-process-now:hover:not(:disabled) {
  background: #e5e5e5;
  transform: scale(1.02);
}

.btn-process-now:disabled {
  background: #202020;
  color: #555555;
  cursor: not-allowed;
  box-shadow: none;
}

/* 3. BOTTOM STUDIO STATUS BAR */
.bottom-status-bar {
  height: 28px;
  background-color: #121212;
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 10px;
  color: #707070;
  flex-shrink: 0;
  user-select: none;
}

.status-bar-left,
.status-bar-center,
.status-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-tag {
  color: #FFFFFF;
  font-weight: 600;
}

.status-sep {
  color: #2c2c2c;
}

.status-link-btn {
  background: none;
  border: none;
  color: #707070;
  font-size: 10px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: color 0.15s;
}

.status-link-btn:hover {
  color: #FFFFFF;
}

.status-link-btn.text-danger {
  color: #8e8e8e;
}

.status-link-btn.text-danger:hover {
  color: #FFFFFF;
}

.status-credits {
  color: #555555;
  font-size: 10px;
}

.bottom-status-bar .live-clock {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 10px;
  color: #a1a1aa;
  letter-spacing: 0.2px;
}

/* Modal Overlay & Card (DRM) - Monochrome */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
  box-sizing: border-box;
}

.modal-card {
  width: 440px;
  max-width: min(440px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-radius: 14px;
  box-sizing: border-box;
  margin: auto;
}

.modal-inner {
  padding: 22px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon {
  font-size: 20px;
  filter: grayscale(100%);
}

.modal-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.modal-subtitle {
  font-size: 10px;
  color: #707070;
  margin-top: 1px;
}

.btn-close-modal {
  background: none;
  border: none;
  color: #707070;
  font-size: 14px;
  cursor: pointer;
}

.btn-close-modal:hover {
  color: #FFFFFF;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hwid-info-box {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hwid-label {
  font-size: 10px;
  color: #707070;
  font-weight: 600;
}

.hwid-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hwid-code {
  font-family: monospace;
  font-size: 10px;
  color: #FFFFFF;
  font-weight: 600;
  word-break: break-all;
}

.btn-copy-hwid {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-copy-hwid:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hwid-note {
  font-size: 9px;
  color: #555555;
}

.modal-lang-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 10px 0 12px 0;
}

.modal-lang-label {
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
}

/* 3.6. Output Directory Channels (Seamless Dark Studio Layout) */
.output-channel-box {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.output-channel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 440px) {
  .output-channel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .output-btn-group {
    justify-content: flex-end;
  }
}

.output-channel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.output-label {
  font-size: 10.5px;
  color: #e4e4e7;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.output-sublabel {
  font-size: 9.5px;
  color: #71717a;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.output-btn-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.btn-channel-action {
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.btn-channel-action.btn-change {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-channel-action.btn-change:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-channel-action.btn-reset {
  color: #a1a1aa;
}

.btn-channel-action.btn-reset:hover {
  color: #ffffff;
}

.btn-channel-action.btn-open {
  color: #a1a1aa;
}

.btn-channel-action.btn-open:hover {
  color: #ffffff;
}

.output-field-row {
  width: 100%;
}

.output-path-field {
  width: 100%;
  box-sizing: border-box;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 6px 10px;
  color: #a1a1aa;
  font-size: 10.5px;
  font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
  outline: none;
  cursor: text;
  user-select: all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.output-path-field:focus {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.license-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.license-input-group label {
  font-size: 10px;
  font-weight: 600;
  color: #8e8e8e;
}

.license-input-group input {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 12px;
  color: #FFFFFF;
  font-size: 12px;
  font-family: monospace;
  letter-spacing: 1px;
  outline: none;
}

.license-input-group input:focus {
  border-color: #F40500;
}

.input-hint {
  font-size: 9px;
  color: #555555;
}

.license-alert {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 10px;
}

.license-alert.error {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.license-alert.success {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.license-alert.info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* SSO Login & Profile Components */
.sso-login-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sso-pitch-box {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}

.sso-pitch-title {
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sso-pitch-desc {
  font-size: 10px;
  color: #8e8e8e;
  line-height: 1.5;
  margin: 0;
}

.btn-web-sso {
  width: 100%;
  padding: 12px 16px !important;
  font-size: 12px !important;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.sso-profile-card {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sso-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sso-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #000000;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sso-profile-meta {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sso-user-name {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sso-user-email {
  font-size: 10px;
  color: #707070;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sso-tier-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  margin-top: 4px;
  align-self: flex-start;
}

.sso-status-note {
  font-size: 10px;
  color: #999999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sso-logout-btn {
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #a0a0a0 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  font-size: 11px !important;
  font-weight: 600;
  margin-top: 4px;
}

.sso-logout-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
}

/* Manual Key Collapsible Accordion */
.manual-key-accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.btn-toggle-manual-key {
  width: 100%;
  background: none;
  border: none;
  color: #707070;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}

.btn-toggle-manual-key:hover {
  color: #b0b0b0;
}

.manual-key-content {
  margin-top: 8px;
}

.btn-activate-license {
  flex: 1;
  background: #F40500;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-activate-license:hover {
  background: #e5e5e5;
}

.btn-deactivate-license {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #8e8e8e;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 10px;
  cursor: pointer;
}

.btn-deactivate-license:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.modal-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #707070;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.link-buy-license {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: 600;
}

/* Help Steps in Modal */
.help-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
}

.step-num {
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 2px 6px;
  flex-shrink: 0;
  line-height: 1.2;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.step-desc {
  font-size: 11px;
  color: #8e8e8e;
  line-height: 1.4;
}

.step-desc code {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
}

/* Monochromatic Icons & Spinners */
.pulse-dot-mono {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  margin-right: 6px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.mono-spin {
  display: inline-block;
  animation: mono-rotate 1.2s linear infinite;
  color: #FFFFFF;
  font-size: 12px;
}

@keyframes mono-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.folder-svg {
  color: #8e8e8e;
  flex-shrink: 0;
}

.search-svg {
  color: #707070;
  flex-shrink: 0;
}

.accordion-svg {
  color: #8e8e8e;
  flex-shrink: 0;
}

.empty-icon-svg {
  color: #707070;
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
}

.modal-svg {
  color: #FFFFFF;
  flex-shrink: 0;
}

.item-note-icon {
  color: #8e8e8e;
  margin-right: 4px;
}

/* ==========================================================================
   TAB VIEW SYSTEM & MULTI-VIEW WORKSPACE (OPTION 2)
   ========================================================================== */
.tab-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  animation: fadeInTabView 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInTabView {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Preset Catalog Grid (Tab 2) */
.preset-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.preset-catalog-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  cursor: pointer;
}

.preset-catalog-card:hover {
  background: #181818;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.preset-catalog-card.active {
  border-color: #F40500;
  background: #191919;
  box-shadow: 0 0 16px rgba(244, 5, 0, 0.10);
}

.catalog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.catalog-badge {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
}

.catalog-badge.rec {
  background: #F40500;
  color: #FFFFFF;
}

.catalog-badge.neutral {
  background: rgba(255, 255, 255, 0.08);
  color: #8e8e8e;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.catalog-badge.club {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.catalog-icon {
  color: #FFFFFF;
  display: flex;
  align-items: center;
}

.catalog-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.catalog-card-subtitle {
  font-size: 10px;
  color: #8e8e8e;
  font-weight: 500;
  margin-bottom: 10px;
}

.catalog-card-desc {
  font-size: 11px;
  color: #707070;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.catalog-specs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

.spec-label {
  color: #707070;
  font-weight: 500;
}

.spec-val {
  color: #FFFFFF;
  font-weight: 600;
  text-align: right;
}

.catalog-card-footer {
  margin-top: auto;
}

.btn-use-preset {
  width: 100%;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 8px 14px;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preset-catalog-card.active .btn-use-preset,
.btn-use-preset:hover {
  background: #F40500;
  color: #000000;
  border-color: #F40500;
}

/* History View (Tab 3) */
.history-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.history-stat-pills {
  display: flex;
  gap: 8px;
}

.history-badge-pill {
  font-size: 10px;
  color: #8e8e8e;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 10px;
}

.history-badge-pill code {
  color: #FFFFFF;
  font-family: monospace;
}

.history-library-card {
  margin-top: 4px;
}

.history-info-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 4px;
}

.info-callout-icon {
  color: #8e8e8e;
  flex-shrink: 0;
  margin-top: 1px;
}

.info-callout-text {
  font-size: 11px;
  color: #8e8e8e;
  line-height: 1.5;
}

.info-callout-text strong {
  color: #FFFFFF;
}

/* ═══════════════════════════════════════════════════════════════════
   STARTING / BOOT SPLASH SCREEN (SESSION RESOLVER)
═══════════════════════════════════════════════════════════════════ */
.app-boot-splash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  border-radius: 14px;
  overflow: hidden;
  background-color: #0A0A0C;
  background-image: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.04) 0%, rgba(10, 10, 12, 1) 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  user-select: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.window-frame.maximized .app-boot-splash {
  border-radius: 0px !important;
}

.app-boot-splash.exiting {
  opacity: 0 !important;
  filter: blur(16px);
  pointer-events: none;
}

.boot-splash-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: bootCenterFadeIn 0.35s ease-out;
}

@keyframes bootCenterFadeIn {
  0% { opacity: 0; transform: scale(0.96) translateY(6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.boot-logo-wrapper {
  margin-bottom: 20px;
  animation: logoBreathGlow 2.5s infinite ease-in-out;
}

.boot-logo-box {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-logo-img {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 28px rgba(244, 5, 0, 0.30));
}

.boot-logo-symbol {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -1px;
}

.boot-brand-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.boot-brand-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
}

.boot-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

@keyframes spinnerRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.boot-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #F40500;
  border-radius: 50%;
  animation: spinnerRotate 0.75s linear infinite;
  flex-shrink: 0;
  display: inline-block;
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════════════
   FULL-WINDOW APP LOCK & WELCOME GATE (KLEPTO LUXURY MONOCHROME)
═══════════════════════════════════════════════════════════════════ */
.app-workspace-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0c0c0c;
}

.app-lock-gate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  border-radius: 14px;
  overflow: hidden;
  background-color: #0A0A0C;
  background-image: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.035) 0%, rgba(10, 10, 12, 1) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  user-select: none;
  opacity: 1 !important;
  transition: border-radius 0.15s ease;
}

.window-frame.maximized .app-lock-gate {
  border-radius: 0px !important;
}

.app-lock-gate.exiting {
  animation: welcomeUltraSmoothExit 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  pointer-events: none;
}

/* Keyframe Animations */
@keyframes welcomeSilkFadeIn {
  0% { opacity: 0; transform: scale(0.98) translateY(10px); filter: blur(8px); }
  60% { opacity: 0.95; }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0px); }
}

@keyframes welcomeUltraSmoothExit {
  0% { opacity: 1; transform: scale(1); filter: blur(0px); }
  100% { opacity: 0; transform: scale(1.03); filter: blur(24px); }
}

@keyframes logoBreathGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(255,255,255,0)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 0 26px rgba(255,255,255,0.3)); }
}

/* Topbar Drag & Control Area */
.lock-gate-topbar {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  -webkit-app-region: drag;
  z-index: 100000;
}

.lock-gate-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.lock-brand-logo {
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.lock-brand-sep {
  color: rgba(255, 255, 255, 0.2);
}

.lock-brand-title {
  color: #8e8e8e;
  font-weight: 600;
}

.lock-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 10px;
  color: #a1a1a6;
  font-weight: 500;
  margin-left: 6px;
}

.lock-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff453a;
  box-shadow: 0 0 8px rgba(255, 69, 58, 0.5);
}

.lock-status-chip.unlocked .lock-chip-dot {
  background: #30d158;
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.5);
}

.lock-window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-app-region: no-drag;
}

/* Center Hero Card - Ultra Clean & Borderless */
.lock-gate-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 400px;
  width: 90%;
  margin: auto 0;
  animation: welcomeSilkFadeIn 0.5s ease-out;
}

.lock-logo-wrapper {
  margin-bottom: 24px;
  animation: logoBreathGlow 3s infinite ease-in-out;
}

.lock-logo-box {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-logo-img {
  height: 68px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 30px rgba(244, 5, 0, 0.32));
}

.lock-logo-symbol {
  font-size: 30px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -1px;
}

.lock-hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #FFFFFF;
  margin: 0 0 6px 0;
}

.lock-hero-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  margin: 0 0 28px 0;
  max-width: 340px;
}

/* Action Area - Clean & Borderless */
.lock-action-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-lock-sso {
  width: 100%;
  height: 48px;
  border-radius: 50px;
  background: #000000 !important;
  color: #FFFFFF !important;
  border: none !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-lock-sso:hover {
  background: #000000 !important;
  color: #FFFFFF !important;
  transform: scale(1.02);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

.btn-lock-sso:active {
  transform: scale(0.99);
  background: #000000 !important;
}

.btn-lock-sso:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.lock-auth-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}

.lock-auth-status-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.lock-auth-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #F40500;
  border-radius: 50%;
  animation: spinnerRotate 0.75s linear infinite;
  flex-shrink: 0;
  display: inline-block;
  box-sizing: border-box;
}

.btn-cancel-auth {
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1a6;
  border: none !important;
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cancel-auth:hover {
  background: rgba(255, 69, 58, 0.15);
  color: #ff453a;
  transform: scale(1.02);
}

.btn-cancel-auth:active {
  transform: scale(0.98);
}

.btn-lock-manual-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 8px;
  margin-top: 4px;
}

.btn-lock-manual-toggle:hover {
  color: #FFFFFF;
}

.lock-manual-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #141417;
  border: none;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
}

.lock-manual-hwid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
}

.lock-manual-hwid-row code {
  font-family: monospace;
  font-size: 10px;
  color: #a1a1a6;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  border: none;
}

.lock-hwid-copy-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tombol salin di baris HWID gerbang: tinggi dibatasi setara pil ID (17px)
   agar baris tidak tumbuh dan tidak ada elemen lain yang bergeser. */
.lock-hwid-copy-group .btn-copy-hwid {
  height: 15px;
  padding: 0 8px;
  line-height: 13px;
}

.lock-manual-input-row {
  display: flex;
  gap: 8px;
}

.lock-manual-input-row input {
  flex: 1;
  height: 38px;
  background: #1A1A1E;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  color: #FFFFFF;
  font-size: 11px;
  font-family: monospace;
  letter-spacing: 0.8px;
}

.lock-manual-input-row input:focus {
  outline: none;
  background: #202025;
}

.btn-lock-activate {
  padding: 0 16px;
  height: 38px;
  background: #F40500;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-lock-activate:hover {
  background: #323238;
}

.lock-error-alert {
  width: 100%;
  background: rgba(255, 69, 58, 0.12);
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  color: #ff6b6b;
  text-align: left;
}

/* Bottom Footer */
.lock-gate-footer {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.lock-footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.lock-footer-app {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}

.lock-footer-right {
  text-align: right;
}

/* ==========================================================================
   AVATAR FLOATING DROPDOWN MENU (LUXURY MONOCHROME - BORDERLESS CLEAN)
   ========================================================================== */
.avatar-dropdown-wrapper {
  position: relative;
  display: inline-block;
  z-index: 200;
}

.avatar-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 250px;
  background: #151515;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: avatarMenuFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes avatarMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 10px 8px;
}

.dropdown-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.dropdown-user-info {
  overflow: hidden;
}

.dropdown-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-email {
  font-size: 11px;
  color: #777777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.dropdown-tier-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: #202020;
  color: #22c55e;
  padding: 2px 7px;
  border-radius: 50px;
}

.dropdown-expiry-text {
  font-size: 10px;
  color: #888888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
  font-weight: 500;
}

.sso-expiry-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.sso-expiry-icon {
  font-size: 11px;
}

.sso-expiry-text {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.dropdown-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}

.avatar-menu-item {
  width: 100%;
  background: transparent;
  border: none;
  color: #cccccc;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.avatar-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.avatar-menu-item .menu-icon {
  font-size: 13px;
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-menu-item .menu-label {
  flex: 1;
}

.avatar-menu-item .menu-ext-icon {
  font-size: 11px;
  color: #666666;
}

.avatar-menu-item.item-danger {
  color: #f87171;
}

.avatar-menu-item.item-danger:hover {
  background: rgba(248, 113, 113, 0.12);
  color: #ef4444;
}

/* ==========================================================================
   4-STEP WIZARD WORKFLOW STYLES (100% LUXURY MONOCHROME Resync)
   ========================================================================== */

.wizard-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wizard-header {
  padding: 22px 24px 18px;
  background: #141416;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

/* Top Stepper Progress Bar */
.wizard-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #0D0D0F;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.2s ease;
  user-select: none;
}

.stepper-item:hover {
  opacity: 0.9;
}

.stepper-item.active {
  opacity: 1;
}

.stepper-item.completed {
  opacity: 0.85;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1C1C1F;
  color: #71717A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.stepper-item.active .step-num {
  background: #F40500;
  color: #FFFFFF;
  border-color: #F40500;
  box-shadow: 0 0 12px rgba(244, 5, 0, 0.4);
}

.stepper-item.completed .step-num {
  background: #27272A;
  color: #FAFAFA;
  border-color: rgba(255, 255, 255, 0.3);
}

.step-text {
  display: flex;
  flex-direction: column;
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: #A1A1AA;
  line-height: 1.2;
}

.stepper-item.active .step-label {
  color: #FFFFFF;
}

.step-status {
  font-size: 10px;
  color: #71717A;
  font-weight: 500;
  margin-top: 2px;
}

.stepper-item.active .step-status {
  color: #D4D4D8;
}

.stepper-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  min-width: 20px;
  transition: background 0.2s ease;
}

.stepper-line.completed {
  background: rgba(255, 255, 255, 0.3);
}

/* Wizard Panes */
.wizard-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: fadeInPane 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pane-content {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.pane-headline {
  margin-bottom: 2px;
}

.pane-step-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #A1A1AA;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pane-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  margin: 0 0 6px 0;
}

.pane-subtitle {
  font-size: 13px;
  color: #A1A1AA;
  margin: 0;
  line-height: 1.5;
}

/* Format Details Callout */
.format-details-callout {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.callout-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.callout-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #D4D4D8;
}

.callout-text strong {
  color: #FFFFFF;
  margin-right: 6px;
}

/* Step 4 Layout Grid */
.step4-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .step4-layout-grid {
    grid-template-columns: 1fr;
  }
}

.metadata-form-box,
.summary-review-card {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.meta-box-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-box-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.meta-box-desc {
  font-size: 11.5px;
  color: #71717A;
}

.meta-grid-vertical {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meta-subgroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-subgroup-title {
  font-size: 11px;
  font-weight: 700;
  color: #A1A1AA;
}

.title-mode-segmented {
  display: flex;
  gap: 8px;
  background: #0E0E10;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-title-mode {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  color: #8E8E93;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-title-mode .mode-dot {
  font-size: 8px;
  opacity: 0.4;
}

.btn-title-mode.active {
  background: #27272A;
  color: #FFFFFF;
}

.btn-title-mode.active .mode-dot {
  color: #FFFFFF;
  opacity: 1;
}

.custom-titles-drawer {
  background: #0E0E10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.drawer-hint {
  font-size: 10.5px;
  color: #71717A;
}

.custom-titles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-title-index {
  font-size: 11px;
  color: #71717A;
  font-weight: 700;
  width: 20px;
}

.custom-title-input {
  flex: 1;
  background: #18181B;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  color: #FFFFFF;
  font-size: 11px;
  outline: none;
}

.custom-title-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.input-hint-micro {
  font-size: 10px;
  color: #71717A;
  margin-top: 2px;
}

/* Cover Art Picker Box */
.cover-art-picker-box {
  background: #0E0E10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.cover-art-picker-box.drag-over {
  border-color: #F40500 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: 0 0 16px rgba(244, 5, 0, 0.10);
}

.cover-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cover-picker-title {
  font-size: 11px;
  font-weight: 700;
  color: #A1A1AA;
}

.cover-picker-badge {
  font-size: 9.5px;
  color: #71717A;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.cover-art-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cover-preview-wrapper {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.cover-art-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-remove-cover {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-remove-cover:hover {
  background: #FF453A;
}

.cover-upload-cta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.btn-select-cover {
  background: #18181B;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  transition: all 0.2s ease;
}

.btn-select-cover:hover {
  background: #27272A;
  border-color: rgba(255, 255, 255, 0.25);
}

.cover-upload-hint {
  font-size: 9.5px;
  color: #71717A;
  line-height: 1.3;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.summary-badge-ready {
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: #8E8E93;
}

.summary-val {
  color: #FFFFFF;
  font-weight: 700;
}

.summary-val.text-success {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
}

.summary-toggle-row {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Sticky Wizard Bottom Navigation Bar */
.wizard-bottom-bar {
  background: #141416;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.bottom-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bottom-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-summary-chip {
  font-size: 12px;
  font-weight: 600;
  color: #A1A1AA;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 50px;
}

.btn-wizard-next {
  background: #F40500;
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(244, 5, 0, 0.35);
}

.btn-wizard-next:hover:not(:disabled) {
  background: #E4E4E7;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-wizard-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-wizard-prev {
  background: transparent;
  color: #A1A1AA;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-wizard-prev:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

/* Processing Pane */
.processing-pane-content {
  padding: 40px 24px;
}

.processing-hero-state {
  text-align: center;
  margin-bottom: 24px;
}

.processing-pulse-icon {
  margin-bottom: 12px;
}

.mono-spin-large {
  font-size: 40px;
  color: #FFFFFF;
  display: inline-block;
  animation: monoSpin 1.4s linear infinite;
}

.processing-state-title {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.processing-state-desc {
  font-size: 13px;
  color: #A1A1AA;
  margin: 0;
}

.processing-actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.btn-new-batch-restart {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-new-batch-restart:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #FFFFFF;
}

/* ==========================================================================
   LANGUAGE SWITCHER (ID / EN) - BILINGUAL STUDIO V1.40
   ========================================================================== */
.resync-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2px 7px;
  margin-right: 8px;
  -webkit-app-region: no-drag;
  user-select: none;
}

.resync-lang-btn {
  background: transparent;
  border: none;
  color: #707070;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 1px 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.resync-lang-btn:hover {
  color: #ffffff;
}

.resync-lang-btn.active {
  color: #ffffff;
  background: rgba(244, 5, 0, 0.30);
  text-shadow: 0 0 6px rgba(244, 5, 0, 0.5);
}

.resync-lang-sep {
  color: #444444;
  font-size: 9px;
  line-height: 1;
}

/* ==========================================================================
   COSU COVER STEALTH ENGINE INTEGRATION (PRO EXCLUSIVE)
   ========================================================================== */

/* 1. Mode Switcher in Workspace Top Bar */
.workspace-mode-switcher {
  display: inline-flex;
  align-items: center;
  background: #101014;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 3px;
  gap: 3px;
}

.btn-mode-nav {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: #8e8e8e;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-mode-nav:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.btn-mode-nav.active {
  color: #FFFFFF;
  background: #F40500;
  box-shadow: 0 2px 12px rgba(244, 5, 0, 0.35);
}

.badge-mode-pro {
  font-size: 8px;
  font-weight: 800;
  background: #000000;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 2px;
}

.btn-mode-nav.active .badge-mode-pro {
  background: #000000;
  color: #FFFFFF;
}

/* 2. CoSu Tab Layout & Components */
.cosu-hero-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cosu-pro-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 50px;
}

.cosu-dropzone-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(18, 18, 22, 0.35);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 14px;
}

.cosu-dropzone-container:hover, .cosu-dropzone-container.dragover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.cosu-dropzone-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}

.cosu-dropzone-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.cosu-dropzone-desc {
  font-size: 12px;
  color: #a1a1aa;
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.cosu-dropzone-btn {
  padding: 10px 26px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
  background: #F40500;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(244, 5, 0, 0.35);
  transition: all 0.2s ease;
}

.cosu-dropzone-btn:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.cosu-dropzone-formats {
  font-size: 10px;
  color: #71717a;
  margin-top: 18px;
  letter-spacing: 0.5px;
}

.cosu-studio-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.cosu-track-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
}

.cosu-track-main-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cosu-track-disc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1c1c22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cosu-track-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  max-width: 450px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cosu-track-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.cosu-track-chip {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1aa;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cosu-btn-switch {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cosu-btn-switch:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

/* 3. Waveform Card */
.cosu-waveform-card {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cosu-waveform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cosu-waveform-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cosu-waveform-heading {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.cosu-sweet-spot-badge {
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 7px;
  border-radius: 20px;
}

.cosu-waveform-viewport-wrapper {
  position: relative;
  width: 100%;
  height: 125px;
  background: #08080a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  user-select: none;
}

.cosu-waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.cosu-golden-window-box {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  left: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
  cursor: grab;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.cosu-golden-window-box:active {
  cursor: grabbing;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.cosu-window-tag {
  font-size: 8px;
  font-weight: 800;
  color: #FFFFFF;
  background: #F40500;
  padding: 1px 5px;
  border-radius: 3px;
  pointer-events: none;
}

.cosu-window-center-grip {
  display: flex;
  gap: 3px;
  pointer-events: none;
}

.cosu-grip-bar {
  width: 2px;
  height: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
}

.cosu-window-time-label {
  font-size: 9px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 4px;
  border-radius: 3px;
  pointer-events: none;
}

/* Resize Handles (Kiri & Kanan) */
.cosu-window-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  cursor: ew-resize;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.cosu-window-resize-handle.handle-left {
  left: -7px;
}

.cosu-window-resize-handle.handle-right {
  right: -7px;
}

.cosu-window-resize-handle::after {
  content: '';
  width: 4px;
  height: 30px;
  background: #F40500;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 10px rgba(244, 5, 0, 0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}

.cosu-window-resize-handle:hover::after,
.cosu-window-resize-handle:active::after {
  transform: scaleY(1.25);
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

.cosu-window-tag.safe {
  background: #22c55e;
  color: #000000;
}

.cosu-window-tag.warning {
  background: #f59e0b;
  color: #000000;
}

.cosu-time-box-val.safe {
  color: #22c55e !important;
  font-weight: 700;
}

.cosu-time-box-val.warning {
  color: #f59e0b !important;
  font-weight: 700;
}

.cosu-playhead-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #F40500;
  box-shadow: 0 0 8px #F40500;
  pointer-events: none;
  z-index: 15;
  display: none;
}

.cosu-timeline-labels-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #71717a;
  padding: 0 2px;
}

.cosu-timing-control-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px;
  gap: 14px;
}

.cosu-timing-boxes-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cosu-time-box-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cosu-time-box-label {
  font-size: 10px;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
}

.cosu-time-box-val {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.cosu-time-box-val.locked {
  color: #e4e4e7;
}

.cosu-timing-presets-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cosu-preset-label {
  font-size: 10px;
  color: #71717a;
}

.cosu-preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cosu-preset-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.cosu-preset-chip.active {
  background: #F40500 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-color: #F40500 !important;
  box-shadow: 0 0 12px rgba(244, 5, 0, 0.35);
}

/* 4. Player Toolbar */
.cosu-player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
}

.cosu-player-left-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cosu-btn-play {
  background: #F40500;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(244, 5, 0, 0.35);
  transition: all 0.2s ease;
}

.cosu-btn-play:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.cosu-btn-play.playing {
  background: #e4e4e7;
}

.cosu-player-right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cosu-dsp-toggle-wrapper {
  display: flex;
  align-items: center;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 2px;
}

.cosu-dsp-toggle-btn {
  background: transparent;
  border: none;
  font-size: 10px;
  font-weight: 600;
  color: #71717a;
  padding: 5px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cosu-dsp-toggle-btn.active {
  background: #F40500;
  color: #FFFFFF;
}


/* 4b. CoSu Preset Toggle Bar (Original vs Staccato Guide) */
.cosu-preset-toggle-bar {
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cosu-preset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.cosu-preset-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cosu-preset-icon {
  font-size: 14px;
}

.cosu-preset-heading {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.cosu-preset-hint {
  font-size: 11px;
  color: #71717a;
}

.cosu-preset-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 960px) {
  .cosu-preset-toggle-grid {
    grid-template-columns: 1fr;
  }
}

.cosu-preset-card-btn {
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.cosu-preset-card-btn:hover {
  background: #18181e;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.cosu-preset-card-btn.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: #F40500;
  box-shadow: 0 0 20px rgba(244, 5, 0, 0.10);
}

.cosu-preset-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cosu-preset-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.cosu-preset-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  text-transform: uppercase;
}

.cosu-preset-badge.pulse {
  background: rgba(255, 215, 0, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.cosu-preset-badge.special {
  background: rgba(244, 5, 0, 0.15);
  color: #F86966;
  border: 1px solid rgba(244, 5, 0, 0.35);
}

.cosu-preset-card-desc {
  font-size: 11px;
  color: #71717a;
  line-height: 1.4;
  margin: 0;
  padding-right: 18px;
}

.cosu-preset-card-btn.active .cosu-preset-card-desc {
  color: #a1a1aa;
}

.cosu-preset-indicator {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 9px;
  color: #27272a;
  transition: all 0.2s ease;
}

.cosu-preset-card-btn.active .cosu-preset-indicator {
  color: #22c55e;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

/* 5. Action Export Bar */
.cosu-export-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 20px;
}

.cosu-export-info-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.cosu-export-info-desc {
  font-size: 11px;
  color: #a1a1aa;
}

.cosu-btn-export-seed {
  background: #F40500;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 26px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(244, 5, 0, 0.35);
  transition: all 0.2s ease;
}

.cosu-btn-export-seed:hover {
  background: #e4e4e7;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

.cosu-btn-export-seed:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   5. STEALTH LYRICS CLOAKER (GOOGLE TRANSLATE STYLE WORKSPACE)
   Full-Height, Borderless & Ergonomic Editorial Split Layout
   ========================================================================== */

#view-cosu-lyrics {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: calc(100vh - 175px);
  padding: 0;
  box-sizing: border-box;
}

.cosu-translate-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #111115;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  min-height: 540px;
  margin-top: 8px;
}

/* Unified Top Language Bar (Google Translate Bar) */
.translate-nav-bar {
  background: #141418;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.translate-source-langs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.translate-bar-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #71717a;
  text-transform: uppercase;
}

/* Language Dropdown Selector (Google Translate Compact Luxury Style) */
.translate-dropdown-wrapper {
  position: relative;
  display: inline-flex;
}

.translate-lang-dropdown-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.translate-lang-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.translate-lang-dropdown-btn.open {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.dropdown-chevron-icon {
  width: 14px;
  height: 14px;
  stroke: #a1a1aa;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.translate-lang-dropdown-btn.open .dropdown-chevron-icon {
  transform: rotate(180deg);
  stroke: #ffffff;
}

.translate-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 6px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: translateMenuFade 0.15s ease;
}

@keyframes translateMenuFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-option-item {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.14s ease;
  text-align: left;
  width: 100%;
}

.lang-option-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lang-option-item.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 700;
}

.lang-option-item .option-check {
  font-size: 12px;
  color: #4ade80;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.lang-option-item.active .option-check {
  opacity: 1;
}

.cosu-flag-svg {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.translate-lang-dropdown-btn #cosu-selected-lang-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.lang-option-item .option-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.translate-arrow-divider {
  color: #52525b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.translate-arrow-divider svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.translate-target-langs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.translate-target-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.target-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

/* Dual Editorial Panels Grid */
.translate-panels-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #09090b;
  min-height: 480px;
}

.translate-panel {
  display: flex;
  flex-direction: column;
  background: #111115;
  padding: 20px 28px;
  min-height: 480px;
}

.translate-panel.target-panel {
  background: #101014;
}

/* Panel Header Strip */
.panel-header-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-tag-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-tag-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #71717a;
  text-transform: uppercase;
}

.panel-tag-title.safe {
  color: #4ade80;
}

.panel-mode-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 9px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.panel-shield-chip {
  font-size: 10px;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.panel-tools-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-panel-action {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 6px;
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-panel-action svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

.btn-panel-action:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.panel-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #a1a1aa;
}

/* Large Full-Height Textareas */
.translate-textarea-wrapper {
  flex: 1;
  display: flex;
  margin-bottom: 12px;
}

.translate-textarea {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: #FFFFFF;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.75;
  padding: 10px 4px;
  letter-spacing: 0.1px;
}

.translate-textarea::placeholder {
  color: #3f3f46;
  font-size: 13px;
  line-height: 1.6;
}

.translate-textarea.result {
  color: #86efac;
  font-weight: 500;
}

/* Panel Footer Toolbar */
.panel-footer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
  gap: 10px;
}

.panel-stats {
  font-size: 11.5px;
  color: #71717a;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
}

.panel-stats .stat-dot {
  color: #3f3f46;
}

.panel-stats.target-stats {
  color: #86efac;
}

.btn-mini-cloak {
  padding: 7px 18px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-mini-cloak svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.cosu-copy-big-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  border-radius: 50px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cosu-copy-big-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.cosu-copy-big-btn.copied {
  background: #22c55e !important;
  color: #000000 !important;
}

@media (max-width: 960px) {
  .translate-panels-grid {
    grid-template-columns: 1fr;
  }
  .translate-textarea {
    min-height: 260px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MULTI-PLATFORM RESPONSIVE STYLES (MOBILE-FIRST & TABLET UX)
   SECTION 10: Strict Ergonomics, Zero Regression Desktop (>1024px)
   ═══════════════════════════════════════════════════════════════════ */

/* 1. DESKTOP & WIDE SCREENS (>768px): Hide Mobile Bottom Nav */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

/* 2. TABLET ADAPTIVE SCREEN (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .workstation-container {
    padding: 0 12px;
  }
  .kpi-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .cosu-cloaker-body {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .cosu-cloaker-action-col {
    width: 100% !important;
  }
  .cosu-btn-cloak-action {
    width: 100% !important;
    min-height: 48px !important;
    flex-direction: row !important;
    border-radius: 50px !important;
    justify-content: center !important;
  }
  .cosu-preset-toggle-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 12px !important;
  }
  .cosu-timing-control-panel {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .cosu-timing-presets-group {
    justify-content: flex-start !important;
  }
  .btn-pill-black, .btn-pill-glass {
    min-height: 44px;
  }
}

/* 3. MOBILE SMARTPHONE SCREEN (<768px): Mobile-First UX */
@media (max-width: 768px) {
  /* Zero horizontal overflow lock */
  html, body, .window-frame, .app-workspace-shell, .workstation-container, .main-workspace-content {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .workstation-container {
    flex-direction: column !important;
    height: auto !important;
    flex: 1 1 auto !important;
  }

  .window-frame {
    border-radius: 0px !important;
    border: none !important;
  }

  /* 3.1 OFF-CANVAS DRAWER SIDEBAR */
  .workstation-sidebar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 290px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 100000 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: #0d0d10 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.09) !important;
    box-shadow: none !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    padding: 14px 12px 14px 12px !important;
  }

  .workstation-sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 16px 0 50px rgba(0, 0, 0, 0.88) !important;
  }

  .btn-sidebar-collapse {
    display: none !important;
  }

  .btn-sidebar-mobile-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    font-size: 15px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
  }

  .btn-sidebar-mobile-close:active {
    background: rgba(255, 255, 255, 0.12);
  }

  .sidebar-mobile-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .sidebar-mobile-backdrop.active {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* 3.2 MOBILE TOPBAR WITH HAMBURGER & TITLE */
  .mobile-top-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    gap: 8px;
  }

  .mobile-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .btn-mobile-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.18s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .btn-mobile-hamburger:active {
    transform: scale(0.88);
    opacity: 0.65;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .btn-mobile-hamburger svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
  }

  .mobile-header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .mobile-header-brand .brand-square-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 11px;
    flex-shrink: 0;
  }

  .mobile-header-titles {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
  }

  .mobile-header-app {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    flex-shrink: 0;
  }

  .mobile-header-sep {
    color: #52525b;
    font-size: 12px;
    flex-shrink: 0;
  }

  .mobile-header-page {
    font-size: 13px;
    font-weight: 700;
    color: #a1a1aa;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .mobile-lang-switcher {
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
  }

  .mobile-lang-switcher .resync-lang-btn {
    font-size: 10px;
    padding: 2px 6px;
  }

  .mobile-profile-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #18181b;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 3.3 CLEAN WORKSPACE (ZERO CLUTTER, NO BOTTOM NAV) */
  .mobile-bottom-nav {
    display: none !important;
  }

  .workspace-mode-switcher {
    display: none !important;
  }

  .workspace-scroll-area {
    padding-bottom: 24px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Floating Audio Player di Histori Ekspor untuk Layar HP */
  .history-floating-player {
    bottom: 16px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 14px !important;
  }

  /* Hide Desktop Menus, Clutter, and Window Control Dots on Mobile */
  .native-menu-nav, 
  .live-clock, 
  .bottom-status-bar, 
  .breadcrumb-sep, 
  .breadcrumb-active,
  .top-menu-strip .window-controls .window-dot-btn,
  .lock-window-controls .window-dot-btn,
  .window-dot-btn,
  #btn-lock-min,
  #btn-lock-max,
  #btn-lock-close,
  #btn-min,
  #btn-max,
  #btn-close {
    display: none !important;
  }

  .top-menu-strip {
    padding: 8px 12px;
    height: auto;
    min-height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .workspace-top-bar {
    height: auto !important;
    min-height: 52px !important;
    padding: 6px 12px 6px 12px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    background: #0c0c0c !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin-bottom: 8px !important;
    position: relative !important;
    z-index: 5 !important;
  }

  /* Sembunyikan breadcrumb desktop dan action group desktop di header mobile */
  .workspace-top-bar .breadcrumb-group,
  .workspace-top-bar .top-action-group {
    display: none !important;
  }

  .badge-mode-pro {
    display: none !important;
  }

  /* CoSu Header Row Responsif */
  .cosu-hero-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .cosu-pro-shield-badge {
    margin-top: 4px !important;
    align-self: flex-start !important;
  }

  .welcome-hero-banner {
    padding: 14px 12px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .welcome-title {
    font-size: 18px !important;
    line-height: 1.35;
  }

  .welcome-subtitle {
    font-size: 12px !important;
    line-height: 1.5;
  }

  /* Strict Touch Target Ergonomics (min 44px - 48px) */
  .btn-pill-black, 
  .btn-pill-glass, 
  .btn-pill-play, 
  .cosu-btn-export-seed, 
  .cosu-btn-cloak-action, 
  .cosu-dropzone-btn, 
  .cosu-btn-switch, 
  .btn-wizard-next, 
  .btn-wizard-prev,
  .btn-quick-action,
  .btn-lock-sso {
    min-height: 46px !important;
    font-size: 13px !important;
    border-radius: 50px !important;
  }

  /* Tab 1: Audio Sanitizer & CoSu Audio Mobile UI */
  .cosu-dropzone-container {
    padding: 28px 16px;
    margin: 12px 0;
    border-radius: 14px;
  }

  .cosu-dropzone-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .cosu-dropzone-desc {
    font-size: 12px;
    line-height: 1.5;
  }

  .cosu-dropzone-btn {
    width: 100%;
    margin-top: 14px;
  }

  .cosu-track-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .cosu-btn-switch {
    width: 100%;
    justify-content: center;
  }

  .cosu-waveform-card {
    padding: 14px;
  }

  .cosu-timing-control-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cosu-timing-boxes-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }

  .cosu-time-box-item {
    padding: 8px 6px;
    text-align: center;
  }

  .cosu-time-box-val {
    font-size: 12px;
  }

  .cosu-timing-presets-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .cosu-preset-chip {
    min-height: 38px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .cosu-player-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }

  .cosu-player-left-controls {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .cosu-btn-play {
    flex: 1;
    justify-content: center;
  }

  .cosu-player-right-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .cosu-dsp-toggle-wrapper {
    width: 100%;
    display: flex;
  }

  .cosu-dsp-toggle-btn {
    flex: 1;
    min-height: 40px;
    justify-content: center;
  }

  /* Preset Card Selector Vertical Stack */
  .cosu-preset-toggle-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .cosu-preset-card-btn {
    padding: 14px;
    min-height: 48px;
  }

  /* Export Action Bar Vertical Stack */
  .cosu-export-card-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 14px;
  }

  .cosu-export-card-bar > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .cosu-export-card-bar button {
    width: 100%;
    justify-content: center;
  }

  /* Tab 2: Stealth Lyrics Cloaker Mobile-First */
  .cosu-lyrics-cloaker-card {
    padding: 14px;
    border-radius: 14px;
  }

  .cosu-cloaker-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cosu-cloaker-lang-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .cosu-lang-chip {
    flex: 1 1 calc(50% - 6px);
    min-height: 40px;
    text-align: center;
    font-size: 11px;
    justify-content: center;
  }

  .cosu-cloaker-body {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .cosu-cloaker-action-col {
    width: 100% !important;
    padding: 2px 0 !important;
  }

  .cosu-btn-cloak-action {
    width: 100% !important;
    min-height: 48px !important;
    flex-direction: row !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    gap: 8px !important;
  }

  .cosu-cloaker-textarea {
    min-height: 140px;
    font-size: 14px !important; /* Prevents auto zoom in mobile browser */
    padding: 12px;
  }

  .cosu-btn-mini-action.copy {
    min-height: 38px;
    padding: 6px 16px;
    font-size: 12px;
    border-radius: 50px;
  }

  /* Studio Remaster View on Mobile */
  .kpi-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .kpi-card {
    padding: 10px !important;
  }

  .quick-actions-row {
    flex-direction: column;
    gap: 8px;
  }

  .btn-quick-action {
    width: 100%;
    justify-content: center;
  }

  .wizard-stepper-bar {
    overflow-x: auto;
    padding: 8px 2px;
    gap: 4px;
  }

  .stepper-item {
    min-width: 65px;
  }

  .step-num {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .step-label {
    font-size: 10px;
  }

  .step-status {
    display: none;
  }

  .step4-layout-grid {
    grid-template-columns: 1fr !important;
  }

  .wizard-bottom-bar {
    flex-direction: column;
    gap: 8px;
  }

  .bottom-bar-left, .bottom-bar-right {
    width: 100%;
  }

  .btn-wizard-prev, .btn-wizard-next {
    width: 100%;
    justify-content: center;
  }

  /* ─────────────────────────────────────────────────────────────────
     COSU EXPORT SUCCESS MODAL (MOBILE BOTTOM SHEET & ERGONOMIC TOUCH)
     ───────────────────────────────────────────────────────────────── */
  #cosu-export-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.88) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 100000 !important;
  }

  #cosu-export-modal .cosu-modal-card {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    border-radius: 24px 24px 0 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-bottom: none !important;
    background: #0d0e12 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9) !important;
    animation: cosuSheetSlideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  @keyframes cosuSheetSlideUp {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
  }

  .mobile-sheet-drag-handle {
    display: block !important;
    width: 42px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.32);
    margin: 0 auto 12px auto;
  }

  #cosu-export-modal .cosu-modal-inner {
    padding: 12px 18px max(24px, env(safe-area-inset-bottom, 24px)) 18px !important;
  }

  #cosu-export-modal .modal-header .modal-title {
    font-size: 15px !important;
    letter-spacing: -0.3px;
  }

  #cosu-export-modal .modal-header .modal-subtitle {
    font-size: 11px !important;
    color: #a1a1aa !important;
  }

  .cosu-export-detail-card {
    padding: 12px 14px !important;
    margin: 10px 0 8px 0 !important;
    gap: 6px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
  }

  .cosu-modal-player-wrapper {
    margin-top: 4px !important;
  }

  .cosu-modal-player-wrapper audio {
    height: 38px !important;
    background: #18191f !important;
    border-radius: 10px !important;
    filter: none !important;
  }

  /* Compact Mobile Storage Info Chip */
  .mobile-storage-info-box {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(34, 197, 94, 0.09) !important;
    border: 1px solid rgba(34, 197, 94, 0.25) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    margin: 0 0 10px 0 !important;
    font-size: 11px !important;
    color: #4ade80 !important;
  }

  .mobile-storage-info-box strong {
    color: #ffffff !important;
  }

  .cosu-modal-tips-collapsible {
    margin-bottom: 12px !important;
    padding: 8px 12px !important;
  }

  .cosu-modal-buttons-group {
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* Primary Button: High Contrast Crisp White Pill */
  .cosu-modal-btn-primary {
    height: 48px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 50px !important;
    background: #F40500 !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.22) !important;
    letter-spacing: 0.2px !important;
  }

  .cosu-modal-btn-primary:active {
    transform: scale(0.98) !important;
    background: #e4e4e7 !important;
  }

  /* Secondary Button: Clean Dark Glass Pill */
  .cosu-modal-btn-secondary {
    height: 44px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    color: #d4d4d8 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
  }

  .cosu-modal-btn-secondary:active {
    transform: scale(0.98) !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }

  .cosu-tips-grid {
    grid-template-columns: 1fr !important;
  }

  /* Auth / Lock Gate Mobile */
  .lock-gate-center {
    padding: 20px 16px;
    width: 100%;
    max-width: 100%;
  }

  .lock-hero-title {
    font-size: 36px;
  }

  .btn-lock-sso {
    width: 100%;
  }
}

/* 📱 Android Platform Guard: Sembunyikan Kontrol Jendela Desktop & Tampilkan Info Storage */
body.platform-android .mobile-storage-info-box {
  display: block !important;
}
body.platform-android .window-dot-btn,
body.platform-android .lock-window-controls .window-dot-btn,
body.platform-android #btn-lock-min,
body.platform-android #btn-lock-max,
body.platform-android #btn-lock-close,
body.platform-android #btn-min,
body.platform-android #btn-max,
body.platform-android #btn-close {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────────
   COSU EXPORT SUCCESS MODAL — BASE DESIGN SYSTEM
   ───────────────────────────────────────────────────────────────── */
#cosu-export-modal .cosu-modal-card {
  max-width: 540px;
  width: 100%;
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  animation: cosuModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cosuModalPop {
  0% { opacity: 0; transform: scale(0.96) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

#cosu-export-modal .cosu-modal-inner {
  padding: 22px 24px 20px 24px;
  display: flex;
  flex-direction: column;
}

.mobile-sheet-drag-handle {
  display: none;
}

.cosu-export-detail-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 14px 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cosu-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.cosu-detail-label {
  color: #71717a;
  font-weight: 500;
  font-size: 11px;
}

.cosu-detail-val-group {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 75%;
}

.cosu-detail-filename {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cosu-badge-format {
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.cosu-detail-val {
  color: #e4e4e7;
  font-weight: 600;
  font-size: 12px;
}

.cosu-detail-filepath {
  color: #a1a1aa;
  font-family: monospace;
  font-size: 11px;
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
}

.cosu-modal-player-wrapper {
  margin-top: 6px;
  width: 100%;
}

.cosu-modal-player-wrapper audio {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  outline: none;
  filter: invert(0.9) hue-rotate(180deg);
}

.mobile-storage-info-box {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 11px;
  color: #4ade80;
}

.mobile-storage-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.mobile-storage-text {
  font-size: 11px;
  color: #86efac;
  line-height: 1.35;
}

.mobile-storage-text strong {
  color: #ffffff;
  font-weight: 700;
}

.cosu-modal-tips-collapsible {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 11px;
}

.cosu-tips-summary {
  cursor: pointer;
  font-weight: 600;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.cosu-tips-summary::-webkit-details-marker {
  display: none;
}

.cosu-tips-toggle {
  font-size: 10px;
  color: #71717a;
}

.cosu-tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 10px;
  margin-top: 6px;
}

.cosu-tip-pill {
  background: #0c0c0e;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cosu-modal-actions-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.cosu-modal-buttons-group {
  display: flex;
  gap: 10px;
}

.cosu-modal-btn-primary {
  flex: 1;
  height: 44px;
  border-radius: 50px !important;
  background: #F40500 !important;
  color: #FFFFFF !important;
  border: none !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
}

.cosu-modal-btn-primary:active {
  transform: scale(0.98);
  background: #e4e4e7 !important;
}

.cosu-modal-btn-secondary {
  flex: 1;
  height: 44px;
  border-radius: 50px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #d4d4d8 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  font-size: 12px !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cosu-modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.cosu-modal-suno-link {
  color: #71717a;
  font-size: 11px;
  text-decoration: underline;
  text-align: center;
  display: inline-block;
  padding: 2px 0;
  transition: color 0.2s ease;
}

.cosu-modal-suno-link:hover {
  color: #FFFFFF;
}

/* ═══════════════════════════════════════════════════════════════════
   🎨 LANGUAGE SWITCHER — PREMIUM REDESIGN (MOBILE & DESKTOP)
   ═══════════════════════════════════════════════════════════════════ */

/* Premium Language Switcher — Redesign Elegan */
.resync-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 3px 4px;
  -webkit-app-region: no-drag;
  user-select: none;
  transition: border-color 0.2s ease;
  margin-right: 6px;
}

.resync-lang-switcher:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.resync-lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 50px;
  transition: all 0.2s ease;
  line-height: 1;
  min-width: 28px;
  text-align: center;
}

.resync-lang-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.resync-lang-btn.active {
  color: #FFFFFF;
  background: #F40500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.resync-lang-sep {
  display: none; /* Separator tidak diperlukan lagi dengan pill style */
}

/* ═══════════════════════════════════════════════════════════════════
   📱 MOBILE QUICK ACTIONS — RAPI & ERGONOMIS (Tambah / Katalog / Riwayat)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Quick Action Row — Grid 3 Kolom di Mobile */
  .quick-actions-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
    padding: 0 0 2px 0 !important;
    margin-bottom: 12px !important;
    width: 100% !important;
  }

  .btn-quick-action {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 10px 6px !important;
    min-height: 56px !important;
    border-radius: 14px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    letter-spacing: 0.2px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.18s ease !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow: hidden !important;
  }

  .btn-quick-action:active {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: scale(0.96) !important;
  }

  .btn-quick-action svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    margin-right: 0 !important;
    opacity: 0.85;
  }

  .btn-quick-action span[data-i18n] {
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  /* Top Menu Strip Mobile — Bersih dengan Brand + Lang Switcher */
  .top-menu-strip {
    padding: 6px 12px !important;
    height: auto !important;
    min-height: 48px !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #0a0a0c !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  }

  .top-menu-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .app-brand-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
  }

  .top-menu-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /* Language Switcher di Mobile — Sedikit Lebih Besar (Touch Friendly) */
  .resync-lang-switcher {
    padding: 4px 5px !important;
    border-radius: 50px !important;
    margin-right: 0 !important;
  }

  .resync-lang-btn {
    min-width: 32px !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    min-height: 30px !important;
  }

  /* Lock Gate Lang Switcher */
  .lock-window-controls .resync-lang-switcher {
    margin-right: 0 !important;
  }

  /* Lock Gate Topbar Mobile */
  .lock-gate-topbar {
    padding: 8px 12px !important;
    min-height: 48px !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .lock-window-controls {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   📱 ANDROID PLATFORM — KHUSUS OVERRIDES (LEBIH LENGKAP)
   ═══════════════════════════════════════════════════════════════════ */

/* Semua window controls tersembunyi di platform-android (tanpa bergantung media query) */
body.platform-android .window-controls {
  display: flex !important; /* Tetap flex agar lang switcher tampil */
  gap: 0 !important;
}

body.platform-android .window-controls .resync-lang-switcher {
  display: inline-flex !important;
  margin-right: 0 !important;
}

/* Khusus Android: Quick action row juga pakai grid 3 kolom */
body.platform-android .quick-actions-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 8px !important;
  width: 100% !important;
}

body.platform-android .btn-quick-action {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-height: 56px !important;
  padding: 10px 6px !important;
  border-radius: 14px !important;
  font-size: 10px !important;
  text-align: center !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

body.platform-android .btn-quick-action svg {
  margin-right: 0 !important;
  width: 18px !important;
  height: 18px !important;
}

/* Splash screen untuk Android — Pastikan tidak ada flash putih */
body.platform-android .app-boot-splash {
  border-radius: 0 !important;
}

/* Body Android: pastikan overflow scroll */
body.platform-android .workspace-scroll-area {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* ─────────────────────────────────────────────────────────────────
   BETA EARLY ACCESS BADGE, BANNER & FEEDBACK MODAL
   ───────────────────────────────────────────────────────────────── */
.beta-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 50px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 8px;
  vertical-align: middle;
}

.beta-badge-pill:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.beta-badge-pill:active {
  transform: scale(0.96);
}

.beta-badge-icon {
  font-size: 11px;
}

/* Dismissable Top Banner */
.beta-banner-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(20, 20, 26, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  padding: 10px 16px;
  margin: 10px 14px 12px 14px;
  animation: fadeInBanner 0.3s ease;
  transition: opacity 0.25s ease, max-height 0.25s ease, margin 0.25s ease;
}

@keyframes fadeInBanner {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.beta-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.beta-banner-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.beta-banner-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.beta-banner-title {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
}

.beta-banner-desc {
  font-size: 11px;
  color: #d4d4d8;
  line-height: 1.4;
}

.beta-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.beta-banner-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #22c55e;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.beta-banner-btn-wa:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.beta-banner-btn-wa:active {
  transform: scale(0.97);
}

.beta-banner-btn-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.beta-banner-btn-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Modal Early Access & Feedback */
#beta-feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.beta-modal-card {
  max-width: 480px;
  width: 100%;
  background: #0d0e12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  animation: cosuModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.beta-modal-inner {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}

.beta-modal-notice-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0 12px 0;
}

.beta-notice-text {
  font-size: 12px;
  color: #fef08a;
  line-height: 1.45;
  margin: 0 0 6px 0;
}

.beta-notice-subtext {
  font-size: 11px;
  color: #d4d4d8;
  line-height: 1.4;
  margin: 0;
}

.beta-modal-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.beta-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}

.beta-perk-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.beta-perk-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.beta-perk-title {
  font-size: 12px;
  color: #ffffff;
}

.beta-perk-desc {
  font-size: 11px;
  color: #a1a1aa;
  line-height: 1.35;
}

.beta-btn-primary {
  width: 100%;
  height: 48px;
  border-radius: 50px !important;
  background: #22c55e !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(34, 197, 94, 0.28) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.beta-btn-primary:active {
  transform: scale(0.98);
  background: #16a34a !important;
}

/* Responsive Mobile Adjustments */
@media (max-width: 768px) {
  .beta-banner-strip {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px 12px 14px;
    padding-right: 48px; /* Room for absolute close button */
    margin: 8px 12px 8px 12px;
    gap: 8px;
    box-sizing: border-box;
    max-width: calc(100vw - 24px);
  }

  .beta-banner-content {
    width: 100%;
    align-items: flex-start;
    gap: 10px;
  }

  .beta-banner-icon {
    font-size: 18px;
    margin-top: 1px;
  }

  .beta-banner-actions {
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 4px;
  }

  .beta-banner-btn-wa {
    width: 100%;
    height: 36px;
    justify-content: center;
    font-size: 11px;
    border-radius: 50px;
    padding: 0 16px;
  }

  .beta-banner-btn-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
  }

  .beta-banner-btn-close:active {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(0.92);
  }

  #beta-feedback-modal {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  #beta-feedback-modal .beta-modal-card {
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: none !important;
    animation: cosuSheetSlideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  #beta-feedback-modal .beta-modal-inner {
    padding: 12px 18px max(24px, env(safe-area-inset-bottom, 24px)) 18px !important;
  }
}

/* ==========================================================================
   Resync DASHBOARD STUDIO (BERANDA MARKAS & BROADCAST PENGUMUMAN)
   ========================================================================== */

.dashboard-hero-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), #111114;
  border: none;
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dashboard-hero-left {
  max-width: 640px;
}

.dashboard-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.dashboard-studio-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #a1a1aa;
}

.dashboard-tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F40500;
  color: #FFFFFF;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.dashboard-hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.dashboard-hero-desc {
  font-size: 13px;
  color: #a1a1aa;
  line-height: 1.6;
  margin: 0;
}

.dashboard-hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-stat-box {
  background: #17171c;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  min-width: 125px;
  display: flex;
  flex-direction: column;
}

.dash-stat-label {
  font-size: 10px;
  font-weight: 800;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.dash-stat-val {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 2px 0;
  font-family: monospace;
}

.dash-stat-sub {
  font-size: 10.5px;
  color: #a1a1aa;
}

/* --- REMOTE BROADCAST ANNOUNCEMENT BANNER (TOP POSITION & DYNAMIC GLOW) --- */
.dashboard-announcement-card {
  margin-top: 0;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(26, 26, 30, 0.95) 0%, rgba(13, 13, 15, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  position: relative;
  backdrop-filter: blur(16px);
  animation: fadeInDown 0.3s ease;
  transition: all 0.25s ease;
}

/* Category Glow Variants */
.dashboard-announcement-card.ann-type-update {
  background: linear-gradient(135deg, rgba(14, 38, 24, 0.94) 0%, rgba(10, 20, 15, 0.98) 100%) !important;
  border: 1px solid rgba(34, 197, 94, 0.45) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(34, 197, 94, 0.15) !important;
}

.dashboard-announcement-card.ann-type-warning {
  background: linear-gradient(135deg, rgba(44, 30, 10, 0.94) 0%, rgba(20, 16, 10, 0.98) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(245, 158, 11, 0.15) !important;
}

.dashboard-announcement-card.ann-type-promo {
  background: linear-gradient(135deg, rgba(61, 9, 9, 0.94) 0%, rgba(38, 9, 11, 0.98) 100%) !important;
  border: 1px solid rgba(244, 5, 0, 0.45) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(244, 5, 0, 0.15) !important;
}

.dashboard-announcement-card.ann-type-info {
  background: linear-gradient(135deg, rgba(26, 26, 30, 0.94) 0%, rgba(13, 13, 15, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 255, 255, 0.08) !important;
}

.dash-announcement-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 780px;
}

.dash-announcement-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #202026;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  transition: all 0.2s ease;
}

.dash-announcement-icon-box svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.dash-announcement-text-col {
  display: flex;
  flex-direction: column;
}

.dash-announcement-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-announcement-tag {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  background: #F40500;
  color: #FFFFFF;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.dash-announcement-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

.dash-announcement-desc {
  font-size: 12.5px;
  color: #d4d4d8;
  line-height: 1.55;
  margin: 4px 0 0 0;
}

.dash-announcement-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-announcement-btn {
  padding: 8px 22px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-announcement-btn-dismiss {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dash-announcement-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* --- SECTION HEADER --- */
.dashboard-section-header {
  margin-top: 28px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffffff;
  text-transform: uppercase;
}

.dashboard-section-subtitle {
  font-size: 11.5px;
  color: #71717a;
}

/* --- 4 MODULAR STUDIO CARDS --- */
.dashboard-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.dashboard-module-card {
  background: #111114;
  border: none;
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.dashboard-module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  background: #17171d;
}

.module-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.module-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1d1d23;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.module-icon-box svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.module-chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 50px;
  background: #1d1d23;
  color: #d4d4d8;
  border: none;
}

.module-chip.pro {
  background: #F40500;
  color: #FFFFFF;
  border: none;
}

.module-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.module-desc {
  font-size: 12px;
  color: #a1a1aa;
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.module-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.module-features-list li {
  font-size: 11.5px;
  color: #8e8e93;
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-features-list li span {
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
}

.module-action-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px !important;
}

.module-action-btn .btn-arrow {
  transition: transform 0.2s ease;
}

.dashboard-module-card:hover .module-action-btn .btn-arrow {
  transform: translateX(4px);
}

/* --- BOTTOM KPI & TIPS GRID --- */
.dashboard-bottom-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dashboard-subcard {
  background: #111114;
  border: none;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.dashboard-subcard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: none;
}

.subcard-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.subcard-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
}

.subcard-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.subcard-meta {
  font-size: 11.5px;
  color: #71717a;
}

.dashboard-kpi-subgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.dash-kpi-item {
  background: #17171c;
  border: none;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}

.dash-kpi-item .kpi-num {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  font-family: monospace;
}

.dash-kpi-item .kpi-name {
  font-size: 9.5px;
  color: #71717a;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
  letter-spacing: 0.4px;
}

.dashboard-quick-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dashboard-quick-actions-bar .btn-pill-glass {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 8px 15px;
  color: #e4e4e7;
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-app-region: no-drag;
}

.dashboard-quick-actions-bar .btn-pill-glass svg {
  width: 13px;
  height: 13px;
  stroke: #a1a1aa;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  flex-shrink: 0;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.dashboard-quick-actions-bar .btn-pill-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.dashboard-quick-actions-bar .btn-pill-glass:hover svg {
  stroke: #ffffff;
  transform: scale(1.1);
}

.dashboard-quick-actions-bar .btn-pill-glass:active {
  transform: translateY(0);
}

/* Khusus Tombol WhatsApp: Aksen Hijau Glow Halus */
#dash-btn-open-wa:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.4);
  color: #25D366;
}

#dash-btn-open-wa:hover svg {
  stroke: #25D366;
}

.dashboard-tips-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-tip-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #17171c;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-tip-item:hover {
  background: #1c1c23;
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.tip-num {
  font-size: 11px;
  font-weight: 800;
  color: #71717a;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px 7px;
  flex-shrink: 0;
}

.tip-heading {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

.tip-text {
  font-size: 11.5px;
  color: #a1a1aa;
  line-height: 1.5;
  margin: 0;
}

/* Changelog Card Styles */
.dashboard-changelog-chip {
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.dashboard-changelog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.changelog-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #17171c;
  border-radius: 10px;
  padding: 9px 12px;
  transition: background 0.15s ease;
}

.changelog-item:hover {
  background: #1c1c22;
}

.changelog-bullet {
  font-size: 13px;
  line-height: 1.4;
  flex-shrink: 0;
}

.changelog-text {
  font-size: 11.5px;
  color: #d4d4d8;
  line-height: 1.5;
}

/* Tips Card Read Full Tip Button */
.dashboard-tip-item.highlight-tip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #17171c 0%, #1a1a22 100%);
}

.btn-read-tip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  transition: all 0.18s ease;
}

.btn-read-tip:hover {
  background: #F40500;
  color: #FFFFFF;
  border-color: #F40500;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 5, 0, 0.35);
}

/* Tips Detail Modal Reader (Clean Borderless Editorial Studio) */
#tips-detail-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  align-items: center !important;
  justify-content: center !important;
}

#tips-detail-modal.active,
#tips-detail-modal[style*="display: flex"] {
  display: flex !important;
}

.tips-modal-card {
  max-width: 580px !important;
  width: 90% !important;
  max-height: 82vh !important;
  background: #0d0d10 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 22px !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.95) !important;
  overflow: hidden !important;
}

.tips-modal-inner {
  padding: 30px 34px 26px 34px !important;
  background: transparent !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: 82vh !important;
}

.tips-modal-card .modal-header {
  border-bottom: none !important;
  padding-bottom: 12px !important;
  margin-bottom: 6px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
}

.tips-modal-card .modal-title {
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.4px !important;
  line-height: 1.35 !important;
}

.tips-modal-card .modal-subtitle {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #71717a !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  margin-top: 4px !important;
}

.tips-modal-card .btn-close-modal {
  background: rgba(255, 255, 255, 0.05) !important;
  border: none !important;
  color: #a1a1aa !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.tips-modal-card .btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.tips-modal-body {
  overflow-y: auto !important;
  padding-right: 8px !important;
  flex: 1 !important;
}

.tips-modal-body::-webkit-scrollbar {
  width: 4px;
}
.tips-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

/* Editorial Clean Layout (Zero Clutter, Zero Nested Boxes) */
.tip-editorial-article {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 4px;
}

.tip-lead {
  font-size: 13.5px;
  line-height: 1.75;
  color: #d4d4d8;
  margin: 0;
  font-weight: 500;
}

.tip-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.tip-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

.tip-section p {
  font-size: 12.5px;
  line-height: 1.7;
  color: #a1a1aa;
  margin: 0;
}

.tip-pill-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 11.5px;
  font-weight: 700;
}

.tip-quote-note {
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  padding: 2px 0 2px 12px;
  margin-top: 4px;
  font-size: 12px;
  color: #8e8e93;
  line-height: 1.6;
}

/* Modal Footer & Luxury Buttons */
.tips-modal-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 22px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

#btn-copy-tip-modal {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 50px !important;
  padding: 9px 20px !important;
  color: #e4e4e7 !important;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  -webkit-app-region: no-drag;
}

#btn-copy-tip-modal:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

#btn-dismiss-tip-modal {
  background: #F40500 !important;
  border: 1px solid #F40500 !important;
  border-radius: 50px !important;
  padding: 9px 26px !important;
  color: #FFFFFF !important;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  -webkit-app-region: no-drag;
}

#btn-dismiss-tip-modal:hover {
  background: #e4e4e7 !important;
  border-color: #e4e4e7 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15) !important;
}


@media (max-width: 900px) {
  .dashboard-hero-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-hero-stats {
    width: 100%;
  }
  .dash-stat-box {
    flex: 1;
    min-width: 100px;
  }
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-kpi-subgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   HISTORI EKSPOR (CUCI AUDIO & COVER COSU) - LUXURY MONOCHROME Resync
   ========================================================================== */
#view-history {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.welcome-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.welcome-banner-actions .btn-pill-black {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px !important;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px !important;
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-banner-actions .btn-pill-black:hover {
  background: #1a1a1a !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px);
}

.btn-pill-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #a1a1aa !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pill-secondary:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #f87171 !important;
  transform: translateY(-1px);
}

.history-toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #141417;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.history-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.history-pill.active {
  background: #F40500;
  color: #FFFFFF;
  border-color: #F40500;
}

.history-pill .history-count-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
}

.history-pill.active .history-count-badge {
  background: #000000;
  color: #ffffff;
}

.history-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  padding: 6px 14px;
  min-width: 260px;
}

.history-search-box svg {
  color: #71717a;
  flex-shrink: 0;
}

.history-search-box input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12px;
  width: 100%;
  outline: none;
}

.history-search-box input::placeholder {
  color: #52525b;
}

.history-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: #141417;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin-top: 10px;
}

.history-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #71717a;
}

.history-empty-icon svg {
  width: 28px;
  height: 28px;
}

.history-empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.history-empty-state p {
  font-size: 13px;
  color: #71717a;
  max-width: 420px;
  line-height: 1.5;
  margin: 0;
}

.history-items-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #141417;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 18px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-item-card:hover {
  background: #18181d;
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.history-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.history-type-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #1c1c22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.history-type-icon.clean {
  background: #18201a;
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.15);
}

.history-type-icon.cosu {
  background: #26090B;
  color: #F86966;
  border-color: rgba(244, 5, 0, 0.15);
}

.history-meta-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.history-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.history-filename {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-badge-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.history-badge-type.clean {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
}

.history-badge-type.cosu {
  background: rgba(244, 5, 0, 0.12);
  color: #F86966;
}

.history-specs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #71717a;
  flex-wrap: wrap;
}

.history-specs-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.history-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-history-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-history-action:hover {
  background: #F40500;
  color: #FFFFFF;
  border-color: #F40500;
}

.btn-history-action.play.active {
  background: #4ade80;
  color: #000000;
  border-color: #4ade80;
}

.btn-history-action.icon-only {
  padding: 7px;
  border-radius: 50%;
}

.btn-history-action.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Floating Audio Preview Player */
.history-floating-player {
  position: sticky;
  bottom: 16px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 10px 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.9);
  z-index: 90;
  animation: floatPlayerIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatPlayerIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.history-player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.history-player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.history-player-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-player-time {
  font-size: 10.5px;
  color: #a1a1aa;
  font-family: monospace;
}

.history-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-history-playpause {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F40500;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-history-playpause svg {
  width: 14px;
  height: 14px;
}

.btn-history-playpause:hover {
  transform: scale(1.08);
}

.btn-history-stop {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-history-stop svg {
  width: 14px;
  height: 14px;
}

.btn-history-stop:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ==========================================================================
   MINIMALIST BOTTOM-CENTER TOAST (ZERO BULKY BG / NO BUTTON CONTAINER / SMOOTH FADE)
   ========================================================================== */
.resu-minimal-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 8px);
  z-index: 999999;
  pointer-events: none;
  user-select: none;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.resu-minimal-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.resu-minimal-toast.fading {
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 0.32s ease-in, transform 0.32s ease-in;
}

/* ==========================================================================
   ADD FILE FLOATING DROPDOWN MENU (LUXURY MONOCHROME - SAT-SET_)
   ========================================================================== */
.add-file-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 250;
}

.add-file-chevron-icon {
  width: 12px;
  height: 12px;
  margin-left: 6px;
  opacity: 0.7;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.btn-new-project-pill[aria-expanded="true"] .add-file-chevron-icon {
  transform: rotate(180deg);
  opacity: 1;
}

.add-file-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 310px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.85), 0 4px 16px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: addFileMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes addFileMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.add-file-dropdown-header {
  padding: 6px 10px 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.add-file-header-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.add-file-menu-item {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.add-file-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(2px);
}

.add-file-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.18s ease;
}

.add-file-menu-item:hover .add-file-item-icon {
  background: #F40500;
  color: #FFFFFF;
  transform: scale(1.05);
}

.add-file-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.add-file-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #f4f4f5;
  letter-spacing: -0.2px;
  transition: color 0.15s ease;
}

.add-file-menu-item:hover .add-file-item-title {
  color: #ffffff;
}

.add-file-item-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.35;
  font-weight: 400;
}

.add-file-menu-item:hover .add-file-item-desc {
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   HISTORI EKSPOR (EXPORT HISTORY) - STRICT RTRW_ MONOCHROME B&W LUXURY THEME
   ========================================================================== */
#view-history {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.history-toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.history-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.history-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50px;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.history-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.history-pill.active {
  background: #F40500;
  color: #FFFFFF;
  border-color: #F40500;
  font-weight: 700;
}

.history-count-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.history-pill.active .history-count-badge {
  background: rgba(0, 0, 0, 0.18);
  color: #000000;
}

.history-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50px;
  min-width: 250px;
  transition: all 0.2s ease;
}

.history-search-box:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.history-search-box svg {
  stroke: #71717a;
  flex-shrink: 0;
}

.history-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  width: 100%;
}

.history-search-box input::placeholder {
  color: #71717a;
}

.history-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  position: relative;
}

.history-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 16px;
}

.history-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #71717a;
}

.history-empty-icon svg {
  width: 24px;
  height: 24px;
}

.history-empty-state h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
}

.history-empty-state p {
  font-size: 13px;
  color: #a1a1aa;
  max-width: 440px;
  line-height: 1.5;
  margin: 0;
}

.history-items-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-item-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.history-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.history-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-type-icon.clean {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.history-type-icon.cosu {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.history-meta-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.history-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.history-filename {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 460px;
}

.history-badge-type {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.history-badge-type.clean {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.history-badge-type.cosu {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

.history-specs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #a1a1aa;
  flex-wrap: wrap;
}

.history-specs-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.history-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-history-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none;
}

.btn-history-action.play {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.btn-history-action.play:hover {
  background: #F40500;
  color: #FFFFFF;
  border-color: #F40500;
}

.btn-history-action.play.active {
  background: #F40500;
  color: #FFFFFF;
  border-color: #F40500;
  font-weight: 700;
}

.btn-history-action.folder {
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
}

.btn-history-action.folder:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-history-action.icon-only {
  padding: 7px 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

.btn-history-action.icon-only:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-history-action.icon-only.delete:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
}

/* Floating Audio Preview Player */
.history-floating-player {
  position: sticky;
  bottom: 14px;
  left: 0;
  right: 0;
  background: rgba(18, 18, 22, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  z-index: 50;
  animation: floatPlayerIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatPlayerIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.history-player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.history-player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.history-player-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 440px;
}

.history-player-time {
  font-size: 11px;
  color: #a1a1aa;
  font-family: monospace;
}

.history-player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-history-playpause {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F40500;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-history-playpause:hover {
  transform: scale(1.06);
  background: #f4f4f5;
}

.btn-history-playpause svg {
  width: 15px;
  height: 15px;
}

.btn-history-stop {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-history-stop:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.btn-history-stop svg {
  width: 14px;
  height: 14px;
}

/* Responsive History Styles */
@media (max-width: 768px) {
  .history-toolbar-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .history-filter-pills {
    overflow-x: auto;
    padding-bottom: 2px;
    flex-wrap: nowrap;
  }

  .history-search-box {
    min-width: 100%;
  }

  .history-item-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .history-card-actions {
    justify-content: flex-end;
    width: 100%;
  }

  .history-filename {
    max-width: 240px;
  }
}







/* ═══════════════════════════════════════════════════════════════════
   🌐 RESYNC WEB (resync.my.id) — penyesuaian tampilan browser desktop
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
  body.platform-web .quick-actions-row {
    display: flex !important;
    grid-template-columns: none !important;
    width: auto !important;
  }
  body.platform-web .btn-quick-action {
    flex-direction: row !important;
    min-height: 0 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  body.platform-web .btn-quick-action svg {
    margin-right: 6px !important;
    width: 14px !important;
    height: 14px !important;
  }
}
