:root {
  --bg: #09070f;
  --bg-glow-1: rgba(124, 58, 237, 0.28);
  --bg-glow-2: rgba(124, 58, 237, 0.20);

  --panel: #100c1a;
  --panel-2: #151024;
  --panel-hover: #1b1430;

  --border: rgba(160, 120, 255, 0.08);
  --border-strong: rgba(160, 120, 255, 0.14);

  --text: #f4f1ff;
  --text-dim: #b4accf;
  --text-muted: #8b82ab;

  --accent: rgba(124, 58, 237, 0.6);
  --accent-soft: rgba(124, 58, 237, 0.12);

  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;

  --sidebar-w: 264px;
  --content-max: 1400px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -320px;
  right: -180px;
  width: 900px;
  height: 760px;
  background: radial-gradient(
    ellipse at center,
    var(--bg-glow-1) 0%,
    rgba(124, 58, 237, 0) 68%
  );
}

body::after {
  top: -260px;
  left: -240px;
  width: 820px;
  height: 700px;
  background: radial-gradient(
    ellipse at center,
    var(--bg-glow-2) 0%,
    rgba(124, 58, 237, 0) 66%
  );
}

.page {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
  padding: 26px 6% 80px;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  .page {
    max-width: 1450px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

.page-header {
  margin-bottom: 20px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.page-subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.005em;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 22px;
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 48px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 26px;
}

.sidebar .cx-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cx-settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  outline: none;
}

.cx-settings-nav-item:focus-visible {
  outline: 1px solid var(--border-strong);
  outline-offset: 2px;
}

.cx-settings-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.cx-settings-nav-item.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

.cx-settings-nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  opacity: 0.85;
}

.cx-settings-nav-section {
  padding: 0 14px;
  margin: 26px 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cx-settings-nav-section:first-child {
  margin-top: 0;
}

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

.content-head {
  margin-bottom: 4px;
}

.content-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.content-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.account-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.account-left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.account-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  flex: 0 0 36px;
}

.account-badge svg {
  width: 17px;
  height: 17px;
}

.account-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.18);
  color: #f4f1ff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.btn-premium svg {
  width: 14px;
  height: 14px;
}

.btn-premium:hover {
  background: rgba(124, 58, 237, 0.3);
}

.btn-premium:active {
  transform: translateY(1px);
}

.grid {
  display: grid;
  gap: 13px;
}

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

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

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

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

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 18px 17px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.16s ease, border-color 0.16s ease;
  cursor: pointer;
}

.card:hover {
  background: var(--panel-hover);
  border-color: var(--border-strong);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-dim);
  flex: 0 0 34px;
}

.card-icon svg {
  width: 16px;
  height: 16px;
}

.card-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-top: 8px;
  transition: transform 0.18s ease;
}

.card-arrow svg {
  width: 15px;
  height: 15px;
}

.card:hover .card-arrow {
  transform: translateX(3px);
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}

.card-desc {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.row-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 19px;
}

.row-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.row-desc {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 40px;
}

.avatar svg,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease;
}

.btn-ghost svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.panel-cut {
  height: 40px;
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.field-group {
  padding: 18px 19px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input[type="text"],
input[type="search"],
input[type="password"] {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 9px 12px;
  outline: none;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="password"]:focus {
  border-color: var(--accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.55);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.btn-primary:hover {
  background: rgba(124, 58, 237, 0.72);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.placeholder-panel {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

[data-settings-block] {
  display: none;
}

[data-settings-block].active {
  display: block;
}

[data-settings-block="apercu"].active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

:root{
  --cx-bg:#050505;
  --cx-surface:rgba(14,14,16,.72);
  --cx-surface-2:rgba(255,255,255,.04);
  --cx-surface-3:rgba(255,255,255,.06);
  --cx-text:#ffffff;
  --cx-dim:rgba(255,255,255,.72);
  --cx-dim2:rgba(255,255,255,.52);
  --cx-border:rgba(255,255,255,.09);
  --cx-border-strong:rgba(255,255,255,.14);
  --cx-violet:#7c3aed;
  --cx-violet-2:#5b21b6;
  --cx-red:#ff4b4b;
  --cx-shadow:0 20px 50px rgba(0,0,0,.5);
  --cx-shadow-lg:0 26px 64px rgba(0,0,0,.6);
  --cx-r-xl:16px;
  --cx-r-lg:12px;
  --cx-r-md:10px;
  --cx-r-sm:8px;
  --cx-transition:.18s ease;
}

#settings-content,
#settings-content *{
  box-sizing:border-box;
}

#settings-content{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:visible;
  color:var(--cx-text);
}

#settings-content .cx-profiles-panel{
  width:100%;
  max-width:960px;
  margin:0 auto;
  padding:clamp(28px,4vw,48px);
  border-radius:var(--cx-r-xl);
  background:var(--cx-surface);
  border:1px solid var(--cx-border);
  box-shadow:var(--cx-shadow);
}

#settings-content .cx-profiles-header{
  margin:0 0 clamp(26px,4vw,38px);
  text-align:center;
}

#settings-content .cx-profiles-header h2{
  margin:0;
  font-size:clamp(20px,2.4vw,24px);
  line-height:1.1;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--cx-text);
}

#settings-content .cx-profiles-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:flex-start;
  gap:clamp(20px,3.6vw,36px);
}

#settings-content .cx-profile-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  width:min(100%,160px);
  padding:8px;
  border-radius:var(--cx-r-md);
  cursor:pointer;
  user-select:none;
  outline:none;
  transition:background var(--cx-transition);
}

#settings-content .cx-profile-card:hover{
  background:rgba(255,255,255,.02);
}

#settings-content .cx-profile-card:focus-visible{
  background:rgba(255,255,255,.03);
  outline:1px solid var(--cx-border-strong);
}

#settings-content .cx-profile-card img{
  width:clamp(96px,10vw,132px);
  height:clamp(96px,10vw,132px);
  display:block;
  object-fit:cover;
  border-radius:999px;
  padding:4px;
  background:rgba(255,255,255,.03);
  border:2px solid var(--cx-border);
  transition:border-color var(--cx-transition);
}

#settings-content .cx-profile-card:hover img,
#settings-content .cx-profile-card:focus-visible img{
  border-color:var(--cx-border-strong);
}

#settings-content .cx-profile-name{
  max-width:100%;
  margin:0;
  font-size:14px;
  font-weight:600;
  line-height:1.25;
  text-align:center;
  color:var(--cx-dim);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:color var(--cx-transition);
}

#settings-content .cx-profile-card:hover .cx-profile-name,
#settings-content .cx-profile-card:focus-visible .cx-profile-name{
  color:var(--cx-text);
}

#settings-content .cx-profile-new{
  opacity:.94;
}

