/* ===== DevTik Studio — Calm Modern Studio Design System ===== */
:root {
  --bg: #0d1117;
  --bg-card: #151922;
  --bg-card-hover: #191f2b;
  --bg-elevated: #1c2230;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(254, 44, 85, 0.4);
  --accent: #fe2c55;
  --accent-hover: #e11d48;
  --accent-subtle: rgba(254, 44, 85, 0.12);
  --accent-grad: linear-gradient(135deg, #fe2c55 0%, #ee1d52 100%);
  --cyan: #38bdf8;
  --ok: #10b981;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-main: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-active: 0 4px 16px rgba(254, 44, 85, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  zoom: 1.25;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

/* Remove intrusive glowing background spots */
.bg-glow-top, .bg-glow-bottom {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.accent-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== FLOATING ISLAND NAVBAR ===== */
.navbar {
  position: sticky;
  top: 14px;
  z-index: 1000;
  width: calc(100% - 24px);
  max-width: 1360px;
  margin: 12px auto 20px;
  background: rgba(12, 16, 25, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 8px 18px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 46, 85, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* ===== BESPOKE BRAND & LOGO EMBLEM ===== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand__emblem {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 46, 85, 0.2) 0%, rgba(255, 46, 85, 0.05) 100%);
  border: 1px solid rgba(255, 46, 85, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(255, 46, 85, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand:hover .brand__emblem {
  border-color: rgba(255, 46, 85, 0.8);
  box-shadow: 0 0 30px rgba(255, 46, 85, 0.55);
}

.brand__emblem svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 8px rgba(255, 46, 85, 0.6));
}

.brand__text-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr !important;
  unicode-bidi: isolate;
}

.brand__name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
}

.brand__name .accent {
  background: linear-gradient(135deg, #ff2e55 0%, #ff5277 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(255, 46, 85, 0.55);
}

.brand__badge {
  font-size: 9.5px;
  font-family: var(--font-mono);
  background: rgba(255, 46, 85, 0.12);
  color: #ff6b8b;
  border: 1px solid rgba(255, 46, 85, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Backward compatibility */
.brand__title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand__title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
}

/* ===== SEGMENTED NAV LINKS ===== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-link--active,
.nav-link.active {
  color: #ffffff !important;
  background: rgba(254, 44, 85, 0.16) !important;
  border: 1px solid rgba(254, 44, 85, 0.45) !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 12px rgba(254, 44, 85, 0.25) !important;
}

/* ===== NAV ACTIONS ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gpu-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 7px 14px;
  border-radius: 50px;
  backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}

.gpu-status-pill:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.16);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  background: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 10px #00e676;
  position: relative;
  flex-shrink: 0;
}

.status-indicator-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #00e676;
  opacity: 0.6;
  animation: ripple 2s infinite ease-out;
}

@keyframes ripple {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.gpu-name {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.gpu-tag {
  color: #00e676;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.28);
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.btn-nav-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 20px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(255, 46, 85, 0.38);
  transition: all 0.22s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-nav-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(255, 46, 85, 0.58);
  color: #fff;
}

.btn-nav-extension {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 46, 85, 0.12);
  border: 1.5px solid rgba(255, 46, 85, 0.5);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 2px 14px rgba(255, 46, 85, 0.2);
  transition: all 0.22s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-nav-extension:hover,
.btn-nav-extension--active {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff1a43 0%, #ff3b65 100%);
  border-color: #ff3b65;
  box-shadow: 0 6px 24px rgba(255, 46, 85, 0.55);
  color: #fff;
}

.btn-nav-extension svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

@media (max-width: 1140px) {
  .navbar {
    top: 8px;
    width: calc(100% - 20px);
    margin: 8px auto 16px;
    padding: 8px 12px;
    border-radius: 16px;
  }
  .navbar__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }
  .navbar nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .navbar nav.active {
    display: block;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 6px 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
  }
  .nav-link {
    font-size: 12.5px;
    padding: 6px 11px;
  }
  .brand__name {
    font-size: 19px;
  }
}

/* ===== MAIN STUDIO ===== */
.main-layout {
  padding-top: 36px;
  padding-bottom: 70px;
}

.studio-intro {
  text-align: center;
  margin-bottom: 28px;
}

.studio-heading {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.studio-subheading {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 720px;
  margin: 0 auto;
}

.studio-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* ===== DROP ZONE ===== */
.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: rgba(255, 46, 85, 0.04);
  box-shadow: 0 0 28px rgba(255, 46, 85, 0.14);
}

.dropzone__icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(254, 44, 85, 0.08);
  border: 1px solid rgba(254, 44, 85, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 14px auto !important;
  align-self: center !important;
  transition: all 0.25s ease;
}

.dropzone:hover .dropzone__icon-wrap {
  transform: translateY(-3px) scale(1.06);
  background: rgba(254, 44, 85, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(254, 44, 85, 0.25);
}

.dropzone__icon {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
}

.dropzone__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.dropzone__subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.dropzone__hint {
  font-size: 12px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.35);
}

/* File readout chips */
.file-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.chip__label {
  color: var(--text-muted);
}

.chip__val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
}

.chip__val--ok {
  color: var(--ok);
}

/* ===== SETTINGS SECTION ===== */
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.settings-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Presets Grid */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.preset-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  text-align: right;
}

.preset-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.preset-card--active {
  border-color: var(--accent);
  background: rgba(255, 46, 85, 0.065);
  box-shadow: var(--shadow-active);
}

.preset-card--active::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent-grad);
}

