/* ==========================================================================
   DISCOHOOK CLASSIC — COMPLETE DISCORD WEBHOOK CONTROL & EMBED SUITE
   CREATED BY: @CODE4TRAP | TRAP PRODUCTION & CO </>
   VERCEL READY // HIGH-DETAILED DISCORD DARK UI SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=gg+sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  /* Discord Theme Palette */
  --discord-blurple: #5865F2;
  --discord-blurple-hover: #4752C4;
  --discord-bg-header: #2b2d31;
  --discord-bg-app: #1e1f22;
  --discord-bg-card: #2b2d31;
  --discord-green: #23a55a;
  --discord-red: #f23f43;
  --discord-yellow: #f0b232;
  --discord-text-normal: #f2f3f5;
  --discord-text-muted: #949ba4;
  --discord-pill-bg: #313338;
  --discord-pill-hover: #3b3d44;

  /* HookCord Theme Mapping */
  --bg-app: #1e1f22;
  --bg-panel: #2b2d31;
  --bg-card: #2b2d31;
  --bg-input: #1e1f22;
  --bg-chat: #313338;
  --bg-embed: #2b2d31;
  
  --border-color: #1f2023;
  --border-focus: #5865F2;
  
  --brand-primary: #5865F2;
  --brand-green: #23a55a;
  --brand-red: #f23f43;
  --brand-yellow: #f0b232;
  
  --text-primary: #f2f3f5;
  --text-muted: #949ba4;
  --text-sub: #80848e;

  --font-sans: 'gg sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;
}

/* GLOBAL RESETS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1e1f22;
}

::-webkit-scrollbar-thumb {
  background: #111214;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2b2d31;
}

/* DISCORD NATIVE TOP HEADER BAR */
.dh-header {
  background: var(--discord-bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  text-transform: uppercase;
}

.dh-header-inner {
  max-width: 1700px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* BRAND & DISCORD CHANNEL TITLE */
.dh-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dh-logo {
  width: 38px;
  height: 38px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.dh-logo:hover {
  border-color: var(--discord-blurple);
}

.dh-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.dh-channel-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dh-hashtag {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--discord-text-muted);
  line-height: 1;
}

.dh-channel-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--discord-text-normal);
  letter-spacing: 0.03em;
}

.dh-badge-ver {
  background: rgba(88, 101, 242, 0.2);
  color: var(--discord-blurple);
  border: 1px solid rgba(88, 101, 242, 0.4);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.dh-channel-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.35rem;
}

.dh-channel-topic {
  font-size: 0.72rem;
  color: var(--discord-text-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* DISCORD NATIVE DRAG & DROP REORDERING */
.dh-drag-handle {
  cursor: grab;
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--discord-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.15s ease;
  user-select: none;
}

.dh-drag-handle:hover, .dh-drag-handle:active {
  background: var(--discord-blurple);
  color: #fff;
  cursor: grabbing;
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.45);
}

.dh-card, .v2-item-row {
  transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.dh-card.dh-dragging, .v2-item-row.dh-dragging {
  opacity: 0.45;
  transform: scale(0.98);
  border: 2px dashed var(--discord-blurple) !important;
}

.dh-card.dh-drop-target, .v2-item-row.dh-drop-target {
  border-top: 3px solid var(--discord-blurple) !important;
  box-shadow: 0 -4px 12px rgba(88, 101, 242, 0.5) !important;
}

/* RIGHT HEADER ACTIONS & STATUS */
.dh-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dh-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.dh-status-pill {
  background: var(--discord-pill-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 5px 12px;
  border-radius: 20px;
}

.dh-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f23f43;
}

.dh-status-dot.active {
  background: #23a55a;
}

.dh-status-text {
  font-size: 0.68rem;
  font-weight: 700;
  color: #f23f43;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.dh-badge-engine {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #5865f2;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
}

.engine-pulse {
  width: 6px;
  height: 6px;
  background: #23a55a;
  border-radius: 50%;
  display: inline-block;
}

.dh-header-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.15s ease;
}

.dh-header-btn:hover {
  background: var(--discord-blurple);
  border-color: var(--discord-blurple);
  color: #ffffff;
}

.btn-header-community {
  background: var(--discord-blurple);
  border-color: var(--discord-blurple);
  color: #ffffff !important;
  text-decoration: none;
}

.btn-header-community:hover {
  background: var(--discord-blurple-hover);
  border-color: var(--discord-blurple-hover);
}

.btn-header-docs {
  text-decoration: none;
}

.dh-quick-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dh-icon-btn {
  background: var(--discord-pill-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--discord-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dh-icon-btn:hover {
  background: var(--discord-pill-hover);
  color: var(--discord-text-normal);
  transform: translateY(-1px);
}

/* TOP ACTIONS & WEBHOOK BAR */
.dh-top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  max-width: 1050px;
  flex-wrap: wrap;
}

.dh-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.webhook-wrapper {
  flex: 2;
  min-width: 280px;
}

.thread-wrapper {
  flex: 1;
  min-width: 150px;
}

.input-icon {
  position: absolute;
  left: 0.8rem;
  color: var(--text-muted);
  pointer-events: none;
}

.dh-input-wrapper .dh-input {
  padding-left: 2.2rem;
  width: 100%;
}

.dh-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.dh-input:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.dh-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.dh-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.4;
}

.dh-btn-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

/* BUTTON STYLING */
.dh-btn {
  background: #2a2a3a;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  padding: 0.65rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  white-space: nowrap;
}

.dh-btn:hover {
  background: #35354a;
  transform: translateY(-1px);
}

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

.dh-btn.btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.dh-btn.btn-primary:hover {
  background: #5558d9;
}

.dh-btn.btn-secondary {
  background: var(--brand-green);
  border-color: var(--brand-green);
}

.dh-btn.btn-secondary:hover {
  background: #0ea472;
}

.dh-btn.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
}

