﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --glass-bg: rgba(10, 10, 10, 0.82);
  --glass-bg-strong: rgba(4, 4, 4, 0.94);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 18px 44px rgba(0, 0, 0, 0.62);
  --glass-blur: 10px;

  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --accent: #ffffff;
}

html, body {
  min-height: 100%;
}

body {
  font-family: "Manrope", "Montserrat", "Segoe UI", sans-serif !important;
  color: var(--text-primary) !important;
  background:
    radial-gradient(920px 520px at 12% -12%, rgba(255, 255, 255, 0.08), transparent 64%),
    radial-gradient(860px 500px at 92% 110%, rgba(255, 255, 255, 0.04), transparent 62%),
    linear-gradient(180deg, #050505 0%, #080808 52%, #050505 100%) !important;
}

body > * {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6,
.title, .h1, .channel-name, .search-name {
  color: var(--text-primary) !important;
}

p, span, small, label, li, td, th,
.sub, .meta, .muted, .search-sub, .channel-sub {
  color: var(--text-muted) !important;
}

a {
  color: #ffffff !important;
  opacity: 0.9;
  transition: opacity 160ms ease;
}

a:hover {
  color: #ffffff !important;
  opacity: 1;
}

.nav__link::before,
.nav__channels::before,
.nav__video::before,
.nav__how::before,
.nav__team::before,
.nav__servers::before,
.nav__policy::before,
.blue a::before,
.purple a::before,
.red a::before,
.footer-col li a::before {
  background: rgba(255, 255, 255, 0.12) !important;
}

.topbar,
.navbar,
.header,
.card,
.panel,
.box,
.widget,
.modal,
.dialog,
.search-results,
.search-item,
.channel-card,
.news-card,
.login-box,
.form-box,
.profile-card,
.plan,
.plan-card,
.table-wrap,
.schedule,
.helper-card,
.player,
.overlay,
.badge,
.pill {
  background: linear-gradient(170deg, var(--glass-bg-strong), var(--glass-bg)) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.channel-card:hover,
.news-card:hover,
.plan-card:hover,
.card:hover,
.panel:hover,
.table-wrap:hover,
.schedule:hover,
.helper-card:hover {
  border-color: rgba(255, 255, 255, 0.26) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.68);
}

input,
select,
textarea {
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  background: rgba(8, 8, 8, 0.9) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.48) !important;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.56) !important;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.40) !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(6, 6, 6, 0.96) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

button,
.btn,
.try,
input[type="submit"],
input[type="button"] {
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: linear-gradient(180deg, rgba(32, 32, 32, 0.96), rgba(16, 16, 16, 0.96)) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

button:hover,
.btn:hover,
.try:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.46) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  filter: brightness(1.06);
}

button:active,
.btn:active,
.try:active,
input[type="submit"]:active,
input[type="button"]:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

button:focus,
.btn:focus,
input[type="submit"]:focus,
input[type="button"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.64), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

table {
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  overflow: hidden;
}

thead th {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.error, .warn, .warning, .alert-danger {
  background: rgba(255, 105, 105, 0.14) !important;
  border: 1px solid rgba(255, 145, 145, 0.30) !important;
  color: #ffd5d5 !important;
}

.success, .ok, .alert-success {
  background: rgba(103, 232, 190, 0.14) !important;
  border: 1px solid rgba(129, 244, 206, 0.30) !important;
  color: #dcfff2 !important;
}

.auth-page {
  min-height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
  background-attachment: scroll !important;
}

.auth-page .auth-wrapper {
  width: min(100%, 460px);
  margin: 0 auto;
}

@media (max-width: 900px) {
  :root {
    --glass-blur: 8px;
  }

  body {
    background:
      radial-gradient(760px 420px at 8% -10%, rgba(255, 255, 255, 0.07), transparent 62%),
      radial-gradient(700px 420px at 90% 108%, rgba(255, 255, 255, 0.04), transparent 60%),
      linear-gradient(180deg, #050505 0%, #080808 100%) !important;
  }

  .auth-page {
    padding: 16px !important;
  }
}

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

button:disabled,
.btn:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
  color: rgba(255, 255, 255, 0.92) !important;
}