#settings-content .cx-profile-card.cx-profile-active img{
  border-color:#7c3aed;
  box-shadow:0 0 0 3px rgba(124,58,237,.25);
}

#settings-content .cx-profile-card.cx-profile-active .cx-profile-name{
  color:var(--cx-text);
}

#settings-content .cx-profile-card.cx-profile-active .cx-profile-name::after{
  content:"Actif";
  display:block;
  margin-top:2px;
  font-size:11px;
  font-weight:700;
  color:#7c3aed;
}

#settings-content .cx-plus-wrapper{
  width:clamp(96px,10vw,132px);
  height:clamp(96px,10vw,132px);
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:2px dashed var(--cx-border-strong);
  background:rgba(255,255,255,.02);
  transition:border-color var(--cx-transition),background var(--cx-transition);
}

#settings-content .cx-plus-wrapper svg{
  width:34px;
  height:34px;
  stroke:rgba(255,255,255,.5);
}

#settings-content .cx-profile-new:hover .cx-plus-wrapper,
#settings-content .cx-profile-new:focus-visible .cx-plus-wrapper{
  border-color:rgba(255,255,255,.28);
  background:rgba(255,255,255,.04);
}

#settings-content .cx-profiles-actions{
  margin-top:clamp(28px,4vw,44px);
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
}

#settings-content .cx-manage-btn,
#settings-content .cx-logout-btn{
  min-height:42px;
  padding:0 18px;
  border-radius:var(--cx-r-sm);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:background var(--cx-transition),border-color var(--cx-transition),color var(--cx-transition);
}

#settings-content .cx-manage-btn{
  border:1px solid var(--cx-border-strong);
  background:rgba(255,255,255,.035);
  color:#fff;
}

#settings-content .cx-manage-btn:hover{
  background:rgba(255,255,255,.07);
}

#settings-content .cx-manage-btn:focus-visible{
  outline:1px solid var(--cx-border-strong);
  outline-offset:2px;
}

#settings-content .cx-logout-btn{
  border:none;
  background:var(--cx-violet);
  color:#fff;
}

#settings-content .cx-logout-btn:hover{
  background:var(--cx-violet-2);
}

#settings-content .cx-logout-btn:focus-visible{
  outline:1px solid var(--cx-border-strong);
  outline-offset:2px;
}

#settings-content .cx-profiles-panel.cx-manage-mode .cx-profile-card:not(.cx-profile-new) img{
  border-color:var(--cx-border-strong);
}

#settings-content .cx-profiles-panel.cx-manage-mode .cx-profile-card:not(.cx-profile-new)::after{
  content:"Modifier";
  position:absolute;
  top:4px;
  right:4px;
  padding:5px 8px;
  border-radius:var(--cx-r-sm);
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:10px;
  font-weight:600;
  line-height:1;
  pointer-events:none;
}

#settings-content .cx-profiles-panel.cx-manage-mode .cx-profile-card:not(.cx-profile-new):hover{
  background:rgba(255,255,255,.03);
}

#settings-content .cx-profiles-panel.cx-manage-mode .cx-profile-card.cx-profile-new{
  opacity:.62;
}

#settings-content .cx-profiles-panel.cx-manage-mode .cx-manage-btn{
  background:rgba(255,255,255,.07);
  border-color:var(--cx-border-strong);
}

#settings-content .cx-profiles-overlay,
#settings-content .cx-avatars-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.7);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity var(--cx-transition),visibility var(--cx-transition);
  z-index:200000;
}

#settings-content .cx-profiles-overlay.active,
#settings-content .cx-avatars-overlay.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

#settings-content .cx-profiles-modal,
#settings-content .cx-avatars-modal{
  position:relative;
  width:min(100%,560px);
  background:#131318;
  border:1px solid var(--cx-border);
  box-shadow:var(--cx-shadow-lg);
  color:#fff;
}

#settings-content .cx-profiles-modal{
  max-height:min(78vh,760px);
  max-height:min(78svh,760px);
  overflow:auto;
  border-radius:var(--cx-r-lg);
  padding:26px 24px 22px;
  scrollbar-width:thin;
}

#settings-content .cx-avatars-modal{
  width:min(100%,760px);
  max-height:min(76vh,780px);
  max-height:min(76svh,780px);
  border-radius:var(--cx-r-lg);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

#settings-content .cx-profiles-modal::-webkit-scrollbar,
#settings-content .cx-avatars-scroll::-webkit-scrollbar{
  width:8px;
  height:8px;
}

#settings-content .cx-profiles-modal::-webkit-scrollbar-thumb,
#settings-content .cx-avatars-scroll::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.16);
  border-radius:999px;
}

#settings-content .cx-profiles-modal::-webkit-scrollbar-track,
#settings-content .cx-avatars-scroll::-webkit-scrollbar-track{
  background:transparent;
}

#settings-content .cx-profiles-close,
#settings-content .cx-avatars-close{
  position:absolute;
  top:14px;
  right:14px;
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--cx-r-sm);
  border:1px solid var(--cx-border);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.7);
  font-size:12px;
  cursor:pointer;
  z-index:20;
  transition:background var(--cx-transition),border-color var(--cx-transition),color var(--cx-transition);
}

#settings-content .cx-profiles-close:hover,
#settings-content .cx-avatars-close:hover{
  background:rgba(255,255,255,.08);
  border-color:var(--cx-border-strong);
  color:#fff;
}

#settings-content .cx-profiles-close:focus-visible,
#settings-content .cx-avatars-close:focus-visible{
  outline:1px solid var(--cx-border-strong);
  outline-offset:2px;
}

#settings-content .cx-profiles-modal-title{
  padding-right:52px;
  margin:4px 0 6px;
  font-size:clamp(19px,2vw,21px);
  font-weight:700;
  line-height:1.15;
  letter-spacing:-.01em;
}

#settings-content .cx-profiles-modal-sub{
  display:block;
  margin-bottom:22px;
  color:var(--cx-dim2);
  font-size:13px;
  line-height:1.45;
}

#settings-content .cx-create-row{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  margin-bottom:20px;
}

#settings-content .cx-avatar-preview{
  position:relative;
  width:120px;
  height:120px;
  padding:0;
  border:none;
  border-radius:999px;
  overflow:hidden;
  background:transparent;
  border:2px solid var(--cx-border-strong);
  cursor:pointer;
}

#settings-content .cx-avatar-preview img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:999px;
}

#settings-content .cx-avatar-edit{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.32);
  color:#fff;
  font-size:18px;
  opacity:0;
  transition:opacity var(--cx-transition);
}

#settings-content .cx-avatar-preview:hover .cx-avatar-edit,
#settings-content .cx-avatar-preview:focus-visible .cx-avatar-edit{
  opacity:1;
}

