/* ==========================================================================
   InstaGrab — Modern Woblo Aesthetic Design
   Inspired by woblo.in & landingfolio.com/inspiration/post/woblo
   Palette: Warm Cream (#faf9f6), Crisp White (#ffffff), Deep Ink (#101013),
            Electric Sky Accent (#0f7fff), Shimmer Pill Buttons & Serif Flourishes.
   Strictly Zero Emojis • Vector SVGs • Ultra-Premium Micro-interactions
   ========================================================================== */

:root {
  --bg: #faf9f6;
  --bg-gradient: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(15, 127, 255, 0.08) 0%, rgba(250, 249, 246, 0.8) 60%, #faf9f6 100%);
  --surface: #ffffff;
  --surface-subtle: #f5f4f0;
  --surface-border: #e9e8ea;
  --surface-border-hover: #d2d0d6;
  --text: #101013;
  --text-muted: #536471;
  --text-dim: #8b98a5;
  --primary: #101013;
  --primary-text: #ffffff;
  --primary-hover: #000000;
  --primary-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  --accent: #0f7fff;
  --accent-soft: rgba(15, 127, 255, 0.1);
  --woblo-pill-border: #6ba0ef;
  --woblo-pill-shadow: 0 10px 24px rgba(15, 127, 255, 0.22);
  --header-bg: rgba(250, 249, 246, 0.9);
  --header-border: #e9e8ea;
  --card-shadow: 0 12px 36px -8px rgba(16, 16, 19, 0.06), 0 2px 6px -1px rgba(16, 16, 19, 0.03);
  --input-bg: #ffffff;
  --input-border: #e9e8ea;
  --input-focus-border: #0f7fff;
  --input-focus-shadow: 0 0 0 4px rgba(15, 127, 255, 0.15);
  --tab-bg: #f1f0ec;
  --tab-border: #e4e3df;
  --tab-active-bg: #ffffff;
  --tab-active-text: #101013;
  --tab-active-shadow: 0 2px 8px rgba(16, 16, 19, 0.08);
  --badge-bg: #ffffff;
  --badge-border: #e9e8ea;
  --badge-text: #536471;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-arabic: 'Cairo', 'Inter', -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[dir="rtl"] {
  font-family: var(--font-arabic);
}

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

body {
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 450;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
header {
  border-bottom: 1px solid var(--header-border);
  padding: 14px 0;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.4px;
  color: var(--text);
  flex-shrink: 0;
  margin-right: 28px;
}

[dir="rtl"] .logo {
  margin-right: 0;
  margin-left: 28px;
}

.logo-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 550;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--text);
}

.btn-nav {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-border);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(16, 16, 19, 0.05);
  transition: all 0.15s ease;
}

.btn-nav:hover {
  background: #ffffff;
  border-color: var(--surface-border-hover);
  transform: translateY(-1px);
}

/* Language Selector */
.lang-selector-wrapper {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 6px 13px;
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 16, 19, 0.03);
  transition: all 0.15s ease;
}

