/* ============================================================
   CELAL SAAT — admin.css  (Yönetim Paneli)
   ============================================================ */

/* -------- GİRİŞ -------- */
.alogin{min-height:calc(100vh - var(--head-h));display:grid;place-items:center;padding:40px 20px;}
.alogin__box{
  width:min(420px,100%);padding:clamp(28px,4vw,40px);border-radius:var(--r-xl);
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--sh-lg);
  display:flex;flex-direction:column;gap:19px;position:relative;overflow:hidden;
}
.alogin__box::before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,var(--gold-2),transparent);}
.alogin__ic{width:54px;height:54px;border-radius:var(--r);background:var(--gold-soft);display:grid;place-items:center;color:var(--gold-2);margin-inline:auto;}
.alogin__ic svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5;}
.alogin__hint{font-size:.72rem;color:var(--text-4);text-align:center;line-height:1.6;padding:11px;border-radius:var(--r-sm);background:var(--surface-2);border:1px dashed var(--line-2);}

/* -------- DÜZEN -------- */
.admin{display:grid;grid-template-columns:238px 1fr;gap:0;min-height:calc(100vh - var(--head-h));}
@media (max-width:900px){.admin{grid-template-columns:1fr;}}
.aside{
  border-right:1px solid var(--line);background:var(--bg-2);
  padding:24px 16px;display:flex;flex-direction:column;gap:7px;
  position:sticky;top:var(--head-h);height:calc(100vh - var(--head-h));overflow-y:auto;
}
@media (max-width:900px){
  .aside{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);
    flex-direction:row;overflow-x:auto;padding:12px;gap:6px;}
  .aside__sep{display:none;}
}
.aside__t{font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;color:var(--text-4);padding:10px 13px 6px;font-weight:700;}
@media (max-width:900px){.aside__t{display:none;}}
.anav{
  display:flex;align-items:center;gap:11px;padding:11px 13px;border-radius:var(--r-sm);
  font-size:.85rem;color:var(--text-2);transition:all .28s var(--e);white-space:nowrap;position:relative;
}
.anav svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
.anav:hover{background:var(--surface-2);color:var(--text);}
.anav.is-on{background:var(--gold-soft);color:var(--gold-2);font-weight:600;}
.anav__c{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:var(--surface-3);font-size:.64rem;font-weight:700;display:grid;place-items:center;font-family:var(--f-mono);}
.anav.is-on .anav__c{background:var(--gold-2);color:var(--on-accent);}
.anav__c--hot{background:var(--live);color:#fff;}
.aside__sep{height:1px;background:var(--line);margin:11px 13px;}

.apane{padding:clamp(20px,3vw,34px);min-width:0;}
.apane__head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:26px;}
.apane__title{font-family:var(--f-display);font-size:clamp(1.6rem,3vw,2.2rem);font-weight:500;line-height:1.1;}
.apane__sub{font-size:.84rem;color:var(--text-3);margin-top:4px;}

/* -------- İSTATİSTİK -------- */
.astats{display:grid;grid-template-columns:repeat(auto-fit,minmax(178px,1fr));gap:14px;margin-bottom:28px;}
.astat{
  padding:19px;border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line);
  display:flex;flex-direction:column;gap:9px;position:relative;overflow:hidden;transition:all .4s var(--e);
}
.astat:hover{transform:translateY(-4px);border-color:var(--gold-soft-2);}
.astat__ic{width:36px;height:36px;border-radius:var(--r-sm);background:var(--gold-soft);color:var(--gold-2);display:grid;place-items:center;}
.astat__ic svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.astat__n{font-family:var(--f-mono);font-size:1.9rem;font-weight:700;line-height:1;letter-spacing:-.03em;}
.astat__l{font-size:.72rem;color:var(--text-3);}
.astat--hot .astat__ic{background:color-mix(in srgb,var(--live) 15%,transparent);color:var(--live);}
.astat--hot .astat__n{color:var(--live);}

/* -------- TABLO -------- */
.atable-wrap{border:1px solid var(--line);border-radius:var(--r-lg);overflow:auto;background:var(--surface);}
.atable{width:100%;border-collapse:collapse;min-width:680px;}
.atable th{
  padding:12px 15px;text-align:left;font-size:.64rem;letter-spacing:.13em;text-transform:uppercase;
  color:var(--text-4);font-weight:700;border-bottom:1px solid var(--line);background:var(--surface-2);
  position:sticky;top:0;z-index:2;white-space:nowrap;
}
.atable td{padding:12px 15px;border-bottom:1px solid var(--line);font-size:.85rem;vertical-align:middle;}
.atable tbody tr{transition:background .25s;}
.atable tbody tr:hover{background:var(--surface-2);}
.atable tbody tr:last-child td{border-bottom:0;}
.atd-prod{display:flex;align-items:center;gap:12px;min-width:210px;}
.atd-img{width:48px;height:48px;border-radius:var(--r-sm);overflow:hidden;background:var(--surface-3);flex-shrink:0;border:1px solid var(--line);}
.atd-img img,.atd-img svg{width:100%;height:100%;object-fit:cover;}
.atd-n{font-weight:500;line-height:1.3;}
.atd-s{font-size:.72rem;color:var(--text-4);}
.arow-acts{display:flex;gap:6px;justify-content:flex-end;}
.iact{
  width:32px;height:32px;border-radius:var(--r-xs);display:grid;place-items:center;
  color:var(--text-3);border:1px solid var(--line);transition:all .25s;
}
.iact svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.iact:hover{color:var(--gold-2);border-color:var(--gold-2);background:var(--gold-soft);}
.iact--danger:hover{color:var(--danger);border-color:var(--danger);background:color-mix(in srgb,var(--danger) 12%,transparent);}
.iact--ok:hover{color:var(--ok);border-color:var(--ok);background:color-mix(in srgb,var(--ok) 12%,transparent);}

