/* Tele Plus / Ultra landing — animations */
.tl-mem {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 16px 56px;
}

.tl-mem-hero {
    text-align: center;
    margin-bottom: 36px;
    padding: 32px 20px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(30, 86, 245, 0.18), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(124, 58, 237, 0.25);
    position: relative;
    overflow: hidden;
    animation: tlMemHeroIn 0.7s ease-out both;
}

.tl-mem-hero::before,
.tl-mem-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.45;
    pointer-events: none;
}

.tl-mem-hero::before {
    width: 180px;
    height: 180px;
    background: rgba(30, 86, 245, 0.35);
    top: -40px;
    inset-inline-start: -30px;
    animation: tlMemOrb 8s ease-in-out infinite;
}

.tl-mem-hero::after {
    width: 140px;
    height: 140px;
    background: rgba(245, 158, 11, 0.25);
    bottom: -30px;
    inset-inline-end: -20px;
    animation: tlMemOrb 10s ease-in-out infinite reverse;
}

.tl-mem-hero h1,
.tl-mem-hero p {
    position: relative;
    z-index: 1;
}

.tl-mem-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0 0 10px;
    font-weight: 800;
}

.tl-mem-hero p {
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 640px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tl-mem-flash {
    max-width: 520px;
    margin: 0 auto 20px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    animation: tlMemFlashIn 0.45s ease-out both;
}

.tl-mem-flash.ok {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.tl-mem-flash.err {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fda4af;
}

.tl-mem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

@media (max-width: 820px) {
    .tl-mem-grid {
        grid-template-columns: 1fr;
    }
}

.tl-mem-card {
    background: var(--bg-elev-1);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px);
    animation: tlMemCardIn 0.55s ease-out forwards;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tl-mem-card:nth-child(1) {
    animation-delay: 0.12s;
}

.tl-mem-card:nth-child(2) {
    animation-delay: 0.22s;
}

.tl-mem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.tl-mem-card--ultra {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.08);
}

.tl-mem-card--ultra::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #a855f7, #1e56f5, #f59e0b);
    background-size: 200% 100%;
    animation: tlMemShimmer 3s linear infinite;
}

.tl-mem-card--ultra::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(245, 158, 11, 0.06), transparent);
    animation: tlMemSpin 12s linear infinite;
    pointer-events: none;
}

.tl-mem-card--ultra > * {
    position: relative;
    z-index: 1;
}

.tl-mem-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand);
    margin-bottom: 8px;
}

.tl-mem-card--ultra .tl-mem-badge {
    color: #fbbf24;
}

.tl-mem-card h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.tl-mem-price {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.tl-mem-price span {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
}

.tl-mem-price--owner {
    color: #4ade80;
    font-size: 1.15rem;
}

.tl-mem-vat {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.tl-mem-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    flex: 1;
}

.tl-mem-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 10px;
    color: var(--text-muted);
    opacity: 0;
    animation: tlMemLiIn 0.4s ease-out forwards;
}

.tl-mem-list li:nth-child(1) { animation-delay: 0.35s; }
.tl-mem-list li:nth-child(2) { animation-delay: 0.42s; }
.tl-mem-list li:nth-child(3) { animation-delay: 0.49s; }
.tl-mem-list li:nth-child(4) { animation-delay: 0.56s; }
.tl-mem-list li:nth-child(5) { animation-delay: 0.63s; }
.tl-mem-list li:nth-child(6) { animation-delay: 0.7s; }
.tl-mem-list li:nth-child(7) { animation-delay: 0.77s; }

.tl-mem-list li i {
    color: #22c55e;
    margin-top: 3px;
    flex-shrink: 0;
}

.tl-mem-list li.off i {
    color: var(--text-muted);
    opacity: 0.5;
}

.tl-mem-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s, box-shadow 0.2s;
}

.tl-mem-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.tl-mem-btn--plus {
    background: var(--brand);
    color: #fff;
}

.tl-mem-btn--ultra {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #111;
}

.tl-mem-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 86, 245, 0.25);
}

.tl-mem-btn--ultra:not(:disabled):hover {
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.35);
}

.tl-mem-btn:not(:disabled) {
    animation: tlMemPulse 2.4s ease-in-out infinite;
}

.tl-mem-active {
    text-align: center;
    font-size: 0.85rem;
    color: #86efac;
    margin-bottom: 14px;
    padding: 8px;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 10px;
}

.tl-mem-compare {
    margin-top: 40px;
    background: var(--bg-elev-1);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    animation: tlMemCardIn 0.6s ease-out 0.35s forwards;
}