.dh-btn.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dh-btn.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.75rem;
}

.dh-btn.btn-danger {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.dh-btn.btn-danger:hover {
  background: #dc2626;
}

.btn-discord-header {
  background: #5865f2;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.6rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.btn-discord-header:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

/* MAIN CONTAINER WORKSPACE */
.dh-container {
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  flex: 1;
}

.dh-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.editor-panel {
  flex: 1.2;
  min-width: 0;
}

.preview-panel {
  flex: 1;
  min-width: 320px;
  position: sticky;
  top: 85px;
  height: calc(100vh - 110px);
}

/* SECTION HEADERS */
.dh-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.dh-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* TABS */
.dh-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.dh-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  padding: 0.55rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  white-space: nowrap;
}

.dh-tab:hover {
  background: #202030;
  color: #fff;
}

.dh-tab.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.dh-tab-close {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-left: 0.3rem;
  transition: var(--transition);
}

.dh-tab-close:hover {
  opacity: 1;
  color: var(--brand-red);
}

/* STARTER OPTION CARDS (EXACT DISCOHOOK SELECTION MODES) */
.dh-option-cards-container {
  margin: 0.25rem 0;
}

.dh-option-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.dh-option-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  box-shadow: var(--shadow);
}

.dh-option-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.dh-option-card.active-option {
  border-color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.1);
}

.dh-option-card:active {
  transform: translateY(0);
}

.dh-card-icon {
  width: 42px;
  height: 42px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  margin-bottom: 0.7rem;
  transition: var(--transition);
}

.dh-option-card:hover .dh-card-icon {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.05);
}

.dh-option-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.dh-option-card-desc {
  font-size: 0.72rem;
  color: #949ba4;
  line-height: 1.45;
  font-weight: 400;
}

.dh-badge-new {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  letter-spacing: 0.05em;
  z-index: 10;
}

.dh-badge-support {
  position: absolute;
  top: -9px;
  right: 12px;
  background: #23a55a;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(35, 165, 90, 0.5);
  letter-spacing: 0.06em;
}

.dh-option-card-support:hover {
  border-color: #23a55a;
}
.dh-option-card-support:hover .dh-card-icon {
  color: #23a55a;
  background: rgba(35, 165, 90, 0.15);
}

/* CARDS & CARDS STACK */
.dh-card-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

#embedsList, #componentsList {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.dh-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.dh-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

/* Smooth transition when hiding/showing sections */
#embedsSectionCard,
#componentsSectionCard {
  overflow: hidden;
  transition: all 0.3s ease;
}

.dh-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* PRESET BUTTONS STYLING */
.preset-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.55rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.preset-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--brand-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

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