#settings-content .cx-avatar-preview:focus-visible{
  outline:1px solid var(--cx-border-strong);
  outline-offset:3px;
}

#settings-content .cx-profiles-field{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:8px;
}

#settings-content .cx-profiles-field label{
  font-size:12px;
  font-weight:600;
  color:var(--cx-dim);
  text-transform:uppercase;
  letter-spacing:.04em;
}

#settings-content .cx-profiles-field input{
  width:100%;
  height:46px;
  padding:0 16px;
  border-radius:var(--cx-r-sm);
  border:1px solid var(--cx-border);
  background:rgba(255,255,255,.035);
  color:#fff;
  font-size:14px;
  outline:none;
  transition:border-color var(--cx-transition),background var(--cx-transition);
}

#settings-content .cx-profiles-field input::placeholder{
  color:rgba(255,255,255,.32);
}

#settings-content .cx-profiles-field input:focus{
  border-color:var(--cx-border-strong);
  background:rgba(255,255,255,.05);
}

#settings-content .cx-profiles-actions-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:6px;
}

#settings-content .cx-profiles-delete,
#settings-content .cx-profiles-cancel,
#settings-content .cx-profiles-create{
  min-height:44px;
  padding:0 16px;
  border-radius:var(--cx-r-sm);
  font-size:13.5px;
  font-weight:600;
  cursor:pointer;
  transition:background var(--cx-transition),border-color var(--cx-transition),color var(--cx-transition),opacity var(--cx-transition);
}

#settings-content .cx-profiles-delete{
  margin-right:auto;
  border:1px solid rgba(255,75,75,.28);
  background:rgba(255,75,75,.08);
  color:#ffb6b6;
}

#settings-content .cx-profiles-delete:hover{
  background:rgba(255,75,75,.14);
  border-color:rgba(255,75,75,.4);
}

#settings-content .cx-profiles-delete[hidden]{
  display:none !important;
}

#settings-content .cx-profiles-delete:focus-visible{
  outline:1px solid rgba(255,75,75,.5);
  outline-offset:2px;
}

#settings-content .cx-profiles-cancel{
  flex:0 0 140px;
  border:1px solid var(--cx-border);
  background:rgba(255,255,255,.035);
  color:#fff;
}

#settings-content .cx-profiles-cancel:hover{
  background:rgba(255,255,255,.07);
}

#settings-content .cx-profiles-create{
  flex:1 1 auto;
  border:none;
  background:var(--cx-violet);
  color:#fff;
}

#settings-content .cx-profiles-create:hover{
  background:var(--cx-violet-2);
}

#settings-content .cx-profiles-cancel:focus-visible,
#settings-content .cx-profiles-create:focus-visible{
  outline:1px solid var(--cx-border-strong);
  outline-offset:2px;
}

#settings-content .cx-profiles-delete:disabled,
#settings-content .cx-profiles-cancel:disabled,
#settings-content .cx-profiles-create:disabled{
  opacity:.5;
  cursor:not-allowed;
}

#settings-content .cx-profiles-msg{
  min-height:18px;
  margin-top:12px;
  font-size:12.5px;
  color:var(--cx-dim);
}

#settings-content .cx-avatars-head{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:22px 56px 16px 22px;
  background:#131318;
  border-bottom:1px solid var(--cx-border);
}

#settings-content .cx-avatars-title{
  margin:0;
  font-size:19px;
  font-weight:700;
  line-height:1.15;
  letter-spacing:-.01em;
}

#settings-content .cx-avatars-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

#settings-content .cx-tab{
  min-height:32px;
  padding:0 13px;
  border-radius:var(--cx-r-sm);
  border:1px solid var(--cx-border);
  background:rgba(255,255,255,.035);
  color:var(--cx-dim);
  font-size:12.5px;
  font-weight:600;
  cursor:pointer;
  transition:background var(--cx-transition),border-color var(--cx-transition),color var(--cx-transition);
}

#settings-content .cx-tab:hover{
  background:rgba(255,255,255,.06);
  color:#fff;
}

#settings-content .cx-tab.active{
  background:rgba(255,255,255,.08);
  border-color:var(--cx-border-strong);
  color:#fff;
}

#settings-content .cx-avatars-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:18px;
}

#settings-content .cx-avatars-body{
  display:flex;
  flex-direction:column;
  gap:24px;
}

#settings-content .cx-section{
  display:flex;
  flex-direction:column;
  gap:12px;
}

#settings-content .cx-section-title{
  margin:0;
  font-size:13px;
  font-weight:600;
  color:var(--cx-dim);
  letter-spacing:-.005em;
}

#settings-content .cx-avatar-row{
  position:relative;
  display:flex;
  align-items:center;
}

#settings-content .cx-avatar-track{
  width:100%;
  display:flex;
  align-items:center;
  gap:14px;
  padding:4px 2px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
}

#settings-content .cx-avatar-track.dragging{
  cursor:grabbing;
}

#settings-content .cx-avatar-item img{
  -webkit-user-drag:none;
  pointer-events:none;
}

#settings-content .cx-avatar-track::-webkit-scrollbar{
  display:none;
}

#settings-content .cx-avatar-item{
  flex:0 0 auto;
  width:80px;
  height:80px;
  padding:3px;
  border-radius:999px;
  border:2px solid var(--cx-border);
  background:rgba(255,255,255,.03);
  overflow:hidden;
  cursor:pointer;
  transition:border-color var(--cx-transition);
}

#settings-content .cx-avatar-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:999px;
}

#settings-content .cx-avatar-item:hover{
  border-color:var(--cx-border-strong);
}

#settings-content .cx-avatar-item.active{
  border-color:rgba(255,255,255,.6);
}

#settings-content .cx-avatar-item::after{
  display:none;
}

#settings-content .cx-row-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--cx-r-sm);
  border:1px solid var(--cx-border);
  background:#181820;
  color:#fff;
  font-size:18px;
  cursor:pointer;
  z-index:3;
  transition:background var(--cx-transition),border-color var(--cx-transition),opacity var(--cx-transition);
}

#settings-content .cx-row-arrow.left{
  left:-6px;
}

#settings-content .cx-row-arrow.right{
  right:-6px;
}

#settings-content .cx-row-arrow:hover:not(:disabled){
  background:rgba(255,255,255,.07);
  border-color:var(--cx-border-strong);
}

#settings-content .cx-row-arrow:disabled{
  opacity:0;
  pointer-events:none;
}

@media(max-width:1100px){
  #settings-content .cx-profiles-panel{
    max-width:760px;
  }
}

