@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

:root {
  --font-primary: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --bg: #08080c;
  --surface: #11121b;
  --surface2: #181a26;
  --border: #26293b;
  --accent: #ff9d00;
  --accent-hover: #ffa81a;
  --accent-glow: rgba(255, 157, 0, 0.25);
  --accent2: #ff7700;
  --text: #f5f6fa;
  --muted: #696e85;
  --danger: #ff4747;
  --success: #47ff9a;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,157,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,157,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Glow orb */
body::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,157,0,0.06) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Header up arrow icon button (Desktop/Tablet) */
.btn-header-choose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-header-choose:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.badge .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 2s ease-in-out infinite;
}

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

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 100px;
  background: rgba(255, 157, 0, 0.08);
  border: 1px solid rgba(255, 157, 0, 0.3);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.hero-highlight::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-secondary {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  opacity: 0.7;
  max-width: 440px;
  margin: 10px auto 0;
  line-height: 1.65;
}

.privacy-bar {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}

.privacy-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.privacy-bar svg {
  flex-shrink: 0;
}

/* Drop Zone */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}

.dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 157, 0, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: #14131a;
}

.dropzone:hover::before, .dropzone.dragover::before {
  opacity: 1;
}

.dropzone.dragover {
  transform: scale(1.01);
}

.dz-icon {
  font-size: 52px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
  transition: transform 0.3s;
}

.dropzone:hover .dz-icon {
  transform: translateY(-4px);
}

.dz-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dz-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-browse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.2px;
}

.btn-browse:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-browse:active {
  transform: translateY(0);
}

#fileInput {
  display: none;
}

/* Settings Accordion */
.settings-accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}

.settings-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.settings-trigger:hover {
  background: rgba(255,255,255,0.02);
}

.settings-trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-trigger-icon {
  font-size: 16px;
}

.settings-trigger-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.settings-trigger-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
}

.settings-chevron {
  color: var(--muted);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), color 0.2s;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.settings-accordion.open .settings-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.settings-accordion.open .settings-trigger-title {
  color: var(--accent);
}

.settings-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4,0,0.2,1);
}

.settings-accordion.open .settings-body {
  grid-template-rows: 1fr;
}

.settings-body-inner {
  overflow: hidden;
}

.settings-accordion.open .settings-body-inner {
  overflow: visible;
}

.settings-panel {
  padding: 4px 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  border-top: 1px solid var(--border);
}

.setting-group {
  position: relative;
}

.setting-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.setting-group select,
.setting-group input[type="range"] {
  width: 100%;
}

select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23696e85' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: border-color 0.2s;
}

select:focus {
  border-color: var(--accent);
}

/* Custom Select Component for PDF Settings */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-wrapper select {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
}

.custom-select-trigger {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.custom-select-trigger:hover {
  border-color: var(--accent);
}

.custom-select-trigger:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.custom-select-chevron {
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
}

.custom-select-wrapper.open .custom-select-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Floating Menu */
.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75), 0 0 16px var(--accent-glow);
  z-index: 250;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.custom-select-wrapper.open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-wrapper.open-up .custom-select-menu {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateY(6px);
}

.custom-select-wrapper.open-up.open .custom-select-menu {
  transform: translateY(0);
}

.custom-select-option {
  padding: 10px 14px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
}

.custom-select-option:hover,
.custom-select-option.highlighted {
  background: rgba(255, 157, 0, 0.08);
  color: var(--accent);
}

.custom-select-option.selected {
  background: rgba(255, 157, 0, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.custom-select-check {
  font-size: 12px;
  color: var(--accent);
  margin-left: 8px;
}

input[type="range"] {
  -webkit-appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  margin-top: 8px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

.range-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-top: 8px;
  display: block;
}

/* Image Preview Grid */
.preview-section {
  display: none;
  margin-bottom: 28px;
}

.preview-section.visible {
  display: block;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  background: var(--accent);
  color: #000;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.btn-clear {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-clear:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.image-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: grab;
  transition: all 0.2s;
  animation: cardIn 0.3s ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.image-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.image-card.dragging {
  opacity: 0.4;
  transform: scale(0.95);
  border-color: var(--accent);
}

.image-card.drag-over {
  border-color: var(--accent);
  border-style: solid;
  background: rgba(255, 157, 0, 0.05);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
}

.image-card:hover .card-overlay {
  opacity: 1;
}

.card-num {
  align-self: flex-start;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 7px;
  color: var(--text);
}

.card-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.card-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: all 0.15s;
}

.card-btn-del {
  background: rgba(255,71,71,0.85);
  color: #fff;
}

.card-btn-del:hover {
  background: var(--danger);
}

.drag-hint {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Convert Button */
.convert-area {
  display: none;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.convert-area.visible {
  display: flex;
}

.btn-convert {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: -0.3px;
  position: relative;
  overflow: hidden;
}

.btn-convert::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-convert:hover::before {
  transform: translateX(100%);
}

.btn-convert:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px var(--accent-glow);
}

.btn-convert:active {
  transform: translateY(0);
}

.btn-convert:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Progress */
.progress-wrap {
  display: none;
  margin-bottom: 24px;
}

.progress-wrap.visible {
  display: block;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-label span:last-child {
  color: var(--accent);
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface2);
  border: 1px solid var(--success);
  border-radius: 14px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 90vw;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  font-size: 24px;
}

.toast-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--success);
}

.toast-text span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* Features accordion */
.features {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.features-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.feat {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.feat:first-of-type {
  border-top: 1px solid var(--border);
}

.feat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  list-style: none;
  outline: none;
}

.feat-header:hover {
  background: rgba(255,255,255,0.02);
}

.feat-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.feat-title {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
  letter-spacing: -0.2px;
}

.feat-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}

.feat-chevron svg {
  display: block;
}

.feat.open .feat-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.feat.open .feat-title {
  color: var(--accent);
}

.feat-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.feat.open .feat-body {
  grid-template-rows: 1fr;
}

.feat-body-inner {
  overflow: hidden;
}

.feat-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  padding: 0 4px 18px 42px;
}

/* Footer Structure & ByTek Branding */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 32px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.2px;
}

.footer-brand span {
  color: var(--accent);
}

/* Footer Social Section */
.footer-social-section {
  border-top: 1px solid rgba(255, 157, 0, 0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-social-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.footer-social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: all 0.2s ease;
}

.social-link-btn:hover,
.social-link-btn:focus-visible {
  background: rgba(255, 157, 0, 0.08);
  border-color: rgba(255, 157, 0, 0.4);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow);
  outline: none;
}

.social-icon {
  stroke: currentColor;
  flex-shrink: 0;
  transition: stroke 0.2s ease;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .social-link-btn {
    transition: none;
    transform: none !important;
  }
}

/* Modal Overlay & Base */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: min(680px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-icon {
  font-size: 20px;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.modal-body {
  overflow-y: auto;
  padding: 24px 28px 28px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 4px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.modal-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-updated::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.terms-section {
  margin-bottom: 28px;
}

.terms-section:last-child {
  margin-bottom: 0;
}

.terms-section h3 {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-section h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.terms-section p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
}

.terms-section p + p {
  margin-top: 10px;
}

.terms-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 157, 0, 0.05);
  border: 1px solid rgba(255, 157, 0, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.terms-highlight-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.terms-highlight p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
  background: var(--surface2);
}

.modal-footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.btn-accept {
  padding: 10px 24px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-accept:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
