/* ===== LOCAL FONTS (Estedad & Vazirmatn) ===== */
@font-face {
  font-family: 'Estedad';
  src: url('/static/fonts/Estedad-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('/static/fonts/Estedad-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('/static/fonts/Estedad-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('/static/fonts/Estedad-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Estedad';
  src: url('/static/fonts/Estedad-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-sidebar: #1a2332;
  --bg-input: #334155;
  --border: #2d3a4f;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #ef3a4f;
  --primary-hover: #d32f3f;
  --secondary: #ef3a4f;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --font: 'Estedad', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); background: var(--bg); color: var(--text); direction: rtl; min-height: 100vh; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-card); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::selection { background: var(--primary); color: #fff; }

.app-container { display: flex; min-height: 100vh; }
.main-content { flex: 1; padding: 1.5rem; max-width: 900px; margin: 0 auto; width: 100%; }
.sidebar { width: 320px; min-width: 320px; background: var(--bg-sidebar); border-left: 1px solid var(--border); padding: 1rem; overflow-y: auto; height: 100vh; position: sticky; top: 0; }

.app-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.app-logo {
  height: 44px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(239, 58, 79, 0.4));
  flex-shrink: 0;
}
.app-title {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(120deg, #ef3a4f 0%, #ff758c 30%, #ffffff 50%, #ef3a4f 75%, #ff758c 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGradientMove 5s ease infinite;
}

@keyframes titleGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.app-subtitle { font-size: 0.75rem; color: var(--text-dim); }

.autosave-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.autosave-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  transition: background 0.3s ease;
}
.autosave-dot.saving {
  background: var(--warning);
  animation: pulse 0.8s infinite alternate;
}
@keyframes pulse {
  from { opacity: 0.3; }
  to { opacity: 1; }
}
.btn-clear-draft {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  font-family: var(--font);
  transition: all 0.2s;
}
.btn-clear-draft:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.15);
}

.steps-container { display: flex; flex-direction: column; gap: 1.5rem; }
.step-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem; transition: all 0.2s; }
.step-card.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.step-card.completed { border-color: var(--success); }
.step-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.step-number { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-input); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.step-card.active .step-number { background: var(--primary); }
.step-card.completed .step-number { background: var(--success); }
.step-title { font-size: 1rem; font-weight: 600; }
.step-badge { font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 0.25rem; background: var(--bg-input); color: var(--text-muted); }
.step-card.active .step-badge { background: var(--primary); color: #fff; }
.step-card.completed .step-badge { background: var(--success); color: #fff; }
.step-body { display: flex; flex-direction: column; gap: 0.75rem; }

input, textarea, select { background: var(--bg-input); border: 1px solid var(--border); color: var(--text); padding: 0.6rem 0.75rem; border-radius: 0.375rem; font-family: var(--font); font-size: 0.875rem; width: 100%; transition: border 0.2s; }
input[type="color"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 38px;
  padding: 3px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  cursor: pointer;
  box-sizing: border-box;
}
input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 0.25rem;
}
input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
}
input[type="color"]::-moz-color-swatch {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); }
textarea { min-height: 80px; resize: vertical; }
label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.25rem; display: block; }
.form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.form-row { display: flex; gap: 0.75rem; }
.form-row > * { flex: 1; }

