:root{
  --blue:#1670f8;
  --blue2:#0e61dc;
  --navy:#0c1a34;
  --bg:#f4f7fb;
  --panel:#fff;
  --border:#e5ecf5;
  --muted:#718096;
  --green:#14a962;
  --green-bg:#e7f9ef;
  --orange:#f0a229;
  --orange-bg:#fff3dc;
  --violet:#7655e8;
  --violet-bg:#f0ebff;
  --red:#e85454;
  --shadow:0 10px 35px rgba(26,48,84,.07);
}

html,body{
  background:var(--bg)!important;
}

body{
  color:var(--navy)!important;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
}

.sidebar{
  width:250px!important;
  background:#fff!important;
  border-right:1px solid var(--border)!important;
  padding:22px 12px!important;
}

.brand{
  padding:0 10px 24px!important;
}

.brand strong{
  font-size:18px!important;
  font-weight:850!important;
  letter-spacing:-.03em;
}

.brand small{
  color:#8390a4!important;
}

.sidebar nav a{
  min-height:50px!important;
  margin:3px 0!important;
  border-radius:12px!important;
  color:#53647c!important;
  font-weight:650!important;
}

.sidebar nav a:hover{
  background:#f2f6fb!important;
  color:var(--blue)!important;
}

.sidebar nav a.active{
  background:#e8f2ff!important;
  color:var(--blue)!important;
  font-weight:800!important;
}

.topbar{
  min-height:72px!important;
  background:rgba(255,255,255,.96)!important;
  border-bottom:1px solid var(--border)!important;
  padding:0 28px!important;
}

.topbar input{
  max-width:460px!important;
  height:44px!important;
  border:1px solid #e0e8f1!important;
  background:#f7f9fc!important;
  border-radius:12px!important;
}

main{
  background:var(--bg)!important;
  padding:32px!important;
}

h1{
  font-size:30px!important;
  font-weight:900!important;
  letter-spacing:-.045em!important;
  margin-bottom:7px!important;
}

h2{
  font-weight:850!important;
  letter-spacing:-.025em!important;
}

.panel{
  background:#fff!important;
  border:1px solid var(--border)!important;
  border-radius:18px!important;
  box-shadow:none!important;
  padding:22px!important;
}

.panel-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.panel-title-row h2{
  margin:0 0 4px;
  font-size:18px;
}

.panel-title-row p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.premium-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin:22px 0 18px;
}

.pmetric{
  display:flex;
  align-items:center;
  gap:16px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:17px;
  padding:20px;
  min-height:116px;
}

.pmetric-icon{
  width:52px;
  height:52px;
  flex:0 0 52px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:23px;
  font-weight:900;
}

.pmetric-icon.blue{background:#e6f1ff;color:var(--blue)}
.pmetric-icon.violet{background:var(--violet-bg);color:var(--violet)}
.pmetric-icon.green{background:var(--green-bg);color:var(--green)}
.pmetric-icon.orange{background:var(--orange-bg);color:var(--orange)}

.pmetric div{
  display:flex;
  flex-direction:column;
}

.pmetric small{
  color:#60708a;
  font-weight:700;
  font-size:12px;
}

.pmetric strong{
  font-size:29px;
  line-height:1.1;
  margin:5px 0 3px;
  color:#07172f;
}

.pmetric em{
  font-size:12px;
  color:#8793a4;
  font-style:normal;
}

.premium-grid-main{
  display:grid;
  grid-template-columns:1.25fr .9fr;
  gap:16px;
  margin-bottom:16px;
}

.premium-grid-lower{
  display:grid;
  grid-template-columns:1.4fr .7fr;
  gap:16px;
}

.hero-product-body{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:24px;
  align-items:center;
}

.hero-phone{
  width:210px;
  max-width:100%;
  display:block;
  margin:auto;
}

.eyebrow{
  color:var(--blue);
  font-size:12px;
  text-transform:uppercase;
  font-weight:850;
  letter-spacing:.07em;
}

.hero-info h3{
  font-size:22px;
  margin:5px 0 12px;
  letter-spacing:-.035em;
}

.chip-row{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}

.chip-row span{
  background:#eef5ff;
  color:#3d6698;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:750;
}

.best-price{
  font-size:34px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.05em;
  margin:22px 0 8px;
  color:#08172f;
}

.best-vendor{
  display:flex;
  align-items:center;
  gap:8px;
  color:#55657c;
  font-size:13px;
}

.target-line{
  display:flex;
  justify-content:space-between;
  align-items:center;
  max-width:420px;
  border-top:1px solid #edf1f6;
  border-bottom:1px solid #edf1f6;
  padding:12px 0;
  margin:16px 0;
  color:#6b798e;
  font-size:13px;
}

.target-line strong{
  color:var(--green);
}

.status-dot,
.mini-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--green-bg);
  color:var(--green);
  border-radius:999px;
  padding:7px 11px;
  font-size:11px;
  font-weight:800;
}

