* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0c10;
  --bg-2: #121318;
  --surface: #16181f;
  --surface-2: #1b1f29;
  --surface-3: #202532;
  --card: rgba(22, 24, 31, 0.94);
  --card-soft: rgba(27, 31, 41, 0.92);
  --text: #f5f7fb;
  --text-soft: #c8cfda;
  --muted: #97a3b6;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.12);
  --primary: #e50914;
  --primary-2: #ff3341;
  --accent: #4f46e5;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --shadow-sm: 0 10px 24px rgba(0,0,0,0.22);
  --shadow: 0 20px 48px rgba(0,0,0,0.32);
  --shadow-lg: 0 32px 80px rgba(0,0,0,0.42);
  --radius: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(229, 9, 20, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.12), transparent 18%),
    linear-gradient(180deg, #090a0e 0%, var(--bg) 46%, var(--bg-2) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(229,9,20,0.18), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(79,70,229,0.10), transparent 18%),
    linear-gradient(180deg, rgba(9,10,14,0.96), rgba(11,12,16,0.98));
  z-index: 0;
}

.topbar-login,
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  background: rgba(9, 10, 14, 0.74);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.brand span {
  color: var(--primary);
  margin-left: 4px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.profile-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.login-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 36px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(15,17,22,0.96), rgba(21,24,31,0.94));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.login-panel::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(229,9,20,0.22), transparent 68%);
}

.login-panel::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(79,70,229,0.16), transparent 68%);
}

.login-panel h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.login-sub,
.muted {
  color: var(--muted);
}

label {
  display: block;
  margin: 16px 0 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 15px;
  transition: .18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #7f8aa0;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(229, 9, 20, 0.28);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.10);
}

textarea {
  min-height: 136px;
  resize: vertical;
}

button,
.ghost-btn,
.small-btn,
.news-nav-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  transition: .18s ease;
}

button,
.ghost-btn,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

button {
  width: 100%;
  padding: 14px 16px;
  margin-top: 18px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 30px rgba(229, 9, 20, 0.24);
}

button:hover,
.ghost-btn:hover,
.small-btn:hover,
.news-nav-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.ghost-btn {
  width: auto;
  padding: 11px 14px;
  margin-top: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.small-btn {
  width: auto;
  padding: 10px 14px;
  margin-top: 10px;
  background: rgba(229, 9, 20, 0.12);
  color: #fff;
  border: 1px solid rgba(229, 9, 20, 0.12);
}

.error,
.demo-box,
.success-box,
.info-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.error {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.18);
  color: #fecaca;
}

.demo-box {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.06);
}

.success-box {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.18);
  color: #bbf7d0;
}

.info-box {
  background: rgba(79,70,229,0.12);
  border-color: rgba(79,70,229,0.18);
  color: #c7d2fe;
}

.app-body {
  background:
    radial-gradient(circle at 0% 0%, rgba(229,9,20,.14), transparent 18%),
    radial-gradient(circle at 100% 0%, rgba(79,70,229,.12), transparent 18%),
    linear-gradient(180deg, #090a0e 0%, var(--bg) 50%, var(--bg-2) 100%);
}

.app-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 78px);
}

.sidebar {
  position: relative;
  padding: 24px;
  background: rgba(10, 11, 16, 0.58);
  border-right: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(229,9,20,0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(79,70,229,0.14), transparent 28%),
    linear-gradient(145deg, rgba(22,24,31,0.96), rgba(16,18,24,0.88));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  z-index: 0;
}

.sidebar > div {
  position: relative;
  z-index: 1;
}

.sidebar h3 {
  margin: 10px 0 18px;
  color: var(--text);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 16px;
  color: var(--text-soft);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

.nav-links a::after {
  content: "›";
  color: #7f8aa0;
  font-size: 18px;
  transition: .18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(229,9,20,0.18), rgba(229,9,20,0.08));
  border-color: rgba(229,9,20,0.16);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  color: #ffffff;
  transform: translateX(1px);
}

.content {
  padding: 26px 28px 42px;
}

