/* ═══════════════════════════════════════════
   HANTO v2.0 – Sosyal Medya Tasarım Editörü
   Dark / Light tema · Mobile-first · Layers
═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ── TOKENS ── */
:root {
  --bg:       #12151c;
  --s1:       #1a1e28;
  --s2:       #222739;
  --s3:       #2a2f42;
  --b1:       #2f3548;
  --b2:       #3d4560;
  --t1:       #ffffff;
  --t2:       #9ba3bc;
  --t3:       #4f5870;
  --ac:       #6c63ff;
  --ac2:      #ec4899;
  --acg:      rgba(108,99,255,.18);
  --shadow:   0 4px 24px rgba(0,0,0,.5);
  --shadow-s: 0 2px 12px rgba(0,0,0,.4);
  --r:        10px;
  --rs:       7px;
  --rx:       5px;
  --hnt-header-h: 52px;
  /* Download button: green */
  --dl-bg:    #16a34a;
  --dl-bg2:   #15803d;
  --dl-shadow: rgba(22,163,74,.4);
}

.hanto-wrap.theme-light {
  --bg:       #f0f2f7;
  --s1:       #ffffff;
  --s2:       #f5f6fa;
  --s3:       #eaedf5;
  --b1:       #e0e4ef;
  --b2:       #c8cedf;
  --t1:       #111827;
  --t2:       #5a6480;
  --t3:       #9aa0b4;
  --ac:       #6c63ff;
  --ac2:      #ec4899;
  --acg:      rgba(108,99,255,.1);
  --shadow:   0 4px 20px rgba(0,0,0,.1);
  --shadow-s: 0 2px 10px rgba(0,0,0,.08);
}

/* ── RESET ── */
.hanto-wrap *, .hanto-wrap *::before, .hanto-wrap *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  font-family: 'Poppins', -apple-system, system-ui, sans-serif;
}

.hanto-wrap {
  background: var(--bg);
  color: var(--t1);
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  position: relative;
}

/* ══════════════════ HEADER ══════════════════ */
.hnt-hd {
  background: var(--s1);
  border-bottom: 1px solid var(--b1);
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 400;
  box-shadow: var(--shadow-s);
  flex-shrink: 0;
}

.hnt-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; cursor: pointer; }
.hnt-logo-ico {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--ac), var(--ac2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; flex-shrink: 0;
}
.hnt-logo-text { display: flex; flex-direction: column; line-height: 1; }
.hnt-logo-text strong { font-size: 14px; font-weight: 700; color: var(--t1); }
.hnt-logo-text span   { font-size: 9px; color: var(--t2); font-weight: 500; display: none; }
@media(min-width:640px){ .hnt-logo-text span{ display:block; } }

.hnt-hd-actions { display: flex; align-items: center; gap: 6px; }

/* ── THEME TOGGLE ── */
.hnt-theme-toggle {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--s2); border: 1px solid var(--b1);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--t2); transition: all .15s;
}
.hnt-theme-toggle:hover { border-color: var(--ac); color: var(--t1); }

/* ══════════════════ BUTTONS ══════════════════ */
.hnt-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: var(--rs);
  font-size: 10px; font-weight: 600;
  cursor: pointer; transition: all .15s;
  border: none; white-space: nowrap; line-height: 1;
}
.hnt-btn i { font-size: 10px; }

/* Download button – GREEN */
.hnt-btn-dl {
  background: linear-gradient(135deg, var(--dl-bg), var(--dl-bg2));
  color: #fff;
  box-shadow: 0 4px 12px var(--dl-shadow);
}
.hnt-btn-dl:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--dl-shadow); filter: brightness(1.1); }

.hnt-btn-o { background: transparent; color: var(--t2); border: 1px solid var(--b2); }
.hnt-btn-o:hover { background: var(--s2); color: var(--t1); border-color: var(--b2); }
.hnt-btn-g { background: transparent; color: var(--t2); border: 1px solid transparent; }
.hnt-btn-g:hover { background: var(--s2); color: var(--t1); }
.hnt-btn-sm { padding: 5px 9px; font-size: 10px; }

/* ══════════════════ LAYOUT ══════════════════ */
.hnt-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: visible;
  align-items: flex-start;
}

/* ── PANELS ── */
.hnt-panel {
  background: var(--s1);
  border-right: 1px solid var(--b1);
  display: flex; flex-direction: column;
  width: 260px; flex-shrink: 0;
  overflow: hidden;
  transition: width .2s;
  position: sticky;
  top: var(--hnt-header-h);
  height: calc(100svh - var(--hnt-header-h));
  max-height: calc(100svh - var(--hnt-header-h));
}
.hnt-panel-r { border-right: none; border-left: 1px solid var(--b1); }