@media(max-width:760px){
  #settings-content .cx-profiles-panel{
    padding:32px 20px;
  }

  #settings-content .cx-profile-card{
    width:138px;
  }

  #settings-content .cx-profiles-modal{
    max-height:76vh;
    max-height:76svh;
    padding:24px 18px 18px;
    border-radius:var(--cx-r-lg);
  }

  #settings-content .cx-avatars-modal{
    max-height:74vh;
    max-height:74svh;
    border-radius:var(--cx-r-lg);
  }

  #settings-content .cx-avatars-head{
    padding:20px 52px 14px 18px;
  }

  #settings-content .cx-avatars-scroll{
    padding:16px 14px;
  }
}

@media(max-width:560px){
  #settings-content .cx-profiles-panel{
    padding:24px 14px;
    border-radius:var(--cx-r-lg);
  }

  #settings-content .cx-profiles-grid{
    gap:18px;
  }

  #settings-content .cx-profile-card{
    width:126px;
    gap:10px;
  }

  #settings-content .cx-profile-card img,
  #settings-content .cx-plus-wrapper{
    width:100px;
    height:100px;
  }

  #settings-content .cx-profile-name{
    font-size:13px;
  }

  #settings-content .cx-profiles-actions{
    gap:10px;
  }

  #settings-content .cx-manage-btn,
  #settings-content .cx-logout-btn{
    width:100%;
  }

  #settings-content .cx-profiles-overlay,
  #settings-content .cx-avatars-overlay{
    padding:10px;
  }

  #settings-content .cx-profiles-modal{
    max-height:74vh;
    max-height:74svh;
    padding:22px 14px 16px;
    border-radius:var(--cx-r-md);
  }

  #settings-content .cx-profiles-modal-title{
    font-size:18px;
  }

  #settings-content .cx-profiles-modal-sub{
    font-size:12.5px;
    margin-bottom:18px;
  }

  #settings-content .cx-avatar-preview{
    width:104px;
    height:104px;
  }

  #settings-content .cx-profiles-actions-row{
    flex-wrap:wrap;
  }

  #settings-content .cx-profiles-delete{
    width:100%;
    margin-right:0;
    order:-1;
  }

  #settings-content .cx-profiles-cancel,
  #settings-content .cx-profiles-create{
    flex:1 1 calc(50% - 5px);
    min-width:0;
  }

  #settings-content .cx-avatars-modal{
    max-height:72vh;
    max-height:72svh;
    border-radius:var(--cx-r-md);
  }

  #settings-content .cx-avatars-head{
    gap:12px;
    padding:18px 50px 14px 14px;
  }

  #settings-content .cx-avatars-title{
    font-size:17px;
  }

  #settings-content .cx-avatars-tabs{
    gap:8px;
  }

  #settings-content .cx-tab{
    min-height:30px;
    padding:0 11px;
    font-size:12px;
  }

  #settings-content .cx-avatars-scroll{
    padding:14px 10px;
  }

  #settings-content .cx-section{
    gap:10px;
  }

  #settings-content .cx-avatar-item{
    width:70px;
    height:70px;
  }

  #settings-content .cx-row-arrow{
    width:30px;
    height:30px;
    font-size:16px;
  }

  #settings-content .cx-row-arrow.left{
    left:-2px;
  }

  #settings-content .cx-row-arrow.right{
    right:-2px;
  }
}

@media(max-width:380px){
  #settings-content .cx-profile-card{
    width:112px;
  }

  #settings-content .cx-profile-card img,
  #settings-content .cx-plus-wrapper{
    width:90px;
    height:90px;
  }

  #settings-content .cx-profile-name{
    max-width:96px;
    font-size:12px;
  }

  #settings-content .cx-profiles-modal{
    max-height:72vh;
    max-height:72svh;
  }

  #settings-content .cx-profiles-close,
  #settings-content .cx-avatars-close{
    width:32px;
    height:32px;
    top:10px;
    right:10px;
  }

  #settings-content .cx-avatar-preview{
    width:96px;
    height:96px;
  }

  #settings-content .cx-profiles-field input{
    height:42px;
    font-size:13px;
  }

  #settings-content .cx-profiles-delete,
  #settings-content .cx-profiles-cancel,
  #settings-content .cx-profiles-create{
    min-height:42px;
    font-size:13px;
  }

  #settings-content .cx-avatars-modal{
    max-height:70vh;
    max-height:70svh;
  }

  #settings-content .cx-avatars-title{
    font-size:16px;
  }

  #settings-content .cx-tab{
    font-size:11px;
    padding:0 9px;
  }

  #settings-content .cx-avatar-item{
    width:64px;
    height:64px;
  }
}

@media(prefers-reduced-motion:reduce){
  #settings-content .cx-profile-card,
  #settings-content .cx-profile-card img,
  #settings-content .cx-plus-wrapper,
  #settings-content .cx-manage-btn,
  #settings-content .cx-logout-btn,
  #settings-content .cx-profiles-close,
  #settings-content .cx-avatars-close,
  #settings-content .cx-profiles-delete,
  #settings-content .cx-profiles-cancel,
  #settings-content .cx-profiles-create,
  #settings-content .cx-tab,
  #settings-content .cx-avatar-item,
  #settings-content .cx-row-arrow,
  #settings-content .cx-avatar-edit,
  #settings-content .cx-profiles-overlay,
  #settings-content .cx-avatars-overlay{
    transition:none;
  }

  #settings-content .cx-avatar-track{
    scroll-behavior:auto;
  }
}


.main{
  overflow:visible !important;
}

#settings-content{
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:visible !important;
}

#settings-content.page-loading,
#settings-content.page-ready{
  transform:none !important;
}

#settings-content .cx-sub-wrapper{
  width:100%;
  max-width:1040px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(260px,380px) minmax(0,1fr);
  overflow:hidden;
  border-radius:var(--cx-r-xl);
  background:var(--cx-surface);
  border:1px solid var(--cx-border);
  box-shadow:var(--cx-shadow);
  box-sizing:border-box;
}

#settings-content .cx-sub-image{
  position:relative;
  min-height:560px;
  background:url('/assets/autre/abonnement-img.png') center/cover no-repeat;
}

#settings-content .cx-sub-image::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to right,rgba(5,5,5,.1),rgba(5,5,5,.42) 72%,rgba(5,5,5,.8)),
    linear-gradient(to bottom,transparent 48%,rgba(5,5,5,.5));
}

#settings-content .cx-sub-card{
  position:relative;
  min-width:0;
  padding:clamp(34px,4vw,54px);
  color:#fff;
  background:transparent;
  box-sizing:border-box;
}

#settings-content .cx-sub-badge,
#settings-content .cx-sub-price,
#settings-content .cx-sub-note,
#settings-content .cx-sub-switch,
#settings-content .cx-sub-features,
#settings-content .cx-sub-btn{
  position:relative;
  z-index:1;
}