.preset-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preset-card__icon {
  font-size: 24px;
}

.preset-card__svg {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 46, 85, 0.08);
  border: 1px solid rgba(255, 46, 85, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4b6e;
}

.preset-card__tag {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 12px;
  color: var(--text-muted);
}

.preset-card--active .preset-card__tag {
  background: rgba(255, 46, 85, 0.2);
  color: var(--accent-light);
}

.preset-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.preset-card__specs {
  display: inline-flex;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-weight: 600;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.preset-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== TOGGLES & CUSTOM BUTTON ===== */
.toggles-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.toggle-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.toggle-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.toggle-pill--active {
  border-color: rgba(255, 46, 85, 0.4);
  background: rgba(255, 46, 85, 0.08);
}

.toggle-pill__icon {
  font-size: 15px;
}

.toggle-pill__text {
  font-weight: 500;
}

.toggle-switch-indicator {
  display: inline-flex;
  align-items: center;
  width: 32px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 2px;
  transition: background 0.2s ease;
  position: relative;
}

.toggle-switch-indicator::after {
  content: '';
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-pill--active .toggle-switch-indicator {
  background: var(--accent);
}

.toggle-pill--active .toggle-switch-indicator::after {
  transform: translateX(-14px);
}

.custom-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.custom-toggle-btn:hover {
  border-color: var(--border-hover);
  color: #fff;
}

.custom-arrow {
  transition: transform 0.2s ease;
}

.custom-arrow.open {
  transform: rotate(180deg);
}

/* Custom Collapsible Panel */
.custom-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.custom-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-label {
  font-size: 13px;
  color: var(--text-muted);
}

.custom-select {
  background: #10131b;
  border: 1px solid var(--border);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.custom-select:focus {
  border-color: var(--accent);
}

/* ===== BUTTONS ===== */
.actions-row {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn--primary {
  flex: 2;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 22px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn--ghost {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ===== PROGRESS GAUGE ===== */
.progress-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.3s ease-out;
}

.progress-box__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-box__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.spinner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 1.2s infinite ease-in-out;
}

.progress-box__pct {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-light);
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-grad);
  border-radius: 10px;
  box-shadow: 0 0 15px var(--accent);
  transition: width 0.3s ease-out;
}

.progress-box__foot {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== RESULT BANNER ===== */
.result-banner {
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.result-banner__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ok);
  margin-bottom: 6px;
}

.result-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.res-chip {
  font-size: 12px;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 5px;
  color: #e2e8f0;
}

/* ===== COMPARISON SLIDER ===== */
.compare-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeIn 0.4s ease-out;
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compare-header__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.compare-badges {
  display: flex;
  gap: 8px;
}

.cmp-chip {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--text-muted);
}

.cmp-chip--accent {
  background: rgba(255, 46, 85, 0.15);
  border-color: rgba(255, 46, 85, 0.3);
  color: var(--accent-light);
}

.compare-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  user-select: none;
  touch-action: none;
}

.compare-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
}

.compare-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.compare-layer-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 50% 0 0);
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(18, 22, 31, 0.95);
  border: 2px solid #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  user-select: none;
  pointer-events: none;
}

.compare-tag {
  position: absolute;
  top: 14px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  z-index: 5;
  pointer-events: none;
}

.compare-tag--before {
  left: 14px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
}