.hnt-panel-scroll {
  overflow-y: auto; flex: 1; padding: 10px; min-height: 0;
}
.hnt-panel-scroll::-webkit-scrollbar { width: 3px; }
.hnt-panel-scroll::-webkit-scrollbar-thumb { background: var(--b2); border-radius: 2px; }

/* ── TABS ── */
.hnt-tabs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 3px; padding: 7px; flex-shrink: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--b1);
}
.hnt-tab {
  padding: 7px 4px; border-radius: var(--rx); border: none;
  background: transparent; font-size: 9px; font-weight: 600;
  color: var(--t2); cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.hnt-tab.on { background: var(--s2); color: var(--t1); }
.hnt-tab i { font-size: 12px; }
.hnt-tp { display: none; }
.hnt-tp.on { display: block; }

/* Right panel tabs */
.hnt-rtp { display: none; flex-direction: column; flex: 1; overflow: hidden; min-height: 0; }
.hnt-rtp.on { display: flex; }

/* ── SECTION ── */
.hnt-sec { margin-bottom: 14px; }
.hnt-sec-hd {
  display: flex; align-items: center; gap: 5px;
  font-size: 8px; font-weight: 700; color: var(--t3);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 7px; padding-bottom: 5px;
  border-bottom: 1px solid var(--b1);
}
.hnt-sec-hd i { font-size: 9px; color: var(--ac); }

/* ── ADD BUTTONS ── */
.hnt-abtn {
  display: flex; align-items: center; gap: 7px;
  width: 100%; padding: 8px 10px;
  border-radius: var(--rs); border: 1px solid var(--b1);
  background: var(--s2); cursor: pointer;
  font-size: 10px; font-weight: 600; color: var(--t1);
  transition: all .15s; margin-bottom: 4px; text-align: left;
}
.hnt-abtn:hover { border-color: var(--ac); background: var(--acg); }
.hnt-abtn .ico {
  width: 24px; height: 24px; background: var(--s3);
  border-radius: 5px; display: flex; align-items: center;
  justify-content: center; font-size: 11px; color: var(--ac); flex-shrink: 0;
}

/* ══════════════════ GRIDS ══════════════════ */
.g5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; overflow: hidden; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; overflow: hidden; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; overflow: hidden; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; overflow: hidden; }

