:root {
  --bg: #edf1f4;
  --bg-soft: #f5f7f9;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;

  --text: #111111;
  --text-muted: #6b7280;

  --border: #dde3e8;
  --border-strong: #cfd7de;

  --blue: #0066ff;

  --dark: #1f1f1f;
  --dark-hover: #111111;

  --green: #0c0;
  --green-hover: #56ab00;
  --green-soft: #eef9df;

  --orange: #f90;
  --orange-soft: #fff4df;

  --red: #ee0007;
  --red-soft: #ee0007;
  --red-border: #ee0007;

  --sidebar-bg: #f2f5f7;
  --sidebar-bg-2: #e9eef2;
  --sidebar-text: #111111;
  --sidebar-muted: #5f6b76;
  --sidebar-hover: #e3e9ee;

  --shadow: 0 12px 30px rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 6px 18px rgba(17, 17, 17, 0.05);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

/**/
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
/*background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0.9) 16%, transparent 17%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0.7) 20%, transparent 21%),
    radial-gradient(circle at 18% 58%, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0.55) 24%, transparent 25%),
    linear-gradient(180deg, #eef2f5 0%, #edf1f4 100%);
  background-color: #edf1f4;
  background-repeat: no-repeat;*/

  min-height: 100vh;
  line-height: 1.5;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
select,
textarea,
button {
  font: inherit;
}

button {
  cursor: pointer;
}


.jamal-hidden {
  display: none !important;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* Icons + brand */
.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffb52e 0%, #f59e0b 100%);
  color: #111;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.24);
  flex: 0 0 44px;
  font-size: 20px;
}

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

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  line-height: 1;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.5;
}

.sidebar-nav a,
.inline-icon-title,
.widget-header-title,
.eyebrow,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid var(--border);
}

.stat-icon.blue {
  color: #0066ff;
  border-color: #0066ff;
}

.stat-icon.green {
  color: #0c0;
  border-color: #0c0;
}

.stat-icon.orange {
  color: var(--orange);
  border-color: var(--orange);
}

.stat-icon.dark {
  color: #111;
  background: #f3f5f7;
  border-color: #d8dee4;
}

.stat-icon.red {
  color: var(--red);
  border-color: var(--red-border);
}

.widget-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

.sidebar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0px;
}

.sidebar-brand-text {
  margin-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.check-row {
  display: flex !important;
  align-items: flex-start; 
  gap: 10px;
  font-weight: 600;
}

.check-row-x {
  display: flex !important;
  align-items: flex-start; 
  gap: 10px;
}

.check-row i {
  color: #0c0;
  margin-top: 0px; 
  flex-shrink: 0; 
}

.single-check {
  align-self: end;
  min-height: 52px;
}

.inline-form {
  margin: 0;
}

.code-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 12px;
}

/* Alerts */
.alert {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 20px;
  font-weight: 600;
  border: 1px solid transparent;
}

.alert-success {
   color: var(--green);
   background: white;
   border-color: var(--border);
}

.alert-error {
  background: var(--red-soft);
  color: white;
  border-color: var(--red-border);
}

/* Auth */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
}

.auth-brand {
  margin-bottom: 28px;
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
}

.auth-foot {
  text-align: center;
  margin-top: 20px;
}

.auth-link {
  color: var(--dark);
  font-weight: 700;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(221, 227, 232, 0.9);
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
  position: relative;
}

