/**
 * PHLX Main CSS
 *
 * Notes:
 * - This is the core visual system.
 * - Mobile-first.
 * - Lightweight and reusable.
 */

:root {
  --phlx-primary: #0f6dff;
  --phlx-primary-dark: #0a56cc;
  --phlx-primary-soft: #eaf2ff;

  --phlx-success: #16a34a;
  --phlx-success-soft: #eaf9ef;

  --phlx-warning: #d97706;
  --phlx-warning-soft: #fff5e8;

  --phlx-danger: #dc2626;
  --phlx-danger-soft: #fdecec;

  --phlx-bg: #f5f7fa;
  --phlx-card: #ffffff;
  --phlx-border: #e5e7eb;
  --phlx-text: #111827;
  --phlx-text-soft: #6b7280;
  --phlx-text-faint: #9ca3af;

  --phlx-radius-sm: 8px;
  --phlx-radius-md: 12px;
  --phlx-radius-lg: 16px;
  --phlx-radius-pill: 999px;

  --phlx-space-1: 4px;
  --phlx-space-2: 8px;
  --phlx-space-3: 12px;
  --phlx-space-4: 16px;
  --phlx-space-5: 20px;
  --phlx-space-6: 24px;
  --phlx-space-8: 32px;

  --phlx-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --phlx-shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);

  --phlx-font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica,
    Arial, sans-serif;
}

body {
  margin: 0;
  background: var(--phlx-bg);
  color: var(--phlx-text);
  font-family: var(--phlx-font);
  font-size: 15px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--phlx-primary);
  text-decoration: none;
}

a:hover {
  color: var(--phlx-primary-dark);
}

.phlx-app-shell {
  min-height: 100vh;
  background: var(--phlx-bg);
}

.phlx-app,
.site,
.site-main {
  width: 100%;
}

.phlx-page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 16px 96px;
}

.phlx-section {
  margin-bottom: 16px;
}

.phlx-card {
  background: var(--phlx-card);
  border: 1px solid var(--phlx-border);
  border-radius: var(--phlx-radius-md);
  box-shadow: var(--phlx-shadow-sm);
  padding: 16px;
}

.phlx-card--hero {
  box-shadow: var(--phlx-shadow-md);
  border-radius: var(--phlx-radius-lg);
}

.phlx-card__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--phlx-text);
}

.phlx-card__text {
  margin: 0;
  color: var(--phlx-text-soft);
  font-size: 14px;
}

.phlx-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--phlx-border);
}

.phlx-topbar__main {
  max-width: 520px;
  min-height: 56px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phlx-topbar__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--phlx-text);
}

.phlx-topbar__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--phlx-text-soft);
}

.phlx-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--phlx-border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--phlx-text);
  box-shadow: var(--phlx-shadow-sm);
}

.phlx-btn,
.phlx-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  background: var(--phlx-primary);
  color: #fff;
  border: 1px solid var(--phlx-primary);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.phlx-btn:hover {
  background: var(--phlx-primary-dark);
  border-color: var(--phlx-primary-dark);
  color: #fff;
}

.phlx-btn:disabled,
.phlx-btn.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.phlx-btn--secondary,
.phlx-btn--secondary:visited {
  background: #fff;
  color: var(--phlx-text);
  border-color: var(--phlx-border);
}

.phlx-btn--secondary:hover {
  background: #f9fafb;
  color: var(--phlx-text);
  border-color: #d1d5db;
}

.phlx-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.phlx-balance-card__label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--phlx-text-soft);
}

.phlx-balance-card__amount {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--phlx-text);
}

.phlx-balance-card__stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.phlx-stat {
  background: #f9fafb;
  border: 1px solid var(--phlx-border);
  border-radius: 12px;
  padding: 12px;
}

.phlx-stat__label {
  display: block;
  font-size: 12px;
  color: var(--phlx-text-soft);
  margin-bottom: 4px;
}

.phlx-stat__value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--phlx-text);
}

.phlx-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.phlx-mini-card {
  background: #fff;
  border: 1px solid var(--phlx-border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--phlx-shadow-sm);
}

.phlx-mini-card__icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.phlx-mini-card__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--phlx-text);
}

.phlx-mini-card__text {
  margin: 0;
  font-size: 12px;
  color: var(--phlx-text-soft);
}

.phlx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--phlx-radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.phlx-badge--available {
  background: var(--phlx-primary-soft);
  color: var(--phlx-primary);
}

.phlx-badge--success,
.phlx-badge--completed,
.phlx-badge--paid {
  background: var(--phlx-success-soft);
  color: var(--phlx-success);
}

.phlx-badge--warning,
.phlx-badge--pending,
.phlx-badge--cooldown,
.phlx-badge--review {
  background: var(--phlx-warning-soft);
  color: var(--phlx-warning);
}

.phlx-badge--danger,
.phlx-badge--failed,
.phlx-badge--rejected,
.phlx-badge--blocked {
  background: var(--phlx-danger-soft);
  color: var(--phlx-danger);
}

.phlx-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phlx-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--phlx-border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--phlx-shadow-sm);
}

.phlx-list-row__left {
  min-width: 0;
  flex: 1;
}

.phlx-list-row__title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--phlx-text);
}

.phlx-list-row__meta {
  margin: 0;
  font-size: 12px;
  color: var(--phlx-text-soft);
}

.phlx-list-row__right {
  text-align: right;
}

.phlx-list-row__amount {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--phlx-text);
}

.phlx-list-row__status {
  display: block;
  font-size: 12px;
  color: var(--phlx-text-soft);
  margin-top: 2px;
}

.phlx-info {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.phlx-info--neutral {
  background: #f9fafb;
  border-color: var(--phlx-border);
  color: var(--phlx-text-soft);
}

.phlx-info--warning {
  background: var(--phlx-warning-soft);
  border-color: #fcd9a8;
  color: #92400e;
}

.phlx-info--success {
  background: var(--phlx-success-soft);
  border-color: #bbf7d0;
  color: #166534;
}

.phlx-info--danger {
  background: var(--phlx-danger-soft);
  border-color: #fecaca;
  color: #991b1b;
}

.phlx-form-group {
  margin-bottom: 14px;
}

.phlx-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--phlx-text);
}

