:root{
  --a:#d26e41; --b:#2c2e3c; --c:#e0e0e1;
  --bg:#0f1118; --card:#151827; --text:#e9ecf1; --muted:#b7bdc9; --line:rgba(224,224,225,.12);
  --r:16px;
}

html[data-theme="light"]{
  --bg:#f7f7f8; --card:#ffffff; --text:#151827; --muted:#4c5160; --line:rgba(44,46,60,.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
}
a{color:inherit}
img{max-width:100%}
button{font:inherit}

/* =========================
Topbar
========================= */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  padding:10px 16px;
  border-bottom:1px solid var(--line);
  background:rgba(15,17,24,.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display:grid;
  grid-template-columns:auto 1fr auto; /* logo | center | right */
  align-items:center;
  gap:12px;
}
html[data-theme="light"] .topbar{ background:rgba(247,247,248,.72); }

.brand{
  justify-self:start;
  display:flex;
  align-items:center;
  direction:ltr; /* keep logo physically left in RTL */
  unicode-bidi:isolate;
  text-decoration:none;
}
.brand__logo{
  height:40px;
  width:auto;
  display:block;
  object-fit:contain;
}

/* desktop nav */
.nav{
  justify-self:center;
  display:flex;
  align-items:center;
  gap:10px;
}
.nav__link{
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  color:var(--muted);
  border:1px solid transparent;
  white-space:nowrap;
  transition:background .12s ease, border-color .12s ease, color .12s ease;
}
.nav__link:hover{
  color:var(--text);
  border-color:var(--line);
  background:rgba(44,46,60,.12);
}