/* ── ICON BUTTONS (Shapes) ── */
.hnt-ibtn {
  padding: 6px 2px 5px; border-radius: var(--rx);
  border: 1px solid var(--b1); background: var(--s2);
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  font-size: 9px; font-weight: 600; color: var(--t2);
  transition: all .15s; min-height: 52px; min-width: 0; overflow: hidden;
}
.hnt-ibtn i { font-size: 15px; color: var(--ac); pointer-events: none; flex-shrink: 0; }
.hnt-ibtn span { font-size: 7px; color: var(--t3); line-height: 1; text-align: center; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hnt-ibtn:hover { border-color: var(--ac); background: var(--acg); color: var(--t1); }
.hnt-ibtn:hover span { color: var(--t1); }

/* ── SOC BUTTONS ── */
.hnt-soc {
  padding: 7px 2px 5px; border-radius: var(--rx);
  border: 1px solid var(--b1); background: var(--s2);
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  transition: all .15s; min-height: 52px; overflow: hidden;
  min-width: 0;
}
.hnt-soc i { font-size: 17px; line-height: 1; pointer-events: none; flex-shrink: 0; }
.hnt-soc span { font-size: 7px; color: var(--t3); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-align: center; }
.hnt-soc:hover { border-color: var(--b2); background: var(--s3); transform: scale(1.06); }

/* ── LINE BUTTONS ── */
.hnt-lbtn {
  padding: 8px 3px; border-radius: var(--rx);
  border: 1px solid var(--b1); background: var(--s2);
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 4px; font-size: 9px; font-weight: 600;
  color: var(--t2); transition: all .15s; flex-direction: column;
}
.hnt-lbtn i { font-size: 13px; color: var(--ac); }
.hnt-lbtn:hover { border-color: var(--ac); background: var(--acg); color: var(--t1); }

/* ── PROMO BUTTONS ── */
.hnt-promo {
  padding: 9px 5px; border-radius: var(--rx);
  border: 1px solid var(--b1); background: var(--s2);
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 3px; font-size: 9px; font-weight: 600;
  color: var(--t2); transition: all .15s; flex-direction: column; text-align: center;
}
.hnt-promo:hover { border-color: var(--ac2); background: rgba(236,72,153,.1); color: var(--t1); }
.hnt-promo i { font-size: 16px; color: var(--ac2); }

/* ── GRADIENT BUTTONS ── */
.hnt-grad-btn {
  aspect-ratio: 1; border-radius: var(--rx);
  border: 2px solid transparent; cursor: pointer; transition: all .15s;
  position: relative; overflow: hidden; min-width: 0;
}
.hnt-grad-btn:hover { border-color: var(--t1); transform: scale(1.08); box-shadow: 0 4px 12px rgba(0,0,0,.4); }

/* ── FORMAT BUTTONS ── */
.hnt-fmt-btn {
  display: flex; align-items: center;
  gap: 6px; padding: 9px 10px; border-radius: var(--rs);
  border: 1px solid var(--b1); background: var(--s2);
  cursor: pointer; transition: all .15s;
  font-size: 10px; font-weight: 600; color: var(--t2);
  width: 100%; margin-bottom: 4px;
}
.hnt-fmt-btn:hover,.hnt-fmt-btn.on { border-color: var(--ac); background: var(--acg); color: var(--t1); }
.hnt-fmt-btn .fi { font-size: 16px; flex-shrink: 0; }
.hnt-fmt-btn .fi-fa { width: 22px; text-align: center; color: var(--ac); font-size: 14px; flex-shrink: 0; }
.hnt-fmt-btn .fmt-info { display: flex; flex-direction: column; flex: 1; }
.hnt-fmt-btn .fmt-name { font-size: 10px; font-weight: 700; }
.hnt-fmt-btn .dim { font-size: 8px; color: var(--t3); }

/* ── TEMPLATE CARDS ── */
.hnt-tpl {
  border-radius: var(--rs); border: 1px solid var(--b1);
  cursor: pointer; aspect-ratio: 1;
  display: flex; align-items: flex-end; justify-content: stretch;
  transition: all .2s; position: relative; overflow: hidden;
}
.hnt-tpl:hover { border-color: var(--t1); transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,.5); }
.hnt-tpl-lbl {
  width: 100%; padding: 4px; font-size: 8px; font-weight: 700;
  background: rgba(0,0,0,.65); color: #fff; text-align: center;
}
.hnt-tpl-bg { position: absolute; inset: 0; }

/* ── PLUGIN CARDS ── */
.hnt-plugin-card {
  border-radius: var(--rs); border: 1px solid var(--b1);
  cursor: pointer; aspect-ratio: 1;
  display: flex; align-items: flex-end;
  transition: all .2s; position: relative; overflow: hidden;
}
.hnt-plugin-card:hover { border-color: var(--ac2); transform: scale(1.04); }
.hnt-plugin-card-bg { position: absolute; inset: 0; }
.hnt-plugin-card-lbl {
  width: 100%; padding: 4px; font-size: 8px; font-weight: 700;
  background: rgba(0,0,0,.7); color: #fff; text-align: center;
  position: relative; z-index: 1;
}

