/* ==========================================================================
   OMEGA CONVERTER - 123APPS DARK THEME STYLE
   Orientiert am Vorbild 123apps.com/de/ im eleganten Dark Mode.
   Klare Werkzeug-Kacheln, kein Infrastruktur-Jargon, keine Telegram-Limits.
   ========================================================================== */

:root {
  /* Dark Canvas & Card Palette */
  --bg-page: #0d0f15;
  --bg-card: #151821;
  --bg-card-hover: #1b1f2b;
  --bg-header: rgba(13, 15, 21, 0.92);
  
  /* Text & Contrast */
  --text-main: #f8fafc;        /* Starkes Weiß (15.5:1 Kontrast) */
  --text-sub: #94a3b8;         /* Dezentes Schiefergrau (7.2:1 Kontrast) */
  --text-muted: #64748b;       /* Caption / Metadaten */

  /* Category Color Accents (Orientiert am Regenbogen-Logo) */
  --accent-video: #38bdf8;     /* Himmelblau */
  --accent-audio: #fbbf24;     /* Warmes Bernstein */
  --accent-pdf: #f87171;       /* Korallenrot */
  --accent-image: #34d399;     /* Frisches Mintgrün */
  --accent-archive: #c084fc;   /* Sanftes Violett */
  --accent-telegram: #229ed9;  /* Telegram Blau */

  /* Hairlines & Border */
  --border-subtle: #232736;
  --border-hover: #33384c;

  /* Shadows */
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.45);

  /* Fonts & Transitions */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Consolas", monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: #2a2f40;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b4259;
}

::selection {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-tag {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-item-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: color 0.15s var(--ease);
}

.nav-item-link:hover {
  color: #fff;
}

.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-telegram);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease);
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.3);
}

.btn-telegram:hover {
  background-color: #2ab4f5;
  transform: translateY(-1px);
}

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

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-banner {
  padding: 2.25rem 0 2rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

/* Das Hervorheben von "Keine Telegram-Limits" */
.limit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-video);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-heading {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-sub);
  line-height: 1.6;
  max-width: 65ch;
  margin: 0 auto 2rem;
}

/* Header Status Indicator */
.header-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sub);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

/* ==========================================================================
   HERO DROPZONE & SUGGESTIONS ("Dropfenster")
   ========================================================================== */
.hero-dropzone-wrap {
  margin: 2rem auto;
  max-width: 760px;
  width: 100%;
  text-align: left;
}

.hero-dropzone {
  background: rgba(21, 24, 33, 0.85);
  border: 2px dashed #2b3246;
  border-radius: 14px;
  padding: 2.75rem 2rem;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s var(--ease);
  outline: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-dropzone:hover,
.hero-dropzone.drag-over {
  border-color: var(--accent-video);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(56, 189, 248, 0.18);
}

.hero-dropzone:focus-visible {
  border-color: var(--accent-video);
  outline: 2px solid var(--accent-video);
  outline-offset: 2px;
}

.hero-dropzone-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-video);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  transition: transform 0.2s var(--ease);
}

.hero-dropzone:hover .hero-dropzone-icon {
  transform: scale(1.08);
}

.hero-dropzone-text-primary {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.hero-dropzone-text-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Detected File Box & Suggestions */
.hero-detected-box {
  background: #141722;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease-out;
}

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

.detected-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.detected-file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.detected-file-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-video);
}

.detected-file-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 380px;
}

.detected-file-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.detected-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-video);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-clear-hero {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-clear-hero:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: #3b4259;
}

.suggestions-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.suggestions-header svg {
  color: var(--accent-video);
}

.hero-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.suggested-tool-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.95rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.4rem;
  color: var(--text-main);
  outline: none;
}

.suggested-tool-btn:hover {
  background: #1c2130;
  border-color: var(--cat-accent, var(--accent-video));
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.suggested-tool-btn:active {
  transform: scale(0.98);
}

.suggested-tool-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.suggested-tool-desc {
  font-size: 0.775rem;
  color: var(--text-sub);
  line-height: 1.35;
}

.suggested-tool-action {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cat-accent, var(--accent-video));
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.feature-pill-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.825rem;
  color: var(--text-sub);
}

.feature-pill svg {
  color: var(--accent-video);
}

/* ==========================================================================
   STICKY FILTER & SEARCH BAR
   ========================================================================== */
.quick-bar {
  position: sticky;
  top: 68px;
  z-index: 90;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  margin-bottom: 2rem;
}

.quick-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.category-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
}

.cat-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-sub);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}

.cat-tab:hover {
  color: #fff;
  background: var(--bg-card);
}

.cat-tab.active {
  background: #252a3a;
  color: #fff;
  border-color: var(--border-subtle);
  font-weight: 600;
}

.search-wrap {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.55rem 0.85rem 0.55rem 2.4rem;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s var(--ease);
}

