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

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  background-color: #f1f5f9;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Modern Corporate Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #dbe3ec;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.header-top-strip {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 12px;
  padding: 6px 0;
}
.header-top-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: #f8fafc;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.top-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-metrics strong { color: #ffffff; }

.header-main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  flex-shrink: 0;
}
.brand-link img {
  height: 36px;
  width: auto;
  display: block;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.header-nav a {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #dc2626;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.header-cta:hover { background: #b91c1c; }
.header-cta svg { width: 14px; height: 14px; fill: currentColor; }

/* Main Container */
.ib-main {
  padding: 20px 0 48px;
}
.ib-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Search & Filter Panel (ihalebul.com pro layout) */
.ib-search-wrap {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.ib-tab-strip {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #cbd5e1;
  padding: 8px 14px 0;
  gap: 6px;
  flex-wrap: wrap;
}
.ib-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  text-decoration: none;
  margin-bottom: -1px;
  white-space: nowrap;
}
.ib-tab-btn svg { width: 14px; height: 14px; fill: currentColor; opacity: 0.85; }
.ib-tab-btn.active {
  background: #ffffff;
  color: #0b4f82;
  border-color: #cbd5e1;
  font-weight: 700;
}
.ib-tab-btn:hover:not(.active) {
  background: #edf2f7;
  color: #0f172a;
}

.ib-filter-body {
  padding: 14px 16px;
}
.ib-filter-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.05fr 1.1fr 1.85fr auto;
  gap: 10px;
  align-items: stretch;
}
.ib-field-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ib-field-box label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #475569;
  margin-bottom: 4px;
}
.ib-field-box select,
.ib-field-box input {
  width: 100%;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  padding: 0 9px;
  outline: none;
  font-family: inherit;
}
.ib-field-box select:focus,
.ib-field-box input:focus {
  border-color: #0b4f82;
  box-shadow: 0 0 0 2px rgba(11, 79, 130, 0.12);
}
.ib-submit-btn {
  padding: 0 24px;
  background: #0b4f82;
  border: 1px solid #083c63;
  border-radius: 6px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.15s;
}
.ib-submit-btn:hover { background: #083c63; }
.ib-submit-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* Summary & Sort Bars */
.ib-total-bar {
  background: #e8eff6;
  border: 1px solid #b8cadb;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.ib-total-bar svg { width: 14px; height: 14px; fill: #0b4f82; }
.ib-total-count {
  background: #ffffff;
  border: 1px solid #8ba9c4;
  color: #0b4f82;
  padding: 1px 10px;
  border-radius: 4px;
  font-weight: 700;
}

.ib-sort-bar {
  display: grid;
  grid-template-columns: 80px repeat(5, 1fr);
  border: 1px solid #b8cadb;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
}
.ib-sort-title {
  background: #334e68;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.ib-sort-col {
  padding: 8px 10px;
  text-align: center;
  color: #1e3a5f;
  border-left: 1px solid #cbd5e1;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.ib-sort-col svg { width: 12px; height: 12px; fill: currentColor; opacity: 0.7; }
.ib-sort-col.active {
  background: #d8e6f3;
  color: #0b4f82;
  font-weight: 700;
}
.ib-sort-col:hover { background: #e4eef7; }

/* Tender Card - Exact ihalebul.com Masked Structure + Solid Icons */
.ib-card {
  background: #ffffff;
  border: 1px solid #9ab3c8;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ib-card:hover {
  border-color: #0b4f82;
  box-shadow: 0 4px 12px rgba(11, 79, 130, 0.09);
}
.ib-card-head {
  background: linear-gradient(180deg, #ebf3fa 0%, #dfeaf4 100%);
  border-bottom: 1px solid #b8cadb;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ib-card-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.ib-idx {
  background: #ffffff;
  border: 1px solid #7fa0bc;
  color: #0b4f82;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.ib-title-wrap {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ib-title-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #0b4f82;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.ib-title-link:hover {
  color: #dc2626;
  text-decoration: underline;
}
.ib-ikn-masked {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #ffffff;
  border: 1px solid #9ab3c8;
  color: #0f172a;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
  font-size: 12.5px;
}

.ib-row {
  padding: 8px 14px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #1e293b;
}
.ib-row-left, .ib-row-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.ib-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ib-item svg {
  width: 13px;
  height: 13px;
  fill: #334e68;
  flex-shrink: 0;
}
.ib-item.blue svg { fill: #0284c7; }
.ib-item strong {
  font-weight: 700;
  color: #1e293b;
}
.ib-masked-val {
  color: #0284c7;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.2px;
}
.ib-masked-val:hover {
  color: #dc2626;
  text-decoration: underline;
}
.ib-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
  white-space: nowrap;
}
.ib-status-pill.urgent {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.ib-status-pill svg { width: 11px; height: 11px; fill: currentColor; }

/* Bottom 6-Button Strip (Exact ihalebul.com style with solid icons) */
.ib-btn-strip {
  background: #dfe8f1;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}
.ib-doc-btn {
  background: #ffffff;
  border: 1px solid #9ab3c8;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0b4f82;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.12s;
}
.ib-doc-btn svg {
  width: 12px;
  height: 12px;
  fill: #0b4f82;
  flex-shrink: 0;
}
.ib-doc-btn:hover {
  background: #0b4f82;
  border-color: #0b4f82;
  color: #ffffff;
}
.ib-doc-btn:hover svg { fill: #ffffff; }
.ib-count-pill {
  background: #eef4f8;
  border: 1px solid #b8cadb;
  color: #334e68;
  font-size: 10.5px;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 8px;
}

/* SEO Footer Guide */
.ib-seo-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 22px 24px;
  margin-top: 24px;
  color: #1e293b;
}
.ib-seo-box h1 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
.ib-seo-box p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 14px;
}
.ib-seo-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}
.ib-seo-cols h3 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

/* Modern Clean Unlock Modal (Zero Emojis!) */
.ib-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ib-modal-backdrop.open { display: flex; }
.ib-modal {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
}
.ib-modal-head {
  background: #0f172a;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ib-modal-head h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}
.ib-modal-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 30px;
  height: 36px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.ib-modal-body {
  padding: 20px;
  font-size: 13.5px;
  color: #1e293b;
}
.ib-lock-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ib-lock-notice svg { width: 16px; height: 16px; fill: #d97706; flex-shrink: 0; }
.ib-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.ib-modal-docs {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.ib-modal-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 500;
}
.ib-modal-doc-row:last-child { border-bottom: none; }
.ib-doc-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ib-doc-left svg { width: 14px; height: 14px; fill: #0b4f82; flex-shrink: 0; }
.ib-lock-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.ib-lock-tag svg { width: 11px; height: 11px; fill: currentColor; }
.ib-modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #dc2626;
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 18px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}
.ib-modal-cta:hover { background: #b91c1c; }
.ib-modal-cta svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }


/* Special KIK & Yasakli Badges */
.ib-status-pill.yasakli-pill, .ib-status-pill.iptal-pill {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.ib-status-pill.duzeltici-pill {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.ib-status-pill.red-pill {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.ib-ikn-masked.yasakli-rg {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.ib-ikn-masked.kik-no {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  font-weight: 700;
}

/* Full Tablet & Mobile Responsiveness (360px - 960px) */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 960px) {
  .header-nav, .top-metrics { display: none; }
  .header-top-inner { justify-content: center; text-align: center; }
  .ib-filter-grid { grid-template-columns: 1fr 1fr; }
  .ib-field-box:nth-child(5), .ib-submit-btn { grid-column: 1 / -1; }
  .ib-submit-btn { height: 40px; }
  .ib-btn-strip { grid-template-columns: repeat(2, 1fr); }
  .ib-sort-bar { grid-template-columns: repeat(3, 1fr); }
  .ib-sort-title { display: none; }
  .ib-seo-cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ib-main { padding: 12px 0 32px; }
  .ib-container { padding: 0 10px; }
  .header-top-strip { font-size: 11px; padding: 5px 8px; }
  .live-status span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90vw;
  }
  .header-main {
    padding: 10px 12px;
    gap: 8px;
  }
  .brand-link img {
    height: 28px;
    max-width: 145px;
    object-fit: contain;
  }
  .header-cta {
    font-size: 11.5px;
    padding: 7px 10px;
    gap: 5px;
  }
  .ib-tab-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 8px 0;
    gap: 4px;
  }
  .ib-tab-btn {
    padding: 8px 11px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .ib-filter-body { padding: 10px; }
  .ib-filter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .ib-field-box:nth-child(5),
  .ib-submit-btn {
    grid-column: 1 / -1;
  }
  .ib-submit-btn {
    height: 40px;
    font-size: 13.5px;
  }
  .ib-sort-bar {
    grid-template-columns: 1fr 1fr;
    font-size: 11.5px;
  }
  .ib-sort-col:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid #cbd5e1;
  }
  .ib-card-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 9px 11px;
    gap: 6px;
  }
  .ib-card-head-left {
    align-items: flex-start;
    width: 100%;
  }
  .ib-title-wrap, .ib-title-link {
    white-space: normal;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.4;
  }
  .ib-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 11px;
    gap: 6px;
  }
  .ib-row-left, .ib-row-right {
    width: 100%;
    gap: 6px 12px;
  }
  .ib-item {
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
  }
  .ib-btn-strip {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px;
  }
  .ib-doc-btn {
    font-size: 11px;
    padding: 7px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ib-seo-box {
    padding: 14px;
  }
  .ib-seo-box h1 { font-size: 15px; }
  .ib-modal-backdrop { padding: 10px; }
  .ib-modal-head { padding: 12px 14px; }
  .ib-modal-head h4 { font-size: 13px; }
  .ib-modal-body { padding: 14px; }
  .ib-modal-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px;
  }
  .ib-modal-doc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 8px 10px;
  }
  .ib-modal-cta {
    font-size: 13px;
    padding: 11px 12px;
  }
}

.header-main {
  max-width: 1220px;
  width: 100%;
  box-sizing: border-box;
}
.header-nav {
  flex-shrink: 1;
  min-width: 0;
  overflow-x: auto;
}
.header-cta {
  flex-shrink: 0;
  font-size: 12.5px;
  padding: 8px 13px;
}
.ib-tab-strip {
  flex-wrap: nowrap;
  overflow-x: auto;
}
.ib-field-box select {
  text-overflow: ellipsis;
  padding-right: 22px;
}
