* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #0b0c10;
  color: #f3f4f6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0c10;
}

::-webkit-scrollbar-thumb {
  background: #2d3343;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #434c63;
}

.btn-glossy-orange {
  background: linear-gradient(180deg, #f97316 0%, #c2410c 52%, #9a3412 100%);
  border: 1px solid #fb923c;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  transition: all 0.18s ease;
  cursor: pointer;
}

.btn-glossy-orange:hover {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 52%, #b45309 100%);
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

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

.btn-glossy-emerald {
  background: linear-gradient(180deg, #10b981 0%, #047857 52%, #064e3b 100%);
  border: 1px solid #34d399;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  transition: all 0.18s ease;
  cursor: pointer;
}

.btn-glossy-emerald:hover {
  background: linear-gradient(180deg, #34d399 0%, #059669 52%, #065f46 100%);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.btn-glossy-purple {
  background: linear-gradient(180deg, #a855f7 0%, #7e22ce 52%, #581c87 100%);
  border: 1px solid #c084fc;
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  transition: all 0.18s ease;
  cursor: pointer;
}

.btn-glossy-purple:hover {
  background: linear-gradient(180deg, #c084fc 0%, #9333ea 52%, #6b21a8 100%);
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn-glossy-gray {
  background: linear-gradient(180deg, #374151 0%, #1f2937 55%, #111827 100%);
  border: 1px solid #4b5563;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #f9fafb;
  transition: all 0.18s ease;
  cursor: pointer;
}

.btn-glossy-gray:hover {
  background: linear-gradient(180deg, #4b5563 0%, #374151 55%, #1f2937 100%);
  border-color: #6b7280;
  transform: translateY(-1px);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: #101218;
  border-bottom: 1px solid #262b38;
  padding: 0.85rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  background-color: #1f2430;
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.brand-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-pill {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #d1d5db;
  background-color: #161a24;
  border: 1px solid #2a2f3d;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
}

@media (min-width: 640px) {
  .status-pill {
    display: flex;
  }
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: #34d399;
}

.donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 8px;
}

.page-container {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
}

.main-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* Mobil sorrend: 1. Szövegmező, 2. Eredmények, 3. Banner + 5 gomb */
.col-editor {
  order: 1;
}

.col-results {
  order: 2;
}

.col-banner {
  order: 3;
}

@media (min-width: 1024px) {
  .workspace-grid {
    grid-template-columns: 260px minmax(0, 1fr) 250px;
    gap: 1.5rem;
  }

  .col-results {
    order: 1;
  }

  .col-editor {
    order: 2;
  }

  .col-banner {
    order: 3;
  }
}

.panel-card {
  background-color: #14171f;
  border: 1px solid #2a2f3d;
  border-radius: 12px;
  padding: 1rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #262b38;
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
}

.panel-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fb923c;
}

.panel-tag {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: #34d399;
}

.single-metric-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.metric-row {
  background-color: #0e1117;
  border: 1px solid #252a38;
  border-radius: 9px;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.metric-label {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

.metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f3f4f6;
}

.metric-value-lg {
  font-size: 1.25rem;
}

.text-orange {
  color: #fb923c;
}

.text-emerald {
  color: #34d399;
}

.sub-panel-box {
  margin-top: 0.75rem;
  background-color: #0e1117;
  border: 1px solid #252a38;
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.75rem;
}

.sub-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sub-label {
  color: #9ca3af;
}

.sub-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #f3f4f6;
}

.top-words-wrap {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.top-words-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #d1d5db;
  font-weight: 600;
}

.top-words-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.74rem;
}

.top-word-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0e1117;
  border: 1px solid #222736;
  border-radius: 7px;
  padding: 0.38rem 0.6rem;
}

.copy-area {
  margin-top: 0.85rem;
}

.copy-btn-full {
  width: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.62rem 1rem;
  border-radius: 8px;
}

.editor-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.editor-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #262b38;
  padding-bottom: 0.75rem;
}

.eyebrow-text {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fb923c;
}

.editor-heading {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.topbar-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn-sm {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
}

.case-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.case-btn {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.48rem 0.85rem;
  border-radius: 8px;
}

.editor-textarea {
  width: 100%;
  min-height: 360px;
  background-color: #1c202b;
  border: 1px solid #323849;
  border-radius: 10px;
  color: #f3f4f6;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0.9rem 1rem;
  resize: vertical;
  outline: none;
}

.editor-textarea:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.limit-checker-box {
  background-color: #0e1117;
  border: 1px solid #252a38;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.limit-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.limit-title {
  font-weight: 700;
  color: #f3f4f6;
}

.limit-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.limit-number-input {
  width: 92px;
  background-color: #1c202b;
  border: 1px solid #323849;
  border-radius: 7px;
  padding: 0.32rem 0.5rem;
  color: #fb923c;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  outline: none;
}

.limit-track {
  width: 100%;
  height: 10px;
  background-color: #1a1f2c;
  border: 1px solid #2a3040;
  border-radius: 999px;
  overflow: hidden;
}

.limit-bar {
  height: 100%;
  width: 0%;
  background-color: #10b981;
  transition: width 0.15s ease, background-color 0.15s ease;
}

.limit-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: #9ca3af;
}

.limit-presets {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.preset-btn {
  background-color: #1a1f2c;
  border: 1px solid #2d3548;
  color: #d1d5db;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.preset-btn:hover {
  background-color: #262e40;
  color: #ffffff;
}

.banner-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.reel-banner-link {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2d3446;
  background-color: #0e1117;
}

.reel-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.banner-action-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.58rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Felhasználási feltételek blokk */
.terms-card {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, #161a24 0%, #12151d 100%);
  border-color: #303749;
}

.terms-head {
  margin-bottom: 0.5rem;
}

.terms-title {
  margin: 0.2rem 0 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
}

.terms-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.seo-article {
  padding: 1.5rem;
}

.seo-header {
  border-bottom: 1px solid #262b38;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.seo-main-title {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.seo-lead {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.6;
}

.seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .seo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.seo-h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.seo-h4 {
  margin: 0.85rem 0 0.3rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fb923c;
}

.seo-p {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #d1d5db;
}

.app-footer {
  background-color: #0e1016;
  border-top: 1px solid #262b38;
  padding: 1.15rem 1.5rem;
  margin-top: 1.5rem;
}

.footer-inner {
  max-width: 1760px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-mini-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}

.footer-name {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-desc {
  margin: 0.1rem 0 0;
  font-size: 0.74rem;
  color: #9ca3af;
}

.footer-fingerprint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #141822;
  border: 1px solid #282e3f;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font-size: 0.76rem;
  color: #e5e7eb;
}

.fingerprint-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: #f97316;
  flex-shrink: 0;
}

.footer-meta {
  font-size: 0.76rem;
  color: #9ca3af;
}