.search-input:focus {
  border-color: var(--accent-video);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ==========================================================================
   CATEGORY SECTIONS & 123APPS TOOL CARDS
   ========================================================================== */
.category-section {
  padding: 2.5rem 0 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cat-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cat-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.cat-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
}

/* Die charakteristische 123apps Kachel */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: 
    transform 0.18s var(--ease),
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.tool-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.tool-card:active {
  transform: scale(0.98);
}

.tool-card-main {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tool-icon-box {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cat-accent, var(--accent-video));
}

.tool-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tool-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.tool-card-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.45;
}

.tool-card-footer {
  margin-top: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--text-muted);
}

.tool-action-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cat-accent, var(--accent-video));
  font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #090a0e;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-bottom: 2.5rem;
}

.footer-brand h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-sub);
  max-width: 48ch;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-sub);
  font-size: 0.85rem;
  transition: color 0.15s var(--ease);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 860px) {
  .nav-menu {
    display: none;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .hero-banner {
    padding: 3rem 0 2rem;
  }
  .quick-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrap {
    min-width: 100%;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ==========================================================================
   CONVERTER MODAL (In-Browser Tool Execution)
   ========================================================================== */
.converter-modal {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: min(92vw, 560px);
  width: 100%;
  border-radius: 16px;
  overflow: visible;
}

.converter-modal::backdrop {
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-dialog-box {
  background: #141722;
  border: 1px solid #232838;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  color: var(--text-main);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cat-accent, var(--accent-video));
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.modal-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-description {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 1.35rem;
}

/* Dynamic Options (Now at the top of dialog) */
.modal-options-area {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.options-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-sub);
}

.tool-option-select {
  background: #1c2130;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s var(--ease);
}

.tool-option-select:focus {
  border-color: var(--accent-video);
}

/* Selected File(s) List & Header */
.selected-files-wrap {
  margin-bottom: 1rem;
}

.selected-files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.selected-files-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-clear-all {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.775rem;
  cursor: pointer;
  transition: color 0.15s;
}

.btn-clear-all:hover {
  color: #f87171;
  text-decoration: underline;
}

.selected-files-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 0.25rem;
}

.selected-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  transition: border-color 0.15s var(--ease);
}

.selected-file-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.selected-file-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  overflow: hidden;
}

.selected-file-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-video);
  text-transform: uppercase;
}

.selected-file-name {
  color: #fff;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-size {
  color: var(--text-muted);
  font-size: 0.775rem;
  white-space: nowrap;
}

.btn-remove-file {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background-color 0.15s;
}

.btn-remove-file:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
}

/* Modal File Validation Error Banner */
.modal-file-error {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #fca5a5;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.modal-file-error svg {
  min-width: 18px;
  color: #ef4444;
}

/* Dropzone */
.modal-dropzone {
  border: 2px dashed #2a3044;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  outline: none;
}

.modal-dropzone:hover,
.modal-dropzone.drag-over {
  border-color: var(--accent-video);
  background: rgba(56, 189, 248, 0.04);
}

.modal-dropzone:focus-visible {
  border-color: var(--accent-video);
  outline: 2px solid var(--accent-video);
  outline-offset: 2px;
}

/* Compact Add-More Dropzone State */
.modal-dropzone.compact-mode {
  padding: 0.9rem 1.25rem;
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.02);
}

.modal-dropzone.compact-mode .dropzone-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: left;
}

.modal-dropzone.compact-mode .dropzone-icon-circle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  margin: 0;
}

.modal-dropzone.compact-mode .dropzone-text-primary {
  font-size: 0.875rem;
  margin-bottom: 0.1rem;
}

.modal-dropzone.compact-mode .dropzone-text-sub {
  font-size: 0.75rem;
}

.dropzone-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-video);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  transition: transform 0.15s var(--ease);
}

.dropzone-text-primary {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
}

.dropzone-text-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Action Rows & Buttons */
.modal-action-row {
  margin-top: 1.5rem;
}

.btn-primary-action {
  width: 100%;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: transform 0.15s var(--ease), opacity 0.15s var(--ease), box-shadow 0.15s var(--ease);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.btn-primary-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-primary-action:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Telegram Alternative Notice */
.modal-telegram-alt {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.modal-tg-anchor {
  color: var(--accent-telegram);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

.modal-tg-anchor:hover {
  text-decoration: underline;
}

/* Processing State */
.processing-wrap {
  padding: 2.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.processing-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(56, 189, 248, 0.15);
  border-top-color: var(--accent-video);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.25rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-title,
.success-title,
.error-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.processing-sub,
.error-desc {
  font-size: 0.875rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
  max-width: 42ch;
  line-height: 1.5;
}

.progress-bar-track {
  width: 100%;
  max-width: 380px;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.progress-percent-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Success State */
.success-wrap {
  padding: 2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.result-file-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.75rem;
  width: 100%;
  max-width: 420px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.result-filename {
  font-size: 0.925rem;
  font-weight: 600;
  color: #fff;
  word-break: break-all;
}

.result-filesize {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.success-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 340px;
}

.btn-download-action {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-download-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-download-action:active {
  transform: scale(0.98);
}

.btn-secondary-action {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Error State */
.error-wrap {
  padding: 2.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

