:root {
  --bg: #05090d;
  --surface: #0c151c;
  --surface-2: #111d26;
  --line: rgba(125, 217, 233, 0.18);
  --line-strong: rgba(125, 217, 233, 0.38);
  --text: #eef8fb;
  --muted: #9db7c1;
  --dim: #6f8993;
  --accent: #73d8e7;
  --accent-2: #18a0bd;
  --green: #2bd977;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 80% 0, rgba(24, 160, 189, 0.28), transparent 28rem),
    radial-gradient(circle at 10% 14%, rgba(115, 216, 231, 0.12), transparent 24rem),
    var(--bg);
  background-size: 40px 40px, 40px 40px, auto, auto, auto;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(14px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 13, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: #061015;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 18px 36px rgba(24, 160, 189, 0.18);
}

h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.1;
}

.brand p,
.stats,
.empty {
  margin: 4px 0 0;
  color: var(--muted);
}

.stats {
  flex: 0 0 auto;
  font-size: 0.92rem;
  text-align: right;
}

main {
  width: min(1260px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 80px;
}

.controls {
  position: sticky;
  top: 91px;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px 0 16px;
  background: linear-gradient(180deg, rgba(5, 9, 13, 0.94), rgba(5, 9, 13, 0.72), transparent);
}

.search-box {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(12, 21, 28, 0.86);
  font: inherit;
  outline: none;
}

.search-box input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(115, 216, 231, 0.08);
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab {
  min-height: 48px;
  min-width: 86px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(12, 21, 28, 0.76);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tab.is-active {
  color: #061015;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 14px;
}

.app-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: inherit;
  background: linear-gradient(180deg, rgba(17, 29, 38, 0.88), rgba(8, 15, 20, 0.86));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(20, 38, 49, 0.92), rgba(8, 15, 20, 0.86));
}

.app-icon {
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.app-title,
.dialog-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
}

.app-desc {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 5px 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--dim);
  font-size: 0.78rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(115, 216, 231, 0.14);
  border-radius: 999px;
  background: rgba(115, 216, 231, 0.045);
}

.empty {
  padding: 40px 0;
  text-align: center;
}

.app-dialog {
  width: min(660px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 28px));
  margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0;
  color: var(--text);
  background: linear-gradient(180deg, #111d26, #060b10);
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
}

.dialog-body {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.dialog-head {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding-right: 42px;
}

.dialog-head .app-icon {
  width: 82px;
  height: 82px;
}

.dialog-title {
  font-size: 1.4rem;
}

.dialog-subtitle,
.dialog-description,
.info-row {
  color: var(--muted);
}

.dialog-description {
  white-space: pre-wrap;
}

.info-panel {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(115, 216, 231, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.info-row {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 950;
  text-decoration: none;
}

.button {
  color: #061015;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--accent);
  background: rgba(115, 216, 231, 0.06);
}

@media (max-width: 720px) {
  .topbar,
  .brand {
    align-items: flex-start;
  }

  .topbar {
    position: relative;
    display: grid;
    padding: 14px;
  }

  .stats {
    text-align: left;
  }

  main {
    width: min(100% - 20px, 520px);
    padding-top: 10px;
  }

  .controls {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .tab {
    min-width: 0;
  }

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

  .app-dialog {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }
}



<style>
.dc-mini-help{
  max-width:300px;
  width:92%;
  margin:8px auto;
  padding:7px 9px;
  background:#e9f7f7;
  border:1px solid #cfeaea;
  border-radius:6px;
  font-family:sans-serif;
  font-size:11.5px;
  line-height:1.35;
  color:#222;
}

.dc-mini-help .dc-title{
  font-weight:600;
  font-size:11.8px;
  margin-bottom:3px;
}

.dc-mini-help ol{
  margin:0;
  padding-right:14px;
}

.dc-mini-help li{
  margin:1px 0;
}

/* کوچکتر برای موبایل */
@media (max-width:480px){
  .dc-mini-help{
    font-size:11px;
    padding:6px 8px;
  }
}
</style>