/* ══════════════════ COLOR ══════════════════ */
.hnt-clr-row { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.hnt-swatch {
  width: 28px; height: 28px; border-radius: 5px;
  border: 1.5px solid var(--b2); cursor: pointer;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.hnt-swatch input[type=color] {
  position: absolute; inset: -4px;
  width: calc(100% + 8px); height: calc(100% + 8px);
  cursor: pointer; border: none; padding: 0;
}
.hnt-swatch-check { background: repeating-conic-gradient(#555 0% 25%,#333 0% 50%) 0 0/10px 10px; }
.hnt-cinput {
  flex: 1; padding: 5px 7px; border: 1px solid var(--b1);
  border-radius: var(--rx); font-size: 11px; font-family: monospace;
  color: var(--t1); background: var(--s2);
}
.hnt-cinput:focus { outline: none; border-color: var(--ac); }

/* Color palette */
.hnt-pal { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 8px; }
.hnt-pc {
  width: 18px; height: 18px; border-radius: 3px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .12s; flex-shrink: 0;
}
.hnt-pc:hover { border-color: var(--t1); transform: scale(1.25); }

/* ══════════════════ GRADIENT BUILDER ══════════════════ */
.hnt-grad-builder {
  background: var(--s2); border: 1px solid var(--b1);
  border-radius: var(--rs); padding: 9px; margin-bottom: 8px;
}
.hnt-grad-prev {
  width: 100%; height: 32px; border-radius: var(--rx);
  margin-bottom: 7px; border: 1px solid var(--b1);
  background: repeating-conic-gradient(#555 0% 25%,#333 0% 50%) 0 0/10px 10px;
  position: relative; overflow: hidden;
}
.hnt-grad-inner { position: absolute; inset: 0; border-radius: 4px; }
.hnt-gtype-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 7px; }
.hnt-gtype-btn {
  padding: 5px; border-radius: 4px; border: 1px solid var(--b1);
  background: var(--s3); cursor: pointer; font-size: 10px; font-weight: 600;
  color: var(--t2); transition: all .15s;
}
.hnt-gtype-btn.on { border-color: var(--ac); color: var(--t1); background: var(--acg); }
.hnt-grad-stops { display: flex; gap: 5px; margin-bottom: 7px; }
.hnt-grad-stop { flex: 1; display: flex; flex-direction: column; gap: 3px; align-items: center; font-size: 9px; color: var(--t2); }
.hnt-grad-stop .hnt-swatch { width: 100%; height: 26px; border-radius: 4px; }

/* Fill tabs */
.hnt-fill-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; margin-bottom: 9px; }
.hnt-fill-tab {
  padding: 7px 3px; border-radius: 4px; border: 1px solid var(--b1);
  background: var(--s2); cursor: pointer;
  font-size: 9px; font-weight: 700; color: var(--t3);
  text-align: center; transition: all .15s;
}
.hnt-fill-tab:hover,.hnt-fill-tab.on { border-color: var(--ac); color: var(--t1); background: var(--acg); }
.hnt-fill-tab i { display: block; font-size: 12px; margin-bottom: 2px; }

/* ══════════════════ FONT PICKER ══════════════════ */
.hnt-font-sel { position: relative; margin-bottom: 7px; }
.hnt-font-display {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 8px 10px; border: 1px solid var(--b1);
  border-radius: var(--rx); background: var(--s2); cursor: pointer;
  font-size: 12px; color: var(--t1); transition: border-color .15s;
}
.hnt-font-display:hover { border-color: var(--ac); }
.hnt-font-display .fn { font-size: 13px; font-weight: 600; }
.hnt-font-dd {
  position: absolute; top: calc(100% + 3px); left: 0; right: 0;
  background: var(--s1); border: 1px solid var(--b2);
  border-radius: var(--rs); box-shadow: var(--shadow);
  z-index: 600; max-height: 290px; overflow-y: auto; display: none;
}
.hnt-font-dd.open { display: block; }
.hnt-font-dd::-webkit-scrollbar { width: 3px; }
.hnt-font-dd::-webkit-scrollbar-thumb { background: var(--b2); }
.hnt-font-search {
  padding: 7px; border-bottom: 1px solid var(--b1);
  position: sticky; top: 0; background: var(--s1); z-index: 2;
}
.hnt-font-search input {
  width: 100%; padding: 6px 8px; border: 1px solid var(--b1);
  border-radius: var(--rx); background: var(--s2); color: var(--t1); font-size: 11px;
}
.hnt-font-search input:focus { outline: none; border-color: var(--ac); }
.hnt-font-grp {
  padding: 5px 11px 2px; font-size: 9px; font-weight: 700; color: var(--t3);
  text-transform: uppercase; letter-spacing: .1em;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.hnt-font-opt {
  padding: 8px 12px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.03);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .12s;
}
.hnt-font-opt:hover { background: var(--acg); }
.hnt-font-opt.on { background: rgba(108,99,255,.15); color: var(--ac); }
.hnt-font-opt .prev { font-size: 15px; color: var(--t1); }
.hnt-font-opt .fn-label { font-size: 9px; color: var(--t2); }

/* ══════════════════ CUSTOM ICON PANEL ══════════════════ */
.hnt-icon-upload {
  border: 1.5px dashed var(--b2); border-radius: var(--rs);
  padding: 12px; text-align: center; cursor: pointer;
  transition: all .2s; margin-bottom: 7px;
}
.hnt-icon-upload:hover { border-color: var(--ac); background: var(--acg); }
.hnt-icon-upload i { font-size: 20px; color: var(--t3); margin-bottom: 4px; display: block; }
.hnt-icon-upload p { font-size: 10px; color: var(--t2); }

.hnt-custom-icons { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; }
.hnt-cicon {
  aspect-ratio: 1; border-radius: var(--rx);
  border: 1px solid var(--b1); background: var(--s2);
  cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: all .15s;
}
.hnt-cicon:hover { border-color: var(--ac); transform: scale(1.06); }
.hnt-cicon img { width: 100%; height: 100%; object-fit: contain; }
.hnt-cicon .del-ico {
  position: absolute; top: 1px; right: 1px;
  width: 14px; height: 14px; border-radius: 3px;
  background: rgba(239,68,68,.8); color: #fff;
  font-size: 8px; display: none; align-items: center; justify-content: center;
  border: none; cursor: pointer;
}
.hnt-cicon:hover .del-ico { display: flex; }

/* ══════════════════ UPLOAD AREA ══════════════════ */
.hnt-upload {
  border: 1.5px dashed var(--b2); border-radius: var(--rs);
  padding: 13px; text-align: center; cursor: pointer;
  transition: all .2s; margin-bottom: 7px;
}
.hnt-upload:hover { border-color: var(--ac); background: var(--acg); }
.hnt-upload i { font-size: 20px; color: var(--t3); margin-bottom: 4px; display: block; }
.hnt-upload p { font-size: 10px; color: var(--t2); }

/* ══════════════════ INPUTS ══════════════════ */
.hnt-slider {
  -webkit-appearance: none; width: 100%; height: 3px;
  border-radius: 2px; background: var(--s3); outline: none;
  margin-bottom: 9px; cursor: pointer;
}
.hnt-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px;
  border-radius: 50%; background: var(--ac); cursor: pointer;
  box-shadow: 0 0 0 3px rgba(108,99,255,.3);
}
.hnt-inp,.hnt-sel,.hnt-txa {
  width: 100%; padding: 6px 8px; border: 1px solid var(--b1);
  border-radius: var(--rx); font-size: 11px;
  color: var(--t1); background: var(--s2); transition: border-color .15s; margin-bottom: 7px;
}
.hnt-inp:focus,.hnt-sel:focus,.hnt-txa:focus { outline: none; border-color: var(--ac); background: var(--s3); }
.hnt-sel { cursor: pointer; }
.hnt-txa { resize: none; height: 55px; }

/* ══════════════════ CANVAS AREA ══════════════════ */
.hnt-canvas-area {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 16px; overflow: auto;
  background: var(--bg); position: sticky; min-width: 0;
  top: var(--hnt-header-h);
  height: calc(100svh - var(--hnt-header-h));
}

/* Toolbar */
.hnt-toolbar {
  display: flex; gap: 3px; flex-wrap: nowrap;
  margin-bottom: 12px; background: var(--s1);
  padding: 5px; border-radius: var(--rs);
  border: 1px solid var(--b1); box-shadow: var(--shadow-s);
  overflow-x: auto; flex-shrink: 0; max-width: 100%;
}
.hnt-toolbar::-webkit-scrollbar { height: 2px; }
.hnt-toolbar::-webkit-scrollbar-thumb { background: var(--b2); }
.hnt-tool {
  width: 30px; height: 30px; border-radius: var(--rx);
  border: 1px solid transparent; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 11px; transition: all .13s; color: var(--t2); flex-shrink: 0;
}
.hnt-tool:hover { background: var(--s2); color: var(--t1); border-color: var(--b1); }
.hnt-tool.on { background: var(--acg); border-color: var(--ac); color: var(--ac); }
.hnt-tsep { width: 1px; background: var(--b1); margin: 4px 2px; flex-shrink: 0; }

.hnt-canvas-wrap { background: #fff; box-shadow: 0 8px 50px rgba(0,0,0,.55); border-radius: 3px; overflow: hidden; }
#hnt-canvas { display: block; }

/* Zoom */
.hnt-zoom {
  position: absolute; bottom: 14px; right: 14px;
  display: flex; flex-direction: column; gap: 3px; align-items: center; z-index: 10;
}
.hnt-zoom-btn {
  width: 26px; height: 26px; border-radius: 5px; border: 1px solid var(--b1);
  background: var(--s1); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; box-shadow: var(--shadow-s);
  transition: all .13s; color: var(--t2);
}
.hnt-zoom-btn:hover { border-color: var(--ac); color: var(--t1); }
.hnt-zoom-lbl {
  font-size: 9px; font-weight: 700; color: var(--t2);
  background: var(--s1); padding: 2px 5px; border-radius: 4px;
  border: 1px solid var(--b1);
}

/* ══════════════════ PROPS PANEL ══════════════════ */
.hnt-props-hd {
  padding: 10px 12px; border-bottom: 1px solid var(--b1);
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--t1);
  flex-shrink: 0;
}
.hnt-props-hd i { color: var(--ac); font-size: 12px; }

.hnt-props-body { padding: 10px; overflow-y: auto; flex: 1; min-height: 0; }
.hnt-props-body::-webkit-scrollbar { width: 3px; }
.hnt-props-body::-webkit-scrollbar-thumb { background: var(--b2); }

.hnt-nosel { text-align: center; padding: 30px 12px; color: var(--t3); }
.hnt-nosel i { font-size: 28px; margin-bottom: 8px; display: block; }
.hnt-nosel p { font-size: 11px; line-height: 1.5; }

.hnt-psec { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--b1); }
.hnt-psec:last-child { border-bottom: none; }
.hnt-psec-t {
  font-size: 9px; font-weight: 700; color: var(--t3);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 7px; display: flex; align-items: center; gap: 4px;
}
.hnt-psec-t i { color: var(--ac); font-size: 9px; }
.hnt-plbl {
  font-size: 10px; font-weight: 600; color: var(--t2);
  margin-bottom: 4px; display: flex; justify-content: space-between;
}
.hnt-plbl span:last-child { color: var(--ac); font-family: monospace; }
.hnt-xy { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.hnt-inlbl { font-size: 9px; color: var(--t3); margin-bottom: 3px; }

.hnt-sbtn {
  padding: 6px; border-radius: 4px; border: 1px solid var(--b1);
  background: var(--s2); cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  transition: all .13s; color: var(--t2);
}
.hnt-sbtn:hover,.hnt-sbtn.on { border-color: var(--ac); background: var(--acg); color: var(--t1); }

.hnt-layer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 7px; }
.hnt-layer-btn {
  padding: 6px; border-radius: 4px; border: 1px solid var(--b1);
  background: var(--s2); cursor: pointer;
  font-size: 10px; font-weight: 600; color: var(--t2);
  display: flex; align-items: center; justify-content: center; gap: 3px; transition: all .13s;
}
.hnt-layer-btn:hover { border-color: var(--b2); color: var(--t1); }

.hnt-del-btn {
  width: 100%; padding: 7px; border-radius: var(--rx);
  border: 1px solid rgba(239,68,68,.3); background: rgba(239,68,68,.08);
  cursor: pointer; font-size: 11px; font-weight: 600; color: #f87171;
  display: flex; align-items: center; justify-content: center; gap: 4px; transition: all .13s;
}
.hnt-del-btn:hover { background: rgba(239,68,68,.18); }

.hnt-align-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; margin-bottom: 7px; }
.hnt-fs-row    { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; margin-bottom: 7px; }