.phlx-input,
.phlx-select,
.phlx-textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--phlx-border);
  border-radius: 12px;
  background: #fff;
  color: var(--phlx-text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.phlx-textarea {
  min-height: 110px;
  resize: vertical;
}

.phlx-input:focus,
.phlx-select:focus,
.phlx-textarea:focus {
  border-color: var(--phlx-primary);
  box-shadow: 0 0 0 3px rgba(15, 109, 255, 0.12);
}

.phlx-helper {
  margin-top: 6px;
  font-size: 12px;
  color: var(--phlx-text-soft);
}

.phlx-hero-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--phlx-text);
}

.phlx-hero-text {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--phlx-text-soft);
}

.phlx-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--phlx-border);
}

.phlx-kv:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.phlx-kv:first-child {
  padding-top: 0;
}

.phlx-kv__label {
  font-size: 14px;
  color: var(--phlx-text-soft);
}

.phlx-kv__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--phlx-text);
}

.phlx-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--phlx-border);
  backdrop-filter: blur(10px);
}

.phlx-bottom-nav__inner {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.phlx-bottom-nav__item {
  min-height: 64px;
  padding: 8px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--phlx-text-faint);
  font-size: 11px;
  font-weight: 600;
}

.phlx-bottom-nav__item.is-active {
  color: var(--phlx-primary);
}

.phlx-bottom-nav__icon {
  font-size: 18px;
  line-height: 1;
}

.phlx-bottom-nav__label {
  line-height: 1;
}

.phlx-empty-state {
  text-align: center;
  padding: 24px 16px;
  color: var(--phlx-text-soft);
}

.phlx-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .phlx-page {
    padding-top: 20px;
  }
}

.phlx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--phlx-text);
}

.phlx-brand:hover {
  color: var(--phlx-text);
}

.phlx-brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--phlx-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: var(--phlx-shadow-sm);
}

.phlx-brand__logo .custom-logo-link,
.phlx-brand__logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.phlx-brand__logo img {
  object-fit: cover;
}

.phlx-brand__mark {
  font-weight: 800;
  font-size: 21px;
}

.phlx-brand__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.phlx-brand__name {
  color: var(--phlx-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 290px;
}

.phlx-brand__tagline {
  color: var(--phlx-text-soft);
  font-size: 11px;
  line-height: 1.2;
}

.phlx-topbar__page {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 10px;
}

.phlx-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.phlx-auth-tab {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--phlx-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--phlx-text-soft);
  background: #fff;
}

.phlx-auth-tab.is-active {
  color: var(--phlx-primary);
  background: var(--phlx-primary-soft);
  border-color: #cfe1ff;
}

.phlx-copy-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.phlx-copy-box .phlx-input {
  flex: 1;
}

@media (max-width: 420px) {
  .phlx-brand__tagline {
    display: none;
  }

  .phlx-brand__name {
    max-width: 190px;
  }
}

/* PHLX v3 visual polish, responsive layout, password reveal, and ad slots. */
:root {
  --phlx-primary: #6d28d9;
  --phlx-primary-dark: #4c1d95;
  --phlx-primary-soft: #f3e8ff;
  --phlx-accent: #06b6d4;
  --phlx-accent-warm: #f97316;
  --phlx-bg: #f8fbff;
  --phlx-gradient: linear-gradient(135deg, #7c3aed 0%, #06b6d4 54%, #22c55e 100%);
  --phlx-shadow-md: 0 12px 34px rgba(68, 56, 180, 0.12);
}

body {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 32%),
    var(--phlx-bg);
}

.phlx-app-shell {
  background: transparent;
}

.phlx-topbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.phlx-topbar__main,
.phlx-topbar__page,
.phlx-bottom-nav__inner {
  max-width: 1180px;
}

.phlx-topbar__main {
  min-height: 68px;
}

.phlx-brand__logo {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: var(--phlx-gradient);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.26);
}

.phlx-brand__mark {
  font-size: 24px;
}

.phlx-brand__name {
  max-width: 420px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.phlx-brand__tagline {
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.phlx-topbar__page {
  padding-bottom: 14px;
}

.phlx-topbar__title {
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.phlx-page {
  max-width: 1180px;
  padding-left: clamp(16px, 3vw, 32px);
  padding-right: clamp(16px, 3vw, 32px);
}

.phlx-card,
.phlx-task-card,
.phlx-dashboard-metric,
.phlx-stat {
  border-color: rgba(124, 58, 237, 0.13);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.phlx-card--hero,
.phlx-balance-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 255, 0.92)),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.22), transparent 40%);
}

.phlx-btn,
.phlx-btn:visited {
  background: var(--phlx-gradient);
  border: 0;
  box-shadow: 0 12px 22px rgba(124, 58, 237, 0.2);
}

