:root {
  --bg: #0F1519;
  --surface: #1E2A32;
  --surface-2: #141C22;
  --border: #2A3942;
  --text: #E5E7EB;
  --text-muted: #9CA3AF;
  --text-subtle: #6B7280;
  --accent: #3BD2D2;
  --accent-dim: rgba(59, 210, 210, 0.15);
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --radius: 10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--text-muted); }
.small { font-size: 12px; }
code { background: var(--surface); padding: 1px 6px; border-radius: 4px; font-size: 12px; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}
.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}
.brand-product {
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.topbar nav {
  display: flex;
  gap: 18px;
  margin-left: 16px;
  flex: 1;
}
.topbar nav a {
  color: var(--text-muted);
  font-size: 14px;
}
.topbar nav a:hover { color: var(--text); text-decoration: none; }
.user-block {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  cursor: default;
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #5dd9d9 100%);
  color: #0a1418;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(59, 210, 210, 0.15);
}
.user-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.18s ease;
}
.btn-logout svg {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.btn-logout:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}
.btn-logout:hover svg {
  transform: translateX(2px);
}
.btn-logout:active {
  transform: scale(0.97);
}

.inline { display: inline; }

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 28px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-header h1 { margin: 0 0 4px 0; font-size: 24px; }
.page-header p { margin: 0; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #0a1418;
}
.btn-primary:hover { background: #5dd9d9; }
.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); }
.btn-block { width: 100%; }
.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.btn-link:hover { color: var(--danger); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-tight { gap: 10px; }
.form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 14px;
  margin: 0;
}
.form legend {
  padding: 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.form label:last-child { margin-bottom: 0; }
.form label > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="datetime-local"],
.form textarea {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border 0.15s ease;
}
.form input:focus,
.form textarea:focus {
  border-color: var(--accent);
}
.form textarea { resize: vertical; min-height: 60px; }

.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.flash {
  padding: 10px 28px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.flash-success { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }
.flash-error { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }

/* ---------- Login ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo {
  height: 56px;
  width: auto;
  display: inline-block;
  margin-bottom: 20px;
}
.auth-brand h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.auth-brand p {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Dashboard / table ---------- */
.empty {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.dashboard-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 210, 210, 0.05);
  border: 1px solid rgba(59, 210, 210, 0.2);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.dashboard-hint a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.dashboard-hint a:hover { text-decoration: underline; }
.empty h1 { margin-top: 0; }
.empty p { margin-bottom: 24px; }

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  /* sin overflow: hidden — para que dropdowns absolutos puedan
     desbordarse fuera del wrapper sin ser clippeados */
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
/* Redondeamos las esquinas en las celdas de cabecera/última fila
   para reemplazar el efecto del overflow:hidden */
.data-table thead th:first-child { border-top-left-radius: var(--radius-lg); }
.data-table thead th:last-child  { border-top-right-radius: var(--radius-lg); }
.data-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-lg); }
.data-table tbody tr:last-child td:last-child  { border-bottom-right-radius: var(--radius-lg); }
.data-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: rgba(59, 210, 210, 0.04); }

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.badge-ok { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-pending { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.badge-admin { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(59, 210, 210, 0.3); }

.row-inactive { opacity: 0.5; }

/* ---------- Actions menu (dropdown via <details>) ---------- */
.actions-menu {
  position: relative;
  display: inline-block;
}
.actions-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  user-select: none;
}
.actions-menu summary::-webkit-details-marker { display: none; }
.actions-menu summary:hover { color: var(--accent); border-color: var(--accent); }
.actions-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
/* En filas cerca del fondo de la tabla, el popup podría tapar
   el final de la página. Las acciones-menu en la última fila
   abren el popup HACIA ARRIBA. */
.data-table tbody tr:nth-last-child(-n+2) .actions-pop {
  top: auto;
  bottom: calc(100% + 4px);
}
.actions-pop > form { display: contents; }
.actions-pop > form > button,
.actions-sub > summary {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  list-style: none;
}
.actions-sub > summary::-webkit-details-marker { display: none; }
.actions-pop > form > button:hover,
.actions-sub > summary:hover {
  background: var(--surface-2);
  color: var(--accent);
}
.actions-empty {
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}
.actions-sub[open] > summary { color: var(--accent); }
.reset-pwd-form {
  display: flex;
  gap: 6px;
  padding: 8px 12px 4px;
}
.reset-pwd-form input {
  flex: 1;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
}
.reset-pwd-form input:focus { border-color: var(--accent); }
.btn-tight { padding: 6px 10px; font-size: 12px; }

.checkbox-row {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  margin-bottom: 0 !important;
}
.checkbox-row > input { margin: 0; }
.checkbox-row > span { font-size: 14px; font-weight: 400; color: var(--text); }
.link { color: var(--text); font-weight: 600; }
.link-arrow { color: var(--accent); font-size: 12px; }

/* ---------- Editor (new comunicado) ---------- */
.editor {
  display: grid;
  grid-template-columns: minmax(420px, 520px) 1fr;
  gap: 0;
  height: calc(100vh - 60px);
}
.editor-pane {
  overflow-y: auto;
  padding: 28px 32px;
}
.editor-form {
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.editor-preview {
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.editor-header h1 { margin: 0; font-size: 22px; }
.mode-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--border);
}
.mode-toggle a {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.mode-toggle a:hover { text-decoration: none; color: var(--text); }
.mode-toggle a.active { background: var(--accent); color: #0a1418; }
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.status-msg {
  margin: 8px 0 0;
  font-size: 13px;
  min-height: 18px;
  color: var(--text-muted);
}
.status-msg.success { color: var(--success); }
.status-msg.error { color: var(--danger); }

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
#preview {
  flex: 1;
  width: 100%;
  border: none;
  background: #141C22;
}

/* ---------- Variable mode blocks ---------- */
.blocks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.block-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
}
.block-controls { display: flex; gap: 4px; }
.block-controls button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
}
.block-controls button:hover { color: var(--text); border-color: var(--accent); }
.block-add {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.block-add button {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}
.block-add button:hover {
  border-color: var(--accent);
  color: var(--accent);
  border-style: solid;
}
.list-items { display: flex; flex-direction: column; gap: 6px; }
.list-items input { flex: 1; }
.list-items-row { display: flex; gap: 6px; align-items: center; }
.list-items-row button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 0 8px;
  font-size: 14px;
  cursor: pointer;
  height: 36px;
}