/* ══════════════════ LAYERS PANEL ══════════════════ */
.hnt-layers-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; }
.hnt-layers-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-bottom: 1px solid var(--b1); flex-shrink: 0;
}
.hnt-layers-title { font-size: 11px; font-weight: 700; color: var(--t1); display: flex; align-items: center; gap: 5px; }
.hnt-layers-title i { color: var(--ac); }
.hnt-layer-tool {
  width: 26px; height: 26px; border-radius: 5px;
  border: 1px solid var(--b1); background: var(--s2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--t2); transition: all .13s;
}
.hnt-layer-tool:hover { border-color: var(--ac); color: var(--t1); }

.hnt-layers-list {
  flex: 1; overflow-y: auto; padding: 8px; min-height: 0;
}
.hnt-layers-list::-webkit-scrollbar { width: 3px; }
.hnt-layers-list::-webkit-scrollbar-thumb { background: var(--b2); }
.hnt-layers-empty { text-align: center; padding: 30px 12px; color: var(--t3); }
.hnt-layers-empty i { font-size: 24px; display: block; margin-bottom: 8px; }
.hnt-layers-empty p { font-size: 10px; }

/* Layer item */
.hnt-layer-item {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 8px; border-radius: var(--rx);
  border: 1px solid var(--b1); background: var(--s2);
  margin-bottom: 4px; cursor: grab; transition: all .15s;
  user-select: none;
}
.hnt-layer-item:hover { border-color: var(--ac); }
.hnt-layer-item.active { border-color: var(--ac); background: var(--acg); }
.hnt-layer-item.dragging { opacity: .5; cursor: grabbing; }
.hnt-layer-item.drag-over { border-color: var(--ac2); background: rgba(236,72,153,.1); }