.phlx-btn:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.phlx-btn--secondary,
.phlx-btn--secondary:visited {
  background: #fff;
  color: #334155;
  border: 1px solid rgba(124, 58, 237, 0.16);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.phlx-password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.phlx-password-field .phlx-input {
  width: 100%;
  padding-right: 52px;
}

.phlx-password-toggle {
  position: absolute;
  right: 8px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--phlx-primary-soft);
  color: var(--phlx-primary-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.phlx-password-toggle:hover,
.phlx-password-toggle:focus {
  outline: 2px solid rgba(124, 58, 237, 0.25);
}

.phlx-ad-section {
  margin: 16px 0;
}

.phlx-ad-slot {
  min-height: 92px;
  border: 1px dashed rgba(124, 58, 237, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(243,232,255,0.58));
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.phlx-ad-slot__label {
  width: max-content;
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.phlx-ad-slot__content {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.phlx-ad-slot__content iframe,
.phlx-ad-slot__content ins,
.phlx-ad-slot__content img {
  max-width: 100%;
}

@media (min-width: 680px) {
  .phlx-dashboard-metrics,
  .phlx-balance-card__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .phlx-task-list,
  .phlx-stack.phlx-stack--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .phlx-page {
    padding-bottom: 40px;
  }

  .phlx-bottom-nav {
    position: sticky;
    top: auto;
    bottom: 0;
    max-width: 1180px;
    margin: 0 auto 18px;
    left: auto;
    right: auto;
    border: 1px solid rgba(124, 58, 237, 0.14);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
    overflow: hidden;
  }

  .phlx-bottom-nav__item {
    min-height: 58px;
    flex-direction: row;
    font-size: 13px;
  }

  .phlx-bottom-nav__icon {
    font-size: 20px;
  }
}

@media (max-width: 679px) {
  .phlx-dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .phlx-btn-row {
    flex-direction: column;
  }

  .phlx-btn-row .phlx-btn {
    width: 100%;
  }

  .phlx-brand__logo {
    width: 44px;
    height: 44px;
  }
}

.phlx-ad-slot__iframe {
  width: 100%;
  min-height: 110px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

/* PHLX v1.3 monetization + responsive shell upgrades */
.phlx-topbar__actions{display:flex;align-items:center;gap:8px}.phlx-wallet-chip{display:none;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.45);background:linear-gradient(135deg,#7c3aed,#06b6d4);color:#fff;border-radius:999px;padding:8px 10px;box-shadow:0 10px 28px rgba(99,102,241,.22)}.phlx-wallet-chip:hover{color:#fff}.phlx-wallet-chip__label{font-size:11px;opacity:.82}.phlx-wallet-chip__amount{font-weight:800;font-size:13px}.phlx-wallet-chip__cta{font-size:11px;background:rgba(255,255,255,.18);padding:3px 7px;border-radius:999px}.phlx-side-nav{display:none}.phlx-video-player{margin-top:16px;overflow:hidden;border:1px solid var(--phlx-border);border-radius:18px;background:linear-gradient(135deg,#111827,#312e81);min-height:220px}.phlx-video-player__iframe{display:block;width:100%;height:320px;border:0;background:#111}.phlx-video-player__placeholder{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;color:#fff;padding:24px}.phlx-video-player__icon{width:64px;height:64px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#22c55e,#06b6d4);box-shadow:0 18px 38px rgba(6,182,212,.32);font-size:28px}.phlx-video-player__placeholder small{max-width:360px;opacity:.78}.phlx-video-progress{margin-top:14px}.phlx-video-progress__bar{height:12px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin-bottom:8px}.phlx-video-progress__bar span{display:block;height:100%;width:0;background:linear-gradient(90deg,#22c55e,#06b6d4,#7c3aed);transition:width .25s ease}.phlx-ad-section--video .phlx-ad-slot,.phlx-ad-section--earn .phlx-ad-slot,.phlx-ad-section--reward .phlx-ad-slot{border-style:dashed;background:linear-gradient(180deg,#fff,#f8fafc)}
@media (min-width:640px){.phlx-page,.phlx-topbar__main,.phlx-topbar__page{max-width:720px}.phlx-wallet-chip{display:inline-flex}.phlx-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.phlx-task-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.phlx-task-card{height:100%}}
@media (min-width:1024px){.phlx-app-shell{padding-left:240px}.phlx-page,.phlx-topbar__main,.phlx-topbar__page{max-width:1040px}.phlx-page{padding:24px 32px 48px}.phlx-topbar{background:rgba(255,255,255,.9)}.phlx-side-nav{position:fixed;left:18px;top:18px;bottom:18px;width:200px;display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid rgba(255,255,255,.5);border-radius:28px;background:linear-gradient(180deg,#ffffff,#f0f9ff);box-shadow:0 24px 70px rgba(15,23,42,.12);z-index:50}.phlx-side-nav__item{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;color:#334155;font-weight:700}.phlx-side-nav__item:hover,.phlx-side-nav__item.is-active{background:linear-gradient(135deg,#7c3aed,#06b6d4);color:#fff}.phlx-bottom-nav{display:none}.phlx-grid-3{grid-template-columns:repeat(4,minmax(0,1fr))}.phlx-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.phlx-task-list{grid-template-columns:repeat(3,minmax(0,1fr))}.phlx-card{padding:20px}.phlx-video-player__iframe{height:460px}}

/* PHLX v3.2 legal/footer/forms refinements */
.phlx-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--phlx-text-soft);
  line-height: 1.45;
}
.phlx-check-row input {
  margin-top: 3px;
  flex: 0 0 auto;
}
.phlx-site-footer {
  max-width: 1180px;
  margin: 24px auto 92px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}
.phlx-site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.phlx-site-footer__links a {
  color: #475569;
  font-weight: 700;
}
.phlx-site-footer__links a:hover {
  color: #7c3aed;
}
.phlx-card--hero {
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, .18), transparent 36%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, .12), transparent 34%),
    #fff;
}
@media (min-width:1024px){
  .phlx-site-footer{margin-left:auto;margin-right:auto;margin-bottom:24px;}
}

/* PHLX logo system: header = main logo, mobile/app = icon, light pages = light logo. */
.phlx-screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.phlx-brand__logo {
  width: clamp(170px, 28vw, 260px) !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.phlx-brand__picture,
.phlx-brand__picture img,
.phlx-brand__logo img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.phlx-brand__img {
  max-height: 80px;
  object-fit: contain !important;
  border-radius: 0;
}

@media (max-width: 640px) {
  .phlx-brand__logo {
    width: 48px !important;
    height: 48px !important;
  }

  .phlx-brand__picture,
  .phlx-brand__picture img,
  .phlx-brand__logo img,
  .phlx-brand__img {
    width: 48px !important;
    height: 48px !important;
    max-height: 48px;
  }
}

/* PHLX v3.3 home/content separation, sticky footer, and logo-aligned colors */
html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #0B0F19;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 200, 150, 0.18), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(6, 182, 212, 0.12), transparent 30%),
    #f7fbfa;
}

.phlx-app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.phlx-page {
  flex: 1 0 auto;
}

.phlx-site-footer {
  margin-top: auto !important;
  margin-bottom: 18px;
  border-top: 1px solid rgba(0, 200, 150, 0.14);
}

:root {
  --phlx-primary: #00C896;
  --phlx-primary-dark: #0B0F19;
  --phlx-primary-soft: rgba(0, 200, 150, 0.14);
  --phlx-gradient: linear-gradient(135deg, #00C896 0%, #06b6d4 52%, #0B0F19 100%);
  --phlx-bg: #f7fbfa;
}

.phlx-topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 200, 150, 0.16);
}

.phlx-topbar__title,
.phlx-card__title,
.phlx-home-card__title,
.phlx-home-hero h1,
.phlx-section-heading h2 {
  color: #0B0F19;
}

.phlx-eyebrow,
.phlx-link,
.phlx-site-footer__links a:hover {
  color: #008f6f;
}

.phlx-btn,
.phlx-btn:visited,
.phlx-side-nav__item:hover,
.phlx-side-nav__item.is-active {
  background: var(--phlx-gradient);
}

.phlx-btn--secondary,
.phlx-btn--secondary:visited {
  background: #ffffff;
  color: #0B0F19;
  border: 1px solid rgba(0, 200, 150, 0.22);
}

.phlx-home-hero {
  display: grid;
  gap: 22px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(0, 200, 150, .22), transparent 36%),
    linear-gradient(135deg, #ffffff, #f1fffb);
}

.phlx-home-hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.phlx-home-hero__panel {
  min-height: 220px;
  border-radius: 28px;
  padding: 22px;
  display: grid;
  gap: 10px;
  align-content: center;
  background: linear-gradient(145deg, #0B0F19, #12312b);
  color: #fff;
  box-shadow: 0 22px 52px rgba(11, 15, 25, .18);
}

.phlx-home-hero__panel strong {
  color: #00C896;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}

.phlx-home-hero__panel span {
  display: block;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.09);
  font-weight: 800;
}

.phlx-home-actions,
.phlx-home-grid {
  display: grid;
  gap: 14px;
}

.phlx-home-action {
  display: grid;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}

.phlx-home-action:hover,
.phlx-home-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 143, 111, .12);
}

.phlx-home-action span {
  font-size: 30px;
}

.phlx-home-action strong {
  font-size: 18px;
}

.phlx-home-action small,
.phlx-home-card__meta {
  color: #64748b;
  font-weight: 700;
}

.phlx-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.phlx-section-heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.03em;
}

.phlx-home-card {
  overflow: hidden;
}

.phlx-home-card__image {
  display: block;
  margin: -20px -20px 14px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.phlx-home-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phlx-home-card__title {
  margin: 0 0 8px;
  font-size: 18px;
}

.phlx-home-card__title a {
  color: inherit;
  text-decoration: none;
}

.phlx-home-card__title a:hover {
  color: #008f6f;
}

@media (min-width: 720px) {
  .phlx-home-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr);
  }

  .phlx-home-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 719px) {
  .phlx-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Backend-controlled ad containers. Slots reserve space and stay separated from financial/action UI. */
.phlx-ad-section {
  width: 100%;
  max-width: 1120px;
  margin: 28px auto;
}

.phlx-ad-section--dashboard,
.phlx-ad-section--wallet,
.phlx-ad-section--withdrawal,
.phlx-ad-section--after_form {
  margin-top: 34px;
}

.phlx-ad-section--after_questions,
.phlx-ad-section--below_video_player,
.phlx-ad-section--after_video {
  margin-top: 26px;
  margin-bottom: 26px;
}

.phlx-ad-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  width: 100%;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.phlx-ad-slot__label {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.phlx-ad-slot__content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 80px;
}

.phlx-ad-slot__iframe {
  width: 100%;
  min-height: 250px;
  border: 0;
  background: #f8fafc;
}

.phlx-sponsored-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #0f172a;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.phlx-sponsored-link:hover {
  background: #eef2f7;
}

.phlx-task-list--compact {
  gap: 14px;
}

.phlx-task-list--compact .phlx-task-card {
  min-height: auto;
}

.entry-content .phlx-ad-section,
.phlx-card__text .phlx-ad-section {
  margin: 30px 0;
}

@media (max-width: 719px) {
  .phlx-ad-section {
    margin: 22px auto;
  }

  .phlx-ad-slot {
    border-radius: 14px;
    padding: 12px;
  }

  .phlx-ad-slot__iframe {
    min-height: 220px;
  }
}

/* PHLX v6.1 auth/navigation cleanup and logo color alignment */
.phlx-topbar__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.phlx-auth-link,
.phlx-auth-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--phlx-radius-pill);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.phlx-auth-link--ghost,
.phlx-auth-link--ghost:visited {
  color: #0B0F19;
  border: 1px solid rgba(0, 200, 150, 0.22);
  background: rgba(255, 255, 255, 0.88);
}