.tl-mem-compare h3 {
    margin: 0;
    padding: 16px 18px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
}

.tl-mem-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.tl-mem-table th,
.tl-mem-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

[dir="rtl"] .tl-mem-table th,
[dir="rtl"] .tl-mem-table td {
    text-align: right;
}

[dir="ltr"] .tl-mem-table th,
[dir="ltr"] .tl-mem-table td {
    text-align: left;
}

.tl-mem-table th {
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-elev-2);
}

.tl-mem-table tr:last-child td,
.tl-mem-table tr:last-child th {
    border-bottom: none;
}

.tl-mem-table .yes {
    color: #4ade80;
}

.tl-mem-table .no {
    color: var(--text-muted);
    opacity: 0.45;
}

.tl-mem-free-sub {
    padding: 16px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

@keyframes tlMemHeroIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tlMemCardIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tlMemLiIn {
    to { opacity: 1; }
}

@keyframes tlMemFlashIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes tlMemOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(12px, 8px); }
}

@keyframes tlMemShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

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

@keyframes tlMemPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30, 86, 245, 0); }
    50% { box-shadow: 0 0 0 6px rgba(30, 86, 245, 0.12); }
}

/* Member settings (active subscribers) */
.tl-mem-prefs {
    margin-bottom: 32px;
    padding: 22px 20px;
    border-radius: 18px;
    border: 1px solid rgba(124, 58, 237, 0.28);
    background: linear-gradient(160deg, rgba(30, 86, 245, 0.08), rgba(139, 92, 246, 0.06));
    animation: tlMemHeroIn 0.55s ease-out both;
}

.tl-mem-prefs__title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
}

.tl-mem-prefs__hint,
.tl-mem-prefs__meta,
.tl-mem-prefs__subhint {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.tl-mem-prefs__meta {
    font-weight: 600;
    color: var(--text);
}

.tl-mem-prefs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 16px 0 18px;
}

.tl-mem-prefs {
    margin-top: 8px;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.08), rgba(15, 23, 42, 0.4));
    border: 1px solid rgba(167, 139, 250, 0.22);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.tl-mem-prefs__head {
    margin-bottom: 16px;
}

.tl-mem-prefs__status-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tl-mem-prefs__plan-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(99, 102, 241, 0.25));
    border: 1px solid rgba(167, 139, 250, 0.45);
    color: #e9d5ff;
}

.tl-mem-prefs__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.tl-mem-prefs__meta strong {
    color: var(--text, #f1f5f9);
    font-weight: 600;
}

.tl-mem-prefs__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 960px) {
    .tl-mem-prefs__layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: start;
    }
}

.tl-mem-prefs__block--card {
    padding: 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.tl-mem-prefs__block-title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text, #e2e8f0);
}

.tl-mem-prefs__block-title i {
    color: var(--brand, #a78bfa);
    opacity: 0.9;
}

.tl-mem-preset-scroll {
    max-height: 168px;
    overflow: auto;
    padding: 4px 2px 8px;
    margin-bottom: 8px;
    scrollbar-width: thin;
}

.tl-mem-prefs__subhint--accent {
    color: #c4b5fd;
    border-inline-start: 3px solid #a78bfa;
    padding-inline-start: 10px;
}

.tl-mem-prefs__block h3 {
    margin: 0 0 10px;
    font-size: 0.92rem;
}

.tl-mem-rgb-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.tl-mem-rgb-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tl-mem-rgb-toggle__btn {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    border: 1px solid var(--line);
    background: var(--bg-elev-2);
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.tl-mem-rgb-toggle input:checked + .tl-mem-rgb-toggle__btn {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #ff6b6b);
    background-size: 320% 100%;
    color: #111;
    border-color: transparent;
    animation: tl-mem-rgb-btn 4.5s linear infinite;
}

@keyframes tl-mem-rgb-btn {
    0% { background-position: 0% 50%; }
    100% { background-position: 320% 50%; }
}

.tl-mem-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tl-mem-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--sw, #888);
    cursor: pointer;
    padding: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: transform 0.15s, border-color 0.15s;
}

.tl-mem-swatch:hover {
    transform: scale(1.08);
}

.tl-mem-swatch.is-selected {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--brand), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.tl-mem-swatch--custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elev-2);
    color: var(--text-muted);
    font-size: 0.75rem;
}

.tl-mem-avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.tl-mem-avatar-preview {
    width: 92px;
    height: 92px;
}