.compare-tag--after {
  right: 14px;
  background: rgba(255, 46, 85, 0.7);
  border: 1px solid rgba(255, 46, 85, 0.4);
  color: #fff;
}

/* Compare Toolbar */
.compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-md);
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
}

.zoom-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.zoom-btn--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}

.play-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.compare-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.compare-downloads .btn {
  flex: 1;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 13px;
  width: 100%;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer__note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar { padding: 12px 0; }
  .navbar__inner { gap: 12px; }
  .brand__icon { height: 46px; max-width: 65px; }
  .brand__title { font-size: 20px; }
  .brand__subtitle { display: none; }
  .gpu-status-pill { padding: 7px 14px; font-size: 11px; }
  .studio-card { padding: 20px; }
  .studio-heading { font-size: 28px; }
  .actions-row { flex-direction: column; }
  .compare-downloads { flex-direction: column; }
  .compare-viewport { aspect-ratio: 4 / 3; }
}

/* ===== DevTik Browser Extension Component ===== */
.btn-extension-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-extension-nav:hover {
  background: rgba(255, 46, 85, 0.12);
  border-color: #ff2e55;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 46, 85, 0.25);
}
.btn-extension-nav svg {
  width: 17px;
  height: 17px;
  color: #ff6b8b;
  flex-shrink: 0;
}

/* Extension Promo Banner */
.ext-promo-banner {
  background: linear-gradient(135deg, rgba(255, 46, 85, 0.08) 0%, rgba(59, 130, 246, 0.06) 100%);
  border: 1px solid rgba(255, 46, 85, 0.25);
  border-radius: 16px;
  padding: 16px 24px;
  margin: 0 auto 30px;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  backdrop-filter: blur(10px);
}
.ext-promo-content {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ext-promo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(255, 46, 85, 0.18) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1.5px solid rgba(255, 46, 85, 0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 46, 85, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.ext-promo-banner:hover .ext-promo-icon {
  transform: scale(1.05);
  border-color: #ff2e55;
  box-shadow: 0 8px 25px rgba(255, 46, 85, 0.4);
}
.ext-promo-text h3 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}
.ext-promo-text p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}
.btn-ext-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff2e55 0%, #ff5277 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 46, 85, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-ext-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 46, 85, 0.5);
}
@media (max-width: 680px) {
  .ext-promo-banner {
    flex-direction: column;
    text-align: center;
  }
  .ext-promo-content {
    flex-direction: column;
  }
}

/* Extension Modal Backdrop */
.ext-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ext-modal-backdrop.active {
  display: flex;
}
.ext-modal-card {
  background: #0d111b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 46, 85, 0.2);
  direction: rtl;
  text-align: right;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.ext-modal-close {
  position: absolute;
  top: 18px;
  left: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #cbd5e1;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.ext-modal-close:hover {
  background: rgba(255, 46, 85, 0.2);
  color: #ff2e55;
}
.ext-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.ext-modal-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 46, 85, 0.15);
  border: 1px solid rgba(255, 46, 85, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff2e55;
  font-size: 24px;
  flex-shrink: 0;
}
.ext-modal-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}
.ext-modal-sub {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}
.ext-download-notice {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.ext-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.ext-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
}
.ext-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff2e55;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ext-step-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.ext-step-content p {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}
.ext-step-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 5px;
  color: #ff6b8b;
  font-family: monospace;
  font-size: 12px;
  direction: ltr;
  margin-top: 5px;
  cursor: pointer;
  user-select: all;
}
.ext-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.btn-modal-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff2e55 0%, #ff5277 100%);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(255, 46, 85, 0.3);
  cursor: pointer;
  border: none;
}
.btn-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}


/* Official Brand Circular Logo */
.brand__logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(255, 46, 85, 0.45));
  flex-shrink: 0;
  transition: transform 0.22s ease, filter 0.22s ease;
}
.brand:hover .brand__logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 16px rgba(255, 46, 85, 0.75));
}


/* ===== UNIFIED MODERN NAVBAR ===== */
.navbar {
  position: sticky;
  top: 12px;
  z-index: 1000;
  width: calc(100% - 24px);
  max-width: 1440px !important;
  margin: 12px auto 24px;
  background: rgba(15, 19, 27, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(254, 44, 85, 0.35));
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand:hover .brand__logo-img {
  transform: scale(1.05);
}

.brand__name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  direction: ltr;
}

.brand__name .accent {
  color: var(--accent);
}

