/* Octa Store — tema claro, moderno (azul #1a73e8, verde #34a853) */

:root {
  --bg: #f4f6fa;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --text: #1f1f1f;
  --text-muted: #5f6368;
  --line: #e0e4eb;
  --blue: #1a73e8;
  --blue-soft: #e8f0fe;
  --blue-hover: #1557b0;
  --green: #1e8e3e;
  --green-soft: #e6f4ea;
  --green-hover: #188038;
  --danger: #d93025;
  --warn: #f9ab00;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(32, 33, 36, 0.08);
  --shadow-hover: 0 8px 32px rgba(32, 33, 36, 0.12);
  --transition: 0.2s ease;
  --font: "Segoe UI", system-ui, -apple-system, "Google Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.theme-light {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(26, 115, 232, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(30, 142, 62, 0.06), transparent 45%);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--blue-hover);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.logo__mark {
  color: var(--green);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.nav-main a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-main a:hover {
  color: var(--text);
}

.nav-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.5rem 0.2rem 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.nav-profile:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.nav-profile__img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-profile__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-nav__profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav__profile img {
  border-radius: 50%;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0 1.25rem 1rem;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .nav-main {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .mobile-nav:not([hidden]) {
    display: flex;
  }
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem;
  min-height: 60vh;
}

/* Hero */
.hero {
  padding: 2rem 0 2.5rem;
  animation: fadeUp 0.6s ease;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__sub {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 520px;
}

.search-bar input[type="search"] {
  flex: 1;
  min-width: 200px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow var(--transition), background var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue), #4285f4);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}

.btn--primary:hover {
  background: var(--blue-hover);
  color: #fff;
}

.btn--accent {
  background: linear-gradient(135deg, var(--green), #1e8e3e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(52, 168, 83, 0.3);
}

.btn--accent:hover {
  background: var(--green-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--text);
}

.btn--sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.btn--danger {
  background: rgba(234, 67, 53, 0.15);
  color: #f28b82;
  border: 1px solid rgba(234, 67, 53, 0.4);
}

.btn--danger:hover {
  background: rgba(234, 67, 53, 0.25);
  color: #fff;
}

.btn--link {
  display: inline-flex;
  margin-top: 0.65rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn--link:hover {
  color: var(--blue-hover);
}

/* Inputs */
.input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.25);
}

.input--sm {
  padding: 0.4rem 0.55rem;
  font-size: 0.85rem;
}

.input--inline {
  flex: 1;
  min-width: 120px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field--full {
  grid-column: 1 / -1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.form-section legend {
  padding: 0 0.35rem;
  color: var(--green);
  font-weight: 600;
}

.checkbox-row,
.radio-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0;
  cursor: pointer;
}

.checkbox-row--inline {
  display: inline-flex;
  margin: 0;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.card--lift {
  box-shadow: var(--shadow);
}

/* Section */
.section {
  margin: 2rem 0;
  animation: fadeUp 0.55s ease backwards;
}

.section--tight {
  margin: 1rem 0;
}

.section__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section__title {
  margin: 0 0 0.75rem;
}

.section h2 {
  margin: 0;
  font-size: 1.25rem;
}

.link-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: auto;
}

/* Carousels */
.carousel {
  overflow: hidden;
  margin: 0 -0.25rem;
}

.carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.carousel__item {
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
}

.carousel__item--stack {
  flex: 0 0 min(210px, 78vw);
  scroll-snap-align: start;
}

.carousel-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
}

.carousel-nav:hover {
  background: var(--bg-elevated);
}

.carousel-nav:active {
  transform: scale(0.95);
}

/* App cards */
.grid-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.app-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 142, 62, 0.35);
  box-shadow: var(--shadow-hover);
}

.app-card--wide {
  min-width: 280px;
}

/* Destacadas: icono arriba, texto abajo */
.app-card--stack .app-card__link {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.35rem 1rem 1.15rem;
  gap: 0.65rem;
}

.app-card--stack .app-card__icon {
  width: 88px;
  height: 88px;
}

.app-card--stack .app-card__body {
  width: 100%;
}

.app-card--stack .app-card__title {
  font-size: 0.98rem;
  line-height: 1.3;
}

.app-card--stack .app-card__meta {
  justify-content: center;
}

.app-card--stack .app-card__desc {
  -webkit-line-clamp: 3;
}

.app-card__link {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem;
  color: inherit;
}

.app-card__link:hover {
  color: inherit;
}

.app-card__icon-wrap {
  flex-shrink: 0;
}

.app-card__icon {
  border-radius: 22%;
  object-fit: cover;
}

.app-card__title {
  margin: 0;
  font-size: 1rem;
}

.app-card__dev {
  margin: 0.15rem 0;
  font-size: 0.8rem;
  color: var(--green);
}

.app-card__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-hover);
  font-size: 0.75rem;
}