.lang-btn:hover {
  background: #ffffff;
  border-color: var(--surface-border-hover);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(16, 16, 19, 0.12);
  padding: 6px;
  min-width: 175px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.open {
  display: flex;
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s ease;
}

[dir="rtl"] .lang-item {
  text-align: right;
}

.lang-item:hover {
  background: var(--surface-subtle);
  color: var(--text);
}

.lang-item.active {
  background: #edf4ff;
  color: var(--accent);
  font-weight: 700;
}

.lang-code {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   HERO & DOWNLOADER (Woblo Typography & Shimmer)
   -------------------------------------------------------------------------- */
.hero {
  padding: 64px 0 36px;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 22px;
  box-shadow: 0 2px 6px rgba(16, 16, 19, 0.04);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.title {
  font-size: 52px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.serif-flourish {
  font-family: inherit;
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  padding: 0 2px;
  letter-spacing: -0.02em;
}

[dir="rtl"] .serif-flourish {
  font-family: var(--font-arabic);
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 450;
  max-width: 580px;
  margin: 0 auto 34px;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   SEGMENTED TOOL TABS
   -------------------------------------------------------------------------- */
.tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.tabs {
  display: inline-flex;
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 3px;
}

.tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 7px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: var(--tab-active-bg);
  color: var(--tab-active-text);
  font-weight: 700;
  box-shadow: var(--tab-active-shadow);
}

/* --------------------------------------------------------------------------
   INPUT CARD & CONTROLS
   -------------------------------------------------------------------------- */
.input-card {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 40px -10px rgba(16, 16, 19, 0.08), 0 2px 8px rgba(16, 16, 19, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 14px;
}

.input-card:focus-within {
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-shadow), 0 14px 40px -10px rgba(16, 16, 19, 0.08);
}

.search-icon {
  width: 20px;
  height: 20px;
  stroke: var(--text-dim);
  stroke-width: 2.2;
  fill: none;
  flex-shrink: 0;
}

.input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 550;
  padding: 8px 2px;
}

.input::placeholder {
  color: var(--text-dim);
  font-weight: 450;
}

.btn-paste {
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  padding: 8px 15px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-paste:hover {
  color: var(--text);
  border-color: var(--surface-border-hover);
}

/* Woblo Signature Shimmer Button */
.btn-submit {
  background: linear-gradient(180deg, #edf4ff 0%, #d6e7ff 20%, #a2c7ff 50%, #99cbf8 80%, #a2d2f7 100%);
  color: #000000;
  border: 1px solid var(--woblo-pill-border);
  padding: 9px 24px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.3px;
  cursor: pointer;
  box-shadow: var(--woblo-pill-shadow);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 127, 255, 0.32);
}

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

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   BUTTONS (General)
   -------------------------------------------------------------------------- */
.btn-primary {
  background: linear-gradient(180deg, #edf4ff 0%, #d6e7ff 20%, #a2c7ff 50%, #99cbf8 80%, #a2d2f7 100%);
  color: #000000;
  border: 1px solid var(--woblo-pill-border);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--woblo-pill-shadow);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  transition: all 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 127, 255, 0.32);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--surface-border);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(16, 16, 19, 0.04);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  border-color: var(--surface-border-hover);
}

.btn-copy {
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy:hover {
  color: var(--text);
  border-color: var(--surface-border-hover);
}

.btn-reset {
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 550;
  padding: 8px 12px;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

.btn-reset:hover {
  color: var(--text);
}

.full-width {
  width: 100%;
}

/* --------------------------------------------------------------------------
   LOADING STATE
   -------------------------------------------------------------------------- */
.loading-state {
  margin: 34px 0;
  text-align: center;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--surface-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 550;
}

/* --------------------------------------------------------------------------
   ERROR CARD & DIRECT FALLBACKS
   -------------------------------------------------------------------------- */
.error-card {
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  text-align: left;
  box-shadow: var(--card-shadow);
}

[dir="rtl"] .error-card {
  text-align: right;
}

.error-title {
  color: var(--accent);
  font-size: 16px;
  font-weight: 750;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.error-desc {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 14px;
}

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

/* --------------------------------------------------------------------------
   RESULT CARD
   -------------------------------------------------------------------------- */
.result-card {
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 28px 0;
  text-align: left;
  box-shadow: var(--card-shadow);
}

[dir="rtl"] .result-card {
  text-align: right;
}

.result-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
  align-items: start;
}

.media-preview-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #101013;
  aspect-ratio: 9/16;
  max-height: 320px;
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-placeholder-skeleton {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  background: radial-gradient(circle at center, #1c1d24 0%, #101013 80%);
}

.media-placeholder-skeleton svg {
  stroke: var(--accent);
}

.media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #101013;
}

.media-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(16, 16, 19, 0.88);
  color: #ffffff;
  font-size: 11px;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.author-row {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 550;
  margin-bottom: 6px;
}

.author-name {
  color: var(--text);
  font-weight: 750;
}

.result-title {
  font-size: 17px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

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

.btn-action {
  justify-content: flex-start;
  padding: 11px 18px;
}

/* --------------------------------------------------------------------------
   EXTENSION SHOWCASE SECTION (Woblo Clean Hardware / Software Card)
   -------------------------------------------------------------------------- */
.extension-card {
  margin: 48px 0 28px;
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 38px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
  align-items: center;
  box-shadow: var(--card-shadow);
}

.ext-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf4ff;
  border: 1px solid #d6e7ff;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ext-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.ext-desc {
  font-size: 14.5px;
  font-weight: 450;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.feature-list {
  list-style: none;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text);
}

.check-icon {
  width: 17px;
  height: 17px;
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mockup {
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: inset 0 1px 2px rgba(16, 16, 19, 0.02);
}

.mockup-header {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-border-hover);
}

.mockup-window {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(16, 16, 19, 0.04);
}

.inpage-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #101013;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(16, 16, 19, 0.2);
}

.mockup-label {
  font-size: 11.5px;
  font-weight: 550;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   USERSCRIPT CALLOUT (Option 2 - True 1-Click)
   -------------------------------------------------------------------------- */
.userscript-callout {
  background: #ffffff;
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin: 32px 0 12px;
  box-shadow: var(--card-shadow);
}

.userscript-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.userscript-info h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.userscript-info p {
  font-size: 13.5px;
  font-weight: 450;
  color: var(--text-muted);
  line-height: 1.55;
}

.userscript-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-userscript {
  background: linear-gradient(180deg, #edf4ff 0%, #d6e7ff 20%, #a2c7ff 50%, #99cbf8 80%, #a2d2f7 100%);
  color: #000000;
  border: 1px solid var(--woblo-pill-border);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--woblo-pill-shadow);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  transition: all 0.15s ease;
}

.btn-userscript:hover {
  transform: translateY(-1px);
}

.manager-tip {
  font-size: 12px;
  font-weight: 550;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.manager-tip a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 650;
}

/* --------------------------------------------------------------------------
   VISUAL 3-STEP INSTALLATION SECTION (With Real Pictures)
   -------------------------------------------------------------------------- */
.install-visual-section {
  margin: 44px 0 32px;
  padding: 36px 0;
  border-top: 1px solid var(--surface-border);
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 32px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 15px;
  font-weight: 450;
  color: var(--text-muted);
}

.steps-visual-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.visual-step-card {
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  transition: transform 0.15s, border-color 0.15s;
}

.visual-step-card:hover {
  border-color: var(--surface-border-hover);
}

.step-meta-col {
  padding: 32px 28px;
}

.step-badge-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 750;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-card-title {
  font-size: 18.5px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.step-card-desc {
  font-size: 14px;
  font-weight: 450;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.step-card-action {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.code-pill {
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 650;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.step-image-col {
  background: var(--surface-subtle);
  padding: 20px;
  border-left: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

[dir="rtl"] .step-image-col {
  border-left: none;
  border-right: 1px solid var(--surface-border);
}

.step-screenshot-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 4px 14px rgba(16, 16, 19, 0.05);
  display: block;
}

/* --------------------------------------------------------------------------
   MODAL (Interactive Install Guide with Pictures)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 19, 0.55);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 201;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(16, 16, 19, 0.18);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--surface-border);
  background: #ffffff;
}

.modal-title {
  font-size: 17.5px;
  font-weight: 750;
  color: var(--text);
  letter-spacing: -0.3px;
}

.modal-close {
  background: transparent;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

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

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-install-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.modal-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-step-info {
  flex: 1;
}

.modal-step-info h4 {
  font-size: 15px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 4px;
}

.modal-step-info p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}

.modal-step-preview {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: 0 2px 8px rgba(16, 16, 19, 0.04);
}

.modal-step-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-subtle);
}

/* --------------------------------------------------------------------------
   DATAVIZ: LIVE PLATFORM TELEMETRY & METRICS DASHBOARD
   -------------------------------------------------------------------------- */
.metrics-section {
  padding: 52px 0 36px;
  border-top: 1px solid var(--surface-border);
}

.metrics-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.metrics-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* KPI Stat Tiles Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-tile {
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.kpi-tile:hover {
  transform: translateY(-2px);
  border-color: var(--surface-border-hover);
}

.kpi-label {
  font-size: 13px;
  font-weight: 550;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.kpi-figure-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 750;
  color: var(--text);
  letter-spacing: -0.6px;
  line-height: 1;
}

.kpi-delta {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.kpi-delta.good {
  background: #ecfdf5;
  color: #059669;
}

.sparkline-svg {
  width: 100%;
  height: 28px;
  overflow: visible;
}

.meter-track-mini {
  width: 100%;
  height: 6px;
  background: #e9e8ea;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 10px;
}

.meter-fill-mini {
  height: 100%;
  background: var(--accent);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Interactive Chart Card */
.chart-card {
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.chart-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.chart-title-zone h3 {
  font-size: 18px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.chart-title-zone p {
  font-size: 13.5px;
  font-weight: 450;
  color: var(--text-dim);
}

.chart-controls-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.range-filters {
  display: inline-flex;
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  padding: 3px;
  border-radius: var(--radius-full);
  gap: 2px;
}

.filter-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(16, 16, 19, 0.08);
}

.view-toggle-btn {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.view-toggle-btn:hover {
  color: var(--text);
  border-color: var(--surface-border-hover);
}

.chart-legend {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.legend-mark-blue {
  width: 12px;
  height: 3px;
  background: #0f7fff;
  border-radius: 2px;
}

.legend-mark-orange {
  width: 12px;
  height: 3px;
  background: #f5a524;
  border-radius: 2px;
}

.chart-stage {
  position: relative;
  width: 100%;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-crosshair {
  position: absolute;
  top: 10px;
  bottom: 30px;
  width: 1px;
  background: #101013;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
  z-index: 10;
}

.chart-tooltip {
  position: absolute;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(16, 16, 19, 0.12);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -110%);
  transition: opacity 0.15s ease, left 0.05s ease, top 0.05s ease;
  z-index: 20;
  min-width: 150px;
}

.tooltip-time {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 4px;
}

.tooltip-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-weight: 600;
}

.tooltip-bar {
  width: 8px;
  height: 3px;
  border-radius: 2px;
}

.tooltip-val {
  font-weight: 750;
  color: var(--text);
  font-family: var(--font-mono);
}

.tooltip-total {
  border-top: 1px solid var(--surface-border);
  padding-top: 5px;
  margin-top: 5px;
  font-weight: 750;
}

.table-view-container {
  display: none;
  margin-top: 12px;
  overflow-x: auto;
}

.viz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.viz-table th,
.viz-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--surface-border);
}

.viz-table th {
  font-weight: 700;
  color: var(--text);
  background: var(--surface-subtle);
}

.viz-table td {
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   HOW IT WORKS (Downloader 3 Steps)
   -------------------------------------------------------------------------- */
.steps-section {
  padding: 52px 0 36px;
  border-top: 1px solid var(--surface-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.15s, border-color 0.15s;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--surface-border-hover);
}

.step-number {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.step-title {
  font-size: 16.5px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 13.5px;
  font-weight: 450;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   PRICING / PRO SECTION
   -------------------------------------------------------------------------- */
.pricing-section {
  padding: 52px 0 36px;
  border-top: 1px solid var(--surface-border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--card-shadow);
}

.pricing-card.featured {
  border-color: #0f7fff;
  box-shadow: 0 16px 40px -8px rgba(15, 127, 255, 0.15);
}

.tier-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  background: linear-gradient(180deg, #edf4ff 0%, #d6e7ff 20%, #a2c7ff 50%, #99cbf8 80%, #a2d2f7 100%);
  color: #000000;
  font-size: 11px;
  font-weight: 750;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--woblo-pill-border);
}

[dir="rtl"] .tier-badge {
  right: auto;
  left: 20px;
}

.tier-name {
  font-size: 20px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.tier-price {
  font-size: 38px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.tier-price .period {
  font-size: 13.5px;
  color: var(--text-dim);
  font-weight: 550;
}

.tier-desc {
  font-size: 13.5px;
  font-weight: 450;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.tier-features {
  list-style: none;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.tier-features li {
  font-size: 14px;
  font-weight: 550;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-features li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   FAQ SECTION
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 52px 0 36px;
  border-top: 1px solid var(--surface-border);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.faq-question {
  padding: 17px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 18px;
  font-weight: 650;
  color: var(--text-dim);
  transition: transform 0.15s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 14px;
  font-weight: 450;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--surface-border);
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--surface-border);
  padding: 36px 0 24px;
  margin-top: 40px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.footer-brand-info strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  display: block;
  margin-bottom: 3px;
}

.footer-brand-info p {
  font-size: 12.5px;
  font-weight: 450;
  color: var(--text-dim);
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 550;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 12.5px;
  font-weight: 450;
  color: var(--text-dim);
  border-top: 1px solid var(--surface-border);
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .title {
    font-size: 34px;
    letter-spacing: -0.03em;
  }
  .input-card {
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .btn-submit {
    width: 100%;
  }
  .extension-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .visual-step-card {
    grid-template-columns: 1fr;
  }
  .step-image-col {
    border-left: none;
    border-top: 1px solid var(--surface-border);
  }
  [dir="rtl"] .step-image-col {
    border-right: none;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chart-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .chart-controls-zone {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}


.step-sub-link {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.step-sub-link:hover {
  color: var(--accent);
}
