/* ─── KDA Akali Neon Theme ────────────────────────────────── */
:root {
  --neon-pink:    #ff2d78;
  --neon-cyan:    #00f5ff;
  --neon-purple:  #b44aff;
  --neon-gold:    #ffd700;
  --bg-void:      #07070f;
  --bg-dark:      #0d0d1a;
  --bg-panel:     #10101e;
  --bg-card:      #13132a;
  --border-dim:   rgba(180,74,255,0.18);
  --border-glow:  rgba(255,45,120,0.45);
  --text-bright:  #ffffff;
  --text-mid:     rgba(255,255,255,0.75);
  --text-dim:     rgba(255,255,255,0.4);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-void);
  color: var(--text-bright);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 40% at 20% 0%, rgba(180,74,255,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 80% 100%, rgba(0,245,255,0.07) 0%, transparent 60%);
}

/* ─── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,45,120,0.4); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-pink); }

/* ─── Toast ──────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  color: var(--text-bright);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--neon-purple);
  box-shadow: 0 0 20px rgba(180,74,255,0.4), 0 4px 20px rgba(0,0,0,0.5);
  animation: toastIn 0.25s ease, toastOut 0.25s ease 1.8s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.success {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0,245,255,0.4), 0 4px 20px rgba(0,0,0,0.5);
}
.toast.error {
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px rgba(255,45,120,0.4), 0 4px 20px rgba(0,0,0,0.5);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-6px) scale(0.95); }
}

/* ─── Site Header ────────────────────────────────────────── */
.site-header {
  background: var(--bg-dark);
  color: white;
  height: 60px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  box-shadow:
    0 1px 0 rgba(255,45,120,0.5),
    0 4px 24px rgba(255,45,120,0.15),
    inset 0 -1px 0 rgba(0,245,255,0.08);
}

.header-inner {
  height: 100%;
  max-width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255,45,120,0.8));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255,45,120,0.5));
}

.brand-sub {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.summary {
  display: flex;
  gap: 6px;
  flex: 1;
}
.summary.hidden { display: none; }

.summary-item {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.summary-item.modified {
  background: rgba(255,215,0,0.12);
  color: var(--neon-gold);
  border-color: rgba(255,215,0,0.3);
  box-shadow: 0 0 8px rgba(255,215,0,0.2);
}
.summary-item.added {
  background: rgba(0,245,255,0.1);
  color: var(--neon-cyan);
  border-color: rgba(0,245,255,0.3);
  box-shadow: 0 0 8px rgba(0,245,255,0.2);
}
.summary-item.deleted {
  background: rgba(255,45,120,0.12);
  color: var(--neon-pink);
  border-color: rgba(255,45,120,0.3);
  box-shadow: 0 0 8px rgba(255,45,120,0.2);
}

.header-hint {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}
.header-hint.hidden { display: none; }

.header-hint kbd {
  background: rgba(255,45,120,0.15);
  border: 1px solid rgba(255,45,120,0.35);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 11px;
  color: var(--neon-pink);
}

/* ─── Ad Zones ───────────────────────────────────────────── */
.ad-zone {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dim);
  overflow: hidden;
}
.ad-top    { min-height: 90px; }
.ad-mid    { min-height: 90px; margin: 32px 0; border: 1px solid var(--border-dim); border-radius: 12px; }
.ad-bottom { min-height: 90px; margin: 0 0 32px; border: 1px solid var(--border-dim); border-radius: 12px; }

.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 90px;
  color: rgba(255,255,255,0.12);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Tool Section ───────────────────────────────────────── */
.tool-section {
  height: calc(100vh - 60px - 90px);
  min-height: 360px;
  background: var(--bg-void);
  border-bottom: 1px solid var(--border-dim);
}

.tool-wrapper {
  display: flex;
  height: 100%;
}

/* ─── Panel ──────────────────────────────────────────────── */
.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-panel);
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dim);
  flex-shrink: 0;
  min-height: 46px;
  gap: 8px;
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.badge-a {
  background: rgba(0,245,255,0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0,245,255,0.35);
  box-shadow: 0 0 8px rgba(0,245,255,0.2);
}
.badge-b {
  background: rgba(255,45,120,0.15);
  color: var(--neon-pink);
  border: 1px solid rgba(255,45,120,0.35);
  box-shadow: 0 0 8px rgba(255,45,120,0.2);
}

.panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.panel-meta {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.panel-meta.hidden { display: none; }

.btn-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-dim);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: all 0.15s;
}
.btn-reset:hover {
  border-color: rgba(255,45,120,0.5);
  background: rgba(255,45,120,0.1);
  color: var(--neon-pink);
  box-shadow: 0 0 8px rgba(255,45,120,0.25);
}
.btn-reset.hidden { display: none; }

/* ─── Drop Zone ──────────────────────────────────────────── */
.drop-zone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px;
  border: 2px dashed rgba(180,74,255,0.3);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(180,74,255,0.03);
}

.drop-zone:hover {
  border-color: var(--neon-cyan);
  background: rgba(0,245,255,0.04);
  box-shadow: 0 0 24px rgba(0,245,255,0.1), inset 0 0 24px rgba(0,245,255,0.03);
}
.drop-zone.drag-over {
  border-color: var(--neon-pink);
  background: rgba(255,45,120,0.06);
  box-shadow: 0 0 32px rgba(255,45,120,0.2), inset 0 0 32px rgba(255,45,120,0.04);
  transform: scale(1.01);
}
.drop-zone.hidden { display: none; }

.drop-content {
  text-align: center;
  color: var(--text-dim);
  pointer-events: none;
  padding: 24px 16px;
}
.drop-content label { pointer-events: all; }

.drop-icon {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(0,245,255,0.4));
}

.drop-icon-b {
  filter: drop-shadow(0 0 10px rgba(255,45,120,0.4));
}

.drop-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.drop-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.file-hint {
  font-size: 11.5px;
  color: rgba(255,255,255,0.25);
  margin-top: 12px;
}

.btn-upload {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0,245,255,0.15), rgba(0,245,255,0.08));
  color: var(--neon-cyan);
  padding: 9px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  border: 1px solid rgba(0,245,255,0.4);
  box-shadow: 0 0 16px rgba(0,245,255,0.15);
  letter-spacing: 0.5px;
}
.btn-upload:hover {
  background: rgba(0,245,255,0.2);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 24px rgba(0,245,255,0.35), 0 0 4px rgba(0,245,255,0.5);
  transform: translateY(-1px);
  color: white;
}

.btn-upload-b {
  background: linear-gradient(135deg, rgba(255,45,120,0.15), rgba(255,45,120,0.08));
  color: var(--neon-pink);
  border-color: rgba(255,45,120,0.4);
  box-shadow: 0 0 16px rgba(255,45,120,0.15);
}
.btn-upload-b:hover {
  background: rgba(255,45,120,0.2);
  border-color: var(--neon-pink);
  box-shadow: 0 0 24px rgba(255,45,120,0.35), 0 0 4px rgba(255,45,120,0.5);
  color: white;
}

/* ─── Splitter ───────────────────────────────────────────── */
.splitter {
  width: 6px;
  background: var(--bg-dark);
  flex-shrink: 0;
  cursor: col-resize;
  transition: background 0.15s;
  position: relative;
  border-left: 1px solid var(--border-dim);
  border-right: 1px solid var(--border-dim);
}
.splitter:hover { background: rgba(255,45,120,0.08); }
.splitter::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 30px;
  background: var(--neon-pink);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 0 8px var(--neon-pink);
}
.splitter:hover::after { opacity: 0.8; }

/* ─── Sheet Tabs ─────────────────────────────────────────── */
.sheet-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dim);
  flex-shrink: 0;
  overflow-x: auto;
}
.sheet-tabs.hidden { display: none; }
.sheet-tabs::-webkit-scrollbar { height: 3px; }
.sheet-tabs::-webkit-scrollbar-track { background: transparent; }
.sheet-tabs::-webkit-scrollbar-thumb { background: rgba(255,45,120,0.3); border-radius: 99px; }

