/*
 * Noisoft İşletme Platformu — UI v2.0.0
 * Ortak, erişilebilir ve responsive tasarım katmanı.
 */
:root {
  --ns-bg: #f4f6fa;
  --ns-surface: #ffffff;
  --ns-surface-soft: #f8fafc;
  --ns-surface-strong: #eef2f7;
  --ns-text: #101828;
  --ns-text-soft: #344054;
  --ns-muted: #667085;
  --ns-faint: #98a2b3;
  --ns-line: #e4e7ec;
  --ns-line-strong: #d0d5dd;
  --ns-brand: #a60027;
  --ns-brand-dark: #7d001d;
  --ns-brand-soft: #fff1f3;
  --ns-navy: #0b1b38;
  --ns-navy-2: #10284f;
  --ns-blue: #0758f7;
  --ns-green: #067647;
  --ns-orange: #b54708;
  --ns-red: #b42318;
  --ns-purple: #6938ef;
  --ns-shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --ns-shadow-sm: 0 4px 14px rgba(16, 24, 40, 0.06);
  --ns-shadow-md: 0 14px 34px rgba(16, 24, 40, 0.08);
  --ns-shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.12);
  --ns-radius-sm: 10px;
  --ns-radius-md: 14px;
  --ns-radius-lg: 18px;
  --ns-radius-xl: 24px;
  --ns-sidebar-width: 276px;
  --ns-topbar-height: 84px;
  --ns-content-max: 1560px;
}

