:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #18202a;
  --muted: #667085;
  --line: #d9e1ea;
  --green: #178a58;
  --blue: #2367c9;
  --red: #d94b3d;
  --amber: #b7791f;
  --aqua: #007f86;
  --shadow: 0 18px 45px rgba(22, 35, 51, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  min-height: 40px;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.brand-mark span {
  width: 21px;
  height: 21px;
  border: 3px solid #fff;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}

.brand-mark.logo-image {
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.brand-mark.logo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.search {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  background: #eef3f8;
  border: 1px solid transparent;
  border-radius: 8px;
}

.search:focus-within {
  background: #fff;
  border-color: var(--blue);
}

.search input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search button,
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.search button:hover,
.icon-button:hover {
  background: rgba(35, 103, 201, 0.12);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-actions a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.top-actions a:hover {
  background: #eef3f8;
  color: var(--ink);
}

.store-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 28px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px) 40px;
}

.filters {
  align-self: start;
  position: sticky;
  top: 88px;
}

.filters h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-button {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.category-button:hover,
.category-button.active {
  background: var(--panel);
  border-color: var(--line);
}

.category-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.category-button span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.metric-strip div {
  min-width: 0;
  padding: 12px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.catalog {
  min-width: 0;
}

.catalog-head,
.section-title,
.developer-band,
.ranking-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.catalog-head {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(30px, 4vw, 56px);
  max-width: 780px;
}

.catalog-head select {
  width: min(220px, 100%);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.featured-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  margin-bottom: 30px;
}

.home-carousel {
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #0d2532;
}

.home-carousel-track {
  position: relative;
  min-height: 282px;
}

.home-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 5vw, 48px);
  overflow: hidden;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity 0.34s ease, transform 0.34s ease;
}

.home-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.home-slide::before,
.home-slide::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.home-slide::before {
  right: -80px;
  top: -80px;
  width: 310px;
  height: 310px;
  border: 42px solid rgba(255, 255, 255, 0.16);
}

.home-slide::after {
  right: 11%;
  bottom: -120px;
  width: 270px;
  height: 270px;
  background: rgba(255, 255, 255, 0.1);
}

.home-slide-search {
  background: linear-gradient(135deg, #0b7c72 0%, #2367c9 58%, #e24c3e 100%);
}

.home-slide-safe {
  background: linear-gradient(135deg, #0d5b3d 0%, #168a72 48%, #b9851c 100%);
}

.home-slide-install {
  background: linear-gradient(135deg, #132c69 0%, #0d8a86 50%, #18a957 100%);
}

.home-slide > * {
  position: relative;
  z-index: 1;
}

.home-slide h2 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 58px);
}

.home-slide p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.45;
}

.light-button {
  width: fit-content;
  min-height: 44px;
  color: #0f2430;
  background: #fff;
  box-shadow: 0 10px 22px rgba(10, 20, 30, 0.16);
}

.carousel-dots {
  position: absolute;
  left: clamp(24px, 5vw, 48px);
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dots button {
  width: 28px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.carousel-dots button.active {
  width: 44px;
  background: #fff;
}

.latest-apps-rail {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 245, 0.94));
  box-shadow: 0 8px 20px rgba(22, 35, 51, 0.05);
}

.latest-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.latest-rail-head h2 {
  font-size: 24px;
}

.latest-rail-head a {
  color: var(--blue);
  font-weight: 800;
}

.latest-apps-window {
  overflow: hidden;
  padding: 2px;
}

.latest-apps-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: latestAppsRail 32s linear infinite;
}

.latest-apps-window:hover .latest-apps-track {
  animation-play-state: paused;
}

.latest-app-pill {
  display: grid;
  grid-template-columns: 46px minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 270px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid #d5e1ea;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.latest-app-pill:hover {
  border-color: rgba(18, 138, 90, 0.45);
  transform: translateY(-1px);
}

.latest-app-pill img,
.latest-app-pill > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #178a58, #2367c9);
  object-fit: cover;
}

.latest-app-pill strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-app-pill small {
  color: var(--muted);
  font-weight: 800;
}

