:root {
  --accent: #ea445c;
  --accent-soft: #fdecef;
  --text: #171717;
  --muted: #6d727f;
  --border: #e6e7eb;
  --input-border: #d3d4d7;
  --bg: #ffffff;
  --card: #ffffff;
  --shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.6;
}

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

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: clamp(5cm, 14vw, 8cm) minmax(0, 1fr) minmax(320px, 32vw);
  gap: 16px;
  padding: 0 14px;
  margin-top: 24px;
}

.marketing-shell {
  --color-bg: #15173d;
  --color-bg-2: #101230;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-2: rgba(255, 255, 255, 0.08);
  --color-surface-3: rgba(255, 255, 255, 0.12);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-strong: rgba(255, 255, 255, 0.2);
  --color-text: rgba(255, 255, 255, 0.94);
  --color-muted: rgba(255, 255, 255, 0.68);
  --color-muted-2: rgba(255, 255, 255, 0.5);
  --color-primary: #982598;
  --color-accent: #982598;
  --color-warm: #f3b461;
  --color-success: #41d58a;
  --color-danger: #ff6b6b;
  --gradient-primary: linear-gradient(135deg, #982598 0%, #15173d 100%);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.42);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 44px;
  --text-5xl: 56px;
  --container: 1200px;
  --nav-offset: 88px;
  --transition: 200ms ease;
  --font-body: "Tajawal", "Changa", "Cairo", sans-serif;
  --font-display: "Changa", "Tajawal", "Cairo", sans-serif;
  font-family: var(--font-body);
  color: var(--color-text);
}

.marketing-shell a {
  color: inherit;
  text-decoration: none;
}

.designer.designer-locked .page-title {
  display: none;
}

.designer.designer-locked .layout {
  display: none !important;
}

.marketing-shell .container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.marketing-shell .navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.marketing-shell .navbar.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.marketing-shell .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

.marketing-shell .brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
}

.marketing-shell .brand-text {
  font-size: 1.8rem;
  letter-spacing: 0.4px;
  order: 2;
}

.marketing-shell .brand-tag {
  font-size: var(--text-xs);
  color: var(--color-muted);
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  order: 1;
}

.marketing-shell .nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-weight: 600;
  flex-wrap: wrap;
}

.marketing-shell .nav-links a,
.marketing-shell .dropdown-toggle {
  color: var(--color-muted);
  transition: color var(--transition), background var(--transition), transform var(--transition), border-color var(--transition);
  padding: 8px 12px;
  border-radius: 12px;
}

.marketing-shell .nav-links a:hover,
.marketing-shell .dropdown-toggle:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.marketing-shell .nav-links a.active,
.marketing-shell .dropdown-toggle.active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.marketing-shell .dropdown {
  position: relative;
}

.marketing-shell .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

.marketing-shell .dropdown-toggle .chevron {
  font-size: 0.85rem;
  transition: transform var(--transition);
}

.marketing-shell .dropdown.open .chevron {
  transform: rotate(180deg);
}

.marketing-shell .dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 220px;
  background: rgba(12, 16, 28, 0.96);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: var(--space-2);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 40;
}

.marketing-shell .dropdown-menu a {
  padding: var(--space-2) var(--space-3);
  border-radius: 10px;
  display: block;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
}

.marketing-shell .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.marketing-shell .dropdown-menu a.active {
  background: rgba(152, 37, 152, 0.12);
  border-color: rgba(152, 37, 152, 0.5);
}

.marketing-shell .dropdown.open .dropdown-menu {
  display: grid;
  gap: var(--space-1);
}

.marketing-shell .nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.marketing-shell .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
}

.marketing-shell .menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  display: block;
  transition: transform var(--transition);
}

.marketing-shell .menu-toggle span::before,
.marketing-shell .menu-toggle span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  left: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.marketing-shell .menu-toggle span::before {
  top: -6px;
}

.marketing-shell .menu-toggle span::after {
  top: 6px;
}

.marketing-shell .menu-toggle[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.marketing-shell .menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(90deg);
}

.marketing-shell .menu-toggle[aria-expanded="true"] span::after {
  opacity: 0;
}

