/* ============================================================
   UTSERVIO MAIL STUDIO — styles.css
   ============================================================ */

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

:root {
  --gold: #F5A623;
  --gold-light: #FFB84D;
  --gold-pale: #1E1A14;
  --gold-dark: #D4891A;
  --gold-border: rgba(245,166,35,0.25);
  --ink: #0A0A0A;
  --ink2: #141414;
  --surface: #111111;
  --surface2: #0D0D0D;
  --surface3: #1A1A1A;
  --canvas-bg: #0A0A0A;
  --text1: #F0F0F0;
  --text2: #A0A0A0;
  --text3: #707070;
  --text4: #4A4A4A;
  --border: rgba(255,255,255,0.06);
  --border-md: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.15);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.15);
  --shadow: 0 2px 8px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4), 0 24px 64px rgba(0,0,0,0.3);
  --topbar-h: 56px;
  --sidebar-w: 256px;
  --panel-w: 288px;
  --font-display: 'DM Sans', -apple-system, sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'DM Mono', 'Fira Mono', monospace;
  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { height: 100%; overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--surface2);
  color: var(--text1);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  height: var(--topbar-h);
  background: #0D0D0D;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 16px 0 20px;
  gap: 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

.topbar-left { display: flex; align-items: center; width: var(--sidebar-w); flex-shrink: 0; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #F5A623;
  letter-spacing: -0.5px;
}
.logo-product {
  font-size: 10px;
  font-weight: 600;
  color: #F5A623;
  background: rgba(245,166,35,0.12);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.nav-link {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.nav-link:hover { background: rgba(255,255,255,0.06); color: #F0F0F0; }
.nav-link.active { color: #F5A623; background: rgba(245,166,35,0.1); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  width: var(--panel-w);
  justify-content: flex-end;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text3);
  margin-right: 4px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.status-dot.saving { background: #F5A623; animation: pulse 1s infinite; }

@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.4 } }

.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5A623, #D4891A);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn-ghost {
  background: transparent;
  color: var(--text2);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface2); color: var(--text1); }

.btn-gold {
  background: #F5A623;
  color: #0A0A0A;
  border-color: #F5A623;
  font-weight: 600;
}
.btn-gold:hover { background: #FFB84D; border-color: #FFB84D; transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0); }

/* ============================================================
   EDITOR LAYOUT
   ============================================================ */
.editor-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--panel-w);
  height: calc(100vh - var(--topbar-h));
  margin-top: var(--topbar-h);
  overflow: hidden;
}

/* ============================================================
   LEFT SIDEBAR
   ============================================================ */
.sidebar-left {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.stab {
  flex: 1;
  padding: 12px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.stab:hover { color: var(--text1); }
.stab.active { color: var(--gold); border-bottom-color: var(--gold); }

.stab-content { display: none; flex: 1; overflow-y: auto; padding: 12px; }
.stab-content.active { display: block; }

/* Blocks */
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface3);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  margin-bottom: 12px;
  color: var(--text3);
}
.sidebar-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  font-family: var(--font-body);
  color: var(--text1);
  width: 100%;
}
.sidebar-search input::placeholder { color: var(--text4); }