.tl-mem-avatar-preview .tl-chat-avatar-ring-wrap {
    width: 96px;
    height: 96px;
    padding: 4px;
}

.tl-mem-preview__ring {
    width: 36px;
    height: 36px;
    padding: 3px;
    flex-shrink: 0;
}

.tl-mem-prefs__gift {
    margin: 0 0 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--brand, #c4b5fd);
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.25);
}

.tl-mem-prefs__gift i {
    margin-inline-end: 6px;
}

.tl-mem-preview__ring .chat-msg-avatar {
    width: 100%;
    height: 100%;
}

.tl-mem-rgb-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tl-mem-rgb-preset {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-elev-2);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

.tl-mem-rgb-preset.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

.tl-mem-rgb-preset[data-rgb="rgb"].is-selected,
.tl-mem-rgb-preset[data-rgb="rgb-ocean"].is-selected {
    color: #fff;
}

.tl-mem-rgb-preset[data-rgb="rgb"] { background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb); }
.tl-mem-rgb-preset[data-rgb="rgb-ocean"] { background: linear-gradient(90deg, #0ea5e9, #22d3ee, #0284c7); color: #fff; }
.tl-mem-rgb-preset[data-rgb="rgb-fire"] { background: linear-gradient(90deg, #ef4444, #f97316, #fbbf24); }
.tl-mem-rgb-preset[data-rgb="rgb-aurora"] { background: linear-gradient(90deg, #22c55e, #a78bfa, #2dd4bf); }
.tl-mem-rgb-preset[data-rgb="rgb-neon"] { background: linear-gradient(90deg, #f0f, #0ff, #ff0); color: #111; }
.tl-mem-rgb-preset[data-rgb="rgb-pastel"] { background: linear-gradient(90deg, #fda4af, #fde68a, #a5f3fc); }
.tl-mem-rgb-preset[data-rgb="rgb-sunset"] { background: linear-gradient(90deg, #fb7185, #c084fc, #f97316); color: #fff; }

.tl-mem-spin-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    margin: 8px 0 4px;
}

.tl-mem-card-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.tl-mem-btn--gift {
    background: var(--bg-elev-2);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
    animation: none;
}

.tl-mem-btn--gift:hover {
    border-color: rgba(139, 92, 246, 0.55);
    color: #c4b5fd;
}

.tl-mem-gift-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tl-mem-gift-modal[hidden] {
    display: none !important;
}

.tl-mem-gift-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.tl-mem-gift-modal__box {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    padding: 22px 20px;
    border-radius: 16px;
    background: var(--bg-elev-1);
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.tl-mem-gift-modal__box h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.tl-mem-gift-modal__label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 12px 0 6px;
}

.tl-mem-gift-modal__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.tl-mem-prefs__err {
    font-size: 0.8rem;
    color: #f87171;
}

.tl-mem-preview {
    margin-top: 8px;
    padding: 14px;
    border-radius: 12px;
    background: var(--bg-elev-1);
    border: 1px solid var(--line);
}

.tl-mem-preview__label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tl-mem-preview__msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    max-width: 420px;
}

.tl-mem-preview__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tl-mem-preview__text {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.tl-mem-prefs__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.tl-mem-prefs__msg {
    font-size: 0.85rem;
}

.tl-mem-prefs__days {
    color: var(--brand, #a78bfa);
    font-weight: 600;
    margin-inline-start: 6px;
}

.tl-mem-swatches.is-disabled,
.tl-mem-rgb-presets.is-disabled {
    opacity: 0.38;
    pointer-events: none;
    filter: grayscale(0.35);
}

.tl-mem-ring-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tl-mem-ring-preset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
    background: var(--bg-elev-1, #111);
    color: var(--text, #e2e8f0);
    font-size: 0.72rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.tl-mem-ring-preset.is-selected {
    border-color: var(--brand, #a78bfa);
    background: rgba(167, 139, 250, 0.12);
}

.tl-mem-ring-preset__dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid transparent;
}

/* Ring preset dots: assets/css/membership-ring-dots.css (generated) */

.tl-mem-prefs__block--free-sub {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.tl-mem-free-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.tl-mem-free-sub__field {
    flex: 1;
    min-width: 200px;
}

.tl-mem-free-sub__field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .tl-mem-hero,
    .tl-mem-card,
    .tl-mem-list li,
    .tl-mem-flash,
    .tl-mem-compare,
    .tl-mem-btn,
    .tl-mem-hero::before,
    .tl-mem-hero::after,
    .tl-mem-card--ultra::before,
    .tl-mem-card--ultra::after {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}