html {
  min-width: 320px;
  background: var(--ns-bg);
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(7, 88, 247, 0.04), transparent 30rem),
    var(--ns-bg);
  color: var(--ns-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.sidebar-visible {
  overflow: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(7, 88, 247, 0.22);
  outline-offset: 2px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.main {
  min-width: 0;
  width: calc(100% - var(--ns-sidebar-width));
  margin-left: var(--ns-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--ns-sidebar-width);
  padding: 18px 16px;
  background:
    radial-gradient(circle at 10% 0, rgba(7, 88, 247, 0.16), transparent 18rem),
    linear-gradient(180deg, #0d1d3b 0%, #08142a 100%);
  color: #e6edf8;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 12px 0 36px rgba(7, 17, 36, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  z-index: 50;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 999px; }

.sidebar-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}

.sidebar-brand {
  min-width: 0;
  flex: 1;
  display: block;
  border-radius: var(--ns-radius-lg);
  color: #fff;
}

.sidebar-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.sidebar-brand-logo img {
  width: 100%;
  max-width: 206px;
  height: auto;
  object-fit: contain;
}

.sidebar-brand-caption {
  display: block;
  margin: 8px 3px 0;
  color: #b9c8df;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.sidebar-close {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.nav {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
}

.nav-section {
  display: grid;
  gap: 5px;
}

.nav-section-label {
  padding: 0 11px 5px;
  color: #7187a9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav a {
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #c6d1e2;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.nav a i {
  width: 20px;
  flex: 0 0 20px;
  color: #93a6c4;
  font-size: 14px;
  text-align: center;
  transition: color 0.16s ease;
}

.nav a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav a:hover {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav a:hover i { color: #fff; }

.nav a.active {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(166, 0, 39, 0.98), rgba(125, 0, 29, 0.98));
  box-shadow: 0 10px 24px rgba(127, 0, 31, 0.26);
  color: #fff;
}

.nav a.active i { color: #fff; }
.nav-section-bottom { margin-top: 2px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

.sidebar-footer-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.sidebar-footer-card img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
}

.sidebar-footer-card strong,
.sidebar-footer-card a {
  display: block;
}

.sidebar-footer-card strong {
  color: #e8eef8;
  font-size: 11px;
}

.sidebar-footer-card a {
  margin-top: 2px;
  color: #91b8ff;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  background: rgba(5, 13, 27, 0.48);
  backdrop-filter: blur(2px);
}

/* Top bar */
.topbar {
  min-height: var(--ns-topbar-height);
  height: auto;
  padding: 15px clamp(18px, 2.3vw, 36px);
  gap: 20px;
  border-bottom: 1px solid rgba(208, 213, 221, 0.85);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
  backdrop-filter: saturate(160%) blur(16px);
}

.topbar-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.page-title-wrap { min-width: 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
  color: var(--ns-muted);
  font-size: 10px;
  font-weight: 650;
}

.breadcrumb i {
  color: var(--ns-faint);
  font-size: 7px;
}

.topbar h1 {
  max-width: 100%;
  overflow: hidden;
  color: var(--ns-text);
  font-size: clamp(20px, 1.65vw, 27px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar p { display: none; }

.hamb,
.top-icon-button {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--ns-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--ns-shadow-xs);
  color: var(--ns-text-soft);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.hamb:hover,
.top-icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--ns-line-strong);
  background: var(--ns-surface-soft);
}

.topbar-mark {
  display: none;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--ns-line);
  border-radius: 11px;
  object-fit: cover;
  background: #fff;
}

.top-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-icon-button { display: inline-flex; }

.user-pill {
  min-width: 0;
  max-width: 260px;
  padding: 7px 11px 7px 7px;
  gap: 9px;
  border: 1px solid var(--ns-line);
  background: #fff;
  box-shadow: var(--ns-shadow-xs);
}

.user-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--ns-brand-soft);
  color: var(--ns-brand);
}

.user-pill-copy {
  min-width: 0;
  display: block;
}

.user-pill-copy strong,
.user-pill-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill-copy strong { color: var(--ns-text-soft); font-size: 12px; }
.user-pill-copy small { margin-top: 1px; color: var(--ns-muted); font-size: 9px; }

/* Content */
.content {
  width: 100%;
  max-width: none;
  flex: 1 0 auto;
  padding: clamp(20px, 2.4vw, 36px);
}

.content-inner {
  width: min(100%, var(--ns-content-max));
  min-width: 0;
  margin: 0 auto;
}

.platform-footer {
  width: 100%;
  margin-top: auto;
  padding: 18px clamp(20px, 2.4vw, 36px);
  border-top: 1px solid var(--ns-line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ns-muted);
  font-size: 11px;
}

/* Common surfaces */
.card,
.stat,
.commercial-hero,
.marketplace-hero,
.software-hero,
.login-card,
.sector-catalog-tools,
.sector-picker-card,
.package-tier-card,
.software-card,
.subscription-card,
.item-admin-card {
  border-color: var(--ns-line);
  background: var(--ns-surface);
  box-shadow: var(--ns-shadow-sm);
}

.card {
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
  border-radius: var(--ns-radius-lg);
}

.card h2,
.card h3,
.section-title-row h2,
.section-heading h2 {
  color: var(--ns-text);
  letter-spacing: -0.02em;
}

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

.stat {
  min-width: 0;
  padding: 20px;
  border-radius: var(--ns-radius-lg);
  box-shadow: var(--ns-shadow-sm);
}

.stat::after {
  right: -40px;
  top: -45px;
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, rgba(166, 0, 39, 0.06), rgba(7, 88, 247, 0.04));
}

.stat b {
  color: var(--ns-text);
  font-size: clamp(27px, 2.4vw, 36px);
  letter-spacing: -0.04em;
}

.stat span { color: var(--ns-muted); font-size: 12px; }

.grid2,
.detail-grid,
.commercial-detail-grid {
  min-width: 0;
  gap: 18px;
}

/* Alerts */
.alert {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 13px;
  box-shadow: var(--ns-shadow-xs);
  font-size: 12px;
}

.alert > i { text-align: center; }
.alert > span { min-width: 0; overflow-wrap: anywhere; }
.alert button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  opacity: 0.7;
}
.alert button:hover { background: rgba(0, 0, 0, 0.05); opacity: 1; }
.alert.success { background: #ecfdf3; color: #05603a; border-color: #abefc6; }
.alert.error { background: #fef3f2; color: #912018; border-color: #fecdca; }
.alert.warning { background: #fffaeb; color: #93370d; border-color: #fedf89; }
.alert.info { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }

/* Buttons */
.btn {
  min-height: 42px;
  max-width: 100%;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--ns-navy);
  box-shadow: var(--ns-shadow-xs);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow: var(--ns-shadow-sm);
}

.btn.brand { background: linear-gradient(135deg, var(--ns-brand), var(--ns-brand-dark)); }
.btn.success { background: var(--ns-green); }
.btn.danger { background: var(--ns-red); }
.btn.warning { background: var(--ns-orange); }
.btn.ghost {
  border-color: var(--ns-line);
  background: #fff;
  color: var(--ns-text-soft);
}
.btn.ghost:hover { border-color: var(--ns-line-strong); background: var(--ns-surface-soft); }
.btn.small { min-height: 34px; padding: 8px 11px; font-size: 11px; }
.btn.block, .block { width: 100%; }
.actions { min-width: 0; align-items: center; }

/* Forms */
.form-grid {
  min-width: 0;
  gap: 16px;
}

.field { min-width: 0; }
.field label {
  margin-bottom: 7px;
  color: var(--ns-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.filters input,
.filters select,
.sector-catalog-tools select,
.sector-catalog-search {
  max-width: 100%;
  border-color: var(--ns-line-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--ns-text);
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.025);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input,
.field select,
.field textarea {
  min-height: 44px;
  padding: 10px 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filters input:focus,
.filters select:focus,
.sector-catalog-search:focus-within,
.sector-catalog-tools select:focus {
  border-color: #84adff;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(7, 88, 247, 0.09);
}

.field textarea { min-height: 110px; }
.field-help { color: var(--ns-muted); }
.filters { min-width: 0; align-items: center; }
.filters input, .filters select { min-height: 42px; padding: 9px 11px; }

.note {
  border-color: var(--ns-line-strong);
  border-radius: 13px;
  background: var(--ns-surface-soft);
  color: var(--ns-text-soft);
  overflow-wrap: anywhere;
}

/* Tables */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-color: var(--ns-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--ns-shadow-xs);
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  min-width: 760px;
  table-layout: auto;
}

table { background: transparent; }
th, td {
  padding: 13px 14px;
  border-color: var(--ns-line);
  color: var(--ns-text-soft);
  font-size: 12px;
  overflow-wrap: anywhere;
}

th {
  position: relative;
  background: #f8fafc;
  color: var(--ns-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.055em;
}

tbody tr { transition: background 0.12s ease; }
tbody tr:hover { background: #fbfcfe; }
.table-link { color: var(--ns-navy-2); }
.table-link:hover { color: var(--ns-brand); }

.badge {
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 800;
  overflow-wrap: anywhere;
  white-space: normal;
}
.badge.success { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.badge.warning { border-color: #fedf89; background: #fffaeb; color: #b54708; }
.badge.danger { border-color: #fecdca; background: #fef3f2; color: #b42318; }
.badge.muted { border-color: var(--ns-line); background: #f8fafc; color: var(--ns-muted); }

/* Page headings and commercial surfaces */
.page-actions-row,
.section-title-row,
.section-heading.compact,
.product-package-heading,
.company-heading,
.marketplace-record-head,
.software-card-top,
.subscription-head {
  min-width: 0;
}

.commercial-hero,
.marketplace-hero,
.software-hero {
  min-width: 0;
  align-items: center;
  padding: clamp(20px, 2.2vw, 30px);
  border-radius: var(--ns-radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgba(7, 88, 247, 0.08), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  box-shadow: var(--ns-shadow-sm);
}

.commercial-hero > div,
.marketplace-hero > div,
.software-hero > div { min-width: 0; }

.commercial-hero .eyebrow,
.software-hero .eyebrow,
.product-package-heading .eyebrow,
.registration-eyebrow {
  border: 1px solid #ffd2da;
  background: var(--ns-brand-soft);
  color: var(--ns-brand);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.035em;
}

.commercial-hero h2,
.marketplace-hero h2,
.software-hero h2 {
  max-width: 100%;
  color: var(--ns-text);
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 760;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.commercial-hero p,
.marketplace-hero p,
.software-hero p {
  max-width: 760px;
  color: var(--ns-muted);
  font-size: 13px;
  line-height: 1.65;
}

.catalog-hero-actions { flex: 0 0 auto; justify-content: flex-end; }
.section-heading.compact h2 { font-size: 22px; }
.section-heading.compact p { font-size: 12px; line-height: 1.55; }
.catalog-count { flex: 0 0 auto; border: 1px solid var(--ns-line); background: #fff; }

/* Sector catalogue */
.sector-catalog-tools {
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 230px) auto auto;
  gap: 10px;
  padding: 12px;
  border-radius: 15px;
  box-shadow: var(--ns-shadow-xs);
}

.sector-catalog-search {
  min-width: 0;
  min-height: 44px;
  background: #fff;
}

.sector-catalog-search input {
  min-width: 0;
  height: 42px;
  padding: 0;
  font-size: 12px;
}

.sector-catalog-tools select { min-width: 0; font-size: 12px; }
.sector-group-heading { margin-top: 29px; }
.sector-group-heading h3 { color: var(--ns-text); font-size: 18px; }
.sector-group-heading span { color: var(--ns-brand); }

.sector-picker-grid {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sector-picker-card {
  position: relative;
  min-width: 0;
  min-height: 172px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) max-content;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "icon copy state"
    "icon copy arrow";
  align-items: start;
  gap: 13px 14px;
  padding: 20px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--ns-shadow-xs);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sector-picker-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ns-brand), var(--ns-blue));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.sector-picker-card:hover {
  transform: translateY(-3px);
  border-color: #c9d3e3;
  box-shadow: var(--ns-shadow-md);
}
.sector-picker-card:hover::before { opacity: 1; }

.sector-picker-icon {
  grid-area: icon;
  width: 52px;
  height: 52px;
  border: 1px solid #ffd7de;
  border-radius: 15px;
  background: var(--ns-brand-soft);
  color: var(--ns-brand);
  font-size: 19px;
}

.sector-picker-copy {
  grid-area: copy;
  min-width: 0;
  align-self: stretch;
}

.sector-picker-copy h3 {
  margin: 1px 0 5px;
  color: var(--ns-text);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.sector-picker-copy p {
  min-height: 0;
  margin: 0 0 9px;
  color: var(--ns-muted);
  font-size: 11px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sector-picker-copy > span {
  display: inline-flex;
  max-width: 100%;
  color: #60708a;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sector-sale-state {
  grid-area: state;
  justify-self: end;
  max-width: 106px;
  padding: 5px 8px;
  border: 1px solid transparent;
  font-size: 8px;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}
.sector-sale-state.sale { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.sector-sale-state.partial { border-color: #b2ddff; background: #eff8ff; color: #175cd3; }
.sector-sale-state.building { border-color: #fedf89; background: #fffaeb; color: #b54708; }

.sector-picker-arrow {
  grid-area: arrow;
  align-self: end;
  justify-self: end;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ns-line);
  border-radius: 9px;
  background: var(--ns-surface-soft);
  color: var(--ns-muted);
  font-size: 11px;
  transition: background 0.16s ease, color 0.16s ease;
}
.sector-picker-card:hover .sector-picker-arrow { background: var(--ns-navy); color: #fff; }

/* Package cards */
.tier-model-note {
  border-color: #b2ddff;
  border-radius: 13px;
  background: #eff8ff;
  color: #1849a9;
}

.product-package-heading {
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ns-line);
}

.product-package-heading > div { min-width: 0; }
.product-package-heading h2 { font-size: clamp(22px, 2vw, 29px); overflow-wrap: anywhere; }
.product-package-heading p { font-size: 12px; line-height: 1.55; }
.active-plan-summary { flex: 0 0 auto; border-radius: 12px; }

.package-tier-grid {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.package-tier-card {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 22px;
  border-radius: 20px;
  box-shadow: var(--ns-shadow-sm);
}

.package-tier-card.tier-pro { border-color: #d6bbfb; }
.package-tier-card.tier-ultra { border-color: #fedf89; }
.package-tier-card.current-plan { box-shadow: 0 0 0 2px #32d583, var(--ns-shadow-md); }
.recommended-ribbon { top: 23px; right: -45px; }
.package-tier-head { min-width: 0; }
.package-tier-head > div { min-width: 0; }
.package-tier-head > div span { max-width: 100%; }
.package-tier-summary { min-height: 0; color: var(--ns-muted); }
.package-price, .tier-price { color: var(--ns-text); }
.capability-list { border-color: var(--ns-line); background: var(--ns-surface-soft); }
.capability-list > div { min-width: 0; line-height: 1.35; }
.capability-list > div span { min-width: 0; overflow-wrap: anywhere; }
.feature-list { min-width: 0; }
.feature-list li, .compact-list li { overflow-wrap: anywhere; }
.package-tier-action { min-width: 0; }
.package-tier-action .btn { width: 100%; }

/* Software and marketplace cards */
.software-grid,
.item-admin-grid,
.marketplace-status-grid,
.capability-grid,
.locked-capability-grid,
.subscription-grid {
  min-width: 0;
}

.software-card,
.item-admin-card,
.subscription-card {
  min-width: 0;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: var(--ns-shadow-xs);
}

.software-card h3,
.item-admin-card h3,
.subscription-card h3 { overflow-wrap: anywhere; }
.software-meta, .software-capabilities, .item-admin-meta { min-width: 0; }
.software-capabilities > *, .item-admin-meta > * { min-width: 0; }
.item-admin-body p { min-height: 0; }
.marketplace-record-head > div { min-width: 0; }
.market-detail { min-width: 0; }
.market-detail strong { overflow-wrap: anywhere; }

/* Login and registration */
.login-page {
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 12%, rgba(166, 0, 39, 0.12), transparent 24rem),
    radial-gradient(circle at 88% 16%, rgba(7, 88, 247, 0.12), transparent 28rem),
    #f3f6fb;
}

.login-card {
  width: min(460px, 100%);
  padding: 34px;
  border-radius: 24px;
  box-shadow: var(--ns-shadow-lg);
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.auth-brand img {
  width: min(280px, 82%);
  height: auto;
}

.login-card h1 {
  margin: 0 0 7px;
  color: var(--ns-text);
  font-size: 30px;
  font-weight: 760;
  letter-spacing: -0.045em;
  text-align: center;
}

.login-card > p {
  color: var(--ns-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.login-card form { margin-top: 23px; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-switch { margin: 18px 0 0 !important; font-size: 12px; text-align: center; }
.auth-switch a { color: var(--ns-brand); font-weight: 800; }
.auth-security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; color: var(--ns-faint); font-size: 10px; }

.registration-page { padding: 28px 20px; }
.registration-card { width: min(980px, 100%); }
.registration-card .auth-brand { justify-content: flex-start; }
.registration-card .auth-brand img { width: 260px; }
.registration-card h1, .registration-card > p { text-align: left; }
.form-section { border-color: var(--ns-line); border-radius: 16px; background: #fbfcfe; }
.form-section-title > span { background: linear-gradient(135deg, var(--ns-brand), var(--ns-brand-dark)); }
.consent-row { border-color: var(--ns-line); }

/* Empty states */
.empty,
.empty-state-card {
  color: var(--ns-muted);
  overflow-wrap: anywhere;
}

/* Responsive */
@media (max-width: 1450px) {
  .sector-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1240px) {
  .package-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .package-tier-card.tier-ultra { grid-column: 1 / -1; }
  .software-grid, .item-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
  .sidebar {
    width: min(86vw, 310px);
    transform: translateX(-105%);
    transition: transform 0.24s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: inline-flex; }
  .sidebar-backdrop.visible { display: block; }
  .main { width: 100%; margin-left: 0; }
  .hamb { display: inline-flex; }
  .topbar-mark { display: block; }
  .breadcrumb { display: none; }
  .topbar { min-height: 76px; }
  .content { padding: 22px; }
  .platform-footer { padding-inline: 22px; }
  .grid2, .detail-grid, .commercial-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .commercial-hero,
  .marketplace-hero,
  .software-hero,
  .product-package-heading,
  .page-actions-row,
  .section-title-row,
  .company-heading,
  .marketplace-record-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .catalog-hero-actions, .actions { width: 100%; }
  .catalog-hero-actions .btn { flex: 1 1 auto; }
  .sector-catalog-tools { grid-template-columns: 1fr 1fr; }
  .package-tier-grid { grid-template-columns: 1fr; }
  .package-tier-card.tier-ultra { grid-column: auto; }
  .active-plan-summary { width: 100%; }
}

@media (max-width: 700px) {
  .top-icon-button { display: none; }
  .user-pill { max-width: 180px; }
  .user-pill-copy small { display: none; }
  .content { padding: 16px; }
  .platform-footer { padding: 16px; flex-direction: column; gap: 5px; }
  .cards, .form-grid, .software-grid, .item-admin-grid, .marketplace-status-grid, .capability-grid, .locked-capability-grid, .subscription-grid { grid-template-columns: 1fr; }
  .sector-picker-grid { grid-template-columns: 1fr; }
  .sector-catalog-tools { grid-template-columns: 1fr; }
  .sector-catalog-tools .btn { width: 100%; }
  .sector-picker-card { min-height: 154px; }
  .table-wrap table { min-width: 680px; }
  .registration-card { padding: 23px; }
  .registration-card .auth-brand { justify-content: center; }
  .registration-card h1, .registration-card > p { text-align: center; }
}

@media (max-width: 520px) {
  .topbar { padding: 12px 14px; gap: 8px; }
  .topbar-left { gap: 9px; }
  .topbar-mark { display: none; }
  .topbar h1 { font-size: 18px; }
  .user-pill { width: 38px; height: 38px; padding: 2px; border-radius: 11px; }
  .user-avatar { width: 32px; height: 32px; }
  .user-pill-copy { display: none; }
  .commercial-hero, .marketplace-hero, .software-hero, .card { padding: 18px; }
  .sector-picker-card {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "icon copy"
      ". state";
    gap: 9px 12px;
    padding: 16px;
  }
  .sector-picker-icon { width: 46px; height: 46px; }
  .sector-sale-state { justify-self: start; max-width: none; white-space: nowrap; }
  .sector-picker-arrow { display: none; }
  .login-page { padding: 14px; }
  .login-card { padding: 24px 20px; }
  .login-card h1 { font-size: 25px; }
  .form-section { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* UI v2.0.0 — legacy page compatibility and overflow hardening */
.content-inner > *,
.card > *,
.grid2 > *,
.detail-grid > *,
.commercial-detail-grid > *,
.page-actions,
.page-actions-row,
.actions,
.product-launch,
.detail-row,
.license-line,
.receipt-meta {
  min-width: 0;
}

.page-actions,
.page-actions-row,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card-subtitle {
  margin: -8px 0 14px;
  color: var(--ns-muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.detail-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--ns-line);
  border-radius: 14px;
  background: var(--ns-surface-soft);
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(135px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ns-line);
}

.detail-row:last-child { border-bottom: 0; }
.detail-row > span { color: var(--ns-muted); font-size: 11px; }
.detail-row > strong { color: var(--ns-text-soft); font-size: 12px; text-align: right; overflow-wrap: anywhere; }

.mono,
.license-key,
.license-line code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.license-key {
  display: inline-block;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--ns-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ns-navy-2);
  font-size: 11px;
}

.receipt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.receipt-meta span {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid var(--ns-line);
  border-radius: 999px;
  background: var(--ns-surface-soft);
  color: var(--ns-muted);
  font-size: 10px;
}

.price-box {
  display: grid;
  gap: 5px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #ffd2da;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ns-brand-soft), #fff);
  text-align: center;
}
.price-box strong { color: var(--ns-text); font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.04em; }
.price-box small { color: var(--ns-muted); font-size: 10px; }

.product-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--ns-line);
  border-radius: 14px;
  background: var(--ns-surface-soft);
}
.product-launch > div { min-width: 0; }
.product-launch h3 { margin: 0; font-size: 15px; }
.product-launch p { margin: 4px 0 0; color: var(--ns-muted); font-size: 11px; overflow-wrap: anywhere; }

.btn.disabled,
.btn:disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}

.marketplace-dashboard-card { overflow: hidden; }
.marketplace-dashboard-card .section-title-row > div { min-width: 0; }
.marketplace-dashboard-card p { overflow-wrap: anywhere; }

.software-logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #ffd2da;
  border-radius: 15px;
  background: var(--ns-brand-soft);
  color: var(--ns-brand);
  font-size: 19px;
}

.software-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.software-capabilities .enabled,
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #abefc6;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-size: 9px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.tier-badge { border-color: #b2ddff; background: #eff8ff; color: #175cd3; }

.license-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--ns-line);
  border-radius: 11px;
  background: var(--ns-surface-soft);
}
.license-line span { color: var(--ns-muted); font-size: 10px; font-weight: 750; }
.license-line code { min-width: 0; color: var(--ns-text-soft); font-size: 10px; text-align: right; }
.software-open { width: 100%; }

.timeline {
  display: grid;
  gap: 0;
}
.timeline .timeline-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  padding-bottom: 17px;
}
.timeline .timeline-item:last-child { padding-bottom: 0; }
.timeline .timeline-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ns-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ns-muted);
  font-size: 11px;
}
.timeline .timeline-item.active .timeline-dot { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.timeline .timeline-item.warning .timeline-dot { border-color: #fedf89; background: #fffaeb; color: #b54708; }
.timeline-copy { min-width: 0; }
.timeline-copy strong,
.timeline-copy small { display: block; }
.timeline-copy strong { color: var(--ns-text-soft); font-size: 12px; }
.timeline-copy small { margin-top: 3px; color: var(--ns-muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }

pre,
code {
  max-width: 100%;
}
pre { overflow-x: auto; }

@media (max-width: 700px) {
  .page-actions,
  .page-actions-row,
  .actions,
  .product-launch { align-items: stretch; flex-direction: column; }
  .page-actions .btn,
  .page-actions-row .btn,
  .actions .btn,
  .product-launch .btn { width: 100%; }
}

@media (max-width: 520px) {
  .detail-row { grid-template-columns: 1fr; gap: 4px; }
  .detail-row > strong { text-align: left; }
  .license-line { grid-template-columns: 1fr; }
  .license-line code { text-align: left; }
}

/* Paket yükseltme akışı V1.0.0 */
.upgrade-price-note {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid #b2ddff;
  border-radius: 12px;
  background: #eff8ff;
  color: #1849a9;
}
.upgrade-price-note > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.upgrade-price-note > strong {
  color: #102a56;
  font-size: 15px;
}
.upgrade-price-note > small {
  color: #475467;
  font-size: 10px;
  line-height: 1.5;
}
.order-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 8px;
  border: 1px solid #b2ddff;
  border-radius: 999px;
  background: #eff8ff;
  color: #175cd3;
  font-size: 9px;
  font-weight: 800;
}
.upgrade-route {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.upgrade-route strong {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--ns-surface-soft);
}