.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.85rem; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; font-family: var(--font); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--bg-input); color: var(--text); }
.btn-secondary:hover { background: var(--border); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { opacity: 0.9; }

.competitor-list { display: flex; flex-direction: column; gap: 0.5rem; }
.competitor-item { display: flex; align-items: center; gap: 0.5rem; background: var(--bg); padding: 0.5rem 0.75rem; border-radius: 0.375rem; font-size: 0.85rem; transition: all 0.3s; }
.competitor-item .domain { color: var(--primary); font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.competitor-item .title { color: var(--text-muted); font-size: 0.75rem; flex: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.competitor-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.competitor-status.pending { background: var(--text-dim); }
.competitor-status.loading { background: var(--warning); }
.competitor-status.done { background: var(--success); }
.competitor-status.error { background: var(--danger); }

.competitor-item.analyzing { border-left: 3px solid var(--primary); background: rgba(239, 58, 79, 0.08); }
.competitor-item .site-progress { font-size: 0.7rem; color: var(--primary); min-width: 40px; text-align: left; font-weight: 600; direction: ltr; }

@keyframes hourglass-spin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}
.competitor-item .hourglass-icon {
  display: inline-block;
  animation: hourglass-spin 1.2s ease-in-out infinite;
  font-size: 1rem;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.competitor-item.analyzing .competitor-status.loading {
  animation: pulse-dot 1s ease-in-out infinite;
}

.progress-bar { height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #ff6b7a); border-radius: 3px; transition: width 0.3s; }
.progress-fill.animated { background: linear-gradient(90deg, var(--primary), #ff6b7a, var(--primary)); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 0.75rem; }
.tab { padding: 0.5rem 1rem; font-size: 0.85rem; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-muted); transition: all 0.2s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.prompt-output { background: #0d1117; border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem; font-size: 0.8rem; line-height: 1.6; white-space: pre-wrap; direction: ltr; text-align: left; max-height: 500px; overflow-y: auto; color: #c9d1d9; }

.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.comparison-table th, .comparison-table td { padding: 0.5rem; border: 1px solid var(--border); text-align: center; }
.comparison-table th { background: var(--bg-input); color: var(--text-muted); font-weight: 600; }
.comparison-table tr:hover td { background: rgba(239, 58, 79, 0.05); }

.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-section-title { font-size: 0.8rem; color: var(--text-dim); font-weight: 600; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }

.stats-widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.65rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.stat-icon {
  font-size: 1.1rem;
  background: rgba(239, 58, 79, 0.12);
  color: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.project-list { display: flex; flex-direction: column; gap: 0.35rem; }
.project-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; border-radius: 0.375rem; cursor: pointer; font-size: 0.85rem; transition: background 0.2s; }
.project-item:hover { background: var(--bg-card); }
.project-item.active { background: rgba(239, 58, 79, 0.15); border: 1px solid var(--primary); }
.project-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-actions { display: flex; gap: 0.25rem; }
.project-actions button { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 0.2rem; font-size: 0.8rem; }
.project-actions button:hover { color: var(--text); }

.brand-profile { background: var(--bg-card); border-radius: 0.5rem; padding: 0.75rem; font-size: 0.8rem; }
.brand-profile .row { display: flex; justify-content: space-between; padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.brand-profile .row:last-child { border-bottom: none; }
.brand-profile .label { color: var(--text-dim); }
.brand-profile .value { color: var(--text); font-weight: 600; }

.content-archive-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: 0.25rem; cursor: pointer; font-size: 0.8rem; transition: background 0.2s; }
.content-archive-item:hover { background: var(--bg-card); }
.content-archive-item .title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.5rem; width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto; }
.modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }

.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--bg-card); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.75rem 1.25rem; font-size: 0.85rem; z-index: 2000; animation: slideUp 0.3s ease; }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
@keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; cursor: pointer; padding: 0.3rem 0.6rem; background: var(--bg-input); border-radius: 0.25rem; }

.output-mode-btn { background: var(--bg-input); color: var(--text); border: 1px solid var(--border); padding: 0.4rem 0.8rem; border-radius: 0.375rem; cursor: pointer; font-size: 0.8rem; transition: all 0.2s; }
.output-mode-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.output-mode-btn:hover:not(.active) { border-color: var(--primary); }

.tooltip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-dim); color: var(--bg); font-size: 0.6rem;
  cursor: help; position: relative; vertical-align: middle;
  transition: background 0.2s;
}
.tooltip-icon:hover { background: var(--primary); }
.tooltip-icon::after {
  content: attr(data-tooltip);
  visibility: hidden; opacity: 0;
  position: absolute; top: -8px; left: 24px;
  background: #1e293b; color: #e2e8f0;
  padding: 0.5rem 0.75rem; border-radius: 0.375rem;
  font-size: 0.7rem; line-height: 1.4;
  white-space: nowrap; max-width: 280px; white-space: normal;
  border: 1px solid var(--border);
  z-index: 100;
  transition: opacity 0.2s;
  direction: rtl; text-align: right;
}
.tooltip-icon:hover::after { visibility: visible; opacity: 1; }

.panel-vars { display: flex; flex-direction: column; gap: 0.3rem; }
.panel-var-row { display: flex; flex-direction: column; gap: 0.1rem; }
.panel-var-row label { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0; }
.panel-var-input { background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); padding: 0.25rem 0.4rem; border-radius: 0.25rem; font-size: 0.7rem; font-family: monospace; direction: ltr; text-align: left; cursor: pointer; }
.panel-var-input:hover { border-color: var(--primary); color: var(--text); }

.ext-links-panel { background: var(--bg); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.75rem; margin: 0.25rem 0 0.75rem; }
.ext-link-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.5rem; border-radius: 0.25rem; cursor: pointer; font-size: 0.8rem; transition: background 0.2s; }
.ext-link-item:hover { background: var(--bg-card); }
.ext-link-item input[type="checkbox"] { accent-color: var(--primary); flex-shrink: 0; }
.ext-link-text { color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-link-url { color: var(--text-dim); font-size: 0.65rem; direction: ltr; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; flex-shrink: 0; }

@media (max-width: 768px) {
  .app-container { flex-direction: column-reverse; }
  .sidebar { width: 100%; min-width: unset; height: auto; position: static; border-left: none; border-top: 1px solid var(--border); }
  .form-row { flex-direction: column; }
  .main-content { padding: 1rem; }
}

/* ===== WEBINEW PROMO WIDGET WITH AURA BLUR ===== */
.webinew-promo-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  direction: rtl;
  font-family: var(--font);
}

