/* ==========================================================================
   HDMoviesHub Admin - Node.js / WordPress Fusion Dark Theme
   ========================================================================== */
@import url('local-fonts.css');

:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: #131c31;
  --bg-card-hover: #19243d;
  --bg-input: #0a0f1d;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #6366f1;

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

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.25);

  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-info: #06b6d4;

  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --topbar-height: 64px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  overflow-x: hidden;
}

/* ==========================================================================
   Admin Layout Shell
   ========================================================================== */
.admin-wrapper {
  display: flex;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Left Sidebar - WordPress / Node Style */
.admin-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: width var(--transition-smooth), transform var(--transition-smooth);
}

.sidebar-header {
  height: var(--topbar-height);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.sidebar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.sidebar-logo .badge-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-weight: 700;
}

.sidebar-nav {
  flex: 1;
  padding: 1.25rem 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 0.75rem 0.75rem 0.35rem;
  font-weight: 700;
}

/* Nav Item */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-item:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #fff;
  background-color: var(--accent-primary);
  font-weight: 600;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.nav-item .nav-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.nav-item.active .nav-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}

.admin-info {
  display: flex;
  flex-direction: column;
}

.admin-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.admin-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-icon-logout {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-icon-logout:hover {
  color: var(--accent-danger);
  background: rgba(239, 68, 68, 0.1);
}

/* Main Content Area */
.admin-main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition-smooth);
  overflow-x: hidden;
}

/* Topbar */
.admin-topbar {
  height: var(--topbar-height);
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-sidebar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.api-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

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

.status-dot.active {
  background-color: var(--accent-success);
  box-shadow: 0 0 8px var(--accent-success);
}

.status-dot.inactive {
  background-color: var(--accent-danger);
}

.btn-view-site {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-view-site:hover {
  background: var(--accent-primary);
  color: white;
}

/* Page Body Container */
.admin-content {
  flex: 1;
  padding: 1.75rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Flash Messages */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

/* Stat Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.primary {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.stat-icon.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.stat-icon.info {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.stat-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-top: 0.1rem;
}

/* Generic Card Container */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

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

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color);
  color: var(--text-main);
}

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

.btn-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-danger:hover {
  background-color: var(--accent-danger);
  color: #fff;
}

.btn-success {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.btn-success:hover {
  background-color: #10b981;
  color: #fff;
}

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

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-label .required {
  color: var(--accent-danger);
}

.form-help {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

textarea.code-area {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  min-height: 120px;
  color: #38bdf8;
  background-color: #060913;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.75rem;
  align-items: start;
  min-width: 0;
  width: 100%;
}

.admin-form-grid > * {
  min-width: 0;
  max-width: 100%;
}

.admin-form-grid .card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.admin-form-grid .card-body {
  min-width: 0;
  max-width: 100%;
}

/* Summernote Editor Responsiveness */
.note-editor.note-frame {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  border-color: var(--border-color) !important;
  background-color: var(--bg-card) !important;
}
.note-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2px !important;
  max-width: 100% !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid var(--border-color) !important;
}
.note-btn-group {
  flex-wrap: wrap !important;
}
.note-editing-area {
  min-width: 0 !important;
  max-width: 100% !important;
}
.note-editable {
  min-width: 0 !important;
  max-width: 100% !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  background-color: #0b0f19 !important;
  color: var(--text-main) !important;
}

/* Download Tier Cards & Table Responsiveness */
.download-row-box {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.dl-specs-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 0.75rem !important;
}

.dl-buttons-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.4);
  box-sizing: border-box;
}

.dl-buttons-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

@media (max-width: 991px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .download-row-box {
    padding: 0.85rem !important;
  }
  .dl-specs-row {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 480px) {
  .dl-specs-row {
    grid-template-columns: 1fr !important;
  }
}

/* Split Grid (e.g. Genres, Categories, Qualities) */
.admin-split-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.75rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.admin-split-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 991px) {
  .admin-split-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Filter Bar Component */
.admin-filter-bar {
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border-color);
}

.admin-filter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-filter-form .filter-search-input {
  max-width: 300px;
  flex: 1 1 220px;
}

