/* ===== Variables ===== */
:root {
  --bg: #0a0e17;
  --bg-card: rgba(18, 24, 38, 0.85);
  --bg-card-hover: rgba(24, 32, 50, 0.95);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 179, 237, 0.35);
  --text: #e8edf5;
  --text-muted: #8b95a8;
  --accent: #3b9eff;
  --accent-glow: rgba(59, 158, 255, 0.25);
  --accent-2: #7c5cff;
  --success: #34d399;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.hidden { display: none !important; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Background glow ===== */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow--1 {
  width: 500px; height: 500px;
  top: -150px; right: -100px;
  background: rgba(59, 158, 255, 0.12);
}
.bg-glow--2 {
  width: 400px; height: 400px;
  bottom: 10%; left: -120px;
  background: rgba(124, 92, 255, 0.1);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 14, 23, 0.75);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}
.logo__img { border-radius: 8px; }
.logo__icon {
  font-size: 1.5rem;
  color: var(--accent);
}
.nav { display: flex; gap: 28px; }
.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__link:hover { color: var(--text); }

/* ===== Category nav ===== */
.category-nav {
  position: relative;
  z-index: 1;
  padding: 0 0 28px;
}
.category-nav__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.category-tab:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.category-tab.active {
  background: rgba(59, 158, 255, 0.15);
  border-color: rgba(59, 158, 255, 0.4);
  color: var(--accent);
}
.category-tab__count {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}
.category-tab.active .category-tab__count {
  background: rgba(59, 158, 255, 0.2);
}