/* Items en modo fijo (lista dinámica) */
.fixed-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.fixed-item-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.fixed-item-row input {
  flex: 1;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.fixed-item-row input:focus { border-color: var(--accent); }
.fixed-item-row button {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 16px;
  cursor: pointer;
  height: 36px;
  line-height: 1;
}
.fixed-item-row button:hover {
  color: var(--danger);
  border-color: var(--danger);
}
.btn-add-item-pill {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 4px;
  font-family: inherit;
}
.btn-add-item-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  border-style: solid;
}

/* Divider y botón danger en page-actions */
.actions-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
  align-self: center;
}
.btn-danger {
  color: var(--danger);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

/* ---------- Detail page ---------- */
.detail .back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.help-banner {
  background: rgba(59, 210, 210, 0.06);
  border: 1px solid rgba(59, 210, 210, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--text);
}
.help-banner strong { color: var(--accent); }
.help-banner ol {
  margin: 8px 0 0 0;
  padding-left: 20px;
}
.help-banner li {
  margin-bottom: 4px;
  line-height: 1.6;
}
.help-banner li:last-child { margin-bottom: 0; }
kbd {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  color: var(--text);
  box-shadow: 0 1px 0 var(--border);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.card-head h2 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.card .form { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.card #preview-frame {
  width: 100%;
  height: 700px;
  border: none;
  background: var(--surface-2);
}

.envio-list { list-style: none; padding: 0; margin: 0; }
.envio-list li {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.envio-list li:last-child { border-bottom: none; }
.envio-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.envio-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.envio-notes { font-style: italic; }

@media (max-width: 980px) {
  .editor { grid-template-columns: 1fr; height: auto; }
  .editor-form { border-right: none; border-bottom: 1px solid var(--border); }
  .detail-grid { grid-template-columns: 1fr; }
  .card #preview-frame { height: 500px; }
}

/* ---------- Modal de confirmación ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 16, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 22px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: scale(0.96) translateY(8px);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.18s ease;
}
.modal.modal-open .modal-backdrop {
  opacity: 1;
}
.modal.modal-open .modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  font-size: 22px;
  margin: 0 auto 14px;
  line-height: 1;
}
.modal-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.modal-card p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.modal-actions .btn { min-width: 110px; }

.btn-danger-solid {
  background: var(--danger);
  color: #fff;
  border: 1px solid var(--danger);
}
.btn-danger-solid:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

/* ---------- Guía ---------- */
.guide { max-width: 880px; }

.guide-tldr {
  background: var(--accent-dim);
  border: 1px solid rgba(59, 210, 210, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  margin-bottom: 32px;
  color: var(--text);
}
.guide-tldr strong { color: var(--accent); }

.guide-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.guide-step:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.guide-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a1418;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-content h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--text);
}
.guide-content h3 {
  margin: 18px 0 8px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.guide-content p {
  margin: 0 0 12px;
  line-height: 1.7;
  color: var(--text);
}
.guide-content ul, .guide-content ol {
  margin: 0 0 12px;
  padding-left: 22px;
  line-height: 1.8;
}
.guide-content li { margin-bottom: 4px; }

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.guide-card h3 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.guide-card p { margin: 0; font-size: 13px; }

.guide-tips {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
}
.guide-tips p { margin: 0 0 8px; }
.guide-tips ul { margin: 0; padding-left: 20px; }

.guide-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 3px solid var(--warning);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.6;
}
.guide-warning strong { color: var(--warning); }

.guide-faq {
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.guide-faq > h2 {
  margin: 0 0 18px;
  font-size: 18px;
}
.guide-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  margin-bottom: 8px;
  overflow: hidden;
}
.guide-faq summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  list-style: none;
  user-select: none;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::before {
  content: '+ ';
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}
.guide-faq details[open] summary::before { content: '− '; }
.guide-faq details[open] summary { color: var(--accent); border-bottom: 1px solid var(--border); }
.guide-faq details > p {
  padding: 14px 18px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}
.guide-faq details > p code { color: var(--text); }

@media (max-width: 720px) {
  .guide-step { grid-template-columns: 44px 1fr; gap: 16px; }
  .guide-num { width: 36px; height: 36px; font-size: 16px; }
  .guide-cards { grid-template-columns: 1fr; }
}