/* -------- FORM BLOKLARI -------- */
.acard{padding:clamp(18px,2.6vw,26px);border-radius:var(--r-lg);background:var(--surface);border:1px solid var(--line);display:flex;flex-direction:column;gap:18px;}
.acard__t{font-size:.68rem;letter-spacing:.17em;text-transform:uppercase;color:var(--gold-2);font-weight:700;padding-bottom:13px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;}
.agrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:16px;}
.agrid--2{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.aspan{grid-column:1/-1;}

/* -------- FOTOĞRAF YÜKLEME -------- */
.drop{
  border:2px dashed var(--line-2);border-radius:var(--r-lg);padding:28px 20px;text-align:center;
  transition:all .3s var(--e);cursor:pointer;background:var(--surface-2);
  display:flex;flex-direction:column;align-items:center;gap:9px;
}
.drop:hover,.drop.is-over{border-color:var(--gold-2);background:var(--gold-soft);}
.drop.is-disabled{opacity:.55;}
.drop.is-disabled:hover{border-color:var(--line-2);background:var(--surface-2);}
.drop svg{width:30px;height:30px;fill:none;stroke:var(--gold-2);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;}
.drop__t{font-size:.88rem;font-weight:600;}
.drop__s{font-size:.74rem;color:var(--text-4);}
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:11px;}
.thumb{
  position:relative;aspect-ratio:1;border-radius:var(--r-sm);overflow:hidden;
  border:1px solid var(--line);background:var(--surface-2);cursor:grab;
}
.thumb.is-drag{opacity:.4;}
.thumb img{width:100%;height:100%;object-fit:cover;}
.thumb__x{
  position:absolute;top:5px;right:5px;width:23px;height:23px;border-radius:50%;
  background:rgba(8,9,11,.82);color:#fff;display:grid;place-items:center;
  opacity:0;transition:opacity .25s;backdrop-filter:blur(6px);
}
.thumb:hover .thumb__x{opacity:1;}
.thumb__x svg{width:11px;height:11px;stroke:currentColor;stroke-width:2.6;fill:none;stroke-linecap:round;}
.thumb__cover{position:absolute;bottom:0;left:0;right:0;padding:3px;text-align:center;background:var(--gold-grad);color:var(--on-accent);font-size:.56rem;font-weight:700;letter-spacing:.1em;}

/* -------- TEKLİF ONAY KUTUSU -------- */
.bidreq{
  display:flex;align-items:center;gap:15px;padding:15px;border-radius:var(--r);
  background:var(--surface);border:1px solid var(--line);transition:all .3s;flex-wrap:wrap;
}
.bidreq:hover{border-color:var(--line-2);}
.bidreq--new{border-color:color-mix(in srgb,var(--live) 35%,transparent);background:color-mix(in srgb,var(--live) 5%,var(--surface));}
.bidreq__who{display:flex;flex-direction:column;gap:2px;min-width:140px;}
.bidreq__amt{font-family:var(--f-mono);font-size:1.1rem;font-weight:700;color:var(--gold-2);}
.bidreq__acts{margin-left:auto;display:flex;gap:7px;}

/* -------- YEDEK -------- */
.backup{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;}
.backup__box{padding:20px;border-radius:var(--r-lg);background:var(--surface-2);border:1px dashed var(--line-2);display:flex;flex-direction:column;gap:11px;}
.storage-bar{height:7px;border-radius:99px;background:var(--surface-3);overflow:hidden;}
.storage-bar i{display:block;height:100%;background:var(--gold-grad);border-radius:99px;transition:width .6s var(--e);}

/* -------- RENK SEÇİCİ -------- */
.colorrow{display:flex;align-items:center;gap:11px;}
.colorrow input[type="color"]{width:44px;height:36px;padding:2px;border:1px solid var(--line);border-radius:var(--r-xs);background:var(--surface-2);cursor:pointer;}
.swatches{display:flex;gap:8px;flex-wrap:wrap;}
.swatch{width:32px;height:32px;border-radius:50%;border:2px solid transparent;cursor:pointer;transition:transform .25s;}
.swatch:hover{transform:scale(1.14);}
.swatch.is-on{border-color:var(--text);box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--gold-2);}

/* -------- SEKME -------- */
.atabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow-x:auto;}
.atab{padding:11px 17px;font-size:.84rem;color:var(--text-3);border-bottom:2px solid transparent;transition:all .3s;white-space:nowrap;}
.atab:hover{color:var(--text);}
.atab.is-on{color:var(--gold-2);border-bottom-color:var(--gold-2);font-weight:600;}
