
/* TakeYourHost - Modern Commercial Theme (RTL/LTR, Dark default) */
:root{
  --primary:#4f46e5;
  --accent:#22c55e;
  --bg:#0b1120;
  --bg-soft:#111827;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --border:#1f2937;
  --shadow: 0 20px 50px rgba(0,0,0,.35);
  --radius:16px;
  --radius-sm:12px;
  --container: 1180px;
}
html[data-theme="light"]{
  --bg:#ffffff;
  --bg-soft:#f8fafc;
  --text:#0f172a;
  --muted:#475569;
  --border:#e5e7eb;
  --shadow: 0 16px 40px rgba(2,6,23,.10);
}
html{ color-scheme: dark light; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
html[lang="ar"] body{ font-family:"Tajawal", system-ui, sans-serif; }
html[lang="en"] body{ font-family:"Inter", system-ui, sans-serif; }

a{ color:inherit; text-decoration:none; }
*{ box-sizing:border-box; }

.tyh-container{ width:min(var(--container), calc(100% - 32px)); margin-inline:auto; }
.tyh-main{ min-height:60vh; }

.theme-transition *{
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .2s ease;
}

/* Header */
.tyh-header{
  position:sticky; top:0; z-index:50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--border);
}
.tyh-header__inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; }
.tyh-brand{ display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px; }
.tyh-brand__mark{
  width:28px; height:28px; border-radius:10px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(79,70,229,.9), rgba(34,197,94,.65));
  box-shadow: 0 10px 25px rgba(79,70,229,.25);
}
.tyh-nav{ display:flex; gap:10px; align-items:center; }
.tyh-nav__link{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
}
.tyh-nav__link:hover{ color:var(--text); background: color-mix(in oklab, var(--bg-soft) 70%, transparent); }

.tyh-header__actions{ display:flex; align-items:center; gap:10px; }
.tyh-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:700;
  line-height:1;
}
.tyh-btn--primary{
  background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 55%, var(--accent)));
  color:#fff;
  box-shadow: 0 14px 30px rgba(79,70,229,.25);
}
.tyh-btn--ghost{
  background: color-mix(in oklab, var(--bg-soft) 70%, transparent);
  border-color: var(--border);
  color: var(--text);
}
.tyh-btn--lg{ padding:12px 18px; border-radius:14px; }
.tyh-btn:hover{ transform: translateY(-1px); }

.tyh-theme-toggle{
  width:44px; height:44px;
  border-radius:12px;
  background: color-mix(in oklab, var(--bg-soft) 70%, transparent);
  border:1px solid var(--border);
  display:grid; place-items:center;
  cursor:pointer;
  position:relative;
  overflow:hidden;
}
.tyh-icon{ width:20px; height:20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap:round; stroke-linejoin:round; }
.tyh-theme-toggle .tyh-icon{ position:absolute; transition: transform .4s ease, opacity .3s ease; }
.tyh-icon--sun{ opacity:0; transform: rotate(-90deg) scale(.55); }
html[data-theme="light"] .tyh-icon--sun{ opacity:1; transform: rotate(0) scale(1); }
html[data-theme="light"] .tyh-icon--moon{ opacity:0; transform: rotate(90deg) scale(.55); }

.tyh-burger{ display:none; width:44px; height:44px; border-radius:12px; border:1px solid var(--border); background:transparent; cursor:pointer; }
.tyh-burger span{ display:block; height:2px; width:18px; margin:4px auto; background: var(--text); opacity:.85; border-radius:2px; }

.tyh-mobile{ display:none; border-top:1px solid var(--border); padding:12px 0 16px; }
.tyh-mobile a{ display:block; padding:10px 16px; color: var(--muted); }
.tyh-mobile a:hover{ background: color-mix(in oklab, var(--bg-soft) 70%, transparent); color:var(--text); }
.tyh-mobile__auth{ padding:8px 16px; }

/* Language */
.tyh-lang{ position:relative; }
.tyh-lang__btn{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:12px;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--bg-soft) 70%, transparent);
  color: var(--text);
  cursor:pointer;
}
.tyh-lang__menu{
  position:absolute;
  inset-inline-end:0;
  top: calc(100% + 8px);
  min-width: 190px;
  border:1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow);
  padding:6px;
  display:none;
}
.tyh-lang__menu a{
  display:block;
  padding:10px 12px;
  border-radius: 12px;
  color: var(--muted);
}
.tyh-lang__menu a:hover,
.tyh-lang__menu a.is-active{ color: var(--text); background: color-mix(in oklab, var(--bg-soft) 75%, transparent); }

