.subscription-avatar-wrap{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;line-height:0}
.subscription-avatar-wrap>img{display:block}
.subscription-avatar-badge{position:absolute;right:-3px;bottom:-3px;z-index:2;min-width:18px;height:18px;border-radius:999px;border:2px solid #fff;background:#111827;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;line-height:1;box-shadow:0 6px 16px rgba(15,23,42,.28);overflow:hidden}
.subscription-avatar-badge img{width:100%;height:100%;object-fit:cover;display:block}
.top-icon-avatar-link .subscription-avatar-badge{right:-5px;bottom:-5px}
.subscriptions-page .main-content{max-width:1180px}
.subscriptions-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:18px;overflow:hidden;border:1px solid rgba(15,118,110,.16)!important;background:linear-gradient(135deg,rgba(240,253,250,.98),rgba(255,255,255,.94) 48%,rgba(236,253,245,.96))!important;box-shadow:0 22px 60px rgba(15,118,110,.13)!important}
.subscriptions-hero:after{content:'';position:absolute;right:-80px;top:-90px;width:250px;height:250px;border-radius:999px;background:radial-gradient(circle,rgba(20,184,166,.26),rgba(20,184,166,0) 68%);pointer-events:none}
.subscriptions-kicker{display:inline-flex;border-radius:999px;background:#0f766e;color:#fff;padding:7px 11px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;box-shadow:0 10px 22px rgba(15,118,110,.22)}
.subscriptions-hero h1{margin:10px 0 8px;font-size:clamp(32px,4vw,52px);line-height:1.02;letter-spacing:0}
.subscriptions-hero p{margin:0;color:#334155;max-width:760px;font-weight:750;line-height:1.5}
.subscription-current-card{display:grid;gap:6px;min-width:180px;border:1px solid var(--line);border-radius:16px;background:var(--bg);padding:12px}
.subscription-current-card span{display:flex;align-items:center;gap:8px;font-weight:900}
.subscription-current-card a{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#111827;color:#fff!important;text-decoration:none;font-size:12px;font-weight:950;padding:8px 10px}
.subscription-level-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin-bottom:16px}
.subscription-level-card{position:relative;display:flex;flex-direction:column;gap:12px;border:1px solid rgba(15,118,110,.14)!important;background:linear-gradient(180deg,#fff,#f8fffd)!important;box-shadow:0 16px 42px rgba(15,23,42,.07)!important;overflow:hidden}
.subscription-level-card:before{content:'';position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#0f766e,#14b8a6,#f59e0b)}
.subscription-level-card.is-selected{box-shadow:0 0 0 3px rgba(20,184,166,.22),0 24px 55px rgba(15,23,42,.14)!important;transform:translateY(-2px)}
.subscription-level-head{display:flex;align-items:center;gap:12px}
.subscription-level-head h2{margin:0;font-size:20px}
.subscription-level-head p{margin:3px 0 0;color:var(--muted);font-weight:800}
.subscription-level-icon{width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;display:flex;align-items:center;justify-content:center;font-size:23px;font-weight:900;box-shadow:0 12px 26px rgba(15,118,110,.24);overflow:hidden;flex:0 0 auto}
.subscription-level-icon img{width:100%;height:100%;object-fit:cover}
.subscription-level-description{margin:0;color:var(--text);line-height:1.45}
.subscription-feature-list{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.subscription-feature-list li{padding-left:22px;position:relative;color:var(--muted);font-weight:700}
.subscription-feature-list li::before{content:'✓';position:absolute;left:0;color:#0f766e;font-weight:900}
.subscription-level-actions{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px;font-weight:900}
.subscription-level-actions span{display:inline-flex;align-items:center;border-radius:999px;background:#ecfdf5;color:#047857;padding:6px 9px}
.subscription-checkout-card{display:grid;gap:13px;border:1px solid rgba(15,118,110,.16)!important;background:linear-gradient(135deg,#ffffff,#f8fffd)!important;box-shadow:0 18px 48px rgba(15,23,42,.08)!important}
.subscription-checkout-card h2{margin:0}
.subscription-share-link{margin:0;color:var(--muted)}
.subscription-payment-route{display:grid;gap:4px;border-radius:18px;padding:14px;border:1px solid rgba(15,23,42,.08);background:#f8fafc}
.subscription-payment-route strong{font-size:16px}
.subscription-payment-route span{color:#475569;font-weight:750;line-height:1.45}
.subscription-payment-route.is-paypal{border-color:rgba(14,165,233,.18);background:linear-gradient(135deg,#eff6ff,#f0fdfa)}
.subscription-payment-route.is-request{border-color:rgba(245,158,11,.24);background:linear-gradient(135deg,#fffbeb,#fff)}
.subscription-disclaimer{border:1px solid var(--line);border-radius:16px;background:rgba(248,250,252,.82);padding:14px}
.subscription-disclaimer p{margin:7px 0 0;color:var(--muted);line-height:1.5}
.subscription-accept-form,.subscription-auth-actions,.subscription-inline-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.subscription-accept-form textarea{flex:1 1 100%;width:100%;border:1px solid rgba(15,23,42,.12);border-radius:16px;padding:12px;background:#fff;resize:vertical;font:inherit}
.subscription-accept-form label{font-weight:800;color:var(--text)}
.subscription-accept-form button{border:0;border-radius:999px;background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;font-weight:950;padding:12px 18px;box-shadow:0 14px 30px rgba(15,118,110,.22);cursor:pointer}
.subscription-auth-actions .pretty-action,.subscription-level-actions .pretty-action{background:#111827!important;color:#fff!important}
.subscription-admin-icon-preview img{width:44px;height:44px;object-fit:cover;border-radius:999px;border:1px solid var(--line);background:#fff}
.subscription-admin-table textarea{min-width:220px}
.subscription-admin-table input,.subscription-admin-table textarea,.subscription-admin-table select{max-width:100%}
.subscription-feature-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 14px;padding:12px;border:1px solid rgba(15,118,110,.14);border-radius:14px;background:#f8fffd}
.subscription-feature-toolbar label{font-weight:950;color:#0f172a;white-space:nowrap}
.subscription-feature-toolbar input{flex:1 1 260px;min-width:180px;border:1px solid #d7deea;border-radius:10px;background:#fff;color:#0f172a;padding:10px 12px;font:inherit;font-weight:800}
.subscription-feature-toolbar span{display:inline-flex;align-items:center;min-height:34px;border-radius:999px;background:#ecfdf5;color:#047857;padding:6px 10px;font-size:12px;font-weight:950;white-space:nowrap}
.subscription-feature-toolbar.is-compact{margin:0;padding:0;border:0;background:transparent;justify-content:flex-end}
.subscription-feature-toolbar.is-compact input{max-width:260px}
.subscription-feature-grid{max-height:330px;overflow:auto;align-content:start;padding-right:4px}
.subscription-feature-grid label[hidden]{display:none!important}
.subscription-feature-empty{margin-top:8px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;padding:10px;font-size:13px;font-weight:850;text-align:center}
.subscription-register-card{margin-top:16px;border:1px solid rgba(15,118,110,.18);border-radius:18px;background:linear-gradient(135deg,rgba(236,253,245,.96),rgba(240,253,250,.9));padding:16px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.subscription-register-card p{margin:4px 0 0;color:var(--muted);max-width:760px}
.composer-subscription-gate{display:grid;gap:6px;margin:10px 0;padding:10px 12px;border:1px solid rgba(15,118,110,.16);border-radius:14px;background:linear-gradient(135deg,rgba(240,253,250,.92),rgba(255,255,255,.94))}
.composer-subscription-gate label,.post-edit-subscription-row label{display:grid;gap:5px;font-weight:900;color:#0f172a}
.composer-subscription-gate span{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#0f766e}
.composer-subscription-gate select,.post-edit-subscription-row select{width:100%;border:1px solid rgba(15,23,42,.12);border-radius:12px;background:#fff;color:#0f172a;font:inherit;font-weight:800;padding:9px 11px}
.composer-subscription-gate select:disabled,.post-edit-subscription-row select:disabled{background:#eef2f7;color:#64748b;cursor:not-allowed}
.composer-subscription-gate p,.post-edit-subscription-row small{margin:0;color:#64748b;font-size:12px;font-weight:750;line-height:1.35}
.feed-post-subscription-meta{display:inline-flex;align-items:center;margin-left:6px;border-radius:999px;background:#ecfdf5;color:#047857;padding:2px 7px;font-size:11px;font-weight:950;line-height:1.4}
.post-subscription-lock{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;margin:14px;padding:15px;border:1px solid rgba(15,118,110,.18);border-radius:18px;background:linear-gradient(135deg,#f0fdfa,#fff 58%,#ecfdf5);box-shadow:0 14px 34px rgba(15,23,42,.08)}
.post-subscription-lock-icon{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:950;box-shadow:0 12px 24px rgba(15,118,110,.22)}
.post-subscription-lock strong{display:block;color:#0f172a;font-size:17px}
.post-subscription-lock p{margin:3px 0 0;color:#475569;font-weight:750;line-height:1.4}
.post-subscription-lock p span{display:inline-flex;margin-left:3px;border-radius:999px;background:#dcfce7;color:#166534;padding:2px 7px;font-size:12px;font-weight:950}
.post-subscription-lock a{white-space:nowrap;border-radius:999px;background:#111827;color:#fff!important;text-decoration:none;font-weight:950;padding:10px 14px;box-shadow:0 12px 24px rgba(15,23,42,.18)}
.post-edit-subscription-row{display:grid;gap:5px;padding:10px 12px;border:1px solid rgba(15,118,110,.14);border-radius:14px;background:#f8fffd}
.profile-section-tabs-card{margin-bottom:10px}
.profile-section-tabs-card .profile-tabs{width:100%}
.profile-section-tabs-card .profile-tab{text-decoration:none}
@media(max-width:760px){.subscriptions-hero{display:block}.subscription-current-card{margin-top:12px}.subscription-level-actions,.subscription-accept-form{align-items:stretch;flex-direction:column}.subscription-accept-form button{width:100%}}
@media(max-width:760px){.post-subscription-lock{grid-template-columns:1fr;text-align:center}.post-subscription-lock-icon{margin:0 auto}.post-subscription-lock a{display:block}}
@media(max-width:760px){.subscription-register-card{display:block}.subscription-register-card a{margin-top:10px}}

/* Profile subscription creator dashboard */
.profile-subscriptions-page .main-content{
  max-width:1180px;
}
.profile-sub-admin-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:18px;
  align-items:stretch;
  margin:18px 0;
}
.profile-sub-hero-copy,
.profile-sub-hero-panel,
.profile-sub-card,
.profile-sub-stats article{
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  box-shadow:0 18px 48px rgba(15,23,42,.08);
}
.profile-sub-hero-copy{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  padding:34px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.98),rgba(240,253,250,.92) 48%,rgba(245,243,255,.95));
}
.profile-sub-hero-copy:before{
  content:'';
  position:absolute;
  inset:0 auto 0 0;
  width:8px;
  background:linear-gradient(180deg,#0f766e,#7c3aed,#f59e0b);
}
.profile-sub-hero-copy h1{
  margin:0;
  color:#0f172a;
  font-size:clamp(34px,5vw,58px);
  line-height:.96;
  letter-spacing:0;
}
.profile-sub-hero-copy p{
  margin:14px 0 0;
  max-width:720px;
  color:#475569;
  font-size:17px;
  font-weight:750;
  line-height:1.55;
}
.profile-sub-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}
.profile-sub-primary,
.profile-sub-secondary,
.profile-sub-card button,
.profile-sub-subscriber-row button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  border-radius:10px;
  border:1px solid #111827;
  padding:10px 15px;
  background:#111827;
  color:#fff!important;
  font-weight:900;
  text-decoration:none!important;
  cursor:pointer;
  box-shadow:none;
}
.profile-sub-secondary{
  background:#fff;
  color:#111827!important;
  border-color:#cbd5e1;
}
.profile-sub-hero-panel{
  border-radius:22px;
  padding:24px;
  display:grid;
  align-content:center;
  gap:8px;
  background:#111827;
  color:#fff;
}
.profile-sub-hero-panel span,
.profile-sub-hero-panel small{
  color:#cbd5e1;
  font-weight:800;
}
.profile-sub-hero-panel strong{
  font-size:30px;
  line-height:1;
}
.profile-sub-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 0 18px;
}
.profile-sub-stats article{
  border-radius:16px;
  padding:16px;
}
.profile-sub-stats span,
.profile-sub-stats small{
  display:block;
  color:#64748b;
  font-weight:850;
}
.profile-sub-stats strong{
  display:block;
  margin:5px 0;
  color:#0f172a;
  font-size:26px;
  line-height:1;
}
.profile-sub-alerts:empty{
  display:none;
}
.profile-sub-card{
  border-radius:18px;
  padding:20px;
  margin:0 0 16px;
}
.profile-sub-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}
.profile-sub-head-actions{
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.profile-sub-card h2{
  margin:0;
  color:#0f172a;
  font-size:24px;
  letter-spacing:0;
}
.profile-sub-card p{
  margin:5px 0 0;
  color:#64748b;
  font-weight:750;
  line-height:1.45;
}
.profile-sub-settings-grid,
.profile-sub-editor-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.profile-sub-card label{
  display:grid;
  gap:6px;
  color:#0f172a;
  font-weight:900;
}
.profile-sub-card input,
.profile-sub-card textarea,
.profile-sub-card select{
  width:100%;
  box-sizing:border-box;
  border:1px solid #d7deea;
  border-radius:10px;
  background:#f8fafc;
  color:#0f172a;
  padding:10px 11px;
  font:inherit;
  font-weight:750;
}
.profile-sub-card textarea{
  resize:vertical;
}
.profile-sub-card small{
  color:#64748b;
  font-weight:750;
  line-height:1.35;
}
.profile-sub-level-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:14px;
}
.profile-sub-level-editor{
  display:grid;
  gap:13px;
  border:1px solid #dbe5f0;
  border-radius:16px;
  padding:16px;
  background:#fbfdff;
}
.profile-sub-level-editor.is-active{
  border-color:rgba(15,118,110,.34);
  background:linear-gradient(180deg,#ffffff,#f8fffd);
}
.profile-sub-level-top{
  display:flex;
  align-items:center;
  gap:12px;
}
.profile-sub-level-icon{
  width:48px;
  height:48px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:linear-gradient(135deg,#0f766e,#7c3aed);
  color:#fff;
  font-size:22px;
  font-weight:950;
}
.profile-sub-level-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.profile-sub-level-top strong{
  display:block;
  color:#0f172a;
  font-size:18px;
}
.profile-sub-level-top span{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-size:13px;
  font-weight:850;
}
.profile-sub-icon-row,
.profile-sub-level-footer{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:10px;
  align-items:end;
}
.profile-sub-feature-box{
  display:grid;
  gap:10px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:12px;
  background:#fff;
}
.profile-sub-feature-box>span{
  color:#0f172a;
  font-weight:950;
}
.profile-sub-feature-box .perm-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.profile-sub-feature-box .perm-grid label,
.profile-sub-check{
  display:flex!important;
  align-items:center;
  gap:7px!important;
  color:#475569!important;
  font-weight:800!important;
}
.profile-sub-feature-box input[type="checkbox"],
.profile-sub-check input{
  width:auto;
}
.profile-sub-create-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(220px,360px) auto;
  align-items:center;
  gap:14px;
}
.profile-sub-subscriber-list{
  display:grid;
  gap:10px;
}
.profile-sub-subscriber-row{
  display:grid;
  grid-template-columns:minmax(180px,1.4fr) minmax(120px,.8fr) 140px minmax(120px,.8fr) 170px auto;
  gap:10px;
  align-items:center;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:12px;
  background:#f8fafc;
}
.profile-sub-subscriber-row strong,
.profile-sub-subscriber-row small{
  display:block;
}
.profile-sub-subscriber-row span,
.profile-sub-subscriber-row small{
  color:#64748b;
  font-weight:750;
}
.profile-sub-empty{
  border:1px dashed #cbd5e1;
  border-radius:14px;
  padding:18px;
  background:#f8fafc;
  color:#64748b;
  font-weight:850;
  text-align:center;
}
@media(max-width:980px){
  .profile-sub-admin-hero,
  .profile-sub-settings-grid,
  .profile-sub-create-card{
    grid-template-columns:1fr;
  }
  .profile-sub-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .profile-sub-subscriber-row{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:640px){
  .profile-sub-hero-copy,
  .profile-sub-hero-panel,
  .profile-sub-card{
    border-radius:14px;
    padding:16px;
  }
  .profile-sub-stats,
  .profile-sub-level-grid,
  .profile-sub-editor-grid,
  .profile-sub-icon-row,
  .profile-sub-level-footer,
  .profile-sub-feature-box .perm-grid,
  .profile-sub-subscriber-row{
    grid-template-columns:1fr;
  }
  .profile-sub-card-head{
    display:grid;
  }
  .profile-sub-head-actions{
    justify-content:stretch;
  }
  .subscription-feature-toolbar,
  .subscription-feature-toolbar.is-compact{
    display:grid;
    width:100%;
  }
  .subscription-feature-toolbar.is-compact input{
    max-width:none;
  }
  .profile-sub-card-head button,
  .profile-sub-create-card button,
  .profile-sub-subscriber-row button{
    width:100%;
  }
}