.mini-pill{
  background:#eef5ff;
  color:var(--blue);
}

.offer-stack{
  display:flex;
  flex-direction:column;
}

.offer-row{
  min-height:65px;
  border-bottom:1px solid #edf2f7;
  display:grid;
  grid-template-columns:1fr auto 170px;
  gap:12px;
  align-items:center;
}

.offer-row:last-child{
  border-bottom:0;
}

.offer-store{
  display:flex;
  align-items:center;
  gap:12px;
}

.offer-store>div{
  display:flex;
  flex-direction:column;
}

.offer-store strong{
  font-size:14px;
}

.offer-store small{
  color:#77859a;
  margin-top:3px;
}

.store-badge{
  width:35px;
  height:35px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#edf4ff;
  color:#276bc6;
  font-size:11px;
  font-weight:900;
  flex:0 0 35px;
}

.best-badge{
  background:var(--green-bg);
  color:var(--green);
  border-radius:999px;
  padding:6px 9px;
  font-size:10px;
  font-weight:850;
}

.offer-price{
  text-align:right;
}

.offer-price strong{
  display:block;
  font-size:16px;
  margin-bottom:4px;
}

.tag{
  display:inline-flex;
  padding:5px 8px;
  border-radius:999px;
  background:#f0f3f7;
  color:#617087;
  font-size:10px;
  font-weight:800;
}

.tag.green{background:var(--green-bg);color:var(--green)}
.tag.blue{background:#e7f2ff;color:var(--blue)}
.tag.violet{background:var(--violet-bg);color:var(--violet)}

.scan-line{
  min-height:53px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #edf2f7;
  color:#5e6d82;
  font-size:13px;
}

.scan-line strong{
  color:#132139;
}

.scan-note{
  margin-top:15px;
  background:#edf6ff;
  color:#567594;
  border-radius:12px;
  padding:15px;
  font-size:12px;
  line-height:1.55;
}

.chart-wrap{
  width:100%;
}

.chart-wrap svg{
  width:100%;
  height:215px;
  overflow:visible;
}

.chart-axis{
  stroke:#dfe7f1;
  stroke-width:1;
}

.chart-line{
  fill:none;
  stroke:var(--blue);
  stroke-width:3;
  stroke-linejoin:round;
  stroke-linecap:round;
}

.chart-dot{
  fill:var(--blue);
  stroke:white;
  stroke-width:3;
}

.chart-top,
.chart-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#8290a3;
  font-size:11px;
}

.chart-foot strong{
  color:var(--blue);
}

.chart-empty,
.empty-mini{
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#8a97a8;
}

.top-action{
  display:flex;
  justify-content:flex-end;
  margin:-48px 0 24px;
}

.product-detail-top{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:32px;
  align-items:center;
}

.product-gallery{
  background:#f3f7fc;
  border-radius:18px;
  min-height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.product-gallery img{
  width:270px;
  max-width:90%;
}

.product-summary h2{
  font-size:27px!important;
  margin:5px 0 13px!important;
}

.summary-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:22px 0;
}

.summary-card{
  background:#f7f9fc;
  border:1px solid var(--border);
  border-radius:15px;
  padding:18px;
  display:flex;
  flex-direction:column;
}

.summary-card.green{
  background:#ecfaf3;
}

.summary-card small{
  color:#718096;
  font-weight:700;
}

.summary-card strong{
  font-size:25px;
  margin:7px 0;
}

.summary-card.green strong{
  color:var(--green);
}

.summary-card span{
  color:#718096;
  font-size:12px;
}

.product-actions{
  display:flex;
  gap:9px;
}

.tabs{
  display:flex;
  gap:28px;
  border-bottom:1px solid #e9eef5;
  margin:26px -22px 12px;
  padding:0 22px;
}

.tabs span{
  padding:13px 2px;
  color:#6c7b91;
  font-size:13px;
  font-weight:750;
}

.tabs span.active{
  color:var(--blue);
  border-bottom:2px solid var(--blue);
}

.table-scroll{
  overflow:auto;
  border-radius:13px;
}

table{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}

thead th{
  background:#f4f7fb!important;
  color:#5c6c84!important;
  font-size:11px!important;
  font-weight:800!important;
  padding:13px 11px!important;
  border:0!important;
  white-space:nowrap;
}

