/* hy.ma — Clean Futuristic Glassmorphism CSS (No Tailwind) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #050816;
  --bg-2: #0b1124;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(99, 102, 241, 0.45);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-2: #06b6d4;
  --accent: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(15, 23, 42, 0.12);
  --border-glow: rgba(99, 102, 241, 0.35);
  --text: #0f172a;
  --text-muted: #475569;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .bg-orb { opacity: 0.18; }
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0f172a 10%, #4f46e5 55%, #0284c7 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .input,
[data-theme="light"] .select,
[data-theme="light"] .textarea,
[data-theme="light"] .prefix-box {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
}
[data-theme="light"] .prefix-box input { color: #0f172a; }
[data-theme="light"] .price-list li { color: #334155; }
[data-theme="light"] .form-label { color: #334155; }
[data-theme="light"] .pill { color: #4338ca; background: rgba(99, 102, 241, 0.1); }
[data-theme="light"] .footer { background: rgba(255, 255, 255, 0.8); border-top-color: rgba(15, 23, 42, 0.08); }
[data-theme="light"] .glass-subtle { background: rgba(255, 255, 255, 0.72); border-color: rgba(15, 23, 42, 0.1); }
[data-theme="light"] .stats-strip-num {
  background: linear-gradient(135deg, #0f172a, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .alert-error { color: #b91c1c; background: rgba(239,68,68,0.1); }
[data-theme="light"] .alert-success { color: #047857; background: rgba(16,185,129,0.12); }
[data-theme="light"] .alert-info { color: #0369a1; background: rgba(6,182,212,0.12); }
[data-theme="light"] .blog-article-body, [data-theme="light"] .legal-prose { color: #334155 !important; }
[data-theme="light"] .blog-article-body h3, [data-theme="light"] .legal-prose h3 { color: #0f172a !important; }
[data-theme="light"] .blog-article-body code { background: rgba(15,23,42,0.08); color: #4338ca; }
[data-theme="light"] .tool-tab { color: #475569; border-color: rgba(15,23,42,0.14); }
[data-theme="light"] .tool-tab.active {
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.25);
}

/* Waving Hand Logo Animation */
@keyframes hyWave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-10deg); }
  45% { transform: rotate(12deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(0deg); }
}
.hy-hand-wave {
  animation: hyWave 2.8s ease-in-out infinite;
}

/* Bigger Readable Blog Typography */
.blog-article-body {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #cbd5e1;
}
.blog-article-body h3 {
  font-size: 1.38rem;
  margin: 28px 0 10px;
  color: #fff;
}
.blog-article-body p { margin: 0 0 16px; }
.blog-article-body ul, .blog-article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.blog-article-body a { color: var(--primary-2); text-decoration: underline; font-weight: 600; }
.blog-article-body code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  font-size: 0.92em;
}