.admin-filter-form .filter-select {
  max-width: 180px;
  flex: 1 1 140px;
}

.admin-filter-form .filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .admin-filter-bar {
    padding: 0.85rem;
  }
  .admin-filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }
  .admin-filter-form .filter-search-input {
    grid-column: 1 / -1;
    max-width: 100% !important;
    width: 100% !important;
  }
  .admin-filter-form .filter-select {
    max-width: 100% !important;
    width: 100% !important;
  }
  .admin-filter-form .filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }
  .admin-filter-form .filter-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* Data Tables */
.table-responsive {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  box-sizing: border-box;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  min-width: 860px;
}

.data-table th {
  padding: 0.85rem 1rem;
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.table-movie-thumb {
  width: 42px;
  height: 63px; /* 2:3 aspect ratio */
  object-fit: cover;
  border-radius: 4px;
  background-color: #1e293b;
}

/* Mobile Cards View for Movies Database */
.admin-movies-mobile-cards {
  display: none;
}

.table-responsive.admin-movies-table {
  display: block;
}

@media (max-width: 768px) {
  .admin-movies-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  .table-responsive.admin-movies-table {
    display: none;
  }
}

.admin-movie-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s;
}

.admin-movie-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-movie-card-main {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.admin-movie-card-thumb {
  width: 58px;
  height: 87px;
  border-radius: 6px;
  object-fit: cover;
  background-color: #1e293b;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.admin-movie-card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-movie-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.3;
  word-break: break-word;
}

.admin-movie-card-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.admin-movie-card-stats {
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.admin-movie-card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.65rem;
}

.admin-movie-card-actions .btn {
  width: 100%;
  padding: 0.45rem 0.5rem;
  font-size: 0.78rem;
  justify-content: center;
}

/* Pagination Bar */
.admin-pagination-bar {
  padding: 1.15rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 576px) {
  .admin-pagination-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.85rem;
    gap: 0.75rem;
  }
  .admin-pagination-bar .pagination-buttons {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }
  .admin-pagination-bar .pagination-buttons .btn {
    flex: 1;
    justify-content: center;
  }
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.badge-quality {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-featured {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* TMDb Quick Fetch Box */
.fetch-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.fetch-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.fetch-input-group {
  display: flex;
  gap: 0.75rem;
}

.fetch-input-group .form-control {
  flex: 1;
}

/* Tab Navigation for Settings */
.settings-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.settings-tab-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.settings-tab-btn:hover {
  color: var(--text-main);
}

.settings-tab-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Dynamic Repeater Lists (Download Links & Screenshots) */
.repeater-item {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.repeater-remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: none;
  border-radius: var(--radius-sm);
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: #1e293b;
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.25s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Summernote Dark Theme Customization */
.note-editor.note-air, .note-editor.note-frame {
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  background-color: var(--bg-input) !important;
  color: var(--text-main) !important;
}

.note-toolbar {
  background-color: #0f172a !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding: 6px !important;
}

.note-btn {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

.note-btn:hover, .note-btn.active {
  background-color: var(--accent-primary) !important;
  color: #fff !important;
}

.note-editable {
  background-color: var(--bg-input) !important;
  color: var(--text-main) !important;
  min-height: 220px !important;
  font-family: inherit !important;
  line-height: 1.6 !important;
}

.note-editor .note-statusbar {
  background-color: #0f172a !important;
  border-top: 1px solid var(--border-color) !important;
}

.note-dropdown-menu {
  background-color: #1e293b !important;
  color: #fff !important;
  border: 1px solid var(--border-color) !important;
}

.note-dropdown-item {
  color: #cbd5e1 !important;
}

.note-dropdown-item:hover {
  background-color: var(--accent-primary) !important;
  color: #fff !important;
}

.note-codable {
  background-color: #050811 !important;
  color: #38bdf8 !important;
  font-family: 'JetBrains Mono', monospace !important;
}

/* Sidebar Backdrop for Mobile */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 14, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Quick Import Form */
.quick-import-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    max-width: 80vw;
    z-index: 50;
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  }
  .admin-sidebar.show {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
  }
  .btn-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .admin-content {
    padding: 1.25rem 1rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
  .admin-topbar {
    padding: 0 0.85rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .topbar-left {
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .page-title {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .topbar-right {
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .btn-view-site {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .admin-content {
    padding: 1rem 0.75rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .card {
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0.85rem;
  }
  .card-header > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .card-body {
    padding: 1rem 0.85rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .fetch-input-group {
    flex-direction: column;
  }
  .fetch-input-group .btn {
    width: 100%;
    justify-content: center;
  }
  .quick-import-form {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .quick-import-form .form-control {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .quick-import-form .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .stat-card {
    padding: 1rem 0.85rem;
    gap: 0.85rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .stat-icon {
    width: 42px;
    height: 42px;
  }
  .stat-value {
    font-size: 1.35rem;
  }
  .modal-container {
    max-height: 94vh;
    border-radius: var(--radius-lg);
  }
  .modal-header, .modal-footer {
    padding: 0.85rem 1rem;
  }
  .modal-body {
    padding: 1rem;
    gap: 1rem;
  }
  .modal-footer {
    flex-direction: column;
  }
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
  .table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .data-table {
    min-width: 620px;
  }
  .data-table th, .data-table td {
    padding: 0.65rem 0.75rem;
  }
}

@media (max-width: 520px) {
  .topbar-left {
    gap: 0.4rem;
  }
  .page-title {
    font-size: 0.95rem;
    max-width: 150px;
  }
  .admin-profile .admin-info {
    display: none;
  }
}

/* ==========================================================================
   Fast Post Creator Modal Dialog Styles
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 940px;
  max-height: 90vh;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.show .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1.2rem 1.5rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--accent-danger);
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.creator-step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.creator-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.creator-step-title .badge-step {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.modal-screenshots-preview {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.modal-ss-thumb {
  width: 80px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.modal-dl-tier-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.modal-mirror-button-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

/* =====================================================================
   HEADER & MENU BUILDER STYLES (WordPress Drag & Drop Style)
   ===================================================================== */
.header-builder-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .header-builder-grid {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.panel-card-header {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.panel-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.panel-card-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0.35rem 0 0;
}

.panel-card-body {
  padding: 1.25rem;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-main);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
  transition: background var(--transition-fast);
}

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

.accordion-header .chevron-icon {
  transition: transform var(--transition-fast);
}

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

.accordion-body {
  display: none;
  padding: 1rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

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

.checklist-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.menu-tree-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 120px;
}

.menu-item-row {
  display: flex;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.menu-item-row:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.menu-item-row.is-subitem {
  margin-left: 2.25rem;
  border-left: 3px solid var(--accent-primary);
  background: rgba(15, 23, 42, 0.85);
}

.menu-item-row.is-dragging {
  opacity: 0.4;
  border: 2px dashed var(--accent-primary);
}

.menu-item-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.6rem;
  cursor: grab;
  color: var(--text-dim);
  touch-action: none;
}

.menu-item-handle:active {
  cursor: grabbing;
}

.menu-item-body {
  flex: 1;
  padding: 0.75rem 0.85rem 0.75rem 0;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.menu-item-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.item-type-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.item-type-badge.sub-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.menu-item-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-ctrl {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

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

.btn-ctrl.text-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--accent-danger);
  color: #f87171;
}

.menu-item-edit-panel {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-color);
}

.empty-state-card {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
}

.empty-state-card h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0.85rem 0 0.35rem;
}

.empty-state-card p {
  font-size: 0.85rem;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Nav Builder Tabs */
.nav-tabs-wrapper {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.tab-button.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
  color: #818cf8;
}

/* ==========================================================================
   Typeahead & Tag Chips (Search & Add Taxonomy)
   ========================================================================== */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}
.tag-chip .chip-remove {
  cursor: pointer;
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 2px;
}
.tag-chip .chip-remove:hover {
  color: #f87171;
}
.typeahead-wrapper {
  position: relative;
}
.typeahead-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 999;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: none;
}
.typeahead-item {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.typeahead-item:hover,
.typeahead-item.active {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}
.typeahead-item.add-new {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  font-weight: 600;
}
.typeahead-item.add-new:hover {
  background: rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   WordPress Blog Post & Download Section Styling (Main Page Match for Summernote)
   ========================================================================== */
.note-editable .blog-info-title,
.blog-info-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.note-editable .blog-info-list,
.blog-info-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.note-editable .blog-info-list li,
.blog-info-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  line-height: 1.6;
}

.note-editable .blog-info-list .info-label,
.blog-info-list .info-label {
  color: #94a3b8;
  font-weight: 700;
  min-width: 150px;
}

.note-editable .blog-info-list .info-val,
.blog-info-list .info-val {
  color: #f1f5f9;
  flex: 1;
}

.note-editable .post-divider,
.post-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin: 2rem 0;
}

.note-editable .post-section-title,
.post-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.note-editable .post-seo-text,
.post-seo-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.note-editable .post-site-seo-text,
.post-site-seo-text {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 1rem 0;
}

.note-editable .post-site-seo-text strong,
.post-site-seo-text strong {
  color: #10b981;
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

.note-editable .table-responsive,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
}

.note-editable .blog-specs-table,
.blog-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.note-editable .blog-specs-table th,
.blog-specs-table th {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-weight: 700;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.note-editable .blog-specs-table td,
.blog-specs-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  vertical-align: middle;
}

.note-editable .badge-size-pill,
.badge-size-pill {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.note-editable .blog-screenshots-section,
.blog-screenshots-section {
  margin: 2rem 0;
}

.note-editable .blog-screenshots-grid,
.blog-screenshots-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.note-editable .blog-ss-item,
.blog-ss-item {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0f19;
  display: block;
}

.note-editable .blog-ss-item img,
.blog-ss-item img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* Download Section & Download Cards (Exact match of main page style.css) */
.note-editable .blog-download-section,
.blog-download-section {
  margin: 2.5rem 0;
}

.note-editable .blog-dl-card,
.blog-dl-card {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  text-align: center !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.note-editable .blog-dl-header,
.blog-dl-header {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 0.35rem !important;
  letter-spacing: -0.01em !important;
}

.note-editable .blog-dl-sub,
.blog-dl-sub {
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
  margin-bottom: 1.25rem !important;
}

.note-editable .blog-dl-buttons,
.blog-dl-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.65rem !important;
}

/* Buttons (Matching style.css .btn-blog-download exactly) */
.note-editable .btn-blog-download,
.note-editable a.btn-blog-download,
.btn-blog-download,
a.btn-blog-download {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: 8px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: opacity 0.2s, filter 0.2s, transform 0.2s !important;
  line-height: 1.4 !important;
}

.note-editable .btn-blog-download span,
.btn-blog-download span {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.note-editable .btn-blog-download svg,
.btn-blog-download svg {
  display: inline-block !important;
  vertical-align: middle !important;
}

.note-editable .btn-blog-download:hover,
.btn-blog-download:hover {
  filter: brightness(1.15) !important;
  transform: translateY(-1px) !important;
  text-decoration: none !important;
  color: #ffffff !important;
}

.note-editable .btn-dl-quick,
.btn-dl-quick {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45) !important;
  border: 1px solid rgba(254, 215, 170, 0.35) !important;
}

.note-editable .btn-dl-quick:hover,
.btn-dl-quick:hover {
  background: linear-gradient(135deg, #fbbf24, #ea580c) !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.65) !important;
}

.note-editable .btn-dl-gdrive,
.btn-dl-gdrive {
  background: linear-gradient(135deg, #10b981, #059669) !important;
}

.note-editable .btn-dl-mega,
.btn-dl-mega {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.note-editable .btn-dl-cloud,
.btn-dl-cloud {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
}

.note-editable .btn-dl-torrent,
.btn-dl-torrent {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
}

.note-editable .btn-dl-telegram,
.btn-dl-telegram {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
}

.note-editable .btn-dl-default,
.btn-dl-default {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
}
