
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  font-family: Inter, Arial, sans-serif;
  color: #f5f5f5;
  background: #101318;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #101318;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.red {
  color: #ef4444;
}

.muted {
  color: #9299a5;
}

.small {
  font-size: 12px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2 {
  font-family: 'Barlow Condensed', sans-serif;
}

h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -.5px;
}

h1 em {
  color: #ef4444;
  font-style: normal;
}

h2 {
  font-size: 30px;
}

.topbar {
  min-height: 78px;
  padding: 15px max(24px, calc((100vw - 1200px)/2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #171b21;
  border-bottom: 1px solid #30353d;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #e52c35;
  color: white;
  font-size: 32px;
  transform: skew(-7deg);
}

.brand small {
  display: block;
  color: #8e96a3;
  font-family: Inter, sans-serif;
  font-size: 8px;
  letter-spacing: 2px;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: #adb4be;
}

main {
  min-height: calc(100vh - 150px);
}

.login-shell {
  max-width: 1200px;
  margin: auto;
  padding: 100px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: center;
}

.hero h1 {
  margin: 25px 0;
}

.hero p {
  color: #a4acb7;
  line-height: 1.8;
  max-width: 470px;
}

.hero-rule {
  width: 70px;
  height: 4px;
  background: #e52c35;
  margin: 30px 0;
}

.panel {
  padding: 40px;
  background: #1a1f26;
  border: 1px solid #353c46;
  border-radius: 12px;
}

.login-card h2 {
  margin: 15px 0 5px;
  font-size: 43px;
}

label {
  display: block;
  margin: 22px 0 9px;
  font-size: 12px;
  font-weight: 700;
  color: #c8cdd5;
}

input, select {
  width: 100%;
  padding: 15px;
  background: #11151b;
  border: 1px solid #3a414b;
  border-radius: 7px;
  color: white;
  outline: none;
}

input:focus, select:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px #ef444422;
}

input::placeholder {
  color: #737d8b;
}

.primary {
  border: none;
  border-radius: 7px;
  padding: 15px 23px;
  background: #e52c35;
  color: white;
  font-size: 13px;
  font-weight: 800;
  transition: background .2s;
}

.primary:hover {
  background: #ff414b;
}

.full {
  width: 100%;
  margin-top: 24px;
}

.ghost {
  background: transparent;
  border: 1px solid #555e69;
  border-radius: 6px;
  color: white;
  padding: 10px 15px;
}

.ghost:hover {
  border-color: #ef4444;
}

.content {
  max-width: 1200px;
  margin: auto;
  padding: 65px 24px;
}

.page-head {
  margin-bottom: 35px;
}

.page-head h1 {
  margin: 15px 0;
}

.page-head p {
  color: #9aa3af;
}

.searchbar {
  display: flex;
  align-items: center;
  padding: 7px;
  gap: 10px;
  background: #1b2027;
  border: 1px solid #414955;
  border-radius: 10px;
}

.search-icon {
  padding-left: 14px;
  font-size: 30px;
  color: #aeb6c1;
}

.searchbar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.searchbar input:focus {
  border: none;
  box-shadow: none;
}

.results-label {
  margin: 30px 0 15px;
  font-size: 13px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  overflow: hidden;
  background: #1a1f26;
  border: 1px solid #343c46;
  border-radius: 11px;
}

.product-image {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #252b33;
}

.product-info {
  padding: 22px;
}

.product-info h3 {
  margin-bottom: 20px;
  font-size: 17px;
}

.stock-badge {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
}

.in-stock {
  background: #163c2a;
  color: #5ee4a0;
}

.out-stock {
  background: #482328;
  color: #ff858b;
}

.privacy-note {
  margin-top: 35px;
  padding: 16px;
  color: #8e99a8;
  font-size: 12px;
  border: 1px solid #303843;
  border-radius: 8px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 45px;
}

.stat {
  padding: 25px;
  background: #1a1f26;
  border: 1px solid #343c46;
  border-radius: 9px;
}

.stat span {
  display: block;
  color: #9ba4b1;
  font-size: 11px;
  letter-spacing: 1px;
}

.stat strong {
  display: block;
  margin-top: 15px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 45px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.admin-toolbar h2 {
  margin: 0;
}

#admin-search {
  margin: 20px 0;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: #1a1f26;
  border: 1px solid #343c46;
  border-radius: 9px;
}

.admin-item img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  background: #292f38;
  border-radius: 6px;
}

