/* ==========================================================================
   iStash - iMazing Styled Dark Theme & Layout System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* iMazing Color Palette */
  --bg-dark: #11161d;
  --bg-surface: #181f29;
  --bg-card: #1e2633;
  --bg-card-hover: #263042;
  --bg-input: #151b24;
  --border-color: #2a3445;
  --border-light: #37455b;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-blue-glow: rgba(2, 132, 199, 0.25);
  --selection-bg: #1e3a5f;

  /* Storage & Feature Category Colors */
  --color-apps: #f97316;    /* Orange */
  --color-photos: #22c55e;  /* Green */
  --color-videos: #eab308;  /* Yellow */
  --color-music: #a855f7;   /* Purple */
  --color-other: #06b6d4;   /* Cyan */
  --color-system: #64748b;  /* Slate */

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 36px rgba(0,0,0,0.6);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --titlebar-height: 36px;
}

/* ==========================================================================
   iStash Auth Portal Login Overlay & Visibility Scoping
   ========================================================================== */
#login-mount {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: #0b1120;
  display: none;
}

body.auth-locked .app-root {
  display: none !important;
}

body.auth-locked #login-mount {
  display: block !important;
}

/* ==========================================================================
   Android Secondary Theme Overrides (Darkmode Green Accent)
   ========================================================================== */
body.theme-android {
  --accent-blue: #16a34a;
  --accent-blue-hover: #15803d;
  --accent-blue-glow: rgba(22, 163, 74, 0.35);
  --selection-bg: #14532d;
}

body.theme-android .sidebar-tab.active {
  border-left-color: #22c55e;
  background: rgba(22, 163, 74, 0.15);
  color: #ffffff;
}

body.theme-android .sidebar-tab.active span,
body.theme-android .sidebar-tab.active svg,
body.theme-android .sidebar-tab.active .chevron-right {
  color: #4ade80;
  fill: currentColor;
}

body.theme-android .cat-action-card:hover {
  border-color: #22c55e;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
}

body.theme-android .sidepanel-device-card.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

body.theme-android .selected-checkmark {
  color: #22c55e;
}

body.theme-android .widget-icon-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #ffffff;
}

body.theme-android .tb-btn.active {
  background: #16a34a;
  border-color: #16a34a;
}

body.theme-android .photos-btn.btn-primary {
  background: #16a34a;
}

body.theme-android .photos-btn.btn-primary:hover {
  background: #15803d;
}

/* ==========================================================================
   Disconnected Theme Overrides (Darkmode Orange Accent)
   ========================================================================== */
body.theme-disconnected {
  --accent-blue: #ea580c;
  --accent-blue-hover: #c2410c;
  --accent-blue-glow: rgba(234, 88, 12, 0.35);
  --selection-bg: #7c2d12;
}

body.theme-disconnected .widget-icon-btn.active-sync,
body.theme-disconnected #btn-sidebar-device-info.active-sync,
body.theme-disconnected #btn-device-info.active-sync,
body.theme-disconnected .widget-action-icons button:nth-child(2).active-sync {
  background: #ea580c !important;
  color: #ffffff !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.8), 0 0 4px #f97316 !important;
  transform: scale(1.1);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-drag: none;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* App Layout Grid */
.app-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Custom Window Titlebar */
.window-titlebar {
  height: var(--titlebar-height);
  background-color: #0d1117;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid var(--border-color);
  -webkit-app-region: drag;
}

.titlebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-app-region: no-drag;
}

.titlebar-icon {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}

.titlebar-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 10px;
}

.menu-item {
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.menu-item:hover {
  color: var(--text-main);
  background-color: var(--bg-card);
}

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

.control-btn {
  width: 32px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.control-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.control-btn.close-btn:hover {
  background-color: #ef4444;
  color: #fff;
}

/* Secondary Navigation Toolbar */
.subnav-toolbar {
  height: 44px;
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-color);
}

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

.nav-arrows {
  display: flex;
  gap: 4px;
}

.nav-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-arrow-btn:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.breadcrumbs span.active {
  color: var(--text-main);
}

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

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  fill: var(--text-dim);
}

.search-input {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 5px 12px 5px 30px;
  color: var(--text-main);
  font-size: 12px;
  width: 180px;
  outline: none;
  transition: border 0.2s, width 0.2s;
}

.search-input:focus {
  border-color: var(--accent-blue);
  width: 220px;
}

.tool-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.tool-icon-btn:hover {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-main);
}

/* Category Grid Toolbar — now inside right main-content-column */
.app-category-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  flex-shrink: 0;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: background 0.15s, transform 0.1s;
  min-width: 72px;
}

.category-item:hover {
  background-color: var(--bg-card);
  transform: translateY(-1px);
}

.category-item.active {
  background-color: rgba(59, 130, 246, 0.18);
  box-shadow: 0 0 0 1.5px var(--accent-blue), 0 4px 12px rgba(59, 130, 246, 0.25);
}