.sheet-tab {
  padding: 4px 12px;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  color: var(--text-dim);
}
.sheet-tab.active {
  background: rgba(0,245,255,0.12);
  color: var(--neon-cyan);
  border-color: rgba(0,245,255,0.4);
  box-shadow: 0 0 10px rgba(0,245,255,0.2);
}
.sheet-tab:hover:not(.active) {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-mid);
}

/* ─── Table ──────────────────────────────────────────────── */
.table-container {
  flex: 1;
  overflow: auto;
  background: var(--bg-panel);
}
.table-container.hidden { display: none; }
.table-container::-webkit-scrollbar { width: 6px; height: 6px; }
.table-container::-webkit-scrollbar-track { background: var(--bg-dark); }
.table-container::-webkit-scrollbar-thumb { background: rgba(180,74,255,0.3); border-radius: 99px; }

table {
  border-collapse: collapse;
  font-size: 12px;
  width: max-content;
  min-width: 100%;
}

td {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.05);
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  line-height: 1.5;
  color: var(--text-mid);
}

tr:nth-child(even) td { background: rgba(255,255,255,0.015); }
tr:hover td:not(.row-num) { background: rgba(180,74,255,0.06) !important; }

/* ─── Row Number ─────────────────────────────────────────── */
td.row-num {
  background: var(--bg-dark) !important;
  color: rgba(255,255,255,0.2);
  font-size: 11px;
  text-align: right;
  padding: 5px 8px;
  min-width: 40px;
  width: 40px;
  user-select: none;
  border-right: 1px solid rgba(180,74,255,0.2);
  position: sticky;
  left: 0;
  z-index: 1;
}

td.row-num[data-side] { cursor: pointer; }
td.row-num[data-side]:hover {
  background: rgba(255,45,120,0.1) !important;
  color: var(--neon-pink);
}

/* ─── Diff Styles ────────────────────────────────────────── */
.cell-modified {
  background: rgba(255,215,0,0.1) !important;
  cursor: pointer;
  position: relative;
  color: var(--neon-gold) !important;
}
.cell-modified:hover {
  background: rgba(255,215,0,0.2) !important;
  outline: 1px solid var(--neon-gold);
  outline-offset: -1px;
  box-shadow: inset 0 0 12px rgba(255,215,0,0.15);
  z-index: 2;
}
.cell-modified::after {
  content: '✎';
  position: absolute;
  right: 3px;
  top: 2px;
  font-size: 9px;
  color: var(--neon-gold);
  opacity: 0.6;
}

.cell-added {
  background: rgba(0,245,255,0.08) !important;
  cursor: pointer;
  color: var(--neon-cyan) !important;
}
.cell-added:hover {
  background: rgba(0,245,255,0.18) !important;
  outline: 1px solid var(--neon-cyan);
  outline-offset: -1px;
  z-index: 2;
  position: relative;
}
.cell-deleted {
  background: rgba(255,45,120,0.08) !important;
  cursor: pointer;
  color: var(--neon-pink) !important;
}
.cell-deleted:hover {
  background: rgba(255,45,120,0.18) !important;
  outline: 1px solid var(--neon-pink);
  outline-offset: -1px;
  z-index: 2;
  position: relative;
}

.row-placeholder td { background: rgba(255,255,255,0.01) !important; border-color: rgba(255,255,255,0.04) !important; }
.row-added    td { background: rgba(0,245,255,0.06) !important; }
.row-deleted  td { background: rgba(255,45,120,0.06) !important; }

/* ─── Panel Footer ───────────────────────────────────────── */
.panel-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-dim);
  background: var(--bg-dark);
  flex-shrink: 0;
}
.panel-footer.hidden { display: none; }

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(180,74,255,0.2), rgba(255,45,120,0.15));
  color: var(--text-bright);
  border: 1px solid rgba(180,74,255,0.5);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  box-shadow: 0 0 16px rgba(180,74,255,0.2);
  letter-spacing: 0.3px;
}
.btn-download:hover {
  background: linear-gradient(135deg, rgba(180,74,255,0.35), rgba(255,45,120,0.28));
  border-color: var(--neon-purple);
  box-shadow: 0 0 28px rgba(180,74,255,0.4), 0 0 6px rgba(255,45,120,0.3);
  transform: translateY(-1px);
}