.marketing-shell .mobile-menu {
  display: none;
  background: rgba(12, 16, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
}

.marketing-shell .mobile-menu.open {
  display: grid;
  gap: var(--space-4);
}

.marketing-shell .mobile-menu a {
  color: var(--color-muted);
}

.marketing-shell .mobile-menu a.active {
  color: var(--color-text);
}

.marketing-shell .mobile-menu .nav-actions {
  display: grid;
  gap: var(--space-3);
}

.marketing-shell .mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  color: var(--color-muted);
  font-weight: 600;
  background: transparent;
  border: none;
}

.marketing-shell .mobile-dropdown-toggle .chevron {
  font-size: 0.85rem;
  transition: transform var(--transition);
}

.marketing-shell .mobile-dropdown-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.marketing-shell .mobile-dropdown-list {
  display: none;
  padding-right: var(--space-4);
  gap: var(--space-2);
}

.marketing-shell .mobile-dropdown-list.open {
  display: grid;
}

.marketing-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--text-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  user-select: none;
}

.marketing-shell .btn:active {
  transform: scale(0.98);
}

.marketing-shell .btn:disabled,
.marketing-shell .btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.marketing-shell .btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.marketing-shell .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.marketing-shell .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--color-text);
}

.marketing-shell .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.marketing-shell .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.marketing-shell .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.marketing-shell .section {
  padding: var(--space-12) 0;
}

.marketing-shell .hero-shell {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(152, 37, 152, 0.35), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(21, 23, 61, 0.35), transparent 60%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-2) 45%, var(--color-bg) 100%);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.marketing-shell .hero {
  position: relative;
  padding-top: 80px;
  color: inherit;
  overflow: hidden;
  font-family: var(--font-body);
  background: transparent;
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.marketing-shell .hero .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-9);
  align-items: center;
  position: relative;
  z-index: 2;
}

.marketing-shell .hero-shell .bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.marketing-shell .bg__grid {
  position: absolute;
  inset: -2px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.2;
  mask-image: radial-gradient(700px 500px at 50% 10%, rgba(0, 0, 0, 0.9), transparent 60%);
}

.marketing-shell .bg__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.2;
}

.marketing-shell .bg__glow--1 {
  right: -160px;
  top: 120px;
  background: rgba(152, 37, 152, 1);
}

.marketing-shell .bg__glow--2 {
  left: -200px;
  top: 420px;
  background: rgba(21, 23, 61, 1);
}

.marketing-shell .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: var(--space-4);
}


.marketing-shell .hero-tagline {
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.marketing-shell .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.2;
  margin-bottom: var(--space-4);
  font-weight: 800;
}

.marketing-shell .hero-desc {
  color: var(--color-muted);
  margin-bottom: var(--space-6);
  font-size: var(--text-md);
}


.marketing-shell .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}


.marketing-shell .hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.marketing-shell .hero-point {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-3);
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.marketing-shell .hero-visual {
  display: grid;
  gap: var(--space-4);
}

.marketing-shell .visual-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.marketing-shell .visual-card h4 {
  margin-bottom: var(--space-2);
  font-weight: 700;
}


.marketing-shell .section-subtitle {
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.marketing-shell .visual-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-muted);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-toggle {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

.content {
  padding: 26px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.topbar {
  width: min(1097px, calc(100% - 50px));
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
}

.page-title strong {
  color: var(--accent);
  font-weight: 700;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f6f6f8;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: #374151;
}

.save-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.history-actions {
  display: inline-flex;
  gap: 8px;
}

.quick-search {
  width: min(1097px, calc(100% - 50px));
  margin: 0 auto 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.quick-search-input {
  position: relative;
}

.quick-search-input input {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 14px;
  height: 46px;
  padding: 0 44px 0 16px;
  font-size: 15px;
  background: #fff;
}

.quick-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #9aa0a6;
}

.quick-search-icon svg {
  width: 100%;
  height: 100%;
}

.quick-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 5;
  max-height: 240px;
  overflow: auto;
}

.quick-results.show {
  display: block;
}

.quick-result-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #1f2937;
}

.quick-result-item span {
  color: var(--muted);
  font-size: 12px;
}

.quick-result-item:hover {
  background: #f6f7fb;
}

.panel {
  width: 100%;
  max-width: 1080px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid #f1f1f1;
  box-shadow: var(--shadow);
  padding: 30px;
  margin: 0 auto 30px;
}