body.theme-android .category-item.active {
  background-color: rgba(34, 197, 94, 0.18);
  box-shadow: 0 0 0 1.5px var(--accent-green, #22c55e), 0 4px 12px rgba(34, 197, 94, 0.3);
}

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

.category-item.active .category-icon {
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.category-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.category-icon.photos { background: linear-gradient(135deg, #ef4444, #f59e0b, #10b981, #3b82f6); }
.category-icon.music { background: linear-gradient(135deg, #ec4899, #d946ef); }
.category-icon.messages { background: linear-gradient(135deg, #22c55e, #16a34a); }
.category-icon.calls { background: linear-gradient(135deg, #10b981, #059669); }
.category-icon.voicemail { background: linear-gradient(135deg, #0284c7, #0369a1); }
.category-icon.notes { background: linear-gradient(135deg, #eab308, #ca8a04); }
.category-icon.memos { background: linear-gradient(135deg, #ef4444, #dc2626); }
.category-icon.contacts { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.category-icon.android-app { background: linear-gradient(135deg, #22c55e, #15803d); }
.category-icon.more { background: var(--bg-card-hover); border: 1px solid var(--border-color); }

.category-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.category-item:hover .category-label {
  color: var(--text-main);
}

/* Main Split Content Area — sidebar starts immediately under subnav */
.app-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* Left Sidebar — starts flush at subnav bottom border */
.sidebar-panel {
  width: 200px;
  min-width: 200px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 8px 0 0 0;
  gap: 0;
  overflow: hidden;
  flex-shrink: 0;
  height: 100%;
}

/* Right column: Category bar on top + main viewport below */
.main-content-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.sidebar-device-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.sidebar-card-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.close-pill-btn {
  background-color: rgba(255,255,255,0.08);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.close-pill-btn:hover {
  background-color: rgba(255,255,255,0.15);
  color: var(--text-main);
}

.more-options-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

/* Phone Graphic Frame */
.phone-mockup-wrap {
  width: 140px;
  height: 220px;
  margin: 8px 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: #000;
  border: 4px solid #334155;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), inset 0 0 2px rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Phone Screen Mockup */
.phone-screen {
  flex: 1;
  background: linear-gradient(135deg, #054f5c, #0d7377, #142850);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  color: #fff;
  position: relative;
}

.phone-notch {
  width: 44px;
  height: 12px;
  background-color: #000;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  margin-bottom: 12px;
}

.phone-clock {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.phone-widgets {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.widget-pill {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.device-title-wrap {
  text-align: center;
  margin-top: 8px;
}

.device-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.device-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Sidebar Nav Pills */
.platform-tab-strip {
  display: flex;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 3px;
  margin: 10px 10px 12px 10px;
  gap: 4px;
  pointer-events: none;
  user-select: none;
}

.platform-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: default;
  transition: all 0.15s ease;
}

.platform-tab.active[data-platform="apple"] {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.platform-tab.active[data-platform="android"] {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 24px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 132, 199, 0.5);
}

.sidebar-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 0;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
}

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

.sidebar-tab:hover {
  background-color: rgba(255,255,255,0.05);
  color: var(--text-main);
}

.sidebar-tab.active {
  background-color: rgba(2, 132, 199, 0.12);
  border-left-color: var(--accent-blue);
  color: #fff;
}

.sidebar-tab svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.chevron-right {
  font-size: 11px;
  color: var(--text-dim);
}

/* Main Content Workspace — fills remaining height flush under category bar & flush with sidebar */
.main-viewport {
  flex: 1;
  background-color: var(--bg-dark);
  overflow: hidden;
  padding: 0;
  margin: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Modals & Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 480px;
  max-width: 90vw;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-blue-glow);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  box-shadow: 0 4px 12px var(--accent-blue-glow);
}

.btn-secondary {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-light);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* ==========================================================================
   EULA Modal Styles (Matching Image 3)
   ========================================================================== */
.eula-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: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.eula-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.eula-modal-card {
  background: #f8fafc;
  border-radius: 12px;
  width: 620px;
  max-width: 95vw;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #0f172a;
}

.eula-header {
  background: #ffffff;
  padding: 20px 24px 16px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.eula-body {
  padding: 20px 24px;
  flex: 1;
}

.eula-scroll-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  height: 240px;
  overflow-y: auto;
  padding: 16px;
  font-size: 11px;
  line-height: 1.6;
  color: #334155;
  margin-top: 8px;
}

.eula-footer {
  background: #f1f5f9;
  padding: 14px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-eula-disagree {
  background: #e2e8f0;
  color: #475569;
  padding: 6px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

.btn-eula-disagree:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.btn-eula-agree {
  background: #0284c7;
  color: #ffffff;
  padding: 6px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-eula-agree:hover {
  background: #0369a1;
}

/* ==========================================================================
   License Code Activation Overlay (Matching Image 4)
   ========================================================================== */
.license-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0d1117;
  display: flex;
  flex-direction: column;
  z-index: 99990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.license-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.license-container-bg {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 48px;
  background: radial-gradient(circle at 80% 50%, #1e293b 0%, #0d1117 70%);
}

.license-brand-flag {
  display: flex;
  align-items: center;
  gap: 8px;

}

.flag-icon {
  width: 32px;
  height: 32px;
  background: #ef4444;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.license-brand-flag span {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.license-center-box {
  max-width: 480px;
  margin-left: 40px;
}

.license-heading {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.license-input-wrap {
  position: relative;
  margin-bottom: 16px;
}

.license-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 12px 20px;
  color: #ffffff;
  font-size: 15px;
  font-family: monospace;
  letter-spacing: 2px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.license-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

.license-links-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.license-link {
  color: #0284c7;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.license-link:hover {
  text-decoration: underline;
}

.license-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1e293b;
  padding-top: 20px;
}

.license-trial-info strong {
  color: #ffffff;
  font-size: 13px;
}

.license-trial-info span {
  color: #64748b;
  font-size: 12px;
}

.btn-trial-mode {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.btn-trial-mode:hover {
  background: var(--bg-card-hover);
}

/* ==========================================================================
   Right Slide-Out Operations Drawer (Matching Screenshot 1)
   ========================================================================== */
.operations-backdrop {
  position: fixed;
  top: var(--titlebar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.operations-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.operations-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: #1e293b;
  color: #ffffff;
  border-left: 1px solid #334155;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.operations-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #334155;
}

.drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.drawer-close-btn {
  background: #334155;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.drawer-close-btn:hover {
  background: #475569;
  color: #ffffff;
}

.drawer-body {
  flex: 1;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.drawer-section-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 16px;
  line-height: 1.4;
}

.drawer-devices-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidepanel-device-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.sidepanel-device-card:hover {
  background: #182234;
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transform: translateY(-1px);
}

.sidepanel-device-card.active {
  background: rgba(2, 132, 199, 0.15);
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.4);
}

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

.device-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.device-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.device-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.device-card-model {
  font-size: 11px;
  color: #94a3b8;
}

.device-card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-dot.badge-green { background: #22c55e; }
.status-dot.badge-blue { background: #0284c7; }
.status-dot.badge-purple { background: #a855f7; }
.status-dot.badge-gray { background: #94a3b8; }

.selected-checkmark {
  font-size: 18px;
  font-weight: 800;
  color: #0284c7;
}

.unlock-graphic-wrap {
  width: 130px;
  height: 190px;
  margin-bottom: 28px;
}

.phone-unlock-card {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: #000;
  border: 4px solid #38bdf8;
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.unlock-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faceid-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner Operations Card (Screenshot 2) */
.operations-inner-card {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  text-align: left;
}

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

.inner-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.status-blue-dot {
  width: 8px;
  height: 8px;
  background: #0284c7;
  border-radius: 50%;
}

.inner-card-device-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.device-black-thumb {
  width: 28px;
  height: 48px;
  background: #000;
  border-radius: 6px;
  border: 2px solid #334155;
  position: relative;
}

.thumb-notch {
  width: 10px;
  height: 3px;
  background: #fff;
  margin: 3px auto 0 auto;
  border-radius: 1px;
}

.thumb-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.thumb-spec {
  font-size: 11px;
  color: #64748b;
}

.inner-card-instruction {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
}

.inner-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-card-cancel {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 18px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.btn-card-cancel:hover {
  background: #e2e8f0;
}

.btn-card-show {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 6px 24px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-card-show:hover {
  background: #0369a1;
}

.drawer-device-subcard {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.device-mini-icon {
  font-size: 24px;
}

.device-mini-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.device-mini-spec {
  font-size: 11px;
  color: #64748b;
}

.drawer-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: center;
}

.btn-drawer-cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 8px 24px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-drawer-cancel:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Sidebar Top Vertical Selected Device Widget (Matching iMazing 3 Screenshot) */
.sidebar-device-widget {
  position: relative;
  background: transparent;
  padding: 16px 14px 12px 14px;
  margin: 4px 0 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.widget-menu-btn {
  position: absolute;
  top: 8px;
  right: 14px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
  z-index: 2;
}

.widget-menu-btn:hover {
  color: #ffffff;
}

.widget-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}

.sidebar-device-widget:hover .widget-phone-wrap {
  transform: translateY(-2px) scale(1.02);
}

.widget-device-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px 0;
  letter-spacing: -0.2px;
}

.widget-device-spec {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
  font-weight: 400;
}

.widget-action-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.widget-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.widget-icon-btn:hover {
  background: rgba(2, 132, 199, 0.2);
  border-color: #0284c7;
  color: #ffffff;
}
  color: #64748b;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.sidebar-device-menu-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   NOTES WIZARD & WORKSPACE STYLES (MATCHING iMAZING 3 MANUAL SPECS & SCREENSHOTS)
   ========================================================================== */

.notes-root-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark, #0b0f19);
}

.notes-wizard-screen {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.notes-wizard-screen.active {
  display: flex;
  flex-direction: column;
}

/* Screens 1 & 2 Center Wizard Card */
#notes-wizard-screen-1.active,
#notes-wizard-screen-2.active {
  align-items: center;
  justify-content: center;
  background: var(--bg-dark, #0b0f19);
  padding: 40px 20px;
}

.notes-wizard-card {
  width: 580px;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.25s ease-out;
}

.notes-wizard-icon-wrap {
  margin-bottom: 20px;
}

.notes-app-icon-lg {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}

.notes-app-icon-lg:hover {
  transform: translateY(-2px) scale(1.04);
}

.notes-wizard-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.notes-wizard-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 28px;
  max-width: 480px;
}

/* Radio Selection Cards (Screen 1) */
.notes-radio-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.notes-radio-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
}

.notes-radio-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(2, 132, 199, 0.5);
}

.notes-radio-card.active {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284c7;
  box-shadow: 0 0 0 1px #0284c7;
}

.radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.notes-radio-card.active .radio-indicator {
  border-color: #0284c7;
  background: #0284c7;
}

.radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  display: none;
}

.notes-radio-card.active .radio-dot {
  display: block;
}

.radio-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-icon.red-lightning {
  background: rgba(239, 68, 68, 0.15);
}

.radio-icon.blue-battery {
  background: rgba(14, 165, 233, 0.15);
}

.radio-content {
  flex: 1;
}

.radio-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0 0 3px 0;
}

.radio-subtitle {
  font-size: 12px;
  color: #0284c7;
  margin: 0;
}

.radio-help-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.radio-help-btn:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.btn-wizard-primary {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 10px 36px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-wizard-primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}

/* Action Cards (Screen 2) */
.notes-action-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notes-click-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.notes-click-card:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284c7;
  transform: translateY(-1px);
}

.click-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.click-card-content {
  flex: 1;
}

.click-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0 0 3px 0;
}

.click-card-subtitle {
  font-size: 12px;
  color: #0284c7;
  margin: 0;
}

.click-card-chevron {
  font-size: 20px;
  color: var(--text-muted, #94a3b8);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.notes-click-card:hover .click-card-chevron {
  color: #ffffff;
  transform: translateX(3px);
}

/* Screen 3 Workspace Controls & 3-Pane Layout */
.notes-top-controls {
  height: 42px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

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

.notes-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary, #ffffff);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
}

.notes-sort-dir-btn, .notes-expand-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary, #ffffff);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notes-date-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary, #ffffff);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  width: 80px;
  text-align: center;
}

.notes-3pane-container {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.notes-sub-sidebar {
  background: rgba(0, 0, 0, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.notes-folders-sidebar {
  width: 190px;
  padding: 12px 10px;
}

.notes-folder-pill {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin-bottom: 16px;
  cursor: pointer;
}

.notes-folder-pill.active {
  background: #0284c7;
}

.pill-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.notes-sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  letter-spacing: 1px;
  margin: 0 0 8px 8px;
}

.notes-folders-list .folder-item {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background 0.15s ease;
}

.notes-folders-list .folder-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.notes-folders-list .folder-item.active {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  font-weight: 600;
}

.notes-list-sidebar {
  width: 250px;
  background: rgba(0, 0, 0, 0.1);
}

.notes-list-search-wrap {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notes-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text-primary, #ffffff);
  font-size: 12px;
  outline: none;
}

.notes-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.note-card-item {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.note-card-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.note-card-item.active {
  background: rgba(2, 132, 199, 0.25);
  border-color: rgba(56, 189, 248, 0.4);
}

.note-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.note-icon {
  font-size: 14px;
}

.note-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-card-date {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  display: block;
  margin-bottom: 4px;
}

.note-card-preview {
  font-size: 11px;
  color: var(--text-secondary, #cbd5e1);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.notes-preview-pane {
  flex: 1;
  background: var(--bg-dark, #0b0f19);
  overflow-y: auto;
  padding: 32px 40px;
}

.notes-bottom-bar {
  height: 40px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

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

.export-dropdown-wrap {
  display: inline-flex;
  align-items: center;
}

.notes-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary, #ffffff);
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.notes-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sidebar-group-header {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  padding: 12px 14px 4px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Discover Hero Card (Screenshot 2) */
.discover-hero-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 40px;
  color: #0f172a;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.hero-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
}

.hero-content-split {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device-wireframe-container {
  width: 220px;
  height: 140px;
  border: 2px solid #94a3b8;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone-wireframe {
  width: 56px;
  height: 100px;
  border: 2px solid #64748b;
  border-radius: 10px;
  position: relative;
  background: #fff;
}

.wireframe-notch {
  width: 16px;
  height: 4px;
  background: #94a3b8;
  margin: 4px auto 0 auto;
  border-radius: 2px;
}

.pagination-dots {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.pagination-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
}

.pagination-dots .dot.active {
  width: 24px;
  border-radius: 3px;
  background: #94a3b8;
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-tour {
  background: #0284c7;
  color: #fff;
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 600;
}

.quick-action-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.quick-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.card-icon-wrap.blue { color: #0284c7; }
.card-icon-wrap.green { color: #22c55e; }

.actions-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

/* ==========================================================================
   iStash Setup Wizard Modal (Authentic Inno Setup / iMazing Installer Theme)
   ========================================================================== */
.setup-wizard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.setup-wizard-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.setup-wizard-window {
  width: 540px;
  height: 380px;
  background: #f0f0f0;
  border: 1px solid #707070;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #000;
  user-select: none;
}

.wizard-titlebar {
  height: 30px;
  background: #ffffff;
  border-bottom: 1px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.wizard-titlebar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-app-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-window-title {
  font-size: 12px;
  color: #333;
}

.wizard-win-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-win-btn:hover {
  background: #e5e5e5;
  color: #000;
}

.wizard-top-header {
  background: #ffffff;
  border-bottom: 1px solid #d9d9d9;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}

.wizard-header-text h2 {
  font-size: 12px;
  font-weight: 700;
  color: #000;
  margin: 0 0 2px 0;
}

.wizard-header-text p {
  font-size: 11px;
  color: #444;
  margin: 0;
}

.wizard-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-step-content {
  flex: 1;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  background: #f0f0f0;
  overflow-y: auto;
}

/* Step 1: Welcome */
.wizard-step-welcome {
  background: #ffffff;
  flex-direction: row;
  padding: 0;
}

.welcome-left-graphic {
  width: 160px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.welcome-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.welcome-right-text {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
}

.welcome-p {
  font-size: 11px;
  line-height: 1.5;
  color: #222;
  margin-bottom: 6px;
}

/* Step 2: License */
.wizard-instruction {
  font-size: 11px;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.4;
}

.wizard-eula-box {
  background: #ffffff;
  border: 1px solid #a0a0a0;
  height: 150px;
  overflow-y: auto;
  padding: 10px 12px;
  font-size: 11px;
  color: #000;
  margin-bottom: 10px;
}

.eula-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}

.eula-date {
  font-size: 10px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.eula-notice {
  font-size: 11px;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 8px;
}

.eula-text p {
  margin-bottom: 6px;
  line-height: 1.4;
}

.wizard-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wizard-radio-label {
  font-size: 11px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Step 3: Destination */
.wizard-dest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.wizard-path-input-group {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.wizard-input-text {
  flex: 1;
  height: 24px;
  background: #fff;
  border: 1px solid #7a7a7a;
  padding: 2px 6px;
  font-size: 11px;
  outline: none;
}

.wizard-space-info {
  margin-top: 24px;
  font-size: 11px;
  color: #333;
}

/* Step 4: Tasks */
.wizard-tasks-box {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tasks-group-title {
  font-size: 11px;
  font-weight: 600;
  color: #000;
}

.wizard-chk-label {
  font-size: 11px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  cursor: pointer;
}

/* Step 5: Ready */
.wizard-summary-box {
  background: #ffffff;
  border: 1px solid #a0a0a0;
  height: 160px;
  overflow-y: auto;
  padding: 10px 12px;
  font-size: 11px;
  color: #000;
  margin-top: 8px;
}

.summary-indent {
  margin-left: 16px;
  margin-top: 2px;
  color: #333;
}

/* Step 6: Progress */
.wizard-progress-bar-wrap {
  width: 100%;
  height: 16px;
  background: #e2e8f0;
  border: 1px solid #94a3b8;
  border-radius: 2px;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #22c55e);
  transition: width 0.2s ease;
}

/* Footer Buttons */
.wizard-footer {
  background: #f0f0f0;
  border-top: 1px solid #d9d9d9;
  padding: 10px 16px;
  display: flex;
  justify-content: flex-end;
}

.wizard-footer-buttons {
  display: flex;
  gap: 8px;
}

.wizard-btn-win {
  min-width: 75px;
  height: 24px;
  padding: 0 12px;
  border: 1px solid #8e8e8e;
  border-radius: 3px;
  background: linear-gradient(180deg, #fcfcfc 0%, #e1e1e1 100%);
  font-size: 11px;
  color: #000;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wizard-btn-win:hover:not(:disabled) {
  background: linear-gradient(180deg, #eaf6fd 0%, #bee6fd 100%);
  border-color: #3c7fb1;
}

.wizard-btn-win:disabled {
  opacity: 0.5;
  cursor: default;
}

.wizard-btn-default {
  border-color: #0078d7;
  font-weight: 600;
}

/* Apple Mobile Device Components Downloader Dialog */
.apple-components-dialog {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 105000;
}

.apple-dialog-window {
  width: 440px;
  background: #f0f0f0;
  border: 1px solid #707070;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.apple-dialog-titlebar {
  height: 28px;
  background: #ffffff;
  border-bottom: 1px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.apple-dialog-body {
  padding: 20px 24px;
  background: #f0f0f0;
}

.apple-dialog-heading {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 14px 0;
  line-height: 1.3;
}

.apple-dialog-progress-container {
  margin-bottom: 10px;
}

.apple-dialog-subtext {
  font-size: 11px;
  color: #334155;
  margin: 0;
}

.apple-dialog-footer {
  background: #f0f0f0;
  border-top: 1px solid #d9d9d9;
  padding: 8px 16px;
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Categorized Action Sections Below Storage & Battery (Matching iMazing Screenshots)
   ========================================================================== */
.categorized-actions-wrapper {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 40px;
}

.category-section {
  display: flex;
  flex-direction: column;
}

.category-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cat-action-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.cat-action-card:hover {
  background: #253346;
  border-color: #0284c7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.cat-action-card:active {
  transform: translateY(0);
}

.cat-card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.icon-red-glow { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.icon-green-glow { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.icon-flower { background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899); color: #ffffff; }
.icon-pink { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.icon-green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.icon-whatsapp { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.icon-blue { background: rgba(2, 132, 199, 0.15); color: #0284c7; }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.icon-yellow { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.icon-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.icon-blue-app { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.icon-teal { background: rgba(20, 184, 166, 0.15); color: #14b8a6; }
.icon-green-export { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.icon-purple-scan { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.icon-cyan-transfer { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.icon-green-pulse { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.icon-orange-storage { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.icon-blue-badge { background: rgba(2, 132, 199, 0.15); color: #0284c7; }
.icon-blue-gear { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.cat-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.cat-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

/* Companion Apps 3-Column Layout */
.companion-apps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.companion-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  gap: 12px;
}

.companion-app-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

.align-center {
  align-items: center;
}

/* ==========================================================================
   Transfer Files Dedicated Device Connection Screen (Matching iMazing Screenshot 1)
   ========================================================================== */
.transfer-files-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
  background: var(--bg-dark, #0f172a);
  color: #ffffff;
  padding: 12px 24px 16px 24px;
  position: relative;
  user-select: none;
}

.tf-top-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px 0;
  margin-bottom: 20px;
}

.tf-header-title {
  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

.tf-help-icon {
  position: absolute;
  right: 8px;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s;
}

.tf-help-icon:hover {
  color: #ffffff;
}

.tf-main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 0 20px;
}

/* Left Column */
.tf-left-column {
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tf-feature-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

.tf-icon-circle-box {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.backup-icon-circle-box {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.4));
}

.tf-feature-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 200px;
  margin: 0;
}

/* Right Column */
.tf-right-column {
  flex: 1;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tf-lineart-wrap {
  margin-bottom: 18px;
}

.tf-connect-heading {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  letter-spacing: -0.3px;
}

.tf-compat-text {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 6px 0;
}

.tf-instruction-text {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 420px;
  margin: 0 0 20px 0;
}

/* Spinner Loader Animation */
.tf-spinner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
}

.tf-spinner {
  display: inline-block;
  position: relative;
  width: 32px;
  height: 32px;
}

.tf-spinner div {
  transform-origin: 16px 16px;
  animation: tf-spin 1.2s linear infinite;
}

.tf-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 2px;
  left: 14px;
  width: 3px;
  height: 7px;
  border-radius: 20%;
  background: #94a3b8;
}

.tf-spinner div:nth-child(1) { transform: rotate(0deg); animation-delay: -1.1s; }
.tf-spinner div:nth-child(2) { transform: rotate(30deg); animation-delay: -1s; }
.tf-spinner div:nth-child(3) { transform: rotate(60deg); animation-delay: -0.9s; }
.tf-spinner div:nth-child(4) { transform: rotate(90deg); animation-delay: -0.8s; }
.tf-spinner div:nth-child(5) { transform: rotate(120deg); animation-delay: -0.7s; }
.tf-spinner div:nth-child(6) { transform: rotate(150deg); animation-delay: -0.6s; }
.tf-spinner div:nth-child(7) { transform: rotate(180deg); animation-delay: -0.5s; }
.tf-spinner div:nth-child(8) { transform: rotate(210deg); animation-delay: -0.4s; }
.tf-spinner div:nth-child(9) { transform: rotate(240deg); animation-delay: -0.3s; }
.tf-spinner div:nth-child(10) { transform: rotate(270deg); animation-delay: -0.2s; }
.tf-spinner div:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1s; }
.tf-spinner div:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

@keyframes tf-spin {
  0% { opacity: 1; }
  100% { opacity: 0.15; }
}

/* Bottom Bar */
.tf-bottom-bar {
  border-top: 1px solid #1e293b;
  padding-top: 14px;
  display: flex;
  justify-content: flex-start;
}

.tf-btn-cancel {
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 6px 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tf-btn-cancel:hover {
  background: #334155;
  border-color: #475569;
}

.device-pending-icon-wrap {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
}

/* Android Media Vault View */
.av-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 10px 0 20px 0;
}

.av-panel {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.av-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.av-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.av-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 18px;
}

.av-section-label {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  display: block;
}

.av-checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.av-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #cbd5e1;
  cursor: pointer;
}

.av-check-item input[type="checkbox"] {
  accent-color: #22c55e;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.av-option-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.av-sub-tip {
  font-size: 11px;
  color: #64748b;
  margin: 4px 0 0 26px;
}

.av-btn-primary {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
  margin-top: auto;
}

.av-btn-primary:hover {
  background: linear-gradient(135deg, #15803d, #16a34a);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.av-device-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.av-device-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #22c55e;
  font-weight: 600;
  margin-bottom: 6px;
}

.av-device-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.av-device-sub {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
}

.av-adb-guide {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.av-guide-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.av-guide-list {
  padding-left: 18px;
  margin: 0;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.6;
}

.av-progress-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 16px;
  margin-top: auto;
}

.av-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.av-progress-bar-wrap {
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.av-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transition: width 0.3s ease;
}

.av-log-line {
  font-size: 11px;
  color: #94a3b8;
  font-family: monospace;
}

/* ==========================================================================
   iMazing Photos Browser (Matching Screenshot 1)
   ========================================================================== */
.photos-browser-container {
  display: flex;
  height: 100%;
  min-height: 540px;
  background: #0f172a;
  color: #ffffff;
  overflow: hidden;
  user-select: none;
}

/* Sub-Sidebar Left Column (Item A) */
.photos-sub-sidebar {
  width: 200px;
  background: #1e293b;
  border-right: 1px solid #334155;
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
  gap: 20px;
  overflow-y: auto;
  flex-shrink: 0;
}

.photos-nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.photos-group-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 8px 6px 8px;
}

.photos-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.photos-nav-item.indent {
  padding-left: 24px;
}

.photos-nav-item:hover {
  background: #334155;
  color: #ffffff;
}

.photos-nav-item.active {
  background: #0284c7;
  color: #ffffff;
  font-weight: 600;
}

/* Main Photos Workspace */
.photos-main-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #0f172a;
}

/* Toolbar Header (Items B, C, D, E) */
.photos-toolbar {
  height: 48px;
  border-bottom: 1px solid #1e293b;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
}

.toolbar-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tb-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  width: 32px;
  height: 28px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.tb-btn:hover, .tb-btn.active {
  background: #334155;
  color: #ffffff;
  border-color: #475569;
}

.toolbar-zoom {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 3px 10px;
  border-radius: 14px;
}

.zoom-icon-small, .zoom-icon-large {
  font-size: 11px;
  color: #94a3b8;
}

.tb-slider {
  width: 80px;
  accent-color: #0284c7;
  cursor: pointer;
}

.tb-btn-icon {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.tb-btn-icon:hover {
  color: #ffffff;
}

.photos-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 3px 12px;
}

.search-icon {
  font-size: 12px;
  color: #64748b;
}

.photos-search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12px;
  outline: none;
  width: 130px;
}

.photos-search-input::placeholder {
  color: #64748b;
}

.toolbar-date-range {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tb-date-input {
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  width: 75px;
  text-align: center;
}

/* Gallery Scroll Area */
.photos-gallery-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.photo-date-group {
  margin-bottom: 24px;
}

.group-date-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px 0;
}

.photo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.photo-card-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #334155;
  background: #1e293b;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.photo-card-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: photoSkeletonShimmer 1.5s infinite;
  z-index: 1;
}

@keyframes photoSkeletonShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.photo-card-item:hover {
  transform: scale(1.02);
  border-color: #0284c7;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.photo-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.photo-card-item img.lazy-thumb {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.photo-card-item img.lazy-thumb.loaded,
.photo-card-item img.lazy-thumb[src^="http"] {
  opacity: 1;
}

.photo-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.photo-badge.hdr {
  color: #38bdf8;
}

.photo-badge.live {
  color: #f43f5e;
}

/* Awaiting Connection Loading Screen */
.photos-loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 420px;
  color: #ffffff;
  text-align: center;
}

.photos-loading-card {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 40px 48px;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 440px;
}

.photos-loading-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.photos-loading-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Bottom Bar (Item F) */
.photos-bottom-bar {
  height: 48px;
  border-top: 1px solid #1e293b;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.photos-counter-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.info-circle-icon {
  font-size: 14px;
  color: #64748b;
}

/* Pagination Controls */
.photos-pagination-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
}

.photos-page-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #334155;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.photos-page-btn:hover:not(:disabled) {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}

body.theme-android .photos-page-btn:hover:not(:disabled) {
  background: #22c55e;
  border-color: #4ade80;
}

.photos-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.photos-page-info {
  font-size: 12px;
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
}

.photos-per-page-select {
  background: #0f172a;
  border: 1px solid #334155;
  color: #38bdf8;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

body.theme-android .photos-per-page-select {
  color: #4ade80;
}

.photos-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.photos-action-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.photos-action-btn:hover:not(.disabled) {
  background: #334155;
  border-color: #0284c7;
}

.photos-action-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   Interactive Feature Screens (Messages, Call History, Notes, Voice Memos, Contacts)
   ========================================================================== */

/* Messages Workspace */
.messages-threads-sidebar {
  width: 280px;
  background: #0f172a;
  border-right: 1px solid #1e293b;
}

.messages-threads-list .thread-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}

.messages-threads-list .thread-item:hover {
  background: rgba(255,255,255,0.04);
}

.messages-threads-list .thread-item.active {
  background: rgba(2, 132, 199, 0.15);
  border-left: 3px solid #0284c7;
}

.thread-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.thread-avatar.avatar-blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.thread-avatar.avatar-purple { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.thread-avatar.avatar-green { background: linear-gradient(135deg, #059669, #34d399); }
.thread-avatar.avatar-amber { background: linear-gradient(135deg, #d97706, #fbbf24); }

.thread-info { flex: 1; min-width: 0; }
.thread-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.thread-name { font-size: 13px; font-weight: 600; color: #fff; }
.thread-time { font-size: 11px; color: #64748b; }
.thread-snippet { font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }

.messages-chat-workspace {
  background: #090d16;
  display: flex;
  flex-direction: column;
}

.active-contact-info { display: flex; flex-direction: column; }
.contact-name { font-weight: 700; font-size: 14px; color: #fff; }
.contact-status { font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 6px; }

.messages-thread-container {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg-date-divider { text-align: center; margin: 8px 0; }
.msg-date-divider span { font-size: 11px; color: #64748b; background: #0f172a; padding: 4px 12px; border-radius: 12px; border: 1px solid #1e293b; }

.msg-bubble-wrap { display: flex; flex-direction: column; max-width: 65%; }
.msg-bubble-wrap.incoming { align-self: flex-start; }
.msg-bubble-wrap.outgoing { align-self: flex-end; }

.msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.msg-bubble.imessage {
  background: linear-gradient(135deg, #007aff, #0284c7);
  color: #ffffff;
}

.msg-time { font-size: 10px; opacity: 0.75; display: block; margin-top: 4px; text-align: right; }
.msg-media-attachment img { max-width: 260px; border-radius: 12px; margin-bottom: 6px; }

/* ==========================================================================
   iMazing 3 Call History Workflow Styling (Screenshot Replica Layout)
   ========================================================================== */

.call-history-browser-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--bg-dark, #0f172a);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.services-filter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label-text {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
}

.call-services-select {
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  outline: none;
  width: 140px;
  cursor: pointer;
}

.call-contacts-sidebar {
  width: 270px;
  min-width: 250px;
  background: #182232;
  border-right: 1px solid #2d3d52;
}

.call-duration-badge {
  background: #334155;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  font-family: monospace;
}

.thread-item.active .call-duration-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.call-log-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0b1120;
  overflow: hidden;
}

.call-table-scroll-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
}

.imazing-call-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #e2e8f0;
}

.imazing-call-table th {
  background: #182232;
  border-bottom: 1px solid #2d3d52;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 10px 16px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 10;
}

.imazing-call-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.imazing-call-table tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.imazing-call-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.imazing-call-table tr.selected {
  background: rgba(0, 120, 215, 0.2) !important;
}

.call-type-icon {
  font-size: 13px;
  font-weight: 700;
  margin-right: 6px;
  display: inline-block;
}

.icon-red-outgoing { color: #ef4444; }
.icon-green-incoming { color: #22c55e; }
.icon-facetime { color: #c084fc; }

.call-date-str {
  color: #e2e8f0;
}

/* Notes Workspace */
.notes-folders-list .folder-item { padding: 10px 14px; font-size: 13px; color: #cbd5e1; cursor: pointer; border-radius: 6px; margin: 2px 8px; display: flex; justify-content: space-between; }
.notes-folders-list .folder-item:hover { background: rgba(255,255,255,0.05); }
.notes-folders-list .folder-item.active { background: #0284c7; color: #fff; font-weight: 600; }
.badge-count { font-size: 11px; opacity: 0.7; }

.note-card-item { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; }
.note-card-item:hover { background: rgba(255,255,255,0.03); }
.note-card-item.active { background: rgba(2, 132, 199, 0.15); border-left: 3px solid #0284c7; }
.note-card-title { font-size: 13px; font-weight: 700; color: #fff; margin: 0 0 4px 0; }
.note-card-date { font-size: 10px; color: #64748b; display: block; margin-bottom: 4px; }
.note-card-preview { font-size: 11px; color: #94a3b8; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.note-view-workspace { background: #0f172a; padding: 0; }
.note-toolbar { background: #1e293b; }
.note-date-header { font-size: 11px; color: #64748b; }
.note-content-body { padding: 32px 40px; max-width: 800px; color: #e2e8f0; line-height: 1.7; }
.note-main-title { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.note-divider { border: none; border-top: 1px solid #1e293b; margin: 16px 0 24px 0; }
.note-p { font-size: 14px; margin-bottom: 16px; }
.note-ul { padding-left: 20px; margin-bottom: 24px; }
.note-ul li { margin-bottom: 8px; font-size: 13px; }
.note-callout-box { background: rgba(2, 132, 199, 0.1); border: 1px solid rgba(2, 132, 199, 0.3); border-radius: 8px; padding: 14px 18px; font-size: 13px; color: #38bdf8; margin-top: 24px; }

/* Voice Memos (iMazing Screenshot-1 Replica) */
.voice-memos-browser-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--bg-dark, #0f172a);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.voice-memos-top-toolbar {
  height: 42px;
  min-height: 42px;
  background: #182232;
  border-bottom: 1px solid #2d3d52;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.voice-memos-log-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0b1120;
  overflow: hidden;
}

.vm-table-scroll-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
}

.imazing-vm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #e2e8f0;
}

.imazing-vm-table th {
  background: #182232;
  border-bottom: 1px solid #2d3d52;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 20px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 10;
}

.imazing-vm-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.imazing-vm-table th.sortable:hover {
  color: #ffffff;
}

.col-vm-label-hdr {
  width: 45%;
}

.col-vm-date-hdr {
  width: 35%;
}

.col-vm-duration-hdr {
  width: 20%;
}

.imazing-vm-table td {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.imazing-vm-table tr {
  cursor: pointer;
  transition: background 0.12s ease;
}

.imazing-vm-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.imazing-vm-table tr.selected {
  background: rgba(0, 120, 215, 0.22) !important;
}

.vm-label-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vm-row-icon {
  color: #94a3b8;
  flex-shrink: 0;
  opacity: 0.85;
}

.imazing-vm-table tr.selected .vm-row-icon {
  color: #38bdf8;
  opacity: 1;
}

.vm-label-text {
  font-weight: 500;
  color: #f1f5f9;
}

.col-vm-date {
  color: #94a3b8;
}

.col-vm-duration {
  color: #94a3b8;
  font-family: inherit;
}

.vm-empty-state {
  text-align: center;
  padding: 40px !important;
  color: #64748b;
  font-style: italic;
}

.vm-bottom-status-bar {
  height: 44px;
  min-height: 44px;
  background: #182232;
  border-top: 1px solid #2d3d52;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
}

.info-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #64748b;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}

.vm-mini-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 4px 14px;
}

.vm-player-btn {
  background: #0284c7;
  border: none;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-player-info-wrap {
  display: flex;
  flex-direction: column;
  width: 160px;
}

.vm-player-title-text {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-player-progress {
  height: 3px;
  background: #334155;
  border-radius: 2px;
  margin-top: 3px;
  overflow: hidden;
}

.vm-progress-fill {
  height: 100%;
  background: #38bdf8;
}

.vm-player-time-text {
  font-size: 10px;
  color: #94a3b8;
  font-family: monospace;
}


/* Contacts (iMazing Screenshot 1 & 2 Replica) */
.contacts-browser-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--bg-dark, #0f172a);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.contacts-top-toolbar {
  height: 42px;
  min-height: 42px;
  background: #182232;
  border-bottom: 1px solid #2d3d52;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.sort-by-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 12px;
  color: #94a3b8;
}

.contacts-sort-select {
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

.contacts-sort-dir-btn {
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacts-sort-dir-btn:hover {
  background: #1e293b;
  border-color: #0284c7;
}

.contacts-body-split {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #090d16;
}

/* Pane 1: Groups Sub-Sidebar */
.contacts-groups-sidebar {
  width: 210px;
  min-width: 200px;
  background: #182232;
  border-right: 1px solid #2d3d52;
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.contacts-groups-list {
  display: flex;
  flex-direction: column;
}

.contacts-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.12s ease;
}

.contacts-group-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.contacts-group-item.active {
  background: rgba(0, 120, 215, 0.22);
  color: #ffffff;
  font-weight: 600;
}

.group-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-badge {
  background: #27364b;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 10px;
}

.contacts-group-item.active .group-badge {
  background: #0284c7;
  color: #ffffff;
}

.group-section-hdr {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  padding: 16px 16px 6px 16px;
}

/* Pane 2: Middle Contacts List Sidebar */
.contacts-list-sidebar {
  width: 250px;
  min-width: 230px;
  background: #0f172a;
  border-right: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.contacts-list-body {
  display: flex;
  flex-direction: column;
}

.contacts-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.12s ease;
}

.contacts-row-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.contacts-row-item.active {
  background: rgba(0, 120, 215, 0.22);
  border-left: 3px solid #0078d7;
}

.contact-row-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #475569;
}

.contact-row-avatar.avatar-blue { background: linear-gradient(135deg, #0284c7, #3b82f6); }
.contact-row-avatar.avatar-purple { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.contact-row-avatar.avatar-green { background: linear-gradient(135deg, #059669, #34d399); }
.contact-row-avatar.avatar-amber { background: linear-gradient(135deg, #d97706, #fbbf24); }

.contact-row-name {
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contacts-row-item.active .contact-row-name {
  color: #ffffff;
  font-weight: 600;
}

.contacts-empty-state {
  padding: 30px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  font-style: italic;
}

/* Pane 3: Right Contact Detail Card Workspace (Pixel-perfect matching Screenshot 2) */
.contacts-detail-workspace {
  flex: 1;
  background: #0b1120;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0;
}

.contact-hero-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px 56px 28px 56px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #94a3b8;
  background: #182232;
  border: 1px solid #2d3d52;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-hero-meta {
  display: flex;
  flex-direction: column;
}

.contact-hero-name {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.contact-hero-sub {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}

.contact-details-body {
  padding: 28px 56px 56px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 680px;
}

.contact-detail-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin: 0 0 4px 0;
}

.field-value-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.field-tag {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  min-width: 60px;
}

.field-val {
  color: #ffffff;
  font-weight: 500;
}

.field-none {
  color: #64748b;
  font-size: 12px;
  font-style: italic;
}

.contact-notes-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

.contacts-bottom-status-bar {
  height: 44px;
  min-height: 44px;
  background: #182232;
  border-top: 1px solid #2d3d52;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
}

/* Screenshot 2: Contacts Import Wizard Modal Card */
.imazing-import-wizard-card {
  width: 580px;
  max-width: 90vw;
  background: #182232;
  border: 1px solid #2d3d52;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wizard-header {
  padding: 16px 20px;
  border-bottom: 1px solid #2d3d52;
}

.wizard-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.wizard-table-wrap {
  max-height: 220px;
  overflow-y: auto;
  border-bottom: 1px solid #2d3d52;
}

.imazing-wizard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #e2e8f0;
}

.imazing-wizard-table th {
  background: #0f172a;
  border-bottom: 1px solid #2d3d52;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 14px;
  text-align: left;
  position: sticky;
  top: 0;
}

.imazing-wizard-table td {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.col-chk { width: 36px; text-align: center; }
.col-avatar { width: 36px; }
.col-first-name { width: 25%; }
.col-last-name { width: 35%; }
.col-company { width: 30%; }

.wizard-avatar-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #334155;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-search-row {
  padding: 12px 16px 6px 16px;
}

.wizard-input-search {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
  outline: none;
}

.wizard-input-search:focus {
  border-color: #0284c7;
}

.wizard-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  font-size: 12px;
  color: #94a3b8;
}

.wizard-chk-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #e2e8f0;
}

.wizard-privacy-note {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
  background: #0f172a;
  border: 1px solid #2d3d52;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 16px;
}

.wizard-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 12px 16px;
  font-size: 12px;
  color: #e2e8f0;
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #101826;
  border-top: 1px solid #2d3d52;
}


/* Photos Detail View Modal Overlay & Inspector */
.detail-modal-overlay {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.detail-modal-container {
  width: 95vw;
  height: 90vh;
  background: #090d16;
  border-radius: 14px;
  border: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

.detail-modal-header {
  height: 52px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.detail-title-wrap { display: flex; flex-direction: column; }
.detail-filename { font-size: 14px; font-weight: 700; color: #fff; }
.detail-date { font-size: 11px; color: #64748b; }

.detail-modal-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.detail-preview-pane {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#detail-main-img {
  max-width: 90%;
  max-height: 75%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.detail-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.detail-nav-btn:hover { background: #0284c7; }
.detail-nav-btn.left { left: 20px; }
.detail-nav-btn.right { right: 20px; }

.detail-carousel-strip {
  position: absolute;
  bottom: 16px;
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 90%;
  overflow-x: auto;
}

.carousel-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.5;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
}

.carousel-thumb:hover { opacity: 0.8; }
.carousel-thumb.active { opacity: 1; border-color: #0284c7; }

.detail-inspector-pane {
  width: 320px;
  background: #0f172a;
  border-left: 1px solid #1e293b;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inspector-section-title { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 12px 0; }
.inspector-box { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 12px 14px; font-size: 12px; }
.inspector-assets-row { display: flex; gap: 8px; margin-top: 6px; }
.asset-chip { background: #0f172a; border: 1px solid #334155; padding: 4px 8px; border-radius: 4px; font-size: 10px; color: #94a3b8; cursor: pointer; }
.asset-chip.active { border-color: #0284c7; color: #38bdf8; background: rgba(2, 132, 199, 0.15); }
.mini-map-card { height: 90px; background: linear-gradient(135deg, #1e293b, #0f172a); border-radius: 6px; border: 1px dashed #334155; display: flex; align-items: center; justify-content: center; }
.map-placeholder { font-size: 11px; color: #38bdf8; font-weight: 600; }

/* ==========================================================================
   iMazing 3 Music Layout & Interactive Player Deck Styling
   ========================================================================== */

.music-browser-container {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.music-sub-sidebar {
  width: 210px;
  min-width: 210px;
  background: #1e293b !important;
  border-right: 1px solid #334155 !important;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.music-sub-sidebar-footer {
  margin-top: auto;
  display: flex;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #334155;
}

.music-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.music-btn-icon:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.music-main-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #090d16;
}

.music-top-options-bar {
  height: 34px;
  min-height: 34px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.music-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
}

.music-checkbox-label input[type="checkbox"] {
  accent-color: #0284c7;
  cursor: pointer;
}

.music-header-deck {
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.music-player-bar {
  height: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #141c2e;
  border-bottom: 1px solid #1e293b;
}

.music-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.player-btn:hover {
  color: #ffffff;
  background: #1e293b;
}

.player-btn.play-btn {
  background: #0284c7;
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.player-btn.play-btn:hover {
  background: #0369a1;
}

.music-player-display {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 380px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 6px 12px;
}

.player-art-wrap {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

#player-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.player-track-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-song-title {
  font-weight: 700;
  color: #ffffff;
  margin-right: 6px;
}

.player-artist-name {
  color: #64748b;
}

.player-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-time {
  font-size: 10px;
  color: #64748b;
  font-family: monospace;
  min-width: 26px;
}

.player-slider, .vol-slider {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  accent-color: #0284c7;
  cursor: pointer;
}

.music-player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 130px;
}

.vol-icon {
  font-size: 12px;
  color: #64748b;
}

.music-column-browser {
  height: 145px;
  display: flex;
  border-bottom: 1px solid #1e293b;
  background: #0f172a;
}

.column-browser-col {
  flex: 1;
  border-right: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.column-browser-col:last-child {
  border-right: none;
}

.col-header {
  height: 26px;
  min-height: 26px;
  background: #1e293b;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #334155;
  letter-spacing: 0.5px;
}

.col-list {
  flex: 1;
  overflow-y: auto;
  padding: 2px 0;
}

.col-item {
  padding: 5px 12px;
  font-size: 12px;
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.1s;
}

.col-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.col-item.active {
  background: #0284c7;
  color: #ffffff;
  font-weight: 600;
}

.music-table-scroll {
  flex: 1;
  overflow-y: auto;
  background: #090d16;
}

.music-tracks-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.music-tracks-table th {
  position: sticky;
  top: 0;
  background: #0f172a;
  z-index: 5;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  border-bottom: 1px solid #1e293b;
}

.music-tracks-table td {
  padding: 6px 12px;
  font-size: 12px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.music-track-row:hover {
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.music-track-row.active-row {
  background: rgba(2, 132, 199, 0.3) !important;
  color: #ffffff;
}

.music-track-row.playing-row {
  background: rgba(16, 185, 129, 0.12);
}

.song-title-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-album-art {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.song-title-info {
  display: flex;
  flex-direction: column;
}

.song-title-text {
  font-weight: 600;
  color: #f8fafc;
}

.playing-equalizer {
  font-size: 10px;
  color: #10b981;
  font-weight: 700;
}

.track-badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  margin: 0 2px;
}

.track-badge.explicit {
  background: #ef4444;
  color: #ffffff;
}

.track-badge.drm {
  background: #475569;
  color: #ffffff;
}

.track-badge.cloud {
  background: #0284c7;
  color: #ffffff;
}

.music-bottom-bar {
  height: 42px;
  min-height: 42px;
  background: #0f172a;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

/* ==========================================================================
   iMazing 3 Vertical Device Card Styling (Thumbnail Above Name)
   ========================================================================== */

.imazing-device-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.imazing-device-card:hover {
  border-color: #0284c7;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.25);
}

.imazing-device-card.registered-card {
  border-color: #334155;
  background: #0f172a;
}

.imazing-device-card.active-card {
  border: 2px solid #0284c7;
  background: #131c30;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.35);
}

/* Unregistered Device Cards (Monochromatic Gray / History) */
.imazing-device-card.unregistered {
  background: #0b1120;
  border: 1px dashed #334155;
  opacity: 0.78;
}

.imazing-device-card.unregistered .card-phone-wrapper {
  filter: grayscale(100%) opacity(0.55);
}

.imazing-device-card.unregistered .card-device-name {
  color: #94a3b8;
}

.imazing-device-card.unregistered .card-device-spec {
  color: #64748b;
}

.imazing-device-card.unregistered:hover {
  opacity: 1;
  border-color: #0284c7;
  border-style: solid;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.2);
}

.imazing-device-card.unregistered:hover .card-phone-wrapper {
  filter: grayscale(40%) opacity(0.85);
}

.btn-register-chip {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px dashed rgba(56, 189, 248, 0.4);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}

.btn-register-chip:hover {
  background: #0284c7;
  color: #ffffff;
  border-style: solid;
}

.badge-registered {
  font-size: 9px;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.card-top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.card-select-chk {
  width: 16px;
  height: 16px;
  accent-color: #0284c7;
  cursor: pointer;
}

.card-options-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.card-options-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.card-phone-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 16px 0;
  width: 100%;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}

.imazing-device-card:hover .card-phone-wrapper {
  transform: scale(1.03);
}

/* Segmented Devices Tab Switcher */
.devices-tab-btn {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
}

.devices-tab-btn:hover {
  background: #1e293b;
  color: #ffffff;
}

.devices-tab-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}

.tab-count-pill {
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 8px;
}

.devices-tab-btn.active .tab-count-pill {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}


.card-device-meta {
  text-align: center;
  margin-bottom: 14px;
  width: 100%;
}

.card-device-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-device-spec {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #64748b;
  font-size: 13px;
  border-top: 1px solid #1e293b;
  padding-top: 12px;
  width: 100%;
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.status-chip.info {
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
}

.status-chip.info:hover {
  color: #0284c7;
}

/* ==========================================================================
   iMazing 3 Messages Workflow Styling (Screenshot Replica Layout)
   ========================================================================== */

.messages-browser-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--bg-dark, #0f172a);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

/* Top Toolbar Bar Across Full Width */
.messages-top-toolbar {
  height: 46px;
  min-height: 46px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.toolbar-left-group, .toolbar-right-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Toggle Switch "Only show attachments" */
.msg-toggle-switch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #e2e8f0;
  user-select: none;
}

.msg-toggle-switch-label input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  width: 36px;
  height: 20px;
  background: #475569;
  border-radius: 20px;
  position: relative;
  transition: background 0.2s ease;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
}

.msg-toggle-switch-label input[type="checkbox"]:checked + .toggle-slider {
  background: #0284c7;
}

.msg-toggle-switch-label input[type="checkbox"]:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/* Date Range Filter Group */
.msg-date-range-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 3px 8px;
}

.date-label {
  font-size: 11px;
  color: #94a3b8;
}

.msg-date-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 11px;
  outline: none;
  cursor: pointer;
}

.btn-clear-date-icon {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 11px;
  cursor: pointer;
  padding: 0 4px;
}

.btn-clear-date-icon:hover {
  color: #ef4444;
}

.toolbar-icon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 5px 7px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.toolbar-icon-btn:hover {
  background: #334155;
  color: #ffffff;
  border-color: #475569;
}

/* ⚙️ Gear Menu Dropdown */
.msg-gear-dropdown-wrap {
  position: relative;
}

.msg-gear-menu-popup {
  position: absolute;
  top: 36px;
  right: 0;
  width: 240px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 8px 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.gear-menu-header {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  padding: 4px 12px 6px 12px;
  letter-spacing: 0.5px;
}

.gear-menu-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.15s;
}

.gear-menu-option:hover {
  background: #2d3d54;
  color: #ffffff;
}

.gear-menu-option input[type="checkbox"] {
  accent-color: #0284c7;
  cursor: pointer;
}

.gear-menu-divider {
  height: 1px;
  background: #334155;
  margin: 6px 0;
}

/* Main Body Split */
.messages-body-split {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   Media, Files and Links Overlay (Facebook Messenger Style)
   ========================================================================== */
.msg-media-files-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0f172a;
  z-index: 100;
  display: flex;
  flex-direction: column;
  animation: fadeInPanel 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.msg-media-files-overlay.hidden {
  display: none !important;
}

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

.media-panel-header {
  height: 52px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  flex-shrink: 0;
}

.media-back-btn {
  background: #334155;
  border: 1px solid #475569;
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.media-back-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}

.media-panel-title-group {
  display: flex;
  flex-direction: column;
}

.media-panel-main-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.media-panel-sub-title {
  font-size: 12px;
  color: #38bdf8;
  font-weight: 500;
}

/* 3 Main Tabs: Media | Files | Links */
.media-panel-tabs-bar {
  display: flex;
  background: #182232;
  border-bottom: 1px solid #2d3d52;
  padding: 0 18px;
  gap: 8px;
  flex-shrink: 0;
}

.media-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.15s;
}

.media-tab-btn:hover {
  color: #e2e8f0;
}

.media-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

.media-panel-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #0b1120;
}

.media-pane-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 24px;
  overflow-y: auto;
}

.media-pane-content.hidden {
  display: none !important;
}

/* Sub-pills for Media (Photos | Videos) */
.media-subpills-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.subpill-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.subpill-btn:hover {
  background: #334155;
  color: #ffffff;
}

.subpill-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}

/* Media Grid Layout (3 Column aspect ratio) */
.media-grid-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin: 16px 0 10px 0;
}

.media-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.media-grid-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #1e293b;
  border: 1px solid #334155;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.media-grid-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border-color: #38bdf8;
}

.media-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-video-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Empty State (Facebook Messenger Style) */
.media-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: #94a3b8;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  color: #475569;
}

.media-empty-state .empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.media-empty-state .empty-sub {
  font-size: 13px;
  color: #64748b;
  max-width: 320px;
  line-height: 1.4;
}

/* Links List Item Cards (Matching Screenshot 4) */
.links-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  transition: all 0.15s;
}

.link-card-item:hover {
  background: #273549;
  border-color: #0284c7;
  transform: translateX(4px);
}

.link-card-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
  overflow: hidden;
}

.link-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-card-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.link-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card-url {
  font-size: 12px;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Files List Item Cards */
.files-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px 16px;
}

.file-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-card-details {
  display: flex;
  flex-direction: column;
}

.file-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.file-card-meta {
  font-size: 12px;
  color: #94a3b8;
}

/* Sub-Sidebar Left Panel */
.messages-threads-sidebar {
  width: 320px;
  min-width: 300px;
  background: #182232;
  border-right: 1px solid #2d3d52;
  display: flex;
  flex-direction: column;
}

.threads-sidebar-header {
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid #2d3d52;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.msg-sort-select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  width: 100%;
}

.dropdown-arrow {
  color: #64748b;
  font-size: 11px;
  pointer-events: none;
}

.messages-threads-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thread-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.thread-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.thread-item.active {
  background: #0078d7 !important;
  color: #ffffff !important;
}

.thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.avatar-flint { background: #475569; }
.avatar-memoji-1 { background: linear-gradient(135deg, #f97316, #ea580c); }
.avatar-memoji-2 { background: linear-gradient(135deg, #ec4899, #d946ef); }
.avatar-memoji-3 { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.avatar-memoji-4 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.avatar-memoji-5 { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.avatar-gray { background: #334155; }

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

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

.thread-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-time {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284c7;
  display: inline-block;
  margin-left: 6px;
}

.thread-item.active .thread-name,
.thread-item.active .thread-time,
.thread-item.active .thread-snippet {
  color: #ffffff !important;
}

.thread-snippet {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Bottom Pinned Search */
.threads-sidebar-footer-search {
  padding: 10px 12px;
  border-top: 1px solid #2d3d52;
  background: #182232;
}

.search-input-pill {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input-pill input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12px;
  outline: none;
  width: 100%;
}

/* Right Chat Workspace Panel */
.messages-chat-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0b1120;
  overflow: hidden;
}

.chat-workspace-header {
  height: 38px;
  border-bottom: 1px solid #1e293b;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.header-fold-arrow {
  cursor: pointer;
}

.messages-thread-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg-protocol-header {
  text-align: center;
  margin-bottom: 20px;
}

.protocol-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.protocol-date {
  font-size: 11px;
  color: #64748b;
}

/* Chat Bubbles */
.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 65%;
  cursor: pointer;
}

.msg-bubble-wrap.outgoing {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-bubble-wrap.outgoing .msg-bubble {
  background: #0078d7;
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.msg-bubble-wrap.incoming {
  align-self: flex-start;
  align-items: flex-start;
}

.msg-bubble-wrap.incoming .msg-bubble {
  background: #26262a;
  color: #f8fafc;
  border-radius: 18px 18px 18px 4px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.msg-status-label {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
  margin-right: 4px;
}

.msg-media-attachment {
  border-radius: 14px;
  overflow: hidden;
  max-width: 480px;
  margin-bottom: 4px;
}

.msg-media-attachment img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Bottom Full-Width Status Bar */
.messages-bottom-status-bar {
  height: 44px;
  min-height: 44px;
  background: #0f172a;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 12px;
  color: #94a3b8;
}

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

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

.imazing-btn-secondary {
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.imazing-btn-secondary:hover {
  background: #334155;
  border-color: #0284c7;
}

.btn-arrow {
  color: #94a3b8;
  font-weight: 700;
}

/* Export Menu Popup */
.export-dropdown-wrap {
  position: relative;
}

.export-menu-popup {
  position: absolute;
  bottom: 42px;
  right: 0;
  width: 240px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  padding: 6px 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.export-menu-item {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12px;
  padding: 8px 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.export-menu-item:hover {
  background: #0284c7;
}


/* Global Utility Helper */
.hidden {
  display: none !important;
}

/* Export Configuration Sheet Modals */
.msg-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

.msg-modal-overlay.hidden {
  display: none !important;
}

/* Export Configuration Sheet Modals (Matching Screenshots 2, 3, & 4) */
.msg-export-sheet {
  width: 460px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.sheet-section-card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.imazing-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-row-label {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.form-row-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.imazing-select {
  background: #111827;
  border: 1px solid #4b5563;
  color: #ffffff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  outline: none;
}

.sub-dim-label {
  font-size: 10px;
  color: #6b7280;
}

.pill-input-box {
  background: #111827;
  border: 1px solid #4b5563;
  color: #ffffff;
  font-size: 11px;
  padding: 4px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.card-section-label {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
}

.margins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 4px;
}

.margin-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
}

.margin-input {
  width: 75px;
  background: #111827;
  border: 1px solid #4b5563;
  color: #ffffff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
  outline: none;
}

.imazing-chk-row, .imazing-radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #f3f4f6;
  cursor: pointer;
  user-select: none;
}

.imazing-chk-row input, .imazing-radio-row input {
  accent-color: #0078d7;
  cursor: pointer;
}

.text-disabled {
  color: #6b7280 !important;
}

.imazing-sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.imazing-sheet-footer.right-only {
  justify-content: flex-end;
  gap: 8px;
}

.footer-right-buttons {
  display: flex;
  gap: 8px;
}

.imazing-btn-pill {
  background: #374151;
  border: 1px solid #4b5563;
  color: #ffffff;
  border-radius: 6px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.imazing-btn-pill:hover {
  background: #4b5563;
}

.imazing-btn-pill.btn-primary {
  background: #0284c7;
  border-color: #0284c7;
}

.imazing-btn-pill.btn-primary-blue {
  background: #0078d7;
  border-color: #0078d7;
}

.imazing-btn-pill.btn-primary-blue:hover {
  background: #0063b1;
}

/* Save Location Panel (Screenshot 3) */
.imazing-save-panel-card {
  width: 440px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.save-panel-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.save-panel-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.save-label {
  width: 65px;
  text-align: right;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.save-input-text, .save-select-where {
  flex: 1;
  background: #111827;
  border: 1px solid #4b5563;
  color: #ffffff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  outline: none;
}

.save-input-text:focus, .save-select-where:focus {
  border-color: #0078d7;
}

.save-panel-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* Guide modal styling */
.modal-guide-sheet {
  width: 500px;
}

.guide-body p {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.5;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  border: 1px solid #334155;
  padding: 8px 12px;
  border-radius: 8px;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-desc {
  font-size: 12px;
  color: #e2e8f0;
}

.guide-tip {
  font-size: 11px !important;
  color: #38bdf8 !important;
}

/* Toast Notifications */
.msg-toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0078d7;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 999999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.msg-toast-notification.visible {
  opacity: 1;
  transform: translateY(0);
}

.search-icon-svg,
.export-icon-svg,
.print-icon-svg {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  flex-shrink: 0 !important;
}

.messages-body-split,
.messages-main-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.messages-threads-sidebar {
  width: 320px;
  min-width: 300px;
  background: #182232;
  border-right: 1px solid #2d3d52;
  display: flex;
  flex-direction: column;
}

.threads-sidebar-header,
.thread-list-header-bar {
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid #2d3d52;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #182232;
}

.msg-sort-select,
.thread-sort-select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  width: 100%;
}

.messages-threads-list,
.thread-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.threads-sidebar-footer-search,
.thread-bottom-search-wrap {
  padding: 10px 14px;
  border-top: 1px solid #2d3d52;
  background: #182232;
}

.search-input-pill,
.thread-search-input-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input-pill input,
.thread-search-input-box input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12px;
  outline: none;
  width: 100%;
}

.messages-root-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--bg-dark, #0f172a);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.messages-prompt-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background: #111827;
  padding: 40px 20px;
}

.messages-green-bg {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.35) !important;
}

.prompt-messages-svg {
  width: 44px;
  height: 44px;
  fill: #ffffff;
}

.backup-review-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  margin-top: 4px;
}

.review-label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.review-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #475569;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.review-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.increment-option-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.increment-card {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.increment-card:hover {
  border-color: #0078d7;
  background: #243347;
  transform: translateY(-1px);
}

.increment-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 120, 215, 0.18);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.increment-text-body {
  flex: 1;
  text-align: left;
}

.increment-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.increment-sub {
  font-size: 13px;
  color: #38bdf8;
}

.increment-chevron {
  font-size: 22px;
  color: #64748b;
  margin-left: 12px;
}

.increment-card:hover .increment-chevron {
  color: #38bdf8;
}

/* ==========================================================================
   VOICEMAIL OVERHAUL STYLES (1:1 iMazing Layout & Specs)
   ========================================================================== */

.voicemail-root-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--bg-dark, #0f172a);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

/* --- 1. INITIAL BACKUP PROMPT SCREEN (Image 1) --- */
.voicemail-prompt-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background: #111827;
  padding: 40px 20px;
}

.prompt-center-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 580px;
  width: 100%;
  text-align: center;
}

.prompt-header-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #0078d7, #0284c7);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 120, 215, 0.35);
  margin-bottom: 20px;
}

.prompt-voicemail-svg {
  width: 44px;
  height: 44px;
  fill: #ffffff;
}

.prompt-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.prompt-subtitle {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 32px 0;
}

.backup-option-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-bottom: 32px;
}

.backup-option-card {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-radius: 12px;
  background: #1e293b;
  border: 2px solid #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}

.backup-option-card:hover {
  border-color: #0284c7;
  background: #243347;
}

.backup-option-card.selected {
  border-color: #0078d7;
  background: rgba(0, 120, 215, 0.12);
  box-shadow: 0 0 0 1px #0078d7;
}

.backup-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #64748b;
  margin-right: 16px;
  position: relative;
  flex-shrink: 0;
}

.backup-option-card.selected .card-radio-circle {
  border-color: #0078d7;
  background: #0078d7;
}

.backup-option-card.selected .card-radio-circle::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.card-icon-wrap.data-access {
  background: rgba(249, 115, 22, 0.18);
  color: #f97316;
}

.card-icon-wrap.full-backup {
  background: rgba(2, 132, 199, 0.18);
  color: #38bdf8;
}

.card-text-body {
  flex: 1;
}

.card-option-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.card-option-desc {
  font-size: 13px;
  color: #38bdf8;
}

.backup-option-card:not(.selected) .card-option-desc {
  color: #94a3b8;
}

.card-info-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #475569;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  flex-shrink: 0;
}

.card-info-btn:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}

.prompt-action-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-prompt-next {
  background: #0078d7;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 120, 215, 0.4);
  transition: all 0.2s ease;
}

.btn-prompt-next:hover {
  background: #0063b1;
  transform: translateY(-1px);
}

/* --- 2. MAIN VOICEMAIL DATA WORKSPACE (Image 2) --- */
.voicemail-browser-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: var(--bg-dark, #0f172a);
}

.voicemail-sub-toolbar {
  height: 48px;
  background: #182232;
  border-bottom: 1px solid #2d3d52;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.voicemail-toolbar-left,
.voicemail-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voicemail-services-select {
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  outline: none;
  width: 140px;
  cursor: pointer;
}

.subnav-text-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 12px;
}

.subnav-text-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.voicemail-main-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.voicemail-contacts-sidebar {
  width: 270px;
  min-width: 250px;
  background: #182232;
  border-right: 1px solid #2d3d52;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.contact-summary-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.contact-summary-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.contact-summary-item.selected {
  background: #0078d7 !important;
  color: #ffffff;
}

.contact-avatar-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.contact-emoji-avatar {
  font-size: 20px;
}

.contact-default-icon {
  width: 18px;
  height: 18px;
  background: #94a3b8;
  mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/></svg>") no-repeat center;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/></svg>") no-repeat center;
}

.contact-info-col {
  flex: 1;
  min-width: 0;
}

.contact-name {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-date-row {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.contact-summary-item.selected .contact-date-row {
  color: rgba(255, 255, 255, 0.8);
}

.voicemail-log-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0b1120;
  overflow: hidden;
}

.imazing-voicemail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.imazing-voicemail-table th {
  background: #182232;
  color: #94a3b8;
  font-weight: 600;
  font-size: 11px;
  padding: 8px 12px;
  border-bottom: 1px solid #2d3d52;
  position: sticky;
  top: 0;
  z-index: 2;
}

.imazing-voicemail-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.imazing-voicemail-table tr.voicemail-row {
  cursor: pointer;
  transition: background 0.12s ease;
}

.imazing-voicemail-table tr.voicemail-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.imazing-voicemail-table tr.voicemail-row.selected {
  background: #1e3a5f !important;
  color: #ffffff;
}

.col-transcript {
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #94a3b8;
}

.date-picker-input {
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  outline: none;
  width: 100px;
  text-align: center;
}

.table-scroll-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  width: 100%;
  height: 100%;
}

.voicemail-footer-bar {
  height: 44px;
  min-height: 44px;
  background: #182232;
  border-top: 1px solid #2d3d52;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  position: relative;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

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

.voicemail-mini-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  border: 1px solid #0078d7;
  border-radius: 20px;
  padding: 4px 16px;
}

.player-btn {
  background: #0078d7;
  color: #fff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
}

.player-title {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
}

.player-progress-bar {
  width: 100px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  overflow: hidden;
}

.player-time {
  font-size: 10px;
  color: #38bdf8;
  font-family: monospace;
}

/* ==========================================================================
   Export Sheet Options Modals (PDF, Text, CSV, Save Panel)
   ========================================================================== */
.msg-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.2s ease-out;
}

.msg-modal-overlay.hidden {
  display: none !important;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.imazing-export-sheet {
  background: #182232;
  border: 1px solid #334155;
  border-radius: 12px;
  width: 480px;
  max-width: 90vw;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #ffffff;
}

.sheet-header {
  height: 48px;
  background: #1e293b;
  border-bottom: 1px solid #2d3d52;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.sheet-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.sheet-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}

.sheet-close:hover {
  background: #334155;
  color: #ef4444;
}

.sheet-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 70vh;
  overflow-y: auto;
  background: #0f172a;
}

.sheet-section-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sheet-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
}

.margin-top-sm {
  margin-top: 6px;
}

.sheet-select, .sheet-input-short {
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}

.sheet-select:focus, .sheet-input-short:focus {
  border-color: #0284c7;
}

.margins-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.checkbox-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e2e8f0;
  cursor: pointer;
}

.sheet-checkbox-row input[type="checkbox"] {
  accent-color: #0284c7;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.sheet-footer {
  height: 56px;
  background: #1e293b;
  border-top: 1px solid #2d3d52;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  gap: 12px;
}

.imazing-btn-pill {
  background: #334155;
  border: 1px solid #475569;
  color: #e2e8f0;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.imazing-btn-pill:hover {
  background: #475569;
  color: #ffffff;
}

.imazing-btn-pill.btn-primary-blue {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.imazing-btn-pill.btn-primary-blue:hover {
  background: #0369a1;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

/* Save Location Panel (Screenshot 3) */
.imazing-save-panel-card {
  background: #182232;
  border: 1px solid #334155;
  border-radius: 12px;
  width: 440px;
  max-width: 90vw;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.save-panel-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #0f172a;
}

.save-panel-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.save-label {
  width: 70px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
  text-align: right;
}

.save-input-text, .save-select-where {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
}

.save-input-text:focus, .save-select-where:focus {
  border-color: #0284c7;
}

.save-panel-footer {
  height: 56px;
  background: #1e293b;
  border-top: 1px solid #2d3d52;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  gap: 12px;
}

/* ==========================================================================
   WizTree Storage Management Engine & Treemap Block Styling
   ========================================================================== */
.wiztree-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #0b0f17;
  color: #f8fafc;
  font-family: var(--font-family);
  overflow: hidden;
}

.wiztree-toolbar {
  height: 48px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 12px;
  flex-shrink: 0;
}

.wt-toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wt-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.wt-select {
  background: #0f172a;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
  font-weight: 500;
  cursor: pointer;
}

.wt-btn-scan {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  font-weight: 600;
  font-size: 12px;
  border-radius: 6px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wt-scan-progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wt-scan-bar {
  width: 140px;
  height: 12px;
  background: #0f172a;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #334155;
}

.wt-scan-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #10b981);
  transition: width 0.1s linear;
}

.wt-scan-text {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 500;
}

.wt-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.wt-search-input {
  background: #0f172a;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 5px 10px 5px 28px;
  border-radius: 14px;
  font-size: 12px;
  outline: none;
  width: 220px;
  transition: all 0.15s;
}

.wt-search-input:focus {
  border-color: #0284c7;
  width: 260px;
}

.wt-search-box svg {
  position: absolute;
  left: 9px;
  width: 13px;
  height: 13px;
  fill: #64748b;
}

.wt-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.wt-icon-btn:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: #0284c7;
}

.wiztree-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  position: relative;
  background: #0b0f17;
}

.wt-top-split {
  height: 52%;
  min-height: 180px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  border-bottom: 1px solid #1e293b;
}

.wt-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0f172a;
}

.wt-tree-pane {
  flex: 65;
  border-right: 1px solid #1e293b;
}

.wt-ext-pane {
  flex: 35;
}

.wt-pane-header {
  height: 32px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
}

.wt-pane-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #cbd5e1;
}

.wt-path-badge {
  font-size: 10px;
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 240px;
  white-space: nowrap;
}

.wt-table-wrap {
  flex: 1;
  overflow: auto;
  background: #0b0f17;
}

.wt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: var(--font-family);
  color: #e2e8f0;
  table-layout: fixed;
}

.wt-table th {
  position: sticky;
  top: 0;
  background: #182232;
  color: #94a3b8;
  font-weight: 600;
  font-size: 11px;
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid #334155;
  z-index: 2;
  user-select: none;
}

.wt-table td {
  padding: 5px 10px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.col-name { width: 34%; }
.col-size { width: 11%; }
.col-allocated { width: 11%; }
.col-files { width: 8%; }
.col-folders { width: 8%; }
.col-percent { width: 14%; }
.col-date { width: 14%; }

.col-ext { width: 18%; font-weight: 700; }
.col-color { width: 12%; }
.col-desc { width: 34%; }
.col-ext-size { width: 14%; }
.col-ext-pct { width: 12%; }
.col-ext-count { width: 10%; }

.wt-tree-row:hover, .wt-ext-row:hover {
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.wt-tree-row.selected, .wt-ext-row.active-filter {
  background: rgba(2, 132, 199, 0.25) !important;
  color: #ffffff !important;
  font-weight: 600;
}

.wt-name-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.wt-toggle {
  cursor: pointer;
  font-size: 9px;
  color: #94a3b8;
  display: inline-block;
  width: 12px;
  transition: transform 0.15s;
}

.wt-toggle.expanded {
  transform: rotate(90deg);
  color: #38bdf8;
}

.wt-toggle-spacer {
  width: 12px;
  display: inline-block;
}

.wt-node-icon {
  font-size: 13px;
}

.wt-node-name {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.wt-pct-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wt-pct-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.wt-pct-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 3px;
}

.wt-color-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.wt-bottom-split {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 140px;
  background: #0f172a;
  border-top: 1px solid #334155;
  overflow: hidden;
}

.wt-treemap-header {
  height: 32px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
}

.wt-treemap-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wt-block-badge {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}

.wt-treemap-container {
  flex: 1;
  position: relative;
  background: #080c14;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.wt-folder-container {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: #080c14;
  overflow: hidden;
}

.wt-folder-header {
  height: 18px;
  background: #182234;
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  font-family: monospace;
  padding: 0 6px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
  user-select: none;
}

.wt-block {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.25), inset -1px -1px 0 rgba(0, 0, 0, 0.35);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(0, 0, 0, 0.18) 100%);
  cursor: pointer;
  transition: filter 0.1s, border-color 0.1s, transform 0.1s;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wt-block:hover {
  filter: brightness(1.3) contrast(1.1);
  border-color: #ffffff;
  z-index: 10;
  transform: scale(1.01);
}

.wt-block.selected {
  border: 2px solid #ffffff !important;
  filter: brightness(1.4) contrast(1.1) !important;
  z-index: 12;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), inset 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.wt-block-label {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  padding: 2px 4px;
  pointer-events: none;
}

.wt-tooltip {
  position: fixed;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #0284c7;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  z-index: 99999;
  pointer-events: none;
  backdrop-filter: blur(8px);
  max-width: 320px;
  font-size: 11px;
  color: #f8fafc;
}

.wt-tooltip-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 4px;
}

.wt-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3px;
  color: #94a3b8;
}

.wt-tooltip-row strong {
  color: #ffffff;
}

.wiztree-statusbar {
  height: 28px;
  background: #0f172a;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 11px;
  color: #94a3b8;
  flex-shrink: 0;
  font-family: monospace;
}

.wt-status-indicator.online {
  color: #22c55e;
  margin-right: 4px;
}

.wt-context-menu {
  position: fixed;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  padding: 4px 0;
  z-index: 99999;
  width: 190px;
  font-size: 12px;
}

.wt-cm-item {
  padding: 6px 14px;
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.1s;
}

.wt-cm-item:hover {
  background: #0284c7;
  color: #ffffff;
}

.wt-cm-item.cm-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

.wt-cm-divider {
  height: 1px;
  background: #334155;
  margin: 4px 0;
}

.wt-mini-link {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
}

.wt-empty-msg {
  padding: 20px;
  text-align: center;
  color: #64748b;
  font-style: italic;
}

/* ==========================================================================
   Sync Processing & Lock States
   ========================================================================== */
.sidebar-tab.sync-locked {
  opacity: 0.3 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  filter: grayscale(100%);
  background: transparent !important;
  border-left-color: transparent !important;
  color: var(--text-muted) !important;
}

.sidebar-tab.sync-locked .chevron-right,
.sidebar-tab.sync-locked svg {
  color: var(--text-dim) !important;
  fill: var(--text-dim) !important;
}

.widget-icon-btn.active-sync,
#btn-sidebar-device-info.active-sync,
#btn-device-info.active-sync,
.widget-action-icons button:nth-child(2).active-sync {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.8), 0 0 4px #38bdf8 !important;
  transform: scale(1.1);
}

body.theme-android .widget-icon-btn.active-sync,
body.theme-android #btn-sidebar-device-info.active-sync,
body.theme-android #btn-device-info.active-sync,
body.theme-android .widget-action-icons button:nth-child(2).active-sync {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #4ade80 !important;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.8), 0 0 4px #4ade80 !important;
  transform: scale(1.1);
}

#appgrid-mount.sync-hidden {
  display: none !important;
}

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

.sync-spin-icon {
  animation: syncRotate 3s linear infinite;
}