.brand__badge {
  font-size: 9.5px;
  font-weight: 700;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(254, 44, 85, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 12.8px;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-link--active,
.nav-link.active {
  color: #ffffff !important;
  background: rgba(254, 44, 85, 0.16) !important;
  border: 1px solid rgba(254, 44, 85, 0.45) !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 12px rgba(254, 44, 85, 0.25) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.16s ease;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-nav-action:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-nav-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-nav-subtle:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Mobile Toggle */
.navbar__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 7px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .navbar__toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    flex-direction: column;
    background: #141822;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    text-align: right;
  }
  .btn-nav-subtle {
    display: none;
  }
}

/* ===== UNIFIED WORKSPACE CARDS ===== */
.tool-header {
  text-align: center;
  margin-bottom: 26px;
}

.tool-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Unified Work Card */
.work-card {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

/* Unified Tabs */
.tabs-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.16s ease;
  outline: none;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
}

/* Unified Dropzone */
.file-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 44px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.file-dropzone.is-hidden,
.file-dropzone[hidden],
.file-dropzone[style*="display: none"] {
  display: none !important;
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--accent);
  background: rgba(255, 46, 85, 0.04);
  box-shadow: 0 0 28px rgba(255, 46, 85, 0.14);
}

.file-dropzone .dropzone__icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(254, 44, 85, 0.08);
  border: 1px solid rgba(254, 44, 85, 0.22);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--accent);
  margin: 0 auto 14px auto !important;
  align-self: center !important;
  transition: all 0.25s ease;
}

.file-dropzone:hover .dropzone__icon-wrap,
.file-dropzone.dragover .dropzone__icon-wrap {
  transform: translateY(-3px) scale(1.06);
  background: rgba(254, 44, 85, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(254, 44, 85, 0.25);
}

.file-dropzone .dropzone-icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.file-dropzone .dropzone-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.file-dropzone .dropzone-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.dropzone-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.dropzone-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s ease;
  user-select: none;
}