/* Hero */
.tyh-hero{
  padding: 84px 0 54px;
  background:
    radial-gradient(1200px 520px at 50% -10%, rgba(79,70,229,.28), transparent),
    radial-gradient(900px 420px at 80% 10%, rgba(34,197,94,.20), transparent),
    var(--bg);
}
.tyh-hero__badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in oklab, var(--bg-soft) 65%, transparent);
}
.tyh-hero__title{
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height:1.08;
  margin: 14px 0 10px;
  font-weight: 900;
}
.tyh-hero__grad{
  display:block;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.tyh-hero__sub{ margin:0; color: var(--muted); font-size: 1.05rem; }
.tyh-hero__actions{ margin-top: 18px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.tyh-hero__metrics{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.tyh-metric{
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in oklab, var(--bg-soft) 60%, transparent);
  text-align:center;
}
.tyh-metric span{ font-weight:900; font-size: 1.2rem; }
.tyh-metric small{ display:block; color: var(--muted); margin-top:4px; }

/* Sections */
.tyh-section{ padding: 54px 0; }
.tyh-section--alt{ background: color-mix(in oklab, var(--bg-soft) 35%, transparent); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.tyh-section__head{ text-align:center; max-width: 720px; margin: 0 auto 22px; }
.tyh-section__head h2{ margin:0 0 8px; font-size:1.8rem; }
.tyh-section__head p{ margin:0; color: var(--muted); }

/* Grid + Cards */
.tyh-grid{ display:grid; gap: 16px; }
.tyh-grid--2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.tyh-grid--3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.tyh-grid--4{ grid-template-columns: repeat(4, minmax(0,1fr)); }

.tyh-card{
  position:relative;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--bg-soft) 65%, transparent);
  border-radius: 20px;
  padding: 22px;
  overflow:hidden;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.tyh-card:hover{ transform: translateY(-4px); border-color: color-mix(in oklab, var(--primary) 65%, var(--border)); }
.tyh-card__icon{
  width:44px; height:44px; border-radius: 14px;
  display:grid; place-items:center;
  background: color-mix(in oklab, var(--primary) 22%, transparent);
  border:1px solid color-mix(in oklab, var(--primary) 25%, var(--border));
  font-weight: 900;
  margin-bottom: 12px;
}
.tyh-card__cta{ margin-top: 10px; color: var(--muted); font-weight: 700; }
.tyh-card--highlight{
  background: linear-gradient(160deg, rgba(79,70,229,.92), rgba(34,197,94,.75));
  border-color: transparent;
  color:#fff;
}
.tyh-card--highlight .tyh-card__icon{ background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.18); }
.tyh-card--highlight .tyh-card__cta{ color: rgba(255,255,255,.85); }
.tyh-card__tag{
  position:absolute; top:14px;
  inset-inline-end:14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  color:#fff;
  font-size:.85rem;
  font-weight:800;
}
.tyh-card--flat{ padding: 20px; }
.tyh-mini{ border:1px solid var(--border); border-radius: 16px; padding: 18px; background: color-mix(in oklab, var(--bg) 70%, transparent); }
.tyh-mini__title{ font-weight: 900; margin-bottom: 6px; }
.tyh-mini__text{ color: var(--muted); }
.tyh-mini--card{ background: color-mix(in oklab, var(--bg-soft) 65%, transparent); }

/* CTA */
.tyh-cta{ padding: 44px 0; }
.tyh-cta__inner{
  border:1px solid var(--border);
  border-radius: 24px;
  padding: 26px 22px;
  background:
    radial-gradient(700px 250px at 15% 20%, rgba(79,70,229,.30), transparent),
    radial-gradient(700px 250px at 85% 70%, rgba(34,197,94,.22), transparent),
    color-mix(in oklab, var(--bg-soft) 55%, transparent);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.tyh-cta__inner p{ margin: 6px 0 0; color: var(--muted); }

/* Page hero */
.tyh-pagehero{
  padding: 56px 0 26px;
  background:
    radial-gradient(900px 260px at 50% -10%, rgba(79,70,229,.25), transparent),
    var(--bg);
}
.tyh-pagehero h1{ margin:0 0 10px; font-size: 2.2rem; }
.tyh-pagehero p{ margin:0; color: var(--muted); }

/* Panels & forms */
.tyh-panel{
  border:1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  background: color-mix(in oklab, var(--bg-soft) 65%, transparent);
}
.tyh-panel__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 10px; }
.tyh-list{ margin: 10px 0 0; padding:0; list-style:none; }
.tyh-list li{ padding: 8px 0; border-bottom:1px dashed color-mix(in oklab, var(--border) 80%, transparent); color: var(--muted); }
.tyh-list li:last-child{ border-bottom:none; }
.tyh-muted{ color: var(--muted); }
.tyh-alert{
  border:1px solid color-mix(in oklab, var(--primary) 20%, var(--border));
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
}

.tyh-form{ display:grid; gap: 12px; }
.tyh-form__row label{ display:block; margin-bottom: 6px; color: var(--muted); font-weight: 700; }
.tyh-form input, .tyh-form textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline:none;
}
.tyh-form input:focus, .tyh-form textarea:focus{ border-color: color-mix(in oklab, var(--primary) 70%, var(--border)); box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 20%, transparent); }