.panel.hidden {
  display: none;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.panel-head h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.panel-head p {
  color: var(--muted);
  font-size: 15px;
}

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.block-add {
  display: flex;
  align-items: center;
  gap: 10px;
}

.block-add select {
  height: 44px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 0 12px;
  font-weight: 700;
  background: #fff;
  color: #2b2f38;
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lead {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.accent {
  color: var(--accent);
  font-weight: 700;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0 22px;
  height: 48px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(234, 68, 92, 0.3);
}

.btn.ghost {
  background: #e5e6ea;
  color: #1f2937;
  border: 1px solid #d5d7dc;
  box-shadow: none;
}

.btn-icon .icon,
.btn .icon {
  font-size: 18px;
  line-height: 1;
}

.btn-icon {
  gap: 10px;
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
}

.panel-actions.wrap {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.logo-upload {
  max-width: 648px;
  width: 100%;
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logo-upload-title {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.upload-box {
  border: 2px dashed #cfd2d8;
  border-radius: 12px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  position: relative;
  background: #fff;
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-box label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}

.upload-icon {
  width: 34px;
  height: 34px;
  color: #9aa0a6;
}

.upload-icon svg {
  width: 100%;
  height: 100%;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tab {
  background: #fff;
  border: 2px solid var(--input-border);
  padding: 0 18px;
  height: 40px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #8d919b;
}

.tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tab-panel {
  display: none;
  padding-top: 14px;
}

.tab-panel.active {
  display: block;
}

.preset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fafafb;
}

.preset-label {
  font-weight: 700;
  color: #2b2f38;
}

.preset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: #374151;
}

.preset-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section-heading h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.section-heading p {
  color: var(--muted);
}

.color-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.color-info {
  font-weight: 700;
}

.color-picker {
  border: 1px solid var(--input-border);
  border-radius: 12px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  width: 190px;
  justify-content: flex-start;
}

.color-picker input[type="text"] {
  border: none;
  background: transparent;
  font-weight: 700;
  color: #2b2f38;
  width: 110px;
}

.color-picker input[type="color"] {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  padding: 0;
}

.color-picker input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

.color-picker input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  font-weight: 700;
  color: #2b2f38;
}

.field input,
.field textarea,
.field select {
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 0 14px;
  height: 46px;
  font-size: 15px;
  color: #1f2937;
  background: #fff;
}

.field textarea {
  min-height: 140px;
  padding: 12px 14px;
  height: auto;
  resize: vertical;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #f87171;
  background: #fff5f5;
}

.field-error {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236d727f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: left 12px center;
}

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

.phone-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.icon-input {
  position: relative;
}

.icon-input input {
  padding-right: 50px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.icon-input.whatsapp .social-icon {
  background: #37c560;
}

.icon-input.viber .social-icon {
  background: #6b48c7;
}

.icon-input.facebook .social-icon {
  background: #2d6cdf;
}

.icon-input.instagram .social-icon {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf);
}

.icon-input.tiktok .social-icon {
  background: #101010;
}

.icon-input.snapchat .social-icon {
  background: #ffeb3b;
  color: #111;
}

.builder-templates {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.template-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  text-align: right;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
}

.template-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.template-card p {
  color: var(--muted);
  font-size: 14px;
}

.template-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item .btn {
  align-self: flex-start;
}

#faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-section.disabled {
  opacity: 0.7;
}

#home-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-section-title {
  font-weight: 700;
  color: #2b2f38;
  text-align: right;
}

.home-section-title .accent {
  font-weight: 700;
}

.home-card {
  padding: 0;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 16px;
  align-items: center;
}

.home-handle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-handle::before {
  content: "";
  width: 18px;
  height: 26px;
  background-image: radial-gradient(circle, #2b2f38 2px, transparent 2px);
  background-size: 6px 6px;
  background-position: 0 0;
}

.home-content {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}

.home-section.active .home-content {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(234, 68, 92, 0.15);
}

.home-alert-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.home-alert-icon svg {
  width: 22px;
  height: 22px;
}

.home-text strong {
  display: block;
  margin-bottom: 4px;
}

.home-text p {
  color: var(--muted);
  font-size: 14px;
}

.block-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e8f5e9;
  color: #1b5e20;
  white-space: nowrap;
}

.block-status.off {
  background: #fbe9e7;
  color: #c62828;
}

.home-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.action-btn.delete {
  background: #fdecef;
  color: var(--accent);
}

.action-btn.edit {
  background: #e6f0ff;
  color: #2f6ddc;
}

.action-btn.up,
.action-btn.down {
  background: #f1f2f6;
  color: #394150;
}

.action-btn.toggle {
  background: #e8f5e9;
  color: #1b5e20;
}

.action-btn.toggle.off {
  background: #fbe9e7;
  color: #c62828;
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

.empty-state {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.block-editor {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.block-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.block-editor-title {
  font-weight: 700;
  font-size: 18px;
}

.list-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.list-card.dragging {
  opacity: 0.6;
}

.list-card.drag-over {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(234, 68, 92, 0.12);
}

.list-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.list-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drag-handle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f6f6f9;
  cursor: grab;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drag-handle::before {
  content: "";
  width: 12px;
  height: 16px;
  background-image: radial-gradient(circle, #6b7280 2px, transparent 2px);
  background-size: 6px 6px;
  background-position: 0 0;
}

.drag-handle:active {
  cursor: grabbing;
}

.list-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.btn.small {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.switch.small {
  width: 40px;
  height: 20px;
}

.switch.small span::after {
  width: 14px;
  height: 14px;
  top: 3px;
  left: 3px;
}

.switch.small input:checked + span::after {
  transform: translateX(18px);
}

.helper-text {
  color: var(--muted);
  font-size: 13px;
}

.image-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.image-frame {
  width: 180px;
  height: 180px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.image-frame.wide {
  width: 100%;
  max-width: 360px;
  height: 200px;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.image-frame.has-image img {
  display: block;
}

.image-placeholder {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 0 10px;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-row input,
.list-row textarea {
  flex: 1;
}

.testimonial-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.export-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.export-status {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--muted);
  background: #fafafb;
}

.export-status.ready {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #166534;
}

.export-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-chip {
  background: #f1f2f6;
  color: #374151;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.publish-panel {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.domain-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}

.domain-picker label {
  font-weight: 700;
  color: #2b2f38;
}

.domain-picker .input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.domain-picker input {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 0 12px;
  height: 44px;
  font-size: 15px;
  color: #1f2937;
  background: #fff;
}

.domain-picker span {
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 0 12px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: #1f2937;
  background: #fff;
}

.domain-picker small {
  font-size: 12px;
  color: var(--muted);
}

.publish-result {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fafafb;
}

.publish-result.show {
  display: flex;
}

.publish-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.publish-link {
  font-weight: 700;
  color: #1f2937;
  word-break: break-all;
}

.publish-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.publish-state {
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}

.publish-state.published {
  background: #ecfdf3;
  color: #166534;
}

.publish-date {
  font-size: 12px;
  color: var(--muted);
}

.publish-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fafafb;
  border: 1px solid var(--border);
  font-weight: 600;
}

.checklist-item.done {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #166534;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.checklist-item.done .check-icon {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.preview-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-title,
.editor-title {
  font-weight: 700;
  color: #2b2f38;
}

.preview-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  color: var(--muted);
  min-height: 80px;
}

.editor {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: #5b5f6b;
  font-size: 14px;
  align-items: center;
}

.toolbar-select {
  margin-right: auto;
  color: #2b2f38;
  font-weight: 600;
}

.editor textarea {
  border: none;
  min-height: 180px;
  resize: vertical;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.setting {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.setting:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.setting-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.setting-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
  color: #2b2f38;
}

.setting-row.input-only {
  justify-content: flex-end;
}

.number-input {
  width: 160px;
  height: 46px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 0 14px;
  text-align: right;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

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

.switch span {
  position: absolute;
  inset: 0;
  background: #9fa3ad;
  border-radius: 999px;
  transition: 0.2s;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: 0.2s;
}

.switch input:checked + span {
  background: var(--accent);
}

.switch input:checked + span::after {
  transform: translateX(24px);
}

.check-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkbox input {
  position: absolute;
  opacity: 0;
}

.checkbox span {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.checkbox input:checked + span {
  background: var(--accent);
}

.checkbox input:checked + span::after {
  content: "✓";
  font-size: 12px;
}

.settings-block h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.nav-item {
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: right;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
  color: #5b5f6b;
  font-size: 13px;
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #111827;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  font-size: 14px;
}

.toast.show {
  opacity: 1;
}

.preview-panel {
  position: sticky;
  top: 96px;
  height: calc(100vh - 120px);
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: flex-start;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-head h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.preview-head p {
  color: var(--muted);
  font-size: 13px;
}

.preview-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-frame {
  flex: 1;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-frame.mobile {
  width: 380px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  flex: 0 0 auto;
}

#live-preview {
  width: 100%;
  height: 100%;
  border: none;
}

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

.order-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: #374151;
}

.filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.order-search input {
  border: 1px solid var(--input-border);
  border-radius: 12px;
  height: 42px;
  padding: 0 14px;
  min-width: 240px;
}

.orders-list {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: auto;
  background: #fff;
}

.order-header,
.order-row {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1fr 0.9fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
  min-width: 640px;
}

.order-header {
  background: #f9fafb;
  font-weight: 700;
  color: #374151;
  border-bottom: 1px solid var(--border);
}

.order-row {
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.order-row:last-child {
  border-bottom: none;
}

.order-row:hover {
  background: #f6f7fb;
}

.order-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  width: fit-content;
}

.order-status.new {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-status.processing {
  background: #fef3c7;
  color: #b45309;
}

.order-status.completed {
  background: #dcfce7;
  color: #15803d;
}

.order-status.cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.drawer.open {
  display: block;
}

.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(90%, 420px);
  height: 100%;
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 10px 0 30px rgba(16, 24, 40, 0.15);
  z-index: 2;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.drawer-close {
  border: none;
  background: #f1f2f6;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}

.drawer-body {
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.drawer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

.drawer-row strong {
  color: #111827;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #111827;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
  transform: translateY(-2px);
}

@media (max-width: 1200px) {
  .layout {
    grid-template-columns: clamp(5cm, 18vw, 7cm) minmax(0, 1fr);
  }

  .preview-panel {
    display: none;
  }
}

@media (max-width: 1024px) {
  .marketing-shell .hero .container {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 860px) {
  .marketing-shell .navbar .nav-links,
  .marketing-shell .navbar .nav-actions {
    display: none;
  }

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

@media (max-width: 980px) {
  .layout {
    grid-template-columns: clamp(5cm, 18vw, 7cm) minmax(0, 1fr);
    gap: 16px;
    padding: 0 16px;
  }

  .panel {
    width: min(100%, calc(100% - 60px));
  }

  .topbar,
  .quick-search {
    width: calc(100% - 40px);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .marketing-shell .hero-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .layout {
    display: block;
    padding: 0;
  }

  .sidebar {
    display: block;
    width: 100%;
    padding: 12px 13px 0;
  }

  .sidebar-toggle {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 14px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 18px;
    font-weight: 700;
  }

  .toggle-arrow,
  .toggle-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
  }

  .toggle-arrow svg,
  .toggle-icon svg {
    width: 100%;
    height: 100%;
  }

  .sidebar-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 18px 0 0;
    gap: 16px;
  }

  .sidebar-group.open .sidebar-nav {
    display: flex;
  }

  .sidebar-group:not(.open) .toggle-arrow {
    transform: rotate(-90deg);
  }

  .nav-item {
    border: none;
    background: transparent;
    font-size: 20px;
    font-weight: 700;
    color: #5b5f6b;
    cursor: pointer;
    text-align: center;
    padding: 18px 10px;
    width: calc(100% - 26px);
    border-radius: 12px;
  }

  .nav-item.active {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .content {
    padding-top: 16px;
  }

  .topbar,
  .quick-search {
    width: calc(100% - 40px);
  }

  .panel {
    width: calc(100% - 30px);
    padding: 24px;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .block-add {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .block-add select,
  .block-add .btn {
    width: 100%;
  }

  .panel-actions {
    justify-content: flex-start;
  }

  .logo-upload {
    margin-left: 0;
  }

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

  .export-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .publish-result {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-panel {
    display: none;
  }
}

@media (max-width: 560px) {
  .page-title {
    font-size: 26px;
  }

  .panel {
    padding: 20px;
  }

  .tabs {
    gap: 10px;
  }

  .tab {
    height: 36px;
    padding: 0 14px;
  }

  .nav-item {
    font-size: 18px;
  }
}