#settings-content .cx-sub-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:6px 12px;
  border-radius:var(--cx-r-sm);
  background:rgba(255,255,255,.06);
  border:1px solid var(--cx-border-strong);
  color:var(--cx-dim);
  font-size:.72rem;
  line-height:1;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:18px;
}

#settings-content .cx-sub-price{
  font-size:clamp(2.6rem,4.2vw,3.6rem);
  line-height:.95;
  font-weight:700;
  letter-spacing:-.03em;
  color:#fff;
  margin-bottom:12px;
  transition:opacity .18s ease;
}

#settings-content .cx-sub-note{
  max-width:460px;
  color:var(--cx-dim);
  font-size:.88rem;
  font-weight:500;
  line-height:1.5;
  margin-bottom:30px;
  transition:opacity .18s ease;
}

#settings-content .cx-sub-switch{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  padding:6px;
  border-radius:var(--cx-r-md);
  background:rgba(255,255,255,.035);
  border:1px solid var(--cx-border);
  margin-bottom:32px;
}

#settings-content .cx-sub-switch button{
  min-width:0;
  min-height:42px;
  border:0;
  border-radius:var(--cx-r-sm);
  background:transparent;
  color:var(--cx-dim);
  font-size:.85rem;
  font-weight:600;
  cursor:pointer;
  transition:background .18s ease,color .18s ease;
}

#settings-content .cx-sub-switch button:hover{
  background:rgba(255,255,255,.05);
  color:#fff;
}

#settings-content .cx-sub-switch button.active{
  background:rgba(255,255,255,.09);
  color:#fff;
}

#settings-content .cx-sub-features{
  list-style:none;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 16px;
  padding:0;
  margin:0 0 34px;
}

#settings-content .cx-sub-features li{
  position:relative;
  min-width:0;
  padding-left:22px;
  color:var(--cx-dim);
  font-size:.86rem;
  font-weight:600;
  line-height:1.35;
}

#settings-content .cx-sub-features li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:#fff;
  font-weight:700;
  font-size:.82rem;
}

#settings-content .cx-sub-features .gold{
  grid-column:1 / -1;
  color:var(--cx-dim2);
}

#settings-content .cx-link{
  display:inline-flex;
  margin-left:6px;
  color:#fff;
  text-decoration:none;
  border-bottom:1px solid var(--cx-border-strong);
  cursor:pointer;
  transition:border-color .18s ease;
}

#settings-content .cx-link:hover{
  border-color:#fff;
}

#settings-content .cx-sub-btn{
  width:100%;
  min-height:50px;
  padding:0 22px;
  border:0;
  border-radius:var(--cx-r-md);
  background:var(--cx-violet);
  color:#fff;
  font-size:.9rem;
  font-weight:700;
  cursor:pointer;
  transition:background .18s ease;
}

#settings-content .cx-sub-btn:hover{
  background:var(--cx-violet-2);
}

#settings-content .cx-sub-secondary{
  width:100%;
  margin-top:14px;
  min-height:46px;
  padding:0 20px;
  border-radius:var(--cx-r-md);
  border:1px solid var(--cx-border-strong);
  background:rgba(255,255,255,.035);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition:background .18s ease;
}

#settings-content .cx-sub-secondary:hover{
  background:rgba(255,255,255,.07);
}

#settings-content .cx-renew-section{
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid var(--cx-border);
}

#settings-content .cx-renew-section[hidden]{
  display:none !important;
}

#settings-content .cx-renew-header{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:22px;
}

#settings-content .cx-renew-off{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:var(--cx-r-sm);
  background:var(--cx-violet);
  color:#fff;
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.02em;
  height:fit-content;
}

#settings-content .cx-renew-header-txt{
  display:flex;
  flex-direction:column;
  gap:4px;
}

#settings-content .cx-renew-header-txt strong{
  color:#fff;
  font-size:.95rem;
  font-weight:700;
}

#settings-content .cx-renew-header-txt span{
  color:var(--cx-dim2);
  font-size:.8rem;
  line-height:1.45;
}

#settings-content .cx-renew-switch{
  margin-bottom:18px !important;
}

#settings-content .cx-renew-price-row{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin-bottom:10px;
}

#settings-content .cx-renew-price{
  font-size:1.9rem;
  font-weight:700;
  letter-spacing:-.02em;
  color:#fff;
  transition:opacity .18s ease;
}

#settings-content .cx-renew-original{
  color:var(--cx-dim2);
  font-size:.8rem;
  font-weight:500;
  text-decoration:line-through;
}

#settings-content .cx-renew-note{
  color:var(--cx-dim2);
  font-size:.76rem;
  margin:0 0 20px;
  line-height:1.5;
}

#settings-content .cx-renew-btn{
  background:var(--cx-violet) !important;
  color:#fff !important;
}

#settings-content .cx-renew-btn:hover{
  background:var(--cx-violet-2) !important;
}

#settings-content .cx-benefits-overlay{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100dvh !important;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(5,5,5,.72);
  backdrop-filter:blur(8px);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  box-sizing:border-box;
  overflow:hidden;
}

#settings-content .cx-benefits-overlay[hidden]{
  display:none !important;
}

#settings-content .cx-benefits-overlay.active{
  opacity:1;
  pointer-events:auto;
}

#settings-content .cx-benefits-modal{
  position:relative;
  width:min(560px,100%);
  max-height:72dvh;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  border-radius:var(--cx-r-lg);
  padding:24px;
  color:#fff;
  background:#131318;
  border:1px solid var(--cx-border);
  box-shadow:var(--cx-shadow-lg);
  transform:translateY(8px);
  transition:transform .2s ease;
  box-sizing:border-box;
}

#settings-content .cx-benefits-overlay.active .cx-benefits-modal{
  transform:translateY(0);
}

#settings-content .cx-benefits-close{
  position:absolute;
  top:12px;
  right:12px;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--cx-r-sm);
  border:1px solid var(--cx-border);
  background:rgba(255,255,255,.05);
  color:#fff;
  font-size:.85rem;
  cursor:pointer;
  transition:background .18s ease;
}

#settings-content .cx-benefits-close:hover{
  background:rgba(255,255,255,.1);
}

#settings-content .cx-benefits-title{
  max-width:460px;
  padding-right:42px;
  margin:0 0 18px;
  font-size:1.15rem;
  font-weight:700;
  line-height:1.15;
  letter-spacing:-.01em;
  color:#fff;
}

#settings-content .cx-benefits-section{
  margin-bottom:20px;
}

#settings-content .cx-benefits-section h3{
  margin:0 0 11px;
  color:var(--cx-dim);
  font-size:.85rem;
  font-weight:700;
  letter-spacing:.01em;
  text-transform:uppercase;
}

#settings-content .cx-benefits-section ul{
  list-style:none;
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  padding:0;
  margin:0;
}