.phlx-auth-link--primary,
.phlx-auth-link--primary:visited {
  color: #fff;
  border: 1px solid transparent;
  background: var(--phlx-gradient);
  box-shadow: 0 10px 24px rgba(0, 200, 150, 0.2);
}

.phlx-auth-link:hover {
  transform: translateY(-1px);
}

.phlx-referral-wallet-card .phlx-copy-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

@media (max-width: 520px) {
  .phlx-topbar__actions {
    gap: 6px;
  }

  .phlx-auth-link,
  .phlx-auth-link:visited {
    min-height: 32px;
    padding: 0 9px;
    font-size: 12px;
  }

  .phlx-referral-wallet-card .phlx-copy-box {
    grid-template-columns: 1fr;
  }
}

/* PHLX v7.1 cleanup: compact header, no odd home explore widget, better filters, notifications. */
.phlx-topbar__main,
.phlx-topbar__page {
  max-width: 760px !important;
}

.phlx-topbar__main {
  min-height: 54px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

.phlx-topbar__page {
  padding-bottom: 8px !important;
}

.phlx-brand__logo {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
}

.phlx-brand__img {
  max-width: 42px;
  max-height: 42px;
}

.phlx-topbar__title {
  font-size: clamp(18px, 2.2vw, 25px) !important;
}

.phlx-topbar__subtitle {
  font-size: 12px;
}

.phlx-home-hero {
  grid-template-columns: 1fr !important;
}

.phlx-task-card[hidden],
.phlx-ad-section[hidden],
#phlx-task-filter-empty[hidden] {
  display: none !important;
}

.phlx-notification-list {
  gap: 12px;
}

.phlx-notification-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.phlx-notification-card__title {
  margin: 0 0 8px;
  color: #0B0F19;
  font-size: 17px;
}