tbody td{
  background:#fff!important;
  border-bottom:1px solid #edf1f6!important;
  padding:14px 11px!important;
  color:#293950!important;
  font-size:12px!important;
  vertical-align:middle!important;
}

tbody tr:last-child td{
  border-bottom:0!important;
}

tbody tr:hover td{
  background:#fbfdff!important;
}

.good{
  color:var(--green)!important;
  font-weight:850!important;
}

.table-link{
  display:inline-block;
  text-decoration:none;
  background:#edf5ff;
  color:var(--blue);
  padding:7px 9px;
  border-radius:8px;
  font-weight:750;
  white-space:nowrap;
}

.detail-chart{
  margin-top:25px;
  border-top:1px solid #edf1f6;
  padding-top:20px;
}

.detail-chart h3{
  margin-top:0;
}

.deal-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.deal-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:22px;
}

.deal-card-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

.deal-card h2{
  font-size:19px!important;
}

.deal-price{
  font-size:36px;
  font-weight:950;
  letter-spacing:-.05em;
  margin:22px 0 8px;
}

.deal-vendor{
  color:#627187;
  display:flex;
  gap:8px;
  align-items:center;
}

.deal-target{
  display:flex;
  justify-content:space-between;
  border-top:1px solid #edf1f6;
  margin-top:17px;
  padding-top:15px;
}

.deal-target strong{
  color:var(--green);
}

.link-button{
  display:inline-block;
  text-decoration:none;
  margin-top:18px;
  padding:10px 15px;
}

button,.primary,.secondary{
  border-radius:10px!important;
  font-weight:750!important;
}

.primary{
  background:var(--blue)!important;
  color:#fff!important;
  border-color:var(--blue)!important;
  box-shadow:0 7px 20px rgba(22,112,248,.16)!important;
}

.primary:hover{
  background:var(--blue2)!important;
}

.secondary{
  background:#fff!important;
  border:1px solid #d9e3ef!important;
  color:#3568a7!important;
}

.mini-action{
  border:0;
  background:var(--green-bg);
  color:var(--green);
  border-radius:999px!important;
  padding:6px 10px;
  min-height:0!important;
}

.danger-ghost{
  border:1px solid #ffd4d4;
  color:#d85555;
  background:#fff;
}

.dialog{
  border-radius:18px!important;
  box-shadow:0 25px 80px rgba(12,31,59,.22)!important;
}

input,select,textarea{
  border-radius:10px!important;
  border:1px solid #dbe4ef!important;
  background:#fff!important;
}

input:focus,select:focus,textarea:focus{
  border-color:#77adfb!important;
  box-shadow:0 0 0 3px rgba(22,112,248,.10)!important;
}

@media(max-width:1150px){
  .premium-metrics{grid-template-columns:repeat(2,1fr)}
  .premium-grid-main,.premium-grid-lower{grid-template-columns:1fr}
}

@media(max-width:760px){
  main{padding:18px!important}
  .premium-metrics{grid-template-columns:1fr}
  .hero-product-body,.product-detail-top{grid-template-columns:1fr}
  .hero-phone{width:180px}
  .summary-cards{grid-template-columns:1fr}
  .deal-grid{grid-template-columns:1fr}
  .top-action{margin:0 0 18px}
}

/* ===== ERK FINAL POLISH START ===== */

/* Sayfayı biraz daha yukarı ve kompakt getir */
main{
  padding-top:22px!important;
}

h1{
  margin-top:0!important;
  margin-bottom:5px!important;
}

/* Üst kartları incelt */
.premium-metrics{
  margin-top:18px!important;
  margin-bottom:14px!important;
  gap:14px!important;
}

.pmetric{
  min-height:98px!important;
  padding:16px 18px!important;
}

.pmetric-icon{
  width:46px!important;
  height:46px!important;
  flex-basis:46px!important;
}

.pmetric strong{
  font-size:26px!important;
}

/* Ana fırsat ve grafik yüksekliğini azalt */
.premium-grid-main{
  grid-template-columns:1.18fr .82fr!important;
  gap:14px!important;
  margin-bottom:14px!important;
}

.hero-product{
  padding:18px!important;
}

.hero-product-body{
  grid-template-columns:200px 1fr!important;
  gap:20px!important;
}

.hero-phone{
  width:190px!important;
  filter:
    drop-shadow(0 18px 18px rgba(16,45,79,.14))
    saturate(1.06);
}

.hero-info h3{
  margin-top:2px!important;
  margin-bottom:9px!important;
  font-size:21px!important;
}

.best-price{
  margin-top:15px!important;
  margin-bottom:5px!important;
  font-size:36px!important;
}

.target-line{
  margin:12px 0!important;
  padding:10px 0!important;
}