.brand,
.sidebar-brand {
  font-weight: 800;
  font-size: 28px;
  color: var(--text);
  letter-spacing: 0.1px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a:not(.btn) {
  color: #ee0007;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.top-nav a:not(.btn):hover {
  color: var(--text);
  background-color: rgba(17, 17, 17, 0.06);
}

@keyframes slideDownMenu {
  from { opacity: 0; transform: translateY(-10px) translateX(10px); }
  to { opacity: 1; transform: translateY(0) translateX(0); }
}

.mobile-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: auto;
  width: min(320px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
  z-index: 50;
}

.mobile-nav.open {
  display: grid;
  gap: 4px;
  animation: slideDownMenu 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-nav a:not(.btn) {
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: left;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.mobile-nav a:not(.btn):hover {
  background-color: rgba(17, 17, 17, 0.04);
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--dark);
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 24px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:focus {
  outline: none;
}

/* Hero */
.hero {
/*padding: 78px;*/
  background: transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  background: ;
  padding: 8px 12px;
  border: 1px solid #06f;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 18px;
  color: #06f;
  font-weight: 700;
}

.eyebrow-table {
  margin: 0;
  padding: 5px 10px;
  font-size: 12px;
}

h1,
h2,
h3 {
  margin: 0 0 34px;
  color: var(--text);
}

h1 {
  font-size: 50px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h2 {
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h3 {
  font-size: 21px;
  font-weight: 700;
}

.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 28px;
  position: relative;
  z-index: 10;
}

.hero-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .sitemap-toolbar {
    align-items: stretch;
  }

  .sitemap-actions .btn,
  .sitemap-toolbar .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 28px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Sections */
.section {
  padding: 78px 0;
  position: relative;
}

.section + .section::before {
  display: none;
}

/* Split Section & Stats Visual */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.stats-visual-container {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.stats-visual-svg {
  width: 100%;
  aspect-ratio: 500 / 180;
  position: relative;
}

.stats-visual-svg svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.stats-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.stat-curve-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-curve-val {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.stat-curve-val.primary { color: #06f; }
.stat-curve-val.dark { color: #0c0; }
.stat-curve-val.orange { color: #ee0007; }

.stat-curve-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
}

/* CTA Box */
.cta-box {
  border: 1px solid rgba(221, 227, 232, 0.95);
  background: #f3f4f6;
  color: #fff;
  border-radius: var(--radius);
  padding: 58px 32px;
  text-align: center;  
}

.cta-box h2 {
  color: #111111;
  margin-bottom: 16px;
}

.cta-box p {
  color: #6b7280;
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
}

.cta-box .btn {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
  padding: 16px 24px;
  font-size: 16px;
}

.cta-box .btn:hover {
  background: #f8fafb;
  transform: translateY(-2px);
}

/* Cards */
@keyframes appFadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

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

.card,
.panel,
.stat {
  border: 1px solid #dde3e8;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  min-width: 0;
  overflow-wrap: break-word;
  animation: appFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-title-row h3 {
  margin-bottom: 0;
}

.card-icon {
  font-size: 32px;
  line-height: 1;
  display: inline-flex;
}

.panel {
  margin-bottom: 20px;
  scroll-margin-top: 96px;
}

/* Zvýraznená karta */
.card.featured {
  border: 1px solid #3b82f6; 
  transform: scale(1.02); 
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
  z-index: 1; 
  position: relative;
}

.badge-save {
  position: absolute;
  top: -18px;
  right: 24px;
  background: var(--green);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(80, 184, 0, 0.2);
}

.card.featured .text-blue {
  color: var(--orange);
}

.card.featured .card-icon {
  transform: scale(1.1);
}

/* Buttons */
.btn {
  justify-content: center;
  border: 1px solid transparent;
  background: #0c0;
  color: #fff;
  padding: 13px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.12);
  font-weight: 700;
}


.btn:hover {
  color: var(--text);
  background-color: rgba(17, 17, 17, 0.06);
}

.btn-outline {
  background: #fff;
  color: var(--dark);
  border-color: #d4d9df;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.12);
}

.btn-outline:hover {
  color: var(--text);
  background-color: rgba(17, 17, 17, 0.06);
}

.btn-current-plan,
.btn-current-plan:disabled {
  opacity: 1;
  color: var(--green);
  background: white;
  border-color: var(--border);
}

.btn-current-plan:hover,
.btn-current-plan:disabled:hover {
  color: var(--green);
  background: white;
  border-color: var(--border);
  transform: none;
}

.btn-green {
  background: #0c0;
  border-color: transparent;
  color: #fff;
}

.btn-green:hover {
  color: var(--text);
  background-color: rgba(17, 17, 17, 0.06);
}

.btn-orange {
  background: var(--orange);
  border-color: transparent;
  color: #fff;
}

.btn-orange:hover {
  color: var(--text);
  background-color: rgba(17, 17, 17, 0.06);
}

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

.btn-danger:hover {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: white;
}

/* Úprava cien */
.pricing-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pricing-price-old {
  color: #ef4444;
  text-decoration: line-through;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Widget preview */
.hero-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  overflow: visible;
}

.preview-image {
  width: min(160%, 980px);
  max-width: none;
  height: auto;
  display: block;
  transform: translate(8%, -0px);
  pointer-events: none;
  position: relative; 
  z-index: -1;
}

.widget-preview {
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.widget-header {
  background: var(--dark);
  color: #fff;
  padding: 15px 18px;
  font-weight: 700;
}

.widget-body {
  padding: 16px;
  display: grid;
  gap: 10px;
  background: #f7f9fb;
  min-height: 220px;
}

.msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
}

.msg.bot {
  background: #fff;
  border: 1px solid var(--border);
}

.msg.user {
  background: var(--green);
  color: #fff;
  margin-left: auto;
}

.widget-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.widget-input input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.widget-input button {
  padding: 10px 14px;
  border-radius: 14px;
  border: 0;
  background: var(--dark);
  color: #fff;
}

/* App layout */
.app-body {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0.85) 16%, transparent 17%),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.6) 0, rgba(255, 255, 255, 0.6) 20%, transparent 21%),
    linear-gradient(180deg, #eef2f5 0%, #edf1f4 100%);
  background-color: #edf1f4;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: var(--sidebar-text);
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar:hover {
  scrollbar-width: thin;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0);
  border-radius: 10px;
}

.sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 17, 0.2);
}

.sidebar-brand {
  color: var(--text);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  flex: 1;
}

.sidebar-nav a {
  padding: 11px 13px;
  border-radius: 16px;
  color: var(--sidebar-muted);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-weight: 600;
}

.sidebar-nav a:hover {
  background: var(--sidebar-hover);
  color: var(--dark);
  border-color: var(--border-strong);
}

.sidebar-logout {
  margin-top: auto;
  color: var(--red) !important;
}

.app-main {
  min-width: 0;
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(237, 241, 244, 0.88);
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(12px);
}

.app-content {
  padding: 20px;
}

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

.stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 251, 0.92) 100%);
}

.stat span {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 24px;
  margin-bottom: 6px;
}

.stat strong {
  font-size: 28px;
  color: var(--text);
  font-weight: 800;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid.one {
  grid-template-columns: 1fr;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 600; 
  min-width: 0;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  font-weight: 400;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: rgba(25, 151, 183, 0.55);
  box-shadow: 0 0 0 4px rgba(25, 151, 183, 0.14);
  background: #fff;
}

.form-grid input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  width: 100%;
  height: 24px;
  cursor: pointer;
}

.form-grid input[type="range"]:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

.form-grid input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: var(--border-strong);
  border-radius: 3px;
}