.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.form-col {
  flex: 1 1 0;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dh-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-col > .dh-label,
.form-col > label.dh-label {
  min-height: 24px;
  display: flex;
  align-items: center;
  margin: 0;
}

.preset-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.preset-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.preset-btn:hover {
  background: #202030;
  border-color: var(--brand-primary);
  color: #fff;
}

/* REALTIME DISCORD PREVIEW WINDOW */
.discord-window {
  background: var(--bg-chat);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.discord-chat-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.discord-message {
  display: flex;
  gap: 0.9rem;
  transition: var(--transition);
}

.discord-message:hover {
  background: rgba(255, 255, 255, 0.02);
}

.discord-message .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.message-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.message-header .username {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.message-header .bot-badge {
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.message-header .timestamp {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.message-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

/* EMBED BOX */
.embed-box {
  background: var(--bg-embed);
  border-left: 4px solid var(--brand-primary);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  max-width: 520px;
  margin-top: 0.35rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.embed-box:hover {
  transform: translateX(2px);
}

.embed-inner {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.embed-author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.embed-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.embed-grid {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.embed-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.embed-description {
  font-size: 0.82rem;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.embed-fields-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.embed-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.embed-field.inline {
  flex: 1 1 30%;
  min-width: 120px;
}

.embed-field.full {
  flex: 1 1 100%;
}

.embed-field-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.embed-field-value {
  font-size: 0.78rem;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.embed-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
}

.embed-image {
  max-width: 100%;
  border-radius: 4px;
  margin-top: 0.3rem;
}

.embed-footer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.embed-footer img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* COMPONENTS V2 CONTAINER */
.v2-box {
  background: var(--bg-embed);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 520px;
  box-shadow: var(--shadow);
}

.v2-divider {
  height: 1px;
  background: #3f4147;
  margin: 0.2rem 0;
}

.v2-media-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.v2-media-img {
  max-width: 100%;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

/* TERMINAL CONSOLE LOGS */
.dh-console-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.45rem;
}

.console-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.console-pulse-dot {
  width: 8px;
  height: 8px;
  background: #23a55a;
  border-radius: 50%;
  display: inline-block;
}

.btn-xs {
  font-size: 0.68rem;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  height: auto;
}

.dh-terminal {
  background: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  line-height: 1.45;
  height: 210px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.dh-terminal::-webkit-scrollbar {
  width: 6px;
}
.dh-terminal::-webkit-scrollbar-track {
  background: #090a0c;
}
.dh-terminal::-webkit-scrollbar-thumb {
  background: #2b2d31;
  border-radius: 3px;
}
.dh-terminal::-webkit-scrollbar-thumb:hover {
  background: #35373c;
}

.log-line {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  word-break: break-all;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.05);
  padding-bottom: 0.3rem;
}

.log-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.log-header {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.log-line .time {
  color: #72767d;
  font-size: 0.68rem;
  white-space: nowrap;
}

.log-line .badge {
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.log-line .badge.info {
  background: rgba(88, 101, 242, 0.2);
  color: #5865f2;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.log-line .badge.success {
  background: rgba(35, 165, 90, 0.2);
  color: #23a55a;
  border: 1px solid rgba(35, 165, 90, 0.3);
}

.log-line .badge.warn {
  background: rgba(240, 178, 50, 0.2);
  color: #f0b232;
  border: 1px solid rgba(240, 178, 50, 0.3);
}

.log-line .badge.error {
  background: rgba(242, 63, 67, 0.2);
  color: #f23f43;
  border: 1px solid rgba(242, 63, 67, 0.3);
}

.log-line .text {
  color: #f2f3f5;
  flex: 1;
}

.log-details {
  background: #111214;
  border-left: 2px solid var(--discord-blurple);
  padding: 0.4rem 0.6rem;
  margin-top: 0.2rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.68rem;
  color: #dbdee1;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 140px;
  overflow-y: auto;
}

/* ==========================================================================
   SIMPLE FOOTER — MADE BY TRAP PRODUCTION & CO </>
   ========================================================================== */
.dh-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 2rem 2rem 2rem;
  margin-top: 3rem;
  box-shadow: var(--shadow);
}

.dh-footer-wrap {
  max-width: 1700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.dh-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dh-footer-brand-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dh-footer-logo-badge {
  background: linear-gradient(135deg, #5865f2 0%, #23a55a 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
}

.dh-footer-server-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.dh-footer-server-icon:hover {
  transform: scale(1.05);
}

.dh-footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.dh-footer-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

.dh-footer-discord-btn {
  background: var(--brand-primary);
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.dh-footer-discord-btn:hover {
  background: #5558d9;
  transform: translateY(-2px);
}

.dh-footer-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-color) 20%, var(--border-color) 80%, transparent 100%);
}

.dh-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-sub);
}

.dh-footer-credits {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.dot-sep {
  color: var(--border-color);
}

.dh-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.75rem;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background: var(--brand-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-green);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE DESIGN
   ========================================================================== */

/* TABLET & SMALL DESKTOP (992px and below) */
@media (max-width: 992px) {
  .dh-container {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .preview-panel {
    position: static;
    height: auto;
    min-height: 400px;
  }
  
  .dh-footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .dh-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .dh-header-inner {
    gap: 0.75rem;
  }

  .dh-channel-topic {
    display: none;
  }

  .dh-option-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
  }
}

/* MOBILE LANDSCAPE & SMALL TABLET (768px and below) */
@media (max-width: 768px) {
  .dh-header {
    padding: 0.5rem 0.75rem;
  }

  .dh-header-inner {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .dh-brand {
    justify-content: space-between;
    width: 100%;
  }

  .dh-header-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .dh-quick-tools {
    width: 100%;
    justify-content: space-between;
  }

  .dh-header-btn {
    font-size: 0.65rem;
    padding: 4px 8px;
  }

  .dh-container {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .dh-card {
    padding: 0.75rem;
  }

  .dh-top-actions {
    flex-direction: column;
  }

  .dh-input-wrapper {
    width: 100%;
  }

  .dh-btn-group {
    width: 100%;
    flex-direction: column;
  }

  .dh-btn {
    width: 100%;
    justify-content: center;
  }

  .form-row {
    flex-direction: column;
  }

  .form-col {
    min-width: 100%;
  }

  .dh-section-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .dh-tabs {
    flex-wrap: wrap;
  }

  .dh-option-cards-grid {
    grid-template-columns: 1fr;
  }

  .dh-option-card {
    padding: 1rem;
  }

  .preset-buttons {
    flex-direction: column;
  }

  .preset-btn {
    width: 100%;
  }

  .discord-window {
    min-height: 300px;
    padding: 0.75rem;
  }

  .discord-message {
    gap: 0.6rem;
  }

  .discord-message .avatar {
    width: 32px;
    height: 32px;
  }

  .message-header .username {
    font-size: 0.85rem;
  }

  .message-text {
    font-size: 0.82rem;
  }

  .embed-box {
    max-width: 100%;
    padding: 0.65rem 0.8rem;
  }

  .embed-title {
    font-size: 0.85rem;
  }

  .embed-description {
    font-size: 0.78rem;
  }

  .embed-field {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }

  .embed-thumbnail {
    width: 60px;
    height: 60px;
  }

  .dh-terminal {
    height: 180px;
    font-size: 0.68rem;
  }

  .dh-footer {
    padding: 1.5rem 1rem;
  }

  .dh-footer-brand-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .dh-footer-cta {
    width: 100%;
  }

  .dh-footer-discord-btn {
    width: 100%;
    justify-content: center;
  }

  .dh-modal-card {
    max-width: 95%;
    max-height: 90vh;
  }

  .dh-modal-body {
    font-size: 0.75rem;
    padding: 1rem;
  }

  .dh-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .dh-actions .dh-btn {
    width: 100%;
  }

  /* V2 Component Editor Mobile Optimization */
  .v2-item-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .v2-item-row > div:first-child {
    width: 100%;
  }

  .comp-card-item .dh-section-header {
    gap: 0.5rem;
  }

  .comp-card-item .dh-section-header > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* MOBILE PORTRAIT (480px and below) */
@media (max-width: 480px) {
  .dh-logo {
    width: 32px;
    height: 32px;
  }

  .dh-channel-name {
    font-size: 0.9rem;
  }

  .dh-badge-ver {
    font-size: 0.58rem;
    padding: 1px 4px;
  }

  .dh-channel-divider {
    display: none;
  }

  .dh-status-pill {
    padding: 4px 8px;
  }

  .dh-status-text {
    font-size: 0.6rem;
  }

  .dh-badge-engine {
    font-size: 0.58rem;
    padding: 3px 7px;
  }

  .dh-header-btn {
    font-size: 0.6rem;
    padding: 3px 6px;
  }

  .dh-header-btn svg {
    width: 11px;
    height: 11px;
  }

  .dh-container {
    padding: 0.5rem;
  }

  .dh-card {
    padding: 0.6rem;
  }

  .dh-card-title {
    font-size: 0.75rem;
  }

  .dh-section-title {
    font-size: 0.75rem;
  }

  .dh-input {
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
  }

  .dh-textarea {
    min-height: 80px;
  }

  .dh-btn {
    font-size: 0.75rem;
    padding: 0.55rem 0.9rem;
  }

  .dh-btn-sm {
    font-size: 0.7rem;
    padding: 0.4rem 0.7rem;
  }

  .dh-tab {
    font-size: 0.7rem;
    padding: 0.45rem 0.75rem;
  }

  .dh-option-card {
    padding: 0.9rem;
  }

  .dh-card-icon {
    width: 36px;
    height: 36px;
  }

  .dh-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .dh-option-card-title {
    font-size: 0.85rem;
  }

  .dh-option-card-desc {
    font-size: 0.68rem;
  }

  .preset-btn {
    font-size: 0.7rem;
    padding: 0.5rem 0.8rem;
  }

  .discord-message .avatar {
    width: 28px;
    height: 28px;
  }

  .message-header .username {
    font-size: 0.8rem;
  }

  .message-header .bot-badge {
    font-size: 0.58rem;
    padding: 1px 4px;
  }

  .message-header .timestamp {
    font-size: 0.62rem;
  }

  .message-text {
    font-size: 0.78rem;
  }

  .embed-box {
    padding: 0.6rem 0.7rem;
  }

  .embed-title {
    font-size: 0.8rem;
  }

  .embed-description {
    font-size: 0.75rem;
  }

  .embed-field-name {
    font-size: 0.7rem;
  }

  .embed-field-value {
    font-size: 0.72rem;
  }

  .embed-footer {
    font-size: 0.68rem;
  }

  .dh-terminal {
    height: 160px;
    font-size: 0.65rem;
    padding: 0.6rem;
  }

  .log-line .time {
    font-size: 0.62rem;
  }

  .log-line .badge {
    font-size: 0.6rem;
    padding: 0.03rem 0.3rem;
  }

  .dh-footer {
    padding: 1.25rem 0.75rem;
  }

  .dh-footer-title {
    font-size: 1rem;
  }

  .dh-footer-subtext {
    font-size: 0.68rem;
  }

  .dh-footer-discord-btn {
    font-size: 0.78rem;
    padding: 0.7rem 1.3rem;
  }

  .dh-footer-bottom {
    font-size: 0.68rem;
  }

  .dh-footer-status {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }

  .dh-modal-header {
    padding: 0.85rem 1rem;
  }

  .dh-modal-title {
    font-size: 0.78rem;
  }

  .dh-modal-title svg {
    width: 15px;
    height: 15px;
  }

  .dh-modal-body {
    font-size: 0.72rem;
    padding: 0.85rem;
  }

  .docs-section {
    padding: 0.75rem 0.85rem;
  }

  .docs-section h3 {
    font-size: 0.75rem;
  }

  .dh-modal-footer {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .dh-modal-footer .dh-btn {
    width: 100%;
  }

  /* Drag handle smaller on mobile */
  .dh-drag-handle {
    padding: 4px 6px;
  }

  .dh-drag-handle svg {
    width: 12px;
    height: 12px;
  }

  /* Embed card improvements */
  .embed-card-item .dh-section-header {
    gap: 0.4rem;
  }

  .embed-card-item .form-row,
  .comp-card-item .form-row {
    gap: 0.5rem;
  }

  /* Better button spacing on mobile */
  .v2-item-row .btn-del-v2-item {
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
  }
}

/* EXTRA SMALL MOBILE (360px and below) */
@media (max-width: 360px) {
  .dh-header {
    padding: 0.4rem 0.5rem;
  }

  .dh-logo {
    width: 28px;
    height: 28px;
  }

  .dh-channel-name {
    font-size: 0.85rem;
  }

  .dh-status-pill {
    padding: 3px 6px;
  }

  .dh-status-text {
    font-size: 0.55rem;
  }

  .dh-badge-engine {
    display: none;
  }

  .dh-header-btn span {
    display: none;
  }

  .dh-container {
    padding: 0.4rem;
  }

  .dh-card {
    padding: 0.5rem;
  }

  .dh-input {
    font-size: 0.75rem;
    padding: 0.5rem 0.65rem;
  }

  .dh-btn {
    font-size: 0.7rem;
    padding: 0.5rem 0.8rem;
  }

  .discord-window {
    padding: 0.5rem;
  }

  .embed-box {
    padding: 0.5rem 0.6rem;
  }

  .dh-terminal {
    height: 140px;
    font-size: 0.62rem;
  }
}

/* Touch-friendly improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
  .dh-btn,
  .dh-tab,
  .preset-btn,
  .dh-option-card {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dh-input,
  .dh-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .dh-btn:active,
  .dh-tab:active,
  .preset-btn:active,
  .dh-option-card:active {
    transform: scale(0.98);
  }

  /* Disable hover effects on touch devices */
  .dh-card:hover,
  .dh-btn:hover,
  .dh-option-card:hover {
    transform: none;
  }
}

/* HELP & DOCUMENTATION MODAL */
.dh-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.dh-modal-card {
  background: #18191c;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.dh-modal-header {
  background: #111214;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dh-modal-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dh-modal-close {
  background: none;
  border: none;
  color: var(--discord-text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.4rem;
  border-radius: 4px;
}

.dh-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.dh-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #dbdee1;
}

.docs-section {
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.9rem 1rem;
}

.docs-section h3 {
  font-size: 0.8rem;
  font-weight: 800;
  color: #5865f2;
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.docs-section p {
  margin: 0;
  color: #b5bac1;
}

.docs-section ul {
  margin: 0.4rem 0 0 1.2rem;
  padding: 0;
}

.docs-section li {
  margin-bottom: 0.3rem;
  color: #b5bac1;
}

.dh-modal-footer {
  background: #111214;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* MANDATORY MOBILE DESKTOP MODE BLOCKER MODAL */
.mobile-desktop-card {
  max-width: 520px;
  border: 1px solid rgba(237, 66, 69, 0.4);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85), 0 0 25px rgba(237, 66, 69, 0.15);
  animation: mobileModalSlide 0.25s ease-out forwards;
}

@keyframes mobileModalSlide {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-modal-header {
  border-bottom: 1px solid rgba(237, 66, 69, 0.25);
  background: #111214;
}

.mobile-modal-title span {
  color: #ED4245;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.mandatory-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(237, 66, 69, 0.1);
  border: 1px solid rgba(237, 66, 69, 0.35);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.mandatory-banner .mobile-notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(237, 66, 69, 0.2);
}

.mobile-notice-text strong {
  display: block;
  font-size: 0.82rem;
  color: #ED4245;
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
}

.mobile-notice-text p {
  margin: 0;
  font-size: 0.74rem;
  color: #dbdee1;
  line-height: 1.45;
  font-weight: 600;
}

.desktop-switch-guide {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guide-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #949ba4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@media (max-width: 480px) {
  .guide-steps-grid {
    grid-template-columns: 1fr;
  }
}

.guide-step-card {
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
}

.guide-step-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.78rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.guide-step-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.74rem;
  color: #b5bac1;
  line-height: 1.45;
}

.guide-step-list li {
  margin-bottom: 0.25rem;
}

.guide-step-list li strong {
  color: #ffffff;
}

.mobile-remember-opt {
  display: flex;
  align-items: center;
  padding: 0.2rem 0;
}

.dh-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.75rem;
  color: #949ba4;
  user-select: none;
  transition: color 0.15s ease;
}

.dh-checkbox-label:hover {
  color: #dbdee1;
}

.dh-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #5865f2;
  cursor: pointer;
}

/* MEDIA INPUT MODE TOGGLE & UPLOAD ZONE */
.media-field-container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.media-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 24px;
  margin: 0;
}

.media-mode-toggle {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
  height: 24px;
  box-sizing: border-box;
  align-items: center;
}

.media-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  height: 20px;
  line-height: 20px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  text-transform: uppercase;
}

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

.media-mode-btn.active {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 1px 4px rgba(88, 101, 242, 0.4);
}

.media-dropzone {
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
  box-sizing: border-box;
}

.media-dropzone:hover, .media-dropzone.dragover {
  border-color: var(--brand-primary);
  background: rgba(88, 101, 242, 0.08);
}

.media-dropzone-empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.media-dropzone-empty svg {
  color: var(--brand-primary);
}

.media-file-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  overflow: hidden;
}

.media-file-thumb {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
}

.media-file-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.media-file-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-file-size {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.media-file-remove {
  background: rgba(242, 63, 67, 0.15);
  border: 1px solid rgba(242, 63, 67, 0.3);
  color: #f23f43;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.media-file-remove:hover {
  background: #f23f43;
  color: #fff;
}

/* MULTI-FILE MEDIA DROPZONE & PREVIEWS */
.media-dropzone-multi {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.media-files-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
  width: 100%;
}

.media-file-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
  max-width: 100%;
  flex: 1 1 calc(50% - 0.4rem);
  min-width: 180px;
}

.media-file-chip .media-file-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.media-file-chip .media-file-info {
  flex: 1;
  min-width: 0;
}

.media-file-chip .media-file-name {
  font-size: 0.72rem;
}