@keyframes latestAppsRail {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.feature-card {
  position: relative;
  min-height: 260px;
  padding: 22px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #146c43, #2367c9 55%, #d94b3d);
  box-shadow: var(--shadow);
}

.feature-card.compact {
  min-height: 260px;
  background: linear-gradient(135deg, #007f86, #b7791f);
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -78px;
  width: 230px;
  height: 230px;
  border: 34px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.feature-card h2 {
  position: relative;
  max-width: 520px;
  margin-top: 14px;
  font-size: clamp(25px, 4vw, 44px);
}

.feature-card p {
  position: relative;
  max-width: 560px;
  margin: 12px 0 20px;
  color: rgba(255, 255, 255, 0.86);
}

.feature-card .feature-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.radio-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.verified-badge {
  display: inline-block;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  object-fit: contain;
  vertical-align: -4px;
  filter: drop-shadow(0 2px 5px rgba(13, 151, 230, 0.22));
}

.detail-title .verified-badge {
  width: 24px;
  height: 24px;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-left: 6px;
  color: #c8d2df;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
}

.rating-stars .filled {
  color: #f6b600;
}

.content-rating-badge {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.18);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.content-rating-badge.rating-l {
  background: #3da253;
}

.content-rating-badge.rating-10 {
  background: #3d99d4;
}

.content-rating-badge.rating-12 {
  background: #f3c632;
  color: #1b2430;
}

.content-rating-badge.rating-14 {
  background: #f5822a;
}

.content-rating-badge.rating-16 {
  background: #e71d36;
}

.content-rating-badge.rating-18 {
  background: #050608;
}

.content-rating-line,
.content-rating-card,
.content-rating-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.content-rating-line {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.content-rating-card {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.content-rating-card .content-rating-badge {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 17px;
}

.content-rating-info {
  justify-content: flex-end;
  text-align: right;
}

.content-rating-info .content-rating-badge {
  width: 30px;
  height: 30px;
  font-size: 17px;
}

.content-rating-info small {
  max-width: 170px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.modern-table .content-rating-badge {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 17px;
}

.rating-pill .rating-stars {
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 13px;
}

.rating-pill .rating-stars .filled {
  color: #ffd45f;
}

.section-title {
  margin-bottom: 14px;
}

.section-title span {
  color: var(--muted);
  font-size: 14px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.app-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(22, 35, 51, 0.05);
}

.app-card:hover {
  border-color: rgba(35, 103, 201, 0.42);
  transform: translateY(-1px);
}

.app-main {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  min-width: 0;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 -18px 35px rgba(0, 0, 0, 0.16);
}

.app-card h3 {
  margin: 1px 0 4px;
  font-size: 17px;
  line-height: 1.2;
}

.app-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.app-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.app-meta strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.app-meta .rating-stars {
  margin-left: 4px;
  font-size: 13px;
}

.rating-meta strong {
  display: inline-flex;
  align-items: center;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
}

.button.danger {
  color: #fff;
  background: var(--red);
}

.button.warning {
  color: #18202a;
  background: #ffe8ae;
  border-color: #f4c962;
}

.compact-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.button:hover {
  filter: brightness(0.96);
}

.ranking-band,
.developer-band {
  border-top: 1px solid var(--line);
}

.site-footer {
  margin-top: 0;
  padding: 34px clamp(16px, 4vw, 48px);
  color: #18202a;
  background:
    linear-gradient(135deg, #f7f9fb 0%, #e7ecf1 42%, #cfd6de 100%);
  border-top: 1px solid #cfd6de;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, auto) minmax(220px, auto);
  gap: 24px;
  align-items: start;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.footer-brand {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
}

.footer-logo {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(22, 35, 51, 0.14));
}

.footer-brand strong {
  display: block;
  font-size: 20px;
}

.footer-brand p,
.footer-contact,
.footer-contact small {
  margin: 4px 0 0;
  color: #5f6d7c;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-contact a {
  color: #0f375f;
  font-weight: 700;
}

.footer-links a:hover,
.footer-contact a:hover {
  text-decoration: underline;
}

.apk-safe-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(23, 138, 88, 0.25);
  border-radius: 8px;
  background: #edfdf4;
  color: #126140;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.apk-safe-note .verified-badge {
  width: 24px;
  height: 24px;
}

.developer-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.developer-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.developer-card-actions form,
.developer-table-actions form {
  margin: 0;
}

.legal-shell {
  padding: 34px clamp(16px, 4vw, 48px) 48px;
  background:
    linear-gradient(180deg, rgba(237, 248, 242, 0.9), rgba(245, 247, 251, 1));
}

.legal-card {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin-bottom: 16px;
}

.legal-card h2 {
  margin-top: 24px;
  font-size: 22px;
}

.legal-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-card a {
  color: var(--green);
  font-weight: 800;
}

.featured-article {
  border-color: rgba(23, 138, 88, 0.22);
  background:
    linear-gradient(180deg, rgba(237, 253, 244, 0.72), #fff 240px);
}

.ranking-band {
  background: #fff;
}

.ranking-inner {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 48px);
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  width: min(760px, 100%);
}

.ranking-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.ranking-item strong {
  display: block;
}

.ranking-item span {
  color: var(--muted);
  font-size: 13px;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.developer-band {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 48px) 46px;
}

.developer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 32, 42, 0.58);
  overflow-y: auto;
}

.app-dialog {
  width: min(980px, calc(100% - 28px));
  max-height: min(860px, calc(100vh - 48px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: auto;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(24, 32, 42, 0.56);
}

.dialog-body {
  position: relative;
  padding: 22px;
  background: var(--panel);
}

.app-page-shell {
  display: grid;
  gap: 18px;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 48px) 46px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 700;
}

.app-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 35, 51, 0.06);
}

.app-action-panel {
  display: grid;
  gap: 10px;
}

.app-metric-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.app-metric-row div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.app-metric-row div > strong,
.app-metric-row div > span {
  display: block;
}

.app-metric-row div > strong {
  font-size: 22px;
}

.app-metric-row .rating-metric strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-metric-row .rating-metric .rating-stars {
  margin-left: 0;
  font-size: 17px;
}

.app-metric-row div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.app-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.app-content-flow {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.app-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 35, 51, 0.05);
}

.app-section h2,
.app-section h3,
.info-list h2 {
  margin: 0;
}

.app-screenshot-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0;
}

.app-info-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
}