.admin-item-info {
  flex: 1;
  min-width: 0;
}

.admin-item-info h3 {
  margin-bottom: 9px;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-actions button {
  padding: 10px 13px;
  background: #303742;
  border: 1px solid #48515e;
  border-radius: 5px;
  color: white;
}

.admin-actions button:hover {
  border-color: #ef4444;
}

.admin-actions .delete {
  color: #ff858b;
}

.product-dialog {
  width: min(95%, 520px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  color: white;
  background: #1a1f26;
  border: 1px solid #4b5563;
  border-radius: 12px;
}

.product-dialog::backdrop {
  background: #000b;
}

.dialog-body {
  padding: 30px;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dialog-head h2 {
  margin: 10px 0;
}

.icon-button {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
}

.preview {
  width: 100%;
  max-height: 200px;
  margin-top: 15px;
  object-fit: contain;
  background: #252b33;
  border-radius: 6px;
}

.error {
  color: #ff858b;
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 350px;
  padding: 17px 22px;
  color: white;
  background: #273f34;
  border: 1px solid #39865b;
  border-radius: 8px;
  box-shadow: 0 10px 40px #0006;
  z-index: 20;
}

.empty-state {
  padding: 55px 20px;
  text-align: center;
  color: #a3acb8;
  background: #1a1f26;
  border: 1px dashed #414955;
  border-radius: 10px;
  grid-column: 1 / -1;
}

footer {
  padding: 25px;
  text-align: center;
  color: #7e8794;
  border-top: 1px solid #30353d;
  font-size: 10px;
  letter-spacing: 1px;
}

@media (max-width: 800px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 55px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    gap: 8px;
  }

  .stat {
    padding: 15px;
  }

  .stat strong {
    font-size: 35px;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 15px;
  }

  .brand {
    font-size: 22px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    font-size: 26px;
  }

  .top-right {
    font-size: 10px;
  }

  .panel {
    padding: 25px;
  }

  .content {
    padding: 40px 15px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .searchbar {
    flex-wrap: wrap;
  }

  .searchbar input {
    width: calc(100% - 60px);
  }

  .searchbar .primary {
    width: 100%;
  }

  .admin-item {
    flex-wrap: wrap;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions button {
    flex: 1;
  }

  .admin-toolbar h2 {
    font-size: 25px;
  }

  .admin-toolbar .primary {
    padding: 12px;
  }

  .dialog-body {
    padding: 20px;
  }
}

/* Motoport hesap kurtarma */
.recovery-shell { max-width: 620px; margin: 0 auto; }
.recovery-shell .panel { margin: 20px auto 70px; }
.recovery-shell h2 { margin: 16px 0 8px; font-size: 42px; }
.text-button { display: inline-block; margin-top: 18px; padding: 8px 0; background: transparent; border: 0; color: #f0a1a5; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.text-button:hover { color: #fff; }
#recovery-message:not(:empty) { margin-top: 18px; line-height: 1.6; color: #5ee4a0; }

/* Bayi kayıt ve onay ekranları */
#signup-view .panel, #pending-view .panel { margin: 20px auto 70px; }
#signup-view h2, #pending-view h2 { margin: 16px 0 8px; font-size: 42px; }
#signup-message:not(:empty) { margin-top: 18px; color: #5ee4a0; line-height: 1.6; }
#applications-list { margin: 16px 0 48px; }
#applications-message { margin: 18px 0 12px; }
.application-item .admin-item-info p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 520px) { .application-item .admin-actions { flex-wrap: wrap; } }

/* MOTOPORT / 2026 visual refresh */
:root { color-scheme: dark; background: #0b0e13; color: #f4f6fa; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(ellipse 70% 34% at 12% 7%, rgba(206,31,49,.13), transparent 75%),
              radial-gradient(ellipse 65% 38% at 95% 72%, rgba(66,82,113,.10), transparent 70%),
              #0b0e13;
  -webkit-font-smoothing: antialiased;
}
button, input, select { transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #ff5864; outline-offset: 3px;
}
.topbar {
  position: relative; z-index: 2;
  min-height: 88px; background: rgba(16,19,25,.92);
  border-bottom: 1px solid rgba(255,255,255,.075);
  backdrop-filter: blur(18px);
}
.brand { gap: 14px; font-size: 29px; letter-spacing: .6px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 11px;
  transform: none; background: linear-gradient(140deg,#ff4854,#b71426);
  box-shadow: 0 8px 28px rgba(225,42,57,.27);
}
.brand small { margin-top: 2px; letter-spacing: 1.6px; }
.header-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 1px solid #343c48; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: #c6ccd6;
}
.status-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #62dca2; box-shadow: 0 0 0 4px rgba(98,220,162,.12); }
.login-shell { max-width: 1320px; min-height: min(760px, calc(100vh - 150px)); padding: 80px 34px; grid-template-columns: 1.18fr .9fr; gap: clamp(36px,6vw,110px); }
.hero { position: relative; padding: 22px 0; }
.hero::before {
  content: "M"; position: absolute; right: 0; top: -70px; z-index: -1;
  font: 800 clamp(260px,35vw,510px)/1 'Barlow Condensed',sans-serif;
  color: rgba(255,255,255,.025); pointer-events: none;
}
.hero-pill { display: inline-flex; align-items: center; gap: 11px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.035); color: #cdd4df; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.hero h1 { margin: 31px 0 27px; font-size: clamp(52px,6.7vw,94px); letter-spacing: -1.9px; line-height: .99; }
.hero h1 em { color: #ff4854; }
.hero > p { max-width: 540px; font-size: 15px; line-height: 1.9; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-highlights span { display: inline-flex; gap: 9px; align-items: center; border: 1px solid #343b46; border-radius: 9px; padding: 12px 13px; background: rgba(255,255,255,.025); font-size: 11px; color: #c2c9d3; }
.hero-highlights b { color: #ff5964; font-size: 10px; }
.hero-rule { width: 54px; height: 3px; margin: 34px 0 18px; border-radius: 99px; background: linear-gradient(90deg,#ff4854,transparent); }
.hero .hero-footnote { font-size: 12px; }
.panel, .stat, .product-card, .admin-item { background: linear-gradient(155deg,rgba(29,34,43,.98),rgba(20,24,31,.98)); border: 1px solid #323a46; box-shadow: 0 12px 44px rgba(0,0,0,.12); }
.panel { border-radius: 20px; padding: clamp(26px,3.5vw,46px); }
.login-card { position: relative; box-shadow: 0 25px 80px rgba(0,0,0,.33),0 0 0 1px rgba(255,255,255,.025); overflow: hidden; }
.login-card::before { content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 2px; background: linear-gradient(90deg,transparent,#ed3447,transparent); }
.login-card h2 { font-size: clamp(36px,4vw,49px); line-height: 1.05; }
.login-card .muted { font-size: 13px; line-height: 1.7; }
label { color: #d6dce6; }
input, select { background: #10151d; border-color: #38414f; border-radius: 10px; }
input:hover, select:hover { border-color: #596475; }
input:focus, select:focus { border-color: #ff5663; box-shadow: 0 0 0 4px rgba(239,68,68,.11); }
.primary { background: linear-gradient(120deg,#f23d4e,#cf2336); border-radius: 10px; box-shadow: 0 8px 24px rgba(225,43,59,.15); }
.primary:hover { background: linear-gradient(120deg,#ff5361,#e12b40); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(225,43,59,.24); }
.primary:active { transform: translateY(0); }
.ghost { border-radius: 9px; }
.text-button { display: block; text-align: left; }
.content { max-width: 1250px; }
.page-head { padding: 10px 0 12px; }
.page-head h1 { font-size: clamp(45px,6vw,75px); }
.page-head p { line-height: 1.7; }
.searchbar { padding: 8px; background: #1b212b; border-color: #3b4554; border-radius: 15px; box-shadow: 0 12px 36px rgba(0,0,0,.15); }
.searchbar:focus-within { border-color: #fa4b59; box-shadow: 0 0 0 4px rgba(239,68,68,.08); }
.search-icon { color: #ff6670; }
.product-grid { gap: 22px; }
.product-card { border-radius: 16px; transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); border-color: #596576; box-shadow: 0 22px 44px rgba(0,0,0,.24); }
.product-image { height: 225px; padding: 16px; background: linear-gradient(150deg,#303743,#1c222b); }
.product-info { padding: 23px; }
.product-info h3 { line-height: 1.5; min-height: 48px; }
.stock-badge { border-radius: 7px; letter-spacing: .4px; }
.in-stock { background: rgba(33,161,99,.14); color: #6be5a9; border: 1px solid rgba(107,229,169,.17); }
.out-stock { background: rgba(226,59,76,.12); color: #ff909a; border: 1px solid rgba(255,144,154,.16); }
.stat { border-radius: 14px; }
.stat strong { letter-spacing: -.8px; }
.admin-item { border-radius: 13px; }
.admin-actions button { border-radius: 8px; }
.privacy-note { border-radius: 10px; background: rgba(255,255,255,.025); }
.product-dialog { border-radius: 18px; }
footer { background: rgba(10,13,18,.6); }
@media (max-width: 800px) {
 .login-shell { grid-template-columns: 1fr; min-height: auto; gap: 32px; padding: 60px 24px; }
 .hero { padding: 0; }
 .hero h1 { font-size: clamp(51px,9vw,76px); }
 .login-card { max-width: 580px; width: 100%; }
 .header-status { display: none; }
}
@media (max-width: 520px) {
 .login-shell { padding: 43px 17px 56px; }
 .hero h1 { font-size: clamp(45px,11.5vw,62px); letter-spacing: -1px; }
 .hero-pill { font-size: 9px; }
 .hero-highlights { gap: 8px; }
 .hero-highlights span { padding: 9px 10px; }
 .panel { padding: 25px 21px; }
 .brand { font-size: 22px; }
 .brand-mark { width: 39px; height: 39px; }
 .topbar { min-height: 75px; }
 .product-info h3 { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Announcements, import and search history */
.feature-panel { margin: 28px 0 38px; padding: clamp(18px,3vw,28px); border: 1px solid #343e4c; border-radius: 18px; background: linear-gradient(150deg,#1b222d,#151a22); }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: clamp(24px,3vw,32px); }
.announcement-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 14px; }
.announcement-card { padding: 20px; border-radius: 13px; border: 1px solid #3a4554; background: #202834; overflow-wrap: anywhere; }
.announcement-card h3 { margin: 12px 0; font-size: 19px; }
.announcement-card p { color: #c1cbd8; white-space: pre-wrap; line-height: 1.65; }
.announcement-card .admin-actions { margin-top: 18px; flex-wrap: wrap; }
.feature-form { margin-bottom: 25px; }
.feature-form textarea { display: block; width: 100%; min-height: 90px; padding: 15px; resize: vertical; background: #10151d; color: white; border: 1px solid #38414f; border-radius: 10px; font: inherit; }
.feature-form textarea:focus { outline: 2px solid #ff5864; outline-offset: 2px; }
.inline-check { display: flex; align-items: center; gap: 10px; }
.inline-check input { width: 18px; height: 18px; accent-color: #e52c35; }
.recent-searches { display: flex; flex-wrap: wrap; gap: 10px; }
.history-chip { padding: 10px 14px; border: 1px solid #455165; border-radius: 999px; background: #222c39; color: #e0e7ef; font-size: 12px; }
.history-chip:hover { border-color: #ff5964; background: #303444; }
#import-file { margin: 12px 0; }
#import-status { margin: 12px 0; line-height: 1.6; }
#import-confirm { margin-top: 12px; }
.import-preview { overflow-wrap: anywhere; }
@media(max-width:520px) { .feature-panel { margin: 20px 0 28px; } .announcement-grid { grid-template-columns: 1fr; } }

/* Separated pages / section navigation */
.section-nav { display:flex; gap:10px; flex-wrap:wrap; padding: 8px; margin: 0 0 32px; border:1px solid #35404d; border-radius:14px; background:#161c25; }
.section-tab { border:1px solid transparent; background:transparent; color:#aab5c3; padding:13px 17px; border-radius:9px; font-weight:700; font-size:13px; }
.section-tab:hover { color:#fff; background:#252e3b; }
.section-tab.active { color:#fff; background:#d72e42; box-shadow:0 5px 20px rgba(215,46,66,.22); }
@media(max-width:520px) { .section-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } .section-tab { padding:12px 7px; } }