.form-grid input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #0066ff;
  margin-top: -7px;
  box-shadow: 0 2px 5px rgba(0, 102, 255, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.form-grid input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.form-grid select {
  padding-right: 40px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
}

.password-strength-container {
  display: none;
  gap: 4px;
  margin-top: -2px;
}

.password-strength-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  min-height: 18px;
}

.upload-box {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-soft);
  border-radius: 18px;
  border: 1px dashed var(--border-strong);
}

.upload-form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.upload-copy {
  flex: 1;
  min-width: 220px;
}

.upload-copy p {
  margin: 4px 0 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--text);
  background: #f8fafb;
  font-weight: 700;
}

.data-table td {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.78);
}

.table-empty {
  text-align: center;
  padding: 40px !important;
}

/* Code block */
.code-block {
  background: #e9eef2;
  color: #111111;
  padding: 16px;
  border-radius: 18px;
  overflow: auto;
}

/* Helpers */
.muted {
  color: var(--text-muted);
  font-size: 14px;
}

.muted-x {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 0.6; 
}

/* UI Enhancements */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .toggle-slider {
  background-color: #0c0;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.toggle-label {
  font-weight: 600;
  color: var(--text);
}

.color-picker-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.color-inputs input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.color-presets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preset-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preset-btn.active {
  border-color: var(--dark);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--dark);
}

.helper-text {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 400;
}