.dropzone-tag:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.kbd-shortcut {
  display: inline-block;
  padding: 1px 7px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, monospace, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* Selected File Bar */
.file-selected-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.file-info-group {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.file-icon-svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.file-details {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.file-name-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.file-meta-text {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  direction: ltr;
  text-align: right;
}

.btn-change-file {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-change-file:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* URL Input Group */
.url-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.url-input-control {
  width: 100%;
  height: 46px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px 0 74px;
  font-size: 14px;
  color: #fff;
  outline: none;
  direction: ltr;
  text-align: left;
  transition: border-color 0.18s ease;
}

.url-input-control:focus {
  border-color: var(--accent);
}

.url-input-control::placeholder {
  color: var(--text-dim);
  direction: rtl;
  text-align: right;
}

.btn-url-paste {
  position: absolute;
  left: 8px;
  height: 30px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-url-paste:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Unified Buttons */
.btn-action-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease;
  outline: none;
}

.btn-action-main:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-action-main:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Collapsible Advanced Settings */
.advanced-block {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.advanced-block summary {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: color 0.15s ease;
}

.advanced-block summary:hover {
  color: #fff;
}

.advanced-body {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Inline Alerts */
.msg-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  line-height: 1.4;
}

.msg-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.msg-alert.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

/* Unified Progress */
.progress-box-unified {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.progress-top-unified {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.progress-track-unified {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill-unified {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.progress-desc-unified {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* URL Input Component */
.url-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  width: 100%;
  box-sizing: border-box;
}

.url-group:focus-within {
  border-color: var(--accent);
}

.url-group svg,
.url-group-icon {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  color: var(--text-muted);
  flex-shrink: 0 !important;
}

.url-group-input,
.url-input-control {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  direction: ltr;
  text-align: right;
}

.btn-paste,
.btn-url-paste {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.btn-paste:hover,
.btn-url-paste:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Secondary Action Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
  font-family: inherit;
  height: 46px;
  box-sizing: border-box;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Hamburger & Drawer */
.navbar__toggle,
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu {
  display: none;
}

@media (max-width: 1140px) {
  .navbar__toggle,
  .nav-mobile-toggle {
    display: block !important;
  }
  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    background: #111620;
    border-top: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
    margin-top: 10px;
  }
  .mobile-menu.active {
    display: flex !important;
  }
  .mobile-menu-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
  }
  .mobile-menu-link.active,
  .mobile-menu-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }
  .mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .btn-nav-subtle,
  .btn-nav-extension {
    display: none !important;
  }
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   CANONICAL LAYOUT & DIMENSIONS SPECIFICATION (DevTik Studio 2026)
   ========================================================================== */

/* Universal font inheritance for controls */
button, input, select, textarea {
  font-family: inherit;
}

/* Remove default number input spinner arrows across all browsers */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

input[type=number] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* Tool Header & Spacing — Exactly unified matching remove-bg */
.tool-page-layout,
.page-container,
.vocal-page-layout,
.upscaler-page-layout,
.ext-page,
.main-layout {
  padding-top: 0 !important;
  padding-bottom: 20px;
  width: 100%;
}

.tool-header {
  text-align: center;
  margin-top: 36px !important;
  margin-bottom: 28px;
}

.tool-header h1,
.tool-title {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.tool-header p,
.tool-subtitle,
.tool-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto 28px;
  font-weight: 400;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .tool-header p,
  .tool-subtitle,
  .tool-desc {
    white-space: normal;
    font-size: 13.5px;
  }
}

/* Tool Main Card: Exactly 800px max-width, width 100%, 28px padding desktop, 16px mobile */
.work-card,
.tool-card-main,
.compress-box,
.studio-card,
.vocal-panel {
  max-width: 800px !important;
  width: 100% !important;
  margin: 0 auto !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 28px !important;
  box-sizing: border-box !important;
  box-shadow: var(--shadow-card) !important;
  height: auto !important;
}

@media (max-width: 640px) {
  .work-card,
  .tool-card-main,
  .compress-box,
  .studio-card {
    padding: 16px !important;
  }
}

/* Primary Button: 48px height */
.btn-action-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  min-height: 48px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.btn-action-main:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-action-main:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Secondary Button: 48px height */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #ffffff;
  height: 48px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
  font-family: inherit;
  box-sizing: border-box;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Input Row: 48px height */
.url-group,
.input-control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 48px;
  min-height: 48px;
  padding: 0 12px;
  width: 100%;
  box-sizing: border-box;
}

.url-group:focus-within,
.input-control-row:focus-within {
  border-color: var(--accent);
}

.url-group svg,
.url-group-icon {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  color: var(--text-muted);
  flex-shrink: 0 !important;
}

.url-group-input,
.url-input-control {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  height: 100%;
  direction: ltr;
  text-align: right;
}

.btn-paste,
.btn-url-paste {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

/* Strict State Display Guarantees */
[hidden],
.is-hidden {
  display: none !important;
}

.progress-box-unified {
  display: none;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.result-box-unified {
  display: none;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  margin-top: 24px;
  box-sizing: border-box;
}

/* Nav Actions Buttons */
.btn-nav-subtle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  height: 35px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
  font-family: inherit;
  box-sizing: border-box;
}

.btn-nav-subtle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  height: 35px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.16s ease;
  white-space: nowrap;
  font-family: inherit;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
}

.btn-nav-action:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Unified Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 13px;
  width: 100%;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer__note {
  font-size: 12px;
  color: var(--text-dim);
}

@media (max-width: 640px) {
  html {
    zoom: 1;
  }
  .btn-nav-subtle {
    display: none !important;
  }
  .brand {
    gap: 8px !important;
  }
  .brand__logo-img {
    width: 28px !important;
    height: 28px !important;
  }
  .brand__name {
    font-size: 18px !important;
  }
  .brand__badge {
    display: none !important;
  }
  .btn-nav-action {
    height: 34px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }
  .hero-title,
  .tool-title,
  .page-header h1,
  .ext-title {
    font-size: 26px !important;
    line-height: 1.35 !important;
  }
  .hero-subtitle,
  .tool-subtitle,
  .page-header p,
  .ext-subtitle {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  .work-card,
  .tool-card-main,
  .compress-box,
  .studio-card {
    padding: 16px !important;
  }
}

/* Supported Platforms & Feature Highlights in Downloader */
.tt-features-wrap {
  max-width: 680px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.tt-platforms-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-align: center;
}

.tt-platforms-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tt-platforms-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.tt-platforms-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.tt-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #cbd5e1;
  font-weight: 600;
}

.tt-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .tt-highlights-grid {
    grid-template-columns: 1fr;
  }
}

.tt-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tt-hl-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(254, 44, 85, 0.1);
  border: 1px solid rgba(254, 44, 85, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-hl-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.tt-hl-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

