:root {
  --meistr-primary: #ff6b1f;
  --meistr-primary-strong: #e85a10;
  --meistr-bg-user: #f8fafc;
  --meistr-bg-admin: #020617;
  --meistr-card-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.35), 0 10px 25px -20px rgba(148, 163, 184, 0.8);
}

html, body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

h1, h2, h3, h4, h5, [data-super-title] {
  letter-spacing: -0.02em;
}

body {
  background: var(--meistr-bg-user);
}

body.meistr-super-app {
  background: var(--meistr-bg-user) !important;
}

body.meistr-super-app.has-super-header header:not(.meistr-allow-native-header) {
  position: relative !important;
  top: auto !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

body.meistr-admin-app {
  background: var(--meistr-bg-admin) !important;
  color: #e2e8f0;
}

body.meistr-admin-app .card,
body.meistr-admin-app .card-meistr,
body.meistr-admin-app .card-os {
  background: #0b1220 !important;
  color: #e2e8f0 !important;
  box-shadow: 0 16px 36px -24px rgba(2, 6, 23, 0.9) !important;
}

.card,
.card-meistr,
.card-os {
  border: 0 !important;
  border-radius: 1.5rem !important;
  box-shadow: var(--meistr-card-shadow) !important;
  animation: meistr-card-in .36s ease-out both;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.card:hover,
.card-meistr:hover,
.card-os:hover {
  transform: translateY(-2px);
}

.card:active,
.card-meistr:active,
.card-os:active {
  transform: scale(.985);
}

button[class*="bg-orange"],
.bg-orange-500,
.bg-orange-600,
.bg-orange-700 {
  background-color: var(--meistr-primary) !important;
}

.text-orange-500,
.text-orange-600,
.text-orange-700 {
  color: var(--meistr-primary) !important;
}

.border-orange-500,
.border-orange-600,
.border-orange-700 {
  border-color: var(--meistr-primary) !important;
}

.meistr-super-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 75;
  padding: 12px 16px 8px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.97) 0%, rgba(248, 250, 252, 0.75) 70%, rgba(248, 250, 252, 0.08) 100%);
  backdrop-filter: blur(12px);
}

.meistr-super-top-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meistr-super-title {
  font-size: clamp(1.15rem, 2.8vw, 1.8rem);
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.meistr-super-subtitle {
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.meistr-super-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.meistr-super-badges {
  margin-top: 10px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meistr-super-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}

.meistr-super-badge svg {
  width: 12px;
  height: 12px;
}

.meistr-super-badge.guarantee {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #1d4ed8;
}

.meistr-super-badge.mguard {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #047857;
}

.meistr-ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.meistr-ui-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meistr-ui-icon-lg {
  width: 1.3rem;
  height: 1.3rem;
}

.meistr-ui-icon-xl {
  width: 1.55rem;
  height: 1.55rem;
}

body.meistr-super-app.has-super-header {
  padding-top: 104px;
}

body.meistr-super-app.has-bottom-nav {
  padding-bottom: 88px;
}

body.meistr-super-app main {
  padding-left: clamp(12px, 2.2vw, 20px);
  padding-right: clamp(12px, 2.2vw, 20px);
  animation: meistr-page-in .34s ease-out both;
}

body.meistr-super-app.meistr-dashboard-home main {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 880px) {
  body.meistr-super-app.has-bottom-nav {
    padding-bottom: 0;
  }

  .meistr-bottom-nav {
    display: none;
  }
}

.meistr-bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 85;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  box-shadow: 0 12px 30px -20px rgba(15, 23, 42, 0.45);
}

.meistr-bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 6px;
}

.meistr-bottom-nav-btn {
  border: 0;
  background: transparent;
  border-radius: 1rem;
  padding: 8px 4px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.meistr-bottom-nav-btn svg {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}

.meistr-bottom-nav-btn.active {
  background: rgba(255, 107, 31, 0.12);
  color: var(--meistr-primary-strong);
}

.meistr-bottom-nav-btn.active svg {
  transform: translateY(-1px) scale(1.06);
}

.mguard-seals {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mguard-seal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid;
}

.mguard-seal svg {
  width: 12px;
  height: 12px;
}

.mguard-seal.gps {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.08);
}

.mguard-seal.bio {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
}

.categoria-visual-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 640px) {
  .categoria-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.categoria-visual-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 12px;
  text-align: left;
  transition: all .2s ease;
}

.categoria-visual-card:hover {
  border-color: rgba(255, 107, 31, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.35);
}

.categoria-visual-card.active {
  border-color: rgba(255, 107, 31, 0.55);
  background: rgba(255, 247, 237, 0.9);
}

.categoria-visual-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.categoria-visual-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b1f, #fb923c);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.categoria-visual-icon svg {
  width: 18px;
  height: 18px;
}

.categoria-visual-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.categoria-visual-subtitle {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.categoria-visual-list {
  margin-top: 8px;
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
}

.meistr-protege-line {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #c2410c;
}

.meistr-motion-list > * {
  animation: meistr-card-in .38s ease-out both;
}
.meistr-motion-list > *:nth-child(1) { animation-delay: .02s; }
.meistr-motion-list > *:nth-child(2) { animation-delay: .05s; }
.meistr-motion-list > *:nth-child(3) { animation-delay: .08s; }
.meistr-motion-list > *:nth-child(4) { animation-delay: .11s; }
.meistr-motion-list > *:nth-child(5) { animation-delay: .14s; }
.meistr-motion-list > *:nth-child(6) { animation-delay: .17s; }

@keyframes meistr-page-in {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes meistr-card-in {
  0% { opacity: 0; transform: translateY(10px) scale(.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