/* ─── Context Menu ───────────────────────────────────────── */
.context-menu {
  position: fixed;
  background: var(--bg-card);
  border: 1px solid rgba(180,74,255,0.35);
  border-radius: 10px;
  box-shadow: 0 0 32px rgba(180,74,255,0.25), 0 8px 32px rgba(0,0,0,0.6);
  z-index: 1000;
  overflow: hidden;
  min-width: 170px;
  animation: menuIn 0.12s ease;
}
@keyframes menuIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
.context-menu.hidden { display: none; }

.context-menu div {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mid);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.context-menu div:last-child { border-bottom: none; }
.context-menu div:hover {
  background: rgba(255,45,120,0.1);
  color: var(--text-bright);
}
.context-menu div svg { color: var(--neon-cyan); flex-shrink: 0; }

/* ─── Content Sections ───────────────────────────────────── */
.content-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.content-section {
  padding: 44px 0 32px;
  border-top: 1px solid var(--border-dim);
}
.content-section:first-child { border-top: none; }

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-pink), transparent);
  box-shadow: 0 0 8px var(--neon-pink);
}

/* ─── Steps ──────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step {
  flex: 1;
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-dim);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.step:hover {
  border-color: rgba(0,245,255,0.2);
  box-shadow: 0 0 20px rgba(0,245,255,0.07);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(0,245,255,0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0,245,255,0.35);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0,245,255,0.2);
}

.step-body h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.step-body p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

.step-arrow {
  font-size: 24px;
  color: rgba(255,45,120,0.4);
  flex-shrink: 0;
  margin-top: 24px;
}

.diff-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.diff-badge.modified {
  background: rgba(255,215,0,0.12);
  color: var(--neon-gold);
  border: 1px solid rgba(255,215,0,0.3);
}
.diff-badge.added {
  background: rgba(0,245,255,0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0,245,255,0.3);
}
.diff-badge.deleted {
  background: rgba(255,45,120,0.1);
  color: var(--neon-pink);
  border: 1px solid rgba(255,45,120,0.3);
}

.step-body kbd {
  background: rgba(180,74,255,0.12);
  border: 1px solid rgba(180,74,255,0.3);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 12px;
  color: var(--neon-purple);
}

/* ─── Features Grid ──────────────────────────────────────── */
.features-section { background: transparent; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 22px 18px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,45,120,0.4), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover {
  border-color: rgba(255,45,120,0.25);
  box-shadow: 0 0 24px rgba(255,45,120,0.1), 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 6px rgba(255,45,120,0.4));
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item:hover, .faq-item.open {
  border-color: rgba(180,74,255,0.3);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--text-bright); }

.faq-arrow {
  color: rgba(180,74,255,0.5);
  font-size: 18px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow {
  transform: rotate(90deg);
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink);
}

.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.75;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.faq-item.open .faq-a { display: block; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-dim);
  padding: 40px 0 32px;
  border-top: 1px solid rgba(255,45,120,0.2);
  box-shadow: 0 -4px 32px rgba(255,45,120,0.07);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.footer-brand strong {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 15px;
  display: block;
}

.footer-brand p {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s, text-shadow 0.15s;
}
.footer-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0,245,255,0.5);
}

.footer-note {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.15);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .ad-top { min-height: 60px; }

  .tool-section {
    height: auto;
    min-height: unset;
  }

  .tool-wrapper {
    flex-direction: column;
    height: auto;
  }

  .panel {
    height: 50vh;
    min-height: 280px;
    flex: none;
  }

  .splitter {
    width: 100%;
    height: 5px;
    cursor: row-resize;
  }
  .splitter::after {
    width: 30px;
    height: 2px;
  }

  .steps { flex-direction: column; }
  .step-arrow { display: none; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .header-hint { display: none !important; }
  .brand-sub { display: none; }
  .panel-meta { display: none !important; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .panel-badge { display: none; }
  .summary-item { font-size: 11px; padding: 3px 8px; }
}