.hero-banner {
  position: relative;
  min-height: 300px;
  margin-bottom: 26px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(90deg, rgba(10,10,14,0.88), rgba(10,10,14,0.28)),
    url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.admin-hero {
  background:
    linear-gradient(90deg, rgba(10,10,14,0.88), rgba(10,10,14,0.28)),
    url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.ticket-hero {
  background:
    linear-gradient(90deg, rgba(10,10,14,0.88), rgba(10,10,14,0.28)),
    url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.apps-hero {
  background:
    linear-gradient(90deg, rgba(10,10,14,0.88), rgba(10,10,14,0.28)),
    url('https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at right top, rgba(229,9,20,0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.00), rgba(0,0,0,0.00));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  padding: 44px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.hero-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: 52px;
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: #ffffff;
}

.hero-content p {
  margin: 0;
  max-width: 740px;
  color: #d4dae4;
  font-size: 17px;
  line-height: 1.82;
}

.section-block {
  margin-bottom: 26px;
}

.section-title {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.cards {
  display: grid;
  gap: 18px;
}

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

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dark-card {
  background:
    radial-gradient(circle at top right, rgba(229,9,20,0.05), transparent 28%),
    linear-gradient(180deg, rgba(22,24,31,0.96), rgba(18,20,27,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.accent-card {
  background:
    radial-gradient(circle at top right, rgba(229,9,20,0.12), transparent 30%),
    radial-gradient(circle at left bottom, rgba(79,70,229,0.10), transparent 24%),
    linear-gradient(180deg, rgba(24,26,34,0.98), rgba(17,19,25,0.96));
}

.label {
  display: inline-block;
  margin-bottom: 10px;
  color: #9aa4b6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.system-line {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #cbd3df;
}

.system-line:last-child {
  border-bottom: none;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  background: rgba(22,24,31,0.88);
  border: 1px solid rgba(255,255,255,0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
  color: #d1d7e2;
}

th {
  background: rgba(255,255,255,0.03);
  color: #97a3b6;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

tr:hover td {
  background: rgba(229,9,20,0.03);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.status-open,
.status-online {
  background: rgba(34,197,94,0.12);
  color: #bbf7d0;
}
.status-open::before,
.status-online::before {
  background: var(--green);
}

.status-progress {
  background: rgba(245,158,11,0.12);
  color: #fde68a;
}
.status-progress::before {
  background: var(--yellow);
}

.status-closed {
  background: rgba(239,68,68,0.12);
  color: #fecaca;
}
.status-closed::before {
  background: var(--red);
}

.expiry-alert,
.urgent-notice {
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}

.expiry-soon {
  background: linear-gradient(135deg, rgba(245,158,11,0.16), rgba(24,26,34,0.96));
}

.expiry-expired {
  background: linear-gradient(135deg, rgba(239,68,68,0.16), rgba(24,26,34,0.96));
}

.urgent-notice {
  background:
    radial-gradient(circle at right top, rgba(239,68,68,0.12), transparent 22%),
    linear-gradient(135deg, rgba(36,20,24,0.96), rgba(24,26,34,0.96));
}

.expiry-alert-title,
.urgent-notice-title {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.expiry-alert-text,
.urgent-notice-text {
  color: #d1d7e2;
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-line;
}

.server-card {
  transition: .18s ease;
}

.server-online {
  background: linear-gradient(180deg, rgba(34,197,94,0.12), rgba(22,24,31,0.96));
  border: 1px solid rgba(34,197,94,0.14);
}

.server-maintenance {
  background: linear-gradient(180deg, rgba(245,158,11,0.12), rgba(22,24,31,0.96));
  border: 1px solid rgba(245,158,11,0.14);
}

.server-outage {
  background: linear-gradient(180deg, rgba(239,68,68,0.12), rgba(22,24,31,0.96));
  border: 1px solid rgba(239,68,68,0.14);
}

.ticket-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
}

.ticket-list-item,
.ticket-message,
.announcement {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ticket-list-item:last-child,
.ticket-message:last-child,
.announcement:last-child {
  border-bottom: none;
}

.ticket-head,
.announcement-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.ticket-meta,
.news-date,
.announcement-head small,
.ticket-head small {
  color: var(--muted);
}

.ticket-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 13px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-feed-wrap {
  padding-top: 6px;
}

.news-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.news-feed-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
}

.news-feed-nav {
  display: flex;
  gap: 10px;
}

.news-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #d0d6df;
  box-shadow: var(--shadow-sm);
}

.news-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

.news-feed-card {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(22,24,31,0.92);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.news-feed-card.pinned {
  box-shadow: 0 24px 60px rgba(229,9,20,0.14);
}

.news-feed-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.news-feed-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.news-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.news-pin,
.news-tag,
.app-type-badge,
.app-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.news-pin {
  background: rgba(229,9,20,0.14);
  color: #fecaca;
}

.news-tag-important {
  background: rgba(229,9,20,0.14);
  color: #fecaca;
}

.news-tag-update {
  background: rgba(79,70,229,0.14);
  color: #c7d2fe;
}

.news-tag-maintenance {
  background: rgba(245,158,11,0.14);
  color: #fde68a;
}

.news-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.03em;
}

.news-title-small {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.03em;
}

.news-excerpt {
  margin: 0 0 12px;
  color: #cbd3df;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-line;
}

.news-readmore {
  display: inline-block;
  margin: 2px 0 10px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px dashed rgba(255,255,255,0.10);
  font-size: 13px;
}

.news-empty {
  padding: 22px;
  border-radius: 22px;
  background: rgba(22,24,31,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
}

.apps-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.apps-filter-form {
  min-width: 230px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-badge {
  background: rgba(229,9,20,0.12);
  color: #fff;
}

.app-info-row {
  color: #cbd3df;
  line-height: 1.7;
  word-break: break-word;
}

.app-url {
  color: #ffffff;
}

.app-type-firetv {
  background: rgba(229,9,20,0.14);
  color: #fecaca;
}

.app-type-smarttv {
  background: rgba(34,197,94,0.14);
  color: #bbf7d0;
}

.app-type-windows {
  background: rgba(79,70,229,0.14);
  color: #c7d2fe;
}

/* Dashboard premium */
.dashboard-showcase {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 20px;
  margin-bottom: 22px;
}

.showcase-main {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(90deg, rgba(10,10,14,0.90), rgba(10,10,14,0.30)),
    url('https://images.unsplash.com/photo-1574375927938-d5a98e8ffe85?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  box-shadow: var(--shadow-lg);
}

.showcase-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 34px;
}

.showcase-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.showcase-chip::before {
  content: "▶";
  font-size: 10px;
}

.showcase-content h2 {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.showcase-content p {
  margin: 0 0 18px;
  color: #d1d7e2;
  line-height: 1.85;
}

.showcase-side {
  display: grid;
  gap: 18px;
}

.mini-feature {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(22,24,31,0.96), rgba(18,20,27,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  padding: 22px;
}

.mini-feature::before {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(229,9,20,0.14), transparent 70%);
}

.mini-feature h4 {
  margin: 8px 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.mini-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.stat-card-premium {
  position: relative;
  overflow: hidden;
}

.stat-card-premium::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -26px;
  top: -26px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(229,9,20,0.12), transparent 68%);
}

.stat-value {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.stat-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

/* App store page */
.appstore-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  margin-bottom: 22px;
}

.appstore-spotlight {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(10,10,14,0.90), rgba(10,10,14,0.28)),
    url('https://images.unsplash.com/photo-1601972599720-bb01e4d3d7aa?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}

.appstore-spotlight-content {
  position: relative;
  z-index: 1;
  padding: 30px;
  max-width: 500px;
}

.appstore-spotlight-content h2 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.appstore-spotlight-content p {
  margin: 0 0 16px;
  color: #d1d7e2;
  line-height: 1.8;
}

.platform-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
}

.appstore-side {
  display: grid;
  gap: 18px;
}

.store-note {
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(22,24,31,0.96), rgba(18,20,27,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  padding: 22px;
}

.store-note h4 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.store-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.apps-grid.appstore-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.app-card.appstore-card {
  padding: 0;
  overflow: hidden;
}

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 0;
}

.app-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(229,9,20,0.22), rgba(79,70,229,0.16));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.app-card-body {
  padding: 0 18px 18px;
}

.app-card-body h3 {
  margin: 14px 0 8px;
  font-size: 24px;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

/* News magazine */
.news-magazine-top {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 20px;
  margin-bottom: 20px;
}

.news-editor-pick {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  border-radius: 32px;
  background: rgba(22,24,31,0.94);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
}

.editor-image {
  min-height: 100%;
  background-size: cover;
  background-position: center;
}

.editor-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.editor-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.editor-kicker::before {
  content: "◆";
  font-size: 10px;
  color: var(--primary);
}

.editor-content h3 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.editor-content p {
  margin: 0 0 14px;
  color: #d1d7e2;
  line-height: 1.85;
}

.news-side-stack {
  display: grid;
  gap: 18px;
}

.news-side-card {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(22,24,31,0.94);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.news-side-thumb {
  height: 145px;
  background-size: cover;
  background-position: center;
}

.news-side-body {
  padding: 18px;
}

.news-side-body h4 {
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.news-side-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.news-magazine-list {
  display: grid;
  gap: 18px;
}

.news-magazine-item {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(22,24,31,0.94);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.news-magazine-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
}

.news-magazine-thumb {
  min-height: 180px;
  background-size: cover;
  background-position: center;
}

.news-magazine-body {
  padding: 20px 22px;
}

.news-magazine-body h4 {
  margin: 10px 0 10px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.news-magazine-body p {
  margin: 0;
  color: #d1d7e2;
  line-height: 1.85;
}

@media (max-width: 1280px) {
  .dashboard-showcase,
  .appstore-hero,
  .news-magazine-top,
  .news-editor-pick {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-grid,
  .apps-grid.appstore-grid,
  .news-feed-grid,
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 1024px) {
  .ticket-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .content {
    padding: 20px;
  }

  .topbar-login,
  .topbar {
    padding: 16px 18px;
  }

  .hero-content {
    padding: 28px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .cards.two,
  .cards.three,
  .cards.four,
  .dashboard-stat-grid,
  .news-feed-grid,
  .apps-grid,
  .apps-grid.appstore-grid,
  .news-magazine-row {
    grid-template-columns: 1fr;
  }

  .news-magazine-thumb {
    min-height: 220px;
  }

  .apps-toolbar {
    align-items: stretch;
  }

  .apps-filter-form {
    width: 100%;
    min-width: 0;
  }

  .login-panel {
    padding: 28px 22px;
  }
}


.compact-news-wrap .news-feed-title {
  font-size: 24px;
}

.compact-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.compact-news-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(22,24,31,0.94);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.compact-news-thumb {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.compact-news-body {
  padding: 16px;
}

.compact-news-body h4 {
  margin: 8px 0 8px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.compact-news-body p {
  margin: 0;
  color: #cfd6e1;
  line-height: 1.75;
}

.news-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.news-modal.open {
  display: block;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
}

.news-modal-dialog {
  position: relative;
  width: min(920px, calc(100% - 28px));
  margin: 40px auto;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22,24,31,0.98), rgba(18,20,27,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}

.news-modal-image {
  height: 280px;
  background-size: cover;
  background-position: center;
}

.news-modal-content {
  padding: 24px;
}

.news-modal-content h3 {
  margin: 12px 0;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.news-modal-content p {
  margin: 0;
  color: #d1d7e2;
  line-height: 1.9;
  white-space: pre-line;
}

.news-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  z-index: 2;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-card {
  border-radius: 22px;
  background: rgba(22,24,31,0.94);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-card summary {
  list-style: none;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  content: '+';
  color: var(--primary);
  font-size: 24px;
}

.faq-card[open] summary::after {
  content: '–';
}

.faq-answer {
  padding: 0 20px 20px;
  color: #cfd6e1;
  line-height: 1.85;
}

.faq-admin-list {
  display: grid;
  gap: 16px;
}

.faq-admin-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq-admin-item:last-child {
  border-bottom: none;
}

.faq-admin-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.faq-admin-item p {
  margin: 0;
  color: #cfd6e1;
  line-height: 1.8;
}

@media (max-width: 1280px) {
  .compact-news-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 900px) {
  .compact-news-grid {
    grid-template-columns: 1fr;
  }

  .news-modal-image {
    height: 220px;
  }

  .news-modal-content h3 {
    font-size: 28px;
  }
}


.nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-links a {
  min-height: 52px;
}

.sidebar {
  min-height: 100%;
}

.sidebar > div {
  display: flex;
  flex-direction: column;
}


.sidebar > div {
  min-height: calc(100vh - 130px);
}

.nav-links {
  flex: 1;
}


.install-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.install-subnav a {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-soft);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.install-subnav a.active {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.18), rgba(255, 51, 65, 0.22));
  border-color: rgba(229, 9, 20, 0.26);
  color: #fff;
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.install-main-card h2 {
  margin: 10px 0 8px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.install-steps {
  margin: 24px 0 0;
  padding-left: 22px;
  color: #d5dbe5;
}

.install-steps li {
  margin-bottom: 16px;
  line-height: 1.8;
}

.install-side {
  display: grid;
  gap: 24px;
}

.install-side-card h3 {
  margin: 8px 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.install-device-list {
  margin: 0;
  padding-left: 20px;
  color: #d5dbe5;
}

.install-device-list li {
  margin-bottom: 12px;
}

.install-device-list a {
  color: var(--text-soft);
}

@media (max-width: 1100px) {
  .install-grid {
    grid-template-columns: 1fr;
  }
}


.m3u-cell {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.pagination-btn.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.pagination-info {
  color: var(--text-soft);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 900px) {
  .pagination-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-btn {
    width: 100%;
  }
}

.news-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:20px;
}


.news-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.news-switch-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-soft);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.news-switch-pill.active {
  background: linear-gradient(135deg, rgba(229,9,20,0.20), rgba(255,51,65,0.24));
  border-color: rgba(229, 9, 20, 0.28);
  color: #fff;
}

.news-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.news-hub-card {
  overflow: hidden;
  padding: 0;
}

.news-hub-thumb {
  min-height: 210px;
  background-size: cover;
  background-position: center;
}

.news-hub-body {
  padding: 20px;
}

.news-hub-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.news-hub-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(229,9,20,0.14);
  border: 1px solid rgba(229,9,20,0.18);
  color: #fff;
}

.news-hub-badge.accent {
  background: rgba(79,70,229,0.18);
  border-color: rgba(79,70,229,0.22);
}

.news-hub-body h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.news-hub-body p {
  margin: 0;
  color: #cfd6e1;
  line-height: 1.8;
  min-height: 84px;
}

.news-hub-body .small-btn {
  margin-top: 18px;
}

.news-detail-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}

.news-detail-modal.open {
  display: block;
}

.news-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.76);
  backdrop-filter: blur(8px);
}

.news-detail-dialog {
  position: relative;
  width: min(960px, calc(100% - 28px));
  margin: 28px auto;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22,24,31,0.99), rgba(16,18,24,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}

.news-detail-image {
  height: 320px;
  background-size: cover;
  background-position: center;
}

.news-detail-content {
  padding: 26px;
}

.news-detail-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-detail-content h3 {
  margin: 12px 0 14px;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.news-detail-text {
  color: #d6dce7;
  line-height: 1.95;
  white-space: pre-wrap;
}

.news-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,0.62);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  z-index: 2;
}

@media (max-width: 900px) {
  .news-hub-body h3 {
    font-size: 24px;
  }

  .news-detail-image {
    height: 220px;
  }

  .news-detail-content h3 {
    font-size: 28px;
  }

  .news-hub-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}


.news-switcher-shell {
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(229,9,20,0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(79,70,229,0.14), transparent 24%),
    linear-gradient(145deg, rgba(22,24,31,0.96), rgba(16,18,24,0.94));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.news-switcher-header h2 {
  margin: 10px 0 8px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.news-switcher-header p {
  margin: 0 0 20px;
  color: var(--muted);
}

.news-switcher-rich {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-switch-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 110px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
}

.news-switch-card .news-switch-label {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.news-switch-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.news-switch-card.active {
  background:
    radial-gradient(circle at top left, rgba(229,9,20,0.18), transparent 34%),
    linear-gradient(135deg, rgba(229,9,20,0.24), rgba(255,51,65,0.18));
}

.news-detail-panel {
  overflow: hidden;
  padding: 0;
}

.news-detail-panel-image {
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.news-detail-panel-content {
  padding: 26px;
}

.news-detail-panel-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-detail-panel-content h2 {
  margin: 12px 0 14px;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.news-detail-panel-text {
  color: #d6dce7;
  line-height: 1.9;
  white-space: normal;
  margin-bottom: 16px;
}

.news-detail-close {
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin-top: 0;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 900px) {
  .news-switcher-rich {
    grid-template-columns: 1fr;
  }

  .news-detail-panel-image {
    min-height: 220px;
  }

  .news-detail-panel-content h2 {
    font-size: 30px;
  }
}

.news-detail-close{width:44px !important;min-width:44px !important;height:44px !important;margin-top:0 !important;padding:0 !important;background:rgba(0,0,0,0.62) !important;box-shadow:none !important;display:inline-flex !important;}


body.modal-open {
  overflow: hidden;
}

.news-hero-banner .hero-content p {
  max-width: 760px;
}

.news-top-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-top-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(22,24,31,0.96), rgba(16,18,24,0.92));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-top-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(229,9,20,0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(79,70,229,0.16), transparent 22%);
  opacity: 0.85;
  pointer-events: none;
}

.news-top-card.active {
  border-color: rgba(229, 9, 20, 0.26);
  box-shadow: 0 24px 48px rgba(229, 9, 20, 0.12);
  transform: translateY(-1px);
}

.news-top-card.active::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.news-top-icon,
.news-top-copy {
  position: relative;
  z-index: 1;
}

.news-top-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 26px;
  box-shadow: var(--shadow-sm);
}

.news-top-copy span {
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.news-top-copy small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.article-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
}

.article-modal.open {
  display: block;
}

.article-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.article-modal-dialog {
  position: relative;
  width: min(980px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  margin: 18px auto;
  overflow: auto;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(22,24,31,0.99), rgba(13,15,21,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}

.article-modal-image {
  height: 320px;
  background-size: cover;
  background-position: center;
}

.article-modal-content {
  padding: 28px;
}

.article-modal-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-modal-content h2 {
  margin: 12px 0 16px;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.article-modal-text {
  color: #d6dce7;
  line-height: 1.95;
  white-space: pre-wrap;
}

.article-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px !important;
  background: rgba(0,0,0,0.58) !important;
  color: #fff !important;
  font-size: 30px;
  line-height: 1;
  box-shadow: none !important;
  cursor: pointer;
}

.article-modal-close:hover {
  transform: scale(1.03);
  filter: brightness(1.08);
}

@media (max-width: 920px) {
  .news-top-selector {
    grid-template-columns: 1fr;
  }

  .news-top-copy span {
    font-size: 20px;
  }

  .article-modal-image {
    height: 220px;
  }

  .article-modal-content h2 {
    font-size: 30px;
  }
}


.admin-news-composer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(229,9,20,0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(79,70,229,0.12), transparent 22%),
    linear-gradient(145deg, rgba(22,24,31,0.98), rgba(17,19,25,0.96));
}

.admin-news-composer-head h3 {
  margin: 10px 0 8px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.admin-news-composer-head p {
  margin: 0 0 18px;
}

.admin-news-form textarea {
  min-height: 180px;
}

.admin-news-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.admin-choice-card {
  display: block;
  cursor: pointer;
}

.admin-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-choice-visual {
  display: block;
  min-height: 116px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-sm);
  transition: .18s ease;
}

.admin-choice-visual strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.admin-choice-visual small {
  display: block;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.admin-choice-card input:checked + .admin-choice-visual {
  border-color: rgba(229,9,20,0.30);
  background:
    radial-gradient(circle at top left, rgba(229,9,20,0.18), transparent 30%),
    linear-gradient(135deg, rgba(229,9,20,0.20), rgba(255,51,65,0.14));
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .admin-news-type-grid {
    grid-template-columns: 1fr;
  }
}


.admin-action-grid .admin-news-composer {
  grid-column: span 2;
  min-height: 100%;
}

.admin-news-composer {
  padding: 24px;
}

.admin-news-form textarea {
  min-height: 280px;
}

.danger-btn {
  background: rgba(239,68,68,0.14);
  border: 1px solid rgba(239,68,68,0.20);
  color: #fff;
}

.danger-btn:hover {
  filter: brightness(1.08);
}

@media (max-width: 1280px) {
  .admin-action-grid .admin-news-composer {
    grid-column: span 1;
  }
}


.upload-dropzone {
  position: relative;
  min-height: 210px;
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(229,9,20,0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(79,70,229,0.12), transparent 22%),
    rgba(255,255,255,0.04);
  overflow: hidden;
  cursor: pointer;
  transition: .18s ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: rgba(229,9,20,0.34);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.upload-dropzone-inner {
  position: relative;
  z-index: 1;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
}

.upload-dropzone-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 24px;
}

.upload-dropzone-inner strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.upload-dropzone-inner span,
.upload-dropzone-inner small {
  color: var(--muted);
}

.upload-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.upload-preview.visible {
  display: block;
}

.upload-preview.visible::after {
  content: "Bild bereit zum Hochladen";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(8,10,14,0.74);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.news-hub-thumb,
.news-magazine-thumb,
.editor-image,
.news-side-thumb,
.article-modal-image,
.news-detail-panel-image {
  background-size: cover !important;
  background-position: center !important;
}


.cards.one {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.streaming-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  margin: 4px 0 12px;
  border-radius: 999px;
  background: rgba(79,70,229,0.16);
  border: 1px solid rgba(79,70,229,0.22);
  color: #e5e7ff;
  font-size: 12px;
  font-weight: 800;
  width: fit-content;
}


.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.table-wrap + .pagination-bar {
  margin-top: 18px;
}


.admin-ticket-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(229,9,20,0.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(245,158,11,0.14), transparent 22%),
    linear-gradient(145deg, rgba(26,18,18,0.96), rgba(20,15,15,0.94));
  border: 1px solid rgba(229,9,20,0.18);
  box-shadow: var(--shadow);
}

.admin-ticket-alert-left h3 {
  margin: 8px 0 6px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.admin-ticket-alert-left p {
  margin: 0;
  color: #e5d7d7;
  line-height: 1.7;
}

.admin-ticket-alert-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(229,9,20,0.16);
  border: 1px solid rgba(229,9,20,0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .admin-ticket-alert {
    flex-direction: column;
    align-items: stretch;
  }
}


.ticket-chat-head {
  align-items: flex-start;
}

.ticket-author-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ticket-author-name {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.ticket-author-admin {
  color: #ffd7dc;
}

.ticket-author-user {
  color: #d7e3ff;
}

.message-rank-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.message-rank-badge.admin-badge {
  background: rgba(229,9,20,0.18);
  border-color: rgba(229,9,20,0.24);
  color: #fff;
}

.message-rank-badge.user-badge {
  background: rgba(79,70,229,0.16);
  border-color: rgba(79,70,229,0.24);
  color: #eef1ff;
}

.ticket-message-admin {
  border-left: 3px solid rgba(229,9,20,0.4);
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(229,9,20,0.06), transparent 24%);
}

.ticket-message-user {
  border-left: 3px solid rgba(79,70,229,0.34);
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(79,70,229,0.06), transparent 24%);
}

.orders-status-note {
  color: var(--muted);
}


.account-order-form-card {
  border: 1px solid rgba(229,9,20,0.18);
  background:
    radial-gradient(circle at top left, rgba(229,9,20,0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(79,70,229,0.10), transparent 22%),
    linear-gradient(145deg, rgba(22,24,31,0.96), rgba(18,20,26,0.94));
  box-shadow: var(--shadow);
}


.online-user-list {
  display: grid;
  gap: 14px;
}

.online-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.online-user-item strong {
  margin-right: 10px;
}

@media (max-width: 900px) {
  .online-user-item {
    flex-direction: column;
    align-items: flex-start;
  }
}


.status-blue {
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(37,99,235,0.18));
  border: 1px solid rgba(59,130,246,0.35);
  color: #ffffff;
  font-weight: 600;
}