/* Floating WhatsApp Chat Widget */
.wa-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
}
.wa-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-popup {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 310px;
  padding: 18px;
  display: none;
}
.wa-popup.open { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Futuristic Background Orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.42;
}
.bg-orb-1 { width: 520px; height: 520px; background: #4f46e5; top: -140px; left: -120px; }
.bg-orb-2 { width: 460px; height: 460px; background: #06b6d4; top: 20%; right: -140px; }
.bg-orb-3 { width: 420px; height: 420px; background: #db2777; bottom: -160px; left: 25%; opacity: 0.25; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Glass Card */
.glass {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.glass-subtle {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
}

/* Floating Pill Navbar */
.navbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: calc(100% - 32px);
  max-width: 1140px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: rgba(10, 15, 34, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 22px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-logo {
  height: 36px;
  width: auto;
  border-radius: 10px;
}
.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
  font-size: 1.15rem;
}
.nav-drawer {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(6, 182, 212, 0.45); transform: translateY(-1px); }
.btn-glass {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--border);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.14); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 14px; }

/* Inputs */
.input, .select, .textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 15px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: #cbd5e1; margin-bottom: 6px; }

/* Hero */
.hero {
  padding: 68px 0 48px;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.85rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 auto 18px;
  max-width: 820px;
}
.gradient-text {
  background: linear-gradient(135deg, #fff 10%, #a5b4fc 50%, #22d3ee 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  max-width: 660px;
  margin: 0 auto 34px;
}

/* Interactive Hero Tool Tabs */
.hero-tool {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px;
  text-align: left;
}
.tool-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tool-tab {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.tool-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.22));
  border-color: var(--primary-2);
  color: #fff;
}
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline-form .input { flex: 1; }
.prefix-box {
  display: flex;
  align-items: center;
  flex: 1;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.prefix-box span {
  padding: 12px 12px 12px 15px;
  color: var(--primary-2);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.prefix-box input {
  border: none;
  background: transparent;
  color: var(--text);
  padding: 12px 14px;
  width: 100%;
  outline: none;
  font-family: inherit;
  font-size: 0.96rem;
}

.shorten-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: none;
}
.shorten-result.show { display: block; }
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.result-url {
  font-weight: 700;
  font-size: 1.08rem;
  color: #34d399;
  word-break: break-all;
}
.guest-register-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

/* Sections & Grids */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0 0 10px; font-weight: 800; letter-spacing: -0.02em; }
.section-head p { color: var(--text-muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.feature-card { padding: 26px; transition: transform 0.2s, border-color 0.2s; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.45); }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 900px; margin: 0 auto; }
.price-card { padding: 32px; position: relative; }
.price-card.pro {
  border-color: rgba(99, 102, 241, 0.6);
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.14), rgba(6, 182, 212, 0.08));
}
.price-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-amount {
  font-size: 2.35rem;
  font-weight: 800;
  margin: 12px 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.price-amount span { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.old-price {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: #f87171 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  display: inline-block;
}
[data-theme="light"] .old-price { color: #dc2626 !important; }
.price-list { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.price-list li { display: flex; align-items: center; gap: 10px; color: #cbd5e1; font-size: 0.95rem; }
.price-list li.muted { color: var(--text-muted); }

/* Auth Pages */
.auth-wrap {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.auth-card { width: 100%; max-width: 440px; padding: 32px; }
.auth-card h1 { margin: 0 0 6px; font-size: 1.7rem; }
.auth-card p.sub { margin: 0 0 22px; color: var(--text-muted); font-size: 0.94rem; }

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  border: 1px solid transparent;
}
.alert-error { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.alert-success { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.4); color: #6ee7b7; }
.alert-info { background: rgba(6, 182, 212, 0.14); border-color: rgba(6, 182, 212, 0.4); color: #67e8f9; }

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 0 28px;
  margin-top: 48px;
  background: rgba(5, 8, 22, 0.55);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; color: var(--text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* Showcase & FAQ */
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  text-align: left;
}
.hero-split h1 { margin-left: 0; }
.hero-split p.lead { margin-left: 0; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-split h1, .hero-split p.lead { margin-left: auto; }
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 34px auto 0;
  max-width: 880px;
}
.stats-strip-item {
  padding: 16px;
  text-align: center;
}
.stats-strip-num {
  font-size: 1.55rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats-strip-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.mock-phone {
  max-width: 340px;
  margin: 0 auto;
  padding: 22px 18px;
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #0f172a 0%, #312e81 50%, #0ea5e9 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
  transition: background 0.35s ease;
}
.mock-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.mock-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 9px;
}
.mock-btn.featured {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(6, 182, 212, 0.5));
  border-color: rgba(255, 255, 255, 0.45);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

@media (max-width: 768px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
}

/* Responsive Tablet & Mobile */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { border-radius: 22px; width: calc(100% - 20px); top: 10px; }
  .nav-links, .nav-actions.desktop-only { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav-drawer {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-drawer.open { display: flex; }
  .grid-3, .grid-2, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .hero { padding: 44px 0 32px; }
}


/* Arabic RTL Support */
[dir="rtl"] body { font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Arial, sans-serif; }
[dir="rtl"] .hero-split { text-align: right; }
[dir="rtl"] .hero-split h1, [dir="rtl"] .hero-split p.lead { margin-right: 0; margin-left: auto; }
[dir="rtl"] .hero-tool { text-align: right; }
[dir="rtl"] .prefix-box { direction: ltr; }
[dir="rtl"] .wa-widget { right: auto; left: 22px; }
[dir="rtl"] .wa-popup { right: auto; left: 0; }
@media (max-width: 900px) {
  [dir="rtl"] .hero-split { text-align: center; }
}


/* Cookie Consent Popup */
.cookie-banner {
  position: fixed;
  left: 22px;
  bottom: 22px;
  max-width: 380px;
  width: calc(100% - 44px);
  padding: 18px 20px;
  z-index: 94;
  display: none;
}
.cookie-banner.show { display: block; }
[dir="rtl"] .cookie-banner { left: auto; right: 22px; }
.discount-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 800;
  vertical-align: middle;
}
[data-theme="light"] .discount-pill { color: #059669; }