.hnt-layer-drag { color: var(--t3); font-size: 9px; cursor: grab; }
.hnt-layer-thumb {
  width: 28px; height: 28px; border-radius: 3px;
  border: 1px solid var(--b1); background: var(--s3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.hnt-layer-thumb i { font-size: 10px; color: var(--ac); }
.hnt-layer-info { flex: 1; min-width: 0; }
.hnt-layer-name { font-size: 10px; font-weight: 600; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hnt-layer-type { font-size: 8px; color: var(--t3); }
.hnt-layer-actions { display: flex; gap: 2px; flex-shrink: 0; }
.hnt-layer-action {
  width: 22px; height: 22px; border-radius: 4px;
  border: 1px solid var(--b1); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--t2); transition: all .13s;
}
.hnt-layer-action:hover { border-color: var(--ac); color: var(--t1); }
.hnt-layer-action.del:hover { border-color: #f87171; color: #f87171; }

/* ══════════════════ NOTIFY ══════════════════ */
.hnt-notify {
  position: fixed; bottom: 70px; left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--s2); border: 1px solid var(--ac); color: var(--t1);
  padding: 8px 16px; border-radius: 24px;
  font-size: 11px; font-weight: 600; z-index: 9999;
  transition: transform .3s; pointer-events: none;
  box-shadow: 0 4px 16px rgba(108,99,255,.3);
}
.hnt-notify.on { transform: translateX(-50%) translateY(0); }

/* ══════════════════ MOBILE ══════════════════ */
.hnt-mob-bar {
  display: none; background: var(--s1);
  border-top: 1px solid var(--b1);
  flex-shrink: 0; z-index: 300;
}
.hnt-mob-tabs { display: flex; }
.hnt-mob-tab {
  flex: 1; padding: 9px 4px;
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; font-size: 8px; font-weight: 600; color: var(--t2);
  background: transparent; border: none; cursor: pointer; transition: all .15s;
}
.hnt-mob-tab i { font-size: 16px; }
.hnt-mob-tab.on { color: var(--ac); background: var(--acg); }

.hnt-mob-sheet {
  display: none; position: fixed; bottom: 56px; left: 0; right: 0;
  background: var(--s1); border-top: 1px solid var(--b1);
  border-radius: 16px 16px 0 0;
  z-index: 350; max-height: 65vh; overflow-y: auto; padding: 8px 10px 16px;
}
.hnt-mob-sheet::-webkit-scrollbar { width: 3px; }
.hnt-mob-sheet::-webkit-scrollbar-thumb { background: var(--b2); }
.hnt-mob-sheet.open { display: block; }
.hnt-mob-sheet-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--b2); margin: 0 auto 10px;
}