.tyh-domain{ display:flex; gap: 10px; align-items:center; }
.tyh-domain input{ flex:1; min-width: 220px; }

/* Pricing */
.tyh-pricing{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.tyh-price{
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--bg-soft) 65%, transparent);
  border-radius: 20px;
  padding: 22px;
  position:relative;
  transition: transform .2s ease, border-color .2s ease;
}
.tyh-price:hover{ transform: translateY(-4px); border-color: color-mix(in oklab, var(--primary) 65%, var(--border)); }
.tyh-price__tag{
  position:absolute; top:14px; inset-inline-end:14px;
  padding: 6px 10px; border-radius: 999px;
  font-size: .85rem; font-weight: 900;
  background: color-mix(in oklab, var(--primary) 22%, transparent);
  border:1px solid color-mix(in oklab, var(--primary) 25%, var(--border));
}
.tyh-price__name{ font-weight: 900; font-size: 1.1rem; }
.tyh-price__price{ margin: 10px 0 10px; display:flex; gap:8px; align-items:baseline; }
.tyh-price__price span{ font-weight: 950; font-size: 2.1rem; }
.tyh-price__price small{ color: var(--muted); }
.tyh-price__cta{ margin-top: 12px; font-weight: 900; color: var(--muted); }
.tyh-price--hot{
  background: radial-gradient(900px 340px at 50% 0%, rgba(79,70,229,.25), transparent),
              color-mix(in oklab, var(--bg-soft) 70%, transparent);
  border-color: color-mix(in oklab, var(--primary) 45%, var(--border));
}

/* Client area */
.tyh-ca{ display:grid; grid-template-columns: 280px 1fr; gap: 16px; align-items:start; }
.tyh-ca__head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom: 14px; }
.tyh-ca__actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.tyh-ca-nav{
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--bg-soft) 65%, transparent);
  border-radius: 20px;
  padding: 10px;
}
.tyh-ca-nav a{
  display:block;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 800;
}
.tyh-ca-nav a:hover,
.tyh-ca-nav a.is-active{
  background: linear-gradient(135deg, rgba(79,70,229,.35), rgba(34,197,94,.20));
  color: var(--text);
  border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
}
.tyh-stat{
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--bg-soft) 65%, transparent);
  border-radius: 20px;
  padding: 18px;
  text-align:center;
}
.tyh-stat__num{ font-weight: 950; font-size: 2rem; }
.tyh-stat__label{ color: var(--muted); font-weight: 800; margin-top: 4px; }
.tyh-quick{ display:grid; gap: 10px; }
.tyh-quick a{
  padding: 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  color: var(--text);
  font-weight: 800;
}
.tyh-quick a:hover{ border-color: color-mix(in oklab, var(--primary) 65%, var(--border)); transform: translateY(-2px); }

/* Footer */
.tyh-footer{
  border-top:1px solid var(--border);
  background: color-mix(in oklab, var(--bg-soft) 35%, transparent);
}
.tyh-footer__inner{ padding: 34px 0 18px; display:grid; grid-template-columns: 1.2fr 2fr; gap: 16px; align-items:start; }
.tyh-footer__brand{ display:flex; gap:12px; align-items:flex-start; }
.tyh-footer__title{ font-weight: 950; }
.tyh-footer__muted{ color: var(--muted); margin-top: 4px; }
.tyh-footer__cols{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.tyh-footer__coltitle{ font-weight: 950; margin-bottom: 10px; }
.tyh-footer__col a{ display:block; padding: 8px 0; color: var(--muted); }
.tyh-footer__col a:hover{ color: var(--text); }
.tyh-footer__bottom{ padding: 14px 0 22px; color: var(--muted); border-top:1px solid var(--border); }

/* Responsive */
@media (max-width: 980px){
  .tyh-nav{ display:none; }
  .tyh-burger{ display:inline-block; }
  .tyh-hero__metrics{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tyh-grid--4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tyh-pricing{ grid-template-columns: 1fr; }
  .tyh-footer__inner{ grid-template-columns: 1fr; }
  .tyh-footer__cols{ grid-template-columns: 1fr; }
  .tyh-ca{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .tyh-domain{ flex-direction: column; align-items: stretch; }
  .tyh-cta__inner{ flex-direction: column; align-items: stretch; text-align: start; }
}