/* Grafik kartı daha derli toplu */
.chart-wrap svg{
  height:180px!important;
}

.chart-top{
  margin-bottom:-5px!important;
}

/* Karşılaştırmayı yukarı getir */
.premium-grid-lower{
  grid-template-columns:1.45fr .55fr!important;
  gap:14px!important;
}

.offer-row{
  min-height:58px!important;
}

.offer-price strong{
  font-size:15px!important;
}

/* Paneller biraz daha premium */
.panel{
  border-color:#e3eaf3!important;
  box-shadow:0 8px 26px rgba(25,50,86,.035)!important;
}

.panel:hover{
  box-shadow:0 12px 32px rgba(25,50,86,.06)!important;
}

/* Başlık alanlarını sıkılaştır */
.panel-title-row{
  margin-bottom:13px!important;
}

.panel-title-row h2{
  font-size:17px!important;
}

/* Menü */
.sidebar{
  box-shadow:4px 0 22px rgba(30,55,90,.025)!important;
}

.sidebar nav a.active{
  box-shadow:inset 3px 0 0 #1670f8!important;
}

/* Fiyat vurguları */
.best-price,
.good,
.offer-price strong{
  font-variant-numeric:tabular-nums;
}

.best-price{
  color:#07162e!important;
}

.offer-row:first-child .offer-price strong{
  color:#0ba45c!important;
}

/* Karşılaştırma ilk satırını hafif vurgula */
.offer-row:first-child{
  background:linear-gradient(
    90deg,
    rgba(20,169,98,.045),
    rgba(255,255,255,0)
  );
  border-radius:10px;
  padding-left:8px;
  padding-right:8px;
}

/* Tarama motoru kartı */
.scan-card .status-dot{
  box-shadow:0 0 0 4px rgba(20,169,98,.08);
}

.scan-note{
  font-size:11px!important;
}

/* Üst bar */
.topbar{
  box-shadow:0 3px 16px rgba(28,50,80,.025)!important;
}

/* Masaüstünde içerik biraz daha geniş */
@media(min-width:1200px){
  main > *{
    max-width:1500px;
    margin-left:auto;
    margin-right:auto;
  }
}

/* ===== ERK FINAL POLISH END ===== */

/* ===== MULTI PRODUCT UI ===== */

.product-switcher{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:0 0 16px;
}

.product-mini-card{
  appearance:none;
  border:1px solid #e1e9f3;
  background:#fff;
  border-radius:14px!important;
  padding:15px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  text-align:left;
  cursor:pointer;
  min-height:78px!important;
  box-shadow:none!important;
}

.product-mini-card:hover{
  border-color:#aecdf9;
  background:#fbfdff;
}

.product-mini-card.active{
  border:2px solid #1670f8;
  background:#f3f8ff;
}

.product-mini-card>div:first-child{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.product-mini-card strong{
  color:#10203a;
}

.product-mini-card small{
  color:#7a899e;
  font-size:11px;
}

.product-mini-price{
  text-align:right;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.product-mini-price strong{
  color:#0aa65d;
  white-space:nowrap;
}

@media(max-width:1000px){
  .product-switcher{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:650px){
  .product-switcher{
    grid-template-columns:1fr;
  }
}

/* ===== MULTI PRODUCT UI END ===== */

/* ===== PRODUCT EDIT DELETE ===== */

.product-mini-card{
  padding:0!important;
  overflow:hidden;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
}

.product-mini-select{
  appearance:none;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  width:100%;
  min-height:72px!important;
  padding:14px 15px!important;
  display:flex;
  justify-content:space-between;
  align-items:center;
  text-align:left;
  cursor:pointer;
}

.product-mini-select:hover{
  background:#f8fbff!important;
}

.product-mini-actions{
  border-top:1px solid #e8eef5;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
}

.product-mini-actions button{
  border:0!important;
  background:#fff!important;
  border-radius:0!important;
  box-shadow:none!important;
  min-height:35px!important;
  font-size:11px!important;
  font-weight:750!important;
  cursor:pointer;
}

.product-mini-actions .edit-product{
  color:#1670f8!important;
  border-right:1px solid #e8eef5!important;
}

.product-mini-actions .delete-product{
  color:#dc5555!important;
}

.product-mini-actions .edit-product:hover{
  background:#eef6ff!important;
}

.product-mini-actions .delete-product:hover{
  background:#fff1f1!important;
}

.product-actions .danger-ghost{
  min-height:38px!important;
  padding:0 15px!important;
  border-radius:10px!important;
  cursor:pointer;
}

/* ===== PRODUCT EDIT DELETE END ===== */