#settings-content .cx-benefits-section li{
  position:relative;
  padding-left:20px;
  color:var(--cx-dim);
  font-size:.78rem;
  font-weight:500;
  line-height:1.35;
}

#settings-content .cx-benefits-section li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:#fff;
  font-size:.72rem;
  font-weight:700;
}

#settings-content .cx-benefits-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
  margin-top:10px;
}

#settings-content .cx-benefit-card{
  min-width:0;
  padding:13px 15px;
  border-radius:var(--cx-r-sm);
  background:rgba(255,255,255,.035);
  border:1px solid var(--cx-border);
  box-sizing:border-box;
}

#settings-content .cx-benefit-card h4{
  margin:0 0 4px;
  color:#fff;
  font-size:.85rem;
  font-weight:700;
  line-height:1.2;
}

#settings-content .cx-benefit-card p{
  margin:0;
  color:var(--cx-dim2);
  font-size:.72rem;
  font-weight:500;
  line-height:1.4;
}

#settings-content .cx-benefits-confirm{
  width:100%;
  min-height:44px;
  margin-top:4px;
  padding:0 18px;
  border:0;
  border-radius:var(--cx-r-sm);
  background:var(--cx-violet);
  color:#fff;
  font-size:.82rem;
  font-weight:700;
  cursor:pointer;
  transition:background .18s ease;
}

#settings-content .cx-benefits-confirm:hover{
  background:var(--cx-violet-2);
}

#settings-content .cx-benefits-modal::-webkit-scrollbar{
  width:6px;
}

#settings-content .cx-benefits-modal::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:999px;
}

#settings-content .cx-benefits-modal::-webkit-scrollbar-track{
  background:rgba(255,255,255,.04);
  border-radius:999px;
}

@media(min-width:1440px){
  #settings-content .cx-sub-wrapper{
    max-width:1120px;
    grid-template-columns:minmax(360px,430px) minmax(0,1fr);
  }

  #settings-content .cx-sub-image{
    min-height:620px;
  }

  #settings-content .cx-sub-card{
    padding:58px;
  }

  #settings-content .cx-benefits-modal{
    width:600px;
    max-height:74dvh;
  }
}

@media(max-width:1250px){
  #settings-content .cx-sub-wrapper{
    max-width:900px;
    grid-template-columns:320px minmax(0,1fr);
  }

  #settings-content .cx-sub-image{
    min-height:540px;
  }

  #settings-content .cx-sub-card{
    padding:38px;
  }

  #settings-content .cx-sub-features{
    grid-template-columns:1fr;
  }
}

@media(max-width:1050px){
  #settings-content .cx-sub-wrapper{
    max-width:780px;
    grid-template-columns:280px minmax(0,1fr);
  }

  #settings-content .cx-sub-image{
    min-height:520px;
  }

  #settings-content .cx-sub-card{
    padding:32px;
  }

  #settings-content .cx-sub-price{
    font-size:2.6rem;
  }

  #settings-content .cx-benefits-modal{
    width:min(540px,100%);
    max-height:72dvh;
  }
}

@media(max-width:900px){
  #settings-content .cx-sub-wrapper{
    max-width:100%;
    grid-template-columns:1fr;
  }

  #settings-content .cx-sub-image{
    width:100%;
    min-height:0;
    height:280px;
  }

  #settings-content .cx-sub-image::before{
    background:
      linear-gradient(to bottom,rgba(5,5,5,.05),rgba(5,5,5,.7) 78%,rgba(5,5,5,.9)),
      linear-gradient(to right,rgba(5,5,5,.2),transparent 54%);
  }

  #settings-content .cx-sub-card{
    padding:32px;
  }

  #settings-content .cx-sub-features{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:640px){
  #settings-content .cx-sub-wrapper{
    border-radius:var(--cx-r-lg);
  }

  #settings-content .cx-sub-image{
    height:220px;
  }

  #settings-content .cx-sub-card{
    padding:24px;
  }

  #settings-content .cx-sub-price{
    font-size:2.2rem;
  }

  #settings-content .cx-sub-note{
    font-size:.82rem;
    margin-bottom:24px;
  }

  #settings-content .cx-sub-switch{
    gap:5px;
    padding:5px;
    border-radius:var(--cx-r-sm);
  }

  #settings-content .cx-sub-switch button{
    min-height:38px;
    font-size:.78rem;
    border-radius:var(--cx-r-sm);
  }

  #settings-content .cx-sub-features{
    grid-template-columns:1fr;
    gap:11px;
    margin-bottom:28px;
  }

  #settings-content .cx-sub-features li{
    font-size:.82rem;
  }

  #settings-content .cx-benefits-overlay{
    padding:12px;
  }

  #settings-content .cx-benefits-modal{
    width:min(420px,100%);
    max-height:70dvh;
    padding:20px 16px;
    border-radius:var(--cx-r-md);
  }

  #settings-content .cx-benefits-title{
    font-size:1.05rem;
    padding-right:38px;
  }

  #settings-content .cx-benefits-section{
    margin-bottom:18px;
  }

  #settings-content .cx-benefits-section h3{
    font-size:.8rem;
  }

  #settings-content .cx-benefits-section li{
    font-size:.74rem;
  }

  #settings-content .cx-benefit-card{
    padding:12px 14px;
  }
}

@media(max-width:420px){
  #settings-content .cx-sub-image{
    height:190px;
  }

  #settings-content .cx-sub-card{
    padding:20px;
  }

  #settings-content .cx-sub-badge{
    font-size:.66rem;
  }

  #settings-content .cx-sub-price{
    font-size:1.95rem;
  }

  #settings-content .cx-sub-switch button{
    font-size:.72rem;
    padding:0 4px;
  }

  #settings-content .cx-sub-btn{
    min-height:48px;
    border-radius:var(--cx-r-sm);
    font-size:.86rem;
  }

  #settings-content .cx-benefits-overlay{
    padding:10px;
  }

  #settings-content .cx-benefits-modal{
    width:100%;
    max-height:70dvh;
    padding:19px 15px;
  }

  #settings-content .cx-benefits-close{
    width:30px;
    height:30px;
    top:11px;
    right:11px;
  }

  #settings-content .cx-benefits-title{
    padding-right:38px;
    font-size:1rem;
  }

  #settings-content .cx-benefits-section h3{
    font-size:.78rem;
  }

  #settings-content .cx-benefits-section li{
    font-size:.72rem;
  }

  #settings-content .cx-benefit-card h4{
    font-size:.8rem;
  }

  #settings-content .cx-benefit-card p{
    font-size:.7rem;
  }
}

#settings-content .cx-sub-status{
  grid-column:2;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:clamp(28px,4vw,48px);
  box-sizing:border-box;
}