.block-category { margin-bottom: 16px; }
.block-cat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text4);
  margin-bottom: 8px;
  padding-left: 2px;
}
.blocks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.block-chip {
  background: var(--surface2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: grab;
  transition: all var(--transition);
  text-align: center;
  font-size: 11px;
  color: var(--text2);
  font-weight: 500;
  user-select: none;
}
.block-chip:hover {
  border-color: var(--gold-border);
  background: var(--gold-pale);
  color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.block-chip:active { cursor: grabbing; transform: translateY(0); }

.block-chip-preview {
  height: 36px;
  border-radius: 4px;
  margin-bottom: 6px;
  overflow: hidden;
  position: relative;
}
.header-prev { background: linear-gradient(90deg, #0A0A0A 0%, #141414 100%); }
.header-prev::after { content:''; position:absolute; left:8px; top:50%; transform:translateY(-50%); width:30px; height:6px; background:#F5A623; border-radius:3px; }
.footer-prev { background: #0A0A0A; opacity:0.7; }
.spacer-prev { background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(245,166,35,0.1) 4px, rgba(245,166,35,0.1) 8px); }
.divider-prev { background: var(--surface3); display:flex; align-items:center; justify-content:center; }
.divider-prev::after { content:''; width:80%; height:2px; background:linear-gradient(90deg, transparent, #F5A623, transparent); }
.hero-prev { background: linear-gradient(135deg, #0A0A0A, #1A1408); border-bottom: 2px solid #F5A623; }
.hero-prev::after { content:''; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:40px; height:6px; background:#F5A623; border-radius:3px; }
.text-prev { background: var(--surface); padding:4px; display:flex; flex-direction:column; gap:2px; justify-content:center; }
.text-prev::before,.text-prev::after { content:''; display:block; height:3px; border-radius:2px; background:var(--text4); }
.text-prev::before { width:70%; }
.text-prev::after { width:90%; }
.image-prev { background: var(--surface) url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23A0A0A0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>') no-repeat center; }
.twocol-prev { background: var(--surface); display:grid; grid-template-columns:1fr 1fr; gap:2px; }
.twocol-prev::before,.twocol-prev::after { content:''; display:block; background:var(--surface3); border-radius:2px; }
.features-prev { background: var(--surface); display:grid; grid-template-columns:1fr 1fr 1fr; gap:2px; padding:4px; }
.features-prev::before { content:''; grid-column:1/-1; height:4px; background:var(--text4); border-radius:2px; margin-bottom:2px; }
.cta-prev { background: #F5A623; display:flex; align-items:center; justify-content:center; }
.cta-prev::after { content:''; width:50px; height:8px; background:rgba(255,255,255,0.4); border-radius:4px; }
.testimonial-prev { background:#1A1408; border-left:3px solid #F5A623; }
.stats-prev { background:var(--surface); display:grid; grid-template-columns:1fr 1fr 1fr; gap:2px; padding:4px; }

/* Template list */
.tpl-list { display: flex; flex-direction: column; gap: 6px; }
.tpl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
}
.tpl-item:hover { border-color: var(--gold-border); background: var(--gold-pale); }
.tpl-item.active { border-color: var(--gold); background: var(--gold-pale); }

.tpl-thumb-wrap {
  width: 36px; height: 44px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-md);
}
.tpl-mini-preview { width: 100%; height: 100%; }
.promo-mini { background: linear-gradient(180deg, #0A0A0A 20%, #1A1408 20%, #1A1408 60%, #F5A623 60%); }
.newsletter-mini { background: linear-gradient(180deg, #0A0A0A 18%, #111 18%, #111 80%, #0A0A0A 80%); }
.welcome-mini { background: linear-gradient(180deg, #0A0A0A 18%, #1A1408 18%); }
.transactional-mini { background: linear-gradient(180deg, #0A0A0A 18%, #111 18%); }
.announcement-mini { background: linear-gradient(180deg, #0A0A0A 18%, #F5A623 18%, #F5A623 35%, #111 35%); }
.hiring-mini { background: linear-gradient(180deg, #0A0A0A 18%, #0D1A0D 18%, #0D1A0D 60%, #22C55E 60%); }
.personal_hiring-mini { background: linear-gradient(180deg, #0A0A0A 18%, #1A0D16 18%, #1A0D16 60%, #EC4899 60%); }
.proposal-mini { background: linear-gradient(180deg, #0A0A0A 18%, #0D1117 18%, #0D1117 50%, #3B82F6 50%, #3B82F6 65%, #111 65%); }
.internal-mini { background: linear-gradient(180deg, #0A0A0A 18%, #1A1A1A 18%, #1A1A1A 85%, #0A0A0A 85%); }
.executive_update-mini { background: linear-gradient(180deg, #0A0A0A 18%, #1E1B4B 18%, #1E1B4B 60%, #6366F1 60%); }
.event-mini { background: linear-gradient(180deg, #0A0A0A 18%, #1A0820 18%, #1A0820 55%, #A855F7 55%, #A855F7 70%, #111 70%); }
.feedback-mini { background: linear-gradient(180deg, #0A0A0A 18%, #0A1628 18%, #0A1628 70%, #06B6D4 70%); }
.partnership-mini { background: linear-gradient(180deg, #0A0A0A 18%, #F5A623 18%, #F5A623 28%, #111 28%, #111 75%, #F5A623 75%); }
.offer_letter-mini { background: linear-gradient(180deg, #0A0A0A 18%, #064E3B 18%, #064E3B 60%, #10B981 60%); }
.rejection_letter-mini { background: linear-gradient(180deg, #0A0A0A 18%, #451A22 18%, #451A22 60%, #EF4444 60%); }
.idea_pitch-mini { background: linear-gradient(180deg, #0A0A0A 18%, #452C06 18%, #452C06 60%, #F59E0B 60%); }
.task_assignment-mini { background: linear-gradient(180deg, #0A0A0A 18%, #0C4A6E 18%, #0C4A6E 60%, #0EA5E9 60%); }
.investor_pitch-mini { background: linear-gradient(180deg, #0A0A0A 18%, #422006 18%, #422006 60%, #D97706 60%); }
.blank-mini { background: repeating-linear-gradient(45deg, #111, #111 5px, rgba(245,166,35,0.1) 5px, rgba(245,166,35,0.1) 10px); }

.tpl-info { flex: 1; }
.tpl-name { font-size: 12px; font-weight: 600; color: var(--text1); }
.tpl-desc { font-size: 10px; color: var(--text3); margin-top: 1px; }

.tpl-badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #F5A623;
  color: #0A0A0A;
  padding: 2px 6px;
  border-radius: 20px;
}

/* Brand tab */
.brand-section { padding: 12px; border-bottom: 1px solid var(--border); }
.brand-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text4);
  margin-bottom: 10px;
}
.brand-colors { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.brand-color-item { display: flex; align-items: center; gap: 10px; }
.color-circle { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-md); flex-shrink: 0; }
.color-name { font-size: 12px; font-weight: 500; color: var(--text1); }
.color-hex { font-size: 10px; color: var(--text3); font-family: var(--font-mono); }

.btn-add-color {
  font-size: 11px;
  color: var(--gold);
  background: transparent;
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  width: 100%;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.btn-add-color:hover { background: var(--gold-pale); }

.font-pair { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.font-sample-display { font-family: var(--font-display); font-size: 28px; color: var(--gold); width: 40px; line-height: 1; }
.font-sample-body { font-family: var(--font-body); font-size: 22px; color: var(--text2); width: 40px; line-height: 1; }
.font-name { font-size: 12px; font-weight: 500; }
.font-role { font-size: 10px; color: var(--text3); }

.logo-upload-zone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  color: var(--text3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.logo-upload-zone:hover { border-color: var(--gold); background: var(--gold-pale); color: var(--gold); }

/* ============================================================
   CANVAS
   ============================================================ */
.canvas-wrapper {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface2);
}

.canvas-toolbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.device-switcher { display: flex; gap: 2px; }
.device-btn {
  width: 30px; height: 28px;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.device-btn:hover { color: var(--text1); background: var(--surface2); }
.device-btn.active { color: var(--gold); border-color: var(--gold); background: var(--gold-pale); }

.canvas-zoom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
  margin-left: 4px;
}
.zoom-btn {
  width: 22px; height: 22px;
  border: 1px solid var(--border-md);
  border-radius: 4px;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  line-height: 1;
}
.zoom-btn:hover { background: var(--surface3); color: var(--text1); }
#zoomLabel { min-width: 36px; text-align: center; font-size: 11px; font-family: var(--font-mono); }

.canvas-toolbar-right { margin-left: auto; display: flex; gap: 4px; }
.toolbar-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.toolbar-btn:hover { color: var(--text1); background: var(--surface2); }

.email-meta-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.meta-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  flex: 1;
}
.meta-field label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text4);
  flex-shrink: 0;
  width: 52px;
}
.meta-field input {
  border: none;
  outline: none;
  font-size: 12px;
  color: var(--text1);
  background: transparent;
  font-family: var(--font-body);
  width: 100%;
}
.meta-field input:focus { color: var(--gold); }
.meta-divider { width: 1px; height: 20px; background: var(--border); margin: 0 8px; flex-shrink: 0; }

.canvas-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px 0 60px;
  background: var(--canvas-bg);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.canvas-scroll::-webkit-scrollbar { width: 6px; }
.canvas-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.canvas-bg { display: flex; justify-content: center; min-height: 100%; }

.email-frame {
  width: 600px;
  transition: width 0.3s ease;
  position: relative;
}
.email-frame.tablet { width: 480px; }
.email-frame.mobile { width: 375px; }

.email-canvas {
  background: #111111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
  min-height: 200px;
  position: relative;
}

.drop-zone-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  margin-top: 16px;
  border: 2px dashed var(--gold-border);
  border-radius: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(245,166,35,0.03);
}
.drop-zone-hint:hover { border-color: #F5A623; background: rgba(245,166,35,0.05); }
.drop-icon { opacity: 0.5; }

/* EMAIL BLOCKS */
.email-block {
  position: relative;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.15s;
}
.email-block::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  pointer-events: none;
  border-radius: 0;
  transition: border-color 0.15s;
}
.email-block:hover::after { border-color: rgba(245,166,35,0.35); }
.email-block.selected::after { border-color: #F5A623; }

.block-toolbar {
  position: absolute;
  top: -34px; right: 0;
  background: var(--ink);
  border-radius: var(--radius-sm);
  display: none;
  align-items: center;
  gap: 1px;
  padding: 3px;
  z-index: 50;
  box-shadow: var(--shadow);
}
.email-block.selected .block-toolbar,
.email-block:hover .block-toolbar { display: flex; }

.btool-btn {
  width: 26px; height: 26px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  font-size: 12px;
}
.btool-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btool-btn.danger:hover { background: #dc2626; color: #fff; }
.btool-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.15); margin: 0 2px; }
.block-type-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  padding: 0 6px;
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ============================================================
   EMAIL BLOCK STYLES (rendered in canvas)
   ============================================================ */
.blk-header {
  background: linear-gradient(135deg, #0A0A0A 0%, #141414 100%);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blk-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #F5A623;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blk-logo-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid #F5A623;
  display: flex; align-items: center; justify-content: center;
}
.blk-logo-dot::after { content:''; width:8px; height:8px; border-radius:50%; background:#F5A623; }
.blk-tagline { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 2px; }
.blk-nav { display: flex; gap: 20px; }
.blk-nav a { font-size: 12px; color: rgba(255,255,255,0.6); text-decoration: none; }

.blk-hero {
  padding: 52px 44px;
  background: linear-gradient(160deg, #0A0A0A 0%, #1A1408 100%);
  text-align: center;
  border-bottom: 3px solid #F5A623;
  position: relative;
  overflow: hidden;
}
.blk-hero::before {
  content:'';
  position:absolute;
  top:-60px; right:-60px;
  width:200px; height:200px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(245,166,35,0.1), transparent 70%);
}
.blk-hero-eyebrow {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #F5A623;
  margin-bottom: 14px;
}
.blk-hero-h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.18;
  margin-bottom: 16px;
}
.blk-hero-sub {
  font-size: 15px;
  color: #A0A0A0;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 28px;
}
.blk-hero-cta {
  display: inline-block;
  background: #F5A623;
  color: #0A0A0A;
  padding: 13px 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(245,166,35,0.3);
}

.blk-text { padding: 28px 40px; background: #111111; }
.blk-text h2 { font-family: var(--font-display); font-size: 22px; color: #F0F0F0; font-weight: 700; margin-bottom: 14px; }
.blk-text p { font-size: 14px; color: #A0A0A0; line-height: 1.8; margin-bottom: 12px; }
.blk-text p:last-child { margin-bottom: 0; }

.blk-features { padding: 28px 40px; background: #111111; }
.blk-features-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.feat-card { padding: 18px 14px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; text-align: center; background: #1A1A1A; }
.feat-icon { font-size: 26px; margin-bottom: 10px; }
.feat-title { font-size: 13px; font-weight: 600; color: #F0F0F0; margin-bottom: 5px; }
.feat-desc { font-size: 12px; color: #707070; line-height: 1.5; }

.blk-cta {
  background: #F5A623;
  padding: 36px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blk-cta::before {
  content:'';
  position:absolute;
  top:-40px; left:-40px;
  width:160px; height:160px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
}
.blk-cta h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #0A0A0A; margin-bottom: 8px; }
.blk-cta p { font-size: 13px; color: rgba(10,10,10,0.7); margin-bottom: 22px; }
.blk-cta-btn {
  display: inline-block;
  background: #0A0A0A;
  color: #F5A623;
  padding: 12px 32px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.blk-image { }
.blk-image-inner {
  width: 100%;
  min-height: 200px;
  background: var(--surface3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 13px;
  gap: 10px;
  cursor: pointer;
}
.blk-image-inner:hover { background: var(--gold-pale); color: var(--gold); }
.image-upload-icon { font-size: 36px; opacity: 0.4; }

.blk-twocol { padding: 28px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: #111111; }
.tc-img { background: #1A1A1A; border-radius: 8px; height: 130px; display: flex; align-items: center; justify-content: center; font-size: 28px; opacity: 0.5; }
.tc-text h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: #F0F0F0; margin-bottom: 10px; }
.tc-text p { font-size: 13px; color: #A0A0A0; line-height: 1.7; }
.tc-link { display: inline-block; margin-top: 12px; font-size: 13px; color: #F5A623; font-weight: 600; text-decoration: none; }

.blk-divider { padding: 8px 0; background: #111111; }
.divider-line { height: 2px; background: linear-gradient(90deg, transparent, #F5A623, transparent); }

.blk-spacer { height: 32px; }

.blk-testimonial {
  padding: 32px 44px;
  background: #1A1408;
  border-left: 4px solid #F5A623;
}
.testimonial-quote { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #F0F0F0; line-height: 1.5; margin-bottom: 16px; }
.testimonial-author { font-size: 13px; font-weight: 600; color: #F5A623; }
.testimonial-role { font-size: 12px; color: #707070; }

.blk-stats { padding: 28px 40px; background: #111111; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.stat-item { text-align: center; padding: 16px; border-right: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: #F5A623; }
.stat-label { font-size: 11px; color: #707070; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

.blk-footer {
  background: #0A0A0A;
  padding: 28px 44px;
  text-align: center;
}
.footer-logo { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #F5A623; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.footer-socials { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.social-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 14px; flex-wrap: wrap; }
.footer-links a { font-size: 11px; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-meta { font-size: 11px; color: rgba(255,255,255,0.25); line-height: 1.7; }

/* ============================================================
   RIGHT PANEL
   ============================================================ */
.panel-right {
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ptab {
  flex: 1;
  padding: 12px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.ptab:hover { color: var(--text1); }
.ptab.active { color: var(--gold); border-bottom-color: var(--gold); }

.ptab-content { display: none; flex: 1; overflow-y: auto; }
.ptab-content.active { display: flex; flex-direction: column; }

.no-selection {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  color: var(--text4);
  gap: 12px;
}
.no-sel-icon { opacity: 0.3; }
.no-sel-title { font-size: 14px; font-weight: 500; color: var(--text3); }
.no-sel-sub { font-size: 12px; color: var(--text4); line-height: 1.6; }

#contentForm { flex: 1; overflow-y: auto; }

.prop-group { padding: 16px; border-bottom: 1px solid var(--border); }
.prop-group-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text4);
  margin-bottom: 12px;
}
.prop-row { margin-bottom: 12px; }
.prop-row:last-child { margin-bottom: 0; }
.prop-label { font-size: 11px; font-weight: 500; color: var(--text3); margin-bottom: 5px; }

.prop-input, .prop-textarea, .prop-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text1);
  background: var(--surface);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.prop-input:focus, .prop-textarea:focus, .prop-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,0.15); }
.prop-textarea { resize: vertical; min-height: 80px; }

/* DESIGN TAB */
.design-section { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.design-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text4); margin-bottom: 10px; }
.color-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.cs {
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  box-shadow: 0 0 0 1px var(--border-md);
}
.cs:hover { transform: scale(1.15); }
.cs.active { box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px rgba(245,166,35,0.25); }
.custom-cs { display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text3); background: var(--surface3); }

.width-options { display: flex; gap: 6px; }
.wopt {
  flex: 1;
  padding: 7px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.wopt:hover { border-color: var(--gold-border); color: var(--gold); }
.wopt.active { border-color: var(--gold); background: var(--gold-pale); color: var(--gold-dark); }

/* SETTINGS TAB */
.settings-section { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.settings-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text4); margin-bottom: 12px; }
.setting-row { margin-bottom: 10px; }
.setting-row label { display: block; font-size: 11px; color: var(--text3); margin-bottom: 4px; font-weight: 500; }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  padding: 6px 0;
}
.toggle-row input { display: none; }
.toggle-track {
  width: 34px; height: 19px;
  background: var(--border-strong);
  border-radius: 20px;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-row input:checked ~ .toggle-track { background: var(--gold); }
.toggle-row input:checked ~ .toggle-track .toggle-thumb { transform: translateX(15px); }

/* ============================================================
   PAGE VIEWS (Templates, Campaigns, Analytics)
   ============================================================ */
.page-view {
  margin-top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 32px 40px;
  background: var(--surface2);
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}
.page-header h1 { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--ink); }
.page-header p { font-size: 14px; color: var(--text3); margin-top: 4px; }

/* Template gallery */
.tpl-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.gallery-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--gold-border); }
.gallery-preview { height: 180px; position: relative; }
.gallery-preview-inner { width: 100%; height: 100%; }
.gallery-info { padding: 16px; }
.gallery-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.gallery-meta { font-size: 12px; color: var(--text3); }
.gallery-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.gallery-tag { font-size: 10px; padding: 3px 8px; border-radius: 20px; background: var(--surface3); color: var(--text3); font-weight: 500; }
.gallery-tag.gold { background: var(--gold-pale); color: var(--gold-dark); }

/* Campaigns table */
.campaigns-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.campaigns-table { width: 100%; border-collapse: collapse; }
.campaigns-table th {
  padding: 13px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text4);
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.campaigns-table td { padding: 14px 20px; font-size: 13px; border-bottom: 1px solid var(--border); color: var(--text2); }
.campaigns-table tr:last-child td { border-bottom: none; }
.campaigns-table tr:hover td { background: var(--surface2); }
.camp-name { font-weight: 500; color: var(--text1); }
.camp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.camp-badge.sent { background: #dcfce7; color: #15803d; }
.camp-badge.draft { background: var(--surface3); color: var(--text3); }
.camp-badge.scheduled { background: #dbeafe; color: #1d4ed8; }

/* Analytics */
.analytics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.metric-label { font-size: 11px; color: var(--text3); font-weight: 500; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.metric-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--ink); }
.metric-change { font-size: 11px; color: #22c55e; margin-top: 4px; font-weight: 500; }
.metric-change.down { color: #ef4444; }

.chart-row {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.chart-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 20px; }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.chart-bar { width: 100%; border-radius: 4px 4px 0 0; background: var(--gold); opacity: 0.3; transition: opacity var(--transition); }
.chart-bar:hover { opacity: 1; }
.chart-bar.highlight { opacity: 0.85; }
.chart-label { font-size: 10px; color: var(--text4); }

/* ============================================================
   MODALS
   ============================================================ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,24,20,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal-close {
  width: 32px; height: 32px;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--surface3); color: var(--text1); }

/* Preview modal */
.preview-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 750px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.preview-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.preview-modal-title { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; }
.preview-device-tabs { display: flex; gap: 4px; }
.preview-dtab {
  padding: 5px 12px;
  border: 1px solid var(--border-md);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.preview-dtab.active { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }

.preview-modal-body { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.preview-client-bar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.preview-sender { display: flex; align-items: center; gap: 10px; }
.preview-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.preview-from { font-size: 13px; font-weight: 600; color: var(--ink); }
.preview-subject { font-size: 12px; color: var(--text3); }

.preview-scroll { flex: 1; overflow-y: auto; background: var(--canvas-bg); padding: 24px; display: flex; justify-content: center; }
.preview-email-wrap { background: var(--surface); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: width 0.3s ease; }

/* Export modal */
.export-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
}
.export-modal-header {
  padding: 20px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.export-modal-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.export-modal-sub { font-size: 12px; color: var(--text3); margin-top: 2px; }
.export-tabs {
  display: flex;
  padding: 16px 24px 0;
  gap: 8px;
}
.etab {
  padding: 7px 16px;
  border: 1px solid var(--border-md);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--text2);
  font-family: var(--font-body);
  transition: all var(--transition);
}
.etab.active { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }

.code-block {
  margin: 16px 24px;
  background: #0D1117;
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 16px;
  border-radius: var(--radius);
  max-height: 280px;
  overflow-y: auto;
  white-space: pre;
  line-height: 1.7;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #30363d transparent;
}

.export-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.export-integrations { display: flex; align-items: center; gap: 8px; }
.int-label { font-size: 11px; color: var(--text4); }
.int-btn {
  padding: 5px 12px;
  border: 1px solid var(--border-md);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.int-btn:hover { border-color: var(--gold-border); color: var(--gold); background: var(--gold-pale); }

/* Send modal */
.send-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 380px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
}
.send-modal-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.send-modal-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.send-modal-body { padding: 0 20px 20px; }
.send-to-field label { display: block; font-size: 11px; color: var(--text3); font-weight: 500; margin-bottom: 6px; }
.send-notice {
  font-size: 11px;
  color: var(--text4);
  line-height: 1.5;
  margin: 12px 0 16px;
  padding: 10px;
  background: var(--surface3);
  border-radius: var(--radius-sm);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.gold { background: var(--gold); }

/* ============================================================
   AUTH SCREEN
   ============================================================ */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  animation: authFadeIn 0.4s ease;
}
.auth-screen.open { display: flex; }

@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,166,35,0.05);
  animation: authCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  justify-content: center;
}
.auth-logo-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(245,166,35,0.12);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text1);
  text-align: center;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text3);
  text-align: center;
  margin-bottom: 24px;
}

.auth-error {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #f87171;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
}

.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  padding: 11px 14px;
  background: #0A0A0A;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--text1);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.auth-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
}
.auth-field input::placeholder {
  color: var(--text4);
}

.auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--gold);
  color: #0A0A0A;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 4px;
}
.auth-submit:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,166,35,0.3);
}

.auth-toggle {
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  margin-top: 20px;
}
.auth-toggle a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.auth-toggle a:hover {
  text-decoration: underline;
}

/* ============================================================
   USER DROPDOWN
   ============================================================ */
.user-menu-wrap {
  position: relative;
}

.avatar {
  cursor: pointer;
  transition: all var(--transition);
}
.avatar:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  padding: 6px;
  display: none;
  z-index: 1100;
  animation: dropdownIn 0.15s ease;
}
.user-dropdown.open { display: block; }

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

.user-dropdown-header {
  padding: 12px 12px 10px;
}
.user-dropdown-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text1);
}
.user-dropdown-email {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}
.user-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 4px 0;
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition);
}
.user-dropdown-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text1);
}
.user-dropdown-item.danger:hover {
  background: rgba(220,38,38,0.1);
  color: #f87171;
}

/* ============================================================
   DRAFT INDICATOR
   ============================================================ */
.draft-indicator {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-sm {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

/* ============================================================
   DRAFTS MODAL
   ============================================================ */
.drafts-modal {
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drafts-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.drafts-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text1);
}
.drafts-modal-sub {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}

.drafts-list {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Draft Cards */
.draft-card {
  background: #0D0D0D;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
  transition: all var(--transition);
}
.draft-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: #141414;
}
.draft-card.active {
  border-color: rgba(245,166,35,0.3);
  background: rgba(245,166,35,0.04);
}

.draft-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.draft-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(245,166,35,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.draft-card-info {
  flex: 1;
  min-width: 0;
}
.draft-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.draft-card-meta {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

.draft-active-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(245,166,35,0.12);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.draft-card-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}
.draft-action-btn {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.draft-action-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text1);
  border-color: rgba(255,255,255,0.1);
}
.draft-action-btn.danger:hover {
  background: rgba(220,38,38,0.1);
  color: #f87171;
  border-color: rgba(220,38,38,0.2);
}

/* Drafts Empty State */
.drafts-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
  color: var(--text3);
}
.drafts-empty-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
  margin-top: 14px;
}
.drafts-empty-sub {
  font-size: 12px;
  margin-top: 4px;
}

/* SCROLLBAR GLOBAL */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