.action-bar {
  background: rgba(255, 255, 255, 0.9);
  padding: 16px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

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

.footer-copy {
  margin: 0;
  font-size: 14px;
}

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

.footer-link {
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

/* Responsive */
@media (max-width: 980px) {
  .hero {
    padding: 40px 0 28px;
  }

  .section {
    padding: 30px 0 60px;
  }

  .top-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .cards.three,
  .cards.two,
  .app-shell,
  .stats-grid,
  .form-grid,
  .two-col,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 18px;
  }

  .hero-grid > div:first-child {
    order: 2;
  }

  .hero-image-container {
    order: 1;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .preview-image {
    width: 100%;
    transform: none;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: -100%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 280px;
    border-left: 0;
    border-right: 1px solid var(--border);
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    z-index: 30;
  }

  .sidebar.open {
    left: 0;
    box-shadow: 0 0 0 100vw rgba(17, 17, 17, 0.4);
  }

  .upload-form {
    flex-direction: column;
    align-items: stretch;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .data-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .action-bar .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .cta-box {
    padding: 32px 20px;
  }

  .stats-visual-container {
    padding: 20px;
  }

  .stats-visual-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .app-content {
    padding: 16px 12px;
  }

  .panel,
  .card,
  .stat {
    padding: 16px;
  }

  .footer-container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

.plan-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* --- Widget configurator --- */
.icon-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.icon-choice-btn,
.segmented-choice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.icon-choice-btn.active,
.segmented-choice-btn.active {
  border-color: #0c0;
  background: #0c0;
  color: #FFFFFF;
}

.segmented-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}


/* App widgets and preview moved from app.php */
.bot-slots-panel { margin-top: 24px; }
.bot-slots-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.bot-slots-grid { display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:16px; }
.bot-slot-card,
.bot-slot-create-btn {
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:space-between;
  min-height:108px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid var(--border);
  background:#fff;
  text-decoration:none;
  color:inherit;
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.bot-slot-card:hover,
.bot-slot-card:focus-within,
.bot-slot-create-btn:hover,
.bot-slot-create-btn:focus-visible {
  border-color:#16a34a;
  box-shadow:0 0 0 3px rgba(22,163,74,.12);
  transform:translateY(-1px);
  outline:none;
}
.bot-slot-card.is-active {
  border-color:#16a34a;
  background:rgba(22,163,74,.08);
  box-shadow:0 0 0 3px rgba(22,163,74,.08);
}
.bot-slot-card.is-empty,
.bot-slot-create-btn { background:#f8fafc; }
.bot-slot-eyebrow { font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#8a94a6; margin-bottom:8px; }
.bot-slot-title { font-size:15px; font-weight:800; line-height:1.25; color:#0f172a; word-break:break-word; }
.bot-slot-meta { margin-top:6px; font-size:13px; color:#64748b; line-height:1.35; word-break:break-word; }
.bot-slot-create-form,
.bot-slot-open-form { margin:0; }
.bot-slot-open-btn { width:100%; display:flex; flex-direction:column; align-items:flex-start; gap:0; padding:0; border:0; background:transparent; color:inherit; text-align:left; cursor:pointer; }
.bot-slot-delete-form { margin-top:12px; }
.bot-slot-delete-btn { display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding:0 12px; border-radius:999px; border:1px solid #fecaca; background:white; color:#b91c1c; font-size:12px; font-weight:700; cursor:pointer; }
.bot-slot-delete-btn:hover,
.bot-slot-delete-btn:focus-visible { outline:none; border-color:#ef4444; box-shadow:0 0 0 3px rgba(239,68,68,.12); }

.widget-preview-sticky {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  z-index: 10;
}

.widget-preview.admin-preview {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget-preview-meta { display: grid; gap: 4px; }

.preview-mode-switch {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-mode-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.preview-mode-btn:hover { border-color: var(--border-strong); color: var(--text); }
.preview-mode-btn.active { background: #111111; border-color: #111111; color: #ffffff; }
.preview-mode-btn:active { transform: scale(0.98); }

.widget-preview-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 420px;
  padding: 18px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  border-radius: 22px;
  border: 1px dashed var(--border-strong);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0.7) 28%, transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
}

.widget-preview-fit {
  flex: 0 0 auto;
  transform-origin: top center;
  will-change: transform;
}

.preview-tooltip {
  position: absolute;
  bottom: calc(60px + var(--preview-margin-y, 20px) + 10px);
  background: #ffffff;
  color: #111827;
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 10;
  max-width: min(260px, calc(100vw - 64px));
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
#widgetPreviewStage[data-position="right"] .preview-tooltip { right: var(--preview-margin-x, 20px); left: auto; }
#widgetPreviewStage[data-position="left"] .preview-tooltip { left: var(--preview-margin-x, 20px); right: auto; }

.widget-preview-scene {
  position: relative;
  width: 404px;
  max-width: 404px;
  min-height: 384px;
  padding-bottom: var(--preview-margin-y, 20px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  --preview-radius: 16px;
  --preview-margin-x: 20px;
  --preview-margin-y: 20px;
  --preview-primary: #1f1f1f;
  --preview-text: #ffffff;
}
#widgetPreviewStage[data-position="right"] .widget-preview-scene { padding-right: var(--preview-margin-x, 20px); align-items: flex-end; }
#widgetPreviewStage[data-position="left"] .widget-preview-scene { padding-left: var(--preview-margin-x, 20px); align-items: flex-start; }

.widget-preview-window {
  width: 360px;
  max-width: 360px;
  background: #ffffff;
  border-radius: var(--preview-radius, 16px);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.widget-preview-stage[data-preview-mode="closed"] .widget-preview-window {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
}
.widget-preview-stage[data-position="left"] .widget-preview-window { margin-right: auto; }
.widget-preview-stage[data-position="right"] .widget-preview-window { margin-left: auto; }

#widgetPreviewStage .widget-header {
  padding: 18px 20px;
  color: var(--preview-text, #ffffff);
  background: var(--preview-primary, #1f1f1f);
  border-top-left-radius: var(--preview-radius, 16px);
  border-top-right-radius: var(--preview-radius, 16px);
}
#widgetPreviewStage .widget-body {
  min-height: 0px;
  padding: 18px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}
#widgetPreviewStage .widget-body .msg {
  max-width: 86%;
  background: #f3f4f6;
  color: #111827;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 10px 0;
  border-radius: var(--preview-radius, 16px);
  box-shadow: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}
#widgetPreviewStage .widget-body .msg.bot { align-self: flex-start; border-bottom-left-radius: 4px; }
#widgetPreviewStage .widget-body .msg.user { align-self: flex-end; border-bottom-right-radius: 4px; }

.preview-header-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.preview-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ffffff;
}
.preview-header-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  font-size: 16px;
}
.preview-header-text { display: flex; flex-direction: column; min-width: 0; }
.preview-header-title { font-weight: 600; font-size: 16px; line-height: 1.2; }
.preview-header-subtitle { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.preview-header-shell { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preview-header-actions { display: flex; align-items: center; gap: 2px; margin-right: -6px; }
.preview-header-btn {
  background: rgba(255, 255, 255, 0);
  border: none;
  color: inherit;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.preview-message-meta { margin: 0 0 6px 12px; color: #9ca3af; font-size: 12px; line-height: 1; }
.preview-message-actions { display: flex; align-items: center; gap: 10px; color: #9ca3af; margin: 0 0 16px 0; }
.preview-agent-mini,
.preview-mini-avatar {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #9ca3af;
  background: #ffffff;
}
.preview-agent-mini-badge { background: rgba(255,255,255,0.16); color: currentColor; }
.preview-message-action { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
.preview-scroll-btn {
  margin: auto auto 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #6b7280;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.preview-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; overflow: hidden; border-top: 1px solid rgba(0, 0, 0, 0.04); background: #ffffff; width: 100%; }
.preview-quick-reply { display: inline-flex; align-items: center; gap: 6px; width: auto; max-width: 100%; background: #f3f4f6; border: 1px solid transparent; color: var(--preview-primary, #1f2937); padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; line-height: 1.4; white-space: normal; word-break: break-word; overflow-wrap: anywhere; text-align: left; }
.preview-quick-reply i { opacity: 0.8; font-size: 13px; line-height: 1; }
.preview-input-area { padding: 14px 18px; background-color: var(--preview-primary, #1f1f1f); border-top: 1px solid rgba(0, 0, 0, 0.06); }
.preview-input-form { display: flex; gap: 10px; margin: 0; padding: 0; align-items: center; }
.preview-attach-btn { background: transparent; border: none; color: var(--preview-text, #ffffff); padding: 8px; margin-left: -4px; border-radius: 50%; opacity: 0.8; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.preview-input-shell { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.preview-chat-input { flex: 1 1 auto; width: 100%; min-width: 0; padding: 12px 76px 12px 18px; border: none; background-color: #ffffff; border-radius: 24px; outline: none; font-size: 14px; font-family: inherit; color: #111827; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) inset; }
.preview-chat-input::placeholder { color: #9ca3af; }
.preview-input-tools { position: absolute; right: 6px; display: flex; align-items: center; gap: 2px; }
.preview-tool-btn { background: transparent; border: none; color: #9ca3af; width: 30px; height: 30px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.preview-send-btn { width: 42px; height: 42px; border-radius: 50%; border: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); background: var(--preview-text, #ffffff); color: var(--preview-primary, #1f1f1f); }
.preview-footer { text-align: center; font-size: 11px; color: color-mix(in srgb, var(--preview-text, #ffffff) 82%, transparent); padding: 8px 0 10px 0; background-color: var(--preview-primary, #1f1f1f); border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom-left-radius: var(--preview-radius, 16px); border-bottom-right-radius: var(--preview-radius, 16px); }
.preview-footer strong { color: var(--preview-text, #ffffff); font-weight: 600; }
.widget-launcher-preview { width: 60px; height: 60px; min-width: 60px; min-height: 60px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.15), 0 4px 10px -4px rgba(0, 0, 0, 0.1); padding: 0; margin-top: 18px; position: relative; z-index: 2; flex-shrink: 0; transition: transform 0.25s ease, box-shadow 0.25s ease; background: var(--preview-primary, #1f1f1f); color: var(--preview-text, #ffffff); }
.widget-launcher-preview:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 18px 34px rgba(17, 17, 17, 0.2); }
#widgetPreviewStage[data-position="right"] .widget-launcher-preview { margin-left: auto; margin-right: 0; }
#widgetPreviewStage[data-position="left"] .widget-launcher-preview { margin-left: 0; margin-right: auto; }
.preview-launcher-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.preview-launcher-close { display: inline-flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; }
.preview-launcher-icon { display: none; font-size: 24px; line-height: 1; }
.preview-launcher-icon.active { display: inline-flex; }
.widget-preview-stage[data-preview-mode="open"] .preview-tooltip { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); }

.ticket-item { border-left: 4px solid var(--border); }
.ticket-item-closed { border-left-color: #64748b; }
.ticket-item-update { border-left-color: #16a34a; }
.ticket-item-await-admin { border-left-color: #f59e0b; }
.ticket-item-default { border-left-color: var(--border); }
.ticket-summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  background: rgba(15,23,42,.03);
  border-radius: 16px;
}
.ticket-summary-update { background: rgba(22,163,74,.08); }
.ticket-summary-layout { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.ticket-summary-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.admin-pill-wait-admin { background: rgba(245,158,11,.15); color:#92400e; }
.admin-pill-wait-user { background: rgba(22,163,74,.15); color:#166534; }
.ticket-message-list { padding: 18px 20px 20px; display:grid; gap:12px; }
.ticket-message-shell { max-width: 840px; }
.ticket-message-shell.is-admin { margin-left: auto; }
.ticket-message-meta { font-size:12px; font-weight:700; color:#64748b; margin-bottom:4px; text-align:left; }
.ticket-message-meta.is-admin { text-align:right; }
.ticket-message-bubble { padding:12px 14px; border-radius:14px; white-space:pre-wrap; line-height:1.55; background: rgba(15,23,42,.05); }
.ticket-message-bubble.is-admin { background: rgba(22,163,74,.12); }

@media (max-width: 1100px) { .bot-slots-grid { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width: 980px) {
  .icon-choice-grid,
  .segmented-choice { grid-template-columns: 1fr 1fr; }
  .widget-preview-stage { min-height: 0px; }
}
@media (max-width: 640px) {
  .bot-slots-grid { grid-template-columns:1fr; }
  .icon-choice-grid,
  .segmented-choice { grid-template-columns: 1fr; }
  .widget-preview-stage { min-height: 360px; padding: 14px; }
  .widget-preview-window { width: calc(100% - 8px); }
}


/* Flash Toast Notifications */
#flash-message-container {
  position: fixed;
  bottom: 150px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

#flash-message-container .alert {
  margin: 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  animation: slideInUp 0.3s ease forwards;
  pointer-events: auto;
  min-width: 300px;
}

@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.alert-hiding {
  animation: fadeOutRight 0.3s ease forwards !important;
}

/* Auth legal consents */
.consent-box-auth {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(245, 247, 249, 0.92);
}

.consent-check-row {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}

.consent-check-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  inset: 0 auto auto 0;
  width: 20px;
  height: 20px;
  margin: 0;
}

.consent-checkmark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(17, 17, 17, 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  margin-top: 1px;
}

.consent-check-row input[type="checkbox"]:checked + .consent-checkmark {
  background: #1997b7;
  border-color: #1997b7;
}

.consent-check-row input[type="checkbox"]:checked + .consent-checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-text {
  min-width: 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

.consent-text a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

/* Auth reCAPTCHA */
.auth-recaptcha-wrap {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.recaptcha-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.form-note-error {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--red-border);
  background: var(--red-soft);
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 46px !important;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  transition: color 0.2s ease;
}

/* Conversation groups */
.conversation-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.conversation-session-divider {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 4px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f9dfdf;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.conversation-bubble-row {
  display: flex;
}

.conversation-bubble-row.is-user {
  justify-content: flex-end;
}

.conversation-bubble-row.is-bot {
  justify-content: flex-start;
}

.conversation-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  position: relative;
}

.conversation-bubble-row.is-user .conversation-bubble {
  background: #eef9df;
  border-bottom-right-radius: 4px;
}

.conversation-bubble-row.is-bot .conversation-bubble {
  background: #f0f4f8;
  border-bottom-left-radius: 4px;
}

.conversation-bubble-text {
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

.conversation-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.conversation-status-badge.is-unread {
  color: #ee0007;
  background: white;
  border: 1px solid #ee0007;
}

.nav-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 2px 7px;
  min-height: 20px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid transparent;
}

.nav-plan-badge-pro {
  color: #3f6212;
  background: #eef9df;
  border-color: #b8e07a;
}

.nav-plan-badge-biz {
  color: #c2410c;
  background: #fff4df;
  border-color: #fed7aa;
}

.feature-locked-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,251,0.92) 100%);
}

.feature-locked-box-pro {
  border-color: #b8e07a;
  background: linear-gradient(180deg, #f8fdea 0%, #f2fae5 100%);
}

.feature-locked-box-biz {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff8ef 0%, #fff4df 100%);
}

.feature-locked-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(17, 17, 17, 0.06);
  color: var(--dark);
  flex: 0 0 44px;
}

.feature-locked-box .btn {
  margin-left: auto;
  white-space: nowrap;
}

.panel-plan-locked {
  position: relative;
}

.panel-plan-locked-pro {
  background: linear-gradient(180deg, rgba(248, 253, 234, 0.45) 0%, rgba(255, 255, 255, 0.86) 100%);
}

.panel-plan-locked-biz {
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.55) 0%, rgba(255, 255, 255, 0.86) 100%);
}

/* Lead unread + detail */
.lead-row-unread td {
  background: white;
}

.lead-status-badge,
.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-status-badge.is-unread,
.unread-badge {
  color: #ee0007;
  background: white;
  border: 1px solid #ee0007;
}

.lead-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.lead-detail-card {
  padding: 12px 14px;
  background: #f7f9fb;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.lead-detail-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.lead-detail-message {
  padding: 14px 16px;
  background: #f7f9fb;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.page-header-chatbot-bg {
  background:
    linear-gradient(
      180deg,
      rgba(237, 241, 244, 0.90) 0%,
      rgba(245, 248, 251, 0.88) 100%
    ),
    url("../images/jamal-chatbot.jpg") center 17% / cover no-repeat !important;
}

.icon-orange { color: var(--orange); }
.icon-blue { color: var(--blue); }
.icon-green { color: var(--green); }

.check-list-group {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.text-blue {
  color: var(--green);
}

.stats-cards-grid {
  display: grid;
  gap: 16px;
}

.card-padded { padding: 18px; }
.card-padded-lg { padding: 22px; }

.mt-14px { margin-top: 14px; }
.mb-22px { margin-bottom: 22px; }

.col-span-full { grid-column: 1 / -1; }

.grid-gap-20 {
  display: grid;
  gap: 20px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 26px 24px;
}

.pricing-price {
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0 6px;
}

.pricing-note {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.pricing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 18px;
}

.pricing-stat {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  padding: 12px;
  text-align: center;
}

.pricing-stat strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 800;
}

.pricing-feature-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.cards.three {
  align-items: stretch;
}

.pricing-card .card-title-row {
  margin-bottom: 18px;
}

.pricing-price-wrapper {
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.pricing-note {
  margin-bottom: 22px;
  line-height: 1.55;
}

.pricing-stats {
  gap: 12px;
  margin: 10px 0 24px;
}

.pricing-stat {
  padding: 14px 12px;
}

.pricing-feature-list {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  flex: 1 1 auto;
}

.pricing-feature-list .check-row {
  gap: 12px;
  line-height: 1.5;
}

.pricing-feature-list .check-row span {
  display: block;
}

.pricing-card .form-actions {
  margin-top: auto;
  padding-top: 28px;
}

.pricing-card .form-actions .btn,
.pricing-card .form-actions .btn-outline {
  min-height: 48px;
  padding: 13px 20px;
}

@media (max-width: 980px) {
  .pricing-card {
    padding: 24px 22px 22px;
  }

  .pricing-card .form-actions {
    padding-top: 24px;
  }
}

@media (max-width: 640px) {
  .pricing-card {
    padding: 22px 18px 20px;
  }

  .pricing-stats {
    gap: 10px;
    margin: 10px 0 20px;
  }

  .pricing-feature-list {
    gap: 11px;
  }

  .pricing-card .form-actions {
    padding-top: 22px;
  }

  .pricing-card .form-actions .btn,
  .pricing-card .form-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.accordion-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.accordion-title-wrap h3 {
  margin: 0;
  font-size: 18px;
}

.accordion-icon {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.accordion-item.active .accordion-content {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
}

.accordion-inner p {
  margin: 0;
  padding: 0 22px 22px 70px; 
  color: var(--text-muted);
  line-height: 1.6;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;           
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}

.plan-badge.pro {
  color: var(--orange);
  background: white;
}

.plan-badge.biz {
  color: var(--red);
  background: white;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

.grid-container {
   display: grid;
   gap: 14px;
   margin-top: 28px;
}

.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- Vylepšený graf a animácie --- */
.stats-visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.stats-visual-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-visual-legend {
  display: flex;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
  margin-top: 4px; /* tu si nastavíš posun dole */
}

.legend-dot.blue {
  background: var(--blue);
  box-shadow: 0 0 8px rgba(0, 102, 255, 0.4);
}

.legend-dot.red {
  background: var(--red);
  box-shadow: 0 0 8px rgba(238, 0, 7, 0.4);
}

.stats-visual-grid {
  border-top: none;
  padding-top: 0;
}

.stat-curve-item {
  justify-content: center;
  background: var(--surface-soft);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.stat-curve-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  background: #ffffff;
  border-color: var(--border-strong);
}

.animate-chart-svg .svg-anim-area,
.animate-chart-svg .svg-anim-line-primary,
.animate-chart-svg .svg-anim-line-secondary {
  clip-path: inset(-50% 100% -50% -50%);
  transition: clip-path 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-chart-svg .svg-anim-line-primary,
.animate-chart-svg .svg-anim-area {
  transition-delay: 0.2s;
}

.animate-chart-svg .svg-anim-line-secondary {
  transition-delay: 0.5s;
}

.animate-chart-svg .svg-anim-point {
  opacity: 0;
  transform: scale(0.5);
  transform-origin: center;
  transform-box: fill-box;
  transition-property: opacity, transform;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.is-visible .animate-chart-svg .svg-anim-area,
.is-visible .animate-chart-svg .svg-anim-line-primary,
.is-visible .animate-chart-svg .svg-anim-line-secondary {
  clip-path: inset(-50% -50% -50% -50%);
}

.is-visible .animate-chart-svg .svg-anim-point {
  opacity: 1;
  transform: scale(1);
}

.section.section-alt-x {
  background: transparent;
  background-image: radial-gradient(circle at 100% 0%, rgba(238, 0, 7, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 0% 100%, rgba(238, 0, 7, 0.05) 0%, transparent 50%);
}

.section.section-alt-y {
  background: transparent;
  background-image: radial-gradient(circle at 100% 0%, rgba(0, 102, 255, 0.08) 0%, transparent 50%), 
                    radial-gradient(circle at 0% 100%, rgba(0, 102, 255, 0.08) 0%, transparent 50%);
}

.section.section-alt-z {
  background: transparent;
  background-image: radial-gradient(circle at 100% 0%, rgba(0, 204, 0, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 0% 100%, rgba(0, 204, 0, 0.05) 0%, transparent 50%);
}

.sources-section {
  margin-top: 28px;
}

.sources-section-head {
  margin-bottom: 14px;
}

.sources-section-head h3 {
  margin: 0 0 6px;
}

.sources-section-sitemaps {
  margin-top: 26px;
}

.sitemap-list {
  display: grid;
  gap: 16px;
}

.sitemap-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
}

.sitemap-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #f8fafb;
}

.sitemap-summary::-webkit-details-marker {
  display: none;
}

.sitemap-summary-main {
  min-width: 0;
  flex: 1;
}

.sitemap-url {
  margin-top: 4px;
  color: var(--text-muted);
  word-break: break-word;
}

.sitemap-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.sitemap-summary-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  flex: 0 0 32px;
  transition: transform 0.2s ease;
}

.sitemap-card[open] .sitemap-summary-toggle {
  transform: rotate(180deg);
}

.sitemap-body {
  padding: 18px 20px 20px;
  display: grid;
  gap: 16px;
}

.sitemap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sitemap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sitemap-check-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.sitemap-pages-form {
  display: grid;
  gap: 10px;
}

.table-wrap {
  overflow-x: auto;
}

.sitemap-pages-table {
  min-width: 980px;
}

.checkbox-col {
  width: 44px;
}

.sitemap-page-url-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sitemap-page-url {
  color: var(--blue);
  word-break: break-word;
}

.sitemap-page-title {
  color: var(--text);
  font-weight: 600;
}

.sitemap-page-error {
  margin-top: 4px;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.45;
}

.sitemap-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.sitemap-mini-badge.is-pdf {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff5f5;
}

.sitemap-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.sitemap-status-active,
.sitemap-status-success {
  color: #166534;
  background: #eef9df;
  border-color: #b7e0a5;
}

.sitemap-status-excluded {
  color: #92400e;
  background: #fff4df;
  border-color: #f6c981;
}

.sitemap-status-error {
  color: #b91c1c;
  background: #fff5f5;
  border-color: #fecaca;
}


/* Extracted inline styles from app.php */
.app-inline-001 { justify-content: space-between; }
.app-inline-002 { display: flex; align-items: center; gap: 10px; }
.app-inline-003 { background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; line-height: 1.2; }
.app-inline-004 { margin:0; }
.app-inline-005 { align-self: end; margin-bottom: 2px; }
.app-inline-006 { background: #1f1f1f; }
.app-inline-007 { background: #2563eb; }
.app-inline-008 { background: #16a34a; }
.app-inline-009 { background: #dc2626; }
.app-inline-010 { background: #f59e0b; }
.app-inline-011 { background: #8b5cf6; }
.app-inline-012 { background: #ec4899; }
.app-inline-013 { background: #ffffff; border-color: #d1d5db; }
.app-inline-014 { background: #f3f4f6; border-color: #d1d5db; }
.app-inline-015 { background: #111827; }
.app-inline-016 { background: #fde68a; }
.app-inline-017 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.app-inline-018 { font-variant-numeric: tabular-nums; font-weight: 600; width: 30px; }
.app-inline-019 { margin-top: 16px; }
.app-inline-020 { grid-column: 1 / -1; }
.app-inline-021 { flex: 1; min-width: 260px; }
.app-inline-022 { font-weight: normal; margin-top: 4px; }
.app-inline-023 { display: flex; gap: 16px; align-items: center; width: 100%; flex-wrap: wrap; }
.app-inline-024 { margin-left: 10px; }
.app-inline-025 { text-align: right; }
.app-inline-026 { white-space: nowrap; }
.app-inline-027 { color: var(--text); }
.app-inline-028 { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.app-inline-029 { background: #f8fafb; padding: 20px; border-bottom: 2px solid var(--border); }
.app-inline-030 { margin: 0; text-align: center; }
.app-inline-031 { margin-top: 8px; font-size: 13px; color: #6b7280; }
.app-inline-032 { color: #16a34a; }
.app-inline-033 { color: #dc2626; }
.app-inline-034 { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.app-inline-035 { margin-top: 6px; }
.app-inline-036 { margin-left: 8px; }
.app-inline-037 { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.app-inline-038 { background: #f8fafb; padding: 18px 20px; border-bottom: 2px solid var(--border); }
.app-inline-039 { margin: 0; }
.app-inline-040 { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; flex-wrap:wrap; }
.app-inline-041 { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.app-inline-042 { padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.app-inline-043 { font-size: 12px; margin-bottom: 6px; }
.app-inline-044 { line-height: 1.5; color: var(--dark); }
.app-inline-045 { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.app-inline-046 { font-size: 12px; margin-bottom: 8px; }
.app-inline-047 { white-space: pre-wrap; line-height: 1.6; color: var(--dark); }
.app-inline-048 { cursor: pointer; font-weight: 700; color: var(--dark); }
.app-inline-049 { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.app-inline-050 { white-space: pre-wrap; line-height: 1.5; color: var(--dark); word-break: break-word; }
.app-inline-051 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.app-inline-052 { display: block; margin-bottom: 2px; }
.app-inline-053 { font-weight: normal; }
.app-inline-054 { margin-top: 10px; }
.app-inline-055 { margin-top: 24px; }
.app-inline-056 { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.app-inline-057 { grid-column: 1 / -1; margin-top: 10px; }
.app-inline-058 { margin: 32px 0 24px; border: 0; border-top: 1px solid var(--border); }
.app-inline-059 { justify-self: start; margin-top: 8px; }
.app-inline-060 { margin-bottom: 20px; }
.app-inline-061 { display: grid; gap: 16px; }
.app-inline-062 { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.app-inline-063 { margin-top:6px; }
.app-inline-064 { margin-top: 4px; }
.app-inline-065 { position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.8);z-index:99999;display:flex;align-items:center;justify-content:center; }
.app-inline-066 { background:#fff;padding:30px;border-radius:16px;width:400px;text-align:center; }
.app-inline-067 { background:#eee;border-radius:8px;height:20px;overflow:hidden;margin:20px 0; }
.app-inline-068 { background:#0c0;width:0%;height:100%;transition:width 0.3s; }
.app-inline-069 { font-weight: bold; color: var(--dark); }


.brand-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.toggle-row-end { align-self: end; margin-bottom: 2px; }
.form-mt-16 { margin-top: 16px; }
.form-top-dashed { border-top: 1px dashed var(--border-strong); padding-top: 16px; }
.conversation-detail-row-hidden { display: none; }
.conversation-image-link {
  display: block;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  overflow: hidden;
  background: #fff;
}
.conversation-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.plan-alert-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  padding: 4px 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.plan-alert-close-btn:hover { opacity: 1; }

.sitemap-pages-table td .inline-form + .inline-form {
  margin-top: 12px;
}

.comparison-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.comparison-status i {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.comparison-status-yes {
  color: #0c0;
}

.comparison-status-no {
  color: #ee0007;
}

.admin-showcase-section {
  padding: 78px 0;
}

.admin-showcase-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 249, 251, 0.94) 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.admin-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 0;
  align-items: stretch;
}

.admin-showcase-media {
  position: relative;
  min-width: 0;
  background: linear-gradient(180deg, #f1f5f8 0%, #e9eef2 100%);
  border-right: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin-showcase-image {
  display: block;
  width: 95%;
  height: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 62%, transparent 100%);
}

.admin-showcase-content {
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.admin-showcase-eyebrow {
  margin-bottom: 16px;
  width: fit-content;
}

.admin-showcase-content h2 {
  margin-bottom: 18px;
}

.admin-showcase-content .lead {
  margin-bottom: 24px;
  max-width: 100%;
}

.admin-showcase-points {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.admin-showcase-point {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-showcase-point-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #0066ff;
  border: 1px solid rgba(0, 102, 255, 0.22);
  background: rgba(0, 102, 255, 0.06);
}

.admin-showcase-point strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  color: var(--text);
}

.admin-showcase-point p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.admin-showcase-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .admin-showcase-grid {
    grid-template-columns: 1fr;
  }

  .admin-showcase-media {
    border-bottom: 1px solid var(--border);
  }

  .admin-showcase-image {
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 62%, transparent 100%);
   mask-image: linear-gradient(to right, #000 0%, #000 62%, transparent 100%);
  }

  .admin-showcase-content {
    padding: 24px 20px;
  }

  .admin-showcase-actions {
    flex-direction: column;
  }

  .admin-showcase-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .admin-showcase-point {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 12px 14px;
  }

  .admin-showcase-point-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
    border-radius: 12px;
  }
}

/* Homepage benefits banner */
.benefits-banner-section {
  padding: 28px 0 14px;
}

.benefits-banner {
  position: relative;
  overflow: hidden;
  padding: 42px 44px 38px;
}

.benefits-banner::before,
.benefits-banner::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.benefits-banner::before {
  top: -78px;
  right: -88px;
  width: 220px;
  height: 220px;
}

.benefits-banner::after {
  left: -70px;
  bottom: -84px;
  width: 220px;
  height: 220px;  
}

.benefits-banner-head {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-bottom: 30px;
}

.benefits-banner-head h2 {
  margin: 0 0 34px;
  max-width: 940px;
}

.benefits-banner-head .lead {
  margin: 0;
  max-width: 820px;
}

.benefits-banner-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 18px;
}

.benefits-banner-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.benefits-banner-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0c0;
  font-size: 34px;
  line-height: 1;
  flex: 0 0 34px;
  margin-top: -1px;
}

.benefits-banner-item span:last-child {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .benefits-banner-section {
    padding: 18px 0 8px;
  }

  .benefits-banner {
    padding: 32px 26px 28px;
    border-radius: 26px;
  }

  .benefits-banner-list {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 16px;
  }
}

@media (max-width: 640px) {
  .benefits-banner {
    padding: 26px 18px 22px;
    border-radius: 22px;
  }

  .benefits-banner-head {
    margin-bottom: 22px;
  }

  .benefits-banner-check {
    font-size: 30px;
    flex-basis: 30px;
  }

  .benefits-banner-item {
    gap: 12px;
  }

  .benefits-banner-item span:last-child {
    font-size: 15px;
    line-height: 1.5;
  }
}