/* ===== Category sections ===== */
.category-section { margin-bottom: 40px; }
.category-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.category-section__icon {
  color: var(--accent);
  display: flex;
}
.category-section__title {
  font-size: 1.2rem;
  font-weight: 700;
}
.category-section__count {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(59, 158, 255, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 72px 0 40px;
  text-align: center;
}
.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(59, 158, 255, 0.12);
  border: 1px solid rgba(59, 158, 255, 0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 32px;
}
.search-box {
  position: relative;
  max-width: 480px;
  margin: 0 auto 40px;
}
.search-box--sm { max-width: 100%; margin: 0 0 12px; }
.search-box__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-box--sm .search-box__icon { left: 14px; }
.search-box__input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box--sm .search-box__input {
  padding: 12px 16px 12px 42px;
  font-size: 0.88rem;
}
.search-box__input:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-box__input::placeholder { color: var(--text-muted); }

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Program cards ===== */
.programs {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}
.programs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.programs__empty { padding: 48px 0; }

.empty-state {
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.empty-state iconify-icon { opacity: 0.4; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card__top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}
.card__info { flex: 1; min-width: 0; }
.card__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__version {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card__footer { margin-bottom: 4px; }
.card__source {
  font-size: 0.75rem;
  color: var(--accent);
}
.card__action {
  margin-top: auto;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(59, 158, 255, 0.12);
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.card__action--download {
  background: linear-gradient(135deg, var(--accent), #2b7fd4);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.card__action--download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #2b7fd4);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
}
.btn--danger {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.btn--danger:hover {
  background: rgba(248, 113, 113, 0.2);
}
.btn--sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}
.btn--full { width: 100%; }

/* ===== Progress / Download modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  width: min(480px, 100%);
  background: #121826;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.3s ease;
}
.modal__dialog--sm { width: min(420px, 100%); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.download-modal__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.progress__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
}
.progress__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.15s ease;
}
.progress__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.progress__percent {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}
.progress__detail {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.progress__speed {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
#downloadCloseBtn { width: 100%; }

/* ===== Login ===== */
.login-screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: min(400px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  backdrop-filter: blur(12px);
}
.login-card__brand {
  text-align: center;
  margin-bottom: 28px;
}
.login-card__brand img { margin-bottom: 12px; }
.login-card__brand h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.login-card__brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form__error {
  color: var(--danger);
  font-size: 0.82rem;
  text-align: center;
}
.login-card__hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 16px;
}
.login-card__back {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.login-card__back:hover { color: var(--accent); }

/* ===== Admin app layout ===== */
.admin-app {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(12, 16, 26, 0.95);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.admin-sidebar__nav {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-sidebar__footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  text-align: left;
}
.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.admin-nav-item.active {
  background: rgba(59, 158, 255, 0.12);
  color: var(--accent);
}
.admin-nav-item--logout { color: var(--danger); }
.admin-nav-item--logout:hover { background: rgba(248, 113, 113, 0.1); }

.admin-main {
  flex: 1;
  padding: 32px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 100vh;
  min-width: 0;
}
.admin-tab { display: none; }
.admin-tab.active { display: block; }
.admin-header { margin-bottom: 28px; }
.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.admin-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.admin-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  min-width: 0;
}
.admin-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
  overflow: hidden;
}
.admin-panel--wide { margin-top: 24px; }
.admin-panel--narrow { max-width: 440px; }
.admin-panel h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.admin-panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-panel__toolbar h2 { margin-bottom: 0; }
.toolbar-select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82rem;
  outline: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
}
.stat-card__value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}
.stat-card__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.admin-list--compact .admin-item { padding: 10px 12px; }
.admin-item--compact .admin-item__actions { display: none; }

.form-group select {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}
.form-group select:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.settings-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.settings-status {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.settings-status--ok { color: var(--success); }
.settings-status--err { color: var(--danger); }
.file-btn { cursor: pointer; }
.settings-note code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}
.admin-panel--wide { grid-column: 1 / -1; }

.deploy-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.deploy-banner__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: #fcd34d;
}
.deploy-banner__text strong { color: #fde68a; }
.deploy-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer__inner {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: #1a2332;
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: toastIn 0.35s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== Admin page ===== */
.admin-page {
  position: relative;
  z-index: 1;
  padding: 40px 0 80px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.admin-panel,
.admin-list-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
}
.admin-panel__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.admin-panel__subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}
.admin-list-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.admin-list-panel__header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}
.badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(59, 158, 255, 0.15);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ===== Form ===== */
.admin-form { display: flex; flex-direction: column; gap: 18px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.admin-form__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

/* ===== Icon picker ===== */
.icon-picker {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
}
.icon-picker__selected {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.icon-picker__preview {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.icon-picker__name {
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-all;
}
.icon-picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
}
.icon-picker__grid::-webkit-scrollbar { width: 6px; }
.icon-picker__grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.icon-picker__item {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.icon-picker__item:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.icon-picker__item.selected {
  border-color: var(--accent);
  background: rgba(59, 158, 255, 0.12);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.icon-picker__msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 16px 8px;
}

/* ===== Admin list ===== */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 620px;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}
.admin-list__empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 32px 0;
}
.admin-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  transition: border-color var(--transition);
  min-width: 0;
  overflow: hidden;
}
.admin-item:hover { border-color: var(--border-hover); }
.admin-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.admin-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-item__info strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-item__info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.admin-item__url {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}
.admin-item__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ===== Vitrin Düzenleyici ===== */
.vitrin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.vitrin-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: all var(--transition);
  min-width: 0;
}
.vitrin-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.vitrin-card__icon {
  color: var(--accent);
  display: flex;
}
.vitrin-card__name {
  font-size: 1rem;
  font-weight: 700;
}
.vitrin-card__count {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.vitrin-card__arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.vitrin-back {
  margin-bottom: 20px;
}
.vitrin-programs-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.vitrin-programs-header__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.vitrin-programs-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.vitrin-programs-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.vitrin-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.sort-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sort-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  min-width: 0;
}
.sort-item__rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(59, 158, 255, 0.15);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sort-item__icon {
  color: var(--accent);
  flex-shrink: 0;
  display: flex;
}
.sort-item__info {
  flex: 1;
  min-width: 0;
}
.sort-item__info strong {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sort-item__info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.sort-item__actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.sort-item__actions .btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

iconify-icon { display: inline-flex; vertical-align: middle; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .admin-split { grid-template-columns: 1fr; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .admin-app { flex-direction: column; }
  .admin-main { max-height: none; }
}

@media (max-width: 600px) {
  .hero { padding-top: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-item {
    flex-wrap: wrap;
  }
  .admin-item__actions {
    width: 100%;
    justify-content: flex-end;
  }
}