/* Mobile quick-action floating bar */
.hnt-mob-quick {
  display: none; position: fixed; bottom: 65px; right: 12px;
  z-index: 360; flex-direction: column; gap: 6px; align-items: flex-end;
}
.hnt-mob-q-btn {
  width: 44px; height: 44px; border-radius: 12px;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: all .15s;
}
.hnt-mob-q-btn:active { transform: scale(.92); }

.hnt-hidden { display: none !important; }
.hnt-divider { height: 1px; background: var(--b1); margin: 7px 0; }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 900px) {
  .hnt-panel { width: 230px; }
}

@media (max-width: 768px) {
  .hnt-panel,.hnt-panel-r { display: none; }
  .hnt-body { flex-direction: column; overflow: hidden; }
  .hnt-canvas-area { padding: 8px; position: relative; top: auto; height: auto; min-height: calc(100svh - 104px); }
  .hnt-mob-bar { display: block; }
  .hnt-mob-quick { display: flex; }
  .hnt-notify { bottom: 70px; }
  .g5 { grid-template-columns: repeat(4,1fr); }
  .g4 { grid-template-columns: repeat(3,1fr); }
  .g3 { grid-template-columns: repeat(2,1fr); }
  .hnt-btn-lbl { display: none; }
}

@media (max-width: 480px) {
  .hnt-hd { height: 48px; }
  .hnt-btn-g { display: none; }
  .g5, .g4 { grid-template-columns: repeat(3,1fr); }
  .g3, .g2 { grid-template-columns: 1fr 1fr; }
  .hnt-toolbar { margin-bottom: 8px; }
}

