* {
  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;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;
  cursor: pointer;
  background-color: rgba(255,255,255,0.08);
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(245,247,251,0.92) 50%),
    linear-gradient(135deg, rgba(245,247,251,0.92) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

select:hover {
  border-color: rgba(255,255,255,0.14);
  background-color: rgba(255,255,255,0.10);
}

select option,
select optgroup {
  color: #101522;
  background: #ffffff;
}

select option:checked {
  background: #dbeafe;
  color: #0f172a;
  font-weight: 700;
}

select option[disabled] {
  color: #64748b;
}

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 {
  display: grid;
  gap: 10px;
}

.nav-links a {
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  margin: 0;
  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: "›";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: #7f8aa0;
  font-size: 18px;
  transition: color .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;
}

.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;
  min-width: 0;
}

.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));
}

.urgent-notice {
  position: relative;
  padding-right: 58px;
}

.urgent-notice.is-hidden {
  display: none !important;
}

.urgent-notice-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}

.urgent-notice-close:hover {
  background: rgba(255,255,255,0.14);
  transform: scale(1.04);
}

.urgent-notice-close:active {
  transform: scale(0.97);
}

.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;
  }
}



.hero-content-admin {
  max-width: 860px;
}

.hero-mini-note {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-panel-stack {
  display: grid;
  gap: 16px;
}

.admin-inline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-inline-head h3 {
  margin: 8px 0 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.admin-inline-head p {
  margin: 0;
  max-width: 520px;
}

.admin-action-grid {
  align-items: start;
}

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

.admin-news-composer-head h3 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.admin-news-composer-head p {
  margin: 0 0 14px;
  font-size: 14px;
}

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

.admin-choice-visual {
  min-height: 92px;
  padding: 15px;
}

.admin-choice-visual strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.upload-dropzone {
  min-height: 160px;
}

.admin-news-composer .cards,
.faq-create-card .cards {
  gap: 14px;
}

.admin-news-composer .info-box {
  padding: 14px 16px;
}

.faq-admin-form textarea {
  min-height: 140px;
}

@media (max-width: 900px) {
  .admin-inline-head {
    flex-direction: column;
  }
}

.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);
}


.app-type-ios {
  background: rgba(59,130,246,0.16);
  border: 1px solid rgba(59,130,246,0.24);
  color: #dbeafe;
}

.app-type-android {
  background: rgba(34,197,94,0.16);
  border: 1px solid rgba(34,197,94,0.24);
  color: #dcfce7;
}

.app-type-macos {
  background: rgba(148,163,184,0.16);
  border: 1px solid rgba(148,163,184,0.24);
  color: #e2e8f0;
}

.app-type-web {
  background: rgba(168,85,247,0.16);
  border: 1px solid rgba(168,85,247,0.24);
  color: #f3e8ff;
}


.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;
}


.online-users-summary-grid {
  align-items: stretch;
}

.online-user-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

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

.online-user-item strong {
  display: block;
  margin-bottom: 4px;
}


.status-sent {
  background: linear-gradient(135deg, rgba(16,185,129,0.24), rgba(5,150,105,0.16));
  border: 1px solid rgba(16,185,129,0.34);
  color: #ecfdf5;
  font-weight: 600;
}

.payment-request-box {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(30,41,59,0.35));
  border: 1px solid rgba(59,130,246,0.28);
}

.payment-request-box strong {
  display: block;
  margin-bottom: 8px;
}

.payment-request-box p {
  margin: 0 0 14px;
  color: rgba(255,255,255,0.9);
}

.payment-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 8px 0 16px;
}

.payment-highlight-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.payment-highlight-item-accent {
  background: linear-gradient(135deg, rgba(229,9,20,0.22), rgba(239,68,68,0.12));
  border-color: rgba(239,68,68,0.34);
}

.payment-highlight-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.payment-highlight-value {
  display: block;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  color: #fff;
  word-break: break-word;
}

.payment-request-box-sent {
  background: linear-gradient(135deg, rgba(16,185,129,0.16), rgba(30,41,59,0.35));
  border-color: rgba(16,185,129,0.28);
}

.payment-confirm-form {
  margin: 0;
}

.payment-confirm-btn {
  width: 100%;
}

.payment-confirm-btn-green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border: 1px solid rgba(34,197,94,0.34);
  box-shadow: 0 16px 30px rgba(34,197,94,0.28);
  color: #f0fdf4;
}

.payment-confirm-btn-green:hover {
  box-shadow: 0 18px 34px rgba(34,197,94,0.34);
}


.error-box {
    background: rgba(220, 53, 69, 0.14);
    border: 1px solid rgba(220, 53, 69, 0.45);
    color: #ffd7dc;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
}


.install-video-card {
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
}

.install-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.install-video-card h3,
.install-step-block h3 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.install-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
}

.install-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.install-step-block {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.install-step-number {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.36), rgba(255,255,255,0.10));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-sm);
}

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

.install-bullet-list li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.install-bullet-list a {
  color: #fff;
  text-decoration: underline;
}


.install-warning-box {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 0, 51, 0.20), rgba(120, 0, 24, 0.18));
  border: 2px solid rgba(255, 84, 112, 0.72);
  color: #ffd7df;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
  box-shadow: 0 10px 28px rgba(255, 0, 64, 0.18);
}

.install-warning-box strong {
  color: #ffffff;
}

.system-line-m3u {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.system-line-m3u strong {
  display: block;
}

.m3u-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: #dbe2ee;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m3u-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.22);
}

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



/* Downloader code label fix */
.downloader-code-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
}

.downloader-code-value {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    font-weight: 700;
    letter-spacing: 0.3px;
    overflow-wrap: anywhere;
}


/* Bonus system */
.bonus-grid {
    align-items: stretch;
}

.bonus-progress-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bonus-progress-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    overflow: hidden;
}

.bonus-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7fbf7f 0%, #b7f0a8 100%);
}


/* === Netflix-inspired redesign === */
:root {
  --bg: #050505;
  --bg-2: #090909;
  --surface: #101010;
  --surface-2: #141414;
  --surface-3: #1b1b1b;
  --card: rgba(18,18,18,0.92);
  --card-soft: rgba(23,23,23,0.92);
  --text: #f5f5f1;
  --text-soft: #d3d3cf;
  --muted: #9e9e98;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.12);
  --primary: #e50914;
  --primary-2: #ff2d38;
  --green: #16c060;
  --shadow-sm: 0 14px 28px rgba(0,0,0,0.28);
  --shadow: 0 24px 60px rgba(0,0,0,0.38);
  --shadow-lg: 0 38px 90px rgba(0,0,0,0.52);
}

body {
  background:
    radial-gradient(circle at 0% 0%, rgba(229,9,20,0.16), transparent 18%),
    radial-gradient(circle at 100% 0%, rgba(22,192,96,0.08), transparent 20%),
    linear-gradient(180deg, #020202 0%, #060606 35%, #0a0a0a 100%);
}

.backdrop {
  background:
    radial-gradient(circle at 8% 0%, rgba(229,9,20,0.24), transparent 22%),
    radial-gradient(circle at 95% 0%, rgba(22,192,96,0.08), transparent 18%),
    linear-gradient(180deg, rgba(1,1,1,0.95), rgba(7,7,7,0.98));
}

.topbar-login,
.topbar {
  padding: 18px 28px;
  background: rgba(6, 6, 6, 0.86);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 12px 34px rgba(0,0,0,0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.brand::before {
  content: "N";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(180deg, #050505, #111111);
  color: var(--primary);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 8px 24px rgba(0,0,0,0.34);
}

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

.profile-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f2f2ed;
}

.ghost-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.ghost-btn:hover,
.small-btn:hover,
button:hover {
  box-shadow: 0 18px 34px rgba(0,0,0,0.28);
}

button,
.small-btn,
.news-nav-btn.active {
  background: linear-gradient(135deg, #c50711, #ff1c27);
  border-color: rgba(229,9,20,0.22);
}

.app-layout {
  grid-template-columns: 300px 1fr;
}

.sidebar {
  padding: 26px;
  background: rgba(6, 6, 6, 0.7);
  border-right: 1px solid rgba(255,255,255,0.04);
}

.sidebar::before {
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(229,9,20,0.14), transparent 30%),
    linear-gradient(180deg, rgba(9,9,9,0.98), rgba(14,14,14,0.95));
  border: 1px solid rgba(255,255,255,0.06);
}

.sidebar h3 {
  color: #f4f4ef;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .10em;
  margin-bottom: 18px;
}

.nav-links a {
  position: relative;
  grid-template-columns: 1fr 18px;
  min-height: 56px;
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid transparent;
  color: #efefe9;
}

.nav-links a::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background .18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(90deg, rgba(12,12,12,0.92), rgba(28,28,28,0.92));
  border-color: rgba(255,255,255,0.07);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  background: linear-gradient(180deg, #ff1f29, #b1060f);
}

.content {
  padding: 30px 30px 46px;
}

.hero-banner,
.appstore-spotlight {
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 40px 100px rgba(0,0,0,0.42);
}

.hero-banner {
  background:
    linear-gradient(90deg, rgba(5,5,5,0.94) 0%, rgba(5,5,5,0.78) 40%, rgba(5,5,5,0.36) 100%),
    url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.apps-hero {
  background:
    linear-gradient(90deg, rgba(5,5,5,0.94) 0%, rgba(5,5,5,0.78) 40%, rgba(5,5,5,0.36) 100%),
    url('https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.ticket-hero {
  background:
    linear-gradient(90deg, rgba(5,5,5,0.94) 0%, rgba(5,5,5,0.78) 40%, rgba(5,5,5,0.36) 100%),
    url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.news-hero-banner,
.admin-hero {
  background:
    linear-gradient(90deg, rgba(5,5,5,0.94) 0%, rgba(5,5,5,0.78) 40%, rgba(5,5,5,0.36) 100%),
    url('https://images.unsplash.com/photo-1478720568477-152d9b164e26?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(229,9,20,0.10), transparent 30%),
    linear-gradient(90deg, rgba(5,5,5,0.10), rgba(5,5,5,0.78));
}

.hero-kicker,
.showcase-chip,
.app-type-badge,
.app-badge,
.news-hub-badge,
.status-pill,
.streaming-type-chip {
  box-shadow: none;
}

.hero-content h1,
.hero-content h2,
.hero-content h3,
.news-feed-title,
.section-title {
  letter-spacing: -0.04em;
}

.hero-content h1,
.hero-content h2 {
  text-transform: uppercase;
}

.hero-content p,
.muted,
.login-sub {
  color: #d7d7d1;
}

.card,
.dark-card,
.accent-card,
.store-note,
.news-top-card,
.article-modal-dialog,
.login-panel,
.urgent-notice,
.table-wrap {
  background:
    linear-gradient(180deg, rgba(16,16,16,0.96), rgba(11,11,11,0.96));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 28px 70px rgba(0,0,0,0.30);
}

.card:hover,
.news-top-card:hover,
.appstore-card:hover {
  transform: translateY(-2px);
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 34px 80px rgba(0,0,0,0.36);
}

input,
textarea,
select {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #f7f7f2 !important;
}

input::placeholder,
textarea::placeholder {
  color: #8f8f89;
}

.app-icon {
  background: linear-gradient(135deg, #111, #1d1d1d);
  color: var(--primary);
  border: 1px solid rgba(255,255,255,0.08);
}

.downloader-code-value,
.stat-value {
  color: #f5f5ef;
}

.downloader-code-row strong,
.label {
  color: #d8d8d3;
}

.bonus-progress-fill,
.progress-bar-fill,
.server-status.online,
.line-status.online {
  background: linear-gradient(90deg, #16c060, #44da84) !important;
}

.news-top-card.active,
.status-online,
.success-box,
.info-box {
  border-color: rgba(22,192,96,0.24);
}

.success-box,
.info-box {
  background: linear-gradient(180deg, rgba(12,36,22,0.96), rgba(10,24,17,0.96));
}

.error {
  background: linear-gradient(180deg, rgba(52,13,13,0.96), rgba(31,10,10,0.96));
  border-color: rgba(229,9,20,0.22);
}

.login-panel {
  max-width: 620px;
  padding: 42px;
}

.login-panel::after {
  
  display: block;
  margin-top: 16px;
  color: #a6a69f;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.login-panel h1 {
  font-size: 42px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.dashboard-stat-grid,
.cards.three,
.cards.four { gap: 20px; }

.ticket-list-item,
.ticket-message,
.announcement,
.news-hub-card,
.appstore-card {
  border-bottom-color: rgba(255,255,255,0.06);
}

.app-url,
.system-line,
.ticket-meta,
.news-date,
.article-modal-meta {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .sidebar::before { bottom: 0; }
}


.order-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.order-section-head h3 {
  margin: 0 0 6px;
}

.status-count-badge {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.2);
  color: #fff;
  font-weight: 800;
}

.empty-order-state {
  padding: 18px 0 10px;
}

.archived-orders-box {
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.archived-orders-box summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.archived-orders-box summary::-webkit-details-marker {
  display: none;
}

.archived-orders-box summary::after {
  content: '▾';
  color: var(--muted);
  transition: transform .2s ease;
}

.archived-orders-box[open] summary::after {
  transform: rotate(180deg);
}

.archived-orders-count {
  color: var(--muted);
  font-weight: 600;
  margin-left: auto;
  margin-right: 4px;
}

.archived-orders-list {
  padding: 0 18px 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ticket-list-item-activated {
  opacity: 0.9;
}


.rank-badge-inline,
.rank-badge-large {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 26px rgba(0,0,0,.24);
    overflow: hidden;
    isolation: isolate;
    text-shadow: 0 1px 5px rgba(0,0,0,.22);
}
.rank-badge-inline::before,
.rank-badge-large::before,
.admin-rank-pill::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,.26), rgba(255,255,255,0) 36%, rgba(255,255,255,.08) 72%, rgba(255,255,255,0));
    opacity: .85;
    pointer-events: none;
}
.rank-badge-inline::after,
.rank-badge-large::after {
    content: "";
    position: absolute;
    inset: auto auto -45% -12%;
    width: 68%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%);
    opacity: .4;
    transform: rotate(-18deg);
    pointer-events: none;
}
.rank-badge-inline {
    padding: 5px 12px;
    font-size: 0.72rem;
    margin-right: 6px;
}
.rank-badge-large {
    width: 72px;
    height: 72px;
    font-size: 1rem;
}
.rank-badge-inline > *,
.rank-badge-large > * {
    position: relative;
    z-index: 1;
}
.gamification-card {
    border: 1px solid rgba(255,255,255,.08);
}
.gamification-head {
    display:flex;
    gap:18px;
    align-items:center;
    margin-bottom:18px;
}
.feature-chip-row {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:16px;
}
.feature-chip {
    padding:8px 14px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    color:#d8d8d8;
    font-size:.88rem;
}
.feature-chip.unlocked { background:rgba(85, 182, 109, .18); border-color:rgba(85, 182, 109, .45); color:#dff7e5; }
.feature-chip.unlocked.vip { background:rgba(200, 166, 92, .2); border-color:rgba(255, 215, 120, .5); color:#fff2c9; }
.vip-sales-banner {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(179, 140, 58, .25), rgba(30, 30, 30, .88));
    border: 1px solid rgba(255, 217, 102, .24);
}
.rank-gray { background:linear-gradient(135deg,#434343,#6a6a6a); color:#fff; }
.rank-blue { background:linear-gradient(135deg,#163d72,#3f82ff); color:#fff; }
.rank-purple { background:linear-gradient(135deg,#452167,#9a54ff); color:#fff; }
.rank-silver { background:linear-gradient(135deg,#6f7887,#d0d7e2); color:#1c1c1c; }
.rank-orange { background:linear-gradient(135deg,#7b3a03,#ff9730); color:#fff; }
.rank-red { background:linear-gradient(135deg,#631919,#ff4c4c); color:#fff; }
.rank-gold { background:linear-gradient(135deg,#7c5b11,#ffd76c); color:#201606; }
.rank-cyan { background:linear-gradient(135deg,#0d5661,#38d5e8); color:#fff; }
.rank-royal { background:linear-gradient(135deg,#2f2c7d,#8f8aff); color:#fff; }
.rank-diamond { background:linear-gradient(135deg,#1b7984,#a7fbff); color:#062226; }
.rank-vip { background:linear-gradient(135deg,#594113,#ffdc86,#8e6421); color:#1a1304; }
.vip-hero-banner { box-shadow: 0 22px 50px rgba(181, 145, 58, .28); }
.vip-feature-list { display:grid; gap:14px; }
.vip-feature-item {
    padding:14px 16px;
    border-radius:16px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    display:flex;
    flex-direction:column;
    gap:4px;
}
.vip-tool-shell {
    padding:16px;
    border-radius:18px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
}


/* Enhanced gamification UI */
.bonus-compact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 18px;
}
.bonus-compact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(19,23,31,.96), rgba(12,15,20,.98));
}
.bonus-compact-card::before,
.bonus-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 34%);
  pointer-events: none;
}
.bonus-compact-top,
.bonus-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bonus-showcase-header {
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.badge-showcase,
.bonus-showcase-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rank-badge-crest {
  --badge-color-1: rgba(255,255,255,.14);
  --badge-color-2: rgba(255,255,255,.04);
  position: relative;
  width: 76px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 90% 18%, 90% 68%, 50% 100%, 10% 68%, 10% 18%);
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 22px 38px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.18), inset 0 -12px 18px rgba(0,0,0,.12);
  isolation: isolate;
}
.rank-badge-crest::before {
  content: "";
  position: absolute;
  inset: 5px;
  clip-path: inherit;
  border: 1px solid rgba(255,255,255,.18);
  opacity: .65;
  pointer-events: none;
}
.rank-badge-crest::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 34px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  filter: blur(1px);
  opacity: .75;
  pointer-events: none;
}
.rank-badge-crest.large-order-badge { width: 84px; height: 100px; }
.rank-badge-crest .badge-shine {
  position: absolute;
  inset: 2px;
  clip-path: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.42), transparent 28%, transparent 68%, rgba(255,255,255,.1));
  opacity: .92;
}
.rank-badge-crest .badge-core {
  position: relative;
  z-index: 1;
  min-width: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,.32);
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.rank-gray.rank-badge-crest { background: linear-gradient(180deg,#4d4d4d,#252525); color:#fff; }
.rank-blue.rank-badge-crest { background: linear-gradient(180deg,#3385ff,#16396a); color:#fff; }
.rank-purple.rank-badge-crest { background: linear-gradient(180deg,#b16cff,#4b2570); color:#fff; }
.rank-silver.rank-badge-crest { background: linear-gradient(180deg,#eef3f9,#7b8697); color:#1b2430; }
.rank-orange.rank-badge-crest { background: linear-gradient(180deg,#ffb257,#7d3a05); color:#fff; }
.rank-red.rank-badge-crest { background: linear-gradient(180deg,#ff7373,#6a1d1d); color:#fff; }
.rank-gold.rank-badge-crest { background: linear-gradient(180deg,#ffe89a,#8b6514); color:#2f1f00; }
.rank-cyan.rank-badge-crest { background: linear-gradient(180deg,#6df2ff,#0e5a64); color:#fff; }
.rank-royal.rank-badge-crest { background: linear-gradient(180deg,#b0a8ff,#322f85); color:#fff; }
.rank-diamond.rank-badge-crest { background: linear-gradient(180deg,#d9feff,#1695a4); color:#082228; }
.rank-vip.rank-badge-crest { background: linear-gradient(180deg,#fff0b6,#9e6d1a); color:#2d1d00; }
.mini-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #b0b8c8;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.bonus-compact-meta h3,
.bonus-showcase-card h3,
.bonus-goal-head h3 {
  margin: 0 0 6px;
}
.bonus-price-chip,
.bonus-price-panel {
  min-width: 116px;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.bonus-price-chip {
  font-size: 1.15rem;
  font-weight: 900;
}
.bonus-price-panel { display:flex; flex-direction:column; gap:8px; }
.bonus-price-panel span { color: var(--muted); font-size: .8rem; }
.bonus-price-panel strong { font-size: 1.35rem; letter-spacing: -.03em; }
.bonus-ladder-inline,
.bonus-milestone-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.bonus-tier,
.milestone-card {
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #d9e0eb;
}
.bonus-tier {
  padding: 9px 13px;
  font-size: .86rem;
  font-weight: 800;
}
.bonus-tier.reached,
.milestone-card.active {
  background: linear-gradient(135deg, rgba(114,128,161,.28), rgba(255,255,255,.08));
  border-color: rgba(255,255,255,.2);
}
.bonus-tier.reached.gold,
.milestone-card.active.gold {
  background: linear-gradient(135deg, rgba(255,215,108,.24), rgba(255,255,255,.08));
  border-color: rgba(255,216,120,.34);
  color: #fff2ca;
}
.bonus-tier.reached.vip,
.milestone-card.active.vip {
  background: linear-gradient(135deg, rgba(255,220,134,.28), rgba(184,123,20,.22));
  border-color: rgba(255,220,134,.44);
  color: #fff5cf;
  box-shadow: 0 10px 24px rgba(169,120,34,.18);
}
.bonus-goal-card,
.bonus-next-target-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bonus-goal-head,
.bonus-next-target-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bonus-goal-note,
.bonus-next-target-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.bonus-next-target-box.vip-ready { background: linear-gradient(135deg, rgba(138,98,24,.26), rgba(255,255,255,.04)); }
.bonus-progress-compact,
.bonus-progress-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bonus-progress-track.compact {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}
.progress-mini-label {
  color: var(--muted);
  font-size: .83rem;
  font-weight: 700;
}
.bonus-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 90;
}
.bonus-modal.is-visible { display: block; }
.bonus-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,8,14,.7);
  backdrop-filter: blur(10px);
}
.bonus-modal-dialog {
  position: relative;
  max-width: 680px;
  margin: 7vh auto 0;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16,19,26,.98), rgba(10,12,16,.98));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
}
.bonus-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.bonus-modal-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.35rem;
}
.bonus-roadmap-list {
  display: grid;
  gap: 12px;
}
.bonus-roadmap-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.bonus-roadmap-item.reached {
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
}
.bonus-roadmap-item.reached.vip {
  background: linear-gradient(135deg, rgba(255,220,134,.2), rgba(255,255,255,.04));
  border-color: rgba(255,220,134,.34);
}
.roadmap-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.bonus-showcase-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(15,18,24,.98), rgba(11,13,17,.98));
}
.milestone-card {
  min-width: 132px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.milestone-card strong { font-size: 1rem; }
.milestone-title {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
}
.vip-sales-banner.polished {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vip-sales-copy { max-width: 720px; }
@media (max-width: 900px) {
  .bonus-compact-grid,
  .bonus-goal-head,
  .bonus-showcase-header,
  .bonus-next-target-box,
  .vip-sales-banner.polished {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
  .bonus-price-chip,
  .bonus-price-panel { min-width: 0; width: 100%; }
  .bonus-modal-dialog { margin: 4vh 14px 0; }
}


.bonus-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.bonus-side-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(18,22,29,.98), rgba(11,14,19,.98));
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bonus-side-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 36%);
  pointer-events: none;
}
.bonus-side-head,
.bonus-side-identity {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bonus-side-identity {
  justify-content: flex-start;
  align-items: center;
}
.bonus-side-progress-note {
  position: relative;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #e8edf6;
  line-height: 1.45;
}
.bonus-side-progress-note.success {
  background: linear-gradient(135deg, rgba(255,220,134,.16), rgba(255,255,255,.04));
  border-color: rgba(255,220,134,.28);
}
.milestone-side-card {
  background: linear-gradient(180deg, rgba(16,18,24,.98), rgba(12,14,19,.98));
}
.order-side-card {
  border-radius: 22px;
}
.bonus-split-showcase {
  padding: 20px;
}
.bonus-split-showcase .bonus-dual-grid {
  position: relative;
}
.compact-stack {
  gap: 10px;
}
.inline-btn {
  width: fit-content;
}
.roadmap-rank-item.reached.rank-gray,
.roadmap-rank-item.reached.rank-blue,
.roadmap-rank-item.reached.rank-purple,
.roadmap-rank-item.reached.rank-silver,
.roadmap-rank-item.reached.rank-orange,
.roadmap-rank-item.reached.rank-red,
.roadmap-rank-item.reached.rank-gold,
.roadmap-rank-item.reached.rank-cyan,
.roadmap-rank-item.reached.rank-royal,
.roadmap-rank-item.reached.rank-diamond,
.roadmap-rank-item.reached.rank-vip {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.14);
}
@media (max-width: 900px) {
  .bonus-dual-grid {
    grid-template-columns: 1fr;
  }
  .bonus-side-head,
  .bonus-side-identity {
    flex-direction: column;
    align-items: flex-start;
  }
}


body.bonus-modal-open {
  overflow: hidden;
}
.bonus-modal {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 16px;
}
.bonus-modal-dialog {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.bonus-roadmap-item,
.bonus-roadmap-item strong,
.bonus-roadmap-item .roadmap-title {
  color: #f4f7fb;
}
.bonus-roadmap-item span,
.bonus-roadmap-item .roadmap-benefit,
.bonus-roadmap-item .roadmap-copy {
  color: #c7d0dc;
}
.bonus-roadmap-item.roadmap-rank-item {
  background: rgba(255,255,255,.04);
}
.bonus-roadmap-item .roadmap-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roadmap-title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}
.roadmap-benefit {
  display: block;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
  line-height: 1.5;
}
.subtle-banner {
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.subtle-banner .vip-sales-copy {
  color: #dbe3ee;
}


/* Compact bonus summary on account orders */
.orders-mini-bonus-bar,
.orders-mini-bonus-bar.polished-mini-progress {
  display:flex;
  align-items:stretch;
  gap:12px;
  padding:10px 12px;
  margin: 0 0 16px;
  border-radius:16px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.12), transparent 32%),
    linear-gradient(180deg, rgba(26,31,41,.96), rgba(12,15,21,.94));
  border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 34px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.04);
}
.orders-mini-bonus-col {
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:8px 10px;
  border-radius:12px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border:1px solid rgba(255,255,255,.05);
}
.orders-mini-bonus-col.align-right { text-align:right; align-items:flex-end; }
.orders-mini-label {
  font-size:.68rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.16em;
  color: rgba(196,205,223,.58);
}
.orders-mini-main {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:#fff;
}
.orders-mini-main.no-wrap { justify-content:flex-end; }
.orders-mini-title,
.orders-mini-main strong {
  font-size:.95rem;
  font-weight:700;
  line-height:1.2;
  color:#f8fbff;
}
.orders-mini-level {
  display:inline-flex;
  align-items:center;
  padding:2px 8px;
  border-radius:999px;
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.08);
  font-size:.72rem;
  font-weight:700;
  color:#dfe8f7;
}
.orders-mini-sub {
  font-size:.79rem;
  line-height:1.35;
  color: rgba(220,228,241,.76);
}
.orders-mini-sub strong { color:#fff; }
.orders-mini-divider {
  width:1px;
  align-self:stretch;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.16), transparent);
}
.orders-mini-bonus-bar .rank-badge-inline {
  min-width:44px;
  justify-content:center;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 8px 16px rgba(0,0,0,.18);
}
.admin-rank-pill {
  position: relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 11px 5px 8px;
  border-radius:999px;
  font-size:.79rem;
  font-weight:800;
  line-height:1;
  border:1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 22px rgba(0,0,0,.18);
  overflow: hidden;
}
.admin-rank-pill > * {
  position: relative;
  z-index: 1;
}
.admin-rank-pill-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.12));
  color: inherit;
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.05em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 10px rgba(0,0,0,.14);
}
@media (max-width: 760px) {
  .orders-mini-bonus-bar {
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .orders-mini-bonus-col.align-right {
    text-align:left;
    align-items:flex-start;
  }
  .orders-mini-main.no-wrap { justify-content:flex-start; }
  .orders-mini-divider { width:100%; height:1px; }
}

/* Admin quality-of-life + overflow fixes */
.app-layout,
.content,
.card,
.dark-card,
.hero-banner,
.table-wrap,
.ticket-grid,
.news-magazine-row,
.compact-admin-item {
  min-width: 0;
}

.content {
  overflow-x: hidden;
}

.admin-collapsible {
  margin-bottom: 0;
}

.admin-collapsible > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  padding: 18px 22px;
  border-radius: 22px;
  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);
  margin-bottom: 14px;
}

.admin-collapsible > summary::-webkit-details-marker {
  display: none;
}

.admin-collapsible > summary::after {
  content: '▾';
  color: var(--muted);
  font-size: 18px;
  transition: transform .18s ease;
}

.admin-collapsible:not([open]) > summary::after {
  transform: rotate(-90deg);
}

.section-title-inline {
  margin: 0;
}

.collapsible-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.compact-admin-list {
  display: grid;
  gap: 14px;
}

.compact-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.compact-streaming-item {
  grid-template-columns: 110px minmax(0, 1fr) auto;
}

.compact-thumb {
  width: 110px;
  height: 88px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.compact-admin-main {
  min-width: 0;
}

.compact-admin-top,
.compact-admin-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-admin-top {
  justify-content: space-between;
  margin-bottom: 8px;
}

.compact-admin-main h4 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.compact-admin-main p {
  margin: 0;
  color: #cfd6e2;
  line-height: 1.65;
}

.compact-actions-stack {
  align-self: stretch;
  justify-content: center;
}

.admin-user-search-row {
  margin-bottom: 14px;
}

.admin-user-search-row input {
  max-width: 520px;
}

.ticket-list-item,
.ticket-message,
.announcement {
  overflow-wrap: anywhere;
}

.ticket-message {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
}

.ticket-message-admin {
  border-left: 4px solid rgba(229,9,20,0.42);
  background: linear-gradient(135deg, rgba(229,9,20,0.09), rgba(255,255,255,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.ticket-message-user {
  border-left: 4px solid rgba(79,70,229,0.36);
  background: linear-gradient(135deg, rgba(79,70,229,0.10), rgba(255,255,255,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.ticket-message p {
  margin: 10px 0 0;
  color: #eef2f8;
  line-height: 1.75;
}

.ticket-chat-head {
  margin-bottom: 0;
}

.ticket-level-badge {
  margin-right: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 8px 18px rgba(0,0,0,0.18);
}

.chat-compose-card {
  background:
    radial-gradient(circle at top right, rgba(229,9,20,0.08), transparent 26%),
    linear-gradient(180deg, rgba(22,24,31,0.98), rgba(18,20,27,0.98));
}

.chat-textarea {
  min-height: 150px;
  resize: vertical;
}

@media (max-width: 1024px) {
  .compact-streaming-item,
  .compact-admin-item {
    grid-template-columns: 1fr;
  }

  .compact-thumb {
    width: 100%;
    height: 180px;
  }
}

.section-block-tight {
  padding-top: 0;
}

.admin-toast-box {
  margin-bottom: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.summary-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  margin-left: 10px;
  border-radius: 999px;
  background: rgba(229,9,20,0.16);
  border: 1px solid rgba(229,9,20,0.28);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.admin-user-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-filter-bar.compact {
  margin-bottom: 0;
}

.filter-chip {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #dfe6f3;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(229,9,20,0.26);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, rgba(229,9,20,0.22), rgba(229,9,20,0.12));
  border-color: rgba(229,9,20,0.4);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.online-user-item,
.ticket-list-item {
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.online-user-item:hover,
.ticket-list-item:hover {
  transform: translateY(-1px);
}

.chat-timestamp {
  color: rgba(223,230,243,0.68);
  font-size: 12px;
  letter-spacing: .02em;
}

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

@media (max-width: 768px) {
  .admin-filter-bar {
    gap: 8px;
  }
  .filter-chip {
    width: 100%;
    justify-content: center;
  }
}

/* === Netflix Dark Animated Glow + Mobile Overhaul === */
:root {
  --accent: #b20710;
  --accent-2: #ff1f2d;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(229, 9, 20, 0.18), transparent 22%),
    radial-gradient(circle at 100% 10%, rgba(180, 7, 16, 0.14), transparent 20%),
    linear-gradient(180deg, #050507 0%, #09090d 45%, #111116 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 44rem;
  height: 44rem;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  opacity: .42;
}

body::before {
  top: -18rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(229,9,20,0.34) 0%, rgba(229,9,20,0.18) 28%, transparent 68%);
  animation: netflixGlowOne 16s ease-in-out infinite alternate;
}

body::after {
  right: -14rem;
  bottom: -16rem;
  background: radial-gradient(circle, rgba(255,40,56,0.28) 0%, rgba(130,0,10,0.20) 34%, transparent 70%);
  animation: netflixGlowTwo 18s ease-in-out infinite alternate;
}

@keyframes netflixGlowOne {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(8rem, 6rem, 0) scale(1.12); }
}

@keyframes netflixGlowTwo {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-7rem, -5rem, 0) scale(1.08); }
}

.backdrop {
  background:
    radial-gradient(circle at 8% 0%, rgba(229,9,20,0.24), transparent 24%),
    radial-gradient(circle at 100% 12%, rgba(150,0,10,0.18), transparent 22%),
    linear-gradient(180deg, rgba(5,5,7,0.94), rgba(10,10,14,0.96));
}

.topbar-login,
.topbar {
  background: rgba(7, 7, 10, 0.76);
  border-bottom: 1px solid rgba(229,9,20,0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,0.26);
}

.profile-chip,
.ghost-btn,
.nav-links a,
.platform-pill,
.news-nav-btn {
  background: rgba(255,255,255,0.045);
  border-color: rgba(229,9,20,0.12);
}

.ghost-btn:hover,
.nav-links a:hover,
.nav-links a.active,
.news-nav-btn:hover {
  border-color: rgba(229,9,20,0.28);
  box-shadow: 0 12px 28px rgba(229,9,20,0.10);
}

.app-body {
  background:
    radial-gradient(circle at 4% 0%, rgba(229,9,20,.18), transparent 18%),
    radial-gradient(circle at 100% 8%, rgba(120,0,10,.14), transparent 18%),
    linear-gradient(180deg, #050507 0%, #09090d 48%, #111116 100%);
}

.sidebar {
  background: rgba(7, 7, 10, 0.58);
}

.sidebar::before {
  background:
    radial-gradient(circle at top left, rgba(229,9,20,0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(120,0,10,0.16), transparent 26%),
    linear-gradient(145deg, rgba(14,14,18,0.96), rgba(10,10,14,0.90));
  border-color: rgba(229,9,20,0.10);
}

.hero-overlay,
.dark-card,
.accent-card,
.mini-feature,
.store-note,
.news-feed-card,
.news-side-card,
.news-magazine-item,
.news-editor-pick,
.compact-news-card,
.table-wrap,
.news-empty {
  background-color: rgba(14, 14, 18, 0.92);
}

.dark-card {
  background:
    radial-gradient(circle at top right, rgba(229,9,20,0.09), transparent 28%),
    linear-gradient(180deg, rgba(17,17,21,0.98), rgba(12,12,16,0.98));
  border-color: rgba(229,9,20,0.10);
}

.accent-card {
  background:
    radial-gradient(circle at top right, rgba(229,9,20,0.15), transparent 30%),
    radial-gradient(circle at left bottom, rgba(120,0,10,0.12), transparent 24%),
    linear-gradient(180deg, rgba(18,18,22,0.98), rgba(12,12,16,0.98));
}

.hero-banner,
.admin-hero,
.ticket-hero,
.apps-hero,
.showcase-main,
.appstore-spotlight {
  border-color: rgba(229,9,20,0.14);
}

.hero-overlay {
  background:
    radial-gradient(circle at right top, rgba(229,9,20,0.18), transparent 32%),
    radial-gradient(circle at left bottom, rgba(120,0,10,0.10), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.00), rgba(0,0,0,0.00));
}

.mini-feature::before,
.stat-card-premium::after,
.login-panel::before {
  background: radial-gradient(circle, rgba(229,9,20,0.20), transparent 70%);
}

.login-panel::after {
  background: radial-gradient(circle, rgba(120,0,10,0.16), transparent 68%);
}

.app-icon,
.streaming-type-chip,
.message-rank-badge.user-badge,
.ticket-message-user {
  background-image: linear-gradient(135deg, rgba(229,9,20,0.18), rgba(120,0,10,0.12));
  border-color: rgba(229,9,20,0.18);
}

.streaming-type-chip,
.message-rank-badge.user-badge {
  color: #ffe3e6;
}

.ticket-message-user {
  border-left-color: rgba(229,9,20,0.26);
}

.info-box,
.news-tag-update,
.app-type-windows,
.payment-request-box,
.status-blue {
  background: rgba(229,9,20,0.10);
  border-color: rgba(229,9,20,0.20);
  color: #ffe4e7;
}

.news-tag-update,
.app-type-windows {
  color: #ffe4e7;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  min-width: 720px;
}

.full-width {
  width: 100%;
}

@media (max-width: 900px) {
  body::before,
  body::after {
    width: 26rem;
    height: 26rem;
    filter: blur(70px);
    opacity: .35;
  }

  .topbar-login,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 24px;
  }

  .app-layout {
    min-height: auto;
  }

  .sidebar {
    padding: 14px;
    position: relative;
    top: 0;
    z-index: 18;
    background: rgba(7,7,10,0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .sidebar::before {
    inset: 8px;
    border-radius: 20px;
  }

  .sidebar h3 {
    margin: 0 0 10px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #c8b0b4;
  }

  .nav-links {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    min-width: max-content;
    min-height: 46px;
    padding: 12px 14px;
    white-space: nowrap;
    grid-template-columns: unset;
    flex: 0 0 auto;
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .nav-links a::after {
    width: auto;
    font-size: 14px;
  }

  .content {
    padding: 16px 14px 28px;
  }

  .hero-banner,
  .showcase-main,
  .appstore-spotlight,
  .news-editor-pick {
    min-height: auto;
  }

  .hero-content,
  .showcase-content,
  .appstore-spotlight-content,
  .editor-content {
    padding: 22px 18px;
  }

  .hero-content h1,
  .showcase-content h2,
  .appstore-spotlight-content h2,
  .editor-content h3 {
    font-size: 30px;
    line-height: 1.02;
  }

  .hero-content p,
  .showcase-content p,
  .appstore-spotlight-content p,
  .editor-content p,
  .news-magazine-body p,
  .news-side-body p,
  .news-excerpt {
    font-size: 14px;
    line-height: 1.65;
  }

  .section-title {
    font-size: 20px;
  }

  .card {
    padding: 18px;
    border-radius: 22px;
  }

  .login-wrap {
    padding: 24px 12px;
  }

  .login-panel {
    border-radius: 28px;
    padding: 24px 18px;
  }

  .login-panel h1 {
    font-size: 32px;
  }

  .ticket-head,
  .announcement-head,
  .news-feed-header,
  .app-card-head,
  .online-user-item,
  .appstore-hero,
  .news-magazine-top,
  .dashboard-showcase {
    gap: 12px;
  }

  .news-feed-header,
  .ticket-head,
  .announcement-head,
  .online-user-item,
  .app-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-feed-image,
  .compact-news-thumb,
  .news-side-thumb,
  .news-magazine-thumb,
  .editor-image {
    height: 180px;
    min-height: 180px;
  }

  .news-title,
  .news-title-small,
  .news-magazine-body h4,
  .compact-news-body h4,
  .news-side-body h4 {
    font-size: 22px;
  }

  input,
  textarea,
  select,
  button {
    font-size: 16px;
  }

  .table-wrap {
    border-radius: 16px;
  }

  th,
  td {
    padding: 12px 10px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .topbar-right {
    align-items: stretch;
  }

  .profile-chip,
  .ghost-btn {
    width: 100%;
    justify-content: center;
  }

  .cards,
  .cards.one,
  .cards.two,
  .cards.three,
  .cards.four,
  .dashboard-stat-grid,
  .news-feed-grid,
  .apps-grid,
  .apps-grid.appstore-grid,
  .compact-news-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-kicker,
  .showcase-chip,
  .platform-pill,
  .status-pill,
  .news-pin,
  .news-tag,
  .app-type-badge,
  .app-badge {
    font-size: 10px;
  }

  .hero-content h1,
  .showcase-content h2,
  .appstore-spotlight-content h2,
  .editor-content h3 {
    font-size: 26px;
  }

  .stat-value {
    font-size: 26px;
  }

  .admin-table {
    min-width: 640px;
  }
}


.form-hint {
    margin-top: 6px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.62);
}

.error-box {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 84, 84, 0.45);
    background: rgba(120, 18, 18, 0.28);
    color: #ffd5d5;
}

.ticket-attachment {
    margin-top: 14px;
}

.ticket-attachment-link {
    display: block;
}

.ticket-attachment-image {
    display: block;
    width: 100%;
    max-width: 340px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}

.ticket-attachment-meta {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.72);
}

.ticket-attachment-meta a {
    color: #ff6b6b;
    text-decoration: none;
}

.shoutbox-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.shoutbox-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(229, 9, 20, 0.14), transparent 38%);
}
.shoutbox-headline-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.shoutbox-headline-row h3 {
  margin: 0 0 6px;
}
.shoutbox-headline-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}
.shoutbox-live-pill,
.shoutbox-count-badge,
.shoutbox-role-pill {
  border: 1px solid rgba(229, 9, 20, 0.32);
  background: rgba(229, 9, 20, 0.12);
  color: #ffd8dc;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.shoutbox-count-badge {
  min-width: 38px;
  text-align: center;
}
.shoutbox-feed-wrapper {
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(12,13,17,0.96), rgba(8,8,10,0.98));
  border-radius: 18px;
  overflow: hidden;
}
.shoutbox-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 420px;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.shoutbox-empty-state {
  margin: auto 0;
}
.shoutbox-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(20,21,24,0.96), rgba(11,12,14,0.98));
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.shoutbox-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.92), rgba(255, 91, 91, 0.65));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 0 18px rgba(229, 9, 20, 0.28);
}
.shoutbox-meta {
  min-width: 0;
}
.shoutbox-user-row,
.shoutbox-rank-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.shoutbox-user-row strong {
  font-size: 14px;
}
.shoutbox-rank-row,
.shoutbox-time-stamp {
  color: rgba(255,255,255,0.68);
  font-size: 12px;
}
.shoutbox-time-stamp {
  margin-left: auto;
}
.shoutbox-message-text {
  margin-top: 5px;
  color: rgba(255,255,255,0.92);
  line-height: 1.4;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}
.shoutbox-bubble {
  margin-top: 5px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.shoutbox-bubble-head {
  display: none;
}
.shoutbox-message-label {
  color: rgba(255,255,255,0.66);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.shoutbox-message-meta-time {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  white-space: nowrap;
}
.shoutbox-item-actions {
  align-self: center;
  margin-left: 4px;
}
.shoutbox-delete-btn {
  border: 1px solid rgba(229, 9, 20, 0.4);
  background: rgba(229, 9, 20, 0.12);
  color: #fff;
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 12px;
}
.shoutbox-delete-btn:hover {
  background: rgba(229, 9, 20, 0.2);
}
.shoutbox-composer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.shoutbox-form textarea {
  min-height: 92px;
  max-height: 140px;
  resize: vertical;
}
.shoutbox-form-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
@media (max-width: 980px) {
  .shoutbox-feed-list {
    height: 380px;
  }
}
@media (max-width: 640px) {
  .shoutbox-headline-row,
  .shoutbox-form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .shoutbox-headline-badges {
    justify-content: flex-start;
  }
  .shoutbox-feed-list {
    height: 340px;
    padding: 12px;
  }
  .shoutbox-item {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 10px;
  }
  .shoutbox-avatar {
    width: 32px;
    height: 32px;
  }
  .shoutbox-item-actions {
    grid-column: 2;
    justify-self: end;
    margin-top: 6px;
  }
  
.ticket-progress-card {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.ticket-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ticket-progress-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.ticket-progress-current {
  font-size: 13px;
  color: #fff;
}
.ticket-progress-bar {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}
.ticket-progress-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1fbf5b, #59d87f);
  box-shadow: 0 0 14px rgba(41, 201, 98, 0.30);
  transition: width .25s ease;
}
.ticket-progress-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.ticket-progress-legend-item {
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  font-weight: 700;
}
.ticket-progress-legend-item.is-active {
  color: #dfffe8;
}
@media (max-width: 768px) {
  .ticket-progress-card {
    padding: 14px;
  }
  .ticket-progress-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
  }
  .ticket-progress-bar {
    height: 12px;
  }
  .ticket-progress-legend {
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
  }
}
.shoutbox-user-row {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
  }
  .shoutbox-user-row strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .shoutbox-time-stamp {
    display: none;
  }
  .shoutbox-bubble {
    margin-top: 6px;
    padding: 8px 10px 9px;
  }
  .shoutbox-bubble-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
  }
  .shoutbox-message-label {
    font-size: 10px;
  }
  .shoutbox-message-meta-time {
    display: inline-flex;
    font-size: 10px;
    margin-left: auto;
  }
  .shoutbox-message-text {
    margin-top: 0;
    font-size: 13px;
    line-height: 1.38;
  }
  .shoutbox-member-pill,
  .shoutbox-rank-badge,
  .admin-special-badge {
    font-size: 9px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 999px;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .shoutbox-member-pill {
    padding: 3px 5px;
  }
}



.tmdb-lookup-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.tmdb-lookup-row input[type="url"] {
    flex: 1 1 320px;
    min-width: 0;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
    background: rgba(229, 9, 20, 0.18);
    border-color: rgba(229, 9, 20, 0.45);
    transform: translateY(-1px);
}

.secondary-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.field-hint {
    margin-top: 8px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
}

.tmdb-status {
    min-height: 22px;
    margin-top: 8px;
    font-size: 0.94rem;
    color: rgba(255,255,255,0.72);
}

.tmdb-status.is-success {
    color: #8ff0a4;
}

.tmdb-status.is-error {
    color: #ff8c8c;
}

.tmdb-status.is-loading {
    color: #ffd479;
}

@media (max-width: 700px) {
    .secondary-btn {
        width: 100%;
        min-width: 0;
    }
}


.admin-collapsible {
    scroll-margin-top: 90px;
}

.table-wrap table {
    table-layout: fixed;
    width: 100%;
}

.iptv-compact-cell small,
.admin-note-cell {
    display: block;
    color: rgba(255,255,255,0.72);
    line-height: 1.35;
}

.admin-note-cell,
.m3u-cell,
.iptv-compact-cell {
    max-width: 150px;
    word-break: break-word;
}

.stacked-info-notices {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.info-box-compact {
    margin: 0;
}

.secondary-info-box {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

.online-user-list {
    max-height: 320px;
    overflow-y: auto;
}

@media (max-width: 1100px) {
    .admin-note-cell,
    .m3u-cell,
    .iptv-compact-cell {
        max-width: 120px;
        font-size: 13px;
    }
    .table-wrap table {
        min-width: 980px;
    }
}


.order-info-panel {
    margin-bottom: 22px;
}

.order-form-panel {
    margin-top: 6px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(229, 9, 20, 0.22);
    background: linear-gradient(180deg, rgba(18,18,18,0.96) 0%, rgba(10,10,10,0.98) 100%);
    box-shadow: 0 14px 36px rgba(0,0,0,0.3), 0 0 0 1px rgba(229,9,20,0.06) inset;
}

.order-form-panel-head {
    margin-bottom: 16px;
}

.order-form-panel-head h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.separated-order-form {
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.separated-order-form .cards.two {
    gap: 18px;
}

.separated-order-form label {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
}

.separated-order-form input,
.separated-order-form select {
    margin-bottom: 14px;
}

@media (max-width: 700px) {
    .order-form-panel {
        padding: 16px;
        border-radius: 16px;
    }
}


.admin-private-note-card {
  margin: 18px 0 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(229,9,20,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.admin-private-note-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}
.small-text { font-size: .86rem; }
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
}
.checkbox-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #e50914;
}
.toggle-row {
  margin-top: 10px;
}
.admin-message-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 220;
}
.admin-message-modal.is-visible { display: block; }
.admin-message-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,7,12,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.admin-message-dialog {
  position: relative;
  width: min(560px, calc(100% - 28px));
  margin: 10vh auto 0;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(23,25,33,0.99), rgba(12,14,18,0.99));
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 28px 90px rgba(0,0,0,0.45), 0 0 0 1px rgba(229,9,20,0.08) inset;
}
.admin-message-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(229,9,20,0.18), transparent 28%);
}
.admin-message-kicker {
  position: relative;
  z-index: 1;
  color: #ff8d95;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 800;
}
.admin-message-dialog h2 {
  position: relative;
  z-index: 1;
  margin: 10px 0 8px;
  font-size: 2rem;
  line-height: 1.05;
}
.admin-message-meta {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 16px;
}
.admin-message-text {
  position: relative;
  z-index: 1;
  color: #eef2f9;
  line-height: 1.75;
  white-space: normal;
}
.admin-message-actions {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
}
.admin-message-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.4rem;
}
.admin-message-close:hover {
  background: rgba(229,9,20,0.16);
}
@media (max-width: 640px) {
  .admin-message-dialog {
    margin-top: 7vh;
    padding: 22px 18px;
    border-radius: 22px;
  }
  .admin-message-dialog h2 {
    font-size: 1.5rem;
  }
}


.admin-popup-dialog { max-width: 560px; }
.admin-popup-body { padding: 6px 2px 4px; color: #f5f5f5; line-height: 1.6; }
.admin-popup-body p { margin: 0; white-space: normal; }
.admin-popup-meta { margin-top: 14px; font-size: 12px; opacity: .75; }
.admin-popup-actions { display: flex; justify-content: flex-end; margin-top: 18px; }


.admin-id-col {
    width: 64px;
    max-width: 64px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.92rem;
}

.admin-info-cell {
    min-width: 220px;
}

@media (max-width: 1100px) {
    .admin-id-col {
        width: 56px;
        max-width: 56px;
        font-size: 0.85rem;
    }
}


/* User icons + global loading overlay */
.profile-chip::before,
.hero-kicker::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E");
  box-shadow: none;
}

.profile-chip {
  gap: 9px;
}

.hero-kicker {
  gap: 9px;
}

#page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.001);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity .18s ease, visibility .18s ease;
  pointer-events: none;
  contain: layout style paint;
}

body.loader-hidden #page-loader {
  opacity: 0;
  visibility: hidden;
}

.loader-shell {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(19, 25, 37, 0.98), rgba(11, 15, 24, 0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.38), 0 0 0 1px rgba(229, 9, 20, 0.10) inset;
  overflow: hidden;
  transform: translateZ(0);
}

.loader-shell::before {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(229,9,20,0.18), transparent 68%);
  filter: blur(6px);
}

.loader-ring {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.10);
  border-top-color: #e50914;
  border-right-color: rgba(255, 138, 61, 0.9);
  animation: portalSpin .8s linear infinite;
}

@keyframes portalSpin {
  to { transform: rotate(360deg); }
}


/* === Admin badge + compact meta fixes === */
.admin-special-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(229,9,20,0.95), rgba(255,138,61,0.92));
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(229,9,20,0.24);
  overflow: hidden;
}
.admin-special-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 10%, rgba(255,255,255,0.48) 48%, transparent 70%);
  transform: translateX(-130%);
  animation: adminBadgeSweep 2.8s linear infinite;
}
.admin-special-badge-dot {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff7d6;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.42);
  animation: adminBadgePulse 1.8s ease-in-out infinite;
}
@keyframes adminBadgeSweep {
  100% { transform: translateX(130%); }
}
@keyframes adminBadgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.18); transform: scale(1); }
  50% { box-shadow: 0 0 0 7px rgba(255,255,255,0); transform: scale(1.12); }
}
.ticket-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
}
.meta-chip strong {
  font-size: 13px;
  line-height: 1.2;
}
.meta-chip-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}
.meta-chip-rank .ticket-level-badge,
.meta-chip-rank .admin-rank-pill {
  margin-right: 0;
  align-self: center;
}
.ticket-head {
  gap: 10px;
}
.ticket-author-line {
  gap: 8px;
  row-gap: 6px;
}
.ticket-level-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin: 0;
}
.message-rank-badge {
  padding: 6px 9px;
  line-height: 1;
}
.ticket-message-admin,
.ticket-message-user {
  border-radius: 14px;
  padding: 12px 14px;
}
.shoutbox-user-row {
  gap: 7px;
}
.shoutbox-role-pill {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
}
.shoutbox-rank-row {
  margin-top: 2px;
}
.ticket-closed-toggle {
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
}
.ticket-closed-toggle summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.88);
  font-weight: 700;
}
.ticket-closed-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.ticket-list-item-closed {
  opacity: .9;
}
@media (max-width: 768px) {
  .ticket-meta-chips {
    gap: 6px;
  }
  .meta-chip {
    width: 100%;
    justify-content: space-between;
  }
  .admin-special-badge {
    font-size: 10px;
    padding: 4px 9px;
  }
}


.shoutbox-user-row {
  gap: 6px;
}
.shoutbox-member-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}
.shoutbox-rank-badge {
  min-width: 34px;
  justify-content: center;
  font-size: 11px;
  padding: 4px 8px;
}
.shoutbox-role-pill,
.shoutbox-rank-row {
  display: none !important;
}

@media (max-width: 640px) {
  #page-loader {
    background: rgba(255,255,255,0.001);
  }
  .loader-shell {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.32), 0 0 0 1px rgba(229, 9, 20, 0.10) inset;
  }
  .loader-shell::before {
    width: 50px;
    height: 50px;
  }
  .loader-ring {
    width: 32px;
    height: 32px;
  }
}


.ticket-upload-dropzone {
  min-height: 148px;
  border-radius: 20px;
}

.ticket-upload-dropzone .upload-dropzone-inner {
  min-height: 148px;
  gap: 6px;
  padding: 18px;
}

.ticket-upload-dropzone .upload-dropzone-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 20px;
}

.ticket-upload-dropzone .upload-dropzone-inner strong {
  font-size: 16px;
}

.ticket-upload-file-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8,10,14,0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ticket-upload-dropzone,
  .ticket-upload-dropzone .upload-dropzone-inner {
    min-height: 132px;
  }

  .ticket-upload-dropzone .upload-dropzone-inner {
    padding: 14px;
  }

  .ticket-upload-dropzone .upload-dropzone-inner strong {
    font-size: 14px;
  }

  .ticket-upload-dropzone .upload-dropzone-inner span {
    font-size: 12px;
  }
}

.ticket-attachment-lightbox-trigger,
.ticket-inline-open-btn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.ticket-inline-open-btn {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(229,9,20,0.14);
  color: #ffd5d8;
  font-weight: 700;
}

.ticket-lightbox-open {
  overflow: hidden;
}

.ticket-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ticket-lightbox.is-open {
  display: flex;
}

.ticket-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 14, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.ticket-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(94vw, 1100px);
  max-height: 92vh;
  padding: 24px 24px 18px;
  border-radius: 28px;
  background: rgba(16, 18, 24, 0.88);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.ticket-lightbox-stage {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
}

.ticket-lightbox-stage img {
  max-width: 100%;
  max-height: 72vh;
  border-radius: 18px;
  transition: transform 0.18s ease;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.ticket-lightbox-close,
.ticket-lightbox-nav,
.ticket-lightbox-action,
.ticket-lightbox-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.ticket-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}

.ticket-lightbox-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 34px;
}

.ticket-lightbox-prev { left: 16px; }
.ticket-lightbox-next { right: 16px; }

.ticket-lightbox-toolbar {
  position: relative;
  z-index: 4;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ticket-lightbox-file {
  color: #f5f7fb;
  font-weight: 700;
}

.ticket-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-lightbox-action,
.ticket-lightbox-download {
  min-width: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 700;
}

.ticket-lightbox-download {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

@media (max-width: 700px) {
  .ticket-lightbox-dialog {
    width: min(96vw, 96vw);
    padding: 16px 16px 14px;
    border-radius: 22px;
  }

  .ticket-lightbox-stage {
    min-height: 48vh;
  }

  .ticket-lightbox-stage img {
    max-height: 58vh;
  }

  .ticket-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 28px;
    top: auto;
    bottom: 72px;
    transform: none;
  }

  .ticket-lightbox-prev { left: 14px; }
  .ticket-lightbox-next { right: 14px; }

  .ticket-lightbox-toolbar {
    align-items: stretch;
  }

  .ticket-lightbox-file {
    width: 100%;
    font-size: 13px;
  }

  .ticket-lightbox-actions {
    width: 100%;
    justify-content: space-between;
  }
}


/* Ticket system auto reply bubbles */
.ticket-message-system,
.ticket-message-system p,
.ticket-message-system .chat-timestamp,
.ticket-message-system .ticket-author-name,
.ticket-message-system .ticket-author-line {
    color: #f5f7fb;
}

.ticket-message-system {
    background: linear-gradient(135deg, rgba(72,78,90,0.96), rgba(94,100,112,0.92));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
}

.ticket-message-system::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 34%), radial-gradient(circle at bottom left, rgba(255,255,255,0.06), transparent 28%);
    pointer-events: none;
}

.ticket-message-system > * {
    position: relative;
    z-index: 1;
}

.ticket-author-system {
    color: #ffffff;
}

.system-badge {
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.ticket-system-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.ticket-system-link-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a18 0%, #ff4d4d 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(255, 92, 56, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.ticket-system-link-bubble:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(255, 92, 56, 0.28);
    opacity: 0.96;
}

@media (max-width: 640px) {
    .ticket-system-links {
        gap: 8px;
    }

    .ticket-system-link-bubble {
        width: 100%;
        font-size: 12px;
        padding: 10px 12px;
    }
}


/* Ticket image popup refinements */
.ticket-attachment-lightbox-trigger {
  display: inline-flex;
  border-radius: 16px;
  overflow: hidden;
  border: 0;
  background: transparent;
  padding: 0;
}
.ticket-attachment-meta,
.ticket-inline-open-btn,
.ticket-lightbox-file,
.ticket-lightbox-action {
  display: none !important;
}
.ticket-lightbox-toolbar.compact-lens-toolbar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.ticket-lightbox-lens-toggle,
.ticket-lightbox-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.ticket-lightbox-lens-toggle {
  background: rgba(255,255,255,0.10);
  color: #fff;
}
.ticket-lightbox-lens-toggle.active {
  background: linear-gradient(135deg, #ff7a18 0%, #ff4d4d 100%);
}
.ticket-lightbox-stage {
  position: relative;
  cursor: grab;
}
.ticket-lightbox-stage:active {
  cursor: grabbing;
}
.ticket-lightbox-lens {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
  background-repeat: no-repeat;
  background-size: 220%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .12s ease;
}
.ticket-lightbox-lens.is-visible {
  opacity: 1;
}
@media (max-width: 700px) {
  .ticket-lightbox-lens { display: none !important; }
  .ticket-lightbox-toolbar.compact-lens-toolbar {
    justify-content: space-between;
  }
  .ticket-lightbox-lens-toggle {
    font-size: 13px;
    padding: 9px 12px;
  }
}


.ticket-view-flash-box {
  position: relative;
  z-index: 3;
}
.ticket-view-flash-spacer {
  height: 14px;
}
.ticket-view-thread-section .ticket-grid {
  margin-top: 0;
}
.ticket-lightbox-stage {
  touch-action: none;
}
.ticket-lightbox-stage.lens-active {
  cursor: crosshair;
}
.ticket-lightbox-lens {
  width: 180px;
  height: 180px;
  border-radius: 22px;
  background-size: 260%;
}
@media (max-width: 700px) {
  .ticket-view-flash-spacer {
    height: 18px;
  }
}

/* Desktop fix: ticket progress bar was scoped into a mobile media block in previous build */
.ticket-progress-card {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.ticket-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ticket-progress-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.ticket-progress-current {
  font-size: 13px;
  color: #fff;
}
.ticket-progress-bar {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}
.ticket-progress-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1fbf5b, #59d87f);
  box-shadow: 0 0 14px rgba(41, 201, 98, 0.30);
  transition: width .25s ease;
}
.ticket-progress-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.ticket-progress-legend-item {
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  font-weight: 700;
}
.ticket-progress-legend-item.is-active {
  color: #dfffe8;
}
@media (max-width: 768px) {
  .ticket-progress-card {
    padding: 14px;
  }
  .ticket-progress-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
  }
  .ticket-progress-bar {
    height: 12px;
  }
  .ticket-progress-legend {
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
  }
}

.live-notification-tray {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 12000;
    pointer-events: none;
    max-width: min(360px, calc(100vw - 24px));
}
.live-notification-card {
    pointer-events: auto;
    position: relative;
    background: linear-gradient(180deg, rgba(21,24,33,.97), rgba(12,14,20,.97));
    color: #f4f7fb;
    border: 1px solid rgba(255,255,255,.08);
    border-left: 4px solid #32c671;
    border-radius: 16px;
    box-shadow: 0 22px 55px rgba(0,0,0,.32);
    padding: 16px 18px 16px;
    overflow: hidden;
}
.live-notification-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(50,198,113,.18), transparent 42%);
    pointer-events: none;
}
.live-notification-kicker {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.62);
    margin-bottom: 6px;
}
.live-notification-card h4 {
    margin: 0 28px 8px 0;
    font-size: 16px;
    line-height: 1.25;
    color: #fff;
}
.live-notification-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(244,247,251,.88);
}
.live-notification-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-start;
}
.live-notification-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #32c671, #249d59);
    color: #08110b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(50,198,113,.24);
}
.live-notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9);
    cursor: pointer;
    z-index: 1;
}
.live-notification-close:hover {
    background: rgba(255,255,255,.16);
}
@media (max-width: 768px) {
    .live-notification-tray {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
    .live-notification-card {
        border-radius: 14px;
        padding: 14px 16px;
    }
}


.last-seen-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 12px;
    color: #cfd5e6;
}
.inline-danger-form {
    margin-top: 12px;
}
.ghost-btn.danger-btn {
    border-color: rgba(239, 68, 68, 0.35);
    color: #ff9e9e;
    background: rgba(239, 68, 68, 0.08);
}
.ghost-btn.danger-btn:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #ffd3d3;
}

/* ===== Design 2 Redesign Overrides ===== */
:root {
  --d2-bg: #07090d;
  --d2-bg-soft: #0d1118;
  --d2-surface: #101621;
  --d2-surface-2: #151d2b;
  --d2-card: rgba(14, 19, 29, 0.94);
  --d2-card-2: rgba(17, 24, 36, 0.96);
  --d2-line: rgba(255,255,255,0.08);
  --d2-line-strong: rgba(255,255,255,0.14);
  --d2-text: #f8f9fb;
  --d2-soft: #b8c0d0;
  --d2-muted: #8d96a8;
  --d2-red: #ff4a3d;
  --d2-orange: #ff8b2b;
  --d2-pill: linear-gradient(135deg, #ff4a3d, #ff8b2b);
  --d2-hero: linear-gradient(135deg, rgba(5,9,18,.86), rgba(13,19,30,.72));
  --d2-shadow: 0 18px 38px rgba(0,0,0,.34);
  --d2-shadow-lg: 0 30px 70px rgba(0,0,0,.46);
  --radius: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

body,
body.app-body {
  color: var(--d2-text);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 74, 61, 0.15), transparent 23%),
    radial-gradient(circle at 72% 10%, rgba(255, 139, 43, 0.12), transparent 18%),
    linear-gradient(180deg, #07090d 0%, #090d14 35%, #0b1018 100%);
}

.topbar,
.topbar-login {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  padding: 16px 26px;
  background:
    linear-gradient(180deg, rgba(24, 12, 16, 0.88) 0%, rgba(10, 12, 18, 0.80) 100%);
  border-bottom: 1px solid rgba(255, 90, 90, 0.10);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .02em;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
}
.brand::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.02)),
    linear-gradient(135deg, #ff5a4d 0%, #ff7b30 52%, #ff3b6b 100%);
  box-shadow:
    0 14px 28px rgba(255,84,71,.26),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.14);
  display: inline-block;
  position: relative;
}
.brand::after {
  content: "▶";
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-52%);
  width: 16px;
  height: 16px;
  color: #fff;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.22);
  pointer-events: none;
}
.brand span {
  position: relative;
  display: inline-block;
  margin-left: 0;
  color: rgba(255,255,255,.74);
  font-weight: 600;
  letter-spacing: .24em;
  font-size: .68em;
}
.brand span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,90,77,.34), rgba(255,255,255,0));
}

.topbar-right { gap: 10px; }
.profile-chip {
  position: relative;
  padding: 11px 16px 11px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: #f8f9fb;
  box-shadow: var(--d2-shadow);
}
.profile-chip::before {
  content: "👤";
  width: auto;
  height: auto;
  background: none;
  font-size: 14px;
}

.app-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  min-height: calc(100vh - 116px);
  padding: 20px 16px;
  background: linear-gradient(180deg, rgba(8, 11, 17, 0.96), rgba(11, 16, 24, 0.94));
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 28px;
  box-shadow: var(--d2-shadow-lg);
}
.sidebar::before {
  background: radial-gradient(circle at 0% 0%, rgba(255,74,61,.16), transparent 32%);
  opacity: 1;
}
.sidebar > div {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 156px);
}
.sidebar h3 {
  margin: 0 0 14px;
  padding: 0 8px;
  color: rgba(255,255,255,.52);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
}
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px 12px 16px;
  border-radius: 16px;
  color: #cfd6e5;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 600;
  transition: .18s ease;
  overflow: hidden;
}
.nav-links a::after {
  content: "";
  display: none;
}
.nav-links a::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 1px;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.94);
  font-size: 12px;
  line-height: 1;
  flex: 0 0 22px;
}
.nav-links a[href*="dashboard"]::before { content: "⌂"; }
.nav-links a[href*="news"]::before { content: "✦"; }
.nav-links a[href*="my_data"]::before { content: "◉"; }
.nav-links a[href*="installation"]::before { content: "⬇"; }
.nav-links a[href*="apps"]::before { content: "▣"; }
.nav-links a[href*="faq"]::before { content: "?"; }
.nav-links a[href*="orders"]::before { content: "◫"; }
.nav-links a[href*="referrals"]::before,
.nav-links a[href*="bonus"]::before,
.nav-links a[href*="vip_elite"]::before { content: "★"; }
.nav-links a[href*="tickets"]::before { content: "✉"; }
.nav-links a[href*="admin/index"]::before { content: "⚙"; }
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,74,61,.28), rgba(255,139,43,.18));
  border-color: rgba(255,133,80,.18);
  box-shadow: 0 14px 28px rgba(255,84,71,.12);
}
.nav-links a.active::before,
.nav-links a:hover::before {
  background: linear-gradient(135deg, rgba(255,74,61,.82), rgba(255,139,43,.64));
  border-color: rgba(255,255,255,.1);
}

.content {
  max-width: 1460px;
  min-width: 0;
}

.hero-banner,
.admin-hero,
.apps-hero,
.ticket-hero,
.news-hero-banner,
.vip-hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border-radius: 28px;
  padding: 34px 34px 30px;
  background:
    linear-gradient(90deg, rgba(6,10,18,.88) 0%, rgba(8,12,18,.72) 38%, rgba(8,12,18,.18) 100%),
    radial-gradient(circle at 22% 20%, rgba(255,90,73,.20), transparent 22%),
    linear-gradient(135deg, #0c1220, #101926 45%, #1c120e 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--d2-shadow-lg);
}

/* Dashboard Hero – rote Akzente + dezente Animation */
.hero-banner {
  isolation: isolate;
  border: 1px solid rgba(255, 90, 73, .22);
  background:
    radial-gradient(circle at 14% 92%, rgba(255, 86, 52, .16), transparent 26%),
    radial-gradient(circle at 88% 0%, rgba(255, 44, 95, .12), transparent 22%),
    linear-gradient(120deg, #090d16 0%, #0d1120 45%, #14090d 100%);
  box-shadow:
    0 28px 56px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.05),
    inset 0 0 0 1px rgba(255, 72, 72, .04);
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: -10% -6% -12% -6%;
  background:
    radial-gradient(circle at 18% 82%, rgba(255, 92, 56, .14), transparent 20%),
    radial-gradient(circle at 80% 18%, rgba(255, 44, 95, .10), transparent 16%);
  filter: blur(16px);
  opacity: .85;
  animation: dashboardHeroGlowSubtle 16s ease-in-out infinite alternate;
  z-index: 0;
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto 18px 20px auto;
  width: 250px;
  height: 160px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    linear-gradient(145deg, rgba(255, 82, 48, .12), rgba(255, 40, 84, .06) 45%, rgba(10, 14, 24, .72) 100%);
  border: 1px solid rgba(255, 110, 110, .18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 36px rgba(0,0,0,.38),
    0 0 18px rgba(255, 72, 72, .10);
  z-index: 1;
}
.hero-content,
.hero-overlay { position: relative; z-index: 2; }
.hero-overlay {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-banner .hero-overlay::before,
.hero-banner .hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
}
.hero-banner .hero-overlay::before {
  background:
    radial-gradient(circle at 22% 74%, rgba(255, 90, 54, .55) 0, rgba(255,90,54,.16) 4px, transparent 5px),
    radial-gradient(circle at 48% 64%, rgba(255, 78, 78, .38) 0, rgba(255,78,78,.10) 3px, transparent 4px),
    radial-gradient(circle at 72% 38%, rgba(255, 102, 84, .42) 0, rgba(255,102,84,.12) 3px, transparent 4px),
    radial-gradient(circle at 84% 56%, rgba(255, 68, 98, .40) 0, rgba(255,68,98,.10) 3px, transparent 4px);
  opacity: .8;
  animation: dashboardParticlesSubtle 18s linear infinite;
}
.hero-banner .hero-overlay::after {
  inset: auto 0 0 0;
  height: 54%;
  background:
    linear-gradient(180deg, transparent, rgba(255, 70, 50, .03) 70%, rgba(255, 55, 55, .08) 100%),
    radial-gradient(80% 160% at 18% 100%, rgba(255, 92, 58, .12), transparent 60%),
    linear-gradient(90deg,
      rgba(255, 96, 64, .06),
      rgba(255, 68, 68, .05) 20%,
      rgba(255, 58, 70, .03) 52%,
      rgba(255, 104, 62, .07) 76%,
      rgba(255, 46, 84, .08) 100%);
  clip-path: polygon(0% 94%, 14% 88%, 28% 86%, 44% 90%, 58% 95%, 72% 91%, 86% 84%, 100% 76%, 100% 100%, 0% 100%);
  filter: drop-shadow(0 0 8px rgba(255, 92, 60, .18));
  animation: dashboardWaveSubtle 12s ease-in-out infinite alternate;
}

.hero-banner .hero-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 280px;
  bottom: -12px;
  height: 84px;
  background:
    linear-gradient(180deg, transparent 40%, rgba(255, 82, 48, .05) 82%, rgba(255, 60, 60, .08) 100%);
  clip-path: polygon(0% 88%, 16% 82%, 34% 84%, 52% 92%, 72% 88%, 100% 72%, 100% 100%, 0% 100%);
  filter: drop-shadow(0 0 6px rgba(255, 85, 55, .16));
  opacity: .9;
  pointer-events: none;
}

@keyframes dashboardHeroGlowSubtle {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: .72;
  }
  100% {
    transform: translate3d(1.5%, 1%, 0) scale(1.03);
    opacity: .9;
  }
}

@keyframes dashboardWaveSubtle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

@keyframes dashboardParticlesSubtle {
  0% { transform: translateY(0); opacity: .65; }
  50% { transform: translateY(-4px); opacity: .82; }
  100% { transform: translateY(0); opacity: .65; }
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  color: #f2f3f7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-kicker::before {
  content: "▶";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5247, #ff8a2d);
  color: #fff;
  font-size: 9px;
}
.hero-content h1 {
  max-width: 680px;
  margin: 16px 0 10px;
  font-size: clamp(36px, 4vw, 62px);
  line-height: .98;
  letter-spacing: -.04em;
  text-shadow: 0 12px 30px rgba(0,0,0,.38);
}
.hero-content p {
  max-width: 640px;
  color: rgba(245,247,252,.82);
  font-size: 15px;
  line-height: 1.7;
}

.section-block {
  margin-top: 24px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
  color: #f7f8fb;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.section-title::after {
  content: "";
  color: rgba(255,255,255,.42);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.cards { gap: 16px; }
.card,
.dark-card,
.news-hub-card,
.news-feed-card,
.app-card,
.ticket-item,
.ticket-thread,
.order-thread-card,
.summary-card,
.stat-card-premium,
.server-card,
.news-top-card,
.info-box,
.order-form-panel,
.live-notification-card,
.order-card,
.ticket-card,
.shoutbox-shell,
.shoutbox-card,
.appstore-spotlight,
.news-side-card {
  background: linear-gradient(180deg, rgba(15, 20, 29, .98), rgba(11, 16, 24, .98));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 22px;
  box-shadow: var(--d2-shadow);
}
.card,
.dark-card,
.info-box,
.order-form-panel,
.summary-card,
.server-card,
.stat-card-premium { padding: 20px 22px; }
.card h3,
.dark-card h3 { font-size: 18px; }

button,
.small-btn,
button[type="submit"],
.primary-btn,
.action-btn,
.live-notification-action,
.account-order-form button,
.ghost-btn,
.article-open-btn {
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: .18s ease;
}
button,
button[type="submit"],
.primary-btn,
.action-btn,
.live-notification-action,
.account-order-form button,
.article-open-btn {
  background: linear-gradient(135deg, #ff5347, #ff8a2d);
  color: #fff;
  box-shadow: 0 14px 24px rgba(255,83,71,.20);
}
button:hover,
button[type="submit"]:hover,
.primary-btn:hover,
.action-btn:hover,
.live-notification-action:hover,
.account-order-form button:hover,
.article-open-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(255,83,71,.26);
}
.ghost-btn,
.small-btn.ghost,
.live-notification-close {
  background: rgba(255,255,255,.06);
  color: #f8f9fb;
  border-color: rgba(255,255,255,.1);
  box-shadow: none;
}

.success-box,
.error-box {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
}
.success-box {
  background: linear-gradient(135deg, rgba(35,197,94,.16), rgba(35,197,94,.08));
  color: #d9ffe8;
}
.error-box {
  background: linear-gradient(135deg, rgba(239,68,68,.18), rgba(239,68,68,.08));
  color: #ffd8d8;
}

.table-shell,
table,
.users-table,
.orders-table,
.tickets-table {
  background: rgba(10, 14, 21, 0.92);
  color: #eef1f7;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.07);
}
tr th {
  background: rgba(255,255,255,.04);
  color: #f9fafb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
tr td, tr th {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(255,255,255,.02); }

.status-pill,
.rank-badge-inline,
.shoutbox-member-pill,
.admin-special-badge,
.stream-status-chip,
.streaming-type-chip {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.status-pill.status-open { background: rgba(255,255,255,.10); color: #fff; }
.status-pill.status-progress { background: rgba(255,153,77,.22); color: #ffd6ae; }
.status-pill.status-online { background: rgba(35,197,94,.18); color: #d5ffe4; }
.status-pill.status-blue { background: rgba(245,158,11,.20); color: #ffe7b0; border: 1px solid rgba(245,158,11,.28); }
.status-pill.status-sent { background: rgba(59,130,246,.18); color: #d9e9ff; border: 1px solid rgba(59,130,246,.28); }
.status-pill.status-closed { background: rgba(255,86,86,.18); color: #ffd7d7; }
.admin-special-badge {
  background: linear-gradient(135deg, rgba(255,74,61,.92), rgba(255,139,43,.88));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,83,71,.24);
}
.shoutbox-member-pill { background: rgba(255,255,255,.09); color: #dbe3f2; }

.news-top-selector,
.news-hub-grid,
.featured-grid,
.app-grid,
.cards-grid,
.news-grid,
.apps-grid {
  gap: 18px;
}
.news-top-card,
.app-card,
.news-hub-card {
  overflow: hidden;
}
.news-hub-thumb,
.appstore-spotlight,
.showcase-panel,
.showcase-media {
  border-radius: 18px;
}
.news-hub-thumb {
  position: relative;
  min-height: 180px;
}

.tmdb-rating-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(8, 12, 20, 0.82);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 28px rgba(0,0,0,.24);
  backdrop-filter: blur(8px);
}

.tmdb-rating-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #ffd37a;
  font-size: 15px;
  line-height: 1;
}

.tmdb-rating-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tmdb-rating-copy strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.1;
}

.tmdb-rating-copy small {
  color: #c5cfde;
  font-size: 11px;
  line-height: 1.1;
}

.tmdb-rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #ffe0a0;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .tmdb-rating-overlay {
    top: 10px;
    right: 10px;
    padding: 8px 10px;
    gap: 8px;
  }

  .tmdb-rating-copy strong {
    font-size: 14px;
  }

  .tmdb-rating-copy small {
    font-size: 10px;
  }
}
.news-hub-body h3,
.app-card-body h3,
.card h3 {
  letter-spacing: -.02em;
}
.news-hub-meta,
.news-top-copy small,
.muted,
.login-sub,
.hero-content p,
.ticket-meta,
.order-meta,
.meta-row {
  color: #aeb7c8 !important;
}

.ticket-chat-message,
.order-chat-message,
.ticket-bubble,
.order-bubble,
.server-bubble,
.bot-bubble,
.ticket-system-message {
  background: linear-gradient(180deg, rgba(15,20,29,.98), rgba(12,18,28,.98));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
}
.ticket-system-message,
.server-bubble,
.bot-bubble {
  background: linear-gradient(180deg, rgba(29,17,20,.96), rgba(19,13,18,.96));
  border-color: rgba(255,83,71,.18);
}

.shoutbox-shell,
.shoutbox-card,
.shoutbox-feed,
.shoutbox-form-wrap {
  border-radius: 22px;
}

.article-modal-dialog,
.ticket-lightbox-content,
.lightbox-shell {
  background: linear-gradient(180deg, rgba(13,17,24,.98), rgba(9,13,20,.98));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
}
.article-modal-backdrop,
.ticket-lightbox,
.ticket-lightbox-backdrop {
  background: rgba(3,5,8,.84);
  backdrop-filter: blur(12px);
}

.live-notification-card {
  background: linear-gradient(180deg, rgba(15,20,29,.98), rgba(11,16,24,.98));
}
.live-notification-title { color: #fff; }
.live-notification-message { color: #cfd6e5; }

.section-block .card,
.section-block .dark-card {
  overflow: hidden;
}

/* Better shelves for app/news rows */
.news-top-selector,
.cards.four,
.cards.three,
.cards.two {
  align-items: stretch;
}

/* Responsive */
@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .sidebar {
    position: static;
    min-height: auto;
    top: auto;
  }
  .sidebar > div {
    min-height: auto;
  }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .hero-banner::after { display: none; }
}
@media (max-width: 768px) {
  .topbar,
  .topbar-login {
    padding: 14px 16px;
  }
  .brand { font-size: 16px; }
  .brand::before { width: 28px; height: 18px; }
  .brand::after { left: 30px; font-size: 8px; }
  .app-layout { gap: 16px; }
  .sidebar { padding: 14px; border-radius: 22px; }
  .nav-links { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .nav-links a { min-height: 44px; padding: 10px 12px; font-size: 13px; }
  .hero-banner { min-height: 220px; padding: 22px 18px; }
  .hero-content h1 { font-size: 30px; }
  .section-title::after { display: none; }
}

/* Sidebar icon alignment hard fix */
.sidebar .nav-links {
  gap: 10px;
}
.sidebar .nav-links a {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  min-height: 50px;
  padding: 12px 14px;
  overflow: visible !important;
  white-space: normal;
  line-height: 1.2;
}
.sidebar .nav-links a::before {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px;
  min-height: 30px;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  border-radius: 10px;
  overflow: visible;
}
.sidebar .nav-links a {
  font-size: 14px;
}
@media (max-width: 900px) {
  .sidebar .nav-links a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    grid-template-columns: none !important;
    min-height: 44px;
    white-space: nowrap;
  }
  .sidebar .nav-links a::before {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    min-height: 24px;
    font-size: 12px !important;
    border-radius: 8px;
  }
}

/* Final sidebar rebuild fix */
.sidebar {
  width: 272px;
}
.app-layout {
  grid-template-columns: 272px minmax(0, 1fr);
}
.sidebar .nav-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.sidebar .nav-links a {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-height: 54px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow: visible !important;
  text-align: left !important;
  line-height: 1.18 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  grid-template-columns: none !important;
}
.sidebar .nav-links a::before {
  position: static !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  right: auto !important;
  content: "" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.92) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transform: none !important;
}
.sidebar .nav-links a[href*="dashboard"]::before { content: "⌂" !important; }
.sidebar .nav-links a[href*="news"]::before { content: "✦" !important; }
.sidebar .nav-links a[href*="my_data"]::before { content: "◉" !important; }
.sidebar .nav-links a[href*="installation"]::before { content: "⬇" !important; }
.sidebar .nav-links a[href*="apps"]::before { content: "▣" !important; }
.sidebar .nav-links a[href*="faq"]::before { content: "?" !important; }
.sidebar .nav-links a[href*="orders"]::before { content: "◫" !important; }
.sidebar .nav-links a[href*="referrals"]::before,
.sidebar .nav-links a[href*="bonus"]::before,
.sidebar .nav-links a[href*="vip_elite"]::before { content: "★" !important; }
.sidebar .nav-links a[href*="tickets"]::before { content: "✉" !important; }
.sidebar .nav-links a[href*="admin/index"]::before { content: "⚙" !important; }
.sidebar .nav-links a:hover,
.sidebar .nav-links a.active {
  background: linear-gradient(135deg, rgba(255,74,61,.28), rgba(255,139,43,.18)) !important;
  border-color: rgba(255,133,80,.18) !important;
  color: #fff !important;
}
.sidebar .nav-links a:hover::before,
.sidebar .nav-links a.active::before {
  background: linear-gradient(135deg, rgba(255,74,61,.82), rgba(255,139,43,.64)) !important;
  border-color: rgba(255,255,255,.1) !important;
}

@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 1fr !important;
  }
  .sidebar {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .sidebar .nav-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .sidebar .nav-links a {
    min-height: 48px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
  .sidebar .nav-links a::before {
    flex: 0 0 24px !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
  }
}


/* Sidebar menu title refinement */
.sidebar h3 {
  position: relative !important;
  margin: 0 0 16px !important;
  padding: 0 10px 12px 12px !important;
  color: rgba(255,255,255,.72) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
  letter-spacing: .18em !important;
  text-align: left !important;
}
.sidebar h3::after {
  content: "" !important;
  display: block !important;
  margin-top: 10px !important;
  width: 56px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(255,105,70,.9), rgba(255,166,82,.35)) !important;
  box-shadow: 0 0 18px rgba(255,105,70,.22) !important;
}
@media (max-width: 768px) {
  .sidebar h3 {
    margin: 12px 0 14px !important;
    padding: 0 10px 10px 10px !important;
    font-size: 11px !important;
    letter-spacing: .16em !important;
  }
  .sidebar h3::after {
    margin-top: 8px !important;
    width: 46px !important;
  }
}



/* Lucky wheel styles */
.lucky-wheel-section { margin-top: 20px; }
.lucky-wheel-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,185,83,.14), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(229,69,255,.12), transparent 30%),
    linear-gradient(180deg, rgba(22,10,34,.98), rgba(10,13,21,.98));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 56px rgba(0,0,0,.42);
}
.lucky-wheel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255,174,86,.08), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 30%);
  pointer-events: none;
}
.lucky-wheel-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 420px minmax(0,1fr);
  gap: 30px;
  align-items: center;
}
.lucky-wheel-visual {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0 auto;
  filter: drop-shadow(0 26px 44px rgba(0,0,0,.42));
}
.lucky-wheel-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center,
      transparent 0 56%,
      rgba(80,38,7,.96) 56% 60%,
      #f6d784 60% 64%,
      #b9771c 64% 67.5%,
      #ffefb6 67.5% 69.4%,
      #885110 69.4% 72.4%,
      transparent 72.4%);
  pointer-events: none;
  z-index: 1;
}
.lucky-wheel-visual::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 3.5%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 65.5% 6.7%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 79.5% 14.5%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 90% 26%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 96% 40%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 96% 60%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 90% 74%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 79.5% 85.5%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 65.5% 93.3%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 50% 96.5%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 34.5% 93.3%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 20.5% 85.5%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 10% 74%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 4% 60%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 4% 40%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 10% 26%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 20.5% 14.5%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 34.5% 6.7%, rgba(255,245,196,.96) 0 4px, rgba(201,139,49,.98) 4.2px 6.2px, transparent 6.4px);
  opacity: .98;
  pointer-events: none;
  z-index: 2;
}
.lucky-wheel-pointer {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 34px;
  height: 46px;
  transform: translateX(-50%) rotate(-45deg);
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(180deg, #ffe7a0 0%, #f5bf51 48%, #b96f11 100%);
  box-shadow: 0 10px 20px rgba(0,0,0,.34);
  z-index: 15;
}
.lucky-wheel-pointer::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff4f6 0 20%, #ff8dad 35%, #c61e4d 82%, #7d082b 100%);
  box-shadow: 0 0 0 3px rgba(255,236,183,.72);
}
.lucky-wheel-pointer::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.24);
  opacity: .7;
}
.lucky-wheel-rotor {
  position: absolute;
  inset: 34px;
  transition: transform 4.2s cubic-bezier(.12,.82,.18,1);
  will-change: transform;
  z-index: 4;
}
.lucky-wheel-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from -9deg,
      #ef2c2c 0deg 18deg,
      #d88b00 18deg 36deg,
      #39b736 36deg 54deg,
      #1d72ef 54deg 72deg,
      #8f2ce2 72deg 90deg,
      #ef2c2c 90deg 108deg,
      #d88b00 108deg 126deg,
      #39b736 126deg 144deg,
      #1d72ef 144deg 162deg,
      #8f2ce2 162deg 180deg,
      #ef2c2c 180deg 198deg,
      #d88b00 198deg 216deg,
      #39b736 216deg 234deg,
      #1d72ef 234deg 252deg,
      #8f2ce2 252deg 270deg,
      #ef2c2c 270deg 288deg,
      #d88b00 288deg 306deg,
      #39b736 306deg 324deg,
      #1d72ef 324deg 342deg,
      #8f2ce2 342deg 360deg);
  box-shadow:
    inset 0 0 0 5px rgba(255,239,182,.82),
    inset 0 0 0 13px rgba(107,57,9,.92),
    inset 0 0 0 17px rgba(255,219,124,.88),
    0 20px 34px rgba(0,0,0,.34);
}
.lucky-wheel-disc::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -9deg, rgba(80,36,4,.92) 0deg 1.15deg, transparent 1.15deg 18deg),
    repeating-conic-gradient(from -9deg, rgba(255,247,212,.92) 0deg .78deg, transparent .78deg 18deg),
    radial-gradient(circle at center, transparent 0 26%, rgba(255,228,138,.88) 26% 29%, rgba(78,35,0,.94) 29% 33%, transparent 33% 100%);
  opacity: .98;
}
.lucky-wheel-disc::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 6.2%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 64% 10.2%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 77% 20%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 87.6% 34.2%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 93.2% 50%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 87.6% 65.8%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 77% 80%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 64% 89.8%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 50% 93.8%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 36% 89.8%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 23% 80%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 12.4% 65.8%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 6.8% 50%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 12.4% 34.2%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 23% 20%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px),
    radial-gradient(circle at 36% 10.2%, #d5d9e7 0 4px, #6a7488 4.2px 6.2px, transparent 6.4px);
  opacity: .96;
}
.lucky-wheel-center-form {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}
.lucky-wheel-center-form > button.lucky-wheel-center-button {
  position: relative;
  width: 122px;
  height: 122px;
  min-width: 122px;
  max-width: 122px;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  flex: 0 0 122px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  border: 8px solid #8e5710;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.42), transparent 23%),
    radial-gradient(circle at 35% 30%, #fff8d2 0%, #ffe189 34%, #f0ab2d 68%, #c87412 100%);
  color: #5b2104;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow:
    0 18px 28px rgba(0,0,0,.28),
    inset 0 5px 12px rgba(255,255,255,.38),
    inset 0 -8px 18px rgba(120,65,6,.22),
    0 0 0 8px rgba(83,36,3,.34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  cursor: pointer;
  transition: filter .18s ease, box-shadow .18s ease;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
}
.lucky-wheel-center-form > button.lucky-wheel-center-button::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,246,204,.78);
  box-shadow: inset 0 0 0 1px rgba(140,76,6,.28);
  pointer-events: none;
}
.lucky-wheel-center-form > button.lucky-wheel-center-button::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,232,170,.18) 0 55%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.lucky-wheel-center-form > button.lucky-wheel-center-button span {
  position: relative;
  display: block;
  font-size: 29px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(255,255,255,.28);
}
.lucky-wheel-center-form > button.lucky-wheel-center-button:hover {
  filter: brightness(1.04);
  transform: none;
  box-shadow:
    0 18px 30px rgba(0,0,0,.3),
    inset 0 5px 12px rgba(255,255,255,.38),
    inset 0 -8px 18px rgba(120,65,6,.22),
    0 0 0 8px rgba(83,36,3,.34);
}
.lucky-wheel-center-form > button.lucky-wheel-center-button:active {
  filter: brightness(.98);
  transform: none;
}
.lucky-wheel-center-form > button.lucky-wheel-center-button[disabled] {
  opacity: .55;
  cursor: not-allowed;
  filter: saturate(.5);
}
.lucky-wheel-segment-labels {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.lucky-wheel-segment-label {
  --wheel-label-distance: -96px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translate(-50%, -50%) rotate(var(--segment-rotation)) translateY(var(--wheel-label-distance)) rotate(90deg);
  transform-origin: center center;
  text-align: center;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
  font-weight: 1000;
  color: #fff9de;
  text-shadow: 0 2px 6px rgba(0,0,0,.92), 0 0 4px rgba(0,0,0,.52);
  -webkit-text-stroke: .4px rgba(92,39,4,.62);
  letter-spacing: -.02em;
}
.lucky-wheel-info h2 { margin: 0 0 10px; font-size: 30px; }
.lucky-wheel-info p { margin: 0 0 16px; color: #d1d7e5; line-height: 1.65; }
.lucky-wheel-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.lucky-wheel-meta-pill { padding: 10px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #f1f4fb; font-size: 13px; font-weight: 700; }
.lucky-wheel-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lucky-wheel-result { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.lucky-wheel-countdown { font-weight: 800; color: #ffe2a0; }
.lucky-wheel-prizes { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 10px; margin-top: 18px; }
.lucky-wheel-prize-card { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.lucky-wheel-prize-card strong { display: block; color: #fff; margin-bottom: 4px; }
.lucky-wheel-prize-card span { color: #aeb7c8; font-size: 12px; }
.lucky-wheel-history-toggle { margin-top: 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.lucky-wheel-history-toggle summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 800; color: #fff; }
.lucky-wheel-history-toggle summary::-webkit-details-marker { display: none; }
.lucky-wheel-history-toggle summary::after { content:'▾'; float:right; color:#ffd8b4; transition: transform .18s ease; }
.lucky-wheel-history-toggle[open] summary::after { transform: rotate(180deg); }
.lucky-wheel-history-list { padding: 0 16px 16px; display: grid; gap: 10px; }
.lucky-wheel-history-item { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:12px 14px; border-radius:14px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.05); }
.lucky-wheel-history-item strong { color:#fff; }
.lucky-wheel-history-item span { color:#aeb7c8; font-size:12px; white-space:nowrap; }
@media (max-width: 1100px) {
  .lucky-wheel-layout { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .lucky-wheel-card { padding: 24px 18px; }
  .lucky-wheel-visual { width: 320px; height: 320px; }
  .lucky-wheel-rotor { inset: 30px; }
  .lucky-wheel-center-form > button.lucky-wheel-center-button { width: 102px; height: 102px; min-width: 102px; max-width: 102px; flex-basis: 102px; border-width: 7px; }
  .lucky-wheel-center-form > button.lucky-wheel-center-button span { font-size: 24px; }
  .lucky-wheel-segment-label { --wheel-label-distance: -82px; width: 58px; height: 17px; font-size: 9.5px; }
}
@media (max-width: 420px) {
  .lucky-wheel-visual { width: 292px; height: 292px; }
  .lucky-wheel-rotor { inset: 28px; }
  .lucky-wheel-center-form > button.lucky-wheel-center-button { width: 96px; height: 96px; min-width: 96px; max-width: 96px; flex-basis: 96px; }
  .lucky-wheel-center-form > button.lucky-wheel-center-button span { font-size: 22px; }
  .lucky-wheel-segment-label { --wheel-label-distance: -74px; width: 52px; height: 16px; font-size: 8.5px; }
}
.order-discount-box { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.order-discount-box label { display:block; margin-bottom:8px; }
.order-discount-box select { width:100%; }

.wheel-popup-open { overflow: hidden; }
.wheel-result-popup { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s ease; z-index: 2200; }
.wheel-result-popup.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.wheel-result-popup-backdrop { position: absolute; inset: 0; background: rgba(6,8,14,.76); backdrop-filter: blur(6px); }
.wheel-result-popup-dialog { position: relative; width: min(100%, 480px); padding: 30px 28px 26px; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, rgba(18,24,37,.98), rgba(10,13,21,.98)); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 28px 70px rgba(0,0,0,.42); text-align: center; z-index: 1; }
.wheel-result-popup-dialog.is-win::before { content:''; position:absolute; inset:-20% -10% auto -10%; height:240px; background: radial-gradient(circle at top, rgba(255,138,45,.30), transparent 58%); pointer-events:none; }
.wheel-result-popup-dialog.is-blank::before { content:''; position:absolute; inset:-20% -10% auto -10%; height:220px; background: radial-gradient(circle at top, rgba(118,82,255,.18), transparent 58%); pointer-events:none; }
.wheel-result-popup-close { position:absolute; top:12px; right:12px; width:38px; height:38px; border:0; border-radius:50%; background:rgba(255,255,255,.08); color:#fff; font-size:24px; line-height:1; cursor:pointer; z-index:2; }
.wheel-result-popup-kicker { position: relative; z-index: 1; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #ffcf9f; }
.wheel-result-popup-dialog h3 { position: relative; z-index: 1; margin: 0; font-size: 30px; color: #fff; }
.wheel-result-popup-prize { position: relative; z-index: 1; margin: 14px 0 10px; font-size: 32px; font-weight: 900; color: #fff; }
.wheel-result-popup-text { position: relative; z-index: 1; margin: 0 0 22px; color: #c5cedd; line-height: 1.65; }
.wheel-result-popup-button { position: relative; z-index: 1; min-height: 48px; padding: 0 22px; border: 0; border-radius: 16px; background: linear-gradient(135deg,#ff5a4e,#ff8a2d); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 18px 30px rgba(255,90,78,.24); }
.wheel-result-fireworks { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.wheel-result-fireworks::before, .wheel-result-fireworks::after { content:''; position:absolute; width:10px; height:10px; border-radius:50%; top:26%; left:24%; box-shadow: 0 0 0 0 rgba(255,90,78,.95), 22px -12px 0 0 rgba(255,179,71,.95), -26px -18px 0 0 rgba(45,197,255,.95), 28px 18px 0 0 rgba(118,82,255,.95), -20px 22px 0 0 rgba(255,90,78,.9), 4px 34px 0 0 rgba(255,179,71,.88), -4px -34px 0 0 rgba(45,197,255,.88); animation: wheel-firework-burst 1.8s ease-out infinite; opacity: 0; }
.wheel-result-fireworks::after { top:34%; left:auto; right:24%; animation-delay: .55s; }
.wheel-result-popup-dialog.is-blank .wheel-result-fireworks { display:none; }
@keyframes wheel-firework-burst {
  0% { transform: scale(.2); opacity: 0; }
  12% { opacity: 1; }
  55% { transform: scale(1); opacity: .95; }
  100% { transform: scale(1.32); opacity: 0; }
}
.live-notification-card.live-notification-type-lucky_wheel_ready,
.live-notification-card.live-notification-type-lucky-wheel-ready,
.live-notification-card.live-notification-type-lucky_wheel_reward,
.live-notification-card.live-notification-type-bonus_reward,
.live-notification-card.live-notification-type-bonus_manual,
.live-notification-card.live-notification-type-bonus_startbonus {
  border-left-color: #ff8a2d;
}
.live-notification-card.live-notification-type-lucky_wheel_ready::after,
.live-notification-card.live-notification-type-lucky-wheel-ready::after,
.live-notification-card.live-notification-type-lucky_wheel_reward::after,
.live-notification-card.live-notification-type-bonus_reward::after,
.live-notification-card.live-notification-type-bonus_manual::after,
.live-notification-card.live-notification-type-bonus_startbonus::after {
  background: radial-gradient(circle at top right, rgba(255,138,43,.22), transparent 42%);
}
.live-notification-card.live-notification-type-lucky_wheel_ready .live-notification-btn,
.live-notification-card.live-notification-type-lucky-wheel-ready .live-notification-btn,
.live-notification-card.live-notification-type-lucky_wheel_reward .live-notification-btn,
.live-notification-card.live-notification-type-bonus_reward .live-notification-btn,
.live-notification-card.live-notification-type-bonus_manual .live-notification-btn,
.live-notification-card.live-notification-type-bonus_startbonus .live-notification-btn {
  background: linear-gradient(135deg, #ff8a2d, #ff5a4e);
  color: #fff;
}
@media (max-width: 980px) {
  .lucky-wheel-layout { grid-template-columns: 1fr; }
  .lucky-wheel-visual { width: 292px; height: 292px; }
  .lucky-wheel-center-button { width: 96px; height: 96px; border-width: 7px; }
  .lucky-wheel-center-form > button.lucky-wheel-center-button span { font-size: 22px; }
  .lucky-wheel-segment-label { --wheel-label-distance: -74px; width: 52px; height: 16px; font-size: 8.5px; }
}

.login-updates-dialog {
  max-width: 760px;
}
.login-updates-body {
  max-height: 68vh;
  overflow: auto;
  padding-right: 4px;
}
.login-updates-intro {
  margin: 0 0 16px;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
}
.login-updates-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.login-updates-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.login-updates-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.login-updates-count,
.login-update-date,
.login-update-kicker {
  font-size: 12px;
  color: rgba(255,255,255,.62);
}
.login-updates-list {
  display: grid;
  gap: 12px;
}
.login-update-item {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.login-update-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.login-update-item h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.login-update-item p {
  margin: 0;
  color: rgba(255,255,255,.84);
  line-height: 1.58;
}
.changelog-admin-panel {
  display: grid;
  gap: 18px;
}
.changelog-admin-list {
  margin-top: 6px;
}
.changelog-item {
  align-items: flex-start;
}
@media (max-width: 720px) {
  .login-updates-dialog {
    margin: 3vh 12px 0;
    padding: 18px;
  }
  .login-updates-section-head,
  .login-update-top {
    flex-direction: column;
    align-items: flex-start;
  }
}


.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.payment-method-grid-change {
  margin: 10px 0 14px;
}

.payment-method-form {
  margin: 0;
}

.payment-method-btn,
.payment-method-link {
  width: 100%;
}

.payment-method-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
}

.payment-method-link {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}

.payment-method-link.active {
  border-color: rgba(229,9,20,0.45);
  background: rgba(229,9,20,0.16);
  color: #fff1f2;
}

.payment-request-box-inline-chat {
  margin-top: 16px;
  margin-bottom: 0;
  padding: 14px 16px;
  border-radius: 20px;
}

.payment-request-box-inline-chat .payment-highlight-grid {
  margin-bottom: 14px;
}

.payment-method-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 360px;
}

.payment-method-btn-compact,
.payment-method-link-compact,
.payment-confirm-btn-compact {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 13px;
  font-size: 0.92rem;
}

.payment-confirm-btn-compact {
  margin-top: 4px;
}

.order-chat-inline-note-muted {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

.order-chat-inline-note-muted strong {
  display: block;
  margin-bottom: 6px;
}

.order-chat-inline-note-muted p {
  margin: 0;
  color: #d3dae6;
}

@media (max-width: 760px) {
  .payment-request-box-inline-chat .payment-method-grid-compact {
    max-width: none;
  }
}

.payment-transfer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.payment-qr-card {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

.payment-qr-image {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  background: #fff;
}

@media (max-width: 760px) {
  .payment-method-grid,
  .payment-transfer-grid {
    grid-template-columns: 1fr;
  }
}

/* Force green highlight for transfer payment confirmation button */
.payment-confirm-form .payment-confirm-btn.payment-confirm-btn-green,
button.payment-confirm-btn.payment-confirm-btn-green,
button[type="submit"].payment-confirm-btn.payment-confirm-btn-green {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  border: 1px solid rgba(34,197,94,0.34) !important;
  box-shadow: 0 16px 30px rgba(34,197,94,0.28) !important;
  color: #f0fdf4 !important;
}

.payment-confirm-form .payment-confirm-btn.payment-confirm-btn-green:hover,
button.payment-confirm-btn.payment-confirm-btn-green:hover,
button[type="submit"].payment-confirm-btn.payment-confirm-btn-green:hover {
  background: linear-gradient(135deg, #15803d, #16a34a) !important;
  box-shadow: 0 18px 34px rgba(34,197,94,0.34) !important;
  filter: none;
}

/* Order chat redesign */
.mobile-chat-tabs {
  display: none;
  gap: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-chat-tabs::-webkit-scrollbar {
  display: none;
}

.mobile-chat-tab {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.88);
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.mobile-chat-tab.is-active {
  background: linear-gradient(135deg, rgba(229,9,20,0.92), rgba(255,122,24,0.92));
  border-color: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: 0 16px 32px rgba(229,9,20,0.24);
}

.mobile-chat-tab:active {
  transform: translateY(1px);
}

.order-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.order-chat-panel {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.order-chat-sidebar {
  grid-column: 2;
  grid-row: 1;
}

.order-chat-details-panel {
  grid-column: 2;
  grid-row: 2;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(79,70,229,0.10), transparent 28%),
    linear-gradient(180deg, rgba(16,19,28,0.98), rgba(12,15,22,0.98));
}

.order-chat-details-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.chat-detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.chat-detail-item-accent {
  background:
    radial-gradient(circle at top right, rgba(229,9,20,0.12), transparent 36%),
    linear-gradient(135deg, rgba(36,18,24,0.95), rgba(21,23,34,0.95));
}

.chat-detail-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,0.55);
}

.chat-detail-value {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255,255,255,0.96);
  white-space: pre-wrap;
}

.order-chat-panel .ticket-message,
.ticket-chat-layout .ticket-message {
  padding: 0;
  border-bottom: none;
}


.order-chat-panel,
.order-chat-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.order-chat-details-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.order-chat-panel {
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(79,70,229,0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(229,9,20,0.10), transparent 24%),
    linear-gradient(180deg, rgba(16,19,28,0.98), rgba(8,11,18,0.98));
}

.order-chat-sidebar {
  position: sticky;
  top: 94px;
  gap: 0;
  max-height: calc(100vh - 120px);
  background:
    radial-gradient(circle at top right, rgba(229,9,20,0.10), transparent 26%),
    linear-gradient(180deg, rgba(16,19,28,0.98), rgba(12,15,22,0.98));
}

.order-chat-panel-head,
.order-chat-sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.order-chat-panel-head h3,
.order-chat-sidebar-head h3 {
  margin: 4px 0 0;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.order-chat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.54);
}

.order-chat-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff602d, #e50914);
  box-shadow: 0 0 0 6px rgba(229,9,20,0.10);
}

.order-chat-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.order-chat-summary-pill,
.order-chat-sidebar-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 800;
}

.order-chat-summary-pill-status.status-open,
.order-chat-summary-pill-status.status-blue,
.order-chat-summary-pill-status.status-sent,
.order-chat-summary-pill-status.status-progress,
.order-chat-summary-pill-status.status-online,
.order-chat-summary-pill-status.status-closed,
.order-chat-sidebar-status.status-open,
.order-chat-sidebar-status.status-blue,
.order-chat-sidebar-status.status-sent,
.order-chat-sidebar-status.status-progress,
.order-chat-sidebar-status.status-online,
.order-chat-sidebar-status.status-closed {
  padding-left: 12px;
}

.order-chat-summary-pill-status.status-blue,
.order-chat-sidebar-status.status-blue {
  background: rgba(245,158,11,0.20);
  color: #ffe7b0;
  border: 1px solid rgba(245,158,11,0.28);
}

.order-chat-summary-pill-status.status-sent,
.order-chat-sidebar-status.status-sent {
  background: rgba(59,130,246,0.18);
  color: #d9e9ff;
  border: 1px solid rgba(59,130,246,0.28);
}

.order-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 420px;
  max-height: 68vh;
  padding: 22px;
  overflow-y: auto;
  scroll-behavior: smooth;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.005)),
    linear-gradient(180deg, rgba(5,8,14,0.16), rgba(5,8,14,0.02));
}

.order-chat-row {
  display: flex;
  width: 100%;
}

.order-chat-row-user {
  justify-content: flex-start;
}

.order-chat-row-admin {
  justify-content: flex-end;
}

.order-chat-bubble {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  width: min(100%, 82%);
  margin: 0;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
  border-bottom: none;
}

.order-chat-row-system {
  justify-content: center;
}

.order-chat-bubble::before {
  content: "";
  position: absolute;
  bottom: 14px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  transform: rotate(45deg);
  background: inherit;
  border: inherit;
  z-index: 0;
}

.order-chat-row-user .order-chat-bubble::before {
  left: -6px;
  border-top: 0;
  border-right: 0;
}

.order-chat-row-admin .order-chat-bubble::before {
  right: -6px;
  border-bottom: 0;
  border-left: 0;
}

.order-chat-bubble > * {
  position: relative;
  z-index: 1;
}

.order-chat-bubble-head {
  align-items: flex-start;
  margin-bottom: 2px;
}

.order-chat-row-admin .order-chat-bubble-head {
  flex-direction: row-reverse;
}

.order-chat-row-admin .ticket-author-line {
  justify-content: flex-end;
}

.order-chat-row-admin .chat-timestamp {
  text-align: right;
}

.order-chat-bubble.ticket-message-user {
  border-left: none;
  background:
    radial-gradient(circle at top left, rgba(79,70,229,0.18), transparent 38%),
    linear-gradient(135deg, rgba(18,28,48,0.96), rgba(22,26,40,0.96));
}

.order-chat-bubble.ticket-message-admin {
  border-left: none;
  background:
    radial-gradient(circle at top right, rgba(255,122,24,0.20), transparent 34%),
    linear-gradient(135deg, rgba(64,16,22,0.96), rgba(28,20,36,0.96));
}

.order-chat-bubble p {
  margin: 10px 0 0;
  white-space: pre-wrap;
}

.order-chat-sidebar-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  overflow-y: auto;
}

.order-chat-compose-form,
.order-chat-admin-form {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.order-chat-compose-form {
  position: sticky;
  bottom: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.order-chat-compose-form .chat-compose-subheading {
  margin-top: 0;
}
.order-chat-panel-compose {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}

.order-chat-panel-compose .order-chat-compose-form,
.order-chat-panel-compose .order-chat-inline-note {
  margin-top: 16px;
}

.order-chat-compose-form-inline {
  position: static;
  bottom: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.order-chat-inline-note {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}


.order-chat-compose-form label,
.order-chat-admin-form label {
  display: block;
  margin-bottom: 8px;
}

.order-chat-compose-form button,
.order-chat-admin-form button,
.order-chat-admin-form select,
.order-chat-admin-form input {
  width: 100%;
}

.order-chat-admin-form.inline-danger-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.order-chat-admin-form.inline-danger-form .danger-btn {
  width: 100%;
}

.order-chat-sidebar .success-box,
.order-chat-sidebar .error-box,
.order-chat-sidebar .payment-request-box {
  margin-bottom: 0;
}

.order-chat-thread::-webkit-scrollbar,
.order-chat-sidebar-body::-webkit-scrollbar {
  width: 10px;
}

.order-chat-thread::-webkit-scrollbar-thumb,
.order-chat-sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}



.ticket-chat-layout .order-chat-thread {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005)),
    radial-gradient(circle at top, rgba(229,9,20,0.06), transparent 32%),
    linear-gradient(180deg, rgba(5,8,14,0.16), rgba(5,8,14,0.02));
}

.ticket-chat-bubble.ticket-message-user {
  background:
    radial-gradient(circle at top left, rgba(79,70,229,0.20), transparent 36%),
    linear-gradient(135deg, rgba(15,29,46,0.96), rgba(20,24,36,0.96));
}

.ticket-chat-bubble.ticket-message-admin {
  background:
    radial-gradient(circle at top right, rgba(255,122,24,0.22), transparent 34%),
    linear-gradient(135deg, rgba(64,18,24,0.96), rgba(30,20,36,0.96));
}

.ticket-chat-system-bubble {
  width: min(100%, 88%);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.12), transparent 34%),
    linear-gradient(135deg, rgba(72,78,90,0.98), rgba(94,100,112,0.96));
  border: 1px solid rgba(255,255,255,0.14);
}

.order-chat-row-system .order-chat-bubble::before {
  display: none;
}

.ticket-chat-system-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ticket-progress-card-compact {
  margin-bottom: 0;
}

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

  .order-chat-panel,
  .order-chat-sidebar,
  .order-chat-details-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .order-chat-sidebar,
  .order-chat-details-panel {
    position: static;
    max-height: none;
  }

  .order-chat-thread {
    max-height: 56vh;
  }
}

@media (max-width: 700px) {
  .mobile-chat-tabs {
    display: flex;
  }

  .mobile-tab-pane {
    display: none !important;
  }

  .mobile-tab-pane.is-active {
    display: flex !important;
  }

  .order-chat-panel,
  .order-chat-sidebar,
  .order-chat-details-panel {
    border-radius: 24px;
  }

  .order-chat-panel-head,
  .order-chat-sidebar-head {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 18px 16px;
  }

  .order-chat-summary {
    justify-content: flex-start;
  }

  .order-chat-thread {
    min-height: 50vh;
    max-height: none;
    padding: 16px;
  }
  .order-chat-panel-compose {
    padding: 0 16px 16px;
  }


  .order-chat-bubble {
    width: min(100%, 92%);
    padding: 14px 15px;
    border-radius: 20px;
  }

  .ticket-chat-system-bubble {
    width: 100%;
  }

  .order-chat-bubble-head,
  .order-chat-row-admin .order-chat-bubble-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .order-chat-row-admin .ticket-author-line,
  .order-chat-row-admin .chat-timestamp {
    justify-content: flex-start;
    text-align: left;
  }

  .order-chat-sidebar-body,
  .order-chat-details-body {
    padding: 14px;
  }

  .order-chat-compose-form {
    position: static;
  }
}


/* refinements: order/ticket chat fixes */
.order-chat-bubble,
.ticket-chat-bubble,
.order-chat-bubble p,
.ticket-chat-bubble p,
.ticket-author-line,
.ticket-author-name,
.chat-timestamp,
.message-rank-badge,
.ticket-system-link-bubble,
.chat-detail-value {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.order-chat-bubble p,
.ticket-chat-bubble p {
  line-height: 1.55;
}

.ticket-author-line {
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-chat-layout .order-chat-bubble,
.ticket-chat-layout .ticket-chat-bubble {
  max-width: min(100%, 84%);
}

.ticket-chat-layout .ticket-chat-system-bubble {
  max-width: min(100%, 92%);
}

.order-chat-compose-form-order {
  position: static;
  margin-top: 2px;
}

.order-chat-sidebar-body {
  padding-bottom: 22px;
}

.order-chat-sidebar-body > .payment-request-box + .order-chat-compose-form-order {
  margin-top: 6px;
}

@media (max-width: 700px) {
  .ticket-chat-layout .order-chat-bubble,
  .ticket-chat-layout .ticket-chat-bubble,
  .order-chat-bubble,
  .ticket-chat-bubble {
    width: 100%;
    max-width: 100%;
  }

  .ticket-chat-layout .order-chat-thread {
    gap: 12px;
  }
}

.order-chat-row, .order-chat-panel, .order-chat-sidebar, .ticket-chat-layout .order-chat-thread { min-width: 0; }


/* 2026-04-14: cleaner ticket bubbles + mobile stacking without tabs */
.ticket-chat-layout .order-chat-thread {
  gap: 16px;
  padding: 20px;
}

.ticket-chat-layout .order-chat-bubble,
.ticket-chat-layout .ticket-chat-bubble {
  width: auto;
  max-width: min(100%, 76%);
  padding: 15px 16px;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.20);
}

.ticket-chat-layout .order-chat-row-user .order-chat-bubble,
.ticket-chat-layout .order-chat-row-user .ticket-chat-bubble {
  border-top-left-radius: 10px;
}

.ticket-chat-layout .order-chat-row-admin .order-chat-bubble,
.ticket-chat-layout .order-chat-row-admin .ticket-chat-bubble {
  border-top-right-radius: 10px;
}

.ticket-chat-layout .ticket-chat-system-bubble {
  width: min(100%, 88%);
  max-width: min(100%, 88%);
  border-radius: 20px;
}

.ticket-chat-layout .order-chat-bubble::before,
.ticket-chat-layout .ticket-chat-bubble::before {
  display: none;
}

.ticket-chat-layout .order-chat-bubble-head,
.ticket-chat-layout .ticket-chat-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 10px;
}

.ticket-chat-layout .order-chat-row-admin .order-chat-bubble-head,
.ticket-chat-layout .order-chat-row-admin .ticket-chat-head {
  align-items: flex-end;
}

.ticket-chat-layout .ticket-author-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  width: 100%;
}

.ticket-chat-layout .order-chat-row-admin .ticket-author-line {
  justify-content: flex-end;
}

.ticket-chat-layout .ticket-author-name {
  max-width: 100%;
  line-height: 1.2;
}

.ticket-chat-layout .chat-timestamp {
  display: block;
  max-width: 100%;
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(223,230,243,0.62);
}

.ticket-chat-layout .order-chat-bubble p,
.ticket-chat-layout .ticket-chat-bubble p {
  margin: 0;
  line-height: 1.5;
}

.ticket-chat-layout .message-rank-badge,
.ticket-chat-layout .ticket-level-badge,
.ticket-chat-layout .admin-rank-pill {
  max-width: 100%;
}

@media (max-width: 700px) {
  .mobile-chat-tabs {
    display: none !important;
  }

  .mobile-tab-pane,
  .mobile-tab-pane.is-active,
  .order-chat-panel,
  .order-chat-sidebar,
  .order-chat-details-panel {
    display: flex !important;
  }

  .order-chat-layout,
  .ticket-chat-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .order-chat-panel,
  .order-chat-sidebar,
  .order-chat-details-panel {
    grid-column: auto;
    grid-row: auto;
    border-radius: 22px;
  }

  .order-chat-thread,
  .ticket-chat-layout .order-chat-thread {
    min-height: 0;
    max-height: none;
    padding: 14px;
    gap: 12px;
  }
  .order-chat-panel-compose {
    padding: 0 14px 14px;
  }


  .order-chat-bubble,
  .ticket-chat-bubble,
  .ticket-chat-layout .order-chat-bubble,
  .ticket-chat-layout .ticket-chat-bubble,
  .ticket-chat-layout .ticket-chat-system-bubble {
    width: 100%;
    max-width: 100%;
  }

  .ticket-chat-layout .order-chat-bubble-head,
  .ticket-chat-layout .ticket-chat-head,
  .order-chat-bubble-head,
  .order-chat-row-admin .order-chat-bubble-head {
    align-items: flex-start;
    text-align: left;
  }

  .ticket-chat-layout .order-chat-row-admin .ticket-author-line,
  .ticket-chat-layout .order-chat-row-admin .chat-timestamp,
  .order-chat-row-admin .ticket-author-line,
  .order-chat-row-admin .chat-timestamp {
    justify-content: flex-start;
    text-align: left;
  }

  .order-chat-sidebar,
  .order-chat-details-panel {
    position: static;
    max-height: none;
  }
}

/* 2026-04-14: final mobile/order chat polish */
.order-chat-layout:not(.ticket-chat-layout) .order-chat-bubble {
  width: auto;
  max-width: min(100%, 76%);
  padding: 15px 16px;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.20);
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-user .order-chat-bubble {
  border-top-left-radius: 10px;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-admin .order-chat-bubble {
  border-top-right-radius: 10px;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-bubble::before {
  display: none;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-bubble-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 10px;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-admin .order-chat-bubble-head {
  align-items: flex-end;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-admin .ticket-author-line {
  justify-content: flex-end;
}

.order-chat-layout:not(.ticket-chat-layout) .chat-timestamp {
  display: block;
  max-width: 100%;
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(223,230,243,0.62);
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-bubble p {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .order-chat-layout,
  .ticket-chat-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .order-chat-panel,
  .order-chat-sidebar,
  .order-chat-details-panel {
    border-radius: 20px;
    overflow: hidden;
  }

  .order-chat-layout:not(.ticket-chat-layout) .order-chat-details-panel {
    display: none !important;
  }

  .order-chat-panel-head,
  .order-chat-sidebar-head {
    padding: 16px 16px 14px;
    gap: 12px;
  }

  .order-chat-panel-head h3,
  .order-chat-sidebar-head h3 {
    margin-top: 2px;
    font-size: 20px;
    line-height: 1.1;
  }

  .order-chat-summary,
  .order-chat-panel-head .order-chat-summary {
    gap: 6px;
  }

  .order-chat-summary-pill,
  .order-chat-sidebar-status {
    padding: 8px 10px;
    font-size: 11px;
  }

  .order-chat-thread,
  .ticket-chat-layout .order-chat-thread {
    min-height: 0;
    max-height: none;
    padding: 14px 12px;
    gap: 10px;
  }

  .order-chat-row,
  .ticket-chat-layout .order-chat-row {
    width: 100%;
  }

  .order-chat-bubble,
  .ticket-chat-bubble,
  .ticket-chat-layout .order-chat-bubble,
  .ticket-chat-layout .ticket-chat-bubble,
  .ticket-chat-layout .ticket-chat-system-bubble,
  .order-chat-layout:not(.ticket-chat-layout) .order-chat-bubble {
    width: auto;
    max-width: calc(100% - 26px);
    padding: 12px 13px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  }

  .order-chat-row-user .order-chat-bubble,
  .ticket-chat-layout .order-chat-row-user .order-chat-bubble,
  .ticket-chat-layout .order-chat-row-user .ticket-chat-bubble {
    margin-right: auto;
    border-top-left-radius: 9px;
  }

  .order-chat-row-admin .order-chat-bubble,
  .ticket-chat-layout .order-chat-row-admin .order-chat-bubble,
  .ticket-chat-layout .order-chat-row-admin .ticket-chat-bubble {
    margin-left: auto;
    border-top-right-radius: 9px;
  }

  .order-chat-row-system .order-chat-bubble,
  .ticket-chat-layout .order-chat-row-system .order-chat-bubble,
  .ticket-chat-layout .order-chat-row-system .ticket-chat-system-bubble {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 16px;
  }

  .order-chat-bubble-head,
  .ticket-chat-layout .order-chat-bubble-head,
  .ticket-chat-layout .ticket-chat-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 5px;
    margin-bottom: 8px;
    text-align: left;
  }

  .ticket-author-line,
  .order-chat-row-admin .ticket-author-line,
  .ticket-chat-layout .order-chat-row-admin .ticket-author-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start !important;
    gap: 6px;
    width: 100%;
    min-width: 0;
  }

  .ticket-author-name,
  .ticket-chat-layout .ticket-author-name {
    font-size: 14px;
    line-height: 1.2;
    min-width: 0;
    max-width: 100%;
  }

  .message-rank-badge,
  .ticket-level-badge,
  .admin-special-badge,
  .ticket-chat-layout .message-rank-badge,
  .ticket-chat-layout .ticket-level-badge,
  .ticket-chat-layout .admin-special-badge {
    padding: 5px 8px;
    font-size: 9px;
    letter-spacing: .05em;
    max-width: 100%;
  }

  .admin-special-badge-dot {
    width: 7px;
    height: 7px;
  }

  .chat-timestamp,
  .order-chat-row-admin .chat-timestamp,
  .ticket-chat-layout .order-chat-row-admin .chat-timestamp,
  .ticket-chat-layout .chat-timestamp {
    display: block;
    width: 100%;
    font-size: 10px;
    line-height: 1.2;
    text-align: left !important;
    color: rgba(223,230,243,0.58);
  }

  .order-chat-bubble p,
  .ticket-chat-bubble p,
  .ticket-chat-layout .order-chat-bubble p,
  .ticket-chat-layout .ticket-chat-bubble p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .order-chat-sidebar-body,
  .order-chat-details-body {
    padding: 12px;
    gap: 12px;
  }

  .order-chat-compose-form,
  .order-chat-admin-form,
  .payment-request-box,
  .chat-detail-item {
    padding: 14px;
    border-radius: 18px;
  }

  .payment-method-grid,
  .payment-transfer-grid,
  .payment-highlight-grid {
    gap: 10px;
  }

  .payment-transfer-grid {
    grid-template-columns: 1fr;
  }

  .payment-qr-card {
    max-width: 240px;
    margin: 0 auto;
  }

  .order-chat-compose-form button,
  .order-chat-admin-form button,
  .payment-method-btn,
  .payment-method-link,
  .payment-confirm-btn {
    min-height: 48px;
  }

  .payment-method-btn-compact,
  .payment-method-link-compact,
  .payment-confirm-btn-compact {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.88rem;
  }
}


.order-discount-box {
  overflow: visible;
}

.order-discount-box label {
  font-weight: 700;
  color: #fff;
}

.order-discount-box select {
  display: block;
  width: 100%;
  min-height: 56px;
  padding-right: 64px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background-position:
    calc(100% - 24px) calc(50% - 3px),
    calc(100% - 18px) calc(50% - 3px),
    0 0;
  font-weight: 600;
  line-height: 1.35;
}

.order-discount-hint {
  margin: 10px 0 0;
  color: #aeb7c8;
  font-size: 12px;
  line-height: 1.5;
}

.order-ticket-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  box-shadow: 0 14px 32px rgba(0,0,0,0.24);
}

.order-ticket-card:first-of-type {
  margin-top: 18px;
}

.order-ticket-card:hover {
  border-color: rgba(229,9,20,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
}

.order-ticket-card-activated {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
}

.order-ticket-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.order-ticket-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-ticket-title {
  font-size: 18px;
  line-height: 1.2;
}

.order-ticket-subtitle {
  color: #c3cede;
  font-size: 14px;
  font-weight: 600;
}

.order-ticket-chips {
  margin-top: 0;
}

.order-ticket-chips .meta-chip {
  min-height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
}

.order-ticket-actions {
  margin-top: 14px;
}

.archived-orders-list {
  padding: 8px 18px 14px;
  display: grid;
  gap: 12px;
}

.archived-orders-list .ticket-list-item {
  margin-top: 0;
}

@media (max-width: 700px) {
  .order-discount-box {
    padding: 14px;
    border-radius: 16px;
  }

  .order-discount-box select {
    min-height: 54px;
    padding-right: 60px;
    font-size: 13px;
  }

  .order-section-head {
    align-items: stretch;
  }

  .status-count-badge {
    align-self: flex-start;
  }

  .order-ticket-card {
    padding: 16px;
    border-radius: 18px;
  }

  .order-ticket-title {
    font-size: 16px;
  }

  .order-ticket-subtitle {
    font-size: 13px;
  }

  .order-ticket-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-ticket-head .status-pill {
    align-self: flex-start;
  }

  .order-ticket-chips .meta-chip {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
  }
}


/* Lucky wheel label fine-tuning: keep labels centered inside each color segment */
.lucky-wheel-segment-label {
  --wheel-label-distance: -78px;
  width: 64px;
  height: 18px;
}
@media (max-width: 980px) {
  .lucky-wheel-segment-label {
    --wheel-label-distance: -64px;
    width: 54px;
    height: 16px;
    font-size: 8.7px;
  }
}
@media (max-width: 420px) {
  .lucky-wheel-segment-label {
    --wheel-label-distance: -62px;
    width: 50px;
    height: 15px;
    font-size: 8px;
  }
}


/* Colorful themed sidebar icons, but softer and less dominant */
.sidebar .nav-links a::before {
  color: rgba(255,255,255,.94) !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.18) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,.12) !important;
  opacity: .82 !important;
}
.sidebar .nav-links a[href*="dashboard"]::before {
  content: "🏠" !important;
  background: linear-gradient(135deg, rgba(37,99,235,.72), rgba(56,189,248,.64)) !important;
  border-color: rgba(147,197,253,.48) !important;
}
.sidebar .nav-links a[href*="news"]::before {
  content: "📰" !important;
  background: linear-gradient(135deg, rgba(168,85,247,.72), rgba(236,72,153,.64)) !important;
  border-color: rgba(233,213,255,.42) !important;
}
.sidebar .nav-links a[href*="my_data"]::before {
  content: "👤" !important;
  background: linear-gradient(135deg, rgba(16,185,129,.72), rgba(45,212,191,.64)) !important;
  border-color: rgba(167,243,208,.44) !important;
}
.sidebar .nav-links a[href*="installation"]::before {
  content: "📲" !important;
  background: linear-gradient(135deg, rgba(14,165,233,.72), rgba(99,102,241,.62)) !important;
  border-color: rgba(191,219,254,.40) !important;
}
.sidebar .nav-links a[href*="apps"]::before {
  content: "📺" !important;
  background: linear-gradient(135deg, rgba(239,68,68,.72), rgba(249,115,22,.64)) !important;
  border-color: rgba(254,202,202,.42) !important;
}
.sidebar .nav-links a[href*="faq"]::before {
  content: "💡" !important;
  background: linear-gradient(135deg, rgba(245,158,11,.74), rgba(250,204,21,.64)) !important;
  border-color: rgba(254,240,138,.44) !important;
}
.sidebar .nav-links a[href*="orders"]::before {
  content: "🛒" !important;
  background: linear-gradient(135deg, rgba(234,88,12,.74), rgba(239,68,68,.64)) !important;
  border-color: rgba(254,215,170,.42) !important;
}
.sidebar .nav-links a[href*="referrals"]::before,
.sidebar .nav-links a[href*="bonus"]::before,
.sidebar .nav-links a[href*="vip_elite"]::before {
  content: "🎁" !important;
  background: linear-gradient(135deg, rgba(168,85,247,.74), rgba(59,130,246,.64)) !important;
  border-color: rgba(216,180,254,.42) !important;
}
.sidebar .nav-links a[href*="tickets"]::before {
  content: "🎫" !important;
  background: linear-gradient(135deg, rgba(20,184,166,.74), rgba(37,99,235,.64)) !important;
  border-color: rgba(153,246,228,.40) !important;
}
.sidebar .nav-links a[href*="admin/index"]::before {
  content: "🛠️" !important;
  background: linear-gradient(135deg, rgba(71,85,105,.72), rgba(148,163,184,.66)) !important;
  border-color: rgba(226,232,240,.40) !important;
}
.sidebar .nav-links a:hover::before,
.sidebar .nav-links a.active::before {
  filter: saturate(1.02) brightness(1.03) !important;
  transform: translateY(-1px) !important;
  opacity: .94 !important;
}

/* Remove tiny white corner artifact on mobile chat bubbles */
@media (max-width: 768px) {
  .order-chat-row-user .order-chat-bubble::before,
  .ticket-chat-layout .order-chat-row-user .order-chat-bubble::before,
  .ticket-chat-layout .order-chat-row-user .ticket-chat-bubble::before,
  .order-chat-row-admin .order-chat-bubble::before,
  .ticket-chat-layout .order-chat-row-admin .order-chat-bubble::before,
  .ticket-chat-layout .order-chat-row-admin .ticket-chat-bubble::before {
    display: none !important;
  }
}


/* Admin user overview refinements */
.admin-user-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
.admin-form-actions .inline-danger-form {
  margin-top: 0;
}
.sidebar .nav-links a[href$="my_referrals.php"],
.sidebar .nav-links a[href*="/my_referrals.php"] {
  display: flex !important;
}
@media (max-width: 768px) {
  .sidebar .nav-links {
    overflow: visible !important;
    max-height: none !important;
  }
}


/* Admin dashboard quick overview */
.admin-quick-stats,
.admin-quick-lists { align-items: stretch; }
.admin-quick-spacer {
  height: 18px;
}
.quick-glance-card {
  position: relative;
  overflow: hidden;
}
.quick-glance-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.05), transparent 55%);
  pointer-events: none;
}
.quick-glance-kicker {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffcf9f;
  font-weight: 800;
  margin-bottom: 10px;
}
.quick-list-card { min-height: 100%; }
.quick-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.quick-list-head h3 { margin: 0; }
.admin-quick-list {
  display: grid;
  gap: 10px;
}
.admin-quick-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  color: inherit;
}
.admin-quick-item:hover {
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}
.admin-quick-item strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}
.admin-quick-item span {
  color: #aeb7c8;
  font-size: 12px;
}
.admin-user-row td .status-pill.status-online {
  background: rgba(34,197,94,.22);
  color: #dcffe8;
  border: 1px solid rgba(34,197,94,.34);
}
.admin-user-row td .status-pill.status-closed {
  background: rgba(255,86,86,.22);
  color: #ffe0e0;
  border: 1px solid rgba(255,86,86,.34);
}
@media (max-width: 768px) {
  .admin-quick-spacer {
    height: 14px;
  }
  .quick-list-head,
  .admin-quick-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile menu title lower position fix */
@media (max-width: 768px) {
  .sidebar h3 { margin-top: 12px !important; padding-top: 0 !important; }
}


/* Desktop menu title lower position fix */
@media (min-width: 769px) {
  .sidebar h3 {
    margin-top: 10px !important;
    padding-top: 4px !important;
  }
}


/* === v21 holistic polish pass === */
.section-block { scroll-margin-top: 110px; }
.section-block-tight { margin-top: 18px; }
.page-compact-intro {
  padding: 14px 16px 0;
  margin-bottom: 8px;
}
.dashboard-action-grid,
.portal-mini-stats,
.process-grid,
.admin-shortcut-grid {
  display: grid;
  gap: 14px;
}
.dashboard-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.portal-mini-stats-three,
.process-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.portal-action-card,
.mini-stat-card,
.process-step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.03)),
    radial-gradient(circle at top right, rgba(255,76,76,.12), transparent 45%),
    rgba(8,12,22,.92);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 32px rgba(0,0,0,.24);
}
.portal-action-card {
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.portal-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,90,78,.32);
  box-shadow: 0 20px 38px rgba(0,0,0,.28);
}
.portal-action-card.compact { min-height: 118px; }
.portal-action-card strong,
.mini-stat-card strong,
.process-step-card strong {
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.25;
}
.portal-action-card span:last-child,
.mini-stat-copy,
.process-step-card p {
  color: #b8c3d8;
  line-height: 1.55;
  font-size: .92rem;
  margin: 0;
}
.portal-action-kicker,
.mini-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd1a8;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}
.mini-stat-card strong {
  font-size: 2.2rem;
  letter-spacing: -.04em;
}
.process-step-card {
  padding-left: 64px;
  min-height: 132px;
}
.process-step-index {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff5a4e, #ff8a2d);
  box-shadow: 0 10px 22px rgba(255,90,78,.26);
}
.order-form-panel-head p.muted,
.quick-list-head .muted {
  margin: 4px 0 0;
}
.ticket-list-item,
.order-ticket-card,
.quick-list-card,
.order-chat-panel,
.order-chat-sidebar,
.ticket-progress-card,
.card.dark-card.full-width,
.archived-orders-box,
.ticket-closed-toggle,
.admin-collapsible {
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
}
.ticket-list-item,
.order-ticket-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)),
    rgba(7,11,20,.88);
}
.ticket-list-item:hover,
.order-ticket-card:hover,
.admin-quick-item:hover {
  border-color: rgba(255,255,255,.12);
}
.order-section-head,
.quick-list-head,
.order-form-panel-head {
  align-items: center;
  gap: 12px;
}
.order-section-head h3,
.quick-list-head h3,
.order-form-panel-head h3 {
  margin: 0;
  font-size: 1.12rem;
}
.admin-shortcut-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-ops-grid {
  margin-top: 16px;
}
.admin-quick-item.static-item {
  cursor: default;
}
.admin-quick-item.static-item:hover {
  transform: none;
}
.ticket-meta-chips,
.order-ticket-chips {
  gap: 10px;
}
.meta-chip {
  min-height: 54px;
  justify-content: center;
}
.section-title {
  margin-bottom: 14px;
}
.status-pill {
  backdrop-filter: blur(6px);
}
.status-pill.status-open {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.1);
}
.status-pill.status-progress {
  background: rgba(255,140,66,.17);
  border: 1px solid rgba(255,171,98,.25);
}
.status-pill.status-online {
  background: rgba(34,197,94,.16);
  border: 1px solid rgba(67,227,126,.24);
}
.hero-content {
  max-width: 760px;
}
.hero-content p {
  max-width: 60ch;
}
.ticket-upload-dropzone,
.upload-dropzone {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022));
  border: 1px dashed rgba(255,255,255,.12);
}
.ticket-closed-toggle > summary,
.archived-orders-box > summary,
.admin-collapsible > summary {
  position: relative;
  padding-right: 20px;
}
.ticket-closed-toggle > summary::marker,
.archived-orders-box > summary::marker,
.admin-collapsible > summary::marker {
  color: rgba(255,255,255,.55);
}
.quick-glance-card {
  min-height: 160px;
}
.quick-glance-card .metric-number {
  font-size: 2.35rem;
  letter-spacing: -.05em;
}
@media (max-width: 1180px) {
  .dashboard-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portal-mini-stats-three,
  .process-grid-three,
  .admin-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .dashboard-action-grid,
  .portal-mini-stats-three,
  .process-grid-three,
  .admin-shortcut-grid {
    grid-template-columns: 1fr;
  }
  .portal-action-card,
  .mini-stat-card,
  .process-step-card {
    border-radius: 18px;
  }
  .mini-stat-card strong {
    font-size: 1.9rem;
  }
}


/* 2026-04-15: order chat server bot bubble aligned like a reply */
.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system {
  justify-content: flex-end;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .order-chat-bubble {
  width: auto;
  max-width: min(100%, 76%);
  border-top-right-radius: 10px;
  border-top-left-radius: 22px;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .ticket-message-system,
.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .ticket-chat-system-bubble,
.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .order-chat-bubble.ticket-message-system {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 34%),
    linear-gradient(135deg, rgba(86,92,104,0.98), rgba(62,67,78,0.97));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .order-chat-bubble::before {
  display: none;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .order-chat-bubble-head {
  flex-direction: row-reverse;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .ticket-author-line {
  justify-content: flex-end;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .chat-timestamp {
  text-align: right;
}


/* 2026-04-15: explicit bestellsystem server bot styling like ticket chat */
.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system {
  justify-content: flex-end !important;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .order-chat-bubble.ticket-message-system,
.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .order-chat-bubble.ticket-chat-system-bubble {
  width: auto;
  max-width: min(100%, 76%);
  margin-left: auto;
  border-top-right-radius: 10px;
  border-top-left-radius: 22px;
  background: linear-gradient(135deg, rgba(86,92,104,0.98), rgba(62,67,78,0.97)) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .order-chat-bubble.ticket-message-system::before,
.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .order-chat-bubble.ticket-chat-system-bubble::before {
  display: none !important;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .order-chat-bubble-head {
  flex-direction: row-reverse;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .ticket-author-line {
  justify-content: flex-end;
}

.order-chat-layout:not(.ticket-chat-layout) .order-chat-row-system .chat-timestamp {
  text-align: right;
}


/* Mobile priority placement: server status + urgent notice above menu */
.mobile-dashboard-priority {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 10px auto 0;
  gap: 12px;
}
.mobile-dashboard-server-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18,24,37,.94), rgba(11,15,25,.98));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 34px rgba(5,9,18,.24);
}
.mobile-dashboard-server-status .label { margin: 0; }
.mobile-dashboard-priority .urgent-notice { margin: 0; }

@media (max-width: 768px) {
  .mobile-dashboard-priority {
    display: grid;
  }
  .dashboard-main-urgent-notice,
  .dashboard-server-status-card {
    display: none !important;
  }
  .mobile-dashboard-priority + .app-layout {
    margin-top: 12px;
  }
}


/* Mobile: server status integrated into header bar */
.mobile-topbar-server-status {
  display: none;
}

@media (max-width: 768px) {
  .topbar-right-dashboard {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
    align-items: center;
  }
  .topbar-right-dashboard .profile-chip {
    width: auto;
    min-width: 0;
    justify-content: flex-start;
  }
  .topbar-right-dashboard .ghost-btn {
    width: auto;
    min-width: 110px;
    justify-content: center;
    white-space: nowrap;
  }
  .mobile-topbar-server-status {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(18,24,37,.94), rgba(11,15,25,.98));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 28px rgba(5,9,18,.20);
  }
  .mobile-topbar-server-status .label {
    margin: 0;
    font-size: 11px;
    letter-spacing: .08em;
  }
  .mobile-dashboard-server-status {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .topbar-right-dashboard {
    grid-template-columns: minmax(0,1fr) auto;
  }
  .topbar-right-dashboard .profile-chip,
  .topbar-right-dashboard .ghost-btn {
    width: auto;
  }
  .topbar-right-dashboard .profile-chip {
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
  }
  .topbar-right-dashboard .ghost-btn {
    padding-inline: 14px;
    min-width: 96px;
  }
  .mobile-topbar-server-status {
    padding: 11px 12px;
    border-radius: 16px;
  }
}

/* Fix mobile username chip + responsive Logo */
.profile-chip::before { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 1; }

@media (max-width: 640px) {
  .brand {
    gap: 10px;
    font-size: 18px;
  }

  .brand::before {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .brand::after {
    left: 11px;
    font-size: 12px;
  }

  .brand span {
    letter-spacing: .18em;
  }
}



.news-hub-thumb,
.compact-news-thumb {
  position: relative;
  overflow: hidden;
}

.news-thumb-update-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(5, 10, 20, 0.5);
  border: 1px solid rgba(255,255,255,0.12);
  color: #eef6ff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  z-index: 2;
}

.news-thumb-update-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.news-thumb-update-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.news-thumb-update-chip--update {
  background: rgba(18, 49, 90, 0.45);
  border-color: rgba(90, 169, 255, 0.28);
  color: #d8ebff;
}

.news-thumb-update-chip--progress {
  background: rgba(90, 56, 18, 0.45);
  border-color: rgba(255, 184, 77, 0.28);
  color: #ffe3b6;
}

.news-thumb-update-chip--complete {
  background: rgba(21, 71, 45, 0.42);
  border-color: rgba(85, 214, 142, 0.3);
  color: #dcffe8;
}

/* Announcement update timeline */
.announcement-inline-updates {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}

.announcement-inline-updates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 700;
}

.announcement-inline-count,
.announcement-admin-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(90, 169, 255, 0.18);
  color: #cfe6ff;
  font-size: 12px;
  font-weight: 700;
}




.announcement-inline-updates--compact {
  padding: 16px 16px 14px;
}

.announcement-inline-update-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(7, 13, 24, 0.72);
  border: 1px solid rgba(255,255,255,0.06);
}

.announcement-inline-updates-list,
.announcement-updates-list,
.announcement-admin-update-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.announcement-inline-update,
.announcement-update-item,
.announcement-admin-update-item,
.announcement-admin-update-summary {
  padding: 14px;
  border-radius: 16px;
  background: rgba(7, 13, 24, 0.72);
  border: 1px solid rgba(255,255,255,0.06);
}

.announcement-inline-update p,
.announcement-update-item p,
.announcement-admin-update-item p,
.announcement-admin-update-summary p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}

.announcement-inline-update-top,
.announcement-update-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.announcement-update-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.announcement-update-status.is-update {
  background: rgba(90, 169, 255, 0.16);
  color: #cfe6ff;
}

.announcement-update-status.is-progress {
  background: rgba(255, 184, 77, 0.16);
  color: #ffd99a;
}

.announcement-update-status.is-complete {
  background: rgba(85, 214, 142, 0.18);
  color: #cbf8dd;
}

.announcement-inline-update-time,
.announcement-update-time {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.article-modal-updates {
  margin-top: 22px;
}

.article-modal-section-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.article-modal-updates-source {
  display: none;
}

.announcement-updates-empty {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.68);
}

.server-update-admin-grid {
  align-items: start;
}

.server-update-form textarea {
  min-height: 160px;
}

.announcement-admin-update-summary {
  margin-top: 14px;
}

@media (max-width: 768px) {
  .announcement-inline-update-top,
  .announcement-update-head,
  .announcement-inline-updates-head {
    align-items: flex-start;
    flex-direction: column;
  }
}


.announcement-card-complete {
  border-color: rgba(85, 214, 142, 0.24) !important;
  box-shadow: 0 0 0 1px rgba(85, 214, 142, 0.08), 0 18px 45px rgba(22, 60, 39, 0.22);
}

.announcement-card-complete .news-hub-thumb,
.announcement-card-complete .compact-news-thumb {
  position: relative;
}

.announcement-card-complete .news-hub-thumb::after,
.announcement-card-complete .compact-news-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(85, 214, 142, 0.10), rgba(85, 214, 142, 0.02));
  pointer-events: none;
}


/* Enhanced login layout */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 74, 61, 0.10), transparent 22%),
    radial-gradient(circle at 88% 18%, rgba(255, 74, 61, 0.06), transparent 20%),
    linear-gradient(180deg, #07090d 0%, #090d14 35%, #0b1018 100%);
}

.login-wrap {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 36px 18px;
}

.login-shell {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 470px);
  gap: 34px;
  align-items: stretch;
}

.login-intro,
.login-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 28px 70px rgba(0,0,0,0.34);
}

.login-intro {
  padding: 42px 40px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 82, 71, 0.18), transparent 22%),
    radial-gradient(circle at 88% 0%, rgba(255, 74, 61, 0.08), transparent 20%),
    linear-gradient(140deg, rgba(16,16,16,0.96), rgba(11,11,11,0.96));
}

.login-intro::before {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(229,9,20,0.16), transparent 68%);
  filter: blur(8px);
}

.login-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.04), transparent 26%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 64px);
  opacity: .35;
  pointer-events: none;
}

.login-badge,
.login-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f3f3ef;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-badge::before,
.login-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5447, #ff8b2b);
  box-shadow: 0 0 0 4px rgba(255, 84, 71, .14);
}

.login-intro h1 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 20px 0 12px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.login-sub {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: #d7d7d1;
  font-size: 15px;
  line-height: 1.7;
}

.login-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.login-point {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022));
  border: 1px solid rgba(255,255,255,.06);
}

.login-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,84,71,.18), rgba(255,139,43,.08));
  border: 1px solid rgba(255, 96, 78, .22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.login-point-icon::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5447, #ff8b2b);
  box-shadow: 0 0 0 4px rgba(255, 84, 71, .16);
}

.login-point strong {
  display: block;
  margin-bottom: 5px;
  color: #f5f5ef;
  font-size: 15px;
}

.login-point p,
.login-note,
.login-panel-head p {
  margin: 0;
  color: #b2b2aa;
  font-size: 14px;
  line-height: 1.6;
}

.login-note {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.login-panel {
  padding: 38px 36px;
  background:
    radial-gradient(circle at 110% -10%, rgba(255, 82, 71, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(16,16,16,0.96), rgba(11,11,11,0.96));
}

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

.login-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 22%);
  pointer-events: none;
}

.login-panel-head {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

.login-panel-head h2 {
  margin: 18px 0 6px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.login-panel form {
  position: relative;
  z-index: 1;
}

.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group label {
  margin-top: 0;
}

.input-group input {
  padding-left: 48px;
  height: 54px;
  border-radius: 16px;
}

.input-group::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 43px;
  width: 18px;
  height: 18px;
  opacity: .75;
}

.input-user::before {
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72);
  width: 14px;
  height: 14px;
  left: 18px;
  top: 46px;
}

.input-user::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 58px;
  width: 20px;
  height: 10px;
  border-radius: 10px 10px 8px 8px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72);
  opacity: .75;
}

.input-pass::before {
  width: 16px;
  height: 12px;
  left: 17px;
  top: 51px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72);
}

.input-pass::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 42px;
  width: 10px;
  height: 10px;
  border-radius: 10px 10px 0 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72);
  border-bottom: 0;
  opacity: .75;
}

.login-panel button {
  width: 100%;
  margin-top: 8px;
  padding: 15px 18px;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 16px 34px rgba(229,9,20,.18);
}

.error {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 720px;
  }

  .login-intro,
  .login-panel {
    padding: 28px 24px;
    border-radius: 28px;
  }

  .login-intro h1 {
    font-size: clamp(34px, 8vw, 52px);
  }
}

@media (max-width: 640px) {
  .login-wrap {
    padding: 22px 12px;
  }

  .login-intro,
  .login-panel {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .login-point {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .login-point-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .login-panel-head h2 {
    font-size: 28px;
  }

  .input-group input {
    height: 50px;
  }
}


/* Minimalistische / edlere Login-Variante */
.login-wrap {
  padding: 48px 18px;
}

.minimal-login-shell {
  max-width: 460px;
  grid-template-columns: 1fr;
  gap: 0;
}

.minimal-login-panel {
  width: 100%;
  padding: 36px 34px 30px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(14,14,16,.96), rgba(10,10,12,.96));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 26px 70px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.minimal-login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,84,71,.10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 22%);
  pointer-events: none;
}

.minimal-login-panel::after {
  display: none;
}

.minimal-login-head {
  margin-bottom: 22px;
}

.minimal-login-head h1 {
  margin: 16px 0 6px;
  font-size: clamp(34px, 7vw, 42px);
  line-height: 1;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.minimal-login-head p {
  max-width: 340px;
  color: #b6b6af;
  font-size: 14px;
  line-height: 1.65;
}

.minimal-login-panel form {
  position: relative;
  z-index: 1;
}

.minimal-login-panel .input-group {
  margin-bottom: 16px;
}

.minimal-login-panel .input-group input {
  height: 52px;
  padding-left: 48px;
  border-radius: 15px;
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

.minimal-login-panel .input-group input:focus {
  border-color: rgba(255, 84, 71, .30) !important;
  box-shadow: 0 0 0 4px rgba(255, 84, 71, .08);
}

.minimal-login-panel button {
  width: 100%;
  margin-top: 10px;
  padding: 15px 18px;
  border-radius: 15px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(229,9,20,.16);
}

.login-footnote {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #8e8e88;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .login-wrap {
    padding: 26px 12px;
  }

  .minimal-login-panel {
    padding: 28px 20px 24px;
    border-radius: 24px;
  }

  .minimal-login-head h1 {
    font-size: 34px;
  }
}


/* Credential message card */
.credential-message-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.credential-message-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credential-message-intro h4 {
  margin: 0;
  font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff6f3;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

.credential-message-intro p,
.credential-message-footer p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 236, 236, 0.88);
  white-space: normal !important;
}

.credential-message-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 106, 91, 0.42);
  background:
    linear-gradient(135deg, rgba(122, 7, 31, 0.48), rgba(42, 8, 43, 0.68)),
    radial-gradient(circle at top left, rgba(255, 95, 78, 0.18), transparent 45%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(4, 7, 22, 0.34);
}

.credential-message-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.credential-message-panel-icon,
.credential-copy-icon,
.credential-message-footer-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.credential-message-panel-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 132, 95, 0.3), rgba(111, 18, 45, 0.4));
  border: 1px solid rgba(255, 132, 95, 0.34);
  box-shadow: 0 12px 28px rgba(80, 10, 32, 0.28);
}

.credential-message-panel-icon svg,
.credential-copy-icon svg,
.credential-message-footer-icon svg,
.credential-copy-btn-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.credential-message-panel-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.credential-message-panel-copy strong {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff4f0;
}

.credential-message-panel-copy span {
  color: rgba(255, 220, 220, 0.72);
  font-size: 0.94rem;
  line-height: 1.45;
}

.credential-copy-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credential-term-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 106, 91, 0.2);
  background: linear-gradient(180deg, rgba(49, 10, 32, 0.82), rgba(37, 8, 39, 0.88));
}

.credential-term-label {
  color: rgba(255, 224, 224, 0.78);
  font-size: 0.92rem;
  line-height: 1.3;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.credential-term-value {
  color: #fff7f5;
  font-size: 1rem;
  line-height: 1.2;
  text-align: right;
}

.credential-term-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 106, 91, 0.2);
  background: linear-gradient(180deg, rgba(49, 10, 32, 0.82), rgba(37, 8, 39, 0.88));
}

.credential-term-label {
  color: rgba(255, 224, 224, 0.78);
  font-size: 0.92rem;
  line-height: 1.3;
}

.credential-term-value {
  color: #fff7f5;
  font-size: 1rem;
  line-height: 1.2;
  text-align: right;
}

.credential-copy-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 106, 91, 0.24);
  background:
    linear-gradient(180deg, rgba(45, 9, 30, 0.88), rgba(37, 8, 39, 0.92)),
    radial-gradient(circle at 0% 50%, rgba(255, 93, 76, 0.11), transparent 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.credential-copy-icon {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  color: #ff7c69;
  background: radial-gradient(circle at 30% 30%, rgba(255, 122, 93, 0.28), rgba(107, 13, 40, 0.4));
  border: 1px solid rgba(255, 119, 94, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.credential-copy-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.credential-copy-label {
  color: rgba(255, 224, 224, 0.8);
  font-size: 0.98rem;
  line-height: 1.3;
}

.credential-copy-value {
  display: block;
  color: #fff7f5;
  font-size: clamp(1.8rem, 1.55rem + 0.6vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.credential-copy-btn {
  appearance: none;
  border: 1px solid rgba(255, 118, 91, 0.9);
  background: linear-gradient(180deg, rgba(63, 14, 34, 0.82), rgba(49, 11, 32, 0.9));
  color: #ff7d6e;
  border-radius: 20px;
  min-height: 66px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.credential-copy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 138, 112, 0.98);
  color: #ffd7cf;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 30px rgba(0, 0, 0, 0.28);
}

.credential-copy-btn:active {
  transform: translateY(0);
}

.credential-copy-btn.is-copied {
  color: #fff8f5;
  border-color: rgba(112, 255, 184, 0.9);
  background: linear-gradient(180deg, rgba(22, 94, 60, 0.86), rgba(16, 77, 47, 0.94));
}

.credential-copy-btn.is-error {
  color: #fff3f3;
  border-color: rgba(255, 114, 114, 0.92);
  background: linear-gradient(180deg, rgba(128, 28, 43, 0.9), rgba(96, 18, 34, 0.96));
}

.credential-copy-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.credential-copy-btn-text {
  white-space: nowrap;
}


.credential-share-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.credential-share-btn,
.credential-whatsapp-btn {
  appearance: none;
  width: 100%;
  height: 44px;
  min-height: 44px;
  min-width: 0;
  border-radius: 14px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
  box-sizing: border-box;
  flex: 1 1 0;
  align-self: stretch;
  margin: 0;
  vertical-align: middle;
}

.credential-share-btn {
  border: 1px solid rgba(255, 118, 91, 0.9);
  background: linear-gradient(180deg, rgba(63, 14, 34, 0.82), rgba(49, 11, 32, 0.9));
  color: #ff8b78;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.2);
}

.credential-share-btn:hover,
.credential-whatsapp-btn:hover {
  transform: translateY(-1px);
}

.credential-share-btn:hover {
  color: #ffe1da;
  border-color: rgba(255, 138, 112, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 24px rgba(0, 0, 0, 0.24);
}

.credential-share-btn:active,
.credential-whatsapp-btn:active {
  transform: translateY(0);
}

.credential-share-btn.is-shared {
  color: #fff8f5;
  border-color: rgba(112, 255, 184, 0.9);
  background: linear-gradient(180deg, rgba(22, 94, 60, 0.86), rgba(16, 77, 47, 0.94));
}

.credential-share-btn.is-copied {
  color: #fff8f5;
  border-color: rgba(255, 201, 92, 0.88);
  background: linear-gradient(180deg, rgba(148, 88, 17, 0.9), rgba(118, 68, 10, 0.95));
}

.credential-share-btn.is-error {
  color: #fff3f3;
  border-color: rgba(255, 114, 114, 0.92);
  background: linear-gradient(180deg, rgba(128, 28, 43, 0.9), rgba(96, 18, 34, 0.96));
}

.credential-whatsapp-btn {
  border: 1px solid rgba(75, 217, 113, 0.62);
  background: linear-gradient(180deg, rgba(16, 91, 47, 0.9), rgba(9, 69, 36, 0.94));
  color: #eaffef;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.2);
}

.credential-whatsapp-btn:hover {
  border-color: rgba(88, 231, 126, 0.86);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 24px rgba(0, 0, 0, 0.24);
}

.credential-share-btn-icon,
.credential-whatsapp-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.credential-share-btn-icon svg,
.credential-whatsapp-btn-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.credential-share-btn span,
.credential-whatsapp-btn span {
  line-height: 1;
}

.credential-message-footer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.credential-message-footer-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ff8d76;
  background: rgba(255, 122, 93, 0.09);
  border: 1px solid rgba(255, 122, 93, 0.18);
}

.order-chat-bubble .credential-message-card,
.ticket-chat-layout .order-chat-bubble .credential-message-card {
  width: 100%;
}

.order-chat-bubble .credential-message-card p,
.ticket-chat-layout .order-chat-bubble .credential-message-card p {
  margin: 0;
}

.order-chat-bubble .credential-message-card .credential-message-intro p,
.order-chat-bubble .credential-message-card .credential-message-footer p,
.ticket-chat-layout .order-chat-bubble .credential-message-card .credential-message-intro p,
.ticket-chat-layout .order-chat-bubble .credential-message-card .credential-message-footer p {
  white-space: normal !important;
}

@media (max-width: 860px) {
  .credential-copy-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .credential-copy-icon {
    width: 58px;
    height: 58px;
  }

  .credential-copy-btn {
    width: 100%;
    min-height: 58px;
  }

  .credential-message-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .credential-message-panel-copy strong {
    font-size: 1.18rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 620px) {
  .credential-message-card {
    gap: 12px;
  }

  .credential-message-intro {
    gap: 6px;
  }

  .credential-message-intro h4 {
    font-size: 1.38rem;
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  .credential-message-intro p,
  .credential-message-footer p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .credential-message-panel {
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
  }

  .credential-message-panel-head {
    align-items: center;
    gap: 10px;
  }

  .credential-message-panel-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .credential-message-panel-copy {
    gap: 2px;
  }

  .credential-message-panel-copy strong {
    font-size: 1rem;
    letter-spacing: 0.05em;
  }

  .credential-message-panel-copy span {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .credential-copy-list {
    gap: 10px;
  }

  .credential-term-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    padding: 11px 12px;
    border-radius: 14px;
    gap: 10px;
  }

  .credential-term-label {
    font-size: 0.8rem;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
  }

  .credential-term-value {
    font-size: 0.9rem;
    text-align: right;
  }

  .credential-copy-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .credential-copy-icon {
    width: 44px;
    height: 44px;
  }

  .credential-copy-icon svg,
  .credential-message-panel-icon svg,
  .credential-message-footer-icon svg,
  .credential-copy-btn-icon svg {
    width: 21px;
    height: 21px;
  }

  .credential-copy-content {
    gap: 2px;
    align-self: center;
  }

  .credential-copy-label {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .credential-copy-value {
    font-size: 1.28rem;
    line-height: 1.08;
  }

  .credential-copy-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    gap: 8px;
    border-radius: 14px;
    font-size: 0.92rem;
    justify-content: center;
  }

  .credential-share-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
  }

  .credential-share-btn,
  .credential-whatsapp-btn {
    height: 40px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.84rem;
    line-height: 1;
    gap: 6px;
  }

  .credential-message-footer {
    gap: 10px;
  }

  .credential-message-footer-icon {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 420px) {
  .credential-message-card {
    gap: 10px;
  }

  .credential-message-intro h4 {
    font-size: 1.24rem;
  }

  .credential-message-intro p,
  .credential-message-footer p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .credential-message-panel {
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .credential-message-panel-head {
    gap: 8px;
  }

  .credential-message-panel-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .credential-message-panel-copy strong {
    font-size: 0.92rem;
    letter-spacing: 0.04em;
  }

  .credential-message-panel-copy span {
    font-size: 0.78rem;
  }

  .credential-copy-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .credential-copy-icon {
    width: 40px;
    height: 40px;
  }

  .credential-copy-icon svg,
  .credential-message-panel-icon svg,
  .credential-message-footer-icon svg,
  .credential-copy-btn-icon svg {
    width: 18px;
    height: 18px;
  }

  .credential-copy-label {
    font-size: 0.78rem;
  }

  .credential-term-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    gap: 8px;
  }

  .credential-term-label {
    font-size: 0.76rem;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
  }

  .credential-term-value {
    font-size: 0.84rem;
    text-align: right;
  }

  .credential-copy-value {
    font-size: 1.12rem;
  }

  .credential-copy-btn {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.86rem;
    gap: 6px;
  }

  .credential-share-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
  }

  .credential-share-btn,
  .credential-whatsapp-btn {
    height: 38px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1;
    gap: 6px;
  }

  .credential-share-btn-icon svg,
  .credential-whatsapp-btn-icon svg {
    width: 16px;
    height: 16px;
  }

  .credential-message-footer {
    gap: 8px;
  }

  .credential-message-footer-icon {
    width: 30px;
    height: 30px;
  }
}


/* Bonus system summary cards */
.bonus-summary-grid {
  align-items: stretch;
}
.bonus-summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(18,22,31,.98), rgba(10,13,20,.98));
  min-height: 220px;
}
.bonus-summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 36%);
  pointer-events: none;
}
.bonus-summary-card-points::after,
.bonus-summary-card-rank::after,
.bonus-summary-card-milestone::after {
  content: "";
  position: absolute;
  inset: auto -12% -26% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: .18;
  filter: blur(16px);
  pointer-events: none;
}
.bonus-summary-card-points::after {
  background: radial-gradient(circle, rgba(76,152,255,.62), transparent 62%);
}
.bonus-summary-card-rank::after {
  background: radial-gradient(circle, rgba(255,170,94,.58), transparent 62%);
}
.bonus-summary-card-milestone::after {
  background: radial-gradient(circle, rgba(151,112,255,.55), transparent 62%);
}
.bonus-summary-top,
.bonus-summary-body {
  position: relative;
  z-index: 1;
}
.bonus-summary-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.bonus-summary-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,128,71,.92), rgba(255,189,95,.78));
  box-shadow: 0 14px 26px rgba(255,120,56,.22), inset 0 1px 0 rgba(255,255,255,.3);
}
.bonus-summary-icon.milestone {
  background: linear-gradient(135deg, rgba(120,104,255,.95), rgba(188,106,255,.76));
  box-shadow: 0 14px 26px rgba(136,104,255,.22), inset 0 1px 0 rgba(255,255,255,.28);
}
.bonus-summary-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bonus-summary-accent,
.bonus-summary-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.bonus-summary-accent strong,
.bonus-summary-status-pill {
  color: #fff;
  font-weight: 900;
}
.bonus-summary-accent span {
  color: #cfd7e6;
  font-size: .85rem;
  font-weight: 700;
}
.bonus-summary-rank-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.bonus-summary-rank-crest {
  width: 62px;
  height: 74px;
  flex: 0 0 62px;
}
.bonus-summary-rank-crest .badge-core {
  font-size: .9rem;
}
.bonus-summary-rank-meta {
  min-width: 0;
}
.bonus-summary-rank-meta h3,
.bonus-summary-card h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.12;
}
.bonus-summary-subline {
  color: #c9d2e2;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.5;
}
.bonus-summary-progress {
  width: 100%;
  margin-top: 2px;
}
.bonus-summary-status-pill.is-complete {
  background: linear-gradient(135deg, rgba(93,170,255,.22), rgba(255,255,255,.08));
  border-color: rgba(112,181,255,.34);
}
.bonus-summary-status-pill.is-vip {
  background: linear-gradient(135deg, rgba(255,220,134,.28), rgba(184,123,20,.22));
  border-color: rgba(255,220,134,.42);
  color: #fff2ca;
}
.bonus-summary-card .muted {
  margin: 0;
}
@media (max-width: 900px) {
  .bonus-summary-card {
    min-height: auto;
  }
}
@media (max-width: 640px) {
  .bonus-summary-top {
    align-items: flex-start;
  }
  .bonus-summary-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 16px;
  }
  .bonus-summary-rank-wrap {
    align-items: flex-start;
  }
  .bonus-summary-card h3,
  .bonus-summary-rank-meta h3 {
    font-size: 1.28rem;
  }
}


.message-rank-badge,
.ticket-level-badge,
.shoutbox-rank-badge {
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 20px rgba(0,0,0,.18);
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}



/* Full animated rank badge redesign */
@keyframes badgeGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 55%; }
  100% { background-position: 0% 50%; }
}
@keyframes badgeSweepLine {
  0% { transform: translateX(-180%) skewX(-24deg); opacity: 0; }
  18% { opacity: .18; }
  50% { opacity: .5; }
  100% { transform: translateX(260%) skewX(-24deg); opacity: 0; }
}
@keyframes badgePulseGlow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 26px rgba(0,0,0,.24); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 16px 32px rgba(0,0,0,.3), 0 0 24px rgba(255,255,255,.08); }
}
@keyframes badgeOrbPulse {
  0%, 100% { transform: translateY(-50%) scale(1); filter: brightness(1); }
  50% { transform: translateY(-50%) scale(1.12); filter: brightness(1.12); }
}
@keyframes badgeFloatIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.rank-gray { background-image: linear-gradient(145deg, #6d6d6d 0%, #343434 45%, #8a8a8a 100%); color:#fff; }
.rank-blue { background-image: linear-gradient(145deg, #123b82 0%, #4c97ff 45%, #1b4f9d 100%); color:#fff; }
.rank-purple { background-image: linear-gradient(145deg, #52237a 0%, #bf73ff 50%, #692ca3 100%); color:#fff; }
.rank-silver { background-image: linear-gradient(145deg, #7f8794 0%, #eff3f8 46%, #8b95a5 100%); color:#17202c; }
.rank-orange { background-image: linear-gradient(145deg, #8a3d04 0%, #ffb156 46%, #a34909 100%); color:#fff; }
.rank-red { background-image: linear-gradient(145deg, #791f1f 0%, #ff6b6b 48%, #9f2525 100%); color:#fff; }
.rank-gold { background-image: linear-gradient(145deg, #82580d 0%, #ffdd82 42%, #a87418 100%); color:#241602; }
.rank-cyan { background-image: linear-gradient(145deg, #0d5f6b 0%, #7bf2ff 46%, #178092 100%); color:#fff; }
.rank-royal { background-image: linear-gradient(145deg, #37308f 0%, #afa1ff 46%, #5148bf 100%); color:#fff; }
.rank-diamond { background-image: linear-gradient(145deg, #177381 0%, #d7ffff 46%, #29a8bb 100%); color:#062126; }
.rank-vip { background-image: linear-gradient(145deg, #6e4a0e 0%, #ffe6a3 40%, #b6781a 100%); color:#2b1a02; }

.rank-badge-inline,
.admin-rank-pill,
.rank-badge-large,
.rank-badge-crest {
  background-size: 220% 220%;
  animation: badgeGradientFlow 8s ease-in-out infinite, badgePulseGlow 3.6s ease-in-out infinite;
}

.rank-badge-inline {
  min-height: 30px;
  padding: 6px 14px 6px 34px;
  border-radius: 14px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  border-width: 1px;
}
.rank-badge-inline::before,
.admin-rank-pill::before,
.rank-badge-large .badge-shine,
.rank-badge-crest .badge-shine {
  content: "";
  position: absolute;
  inset: -35% auto -35% -35%;
  width: 42%;
  background: linear-gradient(115deg, transparent 10%, rgba(255,255,255,.08) 22%, rgba(255,255,255,.48) 36%, rgba(255,255,255,.1) 54%, transparent 70%);
  transform: translateX(-180%) skewX(-24deg);
  animation: badgeSweepLine 4.2s linear infinite;
  pointer-events: none;
}
.rank-badge-inline::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.98), rgba(255,255,255,.42) 32%, rgba(255,255,255,0) 70%), rgba(255,255,255,.28);
  box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 0 18px rgba(255,255,255,.22);
  animation: badgeOrbPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}
.rank-badge-inline > *,
.admin-rank-pill > *,
.rank-badge-large > *,
.rank-badge-crest > * {
  position: relative;
  z-index: 2;
}

.admin-rank-pill {
  min-height: 34px;
  padding: 5px 12px 5px 8px;
  border-radius: 16px;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  animation: badgeGradientFlow 8s ease-in-out infinite, badgePulseGlow 3.6s ease-in-out infinite, badgeFloatIdle 4s ease-in-out infinite;
}
.admin-rank-pill-badge {
  min-width: 32px;
  height: 26px;
  padding: 0 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.36), rgba(255,255,255,.12));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 14px rgba(0,0,0,.16);
}

.rank-badge-large,
.rank-badge-crest {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  clip-path: none;
  border: 2px solid rgba(255,255,255,.18);
  overflow: visible;
  box-shadow: 0 18px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 6px rgba(255,255,255,.04);
}
.rank-badge-large::before,
.rank-badge-crest::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,.42), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.12));
  border: 2px solid rgba(255,255,255,.18);
  pointer-events: none;
}
.rank-badge-large::after,
.rank-badge-crest::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 44px;
  height: 30px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(0,0,0,.16));
  clip-path: polygon(0 0, 100% 0, 100% 34%, 78% 100%, 50% 64%, 22% 100%, 0 34%);
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.18));
  opacity: .96;
  z-index: 0;
}
.rank-badge-large {
  font-size: 1rem;
  letter-spacing: .08em;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.rank-badge-crest {
  isolation: isolate;
  animation: badgeGradientFlow 8s ease-in-out infinite, badgePulseGlow 3.6s ease-in-out infinite, badgeFloatIdle 5s ease-in-out infinite;
}
.rank-badge-crest .badge-shine {
  inset: -20%;
  width: 34%;
  border-radius: 50%;
  clip-path: none;
  mix-blend-mode: screen;
}
.rank-badge-crest .badge-core {
  min-width: 46px;
  height: 46px;
  padding: 0 10px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(255,255,255,.18), rgba(0,0,0,.04)), rgba(12,16,24,.12);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(2px);
}

.bonus-summary-rank-crest {
  width: 74px;
  height: 74px;
}
.bonus-summary-rank-crest .badge-core {
  min-width: 38px;
  height: 38px;
  font-size: .84rem;
}

@media (max-width: 760px) {
  .rank-badge-large,
  .rank-badge-crest {
    width: 82px;
    height: 82px;
  }
  .rank-badge-large::after,
  .rank-badge-crest::after {
    width: 40px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rank-badge-inline,
  .admin-rank-pill,
  .rank-badge-large,
  .rank-badge-crest,
  .rank-badge-inline::before,
  .admin-rank-pill::before,
  .rank-badge-large .badge-shine,
  .rank-badge-crest .badge-shine,
  .rank-badge-inline::after {
    animation: none !important;
  }
}



/* Badge-only visual treatment: keep surrounding bubbles/cards neutral */
.bonus-side-card.rank-gray,
.bonus-side-card.rank-blue,
.bonus-side-card.rank-purple,
.bonus-side-card.rank-silver,
.bonus-side-card.rank-orange,
.bonus-side-card.rank-red,
.bonus-side-card.rank-gold,
.bonus-side-card.rank-cyan,
.bonus-side-card.rank-royal,
.bonus-side-card.rank-diamond,
.bonus-side-card.rank-vip,
.bonus-summary-card-rank.rank-gray,
.bonus-summary-card-rank.rank-blue,
.bonus-summary-card-rank.rank-purple,
.bonus-summary-card-rank.rank-silver,
.bonus-summary-card-rank.rank-orange,
.bonus-summary-card-rank.rank-red,
.bonus-summary-card-rank.rank-gold,
.bonus-summary-card-rank.rank-cyan,
.bonus-summary-card-rank.rank-royal,
.bonus-summary-card-rank.rank-diamond,
.bonus-summary-card-rank.rank-vip {
  background: linear-gradient(180deg, rgba(18,22,31,.98), rgba(10,13,20,.98)) !important;
  color: inherit !important;
}

/* Badge palette only on badge elements */
.rank-badge-inline.rank-gray,
.rank-badge-large.rank-gray,
.rank-badge-crest.rank-gray,
.admin-rank-pill.rank-gray { background-image: linear-gradient(145deg, #6d6d6d 0%, #343434 45%, #8a8a8a 100%); color:#fff; }
.rank-badge-inline.rank-blue,
.rank-badge-large.rank-blue,
.rank-badge-crest.rank-blue,
.admin-rank-pill.rank-blue { background-image: linear-gradient(145deg, #123b82 0%, #4c97ff 45%, #1b4f9d 100%); color:#fff; }
.rank-badge-inline.rank-purple,
.rank-badge-large.rank-purple,
.rank-badge-crest.rank-purple,
.admin-rank-pill.rank-purple { background-image: linear-gradient(145deg, #52237a 0%, #bf73ff 50%, #692ca3 100%); color:#fff; }
.rank-badge-inline.rank-silver,
.rank-badge-large.rank-silver,
.rank-badge-crest.rank-silver,
.admin-rank-pill.rank-silver { background-image: linear-gradient(145deg, #7f8794 0%, #eff3f8 46%, #8b95a5 100%); color:#17202c; }
.rank-badge-inline.rank-orange,
.rank-badge-large.rank-orange,
.rank-badge-crest.rank-orange,
.admin-rank-pill.rank-orange { background-image: linear-gradient(145deg, #8a3d04 0%, #ffb156 46%, #a34909 100%); color:#fff; }
.rank-badge-inline.rank-red,
.rank-badge-large.rank-red,
.rank-badge-crest.rank-red,
.admin-rank-pill.rank-red { background-image: linear-gradient(145deg, #791f1f 0%, #ff6b6b 48%, #9f2525 100%); color:#fff; }
.rank-badge-inline.rank-gold,
.rank-badge-large.rank-gold,
.rank-badge-crest.rank-gold,
.admin-rank-pill.rank-gold { background-image: linear-gradient(145deg, #82580d 0%, #ffdd82 42%, #a87418 100%); color:#241602; }
.rank-badge-inline.rank-cyan,
.rank-badge-large.rank-cyan,
.rank-badge-crest.rank-cyan,
.admin-rank-pill.rank-cyan { background-image: linear-gradient(145deg, #0d5f6b 0%, #7bf2ff 46%, #178092 100%); color:#fff; }
.rank-badge-inline.rank-royal,
.rank-badge-large.rank-royal,
.rank-badge-crest.rank-royal,
.admin-rank-pill.rank-royal { background-image: linear-gradient(145deg, #37308f 0%, #afa1ff 46%, #5148bf 100%); color:#fff; }
.rank-badge-inline.rank-diamond,
.rank-badge-large.rank-diamond,
.rank-badge-crest.rank-diamond,
.admin-rank-pill.rank-diamond { background-image: linear-gradient(145deg, #177381 0%, #d7ffff 46%, #29a8bb 100%); color:#062126; }
.rank-badge-inline.rank-vip,
.rank-badge-large.rank-vip,
.rank-badge-crest.rank-vip,
.admin-rank-pill.rank-vip { background-image: linear-gradient(145deg, #6e4a0e 0%, #ffe6a3 40%, #b6781a 100%); color:#2b1a02; }

@keyframes badgeFireFlicker {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(255,140,64,0)); }
  35% { transform: translateY(-1px) scale(1.03); filter: drop-shadow(0 0 10px rgba(255,138,54,.28)); }
  70% { transform: translateY(1px) scale(0.99); filter: drop-shadow(0 0 18px rgba(255,188,92,.22)); }
}
@keyframes badgeWaterFlow {
  0%, 100% { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 26px rgba(0,0,0,.24); }
  50% { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 16px 30px rgba(0,0,0,.28), 0 0 22px rgba(94,217,255,.18); }
}
@keyframes badgeArcanePulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 26px rgba(0,0,0,.24); }
  50% { transform: translateY(-2px) scale(1.02); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 16px 32px rgba(0,0,0,.28), 0 0 22px rgba(176,108,255,.2); }
}
@keyframes badgeWingFlap {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: .7; }
  50% { transform: translateY(-50%) scale(1.08); opacity: .95; }
}
@keyframes badgeShadowDrift {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(1px); opacity: .75; }
}

.rank-badge-inline.rank-red,
.rank-badge-inline.rank-orange,
.rank-badge-inline.rank-gold,
.rank-badge-large.rank-red,
.rank-badge-large.rank-orange,
.rank-badge-large.rank-gold,
.rank-badge-crest.rank-red,
.rank-badge-crest.rank-orange,
.rank-badge-crest.rank-gold,
.admin-rank-pill.rank-red,
.admin-rank-pill.rank-orange,
.admin-rank-pill.rank-gold {
  animation: badgeGradientFlow 8s ease-in-out infinite, badgeFireFlicker 2.2s ease-in-out infinite;
}
.rank-badge-inline.rank-blue,
.rank-badge-inline.rank-cyan,
.rank-badge-inline.rank-diamond,
.rank-badge-large.rank-blue,
.rank-badge-large.rank-cyan,
.rank-badge-large.rank-diamond,
.rank-badge-crest.rank-blue,
.rank-badge-crest.rank-cyan,
.rank-badge-crest.rank-diamond,
.admin-rank-pill.rank-blue,
.admin-rank-pill.rank-cyan,
.admin-rank-pill.rank-diamond {
  animation: badgeGradientFlow 8s ease-in-out infinite, badgeWaterFlow 3.1s ease-in-out infinite;
}
.rank-badge-inline.rank-purple,
.rank-badge-inline.rank-royal,
.rank-badge-large.rank-purple,
.rank-badge-large.rank-royal,
.rank-badge-crest.rank-purple,
.rank-badge-crest.rank-royal,
.admin-rank-pill.rank-purple,
.admin-rank-pill.rank-royal {
  animation: badgeGradientFlow 8s ease-in-out infinite, badgeArcanePulse 3s ease-in-out infinite;
}
.rank-badge-inline.rank-gray,
.rank-badge-large.rank-gray,
.rank-badge-crest.rank-gray,
.admin-rank-pill.rank-gray {
  animation: badgeGradientFlow 10s ease-in-out infinite, badgeShadowDrift 3.4s ease-in-out infinite;
}
.rank-badge-inline.rank-silver,
.rank-badge-inline.rank-vip,
.rank-badge-large.rank-silver,
.rank-badge-large.rank-vip,
.rank-badge-crest.rank-silver,
.rank-badge-crest.rank-vip,
.admin-rank-pill.rank-silver,
.admin-rank-pill.rank-vip {
  animation: badgeGradientFlow 8s ease-in-out infinite, badgeFloatIdle 3.6s ease-in-out infinite;
}

.rank-badge-inline.rank-red::after,
.rank-badge-inline.rank-orange::after,
.rank-badge-inline.rank-gold::after {
  background: radial-gradient(circle at 30% 28%, rgba(255,250,240,.98), rgba(255,196,127,.52) 36%, rgba(255,126,55,0) 72%), rgba(255,170,80,.3);
  box-shadow: 0 0 0 3px rgba(255,180,105,.12), 0 0 18px rgba(255,148,62,.3);
}
.rank-badge-inline.rank-blue::after,
.rank-badge-inline.rank-cyan::after,
.rank-badge-inline.rank-diamond::after {
  background: radial-gradient(circle at 30% 28%, rgba(244,252,255,.98), rgba(129,235,255,.55) 36%, rgba(64,191,255,0) 72%), rgba(108,225,255,.28);
  box-shadow: 0 0 0 3px rgba(136,231,255,.14), 0 0 18px rgba(98,225,255,.26);
}
.rank-badge-inline.rank-purple::after,
.rank-badge-inline.rank-royal::after {
  background: radial-gradient(circle at 30% 28%, rgba(253,248,255,.98), rgba(209,143,255,.55) 36%, rgba(131,73,255,0) 72%), rgba(176,114,255,.28);
  box-shadow: 0 0 0 3px rgba(196,146,255,.14), 0 0 18px rgba(166,117,255,.28);
}
.rank-badge-inline.rank-silver::after,
.rank-badge-inline.rank-vip::after {
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.98), rgba(255,243,203,.58) 36%, rgba(255,216,120,0) 72%), rgba(255,236,184,.3);
  box-shadow: 0 0 0 3px rgba(255,240,198,.16), 0 0 18px rgba(255,224,152,.28);
}

.rank-badge-crest.rank-red .badge-core::before,
.rank-badge-crest.rank-orange .badge-core::before,
.rank-badge-crest.rank-gold .badge-core::before,
.rank-badge-large.rank-red::after,
.rank-badge-large.rank-orange::after,
.rank-badge-large.rank-gold::after {
  filter: drop-shadow(0 8px 16px rgba(255,138,54,.2));
}

.rank-badge-crest.rank-red .badge-core::before,
.rank-badge-crest.rank-orange .badge-core::before,
.rank-badge-crest.rank-gold .badge-core::before,
.rank-badge-crest.rank-blue .badge-core::before,
.rank-badge-crest.rank-cyan .badge-core::before,
.rank-badge-crest.rank-diamond .badge-core::before,
.rank-badge-crest.rank-purple .badge-core::before,
.rank-badge-crest.rank-royal .badge-core::before,
.rank-badge-crest.rank-silver .badge-core::before,
.rank-badge-crest.rank-vip .badge-core::before,
.rank-badge-crest.rank-silver .badge-core::after,
.rank-badge-crest.rank-vip .badge-core::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.rank-badge-crest.rank-red .badge-core::before,
.rank-badge-crest.rank-orange .badge-core::before,
.rank-badge-crest.rank-gold .badge-core::before {
  inset: -8px;
  border-radius: 50%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 112%, rgba(255,130,58,.72), transparent 48%),
    radial-gradient(circle at 50% -12%, rgba(255,218,154,.28), transparent 42%);
  filter: blur(2px);
  animation: badgeFireFlicker 1.9s ease-in-out infinite;
}

.rank-badge-crest.rank-blue .badge-core::before,
.rank-badge-crest.rank-cyan .badge-core::before,
.rank-badge-crest.rank-diamond .badge-core::before {
  inset: -9px;
  border-radius: 50%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 110%, rgba(105,235,255,.34), transparent 54%),
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.24), transparent 34%);
  filter: blur(2px);
  animation: badgeWaterFlow 2.8s ease-in-out infinite;
}

.rank-badge-crest.rank-purple .badge-core::before,
.rank-badge-crest.rank-royal .badge-core::before {
  inset: -10px;
  border-radius: 50%;
  z-index: -1;
  background: conic-gradient(from 0deg, rgba(255,255,255,.04), rgba(185,110,255,.34), rgba(86,72,255,.1), rgba(255,255,255,.04));
  filter: blur(2px);
  animation: badgeGradientFlow 3.6s linear infinite;
}

.rank-badge-crest.rank-silver .badge-core::before,
.rank-badge-crest.rank-vip .badge-core::before,
.rank-badge-crest.rank-silver .badge-core::after,
.rank-badge-crest.rank-vip .badge-core::after {
  top: 50%;
  width: 18px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.64), rgba(255,255,255,.06));
  opacity: .82;
  filter: blur(.2px) drop-shadow(0 3px 8px rgba(255,255,255,.2));
  clip-path: polygon(50% 0, 100% 18%, 84% 100%, 50% 74%, 16% 100%, 0 18%);
  animation: badgeWingFlap 2.6s ease-in-out infinite;
}
.rank-badge-crest.rank-silver .badge-core::before,
.rank-badge-crest.rank-vip .badge-core::before {
  left: -15px;
  transform-origin: right center;
}
.rank-badge-crest.rank-silver .badge-core::after,
.rank-badge-crest.rank-vip .badge-core::after {
  right: -15px;
  transform-origin: left center;
}

@media (prefers-reduced-motion: reduce) {
  .rank-badge-inline,
  .admin-rank-pill,
  .rank-badge-large,
  .rank-badge-crest,
  .rank-badge-inline::after,
  .rank-badge-crest .badge-core::before,
  .rank-badge-crest .badge-core::after {
    animation: none !important;
  }
}



/* Screenshot-inspired rank badge redesign */
@keyframes badgeShieldFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes badgeShieldGlow {
  0%,100% { filter: drop-shadow(0 10px 18px rgba(0,0,0,.22)); }
  50% { filter: drop-shadow(0 14px 24px rgba(0,0,0,.28)); }
}
@keyframes badgeShieldWing {
  0%,100% { transform: scale(1) rotate(0deg); opacity: var(--wing-opacity,0); }
  50% { transform: scale(1.06) rotate(var(--wing-tilt,0deg)); opacity: calc(var(--wing-opacity,0) + .08); }
}
@keyframes badgeShieldSpark {
  0%,100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.18); }
}
@keyframes badgeShieldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body .rank-badge-crest,
body .rank-badge-large {
  --shield-main-1: #8d4c32;
  --shield-main-2: #6b2c1e;
  --shield-trim-1: #c0825d;
  --shield-trim-2: #793d25;
  --shield-star-1: #d8e1ec;
  --shield-star-2: #7e91a9;
  --crown-opacity: 0;
  --wing-opacity: 0;
  --wing-tilt: 0deg;
  --wing-left: #dbe6f6;
  --wing-right: #8aa7d3;
  position: relative;
  width: 84px;
  height: 98px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  clip-path: polygon(50% 0%, 84% 12%, 91% 46%, 50% 100%, 9% 46%, 16% 12%);
  border: 2px solid var(--shield-trim-1);
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.22), transparent 24%),
    linear-gradient(180deg, var(--shield-main-1), var(--shield-main-2));
  box-shadow:
    inset 0 0 0 3px var(--shield-trim-2),
    inset 0 10px 20px rgba(255,255,255,.06),
    0 12px 18px rgba(0,0,0,.25);
  animation: badgeShieldFloat 3.4s ease-in-out infinite, badgeShieldGlow 3.4s ease-in-out infinite;
  overflow: visible;
}
body .rank-badge-large {
  font-size: .66rem;
  line-height: 1;
  letter-spacing: .05em;
  text-shadow: 0 1px 4px rgba(0,0,0,.28);
}
body .rank-badge-crest::before,
body .rank-badge-large::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 34px;
  height: 20px;
  transform: translateX(-50%);
  opacity: var(--crown-opacity);
  background: linear-gradient(180deg, #ffd87b, #b8670f);
  clip-path: polygon(0 100%, 8% 40%, 20% 76%, 34% 0, 50% 72%, 66% 0, 80% 76%, 92% 40%, 100% 100%);
  filter: drop-shadow(0 4px 7px rgba(255,173,58,.24));
}
body .rank-badge-crest::after,
body .rank-badge-large::after {
  content: "";
  position: absolute;
  inset: 5px;
  clip-path: polygon(50% 0%, 84% 12%, 91% 46%, 50% 100%, 9% 46%, 16% 12%);
  border: 2px solid rgba(255,255,255,.16);
  pointer-events: none;
}
body .rank-badge-crest .badge-shine {
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(255,255,255,.28) 46%, transparent 56%),
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.18), transparent 22%);
  background-size: 190% 190%;
  animation: badgeShieldShimmer 4s ease-in-out infinite;
}
body .rank-badge-crest .badge-shine::before,
body .rank-badge-crest .badge-shine::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 36px;
  height: 42px;
  opacity: var(--wing-opacity);
  background: linear-gradient(180deg, var(--wing-left), var(--wing-right));
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.12));
  animation: badgeShieldWing 2.8s ease-in-out infinite;
}
body .rank-badge-crest .badge-shine::before {
  left: -24px;
  clip-path: polygon(100% 52%, 74% 36%, 52% 18%, 34% 4%, 18% 0, 0 12%, 28% 40%, 54% 60%, 78% 78%);
  transform-origin: right center;
}
body .rank-badge-crest .badge-shine::after {
  right: -24px;
  clip-path: polygon(0 52%, 26% 36%, 48% 18%, 66% 4%, 82% 0, 100% 12%, 72% 40%, 46% 60%, 22% 78%);
  transform-origin: left center;
}
body .rank-badge-crest .badge-core {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  clip-path: polygon(50% 0, 62% 34%, 100% 34%, 69% 56%, 81% 92%, 50% 72%, 19% 92%, 31% 56%, 0 34%, 38% 34%);
  background: linear-gradient(180deg, var(--shield-star-1), var(--shield-star-2));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 5px 10px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.22);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0,0,0,.24);
  animation: badgeShieldSpark 2.8s ease-in-out infinite;
}

/* theme progression inspired by provided badges */
body .rank-badge-crest.rank-gray,
body .rank-badge-large.rank-gray,
body .rank-badge-inline.rank-gray,
body .admin-rank-pill.rank-gray {
  --shield-main-1:#9b6046; --shield-main-2:#713624; --shield-trim-1:#b77757; --shield-trim-2:#7b462f;
  --shield-star-1:#d8e0ea; --shield-star-2:#8ea0b5;
}
body .rank-badge-crest.rank-blue,
body .rank-badge-large.rank-blue,
body .rank-badge-inline.rank-blue,
body .admin-rank-pill.rank-blue {
  --shield-main-1:#2f7fe2; --shield-main-2:#1a4b9b; --shield-trim-1:#95bdf3; --shield-trim-2:#365f9f;
  --shield-star-1:#d7edf8; --shield-star-2:#6b8fb8;
}
body .rank-badge-crest.rank-orange,
body .rank-badge-large.rank-orange,
body .rank-badge-inline.rank-orange,
body .admin-rank-pill.rank-orange {
  --shield-main-1:#1ea148; --shield-main-2:#177033; --shield-trim-1:#d27a20; --shield-trim-2:#91511b;
  --shield-star-1:#ffc26d; --shield-star-2:#c26f18; --crown-opacity:1;
}
body .rank-badge-crest.rank-purple,
body .rank-badge-large.rank-purple,
body .rank-badge-inline.rank-purple,
body .admin-rank-pill.rank-purple {
  --shield-main-1:#c244ff; --shield-main-2:#7d2bb3; --shield-trim-1:#c0bfd7; --shield-trim-2:#7c71aa;
  --shield-star-1:#f5d0ff; --shield-star-2:#a56fd3; --crown-opacity:1; --wing-opacity:.9; --wing-tilt:-4deg;
  --wing-left:#e7eefb; --wing-right:#8fa0c8;
}
body .rank-badge-crest.rank-red,
body .rank-badge-large.rank-red,
body .rank-badge-inline.rank-red,
body .admin-rank-pill.rank-red {
  --shield-main-1:#ff3636; --shield-main-2:#bb1515; --shield-trim-1:#ffb53e; --shield-trim-2:#b86a13;
  --shield-star-1:#ffd18a; --shield-star-2:#d97b1d; --crown-opacity:1; --wing-opacity:1; --wing-tilt:3deg;
  --wing-left:#ffd16f; --wing-right:#ff8e10;
}
body .rank-badge-crest.rank-vip,
body .rank-badge-large.rank-vip,
body .rank-badge-inline.rank-vip,
body .admin-rank-pill.rank-vip {
  --shield-main-1:#f543ff; --shield-main-2:#9324d5; --shield-trim-1:#53d7ff; --shield-trim-2:#258fb1;
  --shield-star-1:#9cf4ff; --shield-star-2:#358dff; --crown-opacity:1; --wing-opacity:1; --wing-tilt:5deg;
  --wing-left:#ff83ff; --wing-right:#55e6ff;
}

/* extra higher-rank variants for remaining themes */
body .rank-badge-crest.rank-silver,
body .rank-badge-large.rank-silver,
body .rank-badge-inline.rank-silver,
body .admin-rank-pill.rank-silver {
  --shield-main-1:#d7dee7; --shield-main-2:#8f9baa; --shield-trim-1:#ffffff; --shield-trim-2:#8693a6;
  --shield-star-1:#ffffff; --shield-star-2:#b9c6d7;
}
body .rank-badge-crest.rank-gold,
body .rank-badge-large.rank-gold,
body .rank-badge-inline.rank-gold,
body .admin-rank-pill.rank-gold {
  --shield-main-1:#f9bf24; --shield-main-2:#bf7c0c; --shield-trim-1:#fff0a7; --shield-trim-2:#bf7b15;
  --shield-star-1:#fff7d2; --shield-star-2:#f0b43a; --crown-opacity:1;
}
body .rank-badge-crest.rank-cyan,
body .rank-badge-large.rank-cyan,
body .rank-badge-inline.rank-cyan,
body .admin-rank-pill.rank-cyan {
  --shield-main-1:#24bfbd; --shield-main-2:#0f7480; --shield-trim-1:#9cfaff; --shield-trim-2:#1e92a3;
  --shield-star-1:#dcffff; --shield-star-2:#74d8df; --wing-opacity:.72; --wing-left:#cfffff; --wing-right:#49ccdb;
}
body .rank-badge-crest.rank-royal,
body .rank-badge-large.rank-royal,
body .rank-badge-inline.rank-royal,
body .admin-rank-pill.rank-royal {
  --shield-main-1:#5b61ff; --shield-main-2:#2e2dc7; --shield-trim-1:#c5b6ff; --shield-trim-2:#6651d6;
  --shield-star-1:#efe7ff; --shield-star-2:#a18eff; --crown-opacity:1; --wing-opacity:.76; --wing-left:#efe4ff; --wing-right:#9ca6ff;
}
body .rank-badge-crest.rank-diamond,
body .rank-badge-large.rank-diamond,
body .rank-badge-inline.rank-diamond,
body .admin-rank-pill.rank-diamond {
  --shield-main-1:#61dbe6; --shield-main-2:#1692b6; --shield-trim-1:#dbfeff; --shield-trim-2:#4fb5c6;
  --shield-star-1:#ffffff; --shield-star-2:#8df1ff; --crown-opacity:1; --wing-opacity:.9; --wing-left:#effdff; --wing-right:#8ef0ff;
}

/* inline + admin pill: only small animated shield inside the badge */
body .rank-badge-inline,
body .admin-rank-pill {
  position: relative;
  clip-path: none;
  border-radius: 999px;
  background: rgba(12,16,24,.9);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 18px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08);
  color: #eef4ff;
  padding-left: 34px;
  animation: none;
}
body .rank-badge-inline::before,
body .admin-rank-pill::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 16px;
  height: 18px;
  transform: translateY(-50%);
  clip-path: polygon(50% 0%, 84% 12%, 91% 46%, 50% 100%, 9% 46%, 16% 12%);
  background: linear-gradient(180deg, var(--shield-main-1), var(--shield-main-2));
  border: 1px solid var(--shield-trim-1);
  box-shadow: inset 0 0 0 2px var(--shield-trim-2), 0 3px 6px rgba(0,0,0,.18);
  animation: badgeShieldFloat 2.8s ease-in-out infinite;
}
body .rank-badge-inline::after,
body .admin-rank-pill::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translateY(-50%);
  clip-path: polygon(50% 0, 62% 34%, 100% 34%, 69% 56%, 81% 92%, 50% 72%, 19% 92%, 31% 56%, 0 34%, 38% 34%);
  background: linear-gradient(180deg, var(--shield-star-1), var(--shield-star-2));
  box-shadow: 0 2px 5px rgba(0,0,0,.16);
  animation: badgeShieldSpark 2.6s ease-in-out infinite;
}
body .admin-rank-pill-badge {
  font-size: 0;
  min-width: 18px;
  width: 18px;
  height: 20px;
  padding: 0;
  border-radius: 0;
  clip-path: polygon(50% 0%, 84% 12%, 91% 46%, 50% 100%, 9% 46%, 16% 12%);
  background: linear-gradient(180deg, var(--shield-main-1), var(--shield-main-2));
  border: 1px solid var(--shield-trim-1);
  box-shadow: inset 0 0 0 2px var(--shield-trim-2), 0 3px 6px rgba(0,0,0,.18);
  position: relative;
  overflow: hidden;
}
body .admin-rank-pill-badge::before {
  content: "";
  position: absolute;
  inset: 4px;
  clip-path: polygon(50% 0, 62% 34%, 100% 34%, 69% 56%, 81% 92%, 50% 72%, 19% 92%, 31% 56%, 0 34%, 38% 34%);
  background: linear-gradient(180deg, var(--shield-star-1), var(--shield-star-2));
  animation: badgeShieldSpark 2.6s ease-in-out infinite;
}
body .bonus-summary-rank-crest {
  width: 70px;
  height: 82px;
}
body .bonus-summary-rank-crest .badge-core {
  width: 36px;
  height: 36px;
  font-size: .54rem;
}

@media (prefers-reduced-motion: reduce) {
  body .rank-badge-crest,
  body .rank-badge-large,
  body .rank-badge-inline::before,
  body .rank-badge-inline::after,
  body .admin-rank-pill::before,
  body .admin-rank-pill::after,
  body .admin-rank-pill-badge::before,
  body .rank-badge-crest .badge-shine,
  body .rank-badge-crest .badge-core {
    animation: none !important;
  }
}



/* Implemented image-based rank badges 1-20 */
.level-badge-1 { --rank-badge-image: url('assets/rank_badges/level_1.svg'); }
.level-badge-2 { --rank-badge-image: url('assets/rank_badges/level_2.svg'); }
.level-badge-3 { --rank-badge-image: url('assets/rank_badges/level_3.svg'); }
.level-badge-4 { --rank-badge-image: url('assets/rank_badges/level_4.svg'); }
.level-badge-5 { --rank-badge-image: url('assets/rank_badges/level_5.svg'); }
.level-badge-6 { --rank-badge-image: url('assets/rank_badges/level_6.svg'); }
.level-badge-7 { --rank-badge-image: url('assets/rank_badges/level_7.svg'); }
.level-badge-8 { --rank-badge-image: url('assets/rank_badges/level_8.svg'); }
.level-badge-9 { --rank-badge-image: url('assets/rank_badges/level_9.svg'); }
.level-badge-10 { --rank-badge-image: url('assets/rank_badges/level_10.svg'); }
.level-badge-11 { --rank-badge-image: url('assets/rank_badges/level_11.svg'); }
.level-badge-12 { --rank-badge-image: url('assets/rank_badges/level_12.svg'); }
.level-badge-13 { --rank-badge-image: url('assets/rank_badges/level_13.svg'); }
.level-badge-14 { --rank-badge-image: url('assets/rank_badges/level_14.svg'); }
.level-badge-15 { --rank-badge-image: url('assets/rank_badges/level_15.svg'); }
.level-badge-16 { --rank-badge-image: url('assets/rank_badges/level_16.svg'); }
.level-badge-17 { --rank-badge-image: url('assets/rank_badges/level_17.svg'); }
.level-badge-18 { --rank-badge-image: url('assets/rank_badges/level_18.svg'); }
.level-badge-19 { --rank-badge-image: url('assets/rank_badges/level_19.svg'); }
.level-badge-20 { --rank-badge-image: url('assets/rank_badges/level_20.svg'); }

.rank-badge-crest[class*="level-badge-"],
.rank-badge-large[class*="level-badge-"] {
  width: 84px;
  height: 96px;
  clip-path: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: var(--rank-badge-image) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  box-shadow: none !important;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.22));
  animation: badgeShieldFloat 3.4s ease-in-out infinite, badgeShieldGlow 3.4s ease-in-out infinite;
}
.rank-badge-crest[class*="level-badge-"]::before,
.rank-badge-crest[class*="level-badge-"]::after,
.rank-badge-large[class*="level-badge-"]::before,
.rank-badge-large[class*="level-badge-"]::after,
.rank-badge-crest[class*="level-badge-"] .badge-shine,
.rank-badge-crest[class*="level-badge-"] .badge-core {
  display: none !important;
}
.rank-badge-inline[class*="level-badge-"],
.admin-rank-pill[class*="level-badge-"] {
  background: rgba(12,16,24,.92) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  box-shadow: 0 10px 18px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08) !important;
  padding-left: 36px !important;
  clip-path: none !important;
  border-radius: 999px !important;
  color: #eef4ff !important;
}
.rank-badge-inline[class*="level-badge-"]::before,
.admin-rank-pill[class*="level-badge-"]::before {
  content: "" !important;
  position: absolute !important;
  left: 8px !important;
  top: 50% !important;
  width: 18px !important;
  height: 22px !important;
  transform: translateY(-50%) !important;
  background: var(--rank-badge-image) center/contain no-repeat !important;
  animation: badgeShieldFloat 2.8s ease-in-out infinite !important;
  border: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
}
.rank-badge-inline[class*="level-badge-"]::after,
.admin-rank-pill[class*="level-badge-"]::after {
  display: none !important;
}
.admin-rank-pill[class*="level-badge-"] .admin-rank-pill-badge {
  min-width: 20px !important;
  width: 20px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: var(--rank-badge-image) center/contain no-repeat !important;
  box-shadow: none !important;
  clip-path: none !important;
  font-size: 0 !important;
}
.admin-rank-pill[class*="level-badge-"] .admin-rank-pill-badge::before {
  display: none !important;
}
.bonus-summary-rank-crest[class*="level-badge-"] {
  width: 72px;
  height: 82px;
}

@media (max-width: 760px) {
  .rank-badge-crest[class*="level-badge-"],
  .rank-badge-large[class*="level-badge-"] {
    width: 74px;
    height: 86px;
  }
  .bonus-summary-rank-crest[class*="level-badge-"] {
    width: 64px;
    height: 74px;
  }
}



.roadmap-badge[class*="level-badge-"] {
  width: 64px;
  height: 74px;
  border-radius: 0;
  background: var(--rank-badge-image) center/contain no-repeat !important;
  box-shadow: none !important;
  border: 0 !important;
  color: transparent !important;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.18));
}
.roadmap-badge[class*="level-badge-"]::before,
.roadmap-badge[class*="level-badge-"]::after {
  display: none !important;
}


/* Exact imported badge PNGs from provided sheet */
.level-badge-1 { --rank-badge-image: url('assets/rank_badges/level_1.png'); }
.level-badge-2 { --rank-badge-image: url('assets/rank_badges/level_2.png'); }
.level-badge-3 { --rank-badge-image: url('assets/rank_badges/level_3.png'); }
.level-badge-4 { --rank-badge-image: url('assets/rank_badges/level_4.png'); }
.level-badge-5 { --rank-badge-image: url('assets/rank_badges/level_5.png'); }
.level-badge-6 { --rank-badge-image: url('assets/rank_badges/level_6.png'); }
.level-badge-7 { --rank-badge-image: url('assets/rank_badges/level_7.png'); }
.level-badge-8 { --rank-badge-image: url('assets/rank_badges/level_8.png'); }
.level-badge-9 { --rank-badge-image: url('assets/rank_badges/level_9.png'); }
.level-badge-10 { --rank-badge-image: url('assets/rank_badges/level_10.png'); }
.level-badge-11 { --rank-badge-image: url('assets/rank_badges/level_11.png'); }
.level-badge-12 { --rank-badge-image: url('assets/rank_badges/level_12.png'); }
.level-badge-13 { --rank-badge-image: url('assets/rank_badges/level_13.png'); }
.level-badge-14 { --rank-badge-image: url('assets/rank_badges/level_14.png'); }
.level-badge-15 { --rank-badge-image: url('assets/rank_badges/level_15.png'); }
.level-badge-16 { --rank-badge-image: url('assets/rank_badges/level_16.png'); }
.level-badge-17 { --rank-badge-image: url('assets/rank_badges/level_17.png'); }
.level-badge-18 { --rank-badge-image: url('assets/rank_badges/level_18.png'); }
.level-badge-19 { --rank-badge-image: url('assets/rank_badges/level_19.png'); }
.level-badge-20 { --rank-badge-image: url('assets/rank_badges/level_20.png'); }



/* Badge clipping fix */
.bonus-side-card,
.bonus-summary-card {
  overflow: visible;
}
.bonus-side-card .rank-badge-crest[class*="level-badge-"],
.bonus-summary-card .rank-badge-crest[class*="level-badge-"] {
  width: 68px;
  height: 78px;
  min-width: 68px;
  flex: 0 0 68px;
  align-self: flex-start;
  margin-top: 2px;
}
.bonus-side-identity,
.bonus-summary-rank-wrap {
  align-items: flex-start;
}
@media (max-width: 760px) {
  .bonus-side-card .rank-badge-crest[class*="level-badge-"],
  .bonus-summary-card .rank-badge-crest[class*="level-badge-"] {
    width: 60px;
    height: 70px;
    min-width: 60px;
    flex-basis: 60px;
  }
}

/* Exact 11 rank badge set based on provided PNG */
.rank-gray { --rank-theme-image: url('assets/rank_badges_exact11/01_neuling.png'); }
.rank-blue { --rank-theme-image: url('assets/rank_badges_exact11/02_viewer.png'); }
.rank-purple { --rank-theme-image: url('assets/rank_badges_exact11/03_streamer.png'); }
.rank-silver { --rank-theme-image: url('assets/rank_badges_exact11/04_silbernutzer.png'); }
.rank-orange { --rank-theme-image: url('assets/rank_badges_exact11/05_power_user.png'); }
.rank-red { --rank-theme-image: url('assets/rank_badges_exact11/06_pro_streamer.png'); }
.rank-gold { --rank-theme-image: url('assets/rank_badges_exact11/07_gold_member.png'); }
.rank-cyan { --rank-theme-image: url('assets/rank_badges_exact11/08_elite_user.png'); }
.rank-royal { --rank-theme-image: url('assets/rank_badges_exact11/09_premium_member.png'); }
.rank-diamond { --rank-theme-image: url('assets/rank_badges_exact11/10_diamond_user.png'); }
.rank-vip { --rank-theme-image: url('assets/rank_badges_exact11/11_vip_elite.png'); }

/* Large badge / crest */
.rank-badge-crest.rank-gray,
.rank-badge-crest.rank-blue,
.rank-badge-crest.rank-purple,
.rank-badge-crest.rank-silver,
.rank-badge-crest.rank-orange,
.rank-badge-crest.rank-red,
.rank-badge-crest.rank-gold,
.rank-badge-crest.rank-cyan,
.rank-badge-crest.rank-royal,
.rank-badge-crest.rank-diamond,
.rank-badge-crest.rank-vip,
.rank-badge-large.rank-gray,
.rank-badge-large.rank-blue,
.rank-badge-large.rank-purple,
.rank-badge-large.rank-silver,
.rank-badge-large.rank-orange,
.rank-badge-large.rank-red,
.rank-badge-large.rank-gold,
.rank-badge-large.rank-cyan,
.rank-badge-large.rank-royal,
.rank-badge-large.rank-diamond,
.rank-badge-large.rank-vip {
  width: 78px;
  height: 78px;
  min-width: 78px;
  clip-path: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: var(--rank-theme-image) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  box-shadow: none !important;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.18));
  animation: badgeShieldFloat 3.2s ease-in-out infinite, badgeShieldGlow 3.2s ease-in-out infinite;
}
.rank-badge-crest.rank-gray::before,
.rank-badge-crest.rank-blue::before,
.rank-badge-crest.rank-purple::before,
.rank-badge-crest.rank-silver::before,
.rank-badge-crest.rank-orange::before,
.rank-badge-crest.rank-red::before,
.rank-badge-crest.rank-gold::before,
.rank-badge-crest.rank-cyan::before,
.rank-badge-crest.rank-royal::before,
.rank-badge-crest.rank-diamond::before,
.rank-badge-crest.rank-vip::before,
.rank-badge-crest.rank-gray::after,
.rank-badge-crest.rank-blue::after,
.rank-badge-crest.rank-purple::after,
.rank-badge-crest.rank-silver::after,
.rank-badge-crest.rank-orange::after,
.rank-badge-crest.rank-red::after,
.rank-badge-crest.rank-gold::after,
.rank-badge-crest.rank-cyan::after,
.rank-badge-crest.rank-royal::after,
.rank-badge-crest.rank-diamond::after,
.rank-badge-crest.rank-vip::after,
.rank-badge-large.rank-gray::before,
.rank-badge-large.rank-blue::before,
.rank-badge-large.rank-purple::before,
.rank-badge-large.rank-silver::before,
.rank-badge-large.rank-orange::before,
.rank-badge-large.rank-red::before,
.rank-badge-large.rank-gold::before,
.rank-badge-large.rank-cyan::before,
.rank-badge-large.rank-royal::before,
.rank-badge-large.rank-diamond::before,
.rank-badge-large.rank-vip::before,
.rank-badge-large.rank-gray::after,
.rank-badge-large.rank-blue::after,
.rank-badge-large.rank-purple::after,
.rank-badge-large.rank-silver::after,
.rank-badge-large.rank-orange::after,
.rank-badge-large.rank-red::after,
.rank-badge-large.rank-gold::after,
.rank-badge-large.rank-cyan::after,
.rank-badge-large.rank-royal::after,
.rank-badge-large.rank-diamond::after,
.rank-badge-large.rank-vip::after,
.rank-badge-crest.rank-gray .badge-shine,
.rank-badge-crest.rank-blue .badge-shine,
.rank-badge-crest.rank-purple .badge-shine,
.rank-badge-crest.rank-silver .badge-shine,
.rank-badge-crest.rank-orange .badge-shine,
.rank-badge-crest.rank-red .badge-shine,
.rank-badge-crest.rank-gold .badge-shine,
.rank-badge-crest.rank-cyan .badge-shine,
.rank-badge-crest.rank-royal .badge-shine,
.rank-badge-crest.rank-diamond .badge-shine,
.rank-badge-crest.rank-vip .badge-shine,
.rank-badge-crest.rank-gray .badge-core,
.rank-badge-crest.rank-blue .badge-core,
.rank-badge-crest.rank-purple .badge-core,
.rank-badge-crest.rank-silver .badge-core,
.rank-badge-crest.rank-orange .badge-core,
.rank-badge-crest.rank-red .badge-core,
.rank-badge-crest.rank-gold .badge-core,
.rank-badge-crest.rank-cyan .badge-core,
.rank-badge-crest.rank-royal .badge-core,
.rank-badge-crest.rank-diamond .badge-core,
.rank-badge-crest.rank-vip .badge-core {
  display: none !important;
}

/* Small inline badge icon */
.rank-badge-inline.rank-gray,
.rank-badge-inline.rank-blue,
.rank-badge-inline.rank-purple,
.rank-badge-inline.rank-silver,
.rank-badge-inline.rank-orange,
.rank-badge-inline.rank-red,
.rank-badge-inline.rank-gold,
.rank-badge-inline.rank-cyan,
.rank-badge-inline.rank-royal,
.rank-badge-inline.rank-diamond,
.rank-badge-inline.rank-vip,
.admin-rank-pill.rank-gray,
.admin-rank-pill.rank-blue,
.admin-rank-pill.rank-purple,
.admin-rank-pill.rank-silver,
.admin-rank-pill.rank-orange,
.admin-rank-pill.rank-red,
.admin-rank-pill.rank-gold,
.admin-rank-pill.rank-cyan,
.admin-rank-pill.rank-royal,
.admin-rank-pill.rank-diamond,
.admin-rank-pill.rank-vip {
  background: rgba(12,16,24,.92) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  clip-path: none !important;
  border-radius: 999px !important;
  color: #eef4ff !important;
  box-shadow: 0 8px 16px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.rank-badge-inline.rank-gray::before,
.rank-badge-inline.rank-blue::before,
.rank-badge-inline.rank-purple::before,
.rank-badge-inline.rank-silver::before,
.rank-badge-inline.rank-orange::before,
.rank-badge-inline.rank-red::before,
.rank-badge-inline.rank-gold::before,
.rank-badge-inline.rank-cyan::before,
.rank-badge-inline.rank-royal::before,
.rank-badge-inline.rank-diamond::before,
.rank-badge-inline.rank-vip::before,
.admin-rank-pill.rank-gray::before,
.admin-rank-pill.rank-blue::before,
.admin-rank-pill.rank-purple::before,
.admin-rank-pill.rank-silver::before,
.admin-rank-pill.rank-orange::before,
.admin-rank-pill.rank-red::before,
.admin-rank-pill.rank-gold::before,
.admin-rank-pill.rank-cyan::before,
.admin-rank-pill.rank-royal::before,
.admin-rank-pill.rank-diamond::before,
.admin-rank-pill.rank-vip::before {
  content: "" !important;
  position: absolute !important;
  left: 8px !important;
  top: 50% !important;
  width: 18px !important;
  height: 18px !important;
  transform: translateY(-50%) !important;
  background: var(--rank-theme-image) center/contain no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  animation: badgeShieldFloat 2.8s ease-in-out infinite !important;
}
.rank-badge-inline.rank-gray::after,
.rank-badge-inline.rank-blue::after,
.rank-badge-inline.rank-purple::after,
.rank-badge-inline.rank-silver::after,
.rank-badge-inline.rank-orange::after,
.rank-badge-inline.rank-red::after,
.rank-badge-inline.rank-gold::after,
.rank-badge-inline.rank-cyan::after,
.rank-badge-inline.rank-royal::after,
.rank-badge-inline.rank-diamond::after,
.rank-badge-inline.rank-vip::after,
.admin-rank-pill.rank-gray::after,
.admin-rank-pill.rank-blue::after,
.admin-rank-pill.rank-purple::after,
.admin-rank-pill.rank-silver::after,
.admin-rank-pill.rank-orange::after,
.admin-rank-pill.rank-red::after,
.admin-rank-pill.rank-gold::after,
.admin-rank-pill.rank-cyan::after,
.admin-rank-pill.rank-royal::after,
.admin-rank-pill.rank-diamond::after,
.admin-rank-pill.rank-vip::after {
  display: none !important;
}
.admin-rank-pill.rank-gray .admin-rank-pill-badge,
.admin-rank-pill.rank-blue .admin-rank-pill-badge,
.admin-rank-pill.rank-purple .admin-rank-pill-badge,
.admin-rank-pill.rank-silver .admin-rank-pill-badge,
.admin-rank-pill.rank-orange .admin-rank-pill-badge,
.admin-rank-pill.rank-red .admin-rank-pill-badge,
.admin-rank-pill.rank-gold .admin-rank-pill-badge,
.admin-rank-pill.rank-cyan .admin-rank-pill-badge,
.admin-rank-pill.rank-royal .admin-rank-pill-badge,
.admin-rank-pill.rank-diamond .admin-rank-pill-badge,
.admin-rank-pill.rank-vip .admin-rank-pill-badge {
  min-width: 18px !important;
  width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: var(--rank-theme-image) center/contain no-repeat !important;
  box-shadow: none !important;
  clip-path: none !important;
  font-size: 0 !important;
}
.admin-rank-pill.rank-gray .admin-rank-pill-badge::before,
.admin-rank-pill.rank-blue .admin-rank-pill-badge::before,
.admin-rank-pill.rank-purple .admin-rank-pill-badge::before,
.admin-rank-pill.rank-silver .admin-rank-pill-badge::before,
.admin-rank-pill.rank-orange .admin-rank-pill-badge::before,
.admin-rank-pill.rank-red .admin-rank-pill-badge::before,
.admin-rank-pill.rank-gold .admin-rank-pill-badge::before,
.admin-rank-pill.rank-cyan .admin-rank-pill-badge::before,
.admin-rank-pill.rank-royal .admin-rank-pill-badge::before,
.admin-rank-pill.rank-diamond .admin-rank-pill-badge::before,
.admin-rank-pill.rank-vip .admin-rank-pill-badge::before {
  display: none !important;
}

/* Rank overview badge */
.roadmap-badge.rank-gray,
.roadmap-badge.rank-blue,
.roadmap-badge.rank-purple,
.roadmap-badge.rank-silver,
.roadmap-badge.rank-orange,
.roadmap-badge.rank-red,
.roadmap-badge.rank-gold,
.roadmap-badge.rank-cyan,
.roadmap-badge.rank-royal,
.roadmap-badge.rank-diamond,
.roadmap-badge.rank-vip {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: var(--rank-theme-image) center/contain no-repeat !important;
  box-shadow: none !important;
  border: 0 !important;
  color: transparent !important;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.18));
}
.roadmap-badge.rank-gray::before,
.roadmap-badge.rank-blue::before,
.roadmap-badge.rank-purple::before,
.roadmap-badge.rank-silver::before,
.roadmap-badge.rank-orange::before,
.roadmap-badge.rank-red::before,
.roadmap-badge.rank-gold::before,
.roadmap-badge.rank-cyan::before,
.roadmap-badge.rank-royal::before,
.roadmap-badge.rank-diamond::before,
.roadmap-badge.rank-vip::before,
.roadmap-badge.rank-gray::after,
.roadmap-badge.rank-blue::after,
.roadmap-badge.rank-purple::after,
.roadmap-badge.rank-silver::after,
.roadmap-badge.rank-orange::after,
.roadmap-badge.rank-red::after,
.roadmap-badge.rank-gold::after,
.roadmap-badge.rank-cyan::after,
.roadmap-badge.rank-royal::after,
.roadmap-badge.rank-diamond::after,
.roadmap-badge.rank-vip::after {
  display: none !important;
}

/* Final custom 11-rank badge redesign */
.rank-gray { --rank-theme-image: url('assets/rank_badges_fresh11/01_neuling.svg'); }
.rank-blue { --rank-theme-image: url('assets/rank_badges_fresh11/02_viewer.svg'); }
.rank-purple { --rank-theme-image: url('assets/rank_badges_fresh11/03_streamer.svg'); }
.rank-silver { --rank-theme-image: url('assets/rank_badges_fresh11/04_silbernutzer.svg'); }
.rank-orange { --rank-theme-image: url('assets/rank_badges_fresh11/05_power_user.svg'); }
.rank-red { --rank-theme-image: url('assets/rank_badges_fresh11/06_pro_streamer.svg'); }
.rank-gold { --rank-theme-image: url('assets/rank_badges_fresh11/07_gold_member.svg'); }
.rank-cyan { --rank-theme-image: url('assets/rank_badges_fresh11/08_elite_user.svg'); }
.rank-royal { --rank-theme-image: url('assets/rank_badges_fresh11/09_premium_member.svg'); }
.rank-diamond { --rank-theme-image: url('assets/rank_badges_fresh11/10_diamond_user.svg'); }
.rank-vip { --rank-theme-image: url('assets/rank_badges_fresh11/11_vip_elite.svg'); }


.app-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-icon-svg svg,
.admin-app-icon-badge svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

.admin-app-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: #ff8a3d;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}


/* Escalating rank animation system: early ranks stay calm, higher ranks become increasingly intense */
@keyframes rankSurgeLow {
  0%,100% { transform: translateY(0) scale(1); filter: brightness(1); }
  50% { transform: translateY(-1px) scale(1.012); filter: brightness(1.03); }
}
@keyframes rankSurgeMid {
  0%,100% { transform: translateY(0) scale(1); filter: brightness(1); }
  30% { transform: translateY(-1px) scale(1.018); filter: brightness(1.05); }
  60% { transform: translateY(1px) scale(.996); filter: brightness(1.02); }
}
@keyframes rankSurgeHigh {
  0%,100% { transform: translateY(0) scale(1); filter: brightness(1); }
  25% { transform: translateY(-2px) scale(1.028); filter: brightness(1.08); }
  55% { transform: translateY(1px) scale(.992); filter: brightness(1.03); }
  75% { transform: translateY(-1px) scale(1.018); filter: brightness(1.06); }
}
@keyframes rankSurgeUltra {
  0%,100% { transform: translateY(0) scale(1); filter: brightness(1); }
  20% { transform: translateY(-2px) scale(1.038); filter: brightness(1.12); }
  48% { transform: translateY(1px) scale(.988); filter: brightness(1.04); }
  72% { transform: translateY(-1px) scale(1.026); filter: brightness(1.1); }
}
@keyframes rankSurgeApex {
  0%,100% { transform: translateY(0) scale(1); filter: brightness(1.02); }
  18% { transform: translateY(-3px) scale(1.05); filter: brightness(1.18); }
  42% { transform: translateY(1px) scale(.985); filter: brightness(1.05); }
  64% { transform: translateY(-2px) scale(1.036); filter: brightness(1.16); }
  82% { transform: translateY(-1px) scale(1.022); filter: brightness(1.1); }
}
@keyframes rankAuraPulse {
  0%,100% { box-shadow: 0 0 0 rgba(255,255,255,0), 0 10px 22px rgba(0,0,0,.22); }
  50% { box-shadow: 0 0 18px rgba(255,255,255,.08), 0 14px 26px rgba(0,0,0,.26); }
}
@keyframes rankAuraPulseStrong {
  0%,100% { box-shadow: 0 0 0 rgba(255,255,255,0), 0 12px 24px rgba(0,0,0,.24); }
  50% { box-shadow: 0 0 22px rgba(255,255,255,.14), 0 16px 30px rgba(0,0,0,.3); }
}
@keyframes rankAuraPulseMax {
  0%,100% { box-shadow: 0 0 0 rgba(255,255,255,0), 0 14px 26px rgba(0,0,0,.24); }
  50% { box-shadow: 0 0 28px rgba(255,255,255,.18), 0 18px 34px rgba(0,0,0,.34); }
}
@keyframes rankSweepFast {
  0% { transform: translateX(-220%) skewX(-24deg); opacity: .1; }
  35% { opacity: .5; }
  100% { transform: translateX(300%) skewX(-24deg); opacity: .16; }
}
@keyframes rankOrbPulseStrong {
  0%,100% { transform: translateY(-50%) scale(1); filter: brightness(1); }
  50% { transform: translateY(-50%) scale(1.18); filter: brightness(1.18); }
}
@keyframes rankOrbPulseMax {
  0%,100% { transform: translateY(-50%) scale(1); filter: brightness(1.02); }
  50% { transform: translateY(-50%) scale(1.26); filter: brightness(1.26); }
}

/* base: calm by default */
.rank-badge-inline,
.admin-rank-pill,
.rank-badge-large,
.rank-badge-crest {
  animation: none;
}
.rank-badge-inline::before,
.admin-rank-pill::before,
.rank-badge-large .badge-shine,
.rank-badge-crest .badge-shine,
.rank-badge-inline::after,
.rank-badge-crest .badge-core::before,
.rank-badge-crest .badge-core::after {
  animation: none;
}

/* early ranks: static / premium but calm */
.rank-badge-inline.rank-gray,
.rank-badge-inline.rank-blue,
.rank-badge-inline.rank-purple,
.admin-rank-pill.rank-gray,
.admin-rank-pill.rank-blue,
.admin-rank-pill.rank-purple,
.rank-badge-large.rank-gray,
.rank-badge-large.rank-blue,
.rank-badge-large.rank-purple,
.rank-badge-crest.rank-gray,
.rank-badge-crest.rank-blue,
.rank-badge-crest.rank-purple {
  animation: none;
}

/* silver starts subtle */
.rank-badge-inline.rank-silver,
.admin-rank-pill.rank-silver,
.rank-badge-large.rank-silver,
.rank-badge-crest.rank-silver {
  animation: badgeGradientFlow 11s ease-in-out infinite, rankSurgeLow 4.8s ease-in-out infinite;
}
.rank-badge-inline.rank-silver::before,
.admin-rank-pill.rank-silver::before,
.rank-badge-large.rank-silver .badge-shine,
.rank-badge-crest.rank-silver .badge-shine {
  animation: badgeShieldShimmer 8s ease-in-out infinite;
  opacity: .3;
}

/* orange gets a visible pulse */
.rank-badge-inline.rank-orange,
.admin-rank-pill.rank-orange,
.rank-badge-large.rank-orange,
.rank-badge-crest.rank-orange {
  animation: badgeGradientFlow 9s ease-in-out infinite, rankSurgeMid 3.8s ease-in-out infinite, rankAuraPulse 3.8s ease-in-out infinite;
}
.rank-badge-inline.rank-orange::before,
.admin-rank-pill.rank-orange::before,
.rank-badge-large.rank-orange .badge-shine,
.rank-badge-crest.rank-orange .badge-shine {
  animation: rankSweepFast 5.6s linear infinite;
  opacity: .45;
}

/* red gets stronger */
.rank-badge-inline.rank-red,
.admin-rank-pill.rank-red,
.rank-badge-large.rank-red,
.rank-badge-crest.rank-red {
  animation: badgeGradientFlow 8s ease-in-out infinite, rankSurgeHigh 3.1s ease-in-out infinite, rankAuraPulseStrong 3.1s ease-in-out infinite;
}
.rank-badge-inline.rank-red::before,
.admin-rank-pill.rank-red::before,
.rank-badge-large.rank-red .badge-shine,
.rank-badge-crest.rank-red .badge-shine {
  animation: rankSweepFast 4.6s linear infinite;
  opacity: .56;
}

/* gold becomes flashy */
.rank-badge-inline.rank-gold,
.admin-rank-pill.rank-gold,
.rank-badge-large.rank-gold,
.rank-badge-crest.rank-gold {
  animation: badgeGradientFlow 7.2s ease-in-out infinite, rankSurgeHigh 2.8s ease-in-out infinite, rankAuraPulseStrong 2.8s ease-in-out infinite;
}
.rank-badge-inline.rank-gold::before,
.admin-rank-pill.rank-gold::before,
.rank-badge-large.rank-gold .badge-shine,
.rank-badge-crest.rank-gold .badge-shine {
  animation: rankSweepFast 3.9s linear infinite;
  opacity: .62;
}
.rank-badge-inline.rank-gold::after {
  animation: rankOrbPulseStrong 1.8s ease-in-out infinite;
}

/* cyan / royal are clearly elite */
.rank-badge-inline.rank-cyan,
.admin-rank-pill.rank-cyan,
.rank-badge-large.rank-cyan,
.rank-badge-crest.rank-cyan,
.rank-badge-inline.rank-royal,
.admin-rank-pill.rank-royal,
.rank-badge-large.rank-royal,
.rank-badge-crest.rank-royal {
  animation: badgeGradientFlow 6.5s ease-in-out infinite, rankSurgeUltra 2.4s ease-in-out infinite, rankAuraPulseStrong 2.4s ease-in-out infinite;
}
.rank-badge-inline.rank-cyan::before,
.admin-rank-pill.rank-cyan::before,
.rank-badge-large.rank-cyan .badge-shine,
.rank-badge-crest.rank-cyan .badge-shine,
.rank-badge-inline.rank-royal::before,
.admin-rank-pill.rank-royal::before,
.rank-badge-large.rank-royal .badge-shine,
.rank-badge-crest.rank-royal .badge-shine {
  animation: rankSweepFast 3.2s linear infinite;
  opacity: .68;
}
.rank-badge-inline.rank-cyan::after,
.rank-badge-inline.rank-royal::after {
  animation: rankOrbPulseStrong 1.5s ease-in-out infinite;
}

/* diamond is almost maxed */
.rank-badge-inline.rank-diamond,
.admin-rank-pill.rank-diamond,
.rank-badge-large.rank-diamond,
.rank-badge-crest.rank-diamond {
  animation: badgeGradientFlow 5.6s ease-in-out infinite, rankSurgeApex 2s ease-in-out infinite, rankAuraPulseMax 2s ease-in-out infinite;
}
.rank-badge-inline.rank-diamond::before,
.admin-rank-pill.rank-diamond::before,
.rank-badge-large.rank-diamond .badge-shine,
.rank-badge-crest.rank-diamond .badge-shine {
  animation: rankSweepFast 2.7s linear infinite;
  opacity: .78;
}
.rank-badge-inline.rank-diamond::after {
  animation: rankOrbPulseMax 1.2s ease-in-out infinite;
}
.rank-badge-crest.rank-diamond .badge-core::before,
.rank-badge-crest.rank-diamond .badge-core::after {
  animation-duration: 1.8s !important;
}

/* VIP: strongest animation */
.rank-badge-inline.rank-vip,
.admin-rank-pill.rank-vip,
.rank-badge-large.rank-vip,
.rank-badge-crest.rank-vip {
  animation: badgeGradientFlow 4.6s ease-in-out infinite, rankSurgeApex 1.55s ease-in-out infinite, rankAuraPulseMax 1.55s ease-in-out infinite;
}
.rank-badge-inline.rank-vip::before,
.admin-rank-pill.rank-vip::before,
.rank-badge-large.rank-vip .badge-shine,
.rank-badge-crest.rank-vip .badge-shine {
  animation: rankSweepFast 2.15s linear infinite;
  opacity: .9;
}
.rank-badge-inline.rank-vip::after {
  animation: rankOrbPulseMax 1s ease-in-out infinite;
}
.rank-badge-crest.rank-vip .badge-core::before,
.rank-badge-crest.rank-vip .badge-core::after {
  animation-duration: 1.15s !important;
}

.rank-badge-inline.rank-orange::after,
.rank-badge-inline.rank-red::after {
  animation: badgeOrbPulse 2.2s ease-in-out infinite;
}
.rank-badge-crest.rank-cyan .badge-core::before,
.rank-badge-crest.rank-cyan .badge-core::after,
.rank-badge-crest.rank-royal .badge-core::before,
.rank-badge-crest.rank-royal .badge-core::after {
  animation: badgeGradientFlow 2.6s linear infinite;
}
.rank-badge-crest.rank-diamond .badge-core::before,
.rank-badge-crest.rank-diamond .badge-core::after {
  animation: badgeWaterFlow 1.8s ease-in-out infinite;
}
.rank-badge-crest.rank-vip .badge-core::before,
.rank-badge-crest.rank-vip .badge-core::after {
  animation: badgeWingFlap 1.15s ease-in-out infinite;
}


/* VIP Elite hard override: unmistakable end-rank animation */
@keyframes vipEliteFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.04); }
}
@keyframes vipElitePulse {
  0%,100% { filter: drop-shadow(0 10px 16px rgba(0,0,0,.2)) drop-shadow(0 0 0 rgba(255,214,102,0)); }
  50% { filter: drop-shadow(0 16px 28px rgba(0,0,0,.28)) drop-shadow(0 0 26px rgba(255,214,102,.62)); }
}
@keyframes vipEliteRingSpin {
  from { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  to { transform: translate(-50%, -50%) rotate(360deg) scale(1.04); }
}
@keyframes vipEliteAuraBurst {
  0%,100% { transform: translate(-50%, -50%) scale(.92); opacity: .48; }
  50% { transform: translate(-50%, -50%) scale(1.18); opacity: .92; }
}
@keyframes vipInlineIconBounce {
  0%,100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.16); }
}

.rank-badge-crest.rank-vip,
.rank-badge-large.rank-vip {
  position: relative !important;
  overflow: visible !important;
  animation: vipEliteFloat 1.6s ease-in-out infinite, vipElitePulse 1.2s ease-in-out infinite !important;
}

.rank-badge-crest.rank-vip::before,
.rank-badge-large.rank-vip::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 122% !important;
  height: 122% !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: conic-gradient(from 0deg, rgba(255,255,255,0) 0deg, rgba(255,226,134,.78) 46deg, rgba(255,255,255,.96) 78deg, rgba(255,199,74,.42) 118deg, rgba(255,255,255,0) 180deg, rgba(255,209,92,.6) 250deg, rgba(255,255,255,.9) 296deg, rgba(255,255,255,0) 360deg) !important;
  filter: blur(3px) saturate(1.2) !important;
  mix-blend-mode: screen !important;
  opacity: .95 !important;
  z-index: -1 !important;
  animation: vipEliteRingSpin 2.1s linear infinite !important;
}

.rank-badge-crest.rank-vip::after,
.rank-badge-large.rank-vip::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 116% !important;
  height: 116% !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: radial-gradient(circle, rgba(255,244,182,.85) 0%, rgba(255,220,110,.42) 32%, rgba(255,179,65,.16) 54%, rgba(255,162,42,0) 72%) !important;
  filter: blur(6px) !important;
  z-index: -2 !important;
  animation: vipEliteAuraBurst 1.35s ease-in-out infinite !important;
}

.rank-badge-inline.rank-vip::before,
.admin-rank-pill.rank-vip::before {
  animation: vipInlineIconBounce 1.1s ease-in-out infinite !important;
}

.rank-badge-inline.rank-vip,
.admin-rank-pill.rank-vip {
  box-shadow: 0 10px 24px rgba(0,0,0,.22), 0 0 18px rgba(255,214,102,.32), inset 0 1px 0 rgba(255,255,255,.12) !important;
}


/* VIP inline shine fix */
@keyframes vipInlineGlowPulse {
  0%,100% {
    box-shadow: 0 10px 24px rgba(0,0,0,.22), 0 0 10px rgba(167,96,255,.16), 0 0 18px rgba(88,214,255,.12), inset 0 1px 0 rgba(255,255,255,.12);
    border-color: rgba(196,154,255,.24);
  }
  50% {
    box-shadow: 0 10px 24px rgba(0,0,0,.24), 0 0 18px rgba(181,105,255,.34), 0 0 32px rgba(88,214,255,.28), inset 0 1px 0 rgba(255,255,255,.18);
    border-color: rgba(225,205,255,.46);
  }
}
@keyframes vipInlineSweep {
  0% { transform: translateX(-180%) skewX(-24deg); opacity: 0; }
  18% { opacity: .18; }
  34% { opacity: .58; }
  52% { opacity: .22; }
  100% { transform: translateX(260%) skewX(-24deg); opacity: 0; }
}
@keyframes vipInlineCoreFlash {
  0%,100% { transform: translateY(-50%) scale(1); filter: brightness(1); }
  50% { transform: translateY(-50%) scale(1.22); filter: brightness(1.32) drop-shadow(0 0 8px rgba(188,114,255,.55)); }
}

.rank-badge-inline.rank-vip,
.admin-rank-pill.rank-vip {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, rgba(20,18,42,.96), rgba(12,18,32,.96)) !important;
  animation: vipInlineGlowPulse 1.35s ease-in-out infinite !important;
}

.rank-badge-inline.rank-vip::after,
.admin-rank-pill.rank-vip::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -30% auto -30% -18% !important;
  width: 44% !important;
  background: linear-gradient(115deg, transparent 8%, rgba(255,255,255,0) 18%, rgba(255,255,255,.18) 28%, rgba(174,114,255,.72) 43%, rgba(111,233,255,.82) 53%, rgba(255,255,255,.16) 66%, transparent 80%) !important;
  transform: skewX(-24deg) !important;
  filter: blur(1px) !important;
  pointer-events: none !important;
  z-index: 1 !important;
  animation: vipInlineSweep 1.7s linear infinite !important;
}

.rank-badge-inline.rank-vip::before,
.admin-rank-pill.rank-vip::before {
  animation: vipInlineCoreFlash 1s ease-in-out infinite !important;
}

.rank-badge-inline.rank-vip > *,
.admin-rank-pill.rank-vip > * {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(206,167,255,.14);
}


/* VIP admin/meta pill visible shine override */
@keyframes vipPillBackgroundShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes vipPillHaloPulse {
  0%,100% {
    box-shadow: 0 10px 24px rgba(0,0,0,.24), 0 0 0 rgba(118,224,255,0), 0 0 0 rgba(193,123,255,0), inset 0 1px 0 rgba(255,255,255,.12);
    border-color: rgba(172,129,255,.28);
  }
  50% {
    box-shadow: 0 12px 28px rgba(0,0,0,.28), 0 0 18px rgba(118,224,255,.34), 0 0 28px rgba(193,123,255,.38), inset 0 1px 0 rgba(255,255,255,.2);
    border-color: rgba(219,188,255,.56);
  }
}
@keyframes vipBadgeIconSpark {
  0%,100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 0 rgba(193,123,255,0)); }
  50% { transform: scale(1.18); filter: brightness(1.28) drop-shadow(0 0 10px rgba(193,123,255,.52)) drop-shadow(0 0 14px rgba(118,224,255,.34)); }
}
@keyframes vipTextGlow {
  0%,100% { text-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { text-shadow: 0 0 10px rgba(215,192,255,.24), 0 0 18px rgba(118,224,255,.16); }
}

.admin-rank-pill.rank-vip,
.meta-chip-rank .admin-rank-pill.rank-vip,
.rank-badge-inline.rank-vip {
  background: linear-gradient(120deg, rgba(17,18,40,.96) 0%, rgba(54,25,89,.98) 22%, rgba(16,32,76,.98) 46%, rgba(33,79,120,.96) 68%, rgba(70,28,104,.98) 84%, rgba(17,18,40,.96) 100%) !important;
  background-size: 240% 240% !important;
  animation: vipPillBackgroundShift 2.6s linear infinite, vipPillHaloPulse 1.35s ease-in-out infinite !important;
}

.admin-rank-pill.rank-vip .admin-rank-pill-badge,
.meta-chip-rank .admin-rank-pill.rank-vip .admin-rank-pill-badge {
  animation: vipBadgeIconSpark 0.95s ease-in-out infinite !important;
}

.admin-rank-pill.rank-vip,
.meta-chip-rank .admin-rank-pill.rank-vip {
  color: #f8fbff !important;
}

.admin-rank-pill.rank-vip > *,
.meta-chip-rank .admin-rank-pill.rank-vip > *,
.rank-badge-inline.rank-vip > * {
  animation: vipTextGlow 1.4s ease-in-out infinite !important;
}


/* VIP force-visible glow on actual rendered elements */
@keyframes vipForcePulse {
  0%,100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(191,126,255,0), 0 0 0 rgba(92,221,255,0), 0 10px 18px rgba(0,0,0,.22);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 18px rgba(191,126,255,.48), 0 0 28px rgba(92,221,255,.38), 0 12px 22px rgba(0,0,0,.26);
  }
}
@keyframes vipRoadmapPulse {
  0%,100% { transform: scale(1); filter: drop-shadow(0 8px 10px rgba(0,0,0,.16)) drop-shadow(0 0 0 rgba(191,126,255,0)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 10px 14px rgba(0,0,0,.2)) drop-shadow(0 0 14px rgba(191,126,255,.52)) drop-shadow(0 0 22px rgba(92,221,255,.34)); }
}
@keyframes vipRoadmapHalo {
  0%,100% { opacity: .42; transform: translate(-50%, -50%) scale(.92); }
  50% { opacity: .9; transform: translate(-50%, -50%) scale(1.18); }
}

.admin-rank-pill.rank-vip,
.meta-chip-rank .admin-rank-pill.rank-vip,
.rank-badge-inline.rank-vip {
  background: linear-gradient(120deg, rgba(22,16,48,.98) 0%, rgba(63,23,110,.98) 26%, rgba(19,44,90,.98) 50%, rgba(24,92,128,.96) 72%, rgba(79,26,124,.98) 100%) !important;
  border: 1px solid rgba(214,190,255,.7) !important;
  animation: vipPillBackgroundShift 2.2s linear infinite, vipForcePulse 1.2s ease-in-out infinite !important;
}

.admin-rank-pill.rank-vip .admin-rank-pill-badge,
.meta-chip-rank .admin-rank-pill.rank-vip .admin-rank-pill-badge,
.rank-badge-inline.rank-vip::before {
  filter: drop-shadow(0 0 10px rgba(191,126,255,.66)) drop-shadow(0 0 14px rgba(92,221,255,.42)) !important;
}

.roadmap-badge.rank-vip {
  position: relative !important;
  overflow: visible !important;
  animation: vipRoadmapPulse 1.2s ease-in-out infinite !important;
}

.roadmap-badge.rank-vip::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 120% !important;
  height: 120% !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(215,189,255,.42) 0%, rgba(92,221,255,.22) 34%, rgba(92,221,255,0) 68%) !important;
  z-index: -1 !important;
  filter: blur(5px) !important;
  animation: vipRoadmapHalo 1.15s ease-in-out infinite !important;
}


/* Dashboard rank overview shining for all ranks with escalating strength */
@keyframes roadmapShineDrift {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.04); }
}
@keyframes roadmapShinePulseLow {
  0%,100% { filter: drop-shadow(0 4px 6px rgba(0,0,0,.16)) drop-shadow(0 0 0 rgba(255,255,255,0)); }
  50% { filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)) drop-shadow(0 0 8px var(--rank-glow-a, rgba(255,255,255,.14))); }
}
@keyframes roadmapShinePulseMid {
  0%,100% { filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)) drop-shadow(0 0 0 rgba(255,255,255,0)); }
  50% { filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)) drop-shadow(0 0 12px var(--rank-glow-a, rgba(255,255,255,.2))) drop-shadow(0 0 18px var(--rank-glow-b, rgba(255,255,255,.12))); }
}
@keyframes roadmapShinePulseHigh {
  0%,100% { filter: drop-shadow(0 5px 7px rgba(0,0,0,.18)) drop-shadow(0 0 0 rgba(255,255,255,0)); }
  50% { filter: drop-shadow(0 7px 11px rgba(0,0,0,.22)) drop-shadow(0 0 16px var(--rank-glow-a, rgba(255,255,255,.24))) drop-shadow(0 0 26px var(--rank-glow-b, rgba(255,255,255,.16))); }
}
@keyframes roadmapShinePulseMax {
  0%,100% { filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)) drop-shadow(0 0 0 rgba(255,255,255,0)); }
  50% { filter: drop-shadow(0 8px 12px rgba(0,0,0,.24)) drop-shadow(0 0 20px var(--rank-glow-a, rgba(255,255,255,.3))) drop-shadow(0 0 34px var(--rank-glow-b, rgba(255,255,255,.22))); }
}
@keyframes roadmapHaloBreath {
  0%,100% { opacity: .35; transform: translate(-50%, -50%) scale(.9); }
  50% { opacity: .92; transform: translate(-50%, -50%) scale(1.2); }
}

.roadmap-badge.rank-gray { --rank-glow-a: rgba(198,204,214,.24); --rank-glow-b: rgba(126,132,142,.16); }
.roadmap-badge.rank-blue { --rank-glow-a: rgba(116,176,255,.34); --rank-glow-b: rgba(52,120,255,.22); }
.roadmap-badge.rank-purple { --rank-glow-a: rgba(207,139,255,.36); --rank-glow-b: rgba(121,62,255,.24); }
.roadmap-badge.rank-silver { --rank-glow-a: rgba(238,244,251,.34); --rank-glow-b: rgba(154,167,186,.22); }
.roadmap-badge.rank-orange { --rank-glow-a: rgba(255,180,96,.38); --rank-glow-b: rgba(255,121,34,.24); }
.roadmap-badge.rank-red { --rank-glow-a: rgba(255,116,116,.4); --rank-glow-b: rgba(255,70,70,.24); }
.roadmap-badge.rank-gold { --rank-glow-a: rgba(255,222,130,.42); --rank-glow-b: rgba(255,183,64,.26); }
.roadmap-badge.rank-cyan { --rank-glow-a: rgba(122,241,255,.42); --rank-glow-b: rgba(55,202,235,.26); }
.roadmap-badge.rank-royal { --rank-glow-a: rgba(177,168,255,.42); --rank-glow-b: rgba(96,84,255,.26); }
.roadmap-badge.rank-diamond { --rank-glow-a: rgba(207,255,255,.46); --rank-glow-b: rgba(78,223,255,.28); }
.roadmap-badge.rank-vip { --rank-glow-a: rgba(210,150,255,.5); --rank-glow-b: rgba(99,229,255,.34); }

.bonus-modal .roadmap-badge,
.vip-roadmap-live {
  position: relative !important;
  overflow: visible !important;
}
.bonus-modal .roadmap-badge::after,
.vip-roadmap-live::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 124% !important;
  height: 124% !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, var(--rank-glow-a, rgba(255,255,255,.18)) 0%, var(--rank-glow-b, rgba(255,255,255,.1)) 38%, rgba(255,255,255,0) 72%) !important;
  filter: blur(6px) !important;
  z-index: -1 !important;
  animation: roadmapHaloBreath 2.2s ease-in-out infinite;
}

/* escalating strength by level */
.bonus-modal .roadmap-badge.level-badge-1,
.bonus-modal .roadmap-badge.level-badge-2,
.bonus-modal .roadmap-badge.level-badge-4 {
  animation: roadmapShineDrift 4.8s ease-in-out infinite, roadmapShinePulseLow 4.8s ease-in-out infinite !important;
}
.bonus-modal .roadmap-badge.level-badge-6,
.bonus-modal .roadmap-badge.level-badge-8 {
  animation: roadmapShineDrift 3.9s ease-in-out infinite, roadmapShinePulseMid 3.9s ease-in-out infinite !important;
}
.bonus-modal .roadmap-badge.level-badge-10,
.bonus-modal .roadmap-badge.level-badge-12 {
  animation: roadmapShineDrift 3.1s ease-in-out infinite, roadmapShinePulseHigh 3.1s ease-in-out infinite !important;
}
.bonus-modal .roadmap-badge.level-badge-14,
.bonus-modal .roadmap-badge.level-badge-16 {
  animation: roadmapShineDrift 2.5s ease-in-out infinite, roadmapShinePulseHigh 2.5s ease-in-out infinite !important;
}
.bonus-modal .roadmap-badge.level-badge-18 {
  animation: roadmapShineDrift 2s ease-in-out infinite, roadmapShinePulseMax 2s ease-in-out infinite !important;
}
.bonus-modal .roadmap-badge.level-badge-20,
.bonus-modal .roadmap-badge.rank-vip,
.vip-roadmap-live {
  animation: roadmapShineDrift 1.5s ease-in-out infinite, roadmapShinePulseMax 1.5s ease-in-out infinite !important;
}

/* Front dashboard badge: make VIP glow match badge colors instead of gold */
.rank-badge-crest.rank-vip,
.rank-badge-large.rank-vip,
.bonus-summary-rank-crest.rank-vip {
  animation: vipEliteFloat 1.6s ease-in-out infinite, vipElitePulse 1.2s ease-in-out infinite !important;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.22)) drop-shadow(0 0 16px rgba(202,142,255,.52)) drop-shadow(0 0 26px rgba(93,228,255,.34)) !important;
}
.rank-badge-crest.rank-vip::before,
.rank-badge-large.rank-vip::before,
.bonus-summary-rank-crest.rank-vip::before {
  background: conic-gradient(from 0deg, rgba(255,255,255,0) 0deg, rgba(202,142,255,.82) 56deg, rgba(255,255,255,.94) 86deg, rgba(93,228,255,.68) 132deg, rgba(255,255,255,0) 182deg, rgba(144,98,255,.56) 246deg, rgba(93,228,255,.74) 300deg, rgba(255,255,255,0) 360deg) !important;
}
.rank-badge-crest.rank-vip::after,
.rank-badge-large.rank-vip::after,
.bonus-summary-rank-crest.rank-vip::after {
  background: radial-gradient(circle, rgba(214,188,255,.68) 0%, rgba(93,228,255,.34) 34%, rgba(93,228,255,0) 72%) !important;
}


/* Gold+ meta chip / rank name shining */
@keyframes rankGoldSweep {
  0% { transform: translateX(-180%) skewX(-24deg); opacity: 0; }
  30% { opacity: .6; }
  100% { transform: translateX(260%) skewX(-24deg); opacity: 0; }
}
@keyframes rankNameGlowGold {
  0%,100% { text-shadow: 0 0 0 rgba(255,221,138,0); }
  50% { text-shadow: 0 0 10px rgba(255,221,138,.26), 0 0 18px rgba(255,181,67,.16); }
}
@keyframes rankNameGlowStrong {
  0%,100% { text-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { text-shadow: 0 0 12px var(--name-glow-a, rgba(255,255,255,.22)), 0 0 20px var(--name-glow-b, rgba(255,255,255,.14)); }
}
@keyframes badgeGlowPulseGold {
  0%,100% { box-shadow: 0 8px 14px rgba(0,0,0,.16); }
  50% { box-shadow: 0 10px 18px rgba(0,0,0,.2), 0 0 14px var(--meta-badge-glow-a), 0 0 24px var(--meta-badge-glow-b); }
}
@keyframes badgeGlowPulseMax {
  0%,100% { box-shadow: 0 8px 14px rgba(0,0,0,.18); }
  50% { box-shadow: 0 10px 20px rgba(0,0,0,.22), 0 0 18px var(--meta-badge-glow-a), 0 0 30px var(--meta-badge-glow-b); }
}

.ticket-level-badge.rank-gold,
.ticket-level-badge.rank-cyan,
.ticket-level-badge.rank-royal,
.ticket-level-badge.rank-diamond,
.ticket-level-badge.rank-vip,
.meta-chip-rank .rank-badge-inline.rank-gold,
.meta-chip-rank .rank-badge-inline.rank-cyan,
.meta-chip-rank .rank-badge-inline.rank-royal,
.meta-chip-rank .rank-badge-inline.rank-diamond,
.meta-chip-rank .rank-badge-inline.rank-vip {
  position: relative !important;
  overflow: hidden !important;
}
.ticket-level-badge.rank-gold,
.meta-chip-rank .rank-badge-inline.rank-gold { --meta-badge-glow-a: rgba(255,223,138,.30); --meta-badge-glow-b: rgba(255,183,67,.18); animation: badgeGlowPulseGold 2.2s ease-in-out infinite !important; }
.ticket-level-badge.rank-cyan,
.meta-chip-rank .rank-badge-inline.rank-cyan { --meta-badge-glow-a: rgba(121,241,255,.34); --meta-badge-glow-b: rgba(57,208,232,.2); animation: badgeGlowPulseGold 1.9s ease-in-out infinite !important; }
.ticket-level-badge.rank-royal,
.meta-chip-rank .rank-badge-inline.rank-royal { --meta-badge-glow-a: rgba(176,166,255,.36); --meta-badge-glow-b: rgba(98,85,255,.22); animation: badgeGlowPulseGold 1.7s ease-in-out infinite !important; }
.ticket-level-badge.rank-diamond,
.meta-chip-rank .rank-badge-inline.rank-diamond { --meta-badge-glow-a: rgba(213,255,255,.38); --meta-badge-glow-b: rgba(79,228,255,.24); animation: badgeGlowPulseMax 1.45s ease-in-out infinite !important; }
.ticket-level-badge.rank-vip,
.meta-chip-rank .rank-badge-inline.rank-vip { --meta-badge-glow-a: rgba(210,150,255,.46); --meta-badge-glow-b: rgba(99,229,255,.3); animation: badgeGlowPulseMax 1.2s ease-in-out infinite !important; }

.ticket-level-badge.rank-gold::after,
.ticket-level-badge.rank-cyan::after,
.ticket-level-badge.rank-royal::after,
.ticket-level-badge.rank-diamond::after,
.ticket-level-badge.rank-vip::after,
.meta-chip-rank .rank-badge-inline.rank-gold::after,
.meta-chip-rank .rank-badge-inline.rank-cyan::after,
.meta-chip-rank .rank-badge-inline.rank-royal::after,
.meta-chip-rank .rank-badge-inline.rank-diamond::after,
.meta-chip-rank .rank-badge-inline.rank-vip::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -30% auto -30% -16% !important;
  width: 40% !important;
  background: linear-gradient(115deg, transparent 8%, rgba(255,255,255,0) 18%, rgba(255,255,255,.12) 28%, var(--meta-badge-glow-a) 42%, var(--meta-badge-glow-b) 56%, rgba(255,255,255,.12) 66%, transparent 82%) !important;
  transform: skewX(-24deg) !important;
  filter: blur(1px) !important;
  animation: rankGoldSweep 2s linear infinite !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.rank-name-glow.rank-meta-theme-gold strong { animation: rankNameGlowGold 2.2s ease-in-out infinite; }
.rank-name-glow.rank-meta-theme-cyan strong { --name-glow-a: rgba(121,241,255,.28); --name-glow-b: rgba(57,208,232,.18); animation: rankNameGlowStrong 1.9s ease-in-out infinite; }
.rank-name-glow.rank-meta-theme-royal strong { --name-glow-a: rgba(176,166,255,.3); --name-glow-b: rgba(98,85,255,.18); animation: rankNameGlowStrong 1.7s ease-in-out infinite; }
.rank-name-glow.rank-meta-theme-diamond strong { --name-glow-a: rgba(213,255,255,.34); --name-glow-b: rgba(79,228,255,.2); animation: rankNameGlowStrong 1.45s ease-in-out infinite; }
.rank-name-glow.rank-meta-theme-vip strong { --name-glow-a: rgba(210,150,255,.4); --name-glow-b: rgba(99,229,255,.22); animation: rankNameGlowStrong 1.2s ease-in-out infinite; }


/* Badge-only Gold+ shining without filling parent containers */
@keyframes badgeOnlyGlowPulse {
  0%,100% { box-shadow: 0 6px 12px rgba(0,0,0,.16); }
  50% { box-shadow: 0 8px 16px rgba(0,0,0,.2), 0 0 14px var(--badge-only-glow-a), 0 0 24px var(--badge-only-glow-b); }
}
@keyframes badgeImageGlowPulse {
  0%,100% { filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)) drop-shadow(0 0 0 rgba(255,255,255,0)); }
  50% { filter: drop-shadow(0 8px 12px rgba(0,0,0,.22)) drop-shadow(0 0 14px var(--badge-only-glow-a)) drop-shadow(0 0 24px var(--badge-only-glow-b)); }
}
.rank-badge-inline.rank-gold,
.admin-rank-pill.rank-gold,
.ticket-level-badge.rank-gold,
.roadmap-badge.rank-gold,
.rank-badge-crest.rank-gold,
.rank-badge-large.rank-gold { --badge-only-glow-a: rgba(255,223,138,.30); --badge-only-glow-b: rgba(255,183,67,.18); }
.rank-badge-inline.rank-cyan,
.admin-rank-pill.rank-cyan,
.ticket-level-badge.rank-cyan,
.roadmap-badge.rank-cyan,
.rank-badge-crest.rank-cyan,
.rank-badge-large.rank-cyan { --badge-only-glow-a: rgba(121,241,255,.34); --badge-only-glow-b: rgba(57,208,232,.2); }
.rank-badge-inline.rank-royal,
.admin-rank-pill.rank-royal,
.ticket-level-badge.rank-royal,
.roadmap-badge.rank-royal,
.rank-badge-crest.rank-royal,
.rank-badge-large.rank-royal { --badge-only-glow-a: rgba(176,166,255,.36); --badge-only-glow-b: rgba(98,85,255,.22); }
.rank-badge-inline.rank-diamond,
.admin-rank-pill.rank-diamond,
.ticket-level-badge.rank-diamond,
.roadmap-badge.rank-diamond,
.rank-badge-crest.rank-diamond,
.rank-badge-large.rank-diamond { --badge-only-glow-a: rgba(213,255,255,.38); --badge-only-glow-b: rgba(79,228,255,.24); }
.rank-badge-inline.rank-vip,
.admin-rank-pill.rank-vip,
.ticket-level-badge.rank-vip,
.roadmap-badge.rank-vip,
.rank-badge-crest.rank-vip,
.rank-badge-large.rank-vip { --badge-only-glow-a: rgba(210,150,255,.46); --badge-only-glow-b: rgba(99,229,255,.3); }
.rank-badge-inline.rank-gold,
.admin-rank-pill.rank-gold,
.ticket-level-badge.rank-gold,
.rank-badge-inline.rank-cyan,
.admin-rank-pill.rank-cyan,
.ticket-level-badge.rank-cyan,
.rank-badge-inline.rank-royal,
.admin-rank-pill.rank-royal,
.ticket-level-badge.rank-royal,
.rank-badge-inline.rank-diamond,
.admin-rank-pill.rank-diamond,
.ticket-level-badge.rank-diamond,
.rank-badge-inline.rank-vip,
.admin-rank-pill.rank-vip,
.ticket-level-badge.rank-vip {
  animation: badgeOnlyGlowPulse 2s ease-in-out infinite !important;
}
.roadmap-badge.rank-gold,
.rank-badge-crest.rank-gold,
.rank-badge-large.rank-gold,
.roadmap-badge.rank-cyan,
.rank-badge-crest.rank-cyan,
.rank-badge-large.rank-cyan,
.roadmap-badge.rank-royal,
.rank-badge-crest.rank-royal,
.rank-badge-large.rank-royal,
.roadmap-badge.rank-diamond,
.rank-badge-crest.rank-diamond,
.rank-badge-large.rank-diamond,
.roadmap-badge.rank-vip,
.rank-badge-crest.rank-vip,
.rank-badge-large.rank-vip {
  animation: badgeImageGlowPulse 2s ease-in-out infinite !important;
}


/* Force badge-only glow for Gold+ chips */
.meta-shine-active {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
}
.meta-shine-active::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -32% auto -32% -18% !important;
  width: 42% !important;
  transform: skewX(-24deg) !important;
  filter: blur(1px) !important;
  animation: rankGoldSweep 1.9s linear infinite !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
.meta-shine-active.rank-gold { --meta-badge-glow-a: rgba(255,223,138,.30); --meta-badge-glow-b: rgba(255,183,67,.18); }
.meta-shine-active.rank-cyan { --meta-badge-glow-a: rgba(121,241,255,.34); --meta-badge-glow-b: rgba(57,208,232,.2); }
.meta-shine-active.rank-royal { --meta-badge-glow-a: rgba(176,166,255,.36); --meta-badge-glow-b: rgba(98,85,255,.22); }
.meta-shine-active.rank-diamond { --meta-badge-glow-a: rgba(213,255,255,.38); --meta-badge-glow-b: rgba(79,228,255,.24); }
.meta-shine-active.rank-vip { --meta-badge-glow-a: rgba(210,150,255,.46); --meta-badge-glow-b: rgba(99,229,255,.3); }
.meta-shine-active::after {
  background: linear-gradient(115deg, transparent 8%, rgba(255,255,255,0) 18%, rgba(255,255,255,.12) 28%, var(--meta-badge-glow-a) 42%, var(--meta-badge-glow-b) 56%, rgba(255,255,255,.12) 66%, transparent 82%) !important;
}


/* Real glow layer behind rank badges */
@keyframes rankGlowBreathSoft {
  0%,100% { opacity: .48; transform: scale(.96); }
  50% { opacity: .88; transform: scale(1.12); }
}
@keyframes rankGlowBreathStrong {
  0%,100% { opacity: .5; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.18); }
}
.rank-glow-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle;
  overflow: visible !important;
}
.rank-glow-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(10px);
}
.rank-glow-wrap > .rank-badge-inline,
.rank-glow-wrap > .admin-rank-pill,
.rank-glow-wrap > .roadmap-badge,
.rank-glow-wrap > .rank-badge-crest,
.rank-glow-wrap > .rank-badge-large {
  position: relative !important;
  z-index: 1 !important;
}
.rank-glow-wrap.rank-glow-gold .rank-glow-layer {
  width: calc(100% + 12px);
  height: calc(100% + 10px);
  background: radial-gradient(circle, rgba(255,224,138,.52) 0%, rgba(255,183,67,.24) 45%, rgba(255,183,67,0) 74%);
  animation: rankGlowBreathSoft 2.2s ease-in-out infinite;
}
.rank-glow-wrap.rank-glow-cyan .rank-glow-layer {
  width: calc(100% + 14px);
  height: calc(100% + 12px);
  background: radial-gradient(circle, rgba(121,241,255,.56) 0%, rgba(57,208,232,.26) 46%, rgba(57,208,232,0) 74%);
  animation: rankGlowBreathSoft 1.9s ease-in-out infinite;
}
.rank-glow-wrap.rank-glow-royal .rank-glow-layer {
  width: calc(100% + 16px);
  height: calc(100% + 14px);
  background: radial-gradient(circle, rgba(176,166,255,.58) 0%, rgba(98,85,255,.28) 46%, rgba(98,85,255,0) 74%);
  animation: rankGlowBreathSoft 1.7s ease-in-out infinite;
}
.rank-glow-wrap.rank-glow-diamond .rank-glow-layer {
  width: calc(100% + 18px);
  height: calc(100% + 16px);
  background: radial-gradient(circle, rgba(213,255,255,.62) 0%, rgba(79,228,255,.32) 46%, rgba(79,228,255,0) 74%);
  animation: rankGlowBreathStrong 1.45s ease-in-out infinite;
}
.rank-glow-wrap.rank-glow-vip .rank-glow-layer {
  width: calc(100% + 20px);
  height: calc(100% + 18px);
  background: radial-gradient(circle, rgba(210,150,255,.72) 0%, rgba(99,229,255,.38) 42%, rgba(99,229,255,0) 74%);
  animation: rankGlowBreathStrong 1.18s ease-in-out infinite;
}


/* Precise badge glow override: attach glow to the actual badge/image, not offset wrappers */
@keyframes preciseBadgeGlowGold {
  0%,100% { transform: translateZ(0) scale(1); filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)) drop-shadow(0 0 4px rgba(255,214,102,.14)) drop-shadow(0 0 10px rgba(255,183,67,.08)); }
  50% { transform: translateZ(0) scale(1.03); filter: drop-shadow(0 3px 6px rgba(0,0,0,.22)) drop-shadow(0 0 7px rgba(255,223,138,.42)) drop-shadow(0 0 16px rgba(255,183,67,.24)); }
}
@keyframes preciseBadgeGlowCyan {
  0%,100% { transform: translateZ(0) scale(1); filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)) drop-shadow(0 0 5px rgba(121,241,255,.18)) drop-shadow(0 0 10px rgba(57,208,232,.10)); }
  50% { transform: translateZ(0) scale(1.04); filter: drop-shadow(0 3px 6px rgba(0,0,0,.22)) drop-shadow(0 0 8px rgba(121,241,255,.46)) drop-shadow(0 0 18px rgba(57,208,232,.28)); }
}
@keyframes preciseBadgeGlowRoyal {
  0%,100% { transform: translateZ(0) scale(1); filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)) drop-shadow(0 0 5px rgba(176,166,255,.20)) drop-shadow(0 0 10px rgba(98,85,255,.10)); }
  50% { transform: translateZ(0) scale(1.045); filter: drop-shadow(0 3px 7px rgba(0,0,0,.24)) drop-shadow(0 0 10px rgba(176,166,255,.5)) drop-shadow(0 0 20px rgba(98,85,255,.3)); }
}
@keyframes preciseBadgeGlowDiamond {
  0%,100% { transform: translateZ(0) scale(1); filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)) drop-shadow(0 0 5px rgba(213,255,255,.22)) drop-shadow(0 0 12px rgba(79,228,255,.12)); }
  50% { transform: translateZ(0) scale(1.05); filter: drop-shadow(0 4px 8px rgba(0,0,0,.24)) drop-shadow(0 0 11px rgba(213,255,255,.54)) drop-shadow(0 0 22px rgba(79,228,255,.34)); }
}
@keyframes preciseBadgeGlowVip {
  0%,100% { transform: translateZ(0) scale(1); filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)) drop-shadow(0 0 6px rgba(210,150,255,.24)) drop-shadow(0 0 12px rgba(99,229,255,.14)); }
  50% { transform: translateZ(0) scale(1.06); filter: drop-shadow(0 4px 8px rgba(0,0,0,.24)) drop-shadow(0 0 12px rgba(210,150,255,.58)) drop-shadow(0 0 24px rgba(99,229,255,.38)); }
}

.rank-glow-wrap { display: inline !important; }
.rank-glow-layer { display: none !important; }

.rank-badge-glow-target {
  position: relative !important;
  z-index: 1 !important;
  overflow: visible !important;
  transform-origin: center center !important;
  will-change: transform, filter !important;
}
.rank-badge-glow-target.rank-badge-glow-gold { animation: preciseBadgeGlowGold 2.3s ease-in-out infinite !important; }
.rank-badge-glow-target.rank-badge-glow-cyan { animation: preciseBadgeGlowCyan 1.95s ease-in-out infinite !important; }
.rank-badge-glow-target.rank-badge-glow-royal { animation: preciseBadgeGlowRoyal 1.7s ease-in-out infinite !important; }
.rank-badge-glow-target.rank-badge-glow-diamond { animation: preciseBadgeGlowDiamond 1.45s ease-in-out infinite !important; }
.rank-badge-glow-target.rank-badge-glow-vip { animation: preciseBadgeGlowVip 1.18s ease-in-out infinite !important; }

/* Dashboard: Nutzerdaten wieder direkt auf dem Dashboard bearbeiten */
.dashboard-account-section {
  scroll-margin-top: 96px;
}

.dashboard-account-grid .dashboard-account-form-card,
.dashboard-account-grid .dashboard-account-note-card {
  grid-column: span 2;
}

.dashboard-account-form-card h3,
.dashboard-account-note-card h3 {
  margin-top: 2px;
}

.dashboard-credentials-form {
  margin-top: 16px;
}

.dashboard-credentials-form label {
  display: block;
  margin-top: 12px;
  margin-bottom: 8px;
  color: #cfd6e4;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-account-note-card .small-btn {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .dashboard-account-grid .dashboard-account-form-card,
  .dashboard-account-grid .dashboard-account-note-card {
    grid-column: 1 / -1;
  }
}


/* Glücksrad: Punktestand und Punkteverlauf erst nach dem Gewinn-Popup enthüllen */
body.wheel-reveal-pending .wheel-sensitive {
    position: relative;
    overflow: hidden;
}

body.wheel-reveal-pending .wheel-sensitive > * {
    filter: blur(9px);
    opacity: .42;
    transform: scale(.995);
    pointer-events: none;
    user-select: none;
    transition: filter .22s ease, opacity .22s ease, transform .22s ease;
}

body.wheel-reveal-pending .wheel-sensitive::after {
    content: "Wird nach dem Gewinn-Popup enthüllt";
    position: absolute;
    inset: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    border-radius: inherit;
    color: #fff7e8;
    font-weight: 900;
    letter-spacing: .02em;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 136, 61, .28), transparent 38%),
        linear-gradient(135deg, rgba(16, 18, 26, .88), rgba(35, 18, 12, .9));
    border: 1px solid rgba(255, 148, 72, .28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 45px rgba(0,0,0,.28);
    backdrop-filter: blur(8px);
}

body:not(.wheel-reveal-pending) .wheel-sensitive > * {
    filter: none;
    opacity: 1;
    transform: none;
}

/* Streaming preview image fit fix
   Keeps every card/dropzone at its existing size and scales the image inside it completely visible. */
.news-hub-thumb.streaming-preview-thumb,
.compact-thumb.streaming-preview-thumb,
#newsUploadPreview {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: rgba(8, 10, 14, 0.96) !important;
}

.news-hub-thumb.streaming-preview-thumb,
.compact-thumb.streaming-preview-thumb {
  overflow: hidden;
}

.news-hub-thumb.streaming-preview-thumb {
  min-height: 210px;
}

@media (max-width: 1024px) {
  .compact-thumb.streaming-preview-thumb {
    height: 180px;
  }
}

@media (max-width: 640px) {
  .news-hub-thumb.streaming-preview-thumb {
    min-height: 190px;
  }
}

/* Streaming preview polish: keeps the card size fixed, removes hard black bars and renders a soft blurred backdrop behind the full poster. */
.news-hub-thumb.streaming-preview-thumb,
.compact-thumb.streaming-preview-thumb {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
  background-image: none !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 120, 64, 0.18), transparent 34%),
    radial-gradient(circle at 82% 90%, rgba(124, 58, 237, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(8, 10, 16, 0.96), rgba(14, 17, 26, 0.98)) !important;
}

.news-hub-thumb.streaming-preview-thumb::before,
.compact-thumb.streaming-preview-thumb::before {
  content: "";
  position: absolute;
  inset: -26px;
  z-index: 0;
  background-image: var(--streaming-thumb);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(20px) saturate(1.22) brightness(0.64);
  transform: scale(1.12);
  opacity: 0.95;
  pointer-events: none;
}

.news-hub-thumb.streaming-preview-thumb::after,
.compact-thumb.streaming-preview-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--streaming-thumb);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.news-hub-thumb.streaming-preview-thumb > *,
.compact-thumb.streaming-preview-thumb > * {
  position: relative;
  z-index: 3;
}

#newsUploadPreview {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: rgba(8, 10, 14, 0.98) !important;
  background-blend-mode: normal;
}



/* Playliständerungen */
.playlist-change-panel {
  position: relative;
  overflow: hidden;
}

.playlist-change-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.playlist-change-head h2 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.playlist-change-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  max-width: 720px;
}

.playlist-request-form {
  flex: 0 0 auto;
}

.playlist-request-btn {
  min-height: 54px;
  white-space: nowrap;
}

.playlist-request-locked {
  flex: 0 0 auto;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  white-space: nowrap;
}

.playlist-flash {
  margin: 0 0 18px;
}

.playlist-access-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.playlist-qr-card,
.playlist-link-card,
.playlist-empty-state {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 22px;
  padding: 18px;
}

.playlist-qr-card {
  text-align: center;
}

.playlist-qr-image {
  width: min(210px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  margin: 12px auto;
  display: block;
}

.playlist-link-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.playlist-link-value {
  color: #fff;
  font-weight: 700;
  word-break: break-all;
  border: 1px solid rgba(255, 118, 91, 0.22);
  background: rgba(255, 118, 91, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.playlist-open-btn {
  position: relative;
  width: fit-content;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  text-decoration: none;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 76, 76, 0.98), rgba(255, 128, 72, 0.92)),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.35), transparent 34%);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 34px rgba(255, 76, 76, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateZ(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.playlist-open-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.playlist-open-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 44px rgba(255, 76, 76, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.playlist-open-btn:hover::before {
  transform: translateX(120%);
}

.playlist-open-btn:active {
  transform: translateY(0);
}

.playlist-open-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.42);
  outline-offset: 3px;
}

.playlist-open-btn span {
  position: relative;
  z-index: 1;
}

.playlist-open-btn-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  line-height: 1;
}

.playlist-empty-state {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
}

.playlist-empty-state strong {
  color: #fff;
}

.playlist-admin-card {
  margin: 18px 0;
}

.playlist-admin-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  padding: 12px;
  margin-top: 12px;
}

.playlist-admin-preview img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
}

@media (max-width: 760px) {
  .playlist-change-head {
    flex-direction: column;
  }

  .playlist-request-form,
  .playlist-request-btn,
  .playlist-request-locked {
    width: 100%;
  }

  .playlist-access-grid {
    grid-template-columns: 1fr;
  }

  .playlist-open-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Rabattcode-System */
.discount-admin-grid { display:grid; grid-template-columns:minmax(280px, .9fr) minmax(0, 1.1fr); gap:18px; align-items:start; }
.discount-admin-form .cards.two { gap:14px; }
.discount-code-preview { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border:1px solid rgba(255,255,255,.12); background:linear-gradient(135deg, rgba(231,50,64,.12), rgba(255,255,255,.04)); border-radius:18px; margin-bottom:14px; }
.discount-code-preview strong { letter-spacing:.08em; font-size:1.1rem; }
.discount-table-wrap { overflow-x:auto; }
.discount-admin-table { width:100%; border-collapse:collapse; min-width:760px; }
.discount-admin-table th, .discount-admin-table td { text-align:left; padding:12px 10px; border-bottom:1px solid rgba(255,255,255,.08); vertical-align:top; }
.discount-admin-table th { color:rgba(255,255,255,.72); font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; }
.discount-code-pill { display:inline-flex; align-items:center; gap:8px; padding:7px 11px; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); font-weight:800; letter-spacing:.06em; }
.discount-code-muted { display:block; color:rgba(255,255,255,.62); font-size:.82rem; margin-top:4px; }
.discount-order-box { margin-top:14px; padding:14px; border-radius:18px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.045); }
.discount-order-row { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
.discount-order-row .discount-order-input { flex:1 1 220px; }
.discount-order-row input { text-transform:uppercase; letter-spacing:.04em; }
.discount-error-box { margin: 0 0 14px; padding:12px 14px; border-radius:16px; background:rgba(255,80,95,.14); border:1px solid rgba(255,80,95,.35); color:#ffe3e7; }
.discount-hint { color:rgba(255,255,255,.62); font-size:.86rem; margin-top:8px; }
@media (max-width: 900px) { .discount-admin-grid { grid-template-columns:1fr; } }


/* Rabattcodes: Bearbeiten-Funktion */
.discount-code-preview.edit-mode {
    background: linear-gradient(135deg, rgba(255, 184, 77, .15), rgba(255,255,255,.04));
    border-color: rgba(255, 184, 77, .24);
}
.discount-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 18px;
    color: rgba(255,255,255,.86);
    font-weight: 700;
}
.discount-checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: #e73240;
}
.discount-row-editing td {
    background: rgba(255, 184, 77, .07);
}
.discount-admin-table .small-btn.ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

/* Rabattcodes: unbegrenzte Einlösungen */
.discount-limit-box {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
}
.discount-limit-box input[type="number"]:disabled {
    opacity: .72;
    cursor: not-allowed;
    background: rgba(255,255,255,.055);
}
.discount-unlimited-row {
    margin: 0;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(231,50,64,.08);
    border: 1px solid rgba(231,50,64,.16);
}


/* Live-Preisvorschau für Rabattcodes */
.live-discount-code-box .discount-order-row {
    align-items: stretch;
}
.discount-apply-btn {
    min-height: 46px;
    border-radius: 15px;
    white-space: nowrap;
    background: linear-gradient(135deg, #e73240, #a91625);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 10px 22px rgba(231,50,64,.18);
}
.discount-apply-btn:disabled {
    opacity: .7;
    cursor: wait;
}
.discount-live-message {
    min-height: 0;
    margin-top: 10px;
    font-size: .88rem;
    font-weight: 700;
}
.discount-live-message.success {
    color: #79f2a7;
}
.discount-live-message.error {
    color: #ff9aa5;
}
.order-price-preview {
    margin: 18px 0 16px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.12);
    background:
        radial-gradient(circle at top right, rgba(231,50,64,.18), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.032));
    box-shadow: 0 16px 34px rgba(0,0,0,.24);
}
.order-price-preview.has-success {
    border-color: rgba(121,242,167,.35);
    box-shadow: 0 16px 34px rgba(0,0,0,.24), 0 0 0 1px rgba(121,242,167,.08) inset;
}
.order-price-preview.has-error {
    border-color: rgba(255,91,106,.42);
    box-shadow: 0 16px 34px rgba(0,0,0,.24), 0 0 0 1px rgba(255,91,106,.08) inset;
}
.price-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.price-preview-kicker {
    display: block;
    margin-bottom: 4px;
    color: rgba(255,255,255,.58);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}
.price-preview-total {
    font-size: clamp(1.25rem, 3vw, 1.7rem);
    color: #fff;
    text-align: right;
    white-space: nowrap;
}
.price-preview-rows {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}
.price-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,.8);
}
.price-preview-row strong {
    color: #fff;
}
.price-preview-row.is-discount strong {
    color: #79f2a7;
}
.price-preview-empty {
    color: rgba(255,255,255,.62);
    font-size: .92rem;
    line-height: 1.5;
}
@media (max-width: 640px) {
    .discount-apply-btn {
        width: 100%;
    }
    .price-preview-head {
        flex-direction: column;
    }
    .price-preview-total {
        text-align: left;
        white-space: normal;
    }
}

/* Adminbereich: modernere, klarere Anordnung */
.admin-control-center {
  max-width: 1580px;
  margin: 0 auto;
}
.admin-control-center .admin-hero {
  min-height: 235px;
  margin-bottom: 22px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 78% 16%, rgba(59,130,246,.24), transparent 30%),
    radial-gradient(circle at 16% 10%, rgba(229,9,20,.18), transparent 28%),
    linear-gradient(105deg, rgba(9,12,20,.96), rgba(17,24,39,.70)),
    url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}
.admin-control-center .hero-content-admin {
  max-width: 980px;
  padding: 34px 38px;
}
.admin-control-center .hero-content-admin h1 {
  font-size: clamp(2.15rem, 4.6vw, 4.25rem);
}
.admin-control-center .hero-mini-note {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.055);
  width: fit-content;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.admin-control-center .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}
.admin-control-center .section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  box-shadow: 0 0 18px rgba(229,9,20,.42);
}
.admin-control-center .admin-ops-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: stretch;
}
.admin-control-center .quick-list-card,
.admin-control-center .quick-glance-card,
.admin-control-center .admin-action-grid > .card,
.admin-control-center .admin-collapsible > .card,
.admin-control-center .admin-news-composer {
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.055), transparent 28%),
    linear-gradient(145deg, rgba(18,22,32,.98), rgba(10,12,18,.98));
  box-shadow: 0 16px 42px rgba(0,0,0,.24);
}
.admin-control-center .quick-list-head {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.admin-control-center .admin-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}
.admin-control-center .portal-action-card.compact {
  min-height: 104px;
  padding: 15px;
  border-radius: 20px;
  align-items: flex-start;
  justify-content: space-between;
  background:
    radial-gradient(circle at 80% 5%, rgba(96,165,250,.14), transparent 34%),
    rgba(255,255,255,.035);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.admin-control-center .portal-action-card.compact::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  margin-bottom: 8px;
  background:
    linear-gradient(135deg, rgba(229,9,20,.98), rgba(96,165,250,.88));
  box-shadow: 0 12px 22px rgba(0,0,0,.22);
}
.admin-control-center .portal-action-card.compact:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 80% 5%, rgba(96,165,250,.20), transparent 34%),
    rgba(255,255,255,.055);
}
.admin-control-center .admin-quick-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-control-center .quick-glance-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 20px;
}
.admin-control-center .quick-glance-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,.20), transparent 65%);
}
.admin-control-center .quick-glance-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
}
.admin-control-center .quick-glance-card .metric-number {
  margin: 12px 0 7px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}
.admin-control-center .admin-quick-lists {
  gap: 18px;
}
.admin-control-center .admin-quick-list {
  display: grid;
  gap: 9px;
}
.admin-control-center .admin-quick-item {
  border-radius: 17px;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
}
.admin-control-center a.admin-quick-item:hover {
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.admin-control-center .admin-quick-spacer {
  height: 18px;
}
.admin-control-center .admin-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  align-items: start;
  gap: 18px;
}
.admin-control-center .admin-news-composer {
  order: -1;
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(229,9,20,.18), transparent 26%),
    radial-gradient(circle at 96% 8%, rgba(96,165,250,.16), transparent 28%),
    linear-gradient(145deg, rgba(21,25,36,.98), rgba(10,12,18,.98));
}
.admin-control-center .admin-news-composer .admin-news-form {
  display: grid;
  gap: 14px;
}
.admin-control-center .admin-news-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-control-center .admin-choice-visual {
  min-height: 104px;
  border-radius: 20px;
}
.admin-control-center .admin-action-grid > .card:not(.admin-news-composer) {
  padding: 18px;
  border-radius: 24px;
}
.admin-control-center .admin-action-grid > .card:not(.admin-news-composer) h3 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.admin-control-center form label {
  margin-top: 12px;
  color: rgba(255,255,255,.78);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
}
.admin-control-center input,
.admin-control-center select,
.admin-control-center textarea {
  border-radius: 15px;
  background: rgba(255,255,255,.055);
}
.admin-control-center .admin-collapsible {
  border-radius: 26px;
  overflow: hidden;
}
.admin-control-center .admin-collapsible > summary {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  font-weight: 900;
  letter-spacing: -.01em;
}
.admin-control-center .admin-collapsible[open] > summary {
  border-color: rgba(229,9,20,.24);
  background:
    radial-gradient(circle at left, rgba(229,9,20,.13), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.03));
}
.admin-control-center .admin-filter-bar {
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}
.admin-control-center table {
  border-collapse: separate;
  border-spacing: 0 8px;
}
.admin-control-center tbody tr {
  background: rgba(255,255,255,.032);
}
.admin-control-center tbody td:first-child,
.admin-control-center tbody th:first-child {
  border-radius: 14px 0 0 14px;
}
.admin-control-center tbody td:last-child,
.admin-control-center tbody th:last-child {
  border-radius: 0 14px 14px 0;
}
@media (max-width: 1180px) {
  .admin-control-center .admin-shortcut-grid,
  .admin-control-center .admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-control-center .admin-news-composer {
    grid-column: 1 / -1;
  }
}
@media (max-width: 820px) {
  .admin-control-center {
    max-width: none;
  }
  .admin-control-center .hero-content-admin {
    padding: 28px 22px;
  }
  .admin-control-center .admin-ops-grid,
  .admin-control-center .admin-quick-stats,
  .admin-control-center .admin-quick-lists,
  .admin-control-center .admin-shortcut-grid,
  .admin-control-center .admin-action-grid,
  .admin-control-center .admin-news-type-grid {
    grid-template-columns: 1fr;
  }
  .admin-control-center .hero-mini-note {
    width: auto;
    border-radius: 18px;
  }
}


/* Admin kompakt: Direktaktionen entfernt, Übersichtskarten kleiner */
.admin-control-center .admin-quick-stats {
  gap: 10px !important;
  align-items: stretch;
}
.admin-control-center .quick-glance-card {
  min-height: 92px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  display: grid;
  align-content: center;
  gap: 4px;
}
.admin-control-center .quick-glance-card .quick-glance-kicker {
  font-size: .72rem;
  letter-spacing: .08em;
  opacity: .78;
}
.admin-control-center .quick-glance-card .metric-number {
  font-size: 1.85rem !important;
  line-height: 1;
  margin: 0;
}
.admin-control-center .quick-glance-card p {
  display: none !important;
}
.admin-control-center .admin-quick-spacer {
  height: 8px !important;
  min-height: 8px !important;
}
.admin-control-center .admin-quick-lists {
  gap: 10px !important;
}
.admin-control-center .quick-list-card {
  padding: 14px !important;
  border-radius: 18px !important;
}
.admin-control-center .quick-list-head {
  margin-bottom: 10px !important;
}
.admin-control-center .quick-list-head h3 {
  font-size: 1rem !important;
}
.admin-control-center .quick-list-head .small-btn {
  padding: 7px 10px !important;
  font-size: .78rem !important;
}
.admin-control-center .admin-quick-list {
  gap: 7px !important;
}
.admin-control-center .admin-quick-item {
  min-height: 0 !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  gap: 10px !important;
}
.admin-control-center .admin-quick-item strong {
  font-size: .88rem !important;
  line-height: 1.25;
}
.admin-control-center .admin-quick-item div span,
.admin-control-center .admin-quick-item > span:not(.status-pill) {
  font-size: .74rem !important;
}
.admin-control-center .admin-quick-item .status-pill {
  padding: 5px 8px !important;
  font-size: .7rem !important;
  white-space: nowrap;
}
.admin-control-center .admin-website-stat-wrap {
  margin-top: 0 !important;
}
.admin-control-center .admin-website-stat-card {
  padding: 12px 14px !important;
}
.admin-control-center .admin-website-stat-card .quick-list-head {
  margin-bottom: 8px !important;
}
.admin-control-center .admin-website-stat-card .admin-quick-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}
.admin-control-center .admin-website-stat-card .admin-quick-item {
  padding: 8px 10px !important;
}
.admin-control-center .admin-website-stat-card .admin-quick-item div span {
  display: none !important;
}
.admin-control-center .admin-website-stat-card .admin-quick-item strong {
  font-size: .82rem !important;
}
.admin-control-center .admin-website-stat-card .status-pill {
  font-size: .78rem !important;
  padding: 5px 9px !important;
}
@media (max-width: 760px) {
  .admin-control-center .quick-glance-card {
    min-height: 78px !important;
    padding: 12px 14px !important;
  }
  .admin-control-center .quick-glance-card .metric-number {
    font-size: 1.6rem !important;
  }
  .admin-control-center .admin-website-stat-card .admin-quick-list {
    grid-template-columns: 1fr;
  }
}


/* Admin Aktionen kompakter: Content Creator und kleine Verwaltungsfelder */
.admin-control-center .admin-action-grid {
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr) minmax(0, 1.15fr) !important;
  gap: 12px !important;
  align-items: start !important;
}
.admin-control-center .admin-news-composer {
  order: 0 !important;
  grid-column: span 2 !important;
  padding: 15px !important;
  border-radius: 20px !important;
  min-height: 0 !important;
}
.admin-control-center .admin-news-composer-head {
  display: grid !important;
  gap: 4px !important;
  margin-bottom: 8px !important;
}
.admin-control-center .admin-news-composer-head .showcase-chip {
  width: fit-content !important;
  padding: 5px 9px !important;
  font-size: .68rem !important;
}
.admin-control-center .admin-news-composer-head h3 {
  margin: 0 !important;
  font-size: 1.15rem !important;
  line-height: 1.15 !important;
}
.admin-control-center .admin-news-composer-head p {
  margin: 0 !important;
  font-size: .78rem !important;
  line-height: 1.35 !important;
  max-width: 760px !important;
}
.admin-control-center .admin-news-composer .admin-news-form {
  gap: 8px !important;
}
.admin-control-center .admin-news-type-grid {
  gap: 8px !important;
  margin-bottom: 4px !important;
}
.admin-control-center .admin-choice-visual {
  min-height: 58px !important;
  padding: 10px 12px !important;
  border-radius: 15px !important;
}
.admin-control-center .admin-choice-visual strong {
  margin-bottom: 3px !important;
  font-size: .92rem !important;
}
.admin-control-center .admin-choice-visual small {
  font-size: .72rem !important;
  line-height: 1.3 !important;
}
.admin-control-center .admin-news-composer .cards {
  gap: 8px !important;
}
.admin-control-center .admin-news-composer .cards.one,
.admin-control-center .admin-news-composer .cards.two {
  margin: 0 !important;
}
.admin-control-center .admin-news-composer label {
  margin-top: 6px !important;
  font-size: .7rem !important;
}
.admin-control-center .tmdb-lookup-row {
  gap: 8px !important;
}
.admin-control-center .tmdb-lookup-row .secondary-btn,
.admin-control-center .admin-news-composer button[type="submit"] {
  min-height: 38px !important;
  padding: 9px 12px !important;
  font-size: .82rem !important;
}
.admin-control-center .admin-news-composer input,
.admin-control-center .admin-news-composer select {
  min-height: 38px !important;
  padding: 9px 11px !important;
  border-radius: 12px !important;
}
.admin-control-center .admin-news-composer textarea {
  min-height: 126px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
}
.admin-control-center .admin-news-composer .field-hint,
.admin-control-center .admin-news-composer .tmdb-status {
  margin-top: 4px !important;
  font-size: .72rem !important;
  line-height: 1.35 !important;
}
.admin-control-center .admin-news-composer .upload-dropzone {
  min-height: 105px !important;
  border-radius: 14px !important;
}
.admin-control-center .admin-news-composer .upload-dropzone-inner {
  gap: 3px !important;
  padding: 10px !important;
}
.admin-control-center .admin-news-composer .upload-dropzone-icon {
  width: 28px !important;
  height: 28px !important;
  font-size: .9rem !important;
}
.admin-control-center .admin-news-composer .upload-dropzone-inner strong {
  font-size: .82rem !important;
}
.admin-control-center .admin-news-composer .upload-dropzone-inner span,
.admin-control-center .admin-news-composer .upload-dropzone-inner small {
  font-size: .68rem !important;
  line-height: 1.25 !important;
}
.admin-control-center .admin-news-composer .info-box {
  padding: 8px 10px !important;
  border-radius: 12px !important;
  font-size: .72rem !important;
  line-height: 1.35 !important;
}
.admin-control-center .admin-action-grid > .card:not(.admin-news-composer) {
  padding: 12px !important;
  border-radius: 18px !important;
}
.admin-control-center .admin-action-grid > .card:not(.admin-news-composer) h3 {
  margin: 0 0 8px !important;
  padding-bottom: 8px !important;
  font-size: .98rem !important;
}
.admin-control-center .admin-action-grid > .card:not(.admin-news-composer) form {
  display: grid !important;
  gap: 7px !important;
}
.admin-control-center .admin-action-grid > .card:not(.admin-news-composer) form label {
  margin-top: 4px !important;
  font-size: .68rem !important;
  letter-spacing: .055em !important;
}
.admin-control-center .admin-action-grid > .card:not(.admin-news-composer) input,
.admin-control-center .admin-action-grid > .card:not(.admin-news-composer) select,
.admin-control-center .admin-action-grid > .card:not(.admin-news-composer) textarea {
  min-height: 36px !important;
  padding: 8px 10px !important;
  border-radius: 11px !important;
}
.admin-control-center .admin-action-grid > .card:not(.admin-news-composer) textarea {
  min-height: 76px !important;
}
.admin-control-center .admin-action-grid > .card:not(.admin-news-composer) button[type="submit"] {
  margin-top: 4px !important;
  min-height: 38px !important;
  padding: 9px 11px !important;
  font-size: .8rem !important;
  border-radius: 12px !important;
}
.admin-control-center .admin-action-grid > .card:nth-child(4),
.admin-control-center .admin-action-grid > .card:nth-child(5) {
  align-self: stretch !important;
}
@media (min-width: 1181px) {
  .admin-control-center .admin-action-grid > .card:nth-child(1),
  .admin-control-center .admin-action-grid > .card:nth-child(3) {
    grid-column: 1 !important;
  }
  .admin-control-center .admin-action-grid > .card:nth-child(4) {
    grid-column: 2 !important;
  }
  .admin-control-center .admin-action-grid > .card:nth-child(5) {
    grid-column: 3 !important;
  }
}
@media (max-width: 1180px) {
  .admin-control-center .admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .admin-control-center .admin-news-composer {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 760px) {
  .admin-control-center .admin-action-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-control-center .admin-news-composer {
    grid-column: auto !important;
  }
}


/* Admin Mobile Ansicht - kompakte Smartphone/Tablet Optimierung */
@media (max-width: 980px) {
  .app-layout {
    display: block !important;
  }

  .sidebar {
    position: relative !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 12px 12px 8px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    background: rgba(8, 12, 22, .92) !important;
    backdrop-filter: blur(12px);
  }

  .sidebar h3 {
    margin: 0 0 8px !important;
    font-size: .75rem !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55) !important;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 7px !important;
    overflow-x: auto !important;
    padding: 0 0 6px !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    padding: 9px 12px !important;
    border-radius: 999px !important;
    font-size: .82rem !important;
    scroll-snap-align: start;
    border: 1px solid rgba(255,255,255,.08) !important;
    background: rgba(255,255,255,.045) !important;
  }

  .nav-links a.active,
  .nav-links a:hover {
    background: rgba(229,9,20,.18) !important;
    border-color: rgba(229,9,20,.28) !important;
  }

  .content.admin-control-center {
    padding: 14px 12px 28px !important;
  }

  .admin-control-center .admin-hero {
    min-height: 190px !important;
    border-radius: 22px !important;
    margin-bottom: 14px !important;
  }

  .admin-control-center .hero-content-admin {
    padding: 22px 18px !important;
  }

  .admin-control-center .hero-content-admin h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem) !important;
    line-height: 1.05 !important;
  }

  .admin-control-center .hero-content-admin p {
    font-size: .92rem !important;
    line-height: 1.45 !important;
  }

  .admin-control-center .hero-mini-note {
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  .admin-control-center .section-block,
  .admin-control-center .section-block-tight {
    margin-top: 14px !important;
    margin-bottom: 14px !important;
  }

  .admin-control-center .section-title {
    font-size: .9rem !important;
    margin-bottom: 10px !important;
  }

  .admin-control-center .cards,
  .admin-control-center .cards.two,
  .admin-control-center .cards.three,
  .admin-control-center .cards.one,
  .admin-control-center .admin-action-grid,
  .admin-control-center .admin-quick-stats,
  .admin-control-center .admin-quick-lists,
  .admin-control-center .admin-news-type-grid,
  .admin-control-center .process-grid-three,
  .admin-control-center .portal-mini-stats-three {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .admin-control-center .admin-quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .admin-control-center .quick-glance-card {
    min-height: 72px !important;
    padding: 10px 9px !important;
    border-radius: 16px !important;
    text-align: center;
  }

  .admin-control-center .quick-glance-card .quick-glance-kicker {
    font-size: .62rem !important;
    line-height: 1.2 !important;
  }

  .admin-control-center .quick-glance-card .metric-number {
    font-size: 1.35rem !important;
  }

  .admin-control-center .quick-list-card,
  .admin-control-center .admin-action-grid > .card,
  .admin-control-center .admin-news-composer,
  .admin-control-center .admin-collapsible > .card {
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .admin-control-center .quick-list-head {
    gap: 8px !important;
    align-items: flex-start !important;
  }

  .admin-control-center .quick-list-head h3,
  .admin-control-center .admin-action-grid > .card h3,
  .admin-control-center .admin-news-composer-head h3 {
    font-size: 1rem !important;
  }

  .admin-control-center .quick-list-head .small-btn,
  .admin-control-center .small-btn {
    padding: 7px 9px !important;
    font-size: .75rem !important;
  }

  .admin-control-center .admin-quick-list {
    gap: 7px !important;
  }

  .admin-control-center .admin-quick-item {
    padding: 8px 9px !important;
    border-radius: 13px !important;
    align-items: flex-start !important;
  }

  .admin-control-center .admin-quick-item strong {
    font-size: .84rem !important;
  }

  .admin-control-center .admin-quick-item div span,
  .admin-control-center .muted {
    font-size: .74rem !important;
  }

  .admin-control-center .status-pill {
    padding: 4px 7px !important;
    font-size: .66rem !important;
  }

  .admin-control-center .admin-news-composer {
    grid-column: auto !important;
  }

  .admin-control-center .admin-news-composer-head {
    margin-bottom: 10px !important;
  }

  .admin-control-center .admin-news-composer-head p {
    font-size: .78rem !important;
    line-height: 1.35 !important;
  }

  .admin-control-center .admin-choice-visual {
    padding: 10px !important;
    min-height: 70px !important;
  }

  .admin-control-center .admin-choice-visual strong {
    font-size: .86rem !important;
  }

  .admin-control-center .admin-choice-visual small {
    font-size: .7rem !important;
  }

  .admin-control-center form label {
    margin-top: 9px !important;
    font-size: .72rem !important;
  }

  .admin-control-center input,
  .admin-control-center select,
  .admin-control-center textarea {
    min-height: 40px !important;
    padding: 9px 10px !important;
    font-size: .9rem !important;
    border-radius: 12px !important;
  }

  .admin-control-center textarea {
    min-height: 96px !important;
  }

  .admin-control-center button,
  .admin-control-center .secondary-btn,
  .admin-control-center form button[type="submit"] {
    min-height: 40px !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    font-size: .86rem !important;
  }

  .admin-control-center .tmdb-lookup-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .admin-control-center .tmdb-lookup-row .secondary-btn,
  .admin-control-center .admin-news-composer button[type="submit"] {
    width: 100% !important;
  }

  .admin-control-center .admin-filter-bar,
  .admin-control-center .panel-search-row,
  .admin-control-center .admin-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .admin-control-center table {
    min-width: 720px !important;
  }

  .admin-control-center .table-wrap,
  .admin-control-center .admin-table-wrap,
  .admin-control-center .discount-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .admin-control-center .admin-collapsible > summary {
    padding: 12px 14px !important;
    border-radius: 16px !important;
    font-size: .9rem !important;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  .brand {
    font-size: 1rem !important;
  }

  .topbar-right {
    gap: 6px !important;
  }

  .profile-chip,
  .ghost-btn {
    padding: 7px 9px !important;
    font-size: .74rem !important;
  }

  .admin-control-center .admin-quick-stats {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 7px !important;
  }

  .admin-control-center .quick-glance-card {
    padding: 9px 6px !important;
  }

  .admin-control-center .quick-glance-card .quick-glance-kicker {
    font-size: .56rem !important;
    letter-spacing: .05em !important;
  }

  .admin-control-center .quick-glance-card .metric-number {
    font-size: 1.18rem !important;
  }

  .admin-control-center .admin-website-stat-card .admin-quick-list {
    grid-template-columns: 1fr !important;
  }
}


/* Login-Popup: neue Streaming-Inhalte nur als kurze Vorschau anzeigen */
.login-updates-dialog {
  max-width: min(760px, calc(100vw - 28px));
}
.login-update-item .login-update-teaser {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  max-height: 3.1em;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}
.login-updates-section .login-update-item h4 {
  margin-bottom: 4px;
}
.login-updates-section .tmdb-rating-inline {
  margin: 4px 0 2px;
  font-size: .82rem;
}
@media (max-width: 640px) {
  .login-updates-dialog {
    max-width: calc(100vw - 18px);
  }
  .login-update-item .login-update-teaser {
    -webkit-line-clamp: 2;
    max-height: 3em;
  }
}


/* Dashboard Bonusbereich: optimierte Fortschritts- und Bonuszielanzeige */
.dashboard-bonus-overview .bonus-overview-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.dashboard-bonus-overview .bonus-overview-title-row .section-title {
  margin-bottom: 4px;
}
.dashboard-bonus-overview .bonus-overview-title-row p {
  margin: 0;
}
.bonus-overview-link {
  flex: 0 0 auto;
}
.bonus-dual-grid-optimized {
  align-items: stretch;
  gap: 16px;
}
.bonus-progress-card,
.bonus-goal-card-optimized {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 16% 0%, rgba(255,255,255,.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}
.bonus-progress-card::after,
.bonus-goal-card-optimized::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
  opacity: .7;
}
.bonus-progress-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}
.bonus-progress-ring {
  --bonus-progress: 0%;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(9,12,20,.96) 0 56%, transparent 57%),
    conic-gradient(from -90deg, rgba(255, 185, 78, .95) var(--bonus-progress), rgba(255,255,255,.12) 0);
  box-shadow: 0 16px 34px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.08);
}
.bonus-progress-ring span {
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -.03em;
}
.bonus-progress-copy {
  min-width: 0;
}
.bonus-side-progress-note.compact {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
}
.bonus-progress-track.improved {
  height: 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.085);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.28);
}
.bonus-progress-track.improved .bonus-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb84d, #ff6f61, #a855f7);
  box-shadow: 0 0 18px rgba(255,184,77,.35);
}
.bonus-progress-track.improved.milestone .bonus-progress-fill {
  background: linear-gradient(90deg, #38d9a9, #3b82f6, #a855f7);
  box-shadow: 0 0 18px rgba(59,130,246,.28);
}
.progress-mini-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: rgba(255,255,255,.62);
  font-size: .78rem;
}
.bonus-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.bonus-metrics-row > div {
  padding: 10px 11px;
  border-radius: 16px;
  background: rgba(255,255,255,.042);
  border: 1px solid rgba(255,255,255,.075);
}
.bonus-metrics-row span {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: .72rem;
  margin-bottom: 3px;
}
.bonus-metrics-row strong {
  display: block;
  color: #fff;
  font-size: .9rem;
  line-height: 1.2;
}
.bonus-goal-progress-card {
  padding: 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(56,217,169,.12), transparent 34%),
    rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.075);
  margin: 12px 0;
}
.bonus-goal-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.bonus-goal-progress-top span {
  color: rgba(255,255,255,.64);
  font-size: .8rem;
}
.bonus-goal-progress-top strong {
  color: #fff;
  font-size: 1.15rem;
}
.bonus-ladder-optimized {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.bonus-ladder-optimized .bonus-tier {
  justify-content: center;
  text-align: center;
  min-height: 38px;
  border-radius: 14px;
}
.bonus-goal-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.bonus-goal-note.optimized {
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(56,217,169,.075);
  border: 1px solid rgba(56,217,169,.12);
  color: rgba(255,255,255,.76);
}
@media (max-width: 900px) {
  .dashboard-bonus-overview .bonus-overview-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .bonus-overview-link {
    width: 100%;
    justify-content: center;
  }
  .bonus-progress-hero {
    grid-template-columns: 1fr;
  }
  .bonus-progress-ring {
    width: 76px;
    height: 76px;
  }
  .bonus-metrics-row {
    grid-template-columns: 1fr;
  }
  .bonus-ladder-optimized {
    grid-template-columns: 1fr;
  }
  .progress-mini-label {
    flex-direction: column;
    gap: 3px;
  }
}


/* Dashboard Bonusbereich: kompakter Ring rechts neben "Ränge ansehen" */
.bonus-progress-card .bonus-side-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.bonus-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.bonus-progress-hero-compact {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 12px;
}
.bonus-progress-ring-compact {
  width: 64px;
  height: 64px;
  min-width: 64px;
  flex: 0 0 64px;
  box-shadow: 0 10px 24px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.08);
}
.bonus-progress-ring-compact span {
  display: block;
  font-size: .92rem;
  line-height: 1;
  margin-top: 2px;
}
.bonus-progress-ring-compact small {
  display: block;
  margin-top: 2px;
  font-size: .56rem;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.64);
}
.bonus-progress-ring-remaining {
  background:
    radial-gradient(circle at center, rgba(9,12,20,.96) 0 56%, transparent 57%),
    conic-gradient(from -90deg, rgba(99, 102, 241, .95) var(--bonus-progress), rgba(255,255,255,.12) 0);
}
.bonus-progress-ring-remaining.is-complete {
  background:
    radial-gradient(circle at center, rgba(9,12,20,.96) 0 56%, transparent 57%),
    conic-gradient(from -90deg, rgba(255,255,255,.12) 0, rgba(255,255,255,.12) 100%);
}
.bonus-progress-card .bonus-side-progress-note.compact {
  margin-bottom: 8px;
}
.bonus-progress-card .progress-mini-label {
  margin-top: 6px;
}
@media (max-width: 900px) {
  .bonus-head-actions {
    width: 100%;
    justify-content: space-between;
  }
  .bonus-progress-ring-compact {
    width: 58px;
    height: 58px;
    min-width: 58px;
    flex-basis: 58px;
  }
  .bonus-progress-ring-compact span {
    font-size: .82rem;
  }
  .bonus-progress-ring-compact small {
    font-size: .5rem;
  }
}


/* Bonus-Dashboard: Prozentring entfernt, Details kompakt oben rechts */
.bonus-progress-card .bonus-side-head > .bonus-open-modal {
  flex: 0 0 auto;
}
.bonus-goal-head-compact {
  position: relative;
  align-items: flex-start !important;
  padding-right: 86px;
}
.bonus-goal-head-compact .bonus-details-corner-btn {
  position: absolute;
  top: 0;
  right: 0;
  padding: 7px 10px !important;
  min-height: 32px;
  font-size: .76rem !important;
}
.bonus-goal-card-optimized .bonus-goal-progress-card {
  margin-top: 8px;
  margin-bottom: 10px;
  padding: 12px;
}
.bonus-goal-card-optimized .bonus-ladder-optimized {
  gap: 6px;
}
.bonus-goal-card-optimized .bonus-goal-summary {
  margin-top: 9px;
}
.bonus-goal-card-optimized .bonus-side-head h3 {
  padding-right: 0;
}
@media (max-width: 640px) {
  .bonus-goal-head-compact {
    padding-right: 0;
  }
  .bonus-goal-head-compact .bonus-details-corner-btn {
    position: static;
    align-self: flex-start;
    margin-top: 8px;
  }
}


/* Dashboard Rabattcode-Banner */
.portal-discount-ad-stack {
  display: grid;
  gap: 12px;
}
.dashboard-discount-ad-section {
  margin-top: 0;
}
.portal-discount-ad {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(135deg, rgba(38, 186, 153, .97), rgba(37, 119, 203, .95));
  box-shadow: 0 12px 30px rgba(0,0,0,.24), 0 0 20px rgba(61, 209, 181, .16);
  color: #fff;
}
.portal-discount-ad::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.22) 42%, transparent 55%);
  transform: translateX(-120%);
  animation: portalDiscountShine 5s ease-in-out infinite;
}
@keyframes portalDiscountShine {
  0%, 55% { transform: translateX(-120%); }
  72%, 100% { transform: translateX(120%); }
}
.portal-discount-ad-main,
.portal-discount-ad-codebox,
.portal-discount-ad-countdown,
.portal-discount-ad-cta {
  position: relative;
  z-index: 1;
}
.portal-discount-ad-kicker,
.portal-discount-timer-label,
.portal-discount-ad-title {
  display: block;
  color: rgba(255,255,255,.84);
  font-size: .68rem;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.portal-discount-ad-main strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(.95rem, 1.55vw, 1.25rem);
  line-height: 1.1;
}
.portal-discount-ad-title {
  margin-top: 3px;
  text-transform: none;
  letter-spacing: 0;
  font-size: .78rem;
}
.portal-discount-ad-codebox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  flex: 0 0 auto;
}
.portal-discount-code {
  font-weight: 900;
  letter-spacing: .08em;
  font-size: .88rem;
  white-space: nowrap;
}
.portal-discount-copy,
.portal-discount-ad-cta {
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #14635a;
  font-weight: 800;
  padding: 6px 10px;
  font-size: .82rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.portal-discount-ad-codebox > .portal-discount-copy,
button.portal-discount-copy[data-copy-discount-code] {
  inline-size: 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  block-size: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  flex: 0 0 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1;
}
.portal-discount-copy::before {
  content: "⧉";
  font-size: .78rem;
  line-height: 1;
}
.portal-discount-copy.is-copied::before {
  content: "✓";
}
.portal-discount-copy-label {
  display: none !important;
}
.portal-discount-copy:hover,
.portal-discount-ad-cta:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}
.portal-discount-ad-countdown {
  min-width: 108px;
  padding: 6px 10px;
  border-radius: 13px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
}
.portal-discount-ad-countdown strong {
  display: block;
  margin-top: 2px;
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
}
.portal-discount-ad.is-expiring .portal-discount-ad-countdown {
  background: rgba(255,255,255,.22);
}
.portal-discount-ad.is-expiring {
  box-shadow: 0 12px 30px rgba(0,0,0,.24), 0 0 24px rgba(255, 217, 102, .18);
}
.mobile-portal-discount-ads {
  display: none;
}
.discount-ad-toggle-row {
  margin-top: 12px;
}
@media (max-width: 900px) {
  .dashboard-portal-discount-ads {
    display: none;
  }
  .mobile-portal-discount-ads {
    display: grid;
    width: 100%;
  }
  .portal-discount-ad {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
  .portal-discount-ad-codebox {
    justify-content: flex-start !important;
    width: fit-content;
    max-width: 100%;
  }
  .portal-discount-ad-countdown {
    text-align: left;
  }
  .portal-discount-ad-cta {
    text-align: center;
  }
}







/* Account-Bestellformular: verfeinerte, luftigere Darstellung */
.order-form-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(129, 140, 248, .07), transparent 34%),
    linear-gradient(315deg, rgba(148, 163, 184, .06), transparent 38%),
    linear-gradient(180deg, rgba(24, 28, 38, .98), rgba(15, 18, 26, .98)) !important;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 10px 28px rgba(129, 140, 248, .08) !important;
}

.order-form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 22%, transparent 78%, rgba(255,255,255,.02)),
    radial-gradient(circle at 18% 22%, rgba(129, 140, 248, .08), transparent 26%),
    radial-gradient(circle at 82% 76%, rgba(96, 165, 250, .06), transparent 28%);
  opacity: .95;
}

.order-form-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.order-form-panel-head {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  padding: 20px 24px 16px;
  border-radius: 24px 24px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(129, 140, 248, .05)),
    rgba(255,255,255,.02);
}

.order-form-panel-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #f8fafc;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.order-form-panel-head h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
  background: linear-gradient(135deg, #b4befe, #7dd3fc);
  box-shadow: 0 0 14px rgba(129,140,248,.35);
}

.order-form-panel-head .muted {
  color: rgba(255,255,255,.68);
}

.separated-order-form {
  position: relative;
  z-index: 1;
  padding: 8px 20px 20px;
  border-top: 1px solid rgba(255,255,255,.06) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(129,140,248,.028) 46%, rgba(255,255,255,.01) 100%);
  border-radius: 0 0 24px 24px;
}

.separated-order-form > .cards.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
  align-items: start;
}

.separated-order-form > .cards.two > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.022));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 22px rgba(0,0,0,.16);
}

.separated-order-form .discount-order-box,
.separated-order-form .order-discount-box,
.separated-order-form .order-price-preview,
.separated-order-form .order-submit-zone {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.022)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 22px rgba(0,0,0,.16);
}

.separated-order-form > .cards.two > div::before,
.separated-order-form .discount-order-box::before,
.separated-order-form .order-discount-box::before,
.separated-order-form .order-price-preview::before,
.separated-order-form .order-submit-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(129,140,248,.04), transparent 38%), linear-gradient(315deg, rgba(96,165,250,.03), transparent 42%);
}

.separated-order-form label {
  color: rgba(255,255,255,.88);
  margin: 14px 0 8px;
}

.separated-order-form > .cards.two > div label:first-child {
  margin-top: 0;
}

.separated-order-form input,
.separated-order-form select,
.separated-order-form textarea {
  min-width: 0;
  border-color: rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.026) !important;
  color: #f8fafc;
  padding: 15px 16px;
  font-size: 15px;
  line-height: 1.35;
}

.separated-order-form input::placeholder,
.separated-order-form textarea::placeholder {
  color: rgba(255,255,255,.42);
}

.separated-order-form input:focus,
.separated-order-form select:focus,
.separated-order-form textarea:focus {
  border-color: rgba(129,140,248,.52) !important;
  box-shadow: 0 0 0 3px rgba(129,140,248,.10), 0 0 16px rgba(129,140,248,.08) !important;
}

.separated-order-form .discount-order-box,
.separated-order-form .order-discount-box,
.separated-order-form .order-price-preview,
.separated-order-form .order-submit-zone {
  margin-top: 16px;
  padding: 16px 18px;
}

.order-form-panel .order-price-preview {
  border-color: rgba(129,140,248,.18) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04), 0 0 22px rgba(129,140,248,.06) !important;
}

.order-form-panel .discount-order-box,
.order-form-panel .order-discount-box {
  border-color: rgba(96,165,250,.14) !important;
}

.order-form-panel .discount-order-row {
  gap: 12px;
  align-items: stretch;
}

.order-form-panel .discount-order-row .discount-order-input {
  flex: 1 1 320px;
  min-width: 220px;
}

.order-form-panel .discount-apply-btn,
.order-form-panel button[type="submit"] {
  min-height: 50px;
}

.order-form-panel button[type="submit"] {
  background: linear-gradient(135deg, #8b5cf6, #6366f1 52%, #60a5fa) !important;
  box-shadow: 0 16px 32px rgba(99,102,241,.22), 0 0 18px rgba(96,165,250,.08) !important;
}

.order-form-end-marker {
  color: rgba(255,255,255,.48);
  margin-top: 14px;
}

@media (max-width: 940px) {
  .separated-order-form > .cards.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .order-form-panel-head {
    padding: 18px 18px 14px;
    margin-bottom: 10px;
  }

  .separated-order-form {
    padding: 8px 14px 16px;
  }

  .separated-order-form > .cards.two {
    gap: 14px;
  }

  .separated-order-form > .cards.two > div,
  .separated-order-form .discount-order-box,
  .separated-order-form .order-discount-box,
  .separated-order-form .order-price-preview,
  .separated-order-form .order-submit-zone {
    padding: 14px;
    border-radius: 18px !important;
  }

  .order-form-panel .discount-order-row .discount-order-input {
    min-width: 0;
  }
}


/* Bestellformular: breitere, entspanntere Anordnung */
.order-create-shell {
  padding: 28px 30px !important;
}

.order-form-panel {
  margin-top: 8px;
}

.order-form-panel-head {
  margin: 0 0 10px !important;
  padding: 22px 28px 16px !important;
}

.order-form-panel-head h3 {
  font-size: 1.18rem !important;
}

.separated-order-form {
  padding: 10px 28px 26px !important;
}

.order-form-primary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 18px;
  align-items: end;
  margin-bottom: 4px;
}

.order-form-field {
  min-width: 0;
}

.order-form-field-wide {
  min-width: 0;
}

.order-form-field label {
  margin: 0 0 8px !important;
}

.order-form-field input,
.order-form-field select {
  margin-bottom: 0 !important;
  min-height: 52px;
}

.separated-order-form .discount-order-box,
.separated-order-form .order-discount-box,
.separated-order-form .order-price-preview,
.separated-order-form .order-submit-zone {
  margin-top: 18px !important;
  padding: 18px 20px !important;
}

.order-form-panel .discount-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.order-form-panel .discount-order-row .discount-order-input {
  min-width: 0;
}

.order-form-panel .discount-apply-btn {
  min-width: 220px;
  min-height: 52px;
}

.order-submit-zone {
  padding-top: 20px !important;
}

@media (max-width: 1220px) {
  .order-form-primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .order-create-shell {
    padding: 22px 20px !important;
  }

  .order-form-panel-head {
    padding: 20px 20px 14px !important;
  }

  .separated-order-form {
    padding: 10px 20px 22px !important;
  }
}

@media (max-width: 700px) {
  .order-create-shell {
    padding: 18px 14px !important;
  }

  .order-form-primary-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .separated-order-form {
    padding: 8px 14px 18px !important;
  }

  .order-form-panel-head {
    padding: 18px 16px 14px !important;
  }

  .order-form-panel .discount-order-row {
    grid-template-columns: 1fr;
  }

  .order-form-panel .discount-apply-btn {
    width: 100%;
    min-width: 0;
  }
}


/* Bestellformular: eigene Bubble, breiter und freier */
.order-create-shell-info {
  margin-bottom: 18px !important;
}

.order-form-bubble-wrap {
  width: min(100%, 1480px);
  margin: 18px auto 0;
}

.order-form-own-bubble {
  width: 100%;
  margin-top: 0 !important;
  padding: 0 !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background:
    linear-gradient(135deg, rgba(129, 140, 248, .075), transparent 34%),
    linear-gradient(315deg, rgba(96, 165, 250, .055), transparent 38%),
    linear-gradient(180deg, rgba(24, 28, 38, .985), rgba(15, 18, 26, .985)) !important;
  box-shadow:
    0 26px 64px rgba(0,0,0,.38),
    0 0 0 1px rgba(255,255,255,.035) inset,
    0 12px 30px rgba(129,140,248,.08) !important;
}

.order-form-own-bubble .order-form-panel-head {
  margin: 0 !important;
  padding: 24px 30px 18px !important;
}

.order-form-own-bubble .separated-order-form {
  padding: 18px 30px 30px !important;
}

.order-form-own-bubble .order-form-primary-grid {
  grid-template-columns: minmax(180px, .95fr) minmax(180px, .95fr) minmax(190px, .9fr) minmax(300px, 1.45fr);
  gap: 18px 20px;
}

.order-form-own-bubble .order-form-field input,
.order-form-own-bubble .order-form-field select {
  min-height: 54px;
}

.order-form-own-bubble .discount-order-box,
.order-form-own-bubble .order-discount-box,
.order-form-own-bubble .order-price-preview,
.order-form-own-bubble .order-submit-zone {
  margin-top: 20px !important;
}

.order-form-own-bubble .discount-order-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.order-form-own-bubble .discount-apply-btn {
  min-width: 230px;
}

@media (max-width: 1220px) {
  .order-form-own-bubble .order-form-primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .order-form-bubble-wrap {
    margin-top: 14px;
  }

  .order-form-own-bubble {
    border-radius: 22px !important;
  }

  .order-form-own-bubble .order-form-panel-head {
    padding: 18px 16px 14px !important;
  }

  .order-form-own-bubble .separated-order-form {
    padding: 12px 14px 18px !important;
  }

  .order-form-own-bubble .order-form-primary-grid {
    grid-template-columns: 1fr;
  }

  .order-form-own-bubble .discount-order-row {
    grid-template-columns: 1fr;
  }

  .order-form-own-bubble .discount-apply-btn {
    width: 100%;
    min-width: 0;
  }
}


/* Server-Info bearbeiten: Titelbild nachträglich ändern */
.announcement-image-edit-box {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin: 18px 0 20px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022));
}
.announcement-image-preview {
  min-height: 210px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 16px 34px rgba(0,0,0,.22);
}
.announcement-remove-image-row {
  margin-top: 12px;
}
.announcement-edit-form input[type="file"] {
  padding: 12px;
}
@media (max-width: 760px) {
  .announcement-image-edit-box {
    grid-template-columns: 1fr;
  }
  .announcement-image-preview {
    min-height: 190px;
  }
}


/* Bonusziel-Bubble: Details-Button wirklich oben rechts platzieren */
.bonus-goal-card-optimized {
  position: relative !important;
  padding-top: 18px !important;
}
.bonus-goal-card-optimized .bonus-goal-head-compact {
  position: static !important;
  display: block !important;
  padding-right: 82px !important;
  margin-bottom: 8px !important;
}
.bonus-goal-card-optimized .bonus-details-corner-btn {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 4;
  padding: 6px 10px !important;
  min-height: 30px !important;
  line-height: 1 !important;
  font-size: .74rem !important;
  border-radius: 999px !important;
}
.bonus-goal-card-optimized .bonus-side-head h3 {
  margin-right: 0 !important;
  line-height: 1.18;
}
.bonus-goal-card-optimized .bonus-side-head .muted {
  margin-top: 4px !important;
  line-height: 1.35;
}
.bonus-goal-card-optimized .bonus-goal-progress-card {
  margin-top: 8px !important;
  padding: 11px 12px !important;
}
@media (max-width: 640px) {
  .bonus-goal-card-optimized .bonus-goal-head-compact {
    padding-right: 0 !important;
    padding-top: 38px !important;
  }
  .bonus-goal-card-optimized .bonus-details-corner-btn {
    top: 14px !important;
    right: 14px !important;
  }
}


/* Bonusziel-Bubble: Überschrift/Kicker höher setzen */
.bonus-goal-card-optimized {
  padding-top: 10px !important;
}
.bonus-goal-card-optimized .bonus-goal-head-compact {
  padding-right: 82px !important;
  margin-top: -2px !important;
  margin-bottom: 6px !important;
}
.bonus-goal-card-optimized .bonus-side-head .mini-kicker {
  margin-bottom: 4px !important;
}
.bonus-goal-card-optimized .bonus-side-head h3 {
  margin-top: 0 !important;
  margin-bottom: 2px !important;
}
.bonus-goal-card-optimized .bonus-side-head .muted {
  margin-top: 0 !important;
}
.bonus-goal-card-optimized .bonus-details-corner-btn {
  top: 12px !important;
  right: 14px !important;
}
@media (max-width: 640px) {
  .bonus-goal-card-optimized {
    padding-top: 8px !important;
  }
  .bonus-goal-card-optimized .bonus-goal-head-compact {
    padding-top: 34px !important;
  }
  .bonus-goal-card-optimized .bonus-details-corner-btn {
    top: 10px !important;
    right: 12px !important;
  }
}


/* Bonusziel-Bubble: Header wirklich oben links, Details oben rechts */
.bonus-goal-card-optimized {
  position: relative !important;
  padding-top: 0 !important;
}
.bonus-goal-card-optimized .bonus-goal-head-compact {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  right: 86px !important;
  z-index: 5;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bonus-goal-card-optimized .bonus-goal-head-compact > div {
  margin: 0 !important;
  padding: 0 !important;
}
.bonus-goal-card-optimized .bonus-side-head .mini-kicker {
  margin: 0 0 5px !important;
  line-height: 1 !important;
}
.bonus-goal-card-optimized .bonus-side-head h3 {
  margin: 0 0 3px !important;
  line-height: 1.12 !important;
}
.bonus-goal-card-optimized .bonus-side-head .muted {
  margin: 0 !important;
  line-height: 1.28 !important;
}
.bonus-goal-card-optimized .bonus-details-corner-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 6;
}
.bonus-goal-card-optimized .bonus-goal-progress-card {
  margin-top: 116px !important;
}
@media (max-width: 640px) {
  .bonus-goal-card-optimized .bonus-goal-head-compact {
    top: 14px !important;
    left: 14px !important;
    right: 82px !important;
  }
  .bonus-goal-card-optimized .bonus-details-corner-btn {
    top: 12px !important;
    right: 12px !important;
  }
  .bonus-goal-card-optimized .bonus-goal-progress-card {
    margin-top: 112px !important;
  }
}


/* Bestellformular: Rabattcode-Button entfernt, Eingabe nutzt volle Breite */
.order-form-panel .discount-order-row {
  grid-template-columns: 1fr !important;
}
.order-form-panel .discount-order-row .discount-order-input {
  width: 100% !important;
  min-width: 0 !important;
}
.order-form-panel .discount-order-row input[name="discount_code"] {
  width: 100% !important;
}

/* ===== Hero-Bubbles: dunkles Farbdesign ohne Bilder ===== */
.hero-banner,
.admin-hero,
.apps-hero,
.install-hero,
.ticket-hero,
.orders-hero,
.news-hero-banner,
.vip-hero-banner,
.my-data-hero,
.referral-hero,
.faq-hero,
.dashboard-hero {
  --hero-accent-a: rgba(229, 9, 20, .22);
  --hero-accent-b: rgba(255, 110, 54, .12);
  --hero-accent-c: rgba(255, 255, 255, .035);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .075);
  box-shadow: var(--d2-shadow-lg);
  background:
    radial-gradient(circle at 86% 16%, var(--hero-accent-a), transparent 34%),
    radial-gradient(circle at 12% 110%, var(--hero-accent-b), transparent 36%),
    linear-gradient(135deg, #080c14 0%, #0c111d 42%, #130b0f 100%) !important;
}

.hero-banner::before,
.admin-hero::before,
.apps-hero::before,
.install-hero::before,
.ticket-hero::before,
.orders-hero::before,
.news-hero-banner::before,
.vip-hero-banner::before,
.my-data-hero::before,
.referral-hero::before,
.faq-hero::before,
.dashboard-hero::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: inherit !important;
  background:
    linear-gradient(90deg, rgba(0,0,0,.24), rgba(0,0,0,.04)),
    linear-gradient(135deg, rgba(255,255,255,.045), transparent 42%, rgba(255,255,255,.018) 100%) !important;
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
  animation: none !important;
  box-shadow: none !important;
  z-index: 0 !important;
}

.hero-banner::after,
.admin-hero::after,
.apps-hero::after,
.install-hero::after,
.ticket-hero::after,
.orders-hero::after,
.news-hero-banner::after,
.vip-hero-banner::after,
.my-data-hero::after,
.referral-hero::after,
.faq-hero::after,
.dashboard-hero::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: auto 22px 22px auto !important;
  width: min(33%, 330px) !important;
  height: 58% !important;
  min-width: 160px !important;
  min-height: 120px !important;
  border-radius: 28px !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    radial-gradient(circle at 70% 25%, var(--hero-accent-c), transparent 62%) !important;
  border: 1px solid rgba(255,255,255,.055) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045) !important;
  opacity: .78 !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
  animation: none !important;
  z-index: 1 !important;
}

.hero-banner .hero-overlay,
.admin-hero .hero-overlay,
.apps-hero .hero-overlay,
.install-hero .hero-overlay,
.ticket-hero .hero-overlay,
.orders-hero .hero-overlay,
.news-hero-banner .hero-overlay,
.vip-hero-banner .hero-overlay,
.my-data-hero .hero-overlay,
.referral-hero .hero-overlay,
.faq-hero .hero-overlay,
.dashboard-hero .hero-overlay,
.hero-banner .hero-overlay::before,
.hero-banner .hero-overlay::after,
.admin-hero .hero-overlay::before,
.admin-hero .hero-overlay::after,
.apps-hero .hero-overlay::before,
.apps-hero .hero-overlay::after,
.install-hero .hero-overlay::before,
.install-hero .hero-overlay::after,
.ticket-hero .hero-overlay::before,
.ticket-hero .hero-overlay::after,
.orders-hero .hero-overlay::before,
.orders-hero .hero-overlay::after,
.news-hero-banner .hero-overlay::before,
.news-hero-banner .hero-overlay::after,
.vip-hero-banner .hero-overlay::before,
.vip-hero-banner .hero-overlay::after,
.my-data-hero .hero-overlay::before,
.my-data-hero .hero-overlay::after,
.referral-hero .hero-overlay::before,
.referral-hero .hero-overlay::after,
.faq-hero .hero-overlay::before,
.faq-hero .hero-overlay::after,
.dashboard-hero .hero-overlay::before,
.dashboard-hero .hero-overlay::after,
.hero-banner .hero-content::after,
.admin-hero .hero-content::after,
.apps-hero .hero-content::after,
.install-hero .hero-content::after,
.ticket-hero .hero-content::after,
.orders-hero .hero-content::after,
.news-hero-banner .hero-content::after,
.vip-hero-banner .hero-content::after,
.my-data-hero .hero-content::after,
.referral-hero .hero-content::after,
.faq-hero .hero-content::after,
.dashboard-hero .hero-content::after {
  display: none !important;
  content: none !important;
}

.hero-banner .hero-content,
.admin-hero .hero-content,
.apps-hero .hero-content,
.install-hero .hero-content,
.ticket-hero .hero-content,
.orders-hero .hero-content,
.news-hero-banner .hero-content,
.vip-hero-banner .hero-content,
.my-data-hero .hero-content,
.referral-hero .hero-content,
.faq-hero .hero-content,
.dashboard-hero .hero-content {
  position: relative;
  z-index: 2;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Kleine Unterschiede pro Menüpunkt, aber im gleichen Website-Farbsystem */
.dashboard-hero {
  --hero-accent-a: rgba(229, 9, 20, .24);
  --hero-accent-b: rgba(255, 112, 64, .13);
  --hero-accent-c: rgba(229, 9, 20, .10);
}
.news-hero-banner {
  --hero-accent-a: rgba(229, 9, 20, .20);
  --hero-accent-b: rgba(255, 92, 64, .12);
  --hero-accent-c: rgba(255, 255, 255, .045);
}
.apps-hero {
  --hero-accent-a: rgba(210, 38, 52, .21);
  --hero-accent-b: rgba(255, 116, 46, .10);
  --hero-accent-c: rgba(255, 116, 46, .075);
}
.install-hero {
  --hero-accent-a: rgba(183, 24, 36, .20);
  --hero-accent-b: rgba(255, 138, 43, .11);
  --hero-accent-c: rgba(255, 138, 43, .065);
}
.my-data-hero {
  --hero-accent-a: rgba(190, 28, 42, .19);
  --hero-accent-b: rgba(255, 255, 255, .055);
  --hero-accent-c: rgba(255, 255, 255, .045);
}
.referral-hero {
  --hero-accent-a: rgba(229, 9, 20, .19);
  --hero-accent-b: rgba(212, 151, 62, .12);
  --hero-accent-c: rgba(212, 151, 62, .065);
}
.faq-hero {
  --hero-accent-a: rgba(175, 30, 44, .18);
  --hero-accent-b: rgba(255, 255, 255, .05);
  --hero-accent-c: rgba(255, 255, 255, .04);
}
.ticket-hero {
  --hero-accent-a: rgba(229, 9, 20, .21);
  --hero-accent-b: rgba(120, 21, 31, .20);
  --hero-accent-c: rgba(255, 255, 255, .04);
}
.orders-hero {
  --hero-accent-a: rgba(229, 9, 20, .22);
  --hero-accent-b: rgba(255, 118, 56, .11);
  --hero-accent-c: rgba(255, 118, 56, .06);
}
.vip-hero-banner {
  --hero-accent-a: rgba(202, 40, 52, .18);
  --hero-accent-b: rgba(181, 145, 58, .16);
  --hero-accent-c: rgba(181, 145, 58, .075);
}
.admin-hero {
  --hero-accent-a: rgba(229, 9, 20, .22);
  --hero-accent-b: rgba(255, 255, 255, .055);
  --hero-accent-c: rgba(229, 9, 20, .075);
}

@media (max-width: 900px) {
  .hero-banner,
  .admin-hero,
  .apps-hero,
  .install-hero,
  .ticket-hero,
  .orders-hero,
  .news-hero-banner,
  .vip-hero-banner,
  .my-data-hero,
  .referral-hero,
  .faq-hero,
  .dashboard-hero {
    min-height: 250px;
    padding: 26px 22px 24px;
  }
  .hero-banner::after,
  .admin-hero::after,
  .apps-hero::after,
  .install-hero::after,
  .ticket-hero::after,
  .orders-hero::after,
  .news-hero-banner::after,
  .vip-hero-banner::after,
  .my-data-hero::after,
  .referral-hero::after,
  .faq-hero::after,
  .dashboard-hero::after {
    width: 42% !important;
    height: 50% !important;
    opacity: .45 !important;
  }
}

@media (max-width: 640px) {
  .hero-banner,
  .admin-hero,
  .apps-hero,
  .install-hero,
  .ticket-hero,
  .orders-hero,
  .news-hero-banner,
  .vip-hero-banner,
  .my-data-hero,
  .referral-hero,
  .faq-hero,
  .dashboard-hero {
    min-height: 228px;
    padding: 22px 18px 20px;
    background:
      radial-gradient(circle at 92% 12%, var(--hero-accent-a), transparent 42%),
      radial-gradient(circle at 12% 105%, var(--hero-accent-b), transparent 42%),
      linear-gradient(135deg, #080c14 0%, #0d111b 52%, #130b0f 100%) !important;
  }
  .hero-banner::after,
  .admin-hero::after,
  .apps-hero::after,
  .install-hero::after,
  .ticket-hero::after,
  .orders-hero::after,
  .news-hero-banner::after,
  .vip-hero-banner::after,
  .my-data-hero::after,
  .referral-hero::after,
  .faq-hero::after,
  .dashboard-hero::after {
    display: none !important;
  }
  .hero-banner .hero-content h1,
  .admin-hero .hero-content h1,
  .apps-hero .hero-content h1,
  .install-hero .hero-content h1,
  .ticket-hero .hero-content h1,
  .orders-hero .hero-content h1,
  .news-hero-banner .hero-content h1,
  .vip-hero-banner .hero-content h1,
  .my-data-hero .hero-content h1,
  .referral-hero .hero-content h1,
  .faq-hero .hero-content h1,
  .dashboard-hero .hero-content h1,
  .hero-banner .hero-content p,
  .admin-hero .hero-content p,
  .apps-hero .hero-content p,
  .install-hero .hero-content p,
  .ticket-hero .hero-content p,
  .orders-hero .hero-content p,
  .news-hero-banner .hero-content p,
  .vip-hero-banner .hero-content p,
  .my-data-hero .hero-content p,
  .referral-hero .hero-content p,
  .faq-hero .hero-content p,
  .dashboard-hero .hero-content p {
    max-width: 100%;
  }
}


/* Dashboard-Fortschritt: aufgeräumtes Premium-Layout für Rang & Bonusziel */
.dashboard-bonus-overview {
  --bonus-card-border: rgba(255,255,255,.095);
  --bonus-card-soft: rgba(255,255,255,.052);
  --bonus-card-softer: rgba(255,255,255,.032);
}
.dashboard-bonus-overview .bonus-overview-title-row {
  align-items: center;
  margin-bottom: 18px;
}
.dashboard-bonus-overview .bonus-overview-title-row .section-title {
  letter-spacing: -.02em;
}
.bonus-dual-grid-optimized {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}
.bonus-progress-card,
.bonus-goal-card-optimized {
  position: relative !important;
  isolation: isolate;
  min-height: 100%;
  padding: 22px !important;
  border-radius: 30px !important;
  border: 1px solid var(--bonus-card-border) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(255,255,255,.085), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(195,29,53,.16), transparent 38%),
    linear-gradient(180deg, rgba(18,22,31,.99), rgba(9,12,18,.99)) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.065);
  gap: 16px !important;
}
.bonus-progress-card::before,
.bonus-goal-card-optimized::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 28%, rgba(255,255,255,.025));
  pointer-events: none;
  z-index: -1;
}
.bonus-progress-card::after,
.bonus-goal-card-optimized::after {
  content: "";
  position: absolute !important;
  left: 22px !important;
  right: 22px !important;
  bottom: 0 !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent) !important;
  opacity: .55 !important;
}
.bonus-progress-card .bonus-side-head,
.bonus-goal-card-optimized .bonus-goal-head-compact {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bonus-progress-card .bonus-side-identity {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center !important;
  gap: 16px !important;
  min-width: 0;
}
.bonus-progress-card .rank-badge-crest {
  width: 78px !important;
  height: 78px !important;
  flex: 0 0 78px;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.32));
}
.bonus-progress-card .rank-badge-crest::after {
  bottom: -11px !important;
  width: 38px !important;
  height: 24px !important;
}
.bonus-progress-card .rank-badge-crest .badge-core {
  min-width: 40px !important;
  height: 40px !important;
  font-size: .84rem;
}
.bonus-progress-card .mini-kicker,
.bonus-goal-card-optimized .mini-kicker {
  margin: 0 0 6px !important;
  color: rgba(255,255,255,.58) !important;
  font-size: .72rem !important;
  letter-spacing: .14em !important;
}
.bonus-progress-card h3,
.bonus-goal-card-optimized .bonus-side-head h3 {
  margin: 0 !important;
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.34rem);
  line-height: 1.14 !important;
  letter-spacing: -.025em;
}
.bonus-progress-card .bonus-side-identity .muted,
.bonus-goal-card-optimized .bonus-side-head .muted {
  margin: 6px 0 0 !important;
  color: rgba(255,255,255,.64) !important;
  line-height: 1.45 !important;
}
.bonus-progress-card .bonus-side-identity .muted strong {
  color: #fff;
}
.bonus-progress-card .bonus-open-modal,
.bonus-goal-card-optimized .bonus-details-corner-btn,
.dashboard-bonus-overview .bonus-overview-link {
  border: 1px solid rgba(255,255,255,.11) !important;
  background: rgba(255,255,255,.07) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.16);
  white-space: nowrap;
}
.bonus-goal-card-optimized .bonus-details-corner-btn {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  z-index: 2;
  margin: 0 !important;
  transform: none !important;
  align-self: flex-start;
  padding: 8px 12px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  font-size: .76rem !important;
}
.bonus-progress-hero-compact,
.bonus-goal-card-optimized .bonus-goal-progress-card {
  margin-top: 4px !important;
}
.bonus-progress-card .bonus-side-progress-note.compact,
.bonus-goal-summary .bonus-side-progress-note.compact {
  padding: 12px 14px !important;
  border-radius: 18px !important;
  background: var(--bonus-card-soft) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}
.bonus-progress-track.improved {
  height: 12px !important;
  background: rgba(255,255,255,.09) !important;
  border: 1px solid rgba(255,255,255,.06);
}
.bonus-progress-track.improved .bonus-progress-fill {
  background: linear-gradient(90deg, #ff3f5f, #ff8a3d, #ffd36a) !important;
  box-shadow: 0 0 18px rgba(255,75,99,.26) !important;
}
.bonus-progress-track.improved.milestone .bonus-progress-fill {
  background: linear-gradient(90deg, #ff3f5f, #7c3aed, #38d9a9) !important;
  box-shadow: 0 0 18px rgba(124,58,237,.24) !important;
}
.progress-mini-label {
  align-items: center;
  color: rgba(255,255,255,.6) !important;
  font-size: .78rem !important;
}
.bonus-metrics-row {
  gap: 10px !important;
  margin-top: 2px !important;
}
.bonus-metrics-row > div,
.bonus-goal-progress-card,
.bonus-goal-note.optimized {
  background: linear-gradient(180deg, var(--bonus-card-soft), var(--bonus-card-softer)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.bonus-metrics-row > div {
  padding: 12px 13px !important;
  border-radius: 18px !important;
}
.bonus-metrics-row span,
.bonus-goal-progress-top span {
  color: rgba(255,255,255,.56) !important;
  font-size: .72rem !important;
  letter-spacing: .04em;
}
.bonus-metrics-row strong {
  color: #fff !important;
  font-size: .95rem !important;
}
.bonus-goal-progress-card {
  margin: 4px 0 0 !important;
  padding: 16px !important;
  border-radius: 22px !important;
}
.bonus-goal-progress-top {
  margin-bottom: 12px !important;
}
.bonus-goal-progress-top strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff !important;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .95rem !important;
}
.bonus-ladder-optimized {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 2px !important;
}
.bonus-ladder-optimized .bonus-tier {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px !important;
  padding: 8px 10px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  color: rgba(255,255,255,.68) !important;
  font-size: .78rem !important;
}
.bonus-ladder-optimized .bonus-tier.reached {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(255,63,95,.18), rgba(255,255,255,.06)) !important;
  border-color: rgba(255,255,255,.14) !important;
}
.bonus-ladder-optimized .bonus-tier.reached.gold,
.bonus-ladder-optimized .bonus-tier.reached.vip {
  background: linear-gradient(135deg, rgba(255,202,94,.22), rgba(255,255,255,.06)) !important;
  border-color: rgba(255,216,120,.24) !important;
  color: #fff4cf !important;
}
.bonus-goal-summary {
  margin-top: 0 !important;
  gap: 10px !important;
}
.bonus-goal-note.optimized {
  padding: 12px 14px !important;
  border-radius: 18px !important;
  color: rgba(255,255,255,.72) !important;
}
@media (max-width: 980px) {
  .bonus-dual-grid-optimized {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  .dashboard-bonus-overview .bonus-overview-title-row {
    align-items: stretch !important;
    gap: 12px !important;
  }
  .bonus-progress-card,
  .bonus-goal-card-optimized {
    padding: 18px !important;
    border-radius: 26px !important;
  }
  .bonus-progress-card .bonus-side-head,
  .bonus-goal-card-optimized .bonus-goal-head-compact {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .bonus-progress-card .bonus-side-identity {
    grid-template-columns: auto 1fr !important;
    align-items: center !important;
  }
  .bonus-progress-card .rank-badge-crest {
    width: 66px !important;
    height: 66px !important;
    flex-basis: 66px;
  }
  .bonus-progress-card .rank-badge-crest .badge-core {
    min-width: 34px !important;
    height: 34px !important;
    font-size: .76rem;
  }
  .bonus-progress-card .bonus-open-modal,
  .bonus-goal-card-optimized .bonus-details-corner-btn {
    width: 100%;
    justify-content: center;
  }
  .bonus-metrics-row,
  .bonus-ladder-optimized {
    grid-template-columns: 1fr !important;
  }
  .progress-mini-label {
    align-items: flex-start !important;
  }
}

/* Dashboard Fortschritt · Variante 2: cleanes Premium-Panel */
.dashboard-bonus-overview {
  --panel-v2-border: rgba(255,255,255,.105);
  --panel-v2-soft: rgba(255,255,255,.065);
  --panel-v2-softer: rgba(255,255,255,.038);
  --panel-v2-red: #ff3158;
  --panel-v2-orange: #ff8a3d;
  --panel-v2-gold: #ffd36a;
}
.bonus-dual-grid-v2 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}
.bonus-panel-v2 {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  min-height: 100%;
  padding: 22px !important;
  border-radius: 28px !important;
  border: 1px solid var(--panel-v2-border) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.018) 32%, transparent 64%),
    radial-gradient(circle at 100% 0%, rgba(255,49,88,.13), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(255,138,61,.075), transparent 40%),
    linear-gradient(180deg, #121722 0%, #090d14 100%) !important;
  box-shadow: 0 22px 55px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.075) !important;
  color: #fff;
}
.bonus-panel-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.055), transparent 25%, transparent 76%, rgba(255,255,255,.035)),
    radial-gradient(circle at 50% -18%, rgba(255,255,255,.08), transparent 34%);
  opacity: .9;
}
.bonus-panel-v2::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,49,88,.75), rgba(255,211,106,.55), transparent);
  opacity: .75;
  pointer-events: none;
}
.bonus-panel-v2-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}
.bonus-panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: rgba(255,255,255,.58);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.bonus-panel-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--panel-v2-red), var(--panel-v2-gold));
  box-shadow: 0 0 14px rgba(255,49,88,.38);
}
.bonus-panel-v2-top h3 {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(1.08rem, 1.45vw, 1.32rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -.025em;
}
.bonus-panel-action-v2 {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  flex: 0 0 auto;
  min-height: 34px !important;
  padding: 8px 13px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.07) !important;
  color: rgba(255,255,255,.9) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 24px rgba(0,0,0,.17) !important;
  white-space: nowrap;
}
.bonus-panel-action-v2:hover {
  background: rgba(255,255,255,.105) !important;
  border-color: rgba(255,255,255,.18) !important;
}
.rank-panel-v2-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.032));
  border: 1px solid rgba(255,255,255,.085);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.rank-panel-v2-badge-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.13), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.1);
}
.rank-panel-v2-badge-wrap::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,49,88,.18), transparent 64%);
  filter: blur(7px);
  z-index: -1;
}
.rank-panel-v2-main .rank-badge-crest {
  width: 78px !important;
  height: 78px !important;
  flex: 0 0 78px;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.34));
}
.rank-panel-v2-main .rank-badge-crest .badge-core {
  min-width: 40px !important;
  height: 40px !important;
  font-size: .82rem !important;
}
.rank-panel-v2-copy {
  min-width: 0;
}
.rank-panel-v2-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.86);
  font-size: .78rem;
  font-weight: 800;
}
.rank-panel-v2-copy p,
.goal-panel-v2-copy p {
  margin: 12px 0 0 !important;
  color: rgba(255,255,255,.68) !important;
  line-height: 1.55 !important;
}
.rank-panel-v2-copy strong,
.goal-panel-v2-copy strong {
  color: #fff;
}
.bonus-panel-v2-progress {
  margin-top: 16px;
  padding: 15px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel-v2-soft), var(--panel-v2-softer));
  border: 1px solid rgba(255,255,255,.085);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}
.bonus-panel-v2-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bonus-panel-v2-progress-head span {
  color: rgba(255,255,255,.58);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .045em;
}
.bonus-panel-v2-progress-head strong {
  color: #fff;
  font-size: .84rem;
  white-space: nowrap;
}
.bonus-track-v2 {
  height: 11px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.09) !important;
  border: 1px solid rgba(255,255,255,.065) !important;
}
.bonus-track-v2 .bonus-progress-fill {
  background: linear-gradient(90deg, var(--panel-v2-red), var(--panel-v2-orange), var(--panel-v2-gold)) !important;
  box-shadow: 0 0 18px rgba(255,49,88,.28) !important;
}
.bonus-track-v2.milestone .bonus-progress-fill {
  background: linear-gradient(90deg, var(--panel-v2-red), #7c3aed, #38d9a9) !important;
  box-shadow: 0 0 18px rgba(124,58,237,.24) !important;
}
.bonus-panel-v2-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.bonus-panel-v2-stats > div {
  min-width: 0;
  padding: 12px 13px;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
}
.bonus-panel-v2-stats span {
  display: block;
  color: rgba(255,255,255,.52);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.bonus-panel-v2-stats strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: .9rem;
}
.bonus-panel-v2-success,
.goal-panel-v2-next.success {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 18px;
  color: #d8fff1;
  background: rgba(56,217,169,.09);
  border: 1px solid rgba(56,217,169,.22);
}
.goal-panel-v2-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.062), rgba(255,255,255,.028));
  border: 1px solid rgba(255,255,255,.085);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}
.goal-panel-v2-copy p {
  margin-top: 0 !important;
}
.goal-panel-v2-next {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  line-height: 1.45;
}
.goal-ring-v2 {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(from 180deg, var(--panel-v2-red) 0 var(--goal-progress), rgba(255,255,255,.095) var(--goal-progress) 100%);
  box-shadow: 0 16px 32px rgba(0,0,0,.24), 0 0 28px rgba(255,49,88,.13);
  position: relative;
}
.goal-ring-v2::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: linear-gradient(180deg, #121722, #090d14);
  border: 1px solid rgba(255,255,255,.08);
}
.goal-ring-v2 > div {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  line-height: 1.05;
}
.goal-ring-v2 strong {
  color: #fff;
  font-size: 1.28rem;
  letter-spacing: -.03em;
}
.goal-ring-v2 span {
  margin-top: 5px;
  color: rgba(255,255,255,.52);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.goal-timeline-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.goal-step-v2 {
  position: relative;
  min-width: 0;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 17px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.075);
  color: rgba(255,255,255,.6);
}
.goal-step-v2 span {
  color: rgba(255,255,255,.5);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.goal-step-v2 strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.76);
  font-size: .78rem;
}
.goal-step-v2.reached {
  background: linear-gradient(135deg, rgba(255,49,88,.19), rgba(255,255,255,.055));
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
.goal-step-v2.reached::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff8a3d;
  box-shadow: 0 0 12px rgba(255,138,61,.42);
}
.goal-step-v2.reached.gold,
.goal-step-v2.reached.vip {
  background: linear-gradient(135deg, rgba(255,211,106,.20), rgba(255,255,255,.055));
  border-color: rgba(255,211,106,.24);
}
.goal-step-v2.reached.gold strong,
.goal-step-v2.reached.vip strong {
  color: #fff3cc;
}
@media (max-width: 980px) {
  .bonus-dual-grid-v2 {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  .dashboard-bonus-overview .bonus-overview-title-row {
    align-items: stretch !important;
    gap: 12px !important;
  }
  .bonus-panel-v2 {
    padding: 18px !important;
    border-radius: 24px !important;
  }
  .bonus-panel-v2-top {
    gap: 10px !important;
  }
  .bonus-panel-action-v2 {
    padding-inline: 11px !important;
  }
  .rank-panel-v2-main,
  .goal-panel-v2-main {
    grid-template-columns: 1fr;
  }
  .rank-panel-v2-badge-wrap,
  .goal-ring-v2 {
    justify-self: center;
  }
  .rank-panel-v2-copy,
  .goal-panel-v2-copy,
  .bonus-panel-v2-top h3 {
    text-align: left;
  }
  .bonus-panel-v2-progress-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .bonus-panel-v2-stats,
  .goal-timeline-v2 {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 420px) {
  .bonus-panel-v2-top {
    flex-direction: column;
  }
  .bonus-panel-action-v2 {
    width: 100%;
    justify-content: center;
  }
}


/* App store refresh variant 3 */
.storefront-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 20px;
  margin-bottom: 6px;
}

.storefront-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(120deg, rgba(8,9,15,0.95) 0%, rgba(15,16,25,0.82) 34%, rgba(229,9,20,0.08) 100%),
    radial-gradient(circle at top right, rgba(229,9,20,0.24), transparent 32%),
    radial-gradient(circle at bottom left, rgba(104,62,255,0.18), transparent 34%),
    url('https://images.unsplash.com/photo-1611162618071-b39a2ec055fb?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  box-shadow: var(--shadow-lg);
}

.storefront-hero-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 180px;
  height: 180px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
  opacity: .9;
}

.storefront-hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 34px;
}

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

.storefront-hero-content p {
  margin: 0;
  max-width: 560px;
  color: #d8dfeb;
  line-height: 1.85;
}

.storefront-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.storefront-metric-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 18px;
  background: rgba(12,14,22,0.62);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.storefront-metric-pill strong {
  font-size: 18px;
  font-weight: 900;
}

.storefront-metric-pill span {
  color: #d3dae7;
  font-size: 13px;
}

.storefront-stats {
  display: grid;
  gap: 16px;
}

.storefront-stat-card {
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(23,25,33,0.98), rgba(18,20,27,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.storefront-stat-card strong {
  display: block;
  margin: 8px 0 8px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.storefront-stat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.storefront-stat-card-accent {
  background: linear-gradient(180deg, rgba(44,16,26,0.98), rgba(23,15,24,0.98));
}

.storefront-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbe3f0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.storefront-stat-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e50914;
  box-shadow: 0 0 14px rgba(229,9,20,0.45);
}

.store-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.store-category-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20,22,29,0.96), rgba(16,18,25,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  color: #f6f8fb;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  box-shadow: var(--shadow-sm);
}

.store-category-pill span {
  font-size: 14px;
  font-weight: 700;
}

.store-category-pill strong {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  font-size: 14px;
  font-weight: 900;
}

.store-category-pill:hover,
.store-category-pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.14);
}

.store-category-pill.active {
  background: linear-gradient(180deg, rgba(67,18,25,0.98), rgba(33,18,23,0.98));
  border-color: rgba(229,9,20,0.34);
}

.appstore-library-head {
  align-items: flex-end;
  margin-bottom: 18px;
}

.appstore-toolbar-copy {
  margin: 6px 0 0;
}

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

.appstore-card {
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(23,25,33,0.98), rgba(17,19,26,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.appstore-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: var(--shadow-lg);
}

.appstore-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.app-card-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-card-title-wrap {
  min-width: 0;
}

.store-tiny-label {
  display: inline-block;
  margin-bottom: 4px;
  color: #acb6c7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.app-card-title-wrap h3,
.app-card-body h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(229,9,20,0.24), rgba(79,70,229,0.18));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 18px 28px rgba(0,0,0,0.18);
}

.app-icon.app-icon-svg svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.app-card-summary {
  margin: 16px 0 18px;
  color: #d5dcea;
  line-height: 1.75;
}

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

.app-highlight-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.app-highlight-label {
  display: block;
  margin-bottom: 6px;
  color: #9fadbf;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.app-highlight-item strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.4;
  word-break: break-word;
}

.app-card-urlbox {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
}

.app-card-urlbox span {
  display: block;
  margin-bottom: 6px;
  color: #9fadbf;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.app-card-urlbox strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
}

.app-card-urlbox small {
  display: block;
  margin-top: 7px;
  color: #c7d0de;
  line-height: 1.5;
  word-break: break-word;
}

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

.app-primary-btn {
  padding-inline: 18px;
}

.app-inline-code {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f2f5fb;
  font-size: 13px;
  font-weight: 700;
}

.app-inline-note {
  color: #d6ddea;
}

@media (max-width: 1180px) {
  .storefront-shell,
  .appstore-hero {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .storefront-hero-card::after {
    display: none;
  }

  .storefront-hero-content {
    padding: 26px;
  }

  .storefront-hero-content h2 {
    font-size: 34px;
  }

  .store-category-grid,
  .apps-grid.appstore-grid {
    grid-template-columns: 1fr;
  }

  .app-card-highlight-grid {
    grid-template-columns: 1fr;
  }

  .appstore-card-top {
    flex-direction: column;
    align-items: stretch;
  }

  .app-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .app-inline-code {
    justify-content: center;
  }

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

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


/* Apple App Store style refresh */
.apps-hero-apple .hero-content p {
  max-width: 620px;
}

.apple-store-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, .68fr);
  gap: 22px;
}

.apple-editorial-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(245,248,255,0.88)),
    radial-gradient(circle at top right, rgba(96,165,250,0.15), transparent 30%),
    radial-gradient(circle at bottom left, rgba(229,9,20,0.12), transparent 28%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 24px 60px rgba(0,0,0,0.20);
}

.apple-editorial-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -20px;
  width: 240px;
  height: 240px;
  border-radius: 44px;
  background: linear-gradient(180deg, rgba(229,9,20,0.14), rgba(96,165,250,0.10));
  filter: blur(1px);
  transform: rotate(18deg);
}

.apple-editorial-card::after {
  content: "";
  position: absolute;
  left: 34px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96,165,250,0.20), rgba(96,165,250,0));
}

.apple-editorial-copy {
  position: relative;
  z-index: 1;
  padding: 36px;
  max-width: 620px;
}

.apple-eyebrow,
.apple-card-label,
.apple-feature-kicker,
.apple-app-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.apple-eyebrow {
  margin-bottom: 12px;
  color: #e50914;
}

.apple-editorial-copy h2 {
  margin: 0 0 14px;
  color: #0b111b;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.apple-editorial-copy p {
  margin: 0;
  color: #516174;
  line-height: 1.85;
  max-width: 560px;
}

.apple-editorial-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.apple-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(12,18,28,0.06);
  box-shadow: 0 12px 22px rgba(0,0,0,0.06);
}

.apple-metric-badge strong {
  color: #0f1724;
  font-size: 18px;
  font-weight: 900;
}

.apple-metric-badge span {
  color: #5c6b7c;
  font-size: 13px;
}

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

.apple-info-card {
  border-radius: 30px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(27,29,37,0.98), rgba(17,18,24,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.apple-info-card-soft {
  background: linear-gradient(180deg, rgba(32,35,44,0.98), rgba(20,22,29,0.98));
}

.apple-card-label {
  margin-bottom: 10px;
  color: #9cc0ff;
}

.apple-info-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.apple-info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.apple-store-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.apple-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f1f6fb;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.apple-category-chip strong {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  font-size: 12px;
  font-weight: 900;
}

.apple-category-chip:hover,
.apple-category-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.14);
}

.apple-category-chip.active {
  color: #09111c;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(238,242,248,0.96));
  border-color: rgba(255,255,255,0.18);
}

.apple-category-chip.active strong {
  background: rgba(12,18,28,0.08);
}

.apple-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 16px;
}

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

.apple-feature-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(243,246,251,0.94));
  border: 1px solid rgba(255,255,255,0.16);
  color: #0b111b;
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}

.apple-feature-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 120px;
  height: 120px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(96,165,250,0.20), transparent 70%);
}

.apple-feature-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.apple-feature-kicker {
  color: #e50914;
}

.apple-feature-updated {
  color: #64758a;
  font-size: 13px;
  font-weight: 700;
}

.apple-feature-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.apple-feature-content h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #0b111b;
}

.apple-feature-content p {
  margin: 0;
  color: #526274;
  line-height: 1.75;
}

.apple-app-icon-large {
  width: 82px;
  height: 82px;
  min-width: 82px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(235,241,247,0.94));
  border: 1px solid rgba(12,18,28,0.08);
  color: #101827;
  box-shadow: 0 16px 28px rgba(0,0,0,0.08);
}

.apple-app-icon-large svg,
.apple-app-icon svg {
  fill: currentColor;
}

.apple-feature-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.apple-inline-meta,
.apple-app-link-note {
  color: #667689;
  font-size: 13px;
  font-weight: 700;
}

.apple-get-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #eef1f5;
  border: 1px solid rgba(12,18,28,0.06);
  color: #0b111b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease;
}

.apple-get-btn:hover,
.apple-get-btn:focus-visible {
  transform: translateY(-1px);
  background: #ffffff;
}

.apple-store-toolbar {
  align-items: flex-end;
  margin-bottom: 18px;
}

.apple-toolbar-copy {
  margin: 6px 0 0;
}

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

.apple-app-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(243,246,251,0.94));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 16px 34px rgba(0,0,0,0.12);
}

.apple-app-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.apple-app-icon {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(235,241,247,0.94));
  border: 1px solid rgba(12,18,28,0.08);
  color: #111827;
  box-shadow: 0 14px 26px rgba(0,0,0,0.08);
}

.apple-app-copy {
  min-width: 0;
}

.apple-app-type {
  color: #e50914;
}

.apple-app-copy h3 {
  margin: 4px 0 6px;
  color: #0b111b;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.apple-app-copy p {
  margin: 0;
  color: #58687a;
  line-height: 1.7;
}

.apple-app-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.apple-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12,18,28,0.06);
  color: #223043;
  font-size: 12px;
  font-weight: 800;
}

.apple-meta-pill-soft {
  background: rgba(96,165,250,0.10);
}

.apple-app-actionbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}

@media (max-width: 1180px) {
  .apple-store-hero-grid,
  .apple-featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .apple-editorial-copy h2 {
    font-size: 36px;
  }

  .apple-app-list-card {
    flex-direction: column;
    align-items: stretch;
  }

  .apple-app-actionbox {
    align-items: flex-start;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .apple-editorial-copy {
    padding: 26px;
  }

  .apple-editorial-copy h2 {
    font-size: 32px;
  }

  .apple-app-main,
  .apple-feature-content {
    align-items: flex-start;
  }

  .apple-app-main {
    flex-direction: column;
  }

  .apple-store-categories {
    gap: 10px;
  }

  .apple-category-chip {
    width: 100%;
    justify-content: space-between;
  }

  .apps-filter-form,
  .apps-filter-form select {
    width: 100%;
  }
}


/* Netflix style apps refresh */
.netflix-store-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, .68fr);
  gap: 22px;
}

.netflix-editorial-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(9,10,15,0.96) 0%, rgba(14,15,21,0.90) 48%, rgba(28,10,14,0.86) 100%),
    radial-gradient(circle at top right, rgba(229,9,20,0.20), transparent 30%),
    radial-gradient(circle at bottom left, rgba(120,24,34,0.16), transparent 28%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}

.netflix-editorial-card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -46px;
  width: 230px;
  height: 230px;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(229,9,20,0.20), rgba(229,9,20,0.04));
  transform: rotate(20deg);
  filter: blur(1px);
}

.netflix-editorial-card::after {
  content: "";
  position: absolute;
  left: 32px;
  bottom: -36px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(229,9,20,0.22), rgba(229,9,20,0));
}

.netflix-editorial-copy {
  position: relative;
  z-index: 1;
  padding: 36px;
  max-width: 620px;
}

.netflix-eyebrow,
.netflix-card-label,
.netflix-feature-kicker,
.netflix-app-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.netflix-eyebrow,
.netflix-feature-kicker,
.netflix-app-type {
  color: #ff6b74;
}

.netflix-editorial-copy h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.netflix-editorial-copy p {
  margin: 0;
  color: #d4d9e1;
  line-height: 1.85;
  max-width: 560px;
}

.netflix-editorial-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.netflix-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
}

.netflix-metric-badge strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.netflix-metric-badge span {
  color: #c7cfdc;
  font-size: 13px;
}

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

.netflix-info-card {
  border-radius: 30px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(24,26,34,0.98), rgba(18,20,27,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.netflix-info-card-accent {
  background: linear-gradient(180deg, rgba(42,14,20,0.98), rgba(24,14,18,0.98));
}

.netflix-card-label {
  margin-bottom: 10px;
  color: #ff7c85;
}

.netflix-info-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.netflix-info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.netflix-store-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.netflix-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f1f6fb;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.netflix-category-chip strong {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  font-size: 12px;
  font-weight: 900;
}

.netflix-category-chip:hover,
.netflix-category-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.14);
}

.netflix-category-chip.active {
  background: linear-gradient(180deg, rgba(229,9,20,0.96), rgba(167,12,20,0.96));
  border-color: rgba(255,255,255,0.10);
}

.netflix-category-chip.active strong {
  background: rgba(255,255,255,0.16);
}

.netflix-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 16px;
}

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

.netflix-feature-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(26,28,36,0.98), rgba(16,18,24,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.netflix-feature-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 120px;
  height: 120px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(229,9,20,0.22), transparent 70%);
}

.netflix-feature-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.netflix-feature-updated,
.netflix-inline-meta,
.netflix-app-link-note {
  color: #b3bcc9;
  font-size: 13px;
  font-weight: 700;
}

.netflix-feature-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.netflix-feature-content h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.netflix-feature-content p {
  margin: 0;
  color: #cbd3de;
  line-height: 1.75;
}

.netflix-app-icon-large {
  width: 82px;
  height: 82px;
  min-width: 82px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(229,9,20,0.18), rgba(79,70,229,0.14));
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(0,0,0,0.14);
}

.netflix-app-icon-large svg,
.netflix-app-icon svg {
  fill: currentColor;
}

.netflix-feature-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.netflix-get-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e50914, #be0811);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 12px 22px rgba(229,9,20,0.22);
  transition: transform .18s ease, filter .18s ease;
}

.netflix-get-btn:hover,
.netflix-get-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.netflix-store-toolbar {
  align-items: flex-end;
  margin-bottom: 18px;
}

.netflix-toolbar-copy {
  margin: 6px 0 0;
}

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

.netflix-app-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(24,26,34,0.98), rgba(16,18,24,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 34px rgba(0,0,0,0.16);
}

.netflix-app-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.netflix-app-icon {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(229,9,20,0.18), rgba(79,70,229,0.14));
  border: 1px solid rgba(255,255,255,0.08);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(0,0,0,0.12);
}

.netflix-app-copy {
  min-width: 0;
}

.netflix-app-copy h3 {
  margin: 4px 0 6px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.netflix-app-copy p {
  margin: 0;
  color: #c9d0dc;
  line-height: 1.7;
}

.netflix-app-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.netflix-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #eef2f7;
  font-size: 12px;
  font-weight: 800;
}

.netflix-meta-pill-soft {
  background: rgba(229,9,20,0.12);
}

.netflix-app-actionbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

@media (max-width: 1180px) {
  .netflix-store-hero-grid,
  .netflix-featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .netflix-editorial-copy h2 {
    font-size: 36px;
  }

  .netflix-app-list-card {
    flex-direction: column;
    align-items: stretch;
  }

  .netflix-app-actionbox {
    align-items: flex-start;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .netflix-editorial-copy {
    padding: 26px;
  }

  .netflix-editorial-copy h2 {
    font-size: 32px;
  }

  .netflix-app-main,
  .netflix-feature-content {
    align-items: flex-start;
  }

  .netflix-app-main {
    flex-direction: column;
  }

  .netflix-store-categories {
    gap: 10px;
  }

  .netflix-category-chip {
    width: 100%;
    justify-content: space-between;
  }

  .apps-filter-form,
  .apps-filter-form select {
    width: 100%;
  }
}


/* App icon upload and Fire TV code refinement */
.app-icon-svg img,
.admin-app-icon-badge img,
.admin-app-icon-preview-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.admin-app-icon-upload-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.admin-app-icon-preview-box {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.10);
}

.admin-app-icon-preview-box svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.checkbox-inline input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

.netflix-firetv-code-box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  min-width: 176px;
}

.netflix-firetv-code-box small {
  color: #aeb8c7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.netflix-firetv-code-box strong {
  color: #ffffff;
  font-size: 16px;
  letter-spacing: .02em;
}

.netflix-firetv-code-box-compact {
  width: 100%;
}

.netflix-app-actionbox .netflix-firetv-code-box {
  align-self: stretch;
}


/* Remove square background for uploaded custom app icons */
.app-icon-custom-upload {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.app-icon-custom-upload img {
  object-fit: contain;
  background: transparent;
}

.netflix-app-icon.app-icon-custom-upload,
.netflix-app-icon-large.app-icon-custom-upload,
.admin-app-icon-badge.app-icon-custom-upload,
.admin-app-icon-preview-box.app-icon-custom-upload {
  padding: 0;
}

/* Monatliche Account-Bestellungen: Rabattfelder optisch deaktivieren */
.discount-order-box.is-disabled,
.order-discount-box.is-disabled {
    opacity: 0.58;
    filter: grayscale(0.18);
}
.discount-order-box.is-disabled input,
.order-discount-box.is-disabled select {
    cursor: not-allowed;
}


/* Chatty Improvements 2026-06 */
@keyframes vipInlineHardGlow{0%,100%{box-shadow:0 0 0 rgba(198,131,255,0),0 0 0 rgba(91,232,255,0),0 10px 18px rgba(0,0,0,.22);transform:translateY(0)}50%{box-shadow:0 0 18px rgba(198,131,255,.55),0 0 28px rgba(91,232,255,.42),0 12px 22px rgba(0,0,0,.28);transform:translateY(-1px)}}
@keyframes vipInlineHardShift{0%{background-position:0 50%}50%{background-position:100% 50%}100%{background-position:0 50%}}
@keyframes vipInlineHardIcon{0%,100%{transform:scale(1);filter:brightness(1) drop-shadow(0 0 0 rgba(198,131,255,0))}50%{transform:scale(1.18);filter:brightness(1.3) drop-shadow(0 0 10px rgba(198,131,255,.65)) drop-shadow(0 0 14px rgba(91,232,255,.42))}}
@keyframes vipRoadmapHardGlow{0%,100%{transform:scale(1);filter:drop-shadow(0 8px 10px rgba(0,0,0,.18)) drop-shadow(0 0 0 rgba(198,131,255,0))}50%{transform:scale(1.08);filter:drop-shadow(0 12px 14px rgba(0,0,0,.22)) drop-shadow(0 0 16px rgba(198,131,255,.6)) drop-shadow(0 0 24px rgba(91,232,255,.45))}}
.admin-rank-pill.rank-vip,.meta-chip-rank .admin-rank-pill.rank-vip,.rank-badge-inline.rank-vip,.vip-live-inline{position:relative!important;overflow:hidden!important;color:#f7fbff!important;border:1px solid rgba(219,194,255,.75)!important;background:linear-gradient(115deg,rgba(21,15,50,.98),rgba(71,23,121,.98) 24%,rgba(20,44,92,.98) 50%,rgba(19,98,137,.96) 74%,rgba(77,27,120,.98))!important;background-size:240% 240%!important;animation:vipInlineHardShift 2.1s linear infinite,vipInlineHardGlow 1.15s ease-in-out infinite!important}
.admin-rank-pill.rank-vip:after,.meta-chip-rank .admin-rank-pill.rank-vip:after,.rank-badge-inline.rank-vip:after,.vip-live-inline:after{content:""!important;display:block!important;position:absolute!important;inset:-35% auto -35% -18%!important;width:42%!important;background:linear-gradient(115deg,transparent 6%,rgba(255,255,255,0) 20%,rgba(255,255,255,.18) 28%,rgba(198,131,255,.78) 42%,rgba(91,232,255,.86) 52%,rgba(255,255,255,.18) 66%,transparent 82%)!important;transform:skewX(-24deg)!important;filter:blur(1px)!important;animation:vipInlineHardShift 1.5s linear infinite!important;pointer-events:none!important;z-index:1!important}
.admin-rank-pill.rank-vip .admin-rank-pill-badge,.meta-chip-rank .admin-rank-pill.rank-vip .admin-rank-pill-badge,.vip-live-inline:before{animation:vipInlineHardIcon .95s ease-in-out infinite!important}.admin-rank-pill.rank-vip>*,.meta-chip-rank .admin-rank-pill.rank-vip>*,.rank-badge-inline.rank-vip>*,.vip-live-inline>*{position:relative!important;z-index:2!important}.roadmap-badge.rank-vip,.vip-roadmap-live{position:relative!important;overflow:visible!important;animation:vipRoadmapHardGlow 1.1s ease-in-out infinite!important}
.order-plan-picker{grid-column:1/-1}.order-term-native-select{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:.001!important}.order-plan-cards{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px;margin-top:10px}.order-plan-card{position:relative;text-align:left;border:1px solid rgba(255,255,255,.11);border-radius:22px;padding:18px;background:linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.035));color:#fff;box-shadow:0 14px 30px rgba(0,0,0,.20);cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}.order-plan-card:hover,.order-plan-card.is-selected{transform:translateY(-3px);border-color:rgba(120,210,255,.74);box-shadow:0 18px 38px rgba(0,0,0,.28),0 0 0 1px rgba(120,210,255,.18)}.order-plan-card.is-featured{background:linear-gradient(145deg,rgba(120,84,255,.30),rgba(0,216,255,.12));border-color:rgba(165,132,255,.48)}.order-plan-card.is-selected:before{content:"✓";position:absolute;right:14px;top:14px;width:26px;height:26px;border-radius:999px;display:grid;place-items:center;background:rgba(74,222,128,.18);border:1px solid rgba(74,222,128,.55);font-weight:900}.order-plan-badge{display:inline-flex;width:max-content;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.09);color:#dceaff;font-size:.76rem;font-weight:800;margin-bottom:12px}.order-plan-card strong{display:block;font-size:1.15rem;margin-bottom:4px}.order-plan-price{display:block;font-size:1.8rem;font-weight:900;letter-spacing:-.04em}.order-plan-card em{display:block;margin:5px 0 8px;color:#aee7ff;font-style:normal;font-weight:800;font-size:.82rem}.order-plan-card small{display:block;color:rgba(255,255,255,.72);line-height:1.35;min-height:38px}.order-plan-feature-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.order-plan-feature-list i{font-style:normal;font-size:.72rem;border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.16);border-radius:999px;padding:5px 8px;color:rgba(255,255,255,.78)}.order-plan-note{margin:12px 0 0;color:rgba(255,255,255,.66);font-size:.9rem}.order-status-progress{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:14px 0 16px}.order-status-step{position:relative;display:flex;align-items:center;gap:8px;min-width:0;color:rgba(255,255,255,.56);font-size:.75rem;font-weight:800}.order-status-step:after{content:"";position:absolute;left:22px;right:-8px;top:10px;height:2px;background:rgba(255,255,255,.10);z-index:0}.order-status-step:last-of-type:after{display:none}.order-status-step i{position:relative;z-index:1;width:20px;height:20px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);box-shadow:0 0 0 3px rgba(255,255,255,.02)}.order-status-step b{position:relative;z-index:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-status-step.is-done,.order-status-step.is-current{color:#fff}.order-status-step.is-done i{background:rgba(74,222,128,.28);border-color:rgba(74,222,128,.7)}.order-status-step.is-current i{background:rgba(96,165,250,.35);border-color:rgba(125,211,252,.9);box-shadow:0 0 0 4px rgba(96,165,250,.14)}.order-status-step.is-muted{opacity:.35}.order-status-cancelled{grid-column:1/-1;color:#ffb4b4;font-size:.78rem;font-weight:900}.order-detail-progress-card{padding:12px 14px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.035);border-radius:18px;margin:12px 0}.mobile-bottom-nav{display:none}.content{padding-bottom:env(safe-area-inset-bottom)}
@media (max-width:900px){.order-plan-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.order-status-progress{grid-template-columns:1fr;gap:7px}.order-status-step:after{display:none}.order-status-step b{white-space:normal}.content{padding-bottom:96px!important}.mobile-bottom-nav{position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:9999;display:grid;grid-template-columns:repeat(5,1fr);gap:5px;padding:8px;border-radius:24px;background:rgba(10,14,30,.86);backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.12);box-shadow:0 20px 50px rgba(0,0,0,.45)}.mobile-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;text-decoration:none;color:rgba(255,255,255,.62);border-radius:18px;font-size:.68rem;font-weight:800}.mobile-bottom-nav a span{font-size:1.05rem;line-height:1}.mobile-bottom-nav a.active{color:#fff;background:linear-gradient(135deg,rgba(104,94,255,.32),rgba(45,212,191,.18));box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}}
@media (max-width:560px){.order-plan-cards{grid-template-columns:1fr}.order-plan-card{padding:16px}.price-preview-head{align-items:flex-start;gap:10px}.price-preview-total{font-size:1.3rem}}

/* --- Order plan cards layout fix v2 (2026-06-29) --- */
.order-form-field.order-plan-picker .order-plan-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  margin-top: 12px !important;
}

@media (min-width: 1180px) {
  .order-form-field.order-plan-picker .order-plan-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.order-form-field.order-plan-picker .order-plan-card,
.order-form-panel .order-plan-card,
button.order-plan-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  text-align: left !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
}

.order-form-field.order-plan-picker .order-plan-card * {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.order-form-field.order-plan-picker .order-plan-badge {
  display: inline-flex !important;
  width: auto !important;
  max-width: calc(100% - 38px) !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  font-size: .72rem !important;
}

.order-form-field.order-plan-picker .order-plan-card strong {
  display: block !important;
  margin: 0 !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  font-size: 1.06rem !important;
}

.order-form-field.order-plan-picker .order-plan-price {
  display: block !important;
  margin: 0 !important;
  line-height: 1 !important;
  white-space: normal !important;
  font-size: 1.55rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
}

.order-form-field.order-plan-picker .order-plan-card em,
.order-form-field.order-plan-picker .order-plan-card small {
  display: block !important;
  margin: 0 !important;
  min-height: 0 !important;
  line-height: 1.32 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
}

.order-form-field.order-plan-picker .order-plan-card em {
  font-size: .78rem !important;
}

.order-form-field.order-plan-picker .order-plan-card small {
  font-size: .78rem !important;
}

.order-form-field.order-plan-picker .order-plan-feature-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin: auto 0 0 0 !important;
  padding-top: 4px !important;
}

.order-form-field.order-plan-picker .order-plan-feature-list i {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  padding: 4px 7px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  font-size: .68rem !important;
}

.order-form-field.order-plan-picker .order-plan-note {
  margin-top: 10px !important;
  line-height: 1.45 !important;
}

@media (max-width: 900px) {
  .order-form-field.order-plan-picker .order-plan-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

@media (max-width: 640px) {
  .order-form-field.order-plan-picker .order-plan-cards {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .order-form-field.order-plan-picker .order-plan-card,
  .order-form-panel .order-plan-card,
  button.order-plan-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 4px 10px !important;
    padding: 12px 14px !important;
    border-radius: 15px !important;
  }

  .order-form-field.order-plan-picker .order-plan-badge {
    grid-column: 1 !important;
    grid-row: 1 !important;
    font-size: .66rem !important;
    padding: 3px 7px !important;
  }

  .order-form-field.order-plan-picker .order-plan-card strong {
    grid-column: 1 !important;
    grid-row: 2 !important;
    font-size: .98rem !important;
  }

  .order-form-field.order-plan-picker .order-plan-price {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    justify-self: end !important;
    text-align: right !important;
    font-size: 1.28rem !important;
  }

  .order-form-field.order-plan-picker .order-plan-card em,
  .order-form-field.order-plan-picker .order-plan-card small {
    grid-column: 1 / -1 !important;
    font-size: .73rem !important;
  }

  .order-form-field.order-plan-picker .order-plan-feature-list {
    display: none !important;
  }

  .order-form-field.order-plan-picker .order-plan-note {
    font-size: .78rem !important;
  }
}

@media (max-width: 380px) {
  .order-form-field.order-plan-picker .order-plan-price {
    font-size: 1.08rem !important;
  }
}


/* Kompaktere Bestellübersicht und vereinfachter Bestellstatus */
.order-meta-compact {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 6px !important;
  margin-top: 8px !important;
}
.order-meta-compact .meta-chip {
  width: auto !important;
  min-height: 0 !important;
  padding: 7px 9px !important;
  border-radius: 11px !important;
  gap: 3px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
}
.order-meta-compact .meta-chip-label {
  font-size: 9px !important;
  line-height: 1.1 !important;
  letter-spacing: .045em !important;
}
.order-meta-compact .meta-chip strong {
  font-size: 12px !important;
  line-height: 1.18 !important;
  word-break: break-word;
}
.order-meta-compact .meta-chip-rank {
  grid-column: span 2;
}
.order-meta-compact .meta-chip-rank .admin-rank-pill,
.order-meta-compact .meta-chip-rank .ticket-level-badge,
.order-meta-compact .meta-chip-rank .rank-badge-inline {
  max-width: 100%;
  min-height: 0 !important;
  padding: 4px 7px !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
  white-space: normal !important;
}
.order-status-progress {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 10px 0 12px !important;
}
.order-status-step {
  gap: 6px !important;
  font-size: .72rem !important;
}
.order-status-step:after {
  right: -6px !important;
}
.order-status-step b {
  white-space: nowrap !important;
}
@media (max-width: 900px) {
  .order-status-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  .order-status-step:after {
    display: block !important;
    left: 20px !important;
    right: -4px !important;
    top: 9px !important;
  }
  .order-status-step {
    font-size: .66rem !important;
  }
  .order-status-step i {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
  }
  .order-meta-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px !important;
  }
  .order-meta-compact .meta-chip-rank {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
  .order-status-step {
    font-size: .62rem !important;
  }
  .order-status-step b {
    letter-spacing: -.01em;
  }
  .order-meta-compact .meta-chip {
    padding: 6px 8px !important;
  }
  .order-meta-compact .meta-chip strong {
    font-size: 11.5px !important;
  }
}


/* --- Laufzeit-Auswahl: grüner Auswahlrahmen + Mobile-Nav Tap-Feedback (2026-06-29) --- */
.order-form-field.order-plan-picker .order-plan-card.is-selected,
.order-form-panel .order-plan-card.is-selected,
button.order-plan-card.is-selected {
  border-color: rgba(34, 197, 94, .95) !important;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, .24),
    0 0 0 2px rgba(34, 197, 94, .88),
    0 0 0 7px rgba(34, 197, 94, .13) !important;
  background:
    linear-gradient(145deg, rgba(34, 197, 94, .16), rgba(255, 255, 255, .045)) !important;
}
.order-form-field.order-plan-picker .order-plan-card.is-selected.is-featured,
.order-form-panel .order-plan-card.is-selected.is-featured,
button.order-plan-card.is-selected.is-featured {
  border-color: rgba(34, 197, 94, 1) !important;
  background:
    linear-gradient(145deg, rgba(34, 197, 94, .18), rgba(120, 84, 255, .22), rgba(0, 216, 255, .10)) !important;
}
.order-form-field.order-plan-picker .order-plan-card.is-selected::before,
.order-form-panel .order-plan-card.is-selected::before,
button.order-plan-card.is-selected::before {
  content: none !important;
  display: none !important;
}
.order-form-field.order-plan-picker .order-plan-card:focus-visible,
.order-form-panel .order-plan-card:focus-visible,
button.order-plan-card:focus-visible {
  outline: none !important;
  border-color: rgba(34, 197, 94, .95) !important;
  box-shadow:
    0 0 0 2px rgba(34, 197, 94, .9),
    0 0 0 7px rgba(34, 197, 94, .16) !important;
}
@media (max-width: 640px) {
  .order-form-field.order-plan-picker .order-plan-card.is-selected,
  .order-form-panel .order-plan-card.is-selected,
  button.order-plan-card.is-selected {
    box-shadow:
      0 10px 24px rgba(0, 0, 0, .24),
      0 0 0 2px rgba(34, 197, 94, .9),
      0 0 0 5px rgba(34, 197, 94, .12) !important;
  }
}

.mobile-bottom-nav a {
  position: relative !important;
  overflow: hidden !important;
  transform: translateZ(0) scale(1) !important;
  transition:
    transform .14s ease,
    background .14s ease,
    color .14s ease,
    box-shadow .14s ease,
    opacity .14s ease !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.mobile-bottom-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(74, 222, 128, .28);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width .28s ease, height .28s ease, opacity .38s ease;
}
.mobile-bottom-nav a:active,
.mobile-bottom-nav a.is-tapping {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(34, 197, 94, .34), rgba(45, 212, 191, .20)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(74, 222, 128, .38),
    0 8px 24px rgba(34, 197, 94, .18) !important;
  transform: translateY(-2px) scale(.96) !important;
}
.mobile-bottom-nav a:active::after,
.mobile-bottom-nav a.is-tapping::after {
  width: 92px;
  height: 92px;
  opacity: 1;
}
.mobile-bottom-nav a.is-tapping span,
.mobile-bottom-nav a.is-tapping b,
.mobile-bottom-nav a:active span,
.mobile-bottom-nav a:active b {
  position: relative;
  z-index: 1;
}
.mobile-bottom-nav.is-nav-tapping a:not(.is-tapping) {
  opacity: .62;
}