.phlx-withdrawal-estimate {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.phlx-withdrawal-estimate__item {
  border: 1px solid rgba(0, 200, 150, 0.18);
  border-radius: 14px;
  padding: 12px;
  background: #f8fffd;
}

.phlx-withdrawal-estimate__item span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.phlx-withdrawal-estimate__item strong {
  display: block;
  margin-top: 4px;
  color: #0B0F19;
  font-size: 16px;
}

@media (min-width: 1024px) {
  .phlx-app-shell { padding-left: 220px; }
  .phlx-side-nav { width: 180px; }
  .phlx-topbar__main,
  .phlx-topbar__page { max-width: 820px !important; }
}

@media (max-width: 640px) {
  .phlx-withdrawal-estimate { grid-template-columns: 1fr; }
  .phlx-topbar__actions { max-width: 58%; }
}


/* PHLX v8.1 requested fixes: notification badge, larger logo without taller header, site menu, FAQ accordion, video click-to-play. */
.phlx-topbar__main {
  min-height: 54px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

.phlx-brand__logo {
  width: clamp(92px, 17vw, 148px) !important;
  height: 44px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.phlx-brand__picture,
.phlx-brand__picture img,
.phlx-brand__logo img,
.phlx-brand__img {
  width: 100% !important;
  height: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
}

.phlx-icon-btn--notification,
.phlx-main-menu__item {
  position: relative;
}

.phlx-notification-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  border: 2px solid #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(239, 68, 68, .28);
}

.phlx-main-menu {
  border-top: 1px solid rgba(0, 200, 150, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.phlx-main-menu__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 6px 16px 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.phlx-main-menu__item {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(0, 200, 150, 0.16);
  border-radius: 999px;
  color: #334155;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.phlx-main-menu__item:hover,
.phlx-main-menu__item.is-active {
  color: #0B0F19;
  border-color: rgba(0, 200, 150, 0.42);
  background: rgba(0, 200, 150, 0.12);
}

.phlx-main-menu__item .phlx-notification-badge {
  position: static;
  border: 0;
  min-width: 17px;
  height: 17px;
  font-size: 9px;
}

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

.phlx-faq-item {
  background: #fff;
  border: 1px solid rgba(0, 200, 150, 0.16);
  border-radius: 16px;
  box-shadow: var(--phlx-shadow-sm);
  overflow: hidden;
}

.phlx-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: #0B0F19;
  font-weight: 900;
}

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

.phlx-faq-item summary::after {
  content: '+';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 200, 150, 0.12);
  color: #008f6f;
  font-weight: 900;
  flex: 0 0 auto;
}

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

.phlx-faq-answer {
  border-top: 1px solid rgba(0, 200, 150, 0.12);
  padding: 0 18px 16px;
}

.phlx-faq-answer p {
  margin: 12px 0 0;
  color: #475569;
}

.phlx-legal-content {
  color: #334155;
}

.phlx-legal-content h2,
.phlx-legal-content h3 {
  color: #0B0F19;
  margin-top: 1.2em;
}

.phlx-legal-content h2:first-child,
.phlx-legal-content h3:first-child {
  margin-top: 0;
}

.phlx-legal-content p,
.phlx-legal-content li {
  font-size: 15px;
  line-height: 1.7;
}

.phlx-video-player__iframe {
  width: 100%;
  height: 320px;
}

@media (min-width: 1024px) {
  .phlx-main-menu__inner {
    max-width: 820px;
  }
}

@media (max-width: 640px) {
  .phlx-brand__logo {
    width: 56px !important;
    height: 44px !important;
  }
  .phlx-brand__picture,
  .phlx-brand__picture img,
  .phlx-brand__logo img,
  .phlx-brand__img {
    width: 56px !important;
    height: 44px !important;
    max-height: 44px !important;
  }
  .phlx-main-menu__inner {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* PHLX v9.1 fixes: hamburger menu, visible logo+name brand, SmartLink CTA, in-player VAST pre-roll. */
.phlx-topbar__main {
  min-height: 54px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  position: relative;
}

.phlx-brand {
  gap: 8px !important;
  max-width: min(48vw, 360px);
}

.phlx-brand__logo {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.phlx-brand__picture,
.phlx-brand__picture img,
.phlx-brand__logo img,
.phlx-brand__img {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  object-fit: contain !important;
}

.phlx-brand__copy {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
}

.phlx-brand__name {
  display: block;
  color: #0B0F19;
  font-size: clamp(14px, 2vw, 17px) !important;
  font-weight: 900;
  line-height: 1.05;
  max-width: 230px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phlx-brand__tagline {
  display: block;
  color: #64748b;
  font-size: 10px !important;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.phlx-topbar__actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap !important;
  max-width: none !important;
}

.phlx-hamburger-menu {
  position: relative;
  order: -10;
}

.phlx-hamburger-menu__toggle {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(0, 200, 150, 0.22);
  background: #fff;
  color: #0B0F19;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  list-style: none;
  font-weight: 900;
}

.phlx-hamburger-menu__toggle::-webkit-details-marker {
  display: none;
}

.phlx-hamburger-menu__icon {
  font-size: 22px;
  line-height: 1;
}

.phlx-hamburger-menu__text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.phlx-hamburger-menu[open] .phlx-hamburger-menu__toggle {
  color: #fff;
  background: var(--phlx-gradient);
  border-color: transparent;
}

.phlx-hamburger-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(86vw, 320px);
  max-height: min(72vh, 540px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(0, 200, 150, 0.16);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  z-index: 120;
}

.phlx-hamburger-menu__item {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(0, 200, 150, 0.12);
  border-radius: 14px;
  color: #334155;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.phlx-hamburger-menu__item:hover,
.phlx-hamburger-menu__item.is-active {
  color: #0B0F19;
  border-color: rgba(0, 200, 150, 0.42);
  background: rgba(0, 200, 150, 0.12);
}

.phlx-hamburger-menu__item .phlx-notification-badge {
  position: static;
  border: 0;
  min-width: 17px;
  height: 17px;
  font-size: 9px;
}

.phlx-video-player__vast {
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  color: #fff;
  background: #0B0F19;
}

.phlx-video-player__vast .phlx-ad-slot__label {
  align-self: flex-start;
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.phlx-video-player__vast-note {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.phlx-smartlink-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(0, 200, 150, 0.18);
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
}

.phlx-smartlink-card__copy {
  display: grid;
  gap: 6px;
}

.phlx-smartlink-card__embed a,
.phlx-btn--smartlink {
  color: #fff !important;
  background: var(--phlx-gradient) !important;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  box-shadow: 0 14px 28px rgba(0, 200, 150, 0.22);
}

@media (max-width: 780px) {
  .phlx-brand { max-width: 52vw; }
  .phlx-auth-link { display: none !important; }
  .phlx-brand__name { max-width: 160px; }
}

@media (max-width: 520px) {
  .phlx-brand__logo,
  .phlx-brand__picture,
  .phlx-brand__picture img,
  .phlx-brand__logo img,
  .phlx-brand__img {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
  }
  .phlx-brand__name { max-width: 132px; font-size: 13px !important; }
  .phlx-brand__tagline { display: none; }
  .phlx-hamburger-menu__panel {
    right: -48px;
    grid-template-columns: 1fr;
    width: min(88vw, 280px);
  }
  .phlx-smartlink-card {
    grid-template-columns: 1fr;
  }
}

/* PHLX v11: compact right-side notification + hamburger menu for Hostinger-friendly UI. */
.phlx-topbar__actions {
  margin-left: auto !important;
  flex: 0 0 auto !important;
  gap: 8px !important;
}

.phlx-hamburger-menu {
  order: 20 !important;
  position: relative !important;
}

.phlx-icon-btn--notification {
  order: 10 !important;
}

.phlx-hamburger-menu__panel {
  width: min(78vw, 248px) !important;
  max-height: min(52vh, 360px) !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  padding: 10px !important;
  border-radius: 16px !important;
  overflow-y: auto !important;
  right: 0 !important;
}

.phlx-hamburger-menu__item {
  min-height: 36px !important;
  justify-content: flex-start !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  text-align: left !important;
}

@media (max-width: 520px) {
  .phlx-brand { max-width: calc(100vw - 118px) !important; }
  .phlx-brand__name { max-width: 150px !important; }
  .phlx-hamburger-menu__panel {
    width: min(82vw, 240px) !important;
    max-height: 50vh !important;
    right: 0 !important;
  }
}

/* PHLX v12: notification dropdown, sortable admin UX support, compact menus. */
.phlx-notification-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.phlx-notification-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: min(320px, calc(100vw - 24px));
  max-height: 360px;
  overflow-y: auto;
  background: #ffffff;
  color: #10201a;
  border: 1px solid rgba(16, 32, 26, 0.12);
  box-shadow: 0 18px 40px rgba(16, 32, 26, 0.16);
  border-radius: 18px;
  padding: 10px;
}
.phlx-notification-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 10px;
  border-bottom: 1px solid rgba(16, 32, 26, 0.08);
}
.phlx-notification-popover__head a {
  color: var(--phlx-primary, #00a878);
  font-weight: 700;
  text-decoration: none;
}
.phlx-notification-popover__list {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}
.phlx-notification-popover__item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  background: #f6fbf8;
}
.phlx-notification-popover__item:hover {
  background: #eaf8f0;
}
.phlx-notification-popover__item span {
  font-weight: 800;
}
.phlx-notification-popover__item small,
.phlx-notification-popover__empty {
  color: #66746d;
  margin: 0;
}
@media (max-width: 640px) {
  .phlx-notification-popover {
    right: -58px;
    width: min(300px, calc(100vw - 18px));
    max-height: 300px;
  }
}


/* PHLX v16: wider desktop logo, same compact header height. */
@media (min-width: 1024px) {
  .phlx-brand { max-width: min(62vw, 540px) !important; }
  .phlx-brand__logo,
  .phlx-brand__picture,
  .phlx-brand__picture img,
  .phlx-brand__logo img,
  .phlx-brand__img {
    width: 148px !important;
    max-width: 148px !important;
    height: 50px !important;
    max-height: 50px !important;
    object-fit: contain !important;
  }
  .phlx-brand__name { max-width: 260px !important; }
  .phlx-brand__tagline { max-width: 260px !important; }
}


/* PHLX v4.0 quiz/survey premium learning UI */
.phlx-learning-page-wrap {
  max-width: 820px;
}
.phlx-learning-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  border-radius: 28px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #111827 0%, #4f46e5 48%, #06b6d4 100%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}
.phlx-learning-hero::before,
.phlx-learning-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.phlx-learning-hero::before {
  width: 220px;
  height: 220px;
  right: -80px;
  top: -90px;
  background: rgba(255, 255, 255, 0.16);
}
.phlx-learning-hero::after {
  width: 150px;
  height: 150px;
  left: -70px;
  bottom: -80px;
  background: rgba(255, 255, 255, 0.12);
}
.phlx-learning-hero--survey {
  background: linear-gradient(135deg, #0f172a 0%, #7c3aed 46%, #ec4899 100%);
}
.phlx-learning-hero__content,
.phlx-learning-reward-card {
  position: relative;
  z-index: 1;
}
.phlx-learning-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 0 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.phlx-learning-form-card .phlx-learning-kicker {
  background: #eef2ff;
  color: #4f46e5;
}
.phlx-learning-hero__title {
  margin: 0;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.phlx-learning-hero__text {
  max-width: 560px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}
.phlx-learning-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.phlx-learning-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 800;
}
.phlx-learning-reward-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 128px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.phlx-learning-reward-card span,
.phlx-learning-reward-card small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.phlx-learning-reward-card strong {
  margin: 6px 0;
  color: #fff;
  font-size: clamp(26px, 7vw, 42px);
  line-height: 1;
  font-weight: 950;
}
.phlx-learning-form-card {
  border: 0;
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.09);
}
.phlx-learning-form-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.phlx-learning-form-card__head h3,
.phlx-learning-page-block__head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.phlx-learning-form-card__head p,
.phlx-learning-page-block__head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}
.phlx-learning-progress-pill {
  flex: 0 0 auto;
  min-width: max-content;
  border-radius: 999px;
  padding: 8px 12px;
  background: #ecfeff;
  color: #0891b2;
  font-size: 12px;
  font-weight: 900;
}
.phlx-learning-form {
  padding: 18px;
}
.phlx-learning-page-block {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
}
.phlx-learning-page-block__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}
.phlx-learning-page-block__number {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.2);
}
.phlx-learning-page-wrap--survey .phlx-learning-page-block__number {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}
.phlx-learning-question {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f8fafc;
}
.phlx-learning-question__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.phlx-learning-question__label {
  color: #111827;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}
.phlx-learning-question__required,
.phlx-learning-question__optional {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.phlx-learning-question__required {
  background: #fee2e2;
  color: #b91c1c;
}
.phlx-learning-question__optional {
  background: #e0f2fe;
  color: #0369a1;
}
.phlx-learning-question__helper {
  margin: -2px 0 0;
  color: #64748b;
  font-size: 13px;
}
.phlx-learning-input {
  border-color: #dbe4ef;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15,23,42,.02);
}
.phlx-learning-choices {
  display: grid;
  gap: 9px;
}
.phlx-learning-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.phlx-learning-choice:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
.phlx-learning-choice input {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
}
.phlx-learning-submit-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
}
.phlx-learning-submit {
  min-height: 52px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
}
.phlx-learning-submit-row p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}
.phlx-page--footer-ad {
  padding-top: 0;
  padding-bottom: 24px;
}
.phlx-ad-section[data-phlx-ad-refresh="1"] .phlx-ad-slot__content {
  min-height: inherit;
}
@media (min-width: 720px) {
  .phlx-learning-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr);
    align-items: stretch;
    padding: 30px;
  }
  .phlx-learning-form {
    padding: 22px;
  }
  .phlx-learning-page-block {
    padding: 20px;
  }
}
@media (max-width: 560px) {
  .phlx-learning-form-card__head,
  .phlx-learning-question__head {
    flex-direction: column;
  }
  .phlx-learning-progress-pill {
    align-self: flex-start;
  }
}

/* PHLX v4.3 video library + selected secure player */
.phlx-video-library-page .phlx-video-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap;overflow:hidden;position:relative}.phlx-video-library-page .phlx-video-hero::after{content:"";position:absolute;right:-70px;top:-80px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(34,197,94,.22),rgba(6,182,212,0));pointer-events:none}.phlx-video-library-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}.phlx-video-search{display:flex;gap:8px;align-items:center;min-width:min(100%,420px)}.phlx-video-search .phlx-learning-input{min-width:220px}.phlx-video-grid{display:grid;grid-template-columns:1fr;gap:16px}.phlx-video-card{overflow:hidden;border:1px solid var(--phlx-border);border-radius:24px;background:#fff;box-shadow:0 18px 40px rgba(15,23,42,.08);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.phlx-video-card:hover{transform:translateY(-3px);box-shadow:0 24px 60px rgba(15,23,42,.12);border-color:rgba(6,182,212,.42)}.phlx-video-card__thumb{position:relative;display:flex;align-items:center;justify-content:center;min-height:180px;aspect-ratio:16/9;background:linear-gradient(135deg,#111827,#312e81 55%,#06b6d4);color:#fff;overflow:hidden}.phlx-video-card__thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}.phlx-video-card:hover .phlx-video-card__thumb img{transform:scale(1.04)}.phlx-video-card__play{width:64px;height:64px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#22c55e,#06b6d4);box-shadow:0 18px 38px rgba(6,182,212,.32);font-size:28px}.phlx-video-card__badge{position:absolute;right:12px;bottom:12px;background:rgba(15,23,42,.82);color:#fff;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;backdrop-filter:blur(8px)}.phlx-video-card__body{padding:16px}.phlx-video-card__body h3{font-size:18px;line-height:1.25;margin:0 0 8px;color:#0f172a}.phlx-video-card__body p{margin:0 0 12px;color:#64748b;font-size:14px;line-height:1.55}.phlx-video-card__meta{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.phlx-video-card__meta span{font-size:12px;font-weight:800;color:#475569;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:5px 8px}.phlx-video-card__button{width:100%;justify-content:center}.phlx-video-pagination{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:22px}.phlx-video-pagination a{width:38px;height:38px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--phlx-border);background:#fff;font-weight:800;color:#334155}.phlx-video-pagination a.is-active,.phlx-video-pagination a:hover{background:linear-gradient(135deg,#7c3aed,#06b6d4);color:#fff;border-color:transparent}.phlx-video-watch-card{position:relative;overflow:hidden}.phlx-video-watch-card__head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap;margin-bottom:16px}.phlx-video-back{display:inline-flex;margin-bottom:10px;font-size:13px;font-weight:800;color:#06b6d4}.phlx-video-watch-card__reward{min-width:132px;border:1px solid rgba(124,58,237,.18);background:linear-gradient(135deg,#f8fafc,#eef2ff);border-radius:18px;padding:14px;text-align:center}.phlx-video-watch-card__reward span{display:block;font-size:12px;color:#64748b;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.phlx-video-watch-card__reward strong{display:block;font-size:20px;color:#111827;margin-top:4px}.phlx-video-player__media{object-fit:contain;background:#020617}.phlx-video-player template{display:none!important}
@media (min-width:720px){.phlx-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.phlx-video-card__thumb{min-height:190px}}
@media (min-width:1100px){.phlx-video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.phlx-video-search{justify-content:flex-end}.phlx-video-card__thumb{min-height:210px}}
@media (max-width:640px){.phlx-video-search{width:100%;flex-direction:column;align-items:stretch}.phlx-video-search .phlx-learning-input{min-width:0;width:100%}.phlx-video-watch-card__reward{width:100%}.phlx-video-card__thumb{min-height:170px}}

/* PHLX v4.4 video ad stages, footer ad ordering, and post comments */
.phlx-video-player {
  position: relative;
}
.phlx-video-main-stage {
  min-height: 220px;
}
.phlx-video-main-stage .phlx-video-player__iframe,
.phlx-video-main-stage .phlx-video-player__media {
  width: 100%;
  min-height: 320px;
}
.phlx-video-ad-stage[hidden] {
  display: none !important;
}
.phlx-video-ad-stage {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 14px;
  background: rgba(2, 6, 23, .92);
  backdrop-filter: blur(6px);
}
.phlx-video-ad {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(49,46,129,.92));
  padding: 14px;
  color: #fff;
  box-shadow: 0 22px 60px rgba(2,6,23,.35);
}
.phlx-video-ad__creative {
  flex: 1;
  min-height: 180px;
  overflow: hidden;
  border-radius: 14px;
  background: #020617;
}
.phlx-video-ad__creative iframe,
.phlx-video-ad__creative video,
.phlx-video-ad__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  border: 0;
  background: #020617;
}
.phlx-video-ad__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.phlx-video-ad__foot small {
  color: rgba(255,255,255,.78);
}
.phlx-page--footer-ad {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  margin-bottom: 8px;
}
.phlx-site-footer {
  position: relative;
  z-index: 0;
}
.phlx-comments-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.phlx-comments-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.phlx-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phlx-comment-item {
  list-style: none;
}
.phlx-comment-body {
  display: flex;
  gap: 12px;
  border: 1px solid var(--phlx-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  padding: 14px;
}
.phlx-comment-avatar img {
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(15,23,42,.12);
}
.phlx-comment-content {
  flex: 1;
  min-width: 0;
}
.phlx-comment-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 6px;
}
.phlx-comment-meta span {
  color: #64748b;
  font-size: 12px;
}
.phlx-comment-text {
  color: #334155;
  line-height: 1.65;
}
.phlx-comment-actions a {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 800;
  color: #4f46e5;
  text-decoration: none;
}
.phlx-empty-comments {
  border: 1px dashed var(--phlx-border);
  border-radius: 18px;
  padding: 18px;
  background: #f8fafc;
  color: #475569;
}
.phlx-comment-form-wrap {
  border-top: 1px solid var(--phlx-border);
  padding-top: 18px;
}
.phlx-comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phlx-comment-field label {
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
  color: #0f172a;
}
.phlx-comment-textarea {
  width: 100%;
  border-radius: 18px;
  min-height: 130px;
}
.phlx-emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.phlx-emoji-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--phlx-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.phlx-emoji-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15,23,42,.12);
}
.phlx-comment-pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.phlx-comment-pagination a,
.phlx-comment-pagination span {
  border: 1px solid var(--phlx-border);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
}
@media (max-width: 640px) {
  .phlx-video-ad-stage {
    padding: 8px;
  }
  .phlx-video-ad__foot {
    align-items: stretch;
  }
  .phlx-video-ad__foot .phlx-btn {
    width: 100%;
  }
  .phlx-comment-body {
    align-items: flex-start;
  }
}