/* right side */
.topbar__actions{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:10px;
  direction:ltr;
  unicode-bidi:isolate;
}
.topbar__actionsDesk{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:42px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid var(--line);
  text-decoration:none;
  color:var(--text);
  background:transparent;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active{transform:scale(.98)}
.btn--primary{
  background:var(--a);
  border-color:transparent;
  color:#fff;
  font-weight:700;
}
.btn--soft{
  background:rgba(210,110,65,.12);
  border-color:rgba(210,110,65,.28);
  font-weight:700;
}
.btn--ghost{width:44px;padding:0}

/* Language dropdown */
.lang{position:relative}
.lang__btn{
  height:42px;
  border-radius:12px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
  cursor:pointer;
}
.lang__emoji{
  font-size:18px;
  line-height:1;
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.lang__flag{
  width:18px;
  height:18px;
  border-radius:4px;
  object-fit:cover;
}
.lang__menu{
  position:absolute;
  inset-inline-end:0;
  top:48px;
  min-width:140px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:8px;
  display:none;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
}
.lang__menu.open{display:block}
.lang__item{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:12px;
  border:0;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  text-align:start;
}
.lang__item:hover{background:rgba(44,46,60,.12)}

/* =========================
Mobile hamburger + drawer
========================= */
.navToggle{
  display:none;
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  background:transparent;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  padding:0;
}
.navToggle span{
  width:18px;
  height:2px;
  border-radius:999px;
  background:var(--text);
}

.navDrawer{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  z-index:40;
}
.navDrawer.open{display:block}

.navDrawer__inner{
  position:absolute;
  top:0;
  inset-inline-end:0;
  width:290px;
  max-width:84%;
  height:100%;
  background:var(--card);
  padding:16px 14px 18px;
  box-shadow:0 0 40px rgba(0,0,0,.5);
  display:flex;
  flex-direction:column;
  gap:14px;
}

.navDrawer__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.navDrawer__title{font-weight:700}
.navDrawer__close{
  width:32px;
  height:32px;
  border-radius:999px;
  border:0;
  background:rgba(0,0,0,.18);
  color:var(--text);
  cursor:pointer;
}

.navDrawer__menu{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}
.navDrawer__menu a{
  padding:10px 10px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
  border:1px solid transparent;
}
.navDrawer__menu a:hover{
  background:rgba(44,46,60,.25);
  border-color:var(--line);
}

.navDrawer__actions{
  margin-top:auto;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.lang--drawer{flex:1}

/* =========================
Page layout
========================= */
.container{
  max-width:1120px;
  margin:0 auto;
  padding:1px 16px 44px;
}

.section{padding:0}
.sectionHead{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin:22px 0 12px;
}
.sectionHead h2{margin:0;font-size:22px}
.sectionHead p{margin:0;color:var(--muted);font-size:13px}

/* =========================
Hero
========================= */
.hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  align-items:center;
  padding:22px 0;
}
.hero__title{
  font-size:clamp(26px,3.2vw,42px);
  margin:0 0 10px;
}
.hero__desc{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.6;
}
.hero__buttons{display:flex;gap:10px;flex-wrap:wrap}
.hero__media{
  background:rgba(44,46,60,.18);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:0;              /* پادین لاببە */
  overflow:hidden;        /* وێنە لە چوارچێوە دەرنەچێت */
}

.hero__img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;       /* پڕکردنەوەی تەواوی چوارچێوە */
}
/* =========================
Templates strip
========================= */
.template-strip{
  display:flex;
  gap:14px;
  overflow:auto;
  padding:10px 4px 12px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  cursor:grab;
  user-select:none;
}
.template-strip.dragging{cursor:grabbing}
.template-strip img{pointer-events:none}

.template-item{
  flex:0 0 auto;
  width:220px;
  aspect-ratio:9/16;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  scroll-snap-align:start;
  overflow:hidden;
  transition:transform .12s ease, border-color .12s ease;
}
.template-item:hover{
  transform:translateY(-2px);
  border-color:rgba(210,110,65,.28);
}
.template-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* =========================
Features
========================= */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.ic{
  width:40px;
  height:40px;
  border-radius:14px;
  background:rgba(210,110,65,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.ic i{font-size:16px;color:var(--a)}

/* =========================
Tutorial video
========================= */
.videoBox{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--card);
}
.videoBox iframe{
  width:100%;
  aspect-ratio:16/9;
  display:block;
}

/* =========================
Pricing
========================= */
.pricingGrid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.plan{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
}
.plan--hot{
  border-color:rgba(210,110,65,.55);
  box-shadow:0 18px 50px rgba(210,110,65,.12);
}
.price{
  font-size:28px;
  font-weight:900;
  margin:8px 0 10px;
  color:var(--a);
}
.plan ul{
  margin:0;
  padding-inline-start:18px;
  color:var(--muted);
  line-height:1.7;
}

/* =========================
Footer
========================= */
.footer{
  border-top:1px solid var(--line);
  padding:22px 16px;
  background:rgba(0,0,0,.12);
}
.footer__wrap{
  max-width:1120px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}
.footer__brand{display:flex;gap:12px;align-items:center}
.footer__name{font-weight:900}
.footer__desc{color:var(--muted);font-size:13px;margin-top:4px}
.footer__social{display:flex;gap:10px;flex-wrap:wrap}
.footer__social a{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  text-decoration:none;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.02);
  transition:color .12s ease, border-color .12s ease, transform .12s ease;
}
.footer__social a:hover{
  color:var(--text);
  border-color:rgba(210,110,65,.30);
  transform:translateY(-1px);
}
.footer__bottom{
  max-width:1120px;
  margin:14px auto 0;
  color:var(--muted);
  font-size:12px;
  display:flex;
  justify-content:center;
  text-align:center;
  direction:ltr; /* بۆ ئەوەی © و ساڵ هەڵنەشێنرێت */
}

/* =========================
RTL / LTR
========================= */
html[data-lang="ku"], html[data-lang="ar"]{direction:rtl}
html[data-lang="en"]{direction:ltr}

/* =========================
Mobile responsive
========================= */
@media (max-width: 860px){
  .hero{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .pricingGrid{grid-template-columns:1fr}

  .nav{display:none}
  .navToggle{display:flex}

  /* hide desktop actions on mobile (use drawer bottom instead) */
  .topbar__actionsDesk{display:none}

  .container{padding-bottom:26px}
}


@media (max-width: 860px){
  /* ensure drawer can show popovers above its bottom bar */
  .navDrawer__inner{ overflow: visible; }

  /* In drawer: open language menu upward (to the top) */
  .lang--drawer .lang__menu{
    position: fixed;          /* keep inside viewport */
    top: auto;                /* disable default top */
    bottom: calc(16px + 42px + 10px); /* 16 padding + button height + gap */
    inset-inline-end: 140px;   /* match drawer padding */
    inset-inline-start: auto;
    z-index: 60;
    max-height: 55vh;         /* prevent going off-screen */
    overflow: auto;
  }
}



/* =========================
Auth pages (login/register)
========================= */
.auth{padding:0px 0}
.auth__wrap{
  min-height:calc(100vh - 120px);
  display:flex;
  align-items:center;
  justify-content:center;
}

.authCard{
  width:100%;
  max-width:520px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 18px 55px rgba(0,0,0,.25);
  overflow:hidden;
}

.authCard__head{
  padding:16px 16px 10px;
  border-bottom:1px solid var(--line);
}
.authCard__title{margin:0;font-size:22px}
.authCard__sub{margin:6px 0 0;color:var(--muted);font-size:13px}

.authForm{padding:16px}
.field{display:block;margin-bottom:12px}
.field__label{display:block;margin-bottom:6px;color:var(--muted);font-size:13px}

.field__input{
  width:100%;
  height:44px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  color:var(--text);
  outline:none;
}
html[data-theme="light"] .field__input{background:#fff}

.field__input:focus{
  border-color:rgba(210,110,65,.55);
  box-shadow:0 0 0 3px rgba(210,110,65,.18);
}

.field__row{
  display:flex;
  gap:10px;
  align-items:center;
}
.field__row .field__input{flex:1}
.field__toggle{height:44px;width:auto;padding:0 14px}

.authForm__submit{width:100%;height:46px;margin-top:6px}

.authLinks{display:flex;justify-content:flex-end;margin-top:10px}
.authLinks__link{color:var(--a);text-decoration:none;font-weight:700}
.authLinks__link:hover{text-decoration:underline}

.authNote{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
  display:flex;
  gap:8px;
  justify-content:center;
  flex-wrap:wrap;
}

.radioRow{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.radio{display:flex;gap:8px;align-items:center;color:var(--text)}
.captcha{margin-top:12px}







/* Page spacing */
.tpl-page{ padding:18px 0 30px; }

/* Top bar like template.jpg */
.tpl-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.tpl-title h1{ margin:0; font-size:18px; font-weight:700; }
#tplCount{ font-weight:600; opacity:.7; }

.tpl-actions{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.tpl-search{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#ffffff;
  border:1px solid #e9eef5;
  min-width:min(520px, 70vw);
}
.tpl-search input{
  border:0; outline:0; width:100%;
  font-size:14px; background:transparent;
}
.tpl-filter{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px;
  border-radius:12px;
  background:#ffffff;
  border:1px solid #e9eef5;
  cursor:pointer;
}

/* Grid like screenshot */
.themes-grid{ margin-top:16px; }

/* tabs header spacing */
.theme-tabs-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0 14px;
  flex-wrap:wrap;
}
.theme-tab-btn{
  padding:9px 14px;
  border-radius:12px;
  border:1px solid #e9eef5;
  background:#fff;
  cursor:pointer;
  font-weight:600;
}
.theme-tab-btn.active{
  background:#f2f6ff;
  border-color:#d9e5ff;
}

/* 5 columns desktop, responsive down */
.theme-tab-panel{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:18px;
}
@media (max-width:1200px){ .theme-tab-panel{ grid-template-columns:repeat(4, minmax(0,1fr)); } }
@media (max-width:992px){ .theme-tab-panel{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width:640px){
  .tpl-search{ min-width:100%; }
  .theme-tab-panel{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; }
}
@media (max-width:420px){ .theme-tab-panel{ grid-template-columns:1fr; } }

/* Card look */
.theme-card{
  background:#fff;
  border:1px solid #e9eef5;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(16, 24, 40, .06);
}
.theme-name{ padding:10px 12px; font-weight:600; font-size:13px; color:#0f172a; }

/* Preview area */
.theme-preview-img,
.theme-preview{
  width:100%;
  height:240px;
  display:block;
  border:0;
  background:#f6f7fb;
  object-fit:cover;
}

/* Buttons row under preview like clean UI */
.theme-buttons{
  display:flex;
  gap:10px;
  padding:10px 12px 12px;
}
.theme-buttons .btn{
  flex:1;
  border-radius:999px;
  padding:10px 12px;
  border:1px solid #e9eef5;
  background:#fff;
  cursor:pointer;
  font-weight:700;
}
.theme-buttons .btn-preview{ background:#ffffff; }
.theme-buttons .btn-edit{ background:#ff8a2a; border-color:#ff8a2a; color:#111; }