/* Icon pointer-events fix */
.hnt-ibtn svg, .hnt-ibtn i, .hnt-soc svg, .hnt-soc i, .hnt-tool i, .hnt-abtn .ico i, .hnt-sbtn i, .hnt-layer-btn i { pointer-events:none; }
#hnt-custom-icons, .g5, .g4, .g3, .g2 { min-width: 0; }

/* ══════════════════ ELEMENTÖR TAM GENİŞLİK OPTİMİZASYON ══════════════════ */
/* Elementör Canvas/Full-width şablon uyumu */
.elementor-section-full_width .hanto-wrap,
.elementor-template-full-width .hanto-wrap,
.e-full-width-viewport .hanto-wrap {
  min-height: 100svh;
  width: 100%;
}

/* Elementör varsayılan padding/margin sıfırlama */
.elementor-widget-hanto .hanto-wrap,
.elementor-widget-shortcode .hanto-wrap {
  margin: 0 !important;
  padding: 0 !important;
}

/* Tüm Elementör içerik genişlik kısıtlamalarını kaldır */
.elementor-widget-wrap > .hanto-wrap {
  max-width: none !important;
}

/* ── PLUGIN / TEMPLATES PANEL ── */
.hnt-fmt-filter-btns {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px;
}
.hnt-tpl-fb {
  padding: 4px 10px; border-radius: 20px; border: 1px solid var(--b1);
  background: var(--s2); font-size: 9px; font-weight: 600; color: var(--t2);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.hnt-tpl-fb.on { background: var(--acg); color: var(--ac); border-color: var(--ac); }
.hnt-tpl-fb:hover { border-color: var(--ac); color: var(--t1); }

.hnt-plugin-card {
  border-radius: var(--rs); border: 1px solid var(--b1);
  cursor: pointer; aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  transition: all .2s; position: relative; overflow: hidden;
}
.hnt-plugin-card:hover { border-color: var(--ac); transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.hnt-plugin-card-bg { position: absolute; inset: 0; }
.hnt-plugin-card-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hnt-plugin-card-icon { position: relative; z-index: 1; font-size: 28px; margin-bottom: 2px; line-height: 1; }
.hnt-plugin-card-lbl {
  width: 100%; padding: 4px; font-size: 8px; font-weight: 700;
  background: rgba(0,0,0,.7); color: #fff; text-align: center;
  position: relative; z-index: 1;
}

.hnt-plugin-empty {
  grid-column: 1 / -1; text-align: center; padding: 24px 12px;
  color: var(--t3); border: 1px dashed var(--b2); border-radius: var(--rs);
}
.hnt-plugin-empty i { font-size: 22px; display: block; margin-bottom: 6px; color: var(--ac); }
.hnt-plugin-empty p { font-size: 10px; line-height: 1.5; }


/* === 2026-03 UI tweaks === */
.hnt-ibtn { min-height: 58px; padding: 8px 4px; }
.hnt-ibtn span { display: none; }
.hnt-ibtn i { font-size: 18px; }

.hnt-grad-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; overflow: hidden; }
.hnt-grad-btn { aspect-ratio: 1.35; min-height: 44px; border-radius: 10px; border: 1px solid var(--b1); }
.hnt-grad-btn:hover { transform: translateY(-1px) scale(1.02); border-color: var(--ac); }
.hnt-hex-ico { width: 18px; height: 16px; display: inline-block; background: currentColor; clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }

.hnt-plugin-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; overflow: hidden; }
.hnt-fmt-filter-inline { margin-bottom: 8px; }
.hnt-plugin-card { aspect-ratio: .9; border-radius: 12px; }
.hnt-plugin-card-icon { font-size: 30px; margin-bottom: 6px; }
.hnt-plugin-card-lbl { font-size: 9px; padding: 6px 5px; }

@media (max-width: 1024px) {
  .hnt-grad-grid, .hnt-plugin-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .hnt-grad-grid, .hnt-plugin-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .hnt-grad-btn { min-height: 40px; }
  .hnt-plugin-card { aspect-ratio: 1; }
}


/* 2026-03 typography refinement */
.hnt-sec-hd, .hnt-psec-t, .hnt-inlbl, .hnt-layer-type, .hnt-plugin-card-lbl, .hnt-fmt-btn .fmt-name, .hnt-font-opt .fn-label { letter-spacing: .08em; }
.hnt-props-hd { font-size: 11px; }
.hnt-psec-t { font-size: 8px; }
.hnt-inp, .hnt-sel, .hnt-cinput, .hnt-range-val, .hnt-font-display .fn, .hnt-layer-name, .hnt-layers-title { font-size: 10px; }