.pill--inline {
  margin-bottom: 0.35rem;
}

.chip {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.85rem;
  margin: 0.2rem;
  transition: border-color var(--transition), background var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.chip:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.chip--static {
  pointer-events: none;
  opacity: 0.9;
}

/* Ficha de app — layout acogedor */
.app-page {
  padding-bottom: 2rem;
  animation: fadeUp 0.45s ease;
}

.app-page__banner {
  height: min(180px, 28vw);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background-image: linear-gradient(160deg, rgba(26, 115, 232, 0.2), rgba(30, 142, 62, 0.12)),
    var(--app-banner, none);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.app-page__intro {
  padding: 0;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.app-page__intro-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 1.75rem;
  padding: 1.5rem 1.5rem 1.65rem;
  align-items: start;
}

@media (max-width: 600px) {
  .app-page__intro-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .app-page__intro-copy {
    width: 100%;
  }

  .app-stat-bar {
    justify-content: center;
  }

  .app-page__actions {
    justify-content: center;
  }
}

.app-page__icon-shell {
  padding: 0.35rem;
  background: linear-gradient(145deg, rgba(26, 115, 232, 0.18), rgba(30, 142, 62, 0.12));
  border-radius: 26%;
  box-shadow: var(--shadow);
}

.app-page__icon-shell--round {
  border-radius: 28%;
  padding: 0.45rem;
}

.app-page__icon {
  display: block;
  border-radius: 22%;
  object-fit: cover;
}

.app-page__icon--round {
  border-radius: 28%;
}

.app-page__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.app-page__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-page__developer {
  margin: 0 0 0.5rem;
  color: var(--green);
  font-weight: 500;
  font-size: 0.95rem;
}

.app-page__tagline {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 42rem;
}

.app-stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.35rem;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}

.app-stat-bar__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 4.5rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.app-page__intro-inner .app-stat-bar__item {
  align-items: flex-start;
}

@media (max-width: 600px) {
  .app-stat-bar__item {
    align-items: center;
  }
}

.app-stat-bar__value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.app-stat-bar__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.app-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-page__grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 360px);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .app-page__grid {
    grid-template-columns: 1fr;
  }
}

.app-page__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.app-page__aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 5.5rem;
}

@media (max-width: 960px) {
  .app-page__aside {
    position: static;
  }
}

.app-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.app-panel--side {
  padding: 1.2rem 1.25rem 1.3rem;
}

.app-panel--accent {
  border-color: rgba(30, 142, 62, 0.25);
  background: linear-gradient(165deg, var(--green-soft), var(--bg-card));
}

.app-panel__head {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.app-panel__head--compact {
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
}

.app-panel__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.app-panel__content {
  font-size: 0.95rem;
  line-height: 1.65;
}

.app-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag-pill {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--blue-soft);
  color: var(--blue-hover);
  border: 1px solid rgba(26, 115, 232, 0.2);
}

.app-panel--gallery .app-panel__head {
  margin-bottom: 0.85rem;
}