#settings-content .cx-sub-status-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  align-self:flex-start;
  padding:7px 14px;
  border-radius:var(--cx-r-sm);
  background:rgba(255,255,255,.06);
  border:1px solid var(--cx-border-strong);
  color:#fff;
  font-size:.85rem;
  font-weight:700;
  letter-spacing:.01em;
}

#settings-content .cx-sub-status-line{
  margin:0;
  color:var(--cx-dim);
  font-size:.92rem;
  font-weight:500;
}

#settings-content .cx-sub-status-dates{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  padding:20px;
  border-radius:var(--cx-r-md);
  background:rgba(255,255,255,.035);
  border:1px solid var(--cx-border);
}

#settings-content .cx-sub-status-date{
  display:flex;
  flex-direction:column;
  gap:4px;
}

#settings-content .cx-sub-status-date-label{
  font-size:.64rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--cx-dim2);
}

#settings-content .cx-sub-status-date-value{
  font-size:1.05rem;
  font-weight:700;
  color:#fff;
}

#settings-content .cx-sub-status-arrow{
  color:var(--cx-dim2);
  font-size:1.15rem;
  font-weight:700;
}

#settings-content .cx-sub-status-state{
  margin:0;
  color:var(--cx-dim);
  font-size:.88rem;
  font-weight:600;
}

@media(max-width:760px){
  #settings-content .cx-sub-status{
    grid-column:1 / -1;
  }
}

#settings-content .cx-sub-status[hidden]{
  display:none !important;
}

#settings-content .cx-group-promo{
  display:flex;
  align-items:center;
  gap:14px;
  margin:14px 0 4px;
  padding:14px 16px;
  border-radius:var(--cx-r-md);
  background:rgba(255,255,255,.035);
  border:1px solid var(--cx-border);
}
#settings-content .cx-group-promo__off{
  flex:0 0 auto;
  font-size:1rem;
  font-weight:700;
  color:#fff;
  background:var(--cx-violet);
  padding:7px 11px;
  border-radius:var(--cx-r-sm);
  letter-spacing:-.01em;
}
#settings-content .cx-group-promo__txt{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
#settings-content .cx-group-promo__txt strong{
  color:#fff;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
#settings-content .cx-group-promo__txt span{
  color:var(--cx-dim);
  font-size:.8rem;
  line-height:1.45;
  font-weight:400;
}
@media(max-width:560px){
  #settings-content .cx-group-promo{flex-direction:column;align-items:flex-start;gap:10px;}
}

.cx-paypal-overlay{
  position:fixed;
  inset:0;
  z-index:100000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(6,6,8,.7);
  backdrop-filter:blur(6px);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  box-sizing:border-box;
}
.cx-paypal-overlay[hidden]{display:none;}
.cx-paypal-overlay.active{opacity:1;pointer-events:auto;}

.cx-paypal-modal{
  position:relative;
  width:min(400px,100%);
  max-height:calc(100dvh - 36px);
  overflow-y:auto;
  overscroll-behavior:contain;
  border-radius:var(--cx-r-lg);
  padding:28px 26px 26px;
  color:#fff;
  text-align:left;
  background:#131318;
  border:1px solid var(--cx-border);
  box-shadow:var(--cx-shadow-lg);
  transform:translateY(8px);
  transition:transform .2s ease;
  box-sizing:border-box;
}
.cx-paypal-modal::-webkit-scrollbar{width:6px;}
.cx-paypal-modal::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:999px;}
.cx-paypal-modal::-webkit-scrollbar-track{background:transparent;}
.cx-paypal-overlay.active .cx-paypal-modal{transform:translateY(0);}

.cx-paypal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border-radius:var(--cx-r-sm);
  border:1px solid var(--cx-border);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.55);
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.cx-paypal-close svg{display:block;}
.cx-paypal-close:hover{
  background:rgba(255,255,255,.1);
  border-color:var(--cx-border-strong);
  color:#fff;
}

.cx-paypal-brand{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:16px;
  color:rgba(255,255,255,.5);
  font-size:.78rem;
  font-weight:600;
}

.cx-paypal-title{
  margin:0 0 8px;
  font-size:1.15rem;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-.01em;
  color:#fff;
}

.cx-paypal-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  margin:16px 0;
  border-radius:var(--cx-r-md);
  background:rgba(255,255,255,.035);
  border:1px solid var(--cx-border);
}
.cx-paypal-summary-label{
  font-size:.82rem;
  font-weight:500;
  color:rgba(255,255,255,.6);
}
.cx-paypal-summary-price{
  font-size:1.3rem;
  font-weight:700;
  letter-spacing:-.01em;
  color:#fff;
}

.cx-paypal-info{
  margin:0 0 18px;
  color:rgba(255,255,255,.55);
  font-size:.88rem;
  font-weight:400;
  line-height:1.55;
}
.cx-paypal-info strong{color:rgba(255,255,255,.9);font-weight:600;}

