:root {
  --bg: #ffffff;
  --ink: #121212;
  --muted: #6b6b6b;
  --line: #ececec;
  --soft: #f6f6f6;
  --soft-hover: #efefef;
  --accent: #171717;
  --accent-hover: #000000;
  --price: #0f766e;
  --radius: 12px;
  --font: "Vazirmatn", "Tahoma", sans-serif;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* --- Top bar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: min(100% - 2rem, 920px);
  margin: 0 auto;
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: var(--ink);
}

.brand-name {
  font-size: 0.98rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  justify-content: flex-end;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

/* --- Layout --- */
.shell {
  width: min(100% - 2rem, 920px);
  max-width: 100%;
  margin: 0 auto;
  padding: 1.75rem 0 3.5rem;
  min-width: 0;
  overflow: hidden;
}

.hero {
  max-width: 34rem;
  text-align: right;
}

.hero-compact .title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}

.hero-compact .subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.55;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.title {
  margin: 0.55rem 0 0;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
}

.subtitle {
  margin: 0.85rem 0 0;
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 40ch;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  min-width: 5.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-sm {
  min-height: 2rem;
  min-width: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 7px;
  font-size: 0.78rem;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  min-width: auto;
  padding-inline: 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.btn-ghost:hover {
  background: var(--soft);
}

.btn.is-soon {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-menu {
  position: relative;
  flex-shrink: 0;
}

.admin-menu-toggle {
  cursor: pointer;
}

.admin-menu-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 40;
  min-width: 11.5rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-menu-panel[hidden] {
  display: none !important;
}

.admin-menu-panel a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.admin-menu-panel a:hover {
  background: var(--soft);
}

/* --- Apps --- */
.content-block {
  margin-top: 3rem;
  text-align: right;
}

.content-block-tight {
  margin-top: 1.5rem;
}

.section-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.section-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-intro,
.section-body {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  white-space: pre-wrap;
}

.list {
  display: grid;
  gap: 1rem;
  text-align: right;
  min-width: 0;
  width: 100%;
}

.card,
.admin-block {
  padding: 0.95rem 1.05rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: right;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.card:hover,
.admin-block:hover {
  border-color: #d8d8d8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.admin-block {
  margin-top: 1rem;
  background: var(--soft);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
}

.card-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.app-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--soft);
  border: 1px solid var(--line);
}

.admin-block .app-logo {
  width: 40px;
  height: 40px;
}

.card-head {
  min-width: 0;
}

.card-head h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.card-tag {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
}

.card-blurb {
  margin: 0.55rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.card-summary {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-details {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-details:hover {
  color: var(--price);
}

.card-desc-full {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-wrap;
}

.pricing {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.price-note {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.price-plans {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0;
}

.price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0 0.55rem;
  border-inline-end: 1px solid var(--line);
  font-size: 0.78rem;
}

.price-chip:first-child {
  padding-inline-start: 0;
}

.price-chip:last-child {
  border-inline-end: 0;
  padding-inline-end: 0;
}

.price-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

.price-old {
  font-size: 0.68rem;
  color: #a3a3a3;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.price-new,
.price-only {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--price);
  letter-spacing: -0.01em;
}

.android-wrap {
  display: contents;
}

.abi-meta {
  margin: 0;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: left;
  max-width: 14rem;
  line-height: 1.4;
}

.abi-hint {
  display: inline;
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.abi-alt {
  font-size: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.75;
}

.abi-alt:hover {
  opacity: 1;
}

.status-msg {
  margin: 1.25rem 0 0;
  max-width: 42ch;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid var(--line);
  color: #444;
  font-size: 0.9rem;
}

.contact-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.contact-list li {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.92rem;
}

.contact-list a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer p {
  margin: 0.85rem 0 0;
}

.footer-blurb {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 40rem;
  margin-inline: auto;
}

#admin-apps {
  display: none;
}

.enamad-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.enamad-wrap a {
  display: inline-block;
  line-height: 0;
}

.enamad-wrap img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  image-rendering: auto;
  max-width: 100%;
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding: 0.65rem 0;
    min-height: auto;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.15rem;
  }

  .hero {
    text-align: center;
    margin-inline: auto;
  }

  .subtitle {
    margin-inline: auto;
  }

  .section-head,
  .content-block,
  .contact-list {
    text-align: right;
  }

  .card,
  .admin-block {
    text-align: right;
  }

  .card-top {
    flex-wrap: wrap;
  }

  .card-side {
    width: 100%;
    align-items: flex-start;
  }

  .card-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .abi-meta {
    text-align: right;
    max-width: none;
  }

  .price-plans {
    justify-content: flex-start;
  }
}