.app-gallery {
  padding: 0.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.app-privacy-link {
  display: inline-block;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.app-privacy-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.app-privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.app-privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.app-privacy-list__icon {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.app-side-hint {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.app-comment-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.prose {
  color: var(--text-muted);
}

.prose--app {
  font-size: 0.95rem;
  line-height: 1.65;
}

.slider {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.slider__viewport {
  overflow: hidden;
  border-radius: var(--radius-sm);
  flex: 1;
}

.slider__track {
  display: flex;
  transition: transform 0.35s ease;
}

.slider__img {
  flex: 0 0 100%;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #eceff4;
}

.slider__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

.stars-input {
  display: flex;
  gap: 0.15rem;
}

.stars-input--lg .star-btn {
  font-size: 1.75rem;
}

.star-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--warn);
  cursor: pointer;
  padding: 0.1rem;
  transition: transform 0.12s ease;
}

.star-btn:hover {
  transform: scale(1.12);
}

.comment-thread {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.comment-bubble {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.comment-bubble__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-bubble__avatar--img {
  display: block;
  object-fit: cover;
  border: 2px solid var(--line);
}

.comment-bubble__body {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.comment-bubble__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.35rem;
}

.comment-bubble__meta time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-bubble__body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.app-expandable__hidden[hidden] {
  display: none;
}

.app-details-more {
  cursor: pointer;
}

.app-details-more__summary {
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.35rem 0;
}

.app-details-more__summary::-webkit-details-marker {
  display: none;
}

.app-details-more__summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform var(--transition);
  color: var(--blue);
}

.app-details-more[open] .app-details-more__summary::before {
  transform: rotate(90deg);
}

.app-details-more__hint {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.app-details-more__body {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
}

.app-meta-grid {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
  font-size: 0.9rem;
}

.app-meta-grid dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.app-meta-grid dd {
  margin: 0;
  color: var(--text);
}

.app-meta-grid__pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.admin-toolbar__field {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.profile-page .profile-card {
  max-width: 420px;
  margin-top: 1rem;
  text-align: center;
}

.profile-card__avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.profile-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--line);
  box-shadow: var(--shadow);
}

.profile-card__name {
  margin: 0;
  font-size: 1.2rem;
}

.profile-card__email {
  margin: 0.25rem 0 1rem;
}

.profile-card__form {
  text-align: left;
}

/* Listado genérico (otras páginas) */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.comment strong {
  margin-right: 0.35rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-elevated);
  font-size: 0.8rem;
}

.badge--danger {
  background: #fce8e6;
  color: #c5221f;
}

.badge--ok {
  background: var(--green-soft);
  color: var(--green-hover);
}

.badge--warn {
  background: #fef7e0;
  color: #b06000;
}

.legal-mini ul {
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}

/* Auth */
.auth-panel {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  animation: fadeUp 0.55s ease;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 1.75rem;
}

.auth-card--wide {
  max-width: 560px;
}

.auth-card__title {
  margin: 0 0 0.35rem;
}

.auth-card__footer {
  margin-top: 1.25rem;
  text-align: center;
}

/* Flash */
.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  animation: fadeUp 0.35s ease;
}

.flash--ok {
  background: var(--green-soft);
  border: 1px solid rgba(30, 142, 62, 0.35);
  color: var(--green-hover);
}

.flash--err {
  background: #fce8e6;
  border: 1px solid rgba(217, 48, 37, 0.35);
  color: #c5221f;
}

.muted {
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--text-muted);
  font-weight: 600;
}

.table--compact td {
  padding: 0.45rem 0.55rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.table-subrow td {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
}

.row-muted {
  opacity: 0.55;
}

.inline-form {
  display: inline;
}

.flex-grow {
  flex: 1;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.admin-app {
  margin-bottom: 1rem;
}

.admin-app__head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
}

.admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.35rem 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card {
  text-align: center;
  padding: 1.25rem;
  border: 1px solid var(--line);
}

.stat-card__n {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue);
}

.narrow-form {
  max-width: 520px;
}

.section.narrow {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.upload-form {
  padding: 1.25rem;
}

/* Notifications */
.notif-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notif-item {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 0.65rem;
  background: var(--bg-card);
  transition: border-color var(--transition);
}

.notif-item--new {
  border-color: rgba(26, 115, 232, 0.45);
}

/* News */
.news-list {
  list-style: none;
  padding: 0;
}

.news-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.news-item__meta {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0.35rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer__hint {
  font-size: 0.8rem;
  opacity: 0.7;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }

    .bottom-nav {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(255,255,255,0.9);
      backdrop-filter: blur(8px);
      border-radius: 40px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.08);
      display: flex;
      justify-content: space-around;
      align-items: center;
      padding: 10px;
      width: 90%;
      max-width: 320px;
      z-index: 1000;
    }
    .bottom-nav a {
      text-align: center;
      text-decoration: none;
      color: #007aff;
      font-size: 12px;
      transition: transform 0.3s ease;
    }
    .bottom-nav a:hover { transform: scale(1.08); }
    .bottom-nav img {
      width: 24px;
      height: 24px;
      margin-bottom: 2px;
    }

    footer {
      text-align: center;
      font-size: 13px;
      color: #777;
      margin: 50px 0 80px;
    }

    ::-webkit-scrollbar {
      height: 6px;
    }
    ::-webkit-scrollbar-thumb {
      background: #ccc;
      border-radius: 10px;
    }
}