.webinew-aura-bg {
  position: absolute;
  inset: -18px;
  border-radius: 28px;
  background: conic-gradient(from 0deg at 50% 50%, #ef3a4f 0deg, #ff1a53 60deg, #9333ea 120deg, #38bdf8 180deg, #ef3a4f 240deg, #ff1a53 300deg, #ef3a4f 360deg);
  filter: blur(24px);
  opacity: 0.85;
  animation: auraRotate 7s linear infinite, auraPulse 3s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.webinew-aura-bg::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 32px;
  background: radial-gradient(circle at 20% 20%, #ef3a4f 0%, transparent 60%),
              radial-gradient(circle at 80% 80%, #38bdf8 0%, transparent 60%);
  filter: blur(14px);
  opacity: 0.7;
  animation: auraGlowWave 4s ease-in-out infinite alternate;
}

@keyframes auraRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes auraPulse {
  0% { opacity: 0.65; filter: blur(20px); }
  100% { opacity: 0.95; filter: blur(28px); }
}

@keyframes auraGlowWave {
  0% { opacity: 0.4; transform: scale(0.92); }
  100% { opacity: 0.9; transform: scale(1.06); }
}

.webinew-promo-card {
  position: relative;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(239, 58, 79, 0.45);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 58, 79, 0.25);
  max-width: 320px;
  transition: all 0.3s ease;
}

.webinew-promo-toggle {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  transition: all 0.2s;
  padding: 0;
}

.webinew-promo-toggle:hover {
  color: #fff;
  background: rgba(239, 58, 79, 0.3);
  border-color: rgba(239, 58, 79, 0.6);
}

.webinew-promo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.webinew-promo-logo {
  height: 48px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(239, 58, 79, 0.5));
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 2px;
}

.webinew-promo-agency {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.webinew-promo-tagline {
  font-size: 0.72rem;
  color: #cbd5e1;
  margin-top: 3px;
  line-height: 1.35;
}

.webinew-promo-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.webinew-promo-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.webinew-promo-btn.btn-call {
  background: linear-gradient(135deg, #ef3a4f, #c02636);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 58, 79, 0.4);
}

.webinew-promo-btn.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 58, 79, 0.6);
  background: linear-gradient(135deg, #ff4d61, #d32f3f);
}

.webinew-promo-btn.btn-site {
  background: rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.webinew-promo-btn.btn-site:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

/* Minimized Badge */
.webinew-promo-minibadge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 58, 79, 0.6);
  border-radius: 30px;
  padding: 0.45rem 0.85rem 0.45rem 0.6rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(239, 58, 79, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.webinew-promo-minibadge:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 58, 79, 0.5);
}

.minibadge-logo {
  height: 28px;
  width: auto;
  max-width: 45px;
  object-fit: contain;
}

.minibadge-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.minibadge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

@media (max-width: 640px) {
  .webinew-promo-widget {
    left: 12px;
    bottom: 12px;
  }
  .webinew-promo-card {
    max-width: 290px;
    padding: 0.8rem 0.95rem;
  }
}

/* ===== DRAFTS SYSTEM STYLING ===== */
.drafts-list-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.draft-item-sidebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.78rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.draft-item-sidebar:hover {
  border-color: var(--primary);
  background: rgba(239, 58, 79, 0.08);
}

.draft-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
  flex: 1;
}

.draft-item-title {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.draft-item-meta {
  font-size: 0.68rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.draft-item-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.4rem;
}

.draft-item-actions button {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  border-radius: 0.2rem;
  font-size: 0.75rem;
  transition: color 0.15s;
}

.draft-item-actions button:hover {
  color: var(--primary);
}

.drafts-modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 60vh;
  overflow-y: auto;
  padding-left: 0.25rem;
}

.draft-card-modal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  gap: 0.75rem;
  transition: border-color 0.2s;
}

.draft-card-modal:hover {
  border-color: var(--primary);
}

.draft-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.draft-card-keyword {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.draft-card-badge {
  display: inline-block;
  background: rgba(239, 58, 79, 0.15);
  color: var(--primary);
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: 12px;
  font-weight: 600;
}

/* Mobile Login Verification Overlay */
.mobile-auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-auth-card {
  background: #161e2e;
  border: 1px solid rgba(239, 58, 79, 0.35);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(239, 58, 79, 0.25);
  animation: authCardEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authCardEntrance {
  0% { opacity: 0; transform: scale(0.92) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.mobile-auth-logo {
  height: 52px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  margin: 0 auto 1.25rem auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(239, 58, 79, 0.5));
}

.mobile-auth-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.mobile-auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.mobile-input-group {
  margin-bottom: 0.5rem;
  text-align: right;
}

.mobile-input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.mobile-input-field {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 3px;
  transition: all 0.2s ease;
  outline: none;
}

.mobile-input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(239, 58, 79, 0.2);
}

.mobile-auth-error {
  color: #ef3a4f;
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 1.5rem;
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.mobile-auth-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(239, 58, 79, 0.4);
  transition: all 0.2s ease;
}

.mobile-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 58, 79, 0.6);
}

.mobile-auth-footer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}