/* PHLX v4.5 linear video ad engine */
.phlx-video-player.is-ad-playing .phlx-video-main-stage {
  filter: saturate(.72) brightness(.62);
}
.phlx-video-ima-wrap,
.phlx-video-ima-container {
  width: 100%;
  min-height: 260px;
  height: 100%;
  position: relative;
}
.phlx-video-ima-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(2,6,23,.96);
  padding: 14px;
  box-shadow: 0 22px 60px rgba(2,6,23,.35);
}
.phlx-video-ima-container {
  flex: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #020617;
}
.phlx-video-ad__media {
  object-fit: contain;
}
.phlx-video-ad [data-phlx-video-ad-skip][hidden] {
  display: none !important;
}
.phlx-video-ad__foot small,
.phlx-video-ima-wrap .phlx-video-ad__foot small {
  font-weight: 700;
}

/* PHLX 4.7.0: Leaderboards, referrals, and persistent user badges */
.phlx-user-with-badges{display:inline-flex;align-items:center;gap:.35rem;flex-wrap:wrap;vertical-align:middle}.phlx-user-badges{display:inline-flex;align-items:center;gap:.2rem}.phlx-user-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.35rem;height:1.35rem;border-radius:999px;background:rgba(0,200,150,.12);border:1px solid rgba(0,200,150,.26);font-size:.95rem;line-height:1;cursor:help}.phlx-user-badge--gold{background:rgba(255,198,41,.18);border-color:rgba(255,198,41,.42)}.phlx-user-badge--silver{background:rgba(168,179,191,.18);border-color:rgba(168,179,191,.45)}.phlx-user-badge--bronze{background:rgba(198,124,51,.18);border-color:rgba(198,124,51,.42)}.phlx-user-badge--elite{background:rgba(0,200,150,.14);border-color:rgba(0,200,150,.32)}.phlx-leaderboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.phlx-leaderboard-card__header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}.phlx-leaderboard-list{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}.phlx-leaderboard-row{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:.65rem;align-items:center;padding:.75rem;border:1px solid rgba(15,23,42,.08);border-radius:16px;background:rgba(255,255,255,.7)}.phlx-leaderboard-rank{font-weight:800;color:#0f172a}.phlx-leaderboard-user{min-width:0;overflow:hidden;text-overflow:ellipsis}.phlx-leaderboard-metric{font-weight:700;color:#00a77e;white-space:nowrap}.phlx-leaderboard-row--rank-1{background:linear-gradient(135deg,rgba(255,198,41,.18),rgba(255,255,255,.78))}.phlx-leaderboard-row--rank-2{background:linear-gradient(135deg,rgba(168,179,191,.18),rgba(255,255,255,.78))}.phlx-leaderboard-row--rank-3{background:linear-gradient(135deg,rgba(198,124,51,.16),rgba(255,255,255,.78))}.phlx-clean-list{margin:0;padding-left:1.1rem}.phlx-clean-list li{margin:.4rem 0}@media(max-width:640px){.phlx-leaderboard-row{grid-template-columns:44px minmax(0,1fr);}.phlx-leaderboard-metric{grid-column:2;justify-self:start}.phlx-leaderboard-card__header{display:block}.phlx-leaderboard-card__header .phlx-badge{margin-top:.5rem}}

.phlx-comment-ajax-notice {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    font-weight: 700;
}
.phlx-comment-ajax-notice[data-status="success"] {
    background: rgba(34, 197, 94, 0.12);
}
.phlx-comment-ajax-notice[data-status="error"] {
    background: rgba(239, 68, 68, 0.12);
}


/* PHLX v4.8 fullscreen-safe video ads and in-player reward notification */
.phlx-video-player:fullscreen,
.phlx-video-player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #020617;
}
.phlx-video-player:fullscreen .phlx-video-main-stage,
.phlx-video-player:-webkit-full-screen .phlx-video-main-stage,
.phlx-video-player:fullscreen .phlx-video-player__iframe,
.phlx-video-player:-webkit-full-screen .phlx-video-player__iframe,
.phlx-video-player:fullscreen .phlx-video-player__media,
.phlx-video-player:-webkit-full-screen .phlx-video-player__media {
  width: 100%;
  height: 100%;
  min-height: 100vh;
}
.phlx-video-player:fullscreen .phlx-video-ad-stage,
.phlx-video-player:-webkit-full-screen .phlx-video-ad-stage {
  z-index: 30;
}
.phlx-video-reward-notice--overlay {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 42;
  max-width: min(92%, 560px);
  margin: 0;
  padding: 12px 16px;
  border-radius: 999px;
  color: #ecfdf5;
  background: rgba(5, 150, 105, .92);
  border: 1px solid rgba(167, 243, 208, .7);
  box-shadow: 0 18px 46px rgba(2, 6, 23, .35);
  text-align: center;
}
.phlx-video-reward-notice--overlay.is-error {
  color: #fff7ed;
  background: rgba(185, 28, 28, .94);
  border-color: rgba(254, 202, 202, .75);
}
.phlx-video-player.has-reward-notice .phlx-video-main-stage {
  padding-bottom: 0;
}