.cx-paypal-account{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  margin-bottom:20px;
  border-radius:var(--cx-r-md);
  background:rgba(255,255,255,.035);
  border:1px solid var(--cx-border);
}
.cx-paypal-account-txt{display:flex;flex-direction:column;gap:3px;min-width:0;}
.cx-paypal-account-label{
  font-size:.74rem;
  font-weight:500;
  color:rgba(255,255,255,.42);
}
.cx-paypal-account-value{
  font-size:.9rem;
  font-weight:600;
  color:#fff;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cx-paypal-copy{
  flex:0 0 auto;
  padding:8px 13px;
  border-radius:var(--cx-r-sm);
  border:1px solid var(--cx-border-strong);
  background:transparent;
  color:rgba(255,255,255,.7);
  font-size:.78rem;
  font-weight:600;
  cursor:pointer;
  transition:background .18s ease,color .18s ease;
}
.cx-paypal-copy:hover{background:rgba(255,255,255,.07);color:#fff;}

.cx-paypal-note{
  align-items:flex-start;
  border-color:var(--cx-border-strong);
  background:rgba(255,255,255,.03);
}
.cx-paypal-note .cx-paypal-account-value{
  white-space:normal;
  overflow-wrap:anywhere;
}

.cx-paypal-warn{
  margin:0 0 14px;
  padding:11px 13px;
  border-radius:var(--cx-r-sm);
  background:rgba(245,166,35,.08);
  border:1px solid rgba(245,166,35,.2);
  color:#f5a623;
  font-size:.8rem;
  font-weight:500;
  line-height:1.5;
}

.cx-paypal-check-row{
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:16px;
  padding:12px 14px;
  border-radius:var(--cx-r-md);
  background:rgba(255,255,255,.035);
  border:1px solid var(--cx-border);
  color:rgba(255,255,255,.72);
  font-size:.82rem;
  line-height:1.4;
  cursor:pointer;
  user-select:none;
  transition:border-color .18s ease;
}
.cx-paypal-check-row:hover{border-color:var(--cx-border-strong);}
.cx-paypal-check-row:has(input:checked){
  border-color:var(--cx-border-strong);
  color:#fff;
}
.cx-paypal-check-row input{
  appearance:none;
  -webkit-appearance:none;
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin:0;
  border-radius:4px;
  border:1.5px solid var(--cx-border-strong);
  background:transparent;
  cursor:pointer;
  position:relative;
  transition:background .18s ease,border-color .18s ease;
}
.cx-paypal-check-row input:checked{
  background:var(--cx-violet);
  border-color:var(--cx-violet);
}
.cx-paypal-check-row input:checked::after{
  content:"";
  position:absolute;
  left:5px;
  top:1px;
  width:5px;
  height:9px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

.cx-paypal-pay{
  width:100%;
  min-height:48px;
  padding:0 22px;
  border:0;
  border-radius:var(--cx-r-md);
  font-size:.9rem;
  font-weight:600;
  cursor:pointer;
  background:var(--cx-violet);
  color:#fff;
  transition:background .18s ease,opacity .18s ease;
}
.cx-paypal-pay:hover{background:var(--cx-violet-2);}
.cx-paypal-pay:disabled{
  opacity:.4;
  cursor:not-allowed;
  background:var(--cx-violet);
}

.cx-paypal-step[hidden]{display:none !important;}

.cx-paypal-step--center{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.cx-paypal-step--center .cx-paypal-check{margin:0 auto 16px;}

.cx-paypal-ghost{
  width:100%;
  margin-top:8px;
  min-height:42px;
  padding:0 18px;
  border:0;
  border-radius:var(--cx-r-sm);
  background:transparent;
  color:rgba(255,255,255,.55);
  font-size:.85rem;
  font-weight:600;
  cursor:pointer;
  transition:color .18s ease;
}
.cx-paypal-ghost:hover{color:#fff;}

.cx-paypal-check{
  width:42px;
  height:42px;
  margin:0 0 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  font-size:1.15rem;
  color:#fff;
  background:#22c55e;
}

@media(max-width:480px){
  .cx-paypal-overlay{padding:12px;}
  .cx-paypal-modal{
    padding:24px 18px 20px;
    max-height:calc(100dvh - 24px);
  }
  .cx-paypal-title{font-size:1.05rem;}
  .cx-paypal-summary{padding:13px 14px;margin:14px 0;}
  .cx-paypal-summary-price{font-size:1.2rem;}
  .cx-paypal-info{font-size:.85rem;margin-bottom:16px;}
  .cx-paypal-account{padding:11px 11px 11px 14px;margin-bottom:16px;}
  .cx-paypal-warn{font-size:.78rem;}
  .cx-paypal-check-row{font-size:.8rem;padding:11px 12px;}
}

@media(max-width:360px){
  .cx-paypal-modal{padding:22px 15px 18px;}
  .cx-paypal-summary{flex-direction:column;align-items:flex-start;gap:4px;}
  .cx-paypal-summary-price{font-size:1.3rem;}
  .cx-paypal-copy{padding:8px 11px;font-size:.74rem;}
}

.history-header {
  margin-bottom: 20px;
}

.history-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.history-controls input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.history-controls input:focus {
  border-color: var(--border-strong);
}

.history-controls button {
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease;
}

.history-controls button:hover {
  background: rgba(255, 255, 255, 0.07);
}

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

.history-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.history-item:hover {
  border-color: var(--border-strong);
  background: var(--panel-hover);
}

.history-item-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

.history-number {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.history-thumb {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 48px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-info {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-episode {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.history-episode-badge {
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  font-size: 10.5px;
}

.history-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.history-tag {
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.history-progress {
  width: 100%;
  max-width: 300px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.history-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.history-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  flex: 0 0 auto;
}

.history-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.history-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.history-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.history-actions {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease;
}

.history-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.history-remove {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.history-remove:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

.empty-history {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.downloads-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.dl-stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dl-stat-wide {
  grid-column: 1 / -1;
}

.dl-stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dl-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.dl-stat-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.downloads-container {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.downloads-header {
  display: grid;
  grid-template-columns: 1fr 100px 120px 140px;
  gap: 12px;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.downloads-list {
  display: flex;
  flex-direction: column;
}

.download-item {
  display: grid;
  grid-template-columns: 1fr 100px 120px 140px;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.16s ease;
}

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

.download-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.download-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.download-thumb {
  flex: 0 0 auto;
  width: 40px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.download-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.download-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.download-bar {
  width: 100%;
  max-width: 200px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 2px;
}

.download-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.download-size,
.download-date {
  font-size: 12.5px;
  color: var(--text-muted);
}

.download-action {
  display: flex;
  gap: 8px;
}

.download-play,
.download-retry,
.download-delete {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.download-play:hover,
.download-retry:hover {
  background: rgba(255, 255, 255, 0.08);
}

.download-delete:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

.downloads-empty {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.cx-pay-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cx-pay-recap {
  flex: 1 1 260px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.cx-pay-recap-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cx-pay-recap-plan {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.cx-pay-recap-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.cx-pay-recap-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 18px;
}

.cx-pay-change-btn {
  width: 100%;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.cx-pay-change-btn:hover {
  background: rgba(255, 255, 255, 0.07);
}

.cx-pay-panel {
  flex: 2 1 360px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.cx-pay-checkout-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.cx-pay-checkout-badge {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
}

.cx-pay-alt-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cx-pay-alt-desc strong {
  color: var(--text);
}

.cx-pay-alt-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.cx-pay-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.cx-pay-step-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.cx-pay-secure {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 18px;
}

.cx-pay-submit {
  width: 100%;
  padding: 13px 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.cx-pay-submit:hover {
  background: rgba(124, 58, 237, 0.78);
}

.cx-pay-claim-sep {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin: 16px 0;
}

.cx-pay-claim-btn {
  width: 100%;
  padding: 11px 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.cx-pay-claim-btn:hover {
  background: rgba(255, 255, 255, 0.07);
}

.cx-pay-claim-note {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

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

  .sidebar {
    position: static;
  }

  .sidebar .cx-settings-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .cx-settings-nav-section {
    width: 100%;
    margin: 10px 0 2px;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .row-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .downloads-header,
  .download-item {
    grid-template-columns: 1fr 90px;
  }

  .downloads-header div:nth-child(3),
  .downloads-header div:nth-child(4),
  .download-item .download-date {
    display: none;
  }

  .download-action {
    justify-content: flex-end;
  }

  .history-item {
    flex-wrap: wrap;
  }

  .history-stats {
    width: 100%;
    justify-content: flex-start;
    padding-left: 64px;
  }

  .downloads-stats {
    grid-template-columns: 1fr;
  }
}