.wide-rating {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
}

.detail-hero {
  min-width: 0;
}

.detail-title {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding-right: 42px;
}

.detail-title .app-icon {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.detail-title h2 {
  margin: 0 0 5px;
  font-size: clamp(24px, 4vw, 38px);
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.screenshot {
  min-height: 180px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #178a58, #2367c9);
  border: 1px solid var(--line);
}

.screenshot.alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, #007f86, #b7791f);
}

.screenshot.dark {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.05)),
    linear-gradient(135deg, #18202a, #d94b3d);
}

.image-shot {
  margin: 0;
  overflow: hidden;
  background: #f9fbfd;
}

.image-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-text {
  color: var(--muted);
  line-height: 1.6;
}

.detail-side {
  display: grid;
  gap: 12px;
  align-self: start;
}

.rating-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.rating-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating label {
  min-height: 34px;
  color: #c7d0da;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--amber);
}

.action-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 32, 42, 0.58);
}

.action-modal[hidden] {
  display: none !important;
}

.action-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(440px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.action-card h2,
.action-card p {
  margin: 0;
}

.action-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.radio-player {
  width: 100%;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.share-button {
  justify-content: flex-start;
  gap: 10px;
  min-height: 60px;
  padding: 10px 14px;
}

.share-button img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.share-button span {
  min-width: 0;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.copy-row input {
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comments-block {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.compact-title {
  margin-bottom: 0;
}

.compact-title h3 {
  margin: 0;
  font-size: 18px;
}

.muted-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.comment-item strong {
  font-size: 14px;
}

.comment-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.comment-reply {
  margin-top: 8px;
  padding: 12px;
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: #f3faf7;
}

.comment-reply strong {
  color: var(--green);
}

.comment-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comment-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.info-row strong {
  color: var(--ink);
  text-align: right;
}

.rating-inline {
  display: inline-flex;
  align-items: center;
}

.rating-inline .rating-stars {
  font-size: 14px;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
}

.single-column {
  grid-template-columns: 1fr;
}

.notice {
  width: min(1040px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef8f2;
  color: #135f3d;
  font-weight: 700;
}

.notice.error {
  background: #fff1f0;
  color: #a63b32;
  border-color: #f2c4bf;
}

.notice.success {
  background: #eef8f2;
  color: #135f3d;
  border-color: #b9e1c9;
}

.image-icon {
  object-fit: cover;
}

.admin-page {
  min-height: 100vh;
  background: #edf2f7;
}

.admin-app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  padding: 20px;
  background: #111827;
  color: #fff;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.admin-brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.admin-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 28px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  text-align: left;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.admin-nav-item span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.admin-sidebar-footer {
  display: grid;
  gap: 8px;
}

.admin-workspace {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 38px) 44px;
}

.admin-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-topline h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.admin-top-actions,
.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: grid;
  gap: 16px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.admin-stat-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 35, 51, 0.06);
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-stat-card strong {
  align-self: end;
  font-size: 32px;
}

.admin-stat-card.accent-card {
  border-color: rgba(23, 138, 88, 0.28);
  background:
    linear-gradient(180deg, rgba(237, 253, 244, 0.92), #fff);
}

.admin-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-surface {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(22, 35, 51, 0.06);
}

.admin-queue-card {
  border-color: rgba(35, 103, 201, 0.22);
  background:
    linear-gradient(180deg, rgba(241, 247, 255, 0.95), #fff);
}

.admin-surface label,
.developer-edit-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.admin-surface input,
.admin-surface select,
.admin-surface textarea,
.developer-edit-grid input,
.developer-edit-grid select,
.developer-edit-grid textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.admin-surface textarea,
.developer-edit-grid textarea {
  resize: vertical;
}

.admin-surface select[multiple] {
  min-height: 190px;
}

.developer-notice-card {
  align-content: start;
}

.notice-target-options {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-section-head h2 {
  font-size: 24px;
}

.mini-app-list {
  display: grid;
  gap: 10px;
}

.mini-app-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.mini-app-row strong,
.mini-app-row small {
  display: block;
}

.mini-app-row small {
  margin-top: 2px;
  color: var(--muted);
}

.tiny-icon {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.admin-search-input {
  width: min(320px, 100%);
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.modern-table table {
  border-collapse: separate;
  border-spacing: 0;
}

.modern-table tbody tr:hover {
  background: #f9fbfd;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-pill.featured,
.status-pill.status-approved {
  background: #e8f7ef;
  color: #137447;
}

.status-pill.status-pending_review {
  background: #fff5df;
  color: #996107;
}

.status-pill.status-suspended,
.status-pill.status-rejected {
  background: #fff1f0;
  color: #a63b32;
}

.moderation-item {
  background: #fff;
}

.email-console {
  background:
    linear-gradient(135deg, rgba(237, 253, 244, 0.92), rgba(241, 247, 255, 0.92));
}

.email-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.email-template-grid article {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.email-template-grid strong {
  color: var(--ink);
}

.email-template-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.email-actions form {
  margin: 0;
}

.notification-list {
  display: grid;
  gap: 12px;
}

.compact-notifications {
  gap: 8px;
}

.notification-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(207, 219, 232, 0.9);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.96));
}

.notification-item.unread {
  border-color: rgba(20, 150, 92, 0.35);
  box-shadow: inset 4px 0 0 #15965c;
}

.notification-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.notification-item small,
.notification-item time {
  color: var(--muted);
  font-size: 13px;
}

.notification-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.notification-heading h3 {
  margin: 8px 0 0;
  font-size: 20px;
}

.admin-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(360px, 560px);
  gap: 18px;
  align-items: start;
  width: min(1020px, 100%);
}

.developer-auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(48, 179, 128, 0.28), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(60, 132, 206, 0.26), transparent 28%),
    linear-gradient(135deg, #071927 0%, #0d3340 44%, #126140 100%);
}

.developer-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent);
}

.developer-auth-login {
  position: relative;
  align-items: start;
  padding-top: clamp(34px, 6vh, 70px);
}

.developer-auth-grid {
  grid-template-columns: minmax(320px, 470px) minmax(380px, 560px);
  gap: 22px;
}

.auth-card {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.auth-login-card {
  position: sticky;
  top: 28px;
  padding: 24px;
  overflow: hidden;
}

.auth-login-card::after {
  content: "";
  display: block;
  height: 8px;
  margin: 8px -24px -24px;
  background: linear-gradient(90deg, var(--green), var(--blue), #e0a128);
}

.auth-register-card {
  padding: 24px;
}

.auth-brand-block {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
}

.auth-brand-block .brand-mark {
  width: 58px;
  height: 58px;
  box-shadow: 0 16px 38px rgba(23, 138, 88, 0.28);
}

.auth-brand-block h1 {
  font-size: clamp(42px, 5vw, 64px);
}

.auth-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.auth-feature-strip span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(35, 103, 201, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #eef6f1);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.developer-auth-page .admin-card label {
  color: #516179;
}

.developer-auth-page .admin-card input,
.developer-auth-page .admin-card textarea {
  min-height: 46px;
  border-color: #cfdbea;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.developer-auth-page .admin-card input:focus,
.developer-auth-page .admin-card textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(23, 138, 88, 0.14);
  background: #fff;
}

.developer-auth-page .button.primary {
  min-height: 46px;
  background: linear-gradient(135deg, #178a58, #0f7d86);
  box-shadow: 0 12px 26px rgba(23, 138, 88, 0.26);
}

.developer-auth-page .button.secondary {
  min-height: 46px;
  background: #fff;
}

.auth-small-link {
  justify-self: center;
  color: #0e6b4a;
  font-weight: 900;
  text-decoration: none;
}

.auth-small-link:hover {
  text-decoration: underline;
}

.register-card {
  width: 100%;
}

.inline-notice {
  width: auto;
  margin: 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 16px;
}

.admin-header h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 42px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-card {
  display: grid;
  gap: 14px;
  width: min(460px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(22, 35, 51, 0.08);
}

.admin-card.wide {
  width: 100%;
  margin-top: 14px;
}

.admin-card h1,
.admin-card h2,
.admin-card p {
  margin: 0;
}

.admin-card p {
  color: var(--muted);
}

.admin-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.admin-card textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.publication-wizard {
  overflow: hidden;
}

.publication-progress {
  display: grid;
  gap: 14px;
  margin: 18px 0 24px;
  padding: 16px;
  border: 1px solid rgba(203, 218, 229, 0.92);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbfd, #eef5f0);
}

.publication-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe9ef;
}

.publication-progress-track span {
  display: block;
  width: 6%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #128a5a, #25c46f);
  transition: width 0.22s ease;
}

.publication-progress ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication-progress li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px;
  border: 1px solid #cfdae8;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  background: #fff;
}

.publication-progress li.active {
  color: #062316;
  border-color: rgba(18, 138, 90, 0.4);
  background: #eafaf1;
}

.publication-progress li.complete {
  color: #fff;
  border-color: #128a5a;
  background: linear-gradient(135deg, #128a5a, #1aaa68);
}

.publication-step {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(207, 219, 232, 0.92);
  border-radius: 8px;
  background: #fff;
}

.publication-step[hidden] {
  display: none;
}

.publication-step-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.publication-step-head > span {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #128a5a, #1aaa68);
}

.publication-step-head h3 {
  margin: 0;
  font-size: 24px;
}

.publication-step-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.success-step > span {
  background: linear-gradient(135deg, #15965c, #2dd67f);
}

.publication-step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.publication-step-actions .button:disabled,
.publication-wizard .button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.upload-preview {
  display: grid;
  min-height: 150px;
  padding: 12px;
  border: 1px dashed #bccadd;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbfd, #f2f7f4);
}

.upload-preview span {
  place-self: center;
  color: var(--muted);
  font-weight: 800;
}

.upload-preview img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d8e2ec;
  background: #fff;
}

.single-preview {
  max-width: 220px;
  min-height: 180px;
}

.single-preview img {
  height: 170px;
  object-fit: contain;
}

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

.upload-count {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #8a5a12;
  font-weight: 900;
  background: #fff4d7;
}

.upload-count.complete {
  color: #075f3a;
  background: #dff7e9;
}

.apk-file-card,
.publication-final-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #cfdae8;
  border-radius: 8px;
  background: linear-gradient(135deg, #f9fcfd, #edf8f2);
}

.apk-file-card small,
.publication-final-card p {
  margin: 0;
  color: var(--muted);
}

.publication-final-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce9e2;
}

.publication-final-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #128a5a, #25c46f);
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--ink) !important;
}

.checkbox-row input {
  width: auto;
}

.admin-table {
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-actions-cell {
  min-width: 320px;
}

.inline-admin-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.inline-admin-form select {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.inline-admin-form input {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.edit-row-form {
  margin-bottom: 8px;
}

.radio-edit-form {
  display: grid;
  gap: 10px;
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.mini-check {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  color: var(--ink) !important;
  font-size: 13px !important;
}

.mini-check input {
  width: auto;
}

.admin-comment-list {
  margin-top: 4px;
}

.comment-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.comment-admin-head strong,
.comment-admin-head small {
  display: block;
}

.comment-admin-head small {
  margin-top: 3px;
  color: var(--muted);
}

.reply-form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.form-divider {
  height: 1px;
  background: var(--line);
}

.developer-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.developer-edit-grid form {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.developer-edit-grid h3 {
  margin: 0;
  font-size: 18px;
}

.app-manage-card {
  gap: 18px;
}

.admin-media-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.admin-media-preview figure {
  position: relative;
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.admin-media-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-media-preview figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.media-remove-toggle {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  cursor: pointer;
}

.media-remove-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.media-remove-toggle span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 18, 30, 0.72);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.media-remove-toggle input:checked + span {
  background: var(--red);
}

.developer-profile {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.developer-profile div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.developer-profile span,
.developer-profile strong {
  display: block;
}

.developer-profile span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.developer-profile-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef7f3 52%, #e8eef4 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  padding: 28px;
  overflow: hidden;
}

.developer-profile-cover {
  display: grid;
  min-height: 230px;
  margin: 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #087f5b 55%, #15aabf 100%);
}

.developer-profile-cover img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.developer-cover-fallback {
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 230px;
  padding: 28px;
  color: #fff;
}

.developer-cover-fallback span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.developer-cover-fallback strong {
  max-width: 680px;
  font-size: 32px;
  line-height: 1.1;
}

.developer-profile-title {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 96px 1fr;
  margin-top: -34px;
  position: relative;
  z-index: 1;
}

.developer-profile-logo {
  width: 96px;
  height: 96px;
  border: 4px solid #fff;
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  object-fit: cover;
}

.developer-profile-logo.initials-logo {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f8f66, #2367c9);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.developer-profile-title h1 {
  margin: 0;
}

.developer-profile-title p {
  color: var(--muted);
  margin: 8px 0 0;
}

.developer-profile-metrics {
  margin-top: 24px;
}

.developer-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.developer-public-preview {
  position: relative;
  min-height: 180px;
  margin-bottom: 14px;
}

.developer-cover-preview {
  display: grid;
  place-items: center;
  height: 170px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #10243f, #087f5b);
  color: #fff;
  font-weight: 900;
}

.developer-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.developer-logo-preview {
  position: absolute;
  left: 22px;
  bottom: -24px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 4px solid #fff;
  border-radius: 22px;
  background: #f1f5f9;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
  font-size: 26px;
  font-weight: 900;
}

.developer-logo-preview img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

@media (max-width: 980px) {
  .topbar,
  .store-shell,
  .featured-band,
  .detail-layout,
  .app-page-hero,
  .app-page-grid,
  .ranking-inner,
  .developer-band {
    grid-template-columns: 1fr;
  }

  .filters,
  .app-info-sidebar {
    position: static;
  }

  .top-actions {
    display: none;
  }

  .category-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .ranking-inner,
  .developer-band {
    align-items: flex-start;
  }

  .ranking-list {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-carousel-track {
    min-height: 360px;
  }

  .latest-rail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-grid,
  .form-grid,
  .compact-grid,
  .developer-edit-grid,
  .developer-profile {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions-cell {
    min-width: 260px;
  }

  .admin-app-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .admin-stat-grid,
  .app-metric-row,
  .admin-two-column,
  .auth-grid,
  .email-template-grid,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .publication-progress ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publication-step-actions {
    justify-content: stretch;
  }

  .publication-step-actions .button {
    flex: 1;
  }

  .wide-rating {
    grid-template-columns: 1fr;
  }

  .admin-topline,
  .admin-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .developer-card-actions {
    justify-content: flex-start;
  }

  .auth-login-card {
    position: static;
  }

  .developer-auth-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 12px;
    padding: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .store-shell {
    padding: 18px 12px 28px;
  }


  .catalog-head,
  .section-title,
  .developer-band {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 34px;
  }

  .home-slide {
    padding: 22px;
  }

  .home-slide h2 {
    font-size: 32px;
  }

  .home-slide p {
    font-size: 16px;
  }

  .carousel-dots {
    left: 22px;
  }

  .latest-app-pill {
    width: 230px;
  }

  .featured-band,
  .app-grid,
  .screenshot-row {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card.compact {
    min-height: 220px;
  }

  .card-actions,
  .app-meta {
    grid-template-columns: 1fr;
  }

  .share-grid,
  .copy-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 28px 16px;
  }

  .detail-title {
    grid-template-columns: 56px 1fr;
  }

  .detail-title .app-icon {
    width: 56px;
    height: 56px;
  }

  .modal-backdrop {
    place-items: start center;
    padding: 12px;
  }

  .developer-profile-hero {
    padding: 16px;
  }

  .developer-profile-cover,
  .developer-profile-cover img,
  .developer-cover-fallback {
    min-height: 170px;
  }

  .developer-profile-title {
    grid-template-columns: 74px 1fr;
    gap: 12px;
    margin-top: -24px;
  }

  .developer-profile-logo {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  .developer-cover-fallback strong {
    font-size: 24px;
  }
}
