/*
Theme Name: TWIST Tales Platform
Theme URI: https://twist-tales.com
Description: TWIST Tales platform theme. Child of Hello Elementor.
Author: EarReality
Author URI: https://twist-tales.com
Template: hello-elementor
Version: 1.7.1
*/

/* ═══════════════════════════════════════════════════════════════════════════
   TWIST TALES — DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════════════════

   Single source of truth for every visual value on the site.
   See: TWIST_Tales_Style_Definition_System.md

   Rules:
   - No hardcoded colors, sizes, weights, gradients anywhere else in the code.
   - Elementor Site Settings (Global Fonts + Global Colors) mirror these values.
   - Components reference compound tokens (Layer 2); Layer 2 composes Layer 1.
   - Missing value? Add a token. Never a one-off.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {

  /* ═══════════════════════════════════════════════════════════════════════════
     ELEMENTOR NEUTRALIZER — Architecture Rule
     ═══════════════════════════════════════════════════════════════════════════
     Convention: Elementor delivers layout structure. TWIST delivers ALL
     visual styling (font, color, buttons, dropdowns, filters, hover-effects).

     How this works: We don't fight Elementor's auto-generated rules — we
     hijack the CSS variables they reference. Every --e-global-* variable is
     redirected to a TWIST token. Effect:

     1. Existing TWIST-CSS that uses var(--e-global-*) keeps working,
        because the variable now resolves to a TWIST token (= same visual).
     2. Elementor auto-rules (e.g. .elementor-kit-N a { color: var(...) })
        also resolve to TWIST values → consistent regardless of what's
        set in Elementor Site Settings.
     3. !important on the hijack ensures we win over any Elementor-Editor
        setting that may try to redefine these on .elementor-kit-N body.

     If someone adds a new --e-global-* (via a new Elementor Global Color/Font
     in Site Settings), add a hijack line here, mapping it to the closest
     TWIST token. Single point of control.

     The TWIST tokens being referenced (--tt-color-bg, etc.) are defined
     further down in this same :root block. Variable resolution is lazy in
     CSS — order within :root doesn't matter as long as both sides are present.
     ═══════════════════════════════════════════════════════════════════════════ */

  /* ── Color hijacks (named + hex-ID variants) ───────────────────────────── */
  --e-global-color-primary:    var(--tt-color-bg)             !important;
  --e-global-color-secondary:  var(--tt-color-green)          !important;
  --e-global-color-text:       var(--tt-color-text)           !important;
  --e-global-color-accent:     var(--tt-color-accent)         !important;
  --e-global-color-3fdc6ec:    var(--tt-color-green-lt)       !important;
  --e-global-color-bdb6943:    var(--tt-color-blue)           !important;
  --e-global-color-7b4c71b:    var(--tt-color-bg-card-alt)    !important;
  --e-global-color-b4bcf17:    var(--tt-color-text-white)     !important;
  --e-global-color-6333151:    var(--tt-color-text)           !important;
  --e-global-color-9817355:    var(--tt-color-text-mute)      !important;
  --e-global-color-d77e925:    var(--tt-color-bg)             !important;
  --e-global-color-c2e0aa3:    var(--tt-color-accent)         !important;
  --e-global-color-511ec2d:    var(--tt-color-green)          !important;
  --e-global-color-b605ef5:    var(--tt-color-bg-black)       !important;

  /* ── Typography hijacks ────────────────────────────────────────────────── */
  --e-global-typography-primary-font-family: var(--tt-font-primary)         !important;
  --e-global-typography-f531475-font-size:   var(--tt-text-sm)              !important;
  --e-global-typography-1545c02-font-size:   var(--tt-text-lg)              !important;
  --e-global-typography-f1b8f97-font-family: var(--tt-font-primary)         !important;
  --e-global-typography-f1b8f97-font-size:   var(--tt-text-base)            !important;
  --e-global-typography-f1b8f97-font-weight: 600                             !important;
  --e-global-typography-f1b8f97-line-height: 24px                            !important;

  /* ═══════════════════════════════════════════════════════════════════════════
     END ELEMENTOR NEUTRALIZER
     ═══════════════════════════════════════════════════════════════════════════ */

  /* ─────────────────────────────────────────────────────────────────────────
     LAYER 1 — RAW VALUES
     ──────────────────────────────────────────────────────────────────────── */

  /* ── Font family ────────────────────────────────────────────────────────── */
  --tt-font-primary: 'Poppins', sans-serif;
  --tt-font-display: var(--tt-font-primary);

  /* ── Type scale (1.25 ratio, body = 17px) ───────────────────────────────── */
  --tt-text-xs:    13px;   /* micro labels, char counters, eyebrows           */
  --tt-text-sm:    14px;   /* meta info, dates, tags, hints                   */
  --tt-text-md:    14px;   /* form labels, secondary UI, buttons              */
  --tt-text-base:  17px;   /* body prose                                      */
  --tt-text-lg:    20px;   /* lead paragraphs                                 */
  --tt-text-xl:    24px;   /* prominent UI                                    */
  --tt-text-2xl:   32px;   /* large UI                                        */
  --tt-text-3xl:   36px;   /* section display                                 */
  --tt-text-4xl:   42px;   /* display                                         */
  --tt-text-5xl:   48px;   /* hero display                                    */
  --tt-text-6xl:   56px;   /* pull-quote decorative mark                      */
  --tt-text-7xl:   72px;   /* oversized display                               */

  /* ── HEADING SIZES — the ONLY source for heading font sizes ──────────────
     Rule: anything that IS a heading or should LOOK like one references
     these tokens — real h1–h6 (via the element rules after this :root
     block) and heading-like UI (card titles, popup titles). Everything
     else (body, meta, buttons) uses the text tokens above.

     Heading sizes are deliberately LITERAL values, not aliases into the
     text tokens: turning --tt-text-lg for lead paragraphs must never
     move a heading, and vice versa. One knob per heading level.

     The -compact values apply ≤ 1024px (Elementor tablet + mobile share
     one value; see the media query in the HEADINGS section below).

     The Elementor Kit sets NO heading sizes. Never add sizes there, and
     never write a heading size as a number in a component file — always
     reference these tokens. */
  --tt-text-h1:         42px;
  --tt-text-h2:         32px;
  --tt-text-h3:         20px;
  --tt-text-h4:         17px;   /* body size, bold                            */
  --tt-text-h5:         17px;   /* body size, semibold                        */
  --tt-text-h6:         14px;
  --tt-text-h1-compact: 32px;   /* ≤ 1024px                                   */
  --tt-text-h2-compact: 22px;   /* ≤ 1024px                                   */
  --tt-text-h3-compact: 16px;   /* ≤ 1024px                                   */

  /* Semantic type aliases (these are the ones component CSS should reach for) */
  --tt-text-body:  var(--tt-text-base);   /* 17px                             */
  --tt-text-lead:  var(--tt-text-lg);     /* 20px                             */

  /* ── Font weights ───────────────────────────────────────────────────────── */
  --tt-weight-regular:  400;
  --tt-weight-semibold: 600;
  --tt-weight-bold:     700;

  /* ── Line heights ───────────────────────────────────────────────────────── */
  --tt-leading-none:    1;
  --tt-leading-tight:   1.2;     /* H1, H2                                    */
  --tt-leading-snug:    1.4;     /* H3, button labels                         */
  --tt-leading-normal:  1.55;    /* lead paragraphs                           */
  --tt-leading-relaxed: 1.7;     /* body prose                                */
  --tt-leading-loose:   1.75;    /* reserved                                  */

  /* ── Letter spacing ─────────────────────────────────────────────────────── */
  --tt-tracking-tight:  -0.5px;  /* large headings                            */
  --tt-tracking-normal: 0;
  --tt-tracking-wide:   0.6px;   /* uppercase eyebrows, labels                */
  --tt-tracking-wider:  0.8px;   /* banner eyebrows                           */

  /* ── Brand colors (solid) ───────────────────────────────────────────────── */
  --tt-color-bg:             #211A1D;   /* main dark                          */
  --tt-color-bg-card:        #2A2228;   /* card surface on dark               */
  --tt-color-bg-card-alt:    #393D56;   /* alt section (blue-gray)            */
  --tt-color-bg-input:       #1A161A;   /* form inputs                        */
  --tt-color-bg-chip:        #2E2A30;   /* chips                              */
  --tt-color-bg-black:       #060405;   /* button text on light gradients     */

  --tt-color-text:           #FCFAF9;   /* primary body                       */
  --tt-color-text-white:     #FFFFFF;   /* strongest                          */
  --tt-color-text-mute:      #D7D9D7;   /* secondary                          */
  --tt-color-text-soft:      #B5AEB3;   /* WCAG-safe body-dim on dark         */
  --tt-color-text-dim:       #9A9399;   /* tertiary / hints                   */
  --tt-color-text-quiet:     #999999;   /* disabled                           */
  --tt-color-text-darkest:   #444444;   /* borders on light                   */

  --tt-color-green:          #1D9978;   /* primary action                     */
  --tt-color-green-dark:     #15745b;   /* darker hover for solid-green btns  */
  --tt-color-green-lt:       #74BEAB;   /* em tags, hover                     */
  --tt-color-green-cta:      #6DC531;   /* newsletter CTA                     */
  --tt-color-green-lime:     #EBEC57;   /* gradient end-stop                  */
  --tt-color-green-bright:   #5EE173;   /* gradient start, bright             */
  --tt-color-green-bright-2: #6BE57A;   /* gradient variant                   */
  --tt-color-green-pale:     #C6FC6B;   /* gradient end, bright               */

  --tt-color-blue:           #98A6D4;   /* secondary accent                   */
  --tt-color-blue-lt:        #7986CB;   /* navigation hub                     */
  --tt-color-blue-bright:    #A8B3FF;   /* hover / focus                      */

  --tt-color-accent:         #EB9C0A;   /* orange accent                      */
  --tt-color-danger:         #E05C5C;   /* error / delete                     */
  --tt-color-danger-soft:    #FF6B6B;   /* form-validation errors, soft red   */

  /* ── Alpha colors (transparent fills, overlays, borders) ────────────────── */
  --tt-alpha-white-04: rgba(255,255,255,0.04);
  --tt-alpha-white-06: rgba(255,255,255,0.06);
  --tt-alpha-white-07: rgba(255,255,255,0.07);
  --tt-alpha-white-10: rgba(255,255,255,0.10);
  --tt-alpha-white-20: rgba(255,255,255,0.20);
  --tt-alpha-white-35: rgba(255,255,255,0.35);
  --tt-alpha-white-70: rgba(255,255,255,0.70);

  --tt-alpha-green-06: rgba(29,153,120,0.06);
  --tt-alpha-green-12: rgba(29,153,120,0.12);
  --tt-alpha-green-15: rgba(29,153,120,0.15);
  --tt-alpha-green-30: rgba(29,153,120,0.30);
  --tt-alpha-green-35: rgba(29,153,120,0.35);
  --tt-alpha-green-40: rgba(29,153,120,0.40);

  --tt-alpha-green-lt-18: rgba(116,190,171,0.18);
  --tt-alpha-green-lt-30: rgba(116,190,171,0.30);

  --tt-alpha-blue-06:  rgba(152,166,212,0.06);
  --tt-alpha-blue-15:  rgba(152,166,212,0.15);
  --tt-alpha-blue-30:  rgba(152,166,212,0.30);

  --tt-alpha-blue-lt-18: rgba(121,134,203,0.18);
  --tt-alpha-blue-lt-22: rgba(121,134,203,0.22);
  --tt-alpha-blue-lt-35: rgba(121,134,203,0.35);

  --tt-alpha-accent-06: rgba(235,156,10,0.06);
  --tt-alpha-accent-15: rgba(235,156,10,0.15);
  --tt-alpha-accent-18: rgba(235,156,10,0.18);
  --tt-alpha-accent-30: rgba(235,156,10,0.30);
  --tt-alpha-accent-35: rgba(235,156,10,0.35);

  /* Extended alpha set */
  --tt-alpha-white-05: rgba(255,255,255,0.05);
  --tt-alpha-white-08: rgba(255,255,255,0.08);
  --tt-alpha-white-12: rgba(255,255,255,0.12);
  --tt-alpha-white-15: rgba(255,255,255,0.15);
  --tt-alpha-white-18: rgba(255,255,255,0.18);
  --tt-alpha-white-30: rgba(255,255,255,0.30);
  --tt-alpha-white-60: rgba(255,255,255,0.60);
  --tt-alpha-white-80: rgba(255,255,255,0.80);
  --tt-alpha-white-85: rgba(255,255,255,0.85);

  --tt-alpha-green-05: rgba(29,153,120,0.05);
  --tt-alpha-green-08: rgba(29,153,120,0.08);
  --tt-alpha-green-10: rgba(29,153,120,0.10);
  --tt-alpha-green-20: rgba(29,153,120,0.20);
  --tt-alpha-green-25: rgba(29,153,120,0.25);
  --tt-alpha-green-50: rgba(29,153,120,0.50);
  --tt-alpha-green-60: rgba(29,153,120,0.60);

  --tt-alpha-green-lt-10: rgba(116,190,171,0.10);
  --tt-alpha-green-lt-12: rgba(116,190,171,0.12);
  --tt-alpha-green-lt-25: rgba(116,190,171,0.25);

  --tt-alpha-green-cta-12: rgba(109,197,49,0.12);
  --tt-alpha-green-cta-15: rgba(109,197,49,0.15);
  --tt-alpha-green-cta-40: rgba(109,197,49,0.40);

  --tt-alpha-blue-12:  rgba(152,166,212,0.12);
  --tt-alpha-blue-25:  rgba(152,166,212,0.25);
  --tt-alpha-blue-35:  rgba(152,166,212,0.35);

  --tt-alpha-danger-08: rgba(224,92,92,0.08);
  --tt-alpha-danger-10: rgba(224,92,92,0.10);
  --tt-alpha-danger-20: rgba(224,92,92,0.20);
  --tt-alpha-danger-25: rgba(224,92,92,0.25);
  --tt-alpha-danger-30: rgba(224,92,92,0.30);

  --tt-alpha-black-40: rgba(0,0,0,0.40);
  --tt-alpha-black-50: rgba(0,0,0,0.50);
  --tt-alpha-black-55: rgba(0,0,0,0.55);
  --tt-alpha-black-60: rgba(0,0,0,0.60);
  --tt-alpha-black-72: rgba(0,0,0,0.72);
  --tt-alpha-black-75: rgba(0,0,0,0.75);
  --tt-alpha-black-92: rgba(0,0,0,0.92);

  --tt-alpha-bg-20: rgba(33,26,29,0.20);
  --tt-alpha-bg-25: rgba(33,26,29,0.25);
  --tt-alpha-bg-40: rgba(33,26,29,0.40);
  --tt-alpha-bg-55: rgba(33,26,29,0.55);
  --tt-alpha-bg-60: rgba(33,26,29,0.60);
  --tt-alpha-bg-85: rgba(33,26,29,0.85);
  --tt-alpha-bg-88: rgba(33,26,29,0.88);

  --tt-alpha-bg-card-alt-90: rgba(57,61,86,0.90);

  /* Additions used by plugin CSS */
  --tt-alpha-white-14: rgba(255,255,255,0.14);
  --tt-alpha-white-50: rgba(255,255,255,0.50);
  --tt-alpha-white-78: rgba(255,255,255,0.78);

  --tt-alpha-blue-20: rgba(152,166,212,0.20);

  /* Green-bright (#5EE173) alpha set — for events plugin status pills */
  --tt-alpha-green-bright-08: rgba(94,225,115,0.08);
  --tt-alpha-green-bright-15: rgba(94,225,115,0.15);
  --tt-alpha-green-bright-20: rgba(94,225,115,0.20);
  --tt-alpha-green-bright-25: rgba(94,225,115,0.25);
  --tt-alpha-green-bright-30: rgba(94,225,115,0.30);
  --tt-alpha-green-bright-35: rgba(94,225,115,0.35);
  --tt-alpha-green-bright-40: rgba(94,225,115,0.40);

  /* ── Gradients ──────────────────────────────────────────────────────────── */
  --tt-gradient-primary:
    linear-gradient(90deg, var(--tt-color-green-bright), var(--tt-color-green-pale));
  --tt-gradient-nav:
    linear-gradient(90deg, var(--tt-color-green), var(--tt-color-green-lime));
  --tt-gradient-h2-accent:
    linear-gradient(180deg, var(--tt-color-green), var(--tt-color-green-lime));
  --tt-gradient-cta-band:
    linear-gradient(135deg, #162820 0%, #1a1e30 60%, #1e181b 100%);
  --tt-gradient-avatar:
    linear-gradient(135deg, var(--tt-color-bg-card-alt), var(--tt-color-bg-card));
  --tt-gradient-hero-glow:
    radial-gradient(ellipse at top, var(--tt-alpha-green-15), transparent 60%);

  /* Profile hero fallback gradients — used when no hero image set */
  --tt-gradient-hero-writer:
    linear-gradient(135deg, #0a1f14 0%, #0f1a28 50%, #1a1020 100%);
  --tt-gradient-hero-voice:
    linear-gradient(135deg, #1f1200 0%, #281a08 50%, #1a1020 100%);
  --tt-gradient-hero-player:
    linear-gradient(135deg, #1a2838 0%, #241a2e 100%);

  /* Hero bottom-fade overlay (for images with text over them) */
  --tt-gradient-hero-fade:
    linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);

  /* ── Border widths ──────────────────────────────────────────────────────── */
  --tt-border-w-sm: 1px;
  --tt-border-w-md: 2px;
  --tt-border-w-lg: 4px;

  /* Unified filter element height — single source of truth for the
     height of all filter-bar interactive elements (native <select>,
     Select2 dropdowns, search input, search button, custom sort
     dropdown). Computed from font-base * line-height + padding-y * 2
     + border * 2, so changing font/padding/border tokens
     automatically re-flows the height to match. */
  --tt-filter-h: calc(var(--tt-text-base) * 1.4 + var(--tt-space-3) * 2 + var(--tt-border-w-md) * 2);

  /* ── Borders (compound: width + style + color) ──────────────────────────── */
  --tt-border-subtle:      1px solid var(--tt-alpha-white-07);
  --tt-border-medium:      1px solid var(--tt-alpha-white-10);
  --tt-border-strong:      1px solid var(--tt-alpha-white-20);
  --tt-border-ghost:       1px solid var(--tt-alpha-white-70);
  --tt-border-green:       1px solid var(--tt-alpha-green-30);
  --tt-border-green-focus: 1px solid var(--tt-alpha-green-40);
  --tt-border-blue:        1px solid var(--tt-alpha-blue-30);
  --tt-border-danger:      1px solid rgba(224,92,92,0.40);
  --tt-border-accent-left: 4px solid var(--tt-color-green);   /* pull-quote */

  /* ── Radii ──────────────────────────────────────────────────────────────── */
  --tt-radius-xs:   2px;
  --tt-radius-sm:   4px;
  --tt-radius-md:   8px;
  --tt-radius-lg:   12px;
  --tt-radius-xl:   16px;
  --tt-radius-2xl:  20px;
  --tt-radius-3xl:  34px;
  --tt-radius-full: 100px;

  /* ── Spacing ────────────────────────────────────────────────────────────── */
  --tt-space-0:   0;
  --tt-space-1:   4px;
  --tt-space-2:   8px;
  --tt-space-3:   12px;
  --tt-space-4:   16px;
  --tt-space-5:   20px;
  --tt-space-6:   24px;
  --tt-space-8:   32px;
  --tt-space-10:  40px;
  --tt-space-12:  48px;
  --tt-space-16:  64px;
  --tt-space-20:  80px;

  /* ── Shadows ────────────────────────────────────────────────────────────── */
  --tt-shadow-sm: 0 1px 2px rgba(0,0,0,0.10);
  --tt-shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --tt-shadow-lg: 0 8px 24px rgba(0,0,0,0.30);
  --tt-shadow-xl: 0 16px 48px rgba(0,0,0,0.40);

  /* ── Transitions ────────────────────────────────────────────────────────── */
  --tt-transition-fast:   .15s ease;
  --tt-transition-base:   .2s ease;
  --tt-transition-medium: .25s ease;
  --tt-transition-slow:   .4s ease;

  /* ── Container widths ───────────────────────────────────────────────────── */
  --tt-container-narrow:   780px;  /* profile CTA (lookalike to profile)      */
  --tt-container-form:     800px;  /* profile edit                            */
  --tt-container-blog:     860px;  /* reserved for the blog readability pass  */
  --tt-container-breakout: 1100px; /* reserved for the blog readability pass  */
  --tt-container-page:     1440px; /* default page + blog header/preview      */
  --tt-container-wide:     1440px; /* full-bleed hero                         */

  /* ── Z-index layers ─────────────────────────────────────────────────────── */
  --tt-z-base:    1;
  --tt-z-sticky:  100;
  --tt-z-nav:     200;
  --tt-z-modal:   900;
  --tt-z-toast:   999;


  /* ─────────────────────────────────────────────────────────────────────────
     LAYER 2 — COMPOUND TOKENS
     Higher-level tokens composed from Layer 1.
     Component CSS should reach for these first.
     ──────────────────────────────────────────────────────────────────────── */

  /* ── Button base ────────────────────────────────────────────────────────── */
  --tt-btn-padding:     10px 22px;
  --tt-btn-padding-sm:  8px 14px;
  --tt-btn-padding-lg:  12px 28px;
  --tt-btn-height:      42px;
  --tt-btn-font:        var(--tt-text-md);
  --tt-btn-weight:      var(--tt-weight-semibold);
  --tt-btn-transition:  var(--tt-transition-base);

  /* ── Button variants ────────────────────────────────────────────────────── */
  --tt-btn-primary-bg:      var(--tt-gradient-primary);
  --tt-btn-primary-color:   var(--tt-color-bg-black);

  --tt-btn-nav-bg:          var(--tt-gradient-nav);
  --tt-btn-nav-color:       var(--tt-color-bg-black);

  --tt-btn-solid-bg:        var(--tt-color-green);
  --tt-btn-solid-color:     var(--tt-color-text);
  --tt-btn-solid-hover:     #22B08A;

  --tt-btn-accent-bg:       var(--tt-color-accent);
  --tt-btn-accent-color:    var(--tt-color-bg-black);

  --tt-btn-ghost-bg:        transparent;
  --tt-btn-ghost-color:     var(--tt-alpha-white-70);
  --tt-btn-ghost-border:    var(--tt-border-ghost);

  --tt-btn-danger-bg:       transparent;
  --tt-btn-danger-color:    var(--tt-color-danger);
  --tt-btn-danger-border:   var(--tt-border-danger);

  --tt-btn-secondary-bg:    rgba(57,61,86,0.40);
  --tt-btn-secondary-color: var(--tt-color-text-mute);
  --tt-btn-secondary-hover: rgba(57,61,86,0.70);

  /* ── Form inputs ────────────────────────────────────────────────────────── */
  --tt-input-bg:           var(--tt-color-bg-input);
  --tt-input-border:       var(--tt-border-subtle);
  --tt-input-focus-border: var(--tt-border-green-focus);
  --tt-input-text:         var(--tt-color-text);
  --tt-input-placeholder:  var(--tt-color-text-dim);
  --tt-input-radius:       var(--tt-radius-md);
  --tt-input-padding:      10px 14px;
  --tt-input-font:         var(--tt-text-md);

  /* ── Cards ──────────────────────────────────────────────────────────────── */
  --tt-card-bg:            var(--tt-color-bg-card);
  --tt-card-border:        var(--tt-border-subtle);
  --tt-card-border-focus:  1px solid var(--tt-alpha-green-30);
  --tt-card-radius:        var(--tt-radius-xl);
  --tt-card-padding:       22px;

  /* ── Chips / badges ─────────────────────────────────────────────────────── */
  --tt-chip-bg:              var(--tt-color-bg-chip);
  --tt-chip-border:          var(--tt-border-subtle);
  --tt-chip-padding:         5px 12px;
  --tt-chip-radius:          var(--tt-radius-2xl);
  --tt-chip-font:            var(--tt-text-sm);
  --tt-chip-weight:          var(--tt-weight-semibold);

  --tt-chip-selected-bg:     var(--tt-alpha-green-12);
  --tt-chip-selected-border: var(--tt-border-green);
  --tt-chip-selected-color:  var(--tt-color-green-lt);

  --tt-chip-blue-selected-bg:     rgba(152,166,212,0.12);
  --tt-chip-blue-selected-border: var(--tt-border-blue);
  --tt-chip-blue-selected-color:  var(--tt-color-blue);

  /* ── Callouts (twist-content) ───────────────────────────────────────────── */
  --tt-callout-radius:   var(--tt-radius-lg);
  --tt-callout-padding:  20px 22px;

  --tt-callout-default-bg:     var(--tt-alpha-green-06);
  --tt-callout-default-border: var(--tt-border-green);
  --tt-callout-default-icon:   var(--tt-color-green);

  --tt-callout-warning-bg:     var(--tt-alpha-accent-06);
  --tt-callout-warning-border: 1px solid var(--tt-alpha-accent-30);
  --tt-callout-warning-icon:   var(--tt-color-accent);

  --tt-callout-info-bg:        var(--tt-alpha-blue-06);
  --tt-callout-info-border:    var(--tt-border-blue);
  --tt-callout-info-icon:      var(--tt-color-blue);

  /* ── Pull quote, takeaways, expert card, inline CTA ─────────────────────── */
  --tt-pullquote-bg:         var(--tt-card-bg);
  --tt-pullquote-border:     var(--tt-border-accent-left);
  --tt-pullquote-padding:    28px 32px;
  --tt-pullquote-radius:     var(--tt-radius-lg);

  --tt-takeaways-bg:         var(--tt-alpha-green-06);
  --tt-takeaways-border:     var(--tt-border-green);
  --tt-takeaways-padding:    32px;
  --tt-takeaways-radius:     var(--tt-radius-lg);

  --tt-expert-card-bg:       var(--tt-card-bg);
  --tt-expert-card-radius:   var(--tt-radius-xl);
  --tt-expert-card-padding:  22px;

  --tt-inline-cta-bg:
    linear-gradient(90deg, var(--tt-color-green), var(--tt-color-accent));
  --tt-inline-cta-radius:    var(--tt-radius-lg);
  --tt-inline-cta-padding:   24px;

  /* ── Creators Filter (sticky bar above /creators/ listing) ──────────────── */
  --tt-creators-filter-field-min:        200px;
  --tt-creators-filter-field-basis:      240px;
  --tt-creators-filter-field-min-mobile: 140px;

  /* ── Navigation ─────────────────────────────────────────────────────────── */
  --tt-nav-height:       60px;
  --tt-nav-bg:           rgba(33,26,29,0.97);
  --tt-nav-backdrop:     blur(12px);
  --tt-nav-border:       var(--tt-border-subtle);
  --tt-nav-link-color:   var(--tt-color-text-dim);
  --tt-nav-link-hover:   var(--tt-color-text);
  --tt-nav-link-active:  var(--tt-color-green-lt);

  /* ── Button tier tokens ─────────────────────────────────────────────────── */
  --tt-btn-radius:        14px;

  /* Gradient hover variants */
  --tt-gradient-nav-hover:
    linear-gradient(90deg, var(--tt-btn-solid-hover) 0%, #F2F26B 100%);
  --tt-gradient-primary-hover:
    linear-gradient(90deg, var(--tt-color-green-bright-2) 0%, #D2FF7F 100%);

  /* Hero tier — Gradient-Nav fill, dark text → white text on hover */
  --tt-hero-bg:               var(--tt-gradient-nav);
  --tt-hero-bg-hover:         var(--tt-gradient-nav-hover);
  --tt-hero-color:            var(--tt-color-bg-black);
  --tt-hero-color-hover:      #FFFFFF;

  /* Primary tier — Solid green, white text (workhorse) */
  --tt-primary-bg:            var(--tt-color-green);
  --tt-primary-bg-hover:      var(--tt-btn-solid-hover);
  --tt-primary-color:         #FFFFFF;

  /* Secondary tier — Gradient-Primary (bright-lime), dark text */
  --tt-secondary-bg:          var(--tt-gradient-primary);
  --tt-secondary-bg-hover:    var(--tt-gradient-primary-hover);
  --tt-secondary-color:       var(--tt-color-bg-black);

  /* Danger tier — Red fill, white text */
  --tt-danger-bg:             var(--tt-color-danger);
  --tt-danger-bg-hover:       #C84A4A;
  --tt-danger-color:          #FFFFFF;

  /* Outline tier — transparent + green border (external/cross-context) */
  --tt-outline-color:         var(--tt-color-green);
  --tt-outline-border:        1.5px solid var(--tt-color-green);
  --tt-outline-bg-hover:      var(--tt-alpha-green-12);

  /* Role-color injection point — set per-role via `--tt-role-color: <color>`
     wrapper on profile/creator-card containers. Defaults to brand green. */
  --tt-role-color:            var(--tt-color-green);
  --tt-role-color-hover:      var(--tt-btn-solid-hover);

  /* Heading-accent gradient (utility class .tt-text--gradient) */
  --tt-text-gradient:         var(--tt-gradient-nav);

  /* Shared button-hover lift */
  --tt-btn-lift-shadow:       0 4px 12px rgba(0,0,0,0.20);

}

/* ═══════════════════════════════════════════════════════════════════════════
   Breakpoints (reference — media queries can't read custom properties,
   but use these exact values everywhere)

     --tt-bp-sm:  480px;
     --tt-bp-md:  768px;
     --tt-bp-lg:  1024px;
     --tt-bp-xl:  1280px;
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   HEADINGS — element rules, single source of truth
   ═══════════════════════════════════════════════════════════════════════════
   These rules give every h1–h6 on the site its size, weight and line
   height from the --tt-text-h* tokens. The Elementor Kit sets no
   heading sizes — these rules are the only owner.

   Heading-like UI elements (card titles, popup titles) carry their own
   class referencing the same tokens, so they follow the same knobs.
   Their class wins over these element rules where it sets more.

   The ≤1024px block mirrors what used to be the Kit's tablet/mobile
   sizes (tablet and mobile share one value per level). It applies to
   the ELEMENT rules only — heading-like UI keeps its base size on all
   widths, exactly as before.
   ═══════════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tt-font-primary);
  color: var(--tt-color-text);
}

h1 { font-size: var(--tt-text-h1); font-weight: var(--tt-weight-bold);     line-height: var(--tt-leading-tight); }
h2 { font-size: var(--tt-text-h2); font-weight: var(--tt-weight-bold);     line-height: var(--tt-leading-tight); }
h3 { font-size: var(--tt-text-h3); font-weight: var(--tt-weight-bold);     line-height: var(--tt-leading-snug); }
h4 { font-size: var(--tt-text-h4); font-weight: var(--tt-weight-bold);     line-height: var(--tt-leading-normal); }
h5 { font-size: var(--tt-text-h5); font-weight: var(--tt-weight-semibold); line-height: var(--tt-leading-normal); }
h6 { font-size: var(--tt-text-h6); font-weight: var(--tt-weight-semibold); line-height: var(--tt-leading-snug); }

@media (max-width: 1024px) {
  h1 { font-size: var(--tt-text-h1-compact); }
  h2 { font-size: var(--tt-text-h2-compact); }
  h3 { font-size: var(--tt-text-h3-compact); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   BUTTON SYSTEM — CANONICAL TIER CLASSES
   ═══════════════════════════════════════════════════════════════════════════
   Tier classes:
     .tt-btn-hero       — 1-2× per page max · brand-nav gradient + dark text → white on hover
     .tt-btn-primary    — workhorse · solid green + white text
       .tt-btn-primary--role     — same fill via --tt-role-color CSS var
       .tt-btn-primary--outlined — transparent + hairline border (in-card context)
     .tt-btn-secondary  — content-driving · bright-lime gradient + dark text
     .tt-btn-danger     — destructive · red filled + white text
     .tt-btn-outline    — external/cross-context · transparent + green border

   Link-action and adjacent UI patterns:
     .tt-link-action            — mint underlined text, color → green on hover
     .tt-icon-btn               — 36px circular icon button (green default)
       .tt-icon-btn--danger     — grey → red (close / remove)
       .tt-icon-btn--bookmark   — toggle state for favorite/heart
     .tt-segment-toggle / __btn — pill switcher (Public/My Library style)
     .tt-card-selector          — radio-style pill for signup role-picker

   Utility:
     .tt-text--gradient         — heading-accent gradient (use on inner span)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Shared button base — form, size, transitions ─────────────────────────── */
.tt-btn-hero,
.tt-btn-primary,
.tt-btn-secondary,
.tt-btn-danger,
.tt-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--tt-btn-height);
  padding: var(--tt-btn-padding);
  border-radius: var(--tt-btn-radius);
  font-family: var(--tt-font-primary);
  font-size: var(--tt-btn-font);
  font-weight: var(--tt-btn-weight);
  letter-spacing: -0.1px;
  line-height: 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--tt-btn-transition), transform var(--tt-transition-fast), box-shadow var(--tt-transition-base);
}

.tt-btn-hero:disabled,
.tt-btn-primary:disabled,
.tt-btn-secondary:disabled,
.tt-btn-danger:disabled,
.tt-btn-outline:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tt-btn-hero:focus-visible,
.tt-btn-primary:focus-visible,
.tt-btn-secondary:focus-visible,
.tt-btn-danger:focus-visible,
.tt-btn-outline:focus-visible {
  outline: 2px solid var(--tt-alpha-green-40);
  outline-offset: 3px;
}

/* ── Hero · Gradient-A + dark text → white on hover ───────────────────────── */
.tt-btn-hero {
  background: var(--tt-hero-bg);
  color: var(--tt-hero-color);
}
.tt-btn-hero:hover:not(:disabled) {
  background: var(--tt-hero-bg-hover);
  color: var(--tt-hero-color-hover);
  transform: translateY(-1px);
  box-shadow: var(--tt-btn-lift-shadow);
}
.tt-btn-hero:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Primary · Solid green + white text ───────────────────────────────────── */
.tt-btn-primary {
  background: var(--tt-primary-bg);
  color: var(--tt-primary-color);
}
.tt-btn-primary:hover:not(:disabled) {
  background: var(--tt-primary-bg-hover);
  color: var(--tt-primary-color);
  transform: translateY(-1px);
  box-shadow: var(--tt-btn-lift-shadow);
}
.tt-btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

/* Role-color modifier — uses --tt-role-color CSS var
   Set --tt-role-color on a parent (profile container, creator card, etc.) to paint per-role. */
.tt-btn-primary--role {
  background: var(--tt-role-color);
  color: var(--tt-color-bg-black);
}
.tt-btn-primary--role:hover:not(:disabled) {
  background: var(--tt-role-color-hover);
  color: var(--tt-color-bg-black);
}

/* Outlined modifier on Primary — for in-card context (transparent until hover) */
.tt-btn-primary--outlined {
  background: transparent;
  color: var(--tt-color-text);
  border: 1px solid var(--tt-alpha-white-07);
}
.tt-btn-primary--outlined:hover:not(:disabled) {
  background: var(--tt-primary-bg);
  color: var(--tt-primary-color);
  border-color: var(--tt-primary-bg);
}

/* ── Ghost-Role · Secondary CTA on creator profile + creator card + story
   card. Dark-bg with role-color border + text. Hover: font flips to white
   (border + bg unchanged) per spec. Source of role color follows the
   cascade --author-role-color → --profile-role-color → --tt-color-green,
   so it auto-paints the creator's role wherever set without per-call
   overrides. Use this class directly on new buttons, or as a styling
   recipe other classes can inherit (.profile-hero__btn--share,
   .twist-follow-btn.not-following, .tt-card-story__bookmark all use the
   same visual pattern below). */
.tt-btn-ghost-role {
  background: var(--tt-color-bg);
  color: var(--author-role-color, var(--profile-role-color, var(--tt-color-green)));
  border: var(--tt-border-w-md) solid var(--author-role-color, var(--profile-role-color, var(--tt-color-green)));
  transition: color .15s, border-color .15s, background .15s;
}
.tt-btn-ghost-role:hover:not(:disabled) {
  color: var(--tt-color-text-white);
}

/* ── Secondary · Gradient-B + dark text ───────────────────────────────────── */
.tt-btn-secondary {
  background: var(--tt-secondary-bg);
  color: var(--tt-secondary-color);
}
.tt-btn-secondary:hover:not(:disabled) {
  background: var(--tt-secondary-bg-hover);
  color: var(--tt-secondary-color);
  transform: translateY(-1px);
  box-shadow: var(--tt-btn-lift-shadow);
}
.tt-btn-secondary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Danger · Red filled + white text ─────────────────────────────────────── */
.tt-btn-danger {
  background: var(--tt-danger-bg);
  color: var(--tt-danger-color);
}
.tt-btn-danger:hover:not(:disabled) {
  background: var(--tt-danger-bg-hover);
  color: var(--tt-danger-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--tt-alpha-danger-30);
}
.tt-btn-danger:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Outline · Transparent + brand-green border ──────────────────────────── */
.tt-btn-outline {
  background: transparent;
  color: var(--tt-outline-color);
  border: var(--tt-outline-border);
}
.tt-btn-outline:hover:not(:disabled) {
  background: var(--tt-outline-bg-hover);
  color: var(--tt-outline-color);
}

/* ── Cancel / Link-action · mint underlined text → green on hover ─────────── */
.tt-link-action {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--tt-color-green-lt);
  color: var(--tt-color-green-lt);
  font-family: var(--tt-font-primary);
  font-size: 15px;
  font-weight: var(--tt-weight-semibold);
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 4px 0;
  cursor: pointer;
  transition: color var(--tt-transition-base), border-bottom-color var(--tt-transition-base);
}
.tt-link-action:hover {
  color: var(--tt-color-green);
  border-bottom-color: var(--tt-color-green);
}
.tt-link-action:focus-visible {
  outline: 2px solid var(--tt-alpha-green-40);
  outline-offset: 4px;
}

/* ── Icon-only button family ──────────────────────────────────────────────── */
.tt-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--tt-color-green);
  border: 1px solid var(--tt-alpha-green-30);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transition: var(--tt-transition-base);
}
.tt-icon-btn:hover:not(:disabled) {
  background: var(--tt-alpha-green-10);
  color: var(--tt-btn-solid-hover);
  border-color: var(--tt-alpha-green-40);
}
.tt-icon-btn:focus-visible {
  outline: 2px solid var(--tt-alpha-green-40);
  outline-offset: 2px;
}
.tt-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Danger variant — close ✕ / remove × — grey default, red on hover */
.tt-icon-btn--danger {
  color: var(--tt-color-text-soft);
  border-color: var(--tt-alpha-white-15);
}
.tt-icon-btn--danger:hover:not(:disabled) {
  background: var(--tt-alpha-danger-10);
  color: var(--tt-color-danger);
  border-color: var(--tt-alpha-danger-30);
}

/* Bookmark variant — toggle state for favorites */
.tt-icon-btn--bookmark.is-favorited {
  background: var(--tt-alpha-green-12);
  color: var(--tt-color-green);
  border-color: var(--tt-color-green);
}

/* ── Segment Toggle · pill switcher ───────────────────────────────────────── */
.tt-segment-toggle {
  display: inline-flex;
  background: var(--tt-color-bg-input);
  padding: 4px;
  border-radius: var(--tt-radius-full);
  gap: 2px;
}
.tt-segment-toggle__btn {
  padding: 8px 18px;
  border-radius: var(--tt-radius-full);
  font-family: var(--tt-font-primary);
  font-size: var(--tt-text-sm);
  font-weight: var(--tt-weight-semibold);
  background: transparent;
  color: var(--tt-color-text-dim);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--tt-transition-base), color var(--tt-transition-base);
}
.tt-segment-toggle__btn:hover {
  color: var(--tt-color-text);
}
.tt-segment-toggle__btn.is-active {
  background: var(--tt-color-green);
  color: #FFFFFF;
}

/* ── Card-Selector · radio-style pill (signup role-picker) ────────────────── */
.tt-card-selector {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--tt-radius-full);
  background: var(--tt-alpha-green-lt-10);
  border: 1px solid var(--tt-alpha-green-lt-30);
  color: var(--tt-color-text);
  font-family: var(--tt-font-primary);
  font-size: var(--tt-text-md);
  font-weight: var(--tt-weight-semibold);
  cursor: pointer;
  transition: var(--tt-transition-base);
}
.tt-card-selector::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tt-color-green-lt);
}
.tt-card-selector:hover {
  border-color: var(--tt-color-green-lt);
}
.tt-card-selector.is-selected {
  background: var(--tt-color-green-lt);
  color: var(--tt-color-bg-black);
  border-color: var(--tt-color-green-lt);
}
.tt-card-selector.is-selected::before {
  background: var(--tt-color-bg-black);
}

/* ── Heading-accent gradient utility ──────────────────────────────────────── */
.tt-text--gradient {
  background: var(--tt-text-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-style: normal;
}


/* signup-form and custom-form */
    /* Parent wrapper for the form */

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--tt-font-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
select {
  background-color: #211A1D !important;
  color: #FCFAF9 !important;
  border: 1px solid #444;
}

/* Dropdown options */
select option {
  background-color: #211A1D;
  color: #FCFAF9;
}

/* Selected option */
select option:checked {
  background-color: #1D9978;
  color: #ffffff;
}

/* Disabled option (placeholder) */
select option:disabled {
  color: #999 !important;
}
/* Main content should grow */
main#content {
  flex: 1;
}

/* Footer pushed to bottom */
footer {
  margin-top: auto;
}
.custom-user_forms {
/*   max-width: 400px; */
  color: #fff;
  margin:auto;
}

/* Labels */
.custom-user_forms label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

/* Universal input styling */
.custom-user_forms .custom-input_style {
  width: 100%;
  padding:6px 12px;
  border-radius: 8px;
  border: 2px solid #7986CB;
  background: transparent;
  color: #D7D9D7;
  margin-bottom: 18px;
  font-size: 14px;
  outline: none;
}
.custom-user_forms .custom-input_style:focus{
	border-color:#1D9978
}
.custom-user_forms .custom-input_style::placeholder {
  color: rgba(255,255,255,0.7);
}
.custom-user_forms .form-group{
    display:flex;
    flex-direction: column;
    gap:8px;
	position:relative;
}
.custom-user_forms .form-group label{
    margin: 0;
}
.custom-user_forms .custom-user_forms textarea.custom-input_style {
  height: 130px;
  resize: none;
}

/* Row layout for Name + Surname */
.custom-user_forms .row {
  display: flex;
  gap: 16px;
	flex-wrap:wrap
}

.glsr-default form.glsr-form .glsr-field .glsr-input, .glsr-default form.glsr-form .glsr-field .glsr-textarea{
    color: #fff;
}
.glsr-default form.glsr-form .glsr-field .glsr-input:focus, .glsr-default form.glsr-form .glsr-field .glsr-textarea:focus{
    border-color:var(--e-global-color-secondary); 
    box-shadow: none;
    background:none;
}
.field_notes{
        width: 100%;
    margin: -28px 0 15px;
    opacity: 0.8;
}
.custom-user_forms .col {
  flex: 1;
	@media(max-width:767px){
		flex:0 0 100%;
	}
}

/* Toggle switch styling */
.custom-user_forms .toggle-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.custom-user_forms .toggle-wrap p {
  font-size: 14px;
  line-height: 1.4;
}

.custom-user_forms .switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 18px;
}

.custom-user_forms switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-user_forms .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #7986CB;
  border-radius: 34px;
  transition: 0.2s;
}
.custom-user_forms .switch input{
	visibility:hidden;
}
.custom-user_forms .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}

.custom-user_forms input:checked + .slider {
  background-color: #6BE57A;
}

.custom-user_forms input:checked + .slider:before {
  transform: translateX(13px);
}

/* Terms text */
.custom-user_forms .terms {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.custom-user_forms .terms a {
  color: #A8B3FF;
  text-decoration: underline;
}

/* Register button */
.custom-user_forms .register-btn {
  width: 100%;
  padding:12px 16px;
  background: linear-gradient(90deg, #5EE173, #C6FC6B);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: #000;
}

/* Toggle switch styling */
.custom-user_forms .toggle-wrap, .toggle-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
	flex-wrap:wrap;
	@media(max-width:767px){
		.terms-error, .newsletter-error{
			margin: -5px 0 0px !important;
		}
	}
}

.custom-user_forms .toggle-wrap p, .toggle-wrap p {
  font-size: 14px;
  line-height: 1.4;
	width:80%;
	margin:0
}

.custom-user_forms  .switch, .toggle-wrap .switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}

.custom-user_forms switch input, .toggle-wrap .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-user_forms .slider, .toggle-wrap .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #7986CB;
  border-radius: 34px;
  transition: 0.2s;
}
.custom-user_forms .switch input, .toggle-wrap .switch input{
	visibility:hidden;
}
.custom-user_forms .slider:before, .toggle-wrap .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}

.custom-user_forms input:checked + .slider, .toggle-wrap input:checked + .slider {
  background-color: #6BE57A;
}

.custom-user_forms input:checked + .slider:before, .toggle-wrap input:checked + .slider:before {
  transform: translateX(13px);
}
/* select-option */
.custom-user_forms .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--e-global-color-511ec2d);
    border-style: none;
    border-radius: 4px 4px 4px 4px;
    font-weight: 600;
    font-size: 16px;
    padding: 1px 24px 1px 5px;
}
.custom-user_forms .select2-container--default .select2-selection--multiple .select2-selection__choice  button{
    background:none;
    box-shadow:none;
    border:0;
    color:#fff;
    height: 100%;
    left: auto;
    right: 4px;
}
.custom-user_forms .select2-container--default .select2-selection--multiple .select2-selection__choice__display{
    padding:0
}
.custom-user_forms  .select2-container--default .select2-selection--multiple{
	border-radius:8px;
}
.custom-user_forms .select2-container--default .select2-selection--multiple {
    padding: 6px 12px;
}

.custom-user_forms .select2-container .select2-search--inline .select2-search__field {
    height: auto;
}
.custom-user_forms .select2-container .select2-search--inline .select2-search__field::placeholder{
    color:#fff;
    font-size:16px;
}

.custom-user_forms .select2-container .select2-selection--multiple .select2-selection__rendered {
    display: inline-flex;
    gap: 8px;
    overflow: auto;
}

.custom-user_forms .select2-container--default .select2-selection--multiple .select2-selection__clear {
    display: none;
}

/* select 2 css */
.custom-user_forms .select2-container{
    margin:0 0 18px;
}
.select2-container--default.select2-container--focus .select2-selection--multiple,.select2-container .select2-selection--multiple {
  border:  2px solid #7986CB;
   background: transparent;

}
.custom-user_forms .select2-container--default .select2-selection--multiple {
    height: 40px;
    display: flex;
    align-items: center;
}

.custom-user_forms .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 0;
}
.custom-user_forms .select2-container .select2-search--inline .select2-search__field {
    height: 30px;
}
.select2-dropdown {
    background-color: #211a1d;
    border: 1px solid #7986cb;
 
}
.select2-container--default .select2-results__option--selected{
    background-color: #060405;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
    background-color:#1c9978;
}
/* edit-profile */
.user-avatar {
    display: flex;
    justify-content: space-between;
	padding:0 16px;
}

.user-avatar  .user-name {
    width: 70%;
}
.form_card {
    padding: 16px;
    background: #393D56;
    border-radius: 16px;
}
.add-icon, .close-icon{
	/* Relative to this stylesheet's URL (themes/... -> ../../uploads/...):
	   survives the /dev-site/ -> root migration without edits. */
	background:url(../../uploads/2026/01/add-icon.svg) no-repeat center center;
	height:18px;
	width:18px;
	display:inline-block;
	    background-size: contain;
}
.add-file-card label {
    display: flex;
    align-items: center;
    justify-content: start;
    padding-left: 16px;
    gap: 16px;
}
.close-icon{
	background:url(../../uploads/2026/01/cross.svg)  no-repeat center center;
}
.file_input{
	position:absolute;
	opacity:0;
	visibility:hidden;
	z-index:-2
}
.add-file-group .add-file-card label {
    display: flex;
    align-items: center;
    gap: 16px;
}
.add-file-group .add-file-card {padding-left: 16px;
	padding-top: 8px;
}
.add-profile-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 16px;
}

.add-profile-group .add-file-card {
    padding-left: 16px;
}

.add-profile-group .add-file-card label {
    display: flex;
    align-items: center;
    gap: 16px;
}
.add-profile-group .image-preview img {
    max-height: 150px;
    width: 100%;
    object-fit: cover;
}

.add-profile-group .image-preview img {
    border-radius: 8px;
}
.form-group label{
	font-size:12px;
	color:#D7D9D7
}
.social_row {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    justify-content: space-between;
}

.social_row > div>first-of-type {
    width: 100%;
}

.social_row .form-group {
    width: 48%;
}
.form_card .card_head{
		display:flex;
		align-items:center;
		justify-content:space-between	
}
.card_head .card_title{
font-weight: 400;
font-size: 14px;
line-height: 20px;
letter-spacing: 0%;
vertical-align: middle;
color:#FCFAF9
}
.upcoming_container {
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.upcoming_container .add-file-card{
	margin: 0 0 16px;
}
.change_password_card{
	margin-top:32px;
}

.custom_link {
    color: #D7D9D7;
    text-decoration: underline !important;
}
.custom_link:hover, .custom_link:focus{
	color:#98A6D4;
}

/*profile tabs*/

.profile-tab.active {
    border-color: #000;
    font-weight: 600;
}

#profiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.profile-card {
    text-align: center;
}
.avatar-thumb img {
    height: 104px;
    width: 104px;
    object-fit: cover;
    border-radius: 100px;
}
.stories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
}

.stories-grid img {
    width: 100%;
	aspect-ratio: 2 / 1;
    object-fit: cover;
}

.stories-grid .story-card {
    flex: 0 0 48%;
}
/* form-errors */
.input-error {
  color: red;
    font-size: 12px;
    display: block;
    margin-top: 4px;
    position: absolute;
 top: -8px;
    right: 0;
}

.error {
    border-color: red !important;
}

#password-strength {
       position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
}
/* single-story-page-reviews */
.glsr-default .glsr-review {
    background: var(--e-global-color-d77e925);
    padding: 32px;
    border-radius: 16px;
    position: relative;
    gap: 0;
    font-family: var(--tt-font-primary);
}

/* "Show more" link — dark green
   Plugin renders: <span class="glsr-read-more"><a href="#">…show more</a></span>
   Both selectors needed: span carries the "…" pseudo-element, anchor carries the text. */
.glsr-default .glsr-review .glsr-read-more,
.glsr-default .glsr-review .glsr-read-more a {
    color: var(--tt-color-green);
}

.glsr-review-title {
    order: 2;
}

.glsr-default .glsr-review-rating {
    order: 1;
}

.glsr-default .glsr-review-date {
    order: 2;
    color: var(--e-global-color-9817355);
    font-size: var(--e-global-typography-f531475-font-size);
    font-style: italic;
}

.glsr-default .glsr-review-content {
    order: 4;
}

.glsr-default .glsr-review-author {
    order: 5;
    position: absolute;
    right: 32px;
    top: 32px;
}

.glsr-default .glsr-review-title {
    order: 3;
    margin-top: 16px;
    margin-bottom: 8px;
}

.glsr-default .glsr-review-title h4 {
    font-weight: bold;
    font-size: var(--e-global-typography-1545c02-font-size);
    letter-spacing: -0.5px;
}
select.custom-input_style option {
    background: #000;
}
.author_profile img {
    border-radius: 100px;
    height: 104px;
    width: 104px;
    border: 2px solid var( --e-global-color-bdb6943 );
    object-fit: cover;
}
.glsr-default .glsr-form-success, .elementor-message-success {
    background: var(--glsr-form-success);
    border-radius: 8px;
    padding: 10px;
    width: fit-content;
    margin: 20px auto auto;
    color: #fff !important;
}
.elementor-message-success:before{
        filter: brightness(0) invert(1);
}
.saved_list > li {
    background: #393d56;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.saved_list > li span.deleteStoryBtn{
    display:inline-block;
    height:18px;
    width:18px;
}
/* scroll */
.about-scroll-section{
	scroll-margin-top: 100px;
}
/* header-login-btn */
.headerMyaccountBtn .elementor-item{
	display:none;
}
.headerMyaccountBtn .btn{
        background-color: transparent;
    align-self: flex-start;
    font-family: var(--e-global-typography-f1b8f97-font-family), Sans-serif;
    font-size: var(--e-global-typography-f1b8f97-font-size);
    font-weight: var(--e-global-typography-f1b8f97-font-weight);
    line-height: var(--e-global-typography-f1b8f97-line-height) !important;
    background-image: linear-gradient(90deg, var(--e-global-color-511ec2d) 0%, #EBEC57 100%);
    color: var(--e-global-color-b605ef5);
    padding: 12px 32px 12px 32px !important;
    border-radius: 8px 8px 8px 8px;
    display: block;
	text-align:center;
}
.headerMyaccountBtn .btn:hover{
	padding: 12px 32px 12px 32px !important;
	color: var(--e-global-color-text);
}
/* My-Profile variant has a white background — keep its text dark on hover
   so it stays readable (only the gradient "Become a creator" buttons
   turn white on hover). */
.logged-in .headerMyaccountBtn .btn.btn-my-profile:hover{
	color: var(--e-global-color-b605ef5);
}
/* Inner wrapper for the header button shortcode output. Always rendered
   (even for single-button Creator/Guest cases) so markup stays consistent.
   For Player, this is what places the two buttons side-by-side with a gap. */
.headerMyaccountBtn-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
/* Every button gets a small horizontal margin. With two buttons (Player case)
   this produces a visible gap between them. With one button (Creator/Guest)
   the margin is harmless. Uses !important because Elementor's own nav-item
   CSS sets margin:0 on anchors at higher specificity. */
.headerMyaccountBtn .btn {
    margin-left: 6px !important;
    margin-right: 6px !important;
}
/* White background for the "My Profile" variant. Replaces the old
   [href*="/profile-page/"] attribute selector that broke after the URL
   refactor (/profile-page/ → /my-profile/). */
.logged-in .headerMyaccountBtn .btn.btn-my-profile{
    background:var( --e-global-color-6333151 );
}
@media(max-width:1024px){
	.logged-in .headerMyaccountBtn .btn.btn-my-profile{
    background-image: linear-gradient(90deg, var(--e-global-color-511ec2d) 0%, #EBEC57 100%);
}
	.headerMyaccountBtn{
		padding:10px !important;
	}
}
/* custom-select-css */
.custom-select2 .select2-container {
  width: 100% !important;
}

.custom-select2 .select2-selection {
  height: 40px; /* adjust as needed */
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius:8px;
  background-color:var(--e-global-color-primary);
  border-color:var(--e-global-color-bdb6943);
  padding:0 6px;
  border-width:2px;
}

/* ────────────────────────────────────────────────────────────────────
   .tt-select3 — Standard styled select wrapper

   USED BY filter UIs across the site:
   • Story Library filters → applied via Elementor "Custom CSS Class"
     field on each JetSmartFilters select widget.
   • Creators filter → set in PHP shortcode (twist-tales-site-helpers.php)
     on the <span> wrapper around each <select>.

   The class sits on the WRAPPER (not on the <select> itself) so we can
   render the custom ::after arrow on top. Works for both branches:

   (A) Native HTML <select>: native arrow is hidden via appearance:none,
       our ::after renders the arrow on top.
   (B) Select2-enhanced <select>: Select2's internal `b` triangle is
       hidden, our ::after renders on top of the Select2 wrapper.

   Both branches share identical visual output: page-bg fill, green
   border (--tt-color-green), 17px regular text, grey ▼ arrow on the
   right padded by --tt-space-4.

   When updating the filter look, edit ONLY this block — both filters
   inherit automatically.
   ──────────────────────────────────────────────────────────────────── */

.tt-select3 {
	position: relative;
	display: block;
	font-family: var(--tt-font-primary);
}

/* Custom dropdown arrow — sits above both native and Select2 UIs. */
.tt-select3::after {
	content: '▼';
	position: absolute;
	right: var(--tt-space-4);
	top: 50%;
	transform: translateY(-50%);
	color: var(--tt-color-text-mute);
	pointer-events: none;
	font-size: var(--tt-text-sm);
	z-index: 2;
	line-height: 1;
}

/* (A) Native <select> branch ──────────────────────────────────────── */
.tt-select3 > select {
	width: 100%;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding: var(--tt-space-3) var(--tt-space-10) var(--tt-space-3) var(--tt-space-4);
	background: var(--tt-color-bg);
	border: var(--tt-border-w-md) solid var(--tt-color-green);
	border-radius: var(--tt-radius-md);
	color: var(--tt-color-text);
	font-family: inherit;
	font-size: var(--tt-text-base);
	font-weight: var(--tt-weight-regular);
	line-height: 1.4;
	height: var(--tt-filter-h);
	cursor: pointer;
	outline: none;
	transition: border-color var(--tt-transition-base), background var(--tt-transition-base);
}
.tt-select3 > select:hover { border-color: var(--tt-color-green-lt); }
.tt-select3 > select:focus {
	border-color: var(--tt-color-green-lt);
	background: var(--tt-alpha-green-06);
}
.tt-select3 > select option {
	background: var(--tt-color-bg);
	color: var(--tt-color-text);
}

/* (B) Select2-enhanced branch ─────────────────────────────────────── */
.tt-select3 .select2-container--default .select2-selection--single {
	background: var(--tt-color-bg);
	border: var(--tt-border-w-md) solid var(--tt-color-green);
	border-radius: var(--tt-radius-md);
	box-sizing: border-box;
	height: var(--tt-filter-h);
	display: flex;
	align-items: center;
	transition: border-color var(--tt-transition-base);
}
.tt-select3 .select2-container--default .select2-selection--single:hover {
	border-color: var(--tt-color-green-lt);
}
.tt-select3 .select2-container--default.select2-container--open .select2-selection--single,
.tt-select3 .select2-container--default.select2-container--focus .select2-selection--single {
	border-color: var(--tt-color-green-lt);
}
.tt-select3 .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--tt-color-text) !important;
	line-height: 1.4;
	padding: 0 var(--tt-space-10) 0 var(--tt-space-4);
	font-size: var(--tt-text-base);
	font-weight: var(--tt-weight-regular);
}
/* Hide Select2's internal b-triangle — our ::after takes over. */
.tt-select3 .select2-container--default .select2-selection--single .select2-selection__arrow {
	display: none;
}

@media (max-width: 720px) {
	.tt-select3 > select,
	.tt-select3 .select2-container--default .select2-selection--single .select2-selection__rendered {
		padding-left: var(--tt-space-3);
		padding-right: var(--tt-space-8);
	}
	.tt-select3::after { right: var(--tt-space-3); }
}

.select2-container--default .select2-selection--single .select2-selection__arrow {

    top: 6px;
    right: 6px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--e-global-color-6333151) transparent transparent transparent;
    
}
.select2-container--default .select2-selection--single .select2-selection__rendered, .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--e-global-color-6333151) !important;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color:transparent transparent var(--e-global-color-6333151) transparent
}
textarea::placeholder, input::placeholder{
color: var(--e-global-color-6333151) !important;
opacity:1 !important;
}
/* Sign In nav link — white default, green on hover, matches all other nav items */
.menu-item--signin a,
.menu-item--signin .elementor-item {
    color: #ffffff !important;
}
.menu-item--signin a:hover,
.menu-item--signin .elementor-item:hover,
.menu-item--signin a:focus,
.menu-item--signin .elementor-item--active {
    color: #1D9978 !important;
}

/* ── Mobile menu (Elementor Nav-Menu Dropdown) — dark theme to match header.
   The dropdown ships with a cream background (rgb 252,250,249) which makes
   all menu links (white text from theme) invisible. Match header bg-black. */
.elementor-nav-menu--dropdown {
    background-color: var(--tt-color-bg-black, #060405) !important;
    margin: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.elementor-nav-menu--dropdown .menu-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.elementor-nav-menu--dropdown .menu-item:last-child {
    border-bottom: none;
}
.elementor-nav-menu--dropdown .elementor-item {
    color: var(--tt-color-text, #FCFAF9) !important;
    padding: 14px 22px !important;
    font-size: 15px;
}
.elementor-nav-menu--dropdown .elementor-item:hover,
.elementor-nav-menu--dropdown .elementor-item:focus {
    background-color: rgba(255,255,255,0.04);
}

/* "My Profile" (logged-in state) — strip the desktop/tablet pill styling
   inside the mobile dropdown so it visually matches the regular plain-text
   menu items. Scoped to --dropdown only; desktop white-pill + tablet gradient
   stylings (lines 1560/1564) remain untouched outside the dropdown. */
.elementor-nav-menu--dropdown .headerMyaccountBtn .btn.btn-my-profile {
    background: transparent !important;
    background-image: none !important;
    border-radius: 0 !important;
    padding: 14px 22px !important;
    margin: 0 !important;
    color: var(--tt-color-text, #FCFAF9) !important;
    font-size: 15px !important;
    font-weight: 600;
    text-align: left !important;
    line-height: 1.4;
}
.elementor-nav-menu--dropdown .headerMyaccountBtn .btn.btn-my-profile:hover {
    background-color: rgba(255,255,255,0.04) !important;
    color: var(--tt-color-text, #FCFAF9) !important;
}

.twga-author-inline { display: inline-flex; gap: 4px; }

/* Fix JetEngine Load More card image overflow */
.jet-listing-grid__item { position: relative; }
.gameStory-card { position: relative !important; }

/* ── CAST SECTION HEADER ── */
.cast-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  padding: 0 20px;
}
.cast-section-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #FCFAF9;
  margin: 0 0 12px;
}
.cast-section-sub {
  font-size: 18px;
  font-weight: 700;
  color: #74BEAB;
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}
.cast-section-desc {
  font-size: 16px;
  color: #9A9399;
  line-height: 1.7;
  margin: 0;
}

/* ── CAST CARD BODY ── */
.cast-role {
  display: inline-block;
  background: rgba(29,153,120,0.12);
  border: 1px solid rgba(29,153,120,0.3);
  color: #74BEAB;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.cast-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.cast-meta-item {
  font-size: 12px;
  font-weight: 600;
  color: #98A6D4;
}
.cast-meta-divider {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}
.cast-desc {
  font-size: 13px;
  color: #D7D9D7;
  line-height: 1.65;
  margin: 0 0 16px;
}
.cast-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cast-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #9A9399;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.cast-link:hover {
  border-color: rgba(29,153,120,0.4);
  color: #74BEAB;
}

/* ── CREATOR CARD — AVATAR IMAGE FIX ── */
.jet-listing-dynamic-image__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
} */
/* ── CREATOR META LINE ──────────────────────────────────────────────────────
   Renders on the JetEngine creator card (listing) and in the Explore Other
   Creators section of portfolio pages. Output by twist_render_meta_line() in
   functions.php, exposed to JetEngine via the [user_meta_line] shortcode.

   Two render modes:
   - Both role_label + availability → .meta-combo (combo pill, two zones)
   - Only role_label                → .role-pill standalone (fallback)
   ─────────────────────────────────────────────────────────────────────────── */

.creator-meta-line {
  margin-bottom: 10px;
}

/* ── Role pill (standalone fallback, used when no availability is set) ── */
.role-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.role-pill--writer {
  background: rgba(116, 190, 171, 0.18);
  color: #74BEAB;
  border-color: rgba(116, 190, 171, 0.30);
}
.role-pill--voice_actor {
  background: rgba(235, 156, 10, 0.18);
  color: #EB9C0A;
  border-color: rgba(235, 156, 10, 0.35);
}
.role-pill--streamer {
  background: rgba(121, 134, 203, 0.18);
  color: #7986CB;
  border-color: rgba(121, 134, 203, 0.35);
}

/* Combo: role pill + status — visually identical to the creator card
   (.tt-card-creator__status). Role + dot colors are driven by the
   --profile-role-color injected on the .profile wrapper, so every role
   matches the card without per-role overrides. */
.meta-combo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  line-height: 1;
}
.meta-combo__role {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: var(--tt-text-sm);
  font-weight: var(--tt-weight-semibold);
  color: var(--profile-role-color);
  background: var(--profile-role-color-bg, var(--tt-alpha-white-07));
  border: 1px solid var(--profile-role-color);
  white-space: nowrap;
}
.meta-combo__divider { display: none; }
.meta-combo__avail {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: var(--tt-text-sm);
  font-weight: var(--tt-weight-regular);
  color: var(--tt-color-text-white);
  white-space: nowrap;
}
.meta-combo__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 6px;
  background: var(--profile-role-color);
} /* gray — dimmed */

/* ── SHARED CREATOR CARD STYLES ─────────────────────────────────────────────
   Availability badge — standalone white-outline pill used only in the portfolio
   hero detail zone (where the role is already established in the hero above).
   Combo pill handles listing + explore; this handles the standalone case.
   ─────────────────────────────────────────────────────────────────────────── */
.avail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    margin-top: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: #FCFAF9;
}

/* Status-coded dot — the single status signal */
.avail-badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: #D7D9D7; }
.avail-badge.available     .avail-badge-dot { background: #6DC531; } /* green — go */
.avail-badge.open          .avail-badge-dot { background: #98A6D4; } /* lavender — receptive */
.avail-badge.in-project    .avail-badge-dot { background: #EBEC57; } /* yellow — busy */
.avail-badge.not-available .avail-badge-dot { background: #D7D9D7; } /* gray — dimmed */

/* ── CREATOR CARD — WRITER GENRE TAGS ── */
/* Override wherever .genre-badge is defined (JetEngine/Elementor) —
   green to match the Writer role label. */
.genre-badge {
  display: inline-block;
  background: #74BEAB !important;
  color: #FFFFFF;
  border-radius: 20px;
  padding: 0px 10px;
  margin: 0px 0px 0px 5px;
  font-size: 14px;
  font-weight: 600;
}

/* ── CREATOR CARD — VOICE ACTOR LANGUAGE TAGS ── */
/* Same pill shape as .genre-badge — orange to match the Voice Actor role label. */
.lang-badge {
  display: inline-block;
  background: #EB9C0A;
  color: #FFFFFF;
  border-radius: 20px;
  padding: 0px 10px;
  margin: 0px 0px 0px 5px;
  font-size: 14px;
  font-weight: 600;
}

/* ── CREATORS PAGE — STICKY FILTER BAR ── */
.creators-filter-bar {
  position: sticky;
  top: 68px;
  z-index: 90;
  background: var(--e-global-color-primary, #211A1D);
  padding: 12px 0;
}

/* Flatten nested containers into one centred row */
.creators-filter-bar > .elementor-widget-wrap,
.creators-filter-bar > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.creators-filter-bar .e-con,
.creators-filter-bar .elementor-widget {
  width: auto !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   BLOG POST — CONTENT BLOCK SYSTEM
   ──────────────────────────────────────────────────────────────────────────
   Styles the 10 content-block types used inside blog post templates.
   Scope: the post body only — applies to the Elementor Text Editor widget
   wrapped in <div class="twist-content">…</div>. Everything outside
   .twist-content is untouched, so this cannot leak into the rest of the
   site (author box, sidebar, related posts, footer CTAs — all unaffected).

   Usage in a post:
     <div class="twist-content">
       <p class="twist-lead">…opening paragraph…</p>
       <div class="twist-pullquote">
         <blockquote>…</blockquote>
         <cite>— Source</cite>
       </div>
       <h2>Section heading</h2>
       <p>Body prose…</p>
       <div class="twist-expert-card">…</div>
       <div class="twist-callout">…</div>
       <div class="twist-callout twist-callout--warning">…</div>
       <div class="twist-callout twist-callout--info">…</div>
       <div class="twist-takeaways">…</div>
       <div class="twist-inline-cta">…</div>
       <figure class="twist-figure">…</figure>
       <hr class="twist-divider">
     </div>

   All values use var(--tt-*) tokens — single source of truth in :root.
   ══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   BLOG SINGLE POST — Header (title + share-bar + featured image)
   Shortcode: [twist_blog_post_header]
   ═══════════════════════════════════════════════════════════════════ */
.twist-blog-header {
    max-width: var(--tt-container-page);
    margin: 0 auto;
    font-family: var(--tt-font-primary);
    color: var(--tt-color-text);
}
.twist-blog-header__title {
    font-size: var(--tt-text-h1);
    font-weight: var(--tt-weight-bold);
    line-height: var(--tt-leading-tight);
    letter-spacing: var(--tt-tracking-tight);
    color: var(--tt-color-text);
    margin: 0 auto var(--tt-space-10);
    text-align: center;
}
.twist-blog-header__share-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--tt-space-3);
    margin: 0 0 var(--tt-space-8);
}
.twist-blog-header__share-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: var(--tt-text-base);
    font-weight: var(--tt-weight-bold);
    color: var(--tt-color-text);
}
.twist-blog-header__share-icons {
    display: flex;
    gap: var(--tt-space-2);
    flex-wrap: wrap;
}
.twist-blog-header__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--tt-radius-md);
    background: var(--tt-color-bg-card);
    border: 1px solid var(--tt-alpha-white-07);
    color: var(--tt-color-green);
    text-decoration: none;
    transition: background var(--tt-transition-base), color var(--tt-transition-base), transform var(--tt-transition-fast);
}
.twist-blog-header__share-btn:hover {
    background: var(--tt-color-bg-chip);
    transform: translateY(-2px);
    color: var(--tt-color-green-lt);
}
.twist-blog-header__share-btn--copy.is-copied {
    background: var(--tt-color-green);
    color: var(--tt-color-bg);
}
.twist-blog-header__image {
    /* Cover sits first in the header (above the title). Height is
       clamped so it stays a banner, never a full-screen image. */
    margin: 0 0 var(--tt-space-8);
    border-radius: var(--tt-radius-xl);
    overflow: hidden;
    background: var(--tt-color-bg-card);
    height: clamp(260px, 30vw, 420px);
}
.twist-blog-header__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.twist-blog-header__image--portrait  img { object-position: center top; }
.twist-blog-header__image--landscape img { object-position: center center; }
.twist-blog-header__image--square    img { object-position: center 30%; }

@media (max-width: 768px) {
    .twist-blog-header__title {
        font-size: var(--tt-text-2xl);
        margin: 0 0 var(--tt-space-8);
    }
    .twist-blog-header__share-btn { width: 36px; height: 36px; }
}

/* ─── Base container — everything below scopes under this ─── */
.twist-content {
  max-width: var(--tt-container-page);
  margin: 0 auto;
  font-size: var(--tt-text-body);
  font-weight: var(--tt-weight-regular);
  color: var(--tt-color-text);
  line-height: var(--tt-leading-relaxed);
}

/* ─── Block 1 · Lead paragraph (= body prose, no special pump) ─── */
.twist-content .twist-lead {
  font-size: var(--tt-text-body);
  font-weight: var(--tt-weight-regular);
  line-height: var(--tt-leading-relaxed);
  color: var(--tt-color-text);
  margin-bottom: var(--tt-space-4);
}

/* ─── Block 2 · Prose (default <p>) ────────────────────────── */
.twist-content p {
  font-size: var(--tt-text-body);
  line-height: var(--tt-leading-relaxed);
  color: var(--tt-color-text);
  margin-bottom: var(--tt-space-4);
}
.twist-content p strong {
  font-weight: var(--tt-weight-bold);
  color: var(--tt-color-text-white);
}
.twist-content p em {
  font-style: italic;
  /* color inherits — was --tt-color-green-lt which conflicted with link-color */
}
.twist-content a {
  color: var(--tt-color-green);
  text-decoration: none;
  border-bottom: 1px solid var(--tt-alpha-green-30);
  transition: color var(--tt-transition-base), border-color var(--tt-transition-base);
}
.twist-content a:hover {
  color: var(--tt-color-green-lt);
  border-bottom-color: var(--tt-color-green-lt);
}

/* ─── Block 3 · Headings (H2 with gradient accent, H3 plain) ─
   Sizes come from the global heading element rules — deliberately
   no font-size here, so article headings track h2/h3 site-wide,
   including the ≤1024px compact sizes. */
.twist-content h2 {
  font-weight: var(--tt-weight-bold);
  line-height: var(--tt-leading-tight);
  color: var(--tt-color-text-white);
  margin: var(--tt-space-12) 0 var(--tt-space-5);
  letter-spacing: var(--tt-tracking-tight);
  position: relative;
  padding-left: var(--tt-space-5);
}
.twist-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: var(--tt-border-w-lg);
  background: var(--tt-gradient-h2-accent);
  border-radius: var(--tt-radius-xs);
}
.twist-content h3 {
  font-weight: var(--tt-weight-bold);
  line-height: var(--tt-leading-snug);
  color: var(--tt-color-text-white);
  margin: var(--tt-space-8) 0 var(--tt-space-3);
}

/* ─── Block 4 · Pull quote ─────────────────────────────────── */
.twist-content .twist-pullquote {
  margin: var(--tt-space-10) 0;
  padding: var(--tt-pullquote-padding);
  background: var(--tt-pullquote-bg);
  border-left: var(--tt-pullquote-border);
  border-radius: 0 var(--tt-radius-lg) var(--tt-radius-lg) 0;
  position: relative;
}
.twist-content .twist-pullquote::before {
  content: '';
  position: absolute;
  top: var(--tt-space-5);
  left: var(--tt-space-5);
  width: 56px;
  height: 56px;
  background-color: var(--tt-color-green-lt);
  opacity: 0.35;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M0 216C0 149.7 53.7 96 120 96h8c17.7 0 32 14.3 32 32s-14.3 32-32 32h-8c-30.9 0-56 25.1-56 56v8h64c35.3 0 64 28.7 64 64v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V216zm256 0c0-66.3 53.7-120 120-120h8c17.7 0 32 14.3 32 32s-14.3 32-32 32h-8c-30.9 0-56 25.1-56 56v8h64c35.3 0 64 28.7 64 64v64c0 35.3-28.7 64-64 64H320c-35.3 0-64-28.7-64-64V216z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M0 216C0 149.7 53.7 96 120 96h8c17.7 0 32 14.3 32 32s-14.3 32-32 32h-8c-30.9 0-56 25.1-56 56v8h64c35.3 0 64 28.7 64 64v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V216zm256 0c0-66.3 53.7-120 120-120h8c17.7 0 32 14.3 32 32s-14.3 32-32 32h-8c-30.9 0-56 25.1-56 56v8h64c35.3 0 64 28.7 64 64v64c0 35.3-28.7 64-64 64H320c-35.3 0-64-28.7-64-64V216z'/></svg>") no-repeat center / contain;
}
.twist-content .twist-pullquote blockquote {
  font-size: var(--tt-text-lead);
  line-height: 1.45;
  font-weight: var(--tt-weight-regular);
  color: var(--tt-color-text);
  padding-left: 80px;
  font-style: italic;
  margin: 0 0 var(--tt-space-3);
  border: 0;
}
.twist-content .twist-pullquote cite {
  display: block;
  padding-left: 80px;
  font-size: var(--tt-text-sm);
  font-weight: var(--tt-weight-semibold);
  color: var(--tt-color-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-style: normal;
}

/* ─── Block 5 · Expert card ────────────────────────────────── */
.twist-content .twist-expert-card {
  margin: 36px 0;
  padding: var(--tt-space-6);
  background: var(--tt-color-bg-card-alt);
  border-radius: var(--tt-radius-lg);
  border: var(--tt-border-subtle);
  display: flex;
  gap: var(--tt-space-5);
  align-items: center;
}
.twist-content .twist-expert-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--tt-color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-color-text-white);
  font-weight: var(--tt-weight-bold);
  font-size: 22px;
  flex-shrink: 0;
  border: var(--tt-border-w-md) solid var(--tt-color-text-white);
}
.twist-content .twist-expert-body { flex: 1; min-width: 0; }
.twist-content .twist-expert-role {
  font-size: var(--tt-text-xs);
  font-weight: var(--tt-weight-bold);
  color: var(--tt-color-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--tt-space-1);
}
.twist-content .twist-expert-name {
  font-size: var(--tt-text-lead);
  font-weight: var(--tt-weight-bold);
  color: var(--tt-color-text-white);
  margin-bottom: 6px;
  line-height: var(--tt-leading-tight);
}
.twist-content .twist-expert-desc {
  font-size: var(--tt-text-md);
  color: var(--tt-color-text-mute);
  line-height: 1.5;
  margin-bottom: var(--tt-space-3);
}
.twist-content .twist-expert-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.twist-content .twist-expert-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: transparent;
  border: 1.5px solid var(--tt-color-green);
  border-radius: var(--tt-radius-2xl);
  color: var(--tt-color-green);
  font-size: var(--tt-text-sm);
  font-weight: var(--tt-weight-semibold);
  text-decoration: none;
  transition: all var(--tt-transition-fast);
}
.twist-content .twist-expert-links a:hover {
  background: var(--tt-color-green);
  color: var(--tt-color-text-white);
}

/* ─── Block 6 · Callout (default green + warning + info) ───── */
.twist-content .twist-callout {
  margin: var(--tt-space-8) 0;
  padding: 20px var(--tt-space-6);
  background: var(--tt-callout-default-bg);
  border: var(--tt-callout-default-border);
  border-radius: var(--tt-callout-radius);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--tt-space-4);
  align-items: start;
}
.twist-content .twist-callout-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tt-alpha-green-15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-color-green-lt);
  flex-shrink: 0;
  font-weight: var(--tt-weight-bold);
}
.twist-content .twist-callout-body { flex: 1; }
.twist-content .twist-callout-label {
  font-size: var(--tt-text-base);
  font-weight: var(--tt-weight-bold);
  color: var(--tt-color-green-lt);
  text-transform: uppercase;
  letter-spacing: var(--tt-tracking-wider);
  margin-bottom: var(--tt-space-2);
  line-height: 1.2;
}
.twist-content .twist-callout-text {
  font-size: var(--tt-text-body);
  line-height: var(--tt-leading-relaxed);
  color: var(--tt-color-text);
  margin: 0 !important;
}
/* Warning variant (orange) */
.twist-content .twist-callout--warning {
  background: var(--tt-callout-warning-bg);
  border-color: var(--tt-alpha-accent-30);
}
.twist-content .twist-callout--warning .twist-callout-icon {
  background: var(--tt-alpha-accent-15);
  color: var(--tt-color-accent);
}
.twist-content .twist-callout--warning .twist-callout-label { color: var(--tt-color-accent); }
/* Info variant (periwinkle blue) */
.twist-content .twist-callout--info {
  background: var(--tt-callout-info-bg);
  border-color: var(--tt-alpha-blue-30);
}
.twist-content .twist-callout--info .twist-callout-icon {
  background: var(--tt-alpha-blue-15);
  color: var(--tt-color-blue);
}
.twist-content .twist-callout--info .twist-callout-label { color: var(--tt-color-blue); }

/* CTA block appended inside a callout (e.g. "Submit Blogpost Request") */
.twist-content .twist-callout-cta {
  margin-top: var(--tt-space-4);
  padding-top: var(--tt-space-4);
  border-top: var(--tt-border-subtle);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--tt-space-3);
}
.twist-content .twist-callout-cta-line {
  font-size: var(--tt-text-sm);
  color: var(--tt-color-text-mute);
  font-weight: var(--tt-weight-semibold);
  line-height: var(--tt-leading-snug);
}

/* ─── Block 7 · Key takeaways (numbered cards) ─────────────── */
.twist-content .twist-takeaways {
  margin: var(--tt-space-10) 0;
  padding: 28px var(--tt-space-8);
  background: var(--tt-color-bg-card);
  border-radius: var(--tt-radius-lg);
  border: var(--tt-border-subtle);
}
.twist-content .twist-takeaways-eyebrow,
.twist-content .twist-takeaways-label {
  font-size: var(--tt-text-xs);
  font-weight: var(--tt-weight-bold);
  color: var(--tt-color-green-lt);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--tt-space-1);
}
.twist-content .twist-takeaways-title {
  font-size: var(--tt-text-h3);
  font-weight: var(--tt-weight-bold);
  color: var(--tt-color-text-white);
  margin-bottom: var(--tt-space-5);
  line-height: 1.3;
}
.twist-content .twist-takeaways ol,
.twist-content .twist-takeaways ul {
  list-style: none !important;
  counter-reset: takeaway;
  padding: 0 !important;
  padding-inline-start: 0 !important;
  margin: 0 !important;
}
.twist-content .twist-takeaways li {
  counter-increment: takeaway;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
  font-size: var(--tt-text-body);
  line-height: var(--tt-leading-relaxed);
  color: var(--tt-color-text);
  list-style: none;
}
.twist-content .twist-takeaways li::before {
  content: counter(takeaway);
  position: absolute;
  left: 0;
  /* Optical centring on the first line's cap-height.
     Pure line-box centring (calc above) puts the badge ~3px too high
     because Poppins's descender pulls visible text below the line-box
     midpoint. The +3px offset corrects for that font-metric bias. */
  top: calc((var(--tt-text-body) * var(--tt-leading-relaxed) - 28px) / 2 + 3px);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tt-gradient-nav);
  color: var(--tt-color-bg);
  font-weight: var(--tt-weight-bold);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.twist-content .twist-takeaways li:last-child { margin-bottom: 0; }

/* ─── Block 8 · Inline CTA (elevated banner with primary btn) ─ */
.twist-content .twist-inline-cta {
  margin: var(--tt-space-8) 0;
  padding: var(--tt-space-6) 28px;
  background: var(--tt-color-bg-card-alt);
  border-radius: var(--tt-radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tt-space-5);
  flex-wrap: wrap;
}
.twist-content .twist-inline-cta-text {
  flex: 1;
  min-width: 200px;
}
.twist-content .twist-inline-cta-label {
  font-size: var(--tt-text-xs);
  font-weight: var(--tt-weight-bold);
  color: var(--tt-color-green-lt);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--tt-space-1);
}
.twist-content .twist-inline-cta-headline {
  font-size: var(--tt-text-h3);
  font-weight: var(--tt-weight-bold);
  color: var(--tt-color-text-white);
  line-height: 1.3;
  margin: 0 !important;
}

/* ─── Block 9 · Image with caption ─────────────────────────── */
.twist-content .twist-figure {
  margin: 36px 0;
}
.twist-content .twist-figure img {
  width: 100%;
  border-radius: var(--tt-radius-lg);
  display: block;
}
.twist-content .twist-figure figcaption,
.twist-content .twist-figure-caption {
  margin-top: 10px;
  padding: 0 4px;
  font-size: var(--tt-text-sm);
  font-style: italic;
  color: var(--tt-color-text-dim);
  line-height: 1.5;
  text-align: center;
}

/* ─── Block 10 · Divider ───────────────────────────────────── */
.twist-content .twist-divider,
.twist-content hr.twist-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tt-alpha-white-07), transparent);
  margin: var(--tt-space-10) 0;
}

/* ─── Responsive (mobile ≤ 768px) ──────────────────────────── */
@media (max-width: 768px) {
  .twist-content .twist-lead            { font-size: var(--tt-text-body); }
  .twist-content h2                     { margin: 36px 0 var(--tt-space-4); }
  .twist-content .twist-pullquote       { padding: 22px var(--tt-space-6); }
  .twist-content .twist-pullquote blockquote { font-size: var(--tt-text-body); padding-left: 60px; }
  .twist-content .twist-pullquote cite  { padding-left: 60px; }
  .twist-content .twist-pullquote::before { width: 40px; height: 40px; left: 14px; }
  .twist-content .twist-expert-card     { flex-direction: column; align-items: flex-start; }
  .twist-content .twist-inline-cta      { flex-direction: column; align-items: stretch; text-align: left; }
  .twist-content .twist-inline-cta .twist-btn { width: 100%; text-align: center; }
  .twist-content .twist-takeaways       { padding: 22px var(--tt-space-6); }
}


/* ═══════════════════════════════════════════════════════════════════
   BLOG SINGLE POST — Author Box (bottom-of-post creator card)
   Migrated from tt-element-styles.php inline <style> on 2026-05-15
   Shortcode: [twist_blog_author_box]
   ═══════════════════════════════════════════════════════════════════ */
.twist-blog-author-box {
    position: relative;
    background: var(--tt-card-bg);
    border: var(--tt-border-subtle);
    border-radius: var(--tt-card-radius);
    overflow: hidden;
    margin: var(--tt-space-12) auto;
    font-family: var(--tt-font-primary);
    color: var(--tt-color-text);
    max-width: var(--tt-container-page);
}
.twist-blog-author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--tt-gradient-nav);
}
.twist-blog-author-box__inner {
    display: flex;
    align-items: flex-start;
    gap: var(--tt-space-6);
    padding: var(--tt-space-6);
    position: relative;
}
.twist-blog-author-box__photo {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    background: var(--tt-color-bg-card-alt);
}
.twist-blog-author-box__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.twist-blog-author-box__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--tt-space-2);
    min-width: 0;
}
.twist-blog-author-box__eyebrow {
    font-size: var(--tt-text-xs);
    font-weight: var(--tt-weight-bold);
    color: var(--tt-color-text-white);
    text-transform: uppercase;
    letter-spacing: var(--tt-tracking-wider);
}
.twist-blog-author-box__name-row {
    display: flex;
    align-items: center;
    gap: var(--tt-space-3);
    flex-wrap: wrap;
}
.twist-blog-author-box__name {
    font-size: var(--tt-text-xl);
    font-weight: var(--tt-weight-bold);
    line-height: var(--tt-leading-tight);
    margin: 0;
}
.twist-blog-author-box__name a {
    color: var(--tt-color-green);
    text-decoration: none;
    transition: color var(--tt-transition-base);
}
.twist-blog-author-box__name a:hover {
    color: var(--tt-color-text-white);
}
.twist-blog-author-box__role {
    display: inline-flex;
    align-items: center;
    padding: var(--tt-chip-padding);
    background: var(--tt-alpha-green-06, rgba(29,153,120,0.12));
    border: 1px solid var(--tt-color-green);
    border-radius: var(--tt-radius-full);
    font-size: var(--tt-text-xs);
    font-weight: var(--tt-weight-semibold);
    color: var(--tt-color-green-lt);
    text-transform: uppercase;
    letter-spacing: var(--tt-tracking-wide);
}
.twist-blog-author-box__headline {
    font-size: var(--tt-text-sm);
    font-weight: var(--tt-weight-semibold);
    color: var(--tt-color-text-white);
    margin: 0;
}
/* .twist-blog-author-box__bio — markup removed from PHP shortcode; rule intentionally omitted */
.twist-blog-author-box__actions {
    margin-top: var(--tt-space-4);
    display: flex;
    gap: var(--tt-space-3);
    flex-wrap: wrap;
    align-items: center;
}
/* "View Portfolio" CTA — FILLED role-color.
   Var-Chain: --author-role-color (Shortcode-injected on outer wrapper,
   per-author, always defined) → --profile-role-color (page-context fallback)
   → --tt-color-green (final dark-green fallback). */
.twist-blog-author-box__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--tt-btn-padding);
    background: var(--author-role-color, var(--profile-role-color, var(--tt-color-green)));
    color: var(--tt-color-bg-black);
    border: none;
    border-radius: var(--tt-btn-radius);
    font-family: var(--tt-font-primary);
    font-size: var(--tt-text-md);
    font-weight: var(--tt-btn-weight);
    letter-spacing: -0.1px;
    text-decoration: none;
    transition: background var(--tt-transition-base), color var(--tt-transition-base), transform var(--tt-transition-fast), box-shadow var(--tt-transition-base), filter var(--tt-transition-base);
}
.twist-blog-author-box__cta:hover {
    color: var(--tt-color-text-white);
    transform: translateY(-1px);
    box-shadow: var(--tt-btn-lift-shadow);
    filter: brightness(1.08);
}
.twist-blog-author-box__actions .twist-follow-btn-wrap,
.twist-blog-author-box__actions .twist-follow-btn {
    vertical-align: middle;
}

@media (max-width: 768px) {
    .twist-blog-author-box__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--tt-space-3);
        padding: var(--tt-space-5) var(--tt-space-4);
    }
    .twist-blog-author-box__photo {
        width: 100px;
        height: 100px;
    }
    .twist-blog-author-box__body {
        align-items: center;
        width: 100%;
    }
    .twist-blog-author-box__name-row { justify-content: center; }
    .twist-blog-author-box__actions {
        flex-direction: column;
        width: 100%;
        justify-content: stretch;
        gap: var(--tt-space-2);
    }
    .twist-blog-author-box__actions > *,
    .twist-blog-author-box__actions .twist-follow-btn-wrap,
    .twist-blog-author-box__actions .twist-follow-btn {
        width: 100%;
    }
    .twist-blog-author-box__cta { width: 100%; }
    .twist-blog-author-box__name { font-size: var(--tt-text-lg); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   ELEMENTOR BUTTON — global hover behavior
   ═══════════════════════════════════════════════════════════════════════════
   Site Settings → Theme Style → Button defines the gradient and colors.
   This rule adds the smooth color transition on hover.
   Per design system: hover changes text from dark → white. Background gradient
   stays identical. No transform, no shadow.
   ═══════════════════════════════════════════════════════════════════════════ */

.elementor-button {
  transition: color var(--tt-transition-base);
}

/* ───────────────────────────────────────────────────────────────────────────
   JetEngine Dynamic Link — global button styling
   ───────────────────────────────────────────────────────────────────────────
   JetEngine's Dynamic Link widget uses .jet-listing-dynamic-link__link
   (not .elementor-button), so Theme Style → Button doesn't reach it.
   This rule gives every Dynamic Link button the canonical primary look:
   green-to-lime gradient, dark text, white text on hover.
   Single source of truth — no per-widget styling needed.
   ─────────────────────────────────────────────────────────────────────────── */

.jet-listing-dynamic-link__link {
  display: inline-block;
  background: linear-gradient(90deg, var(--tt-color-green), var(--tt-color-green-lime));
  color: var(--tt-color-bg);
  padding: 14px 32px;
  border-radius: var(--tt-radius-md);
  font-family: var(--tt-font-primary);
  font-size: var(--tt-text-md);
  font-weight: var(--tt-weight-semibold);
  line-height: 1.4em;
  text-decoration: none;
  transition: color var(--tt-transition-base);
}

.jet-listing-dynamic-link__link:hover,
.jet-listing-dynamic-link__link:hover .jet-listing-dynamic-link__label {
  color: var(--tt-color-text-white);
}


/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD HERO — /my-profile/ top zone
   ═══════════════════════════════════════════════════════════════════════════
   Renders via [tt_dashboard_hero] shortcode (twist-tales-site-helpers.php §10).
   Role-aware: pulls from /inc/profile/dashboard-hero-{role}.php with the
   active user's data. Alt-blue brand-section background, identity block on
   top, stat grid below.

   Stat-grid widths flex per role:
     --stats--6 (Writer / VA)   3-column × 2-row  (Avg.rating, Stories, Blog,
                                                   Followers, Profile views,
                                                   Story plays)
     --stats--3 (Streamer)      3-column × 1-row  (Recommended, Followers,
                                                   Profile views)
     --stats--2 (Player)        2-column · narrow (Stories played,
                                                   Reviews written)

   All values pull from existing tokens — no hardcoded colors, sizes, or
   weights. Only exception: rgba(0,0,0,0.22) on the stat-card surface
   because there's no black-alpha token in the system yet (whites and
   greens have alphas, black doesn't).
   ═══════════════════════════════════════════════════════════════════════════ */

.tt-dash-hero {
  background-color: var(--tt-color-bg-card-alt);
  background-image: radial-gradient(ellipse at top right,
                      var(--tt-alpha-green-lt-18),
                      transparent 70%);
  border-bottom: var(--tt-border-subtle);
  padding: 40px 0 36px;
  color: var(--tt-color-text);
}

.tt-dash-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* ─── Identity block ────────────────────────────────────────────────────── */

.tt-dash-hero__id {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

/* Avatar — 88px circle. Image fills, otherwise gradient bubble with initials. */
/* Avatar — 88px circle. Background matches the page (alt-blue) so any
 * image transparency falls cleanly to the surrounding section. Border
 * color is role-specific: green for Writer / Streamer / Player, orange
 * for Voice Actor (mirrors the public profile templates). */
.tt-dash-hero__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--tt-color-bg-card-alt);
  border: 3px solid var(--tt-color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-color-text-white);
  font-size: var(--tt-text-2xl);
  font-weight: var(--tt-weight-bold);
  line-height: 1;
}

/* Voice Actor — accent border (matches profile-voice-actor.php). */
.tt-dash-hero--voice-actor .tt-dash-hero__avatar {
  border-color: var(--tt-color-accent);
}

.tt-dash-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Initials fallback — gradient background only renders when this
 * modifier class is present (PHP adds it when profile_image_id is empty).
 * Avoids :has() for broader browser support. */
.tt-dash-hero__avatar--empty {
  background: linear-gradient(135deg,
                var(--tt-color-blue-lt),
                var(--tt-color-green-lt));
}

.tt-dash-hero__avatar-initials {
  user-select: none;
}

/* Text column */

.tt-dash-hero__id-text {
  min-width: 0;   /* allows truncation in flex contexts */
}

.tt-dash-hero__role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tt-alpha-white-10);
  padding: 3px 12px;
  border-radius: var(--tt-radius-full);
  font-size: var(--tt-text-xs);
  font-weight: var(--tt-weight-semibold);
  color: var(--tt-color-text);
  letter-spacing: var(--tt-tracking-wide);
  margin-bottom: 8px;
}

.tt-dash-hero__name {
  font-size: var(--tt-text-2xl);
  font-weight: var(--tt-weight-bold);
  line-height: var(--tt-leading-tight);
  margin: 0 0 4px 0;
  color: var(--tt-color-text-white);
  letter-spacing: var(--tt-tracking-tight);
}

.tt-dash-hero__headline {
  color: var(--tt-color-text-mute);
  font-size: var(--tt-text-md);
  line-height: var(--tt-leading-snug);
  margin: 0;
  /* Truncate at one line with ellipsis when too long. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 640px;
}

/* Action buttons column — stacked vertically, right-aligned */

.tt-dash-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.tt-dash-hero .tt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--tt-radius-md);
  font-family: var(--tt-font-primary);
  font-size: var(--tt-text-md);
  font-weight: var(--tt-weight-bold);
  line-height: 1.2;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--tt-transition-base),
              background var(--tt-transition-base);
}
.tt-dash-hero .tt-btn:hover  { transform: translateY(-1px); }
.tt-dash-hero .tt-btn:active { transform: translateY(0); }

.tt-dash-hero .tt-btn--primary {
  background: var(--tt-gradient-primary);
  color: var(--tt-color-bg-black);
}

.tt-dash-hero .tt-btn--secondary {
  background: var(--tt-alpha-white-04);
  color: var(--tt-color-text);
  border: var(--tt-border-subtle);
}
.tt-dash-hero .tt-btn--secondary:hover {
  background: var(--tt-alpha-white-10);
}

/* ─── Stats grid ────────────────────────────────────────────────────────── */

.tt-dash-hero__stats {
  display: grid;
  gap: 12px;
}

/* Writer / VA — 6 stats, 3 cols × 2 rows */
.tt-dash-hero__stats--6 {
  grid-template-columns: repeat(3, 1fr);
}

/* Streamer — 3 stats, single row */
.tt-dash-hero__stats--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Player — 2 stats, narrower so they don't stretch full-width */
.tt-dash-hero__stats--2 {
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: start;
}

.tt-stat {
  background: rgba(0, 0, 0, 0.22);
  border: var(--tt-border-subtle);
  border-radius: var(--tt-radius-md);
  padding: 14px 16px;
  min-width: 0;
}

.tt-stat__label {
  font-size: var(--tt-text-xs);
  font-weight: var(--tt-weight-semibold);
  color: var(--tt-color-text-dim);
  letter-spacing: var(--tt-tracking-wide);
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1.3;
}

.tt-stat__value {
  font-size: var(--tt-text-2xl);
  font-weight: var(--tt-weight-bold);
  color: var(--tt-color-text-white);
  line-height: 1;
  margin-bottom: 4px;
}

.tt-stat__sub {
  font-size: var(--tt-text-xs);
  color: var(--tt-color-text-dim);
  font-weight: var(--tt-weight-regular);
  line-height: 1.3;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .tt-dash-hero { padding: 28px 0; }
  .tt-dash-hero__inner { padding: 0 20px; gap: 20px; }
  .tt-dash-hero__id {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
  }
  .tt-dash-hero__actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .tt-dash-hero__actions .tt-btn { flex: 1; }
  .tt-dash-hero__name { font-size: var(--tt-text-xl); }
  .tt-dash-hero__headline {
    white-space: normal;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tt-dash-hero__stats--6,
  .tt-dash-hero__stats--3 { grid-template-columns: repeat(2, 1fr); }
  .tt-dash-hero__stats--2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .tt-dash-hero__stats--6,
  .tt-dash-hero__stats--3,
  .tt-dash-hero__stats--2 { grid-template-columns: 1fr; }
  .tt-stat__value         { font-size: var(--tt-text-xl); }
}

/* ─── Welcome Slider V2 ───────────────────────────────────────────────── */

.tt-slider-v2 {
  background: var(--tt-color-bg);
  padding: 28px 0;
  border-bottom: var(--tt-border-subtle);
}
.tt-slider-v2__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.tt-slider-v2__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.tt-slider-v2__eyebrow {
  font-size: var(--tt-text-xs);
  color: var(--tt-color-green-lt);
  font-weight: var(--tt-weight-bold);
  letter-spacing: var(--tt-tracking-wider);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.tt-slider-v2__title {
  font-size: var(--tt-text-xl);
  font-weight: var(--tt-weight-bold);
  margin: 0;
}
.tt-slider-v2__progress {
  font-size: var(--tt-text-xs);
  color: var(--tt-color-text-dim);
  font-weight: var(--tt-weight-semibold);
  letter-spacing: var(--tt-tracking-wide);
  text-transform: uppercase;
}
.tt-slider-v2__bar {
  width: 100%;
  height: 4px;
  background: var(--tt-alpha-white-07);
  border-radius: var(--tt-radius-full);
  overflow: hidden;
  margin-bottom: 16px;
}
.tt-slider-v2__bar-fill {
  height: 100%;
  background: var(--tt-gradient-nav);
  border-radius: var(--tt-radius-full);
  transition: width 0.3s;
}
.tt-slider-v2__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tt-slider-v2__card {
  background: var(--tt-color-bg-card);
  border: var(--tt-border-subtle);
  border-radius: var(--tt-radius-xl);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all var(--tt-transition-base);
  position: relative;
  text-decoration: none;
  color: var(--tt-color-text);
}
.tt-slider-v2__card:hover {
  border-color: var(--tt-alpha-green-30);
  transform: translateY(-2px);
}
.tt-slider-v2__card--active {
  border-color: var(--tt-color-green);
}
.tt-slider-v2__card--done {
  background: var(--tt-alpha-green-12);
  border-color: var(--tt-alpha-green-30);
}
.tt-slider-v2__check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tt-color-green);
  color: var(--tt-color-text-white);
  font-size: 13px;
  font-weight: var(--tt-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tt-slider-v2__step {
  font-size: var(--tt-text-xs);
  color: var(--tt-color-green-lt);
  font-weight: var(--tt-weight-bold);
  letter-spacing: var(--tt-tracking-wide);
  text-transform: uppercase;
}
.tt-slider-v2__icon {
  font-size: 28px;
}
.tt-slider-v2__card-title {
  font-size: var(--tt-text-lg);
  font-weight: var(--tt-weight-bold);
  line-height: var(--tt-leading-tight);
  margin: 0;
  color: var(--tt-color-text);
}
.tt-slider-v2__card-sub {
  font-size: var(--tt-text-sm);
  color: var(--tt-color-text-dim);
  margin: 0;
  line-height: var(--tt-leading-snug);
}
.tt-slider-v2__cta {
  margin-top: auto;
  padding-top: 8px;
  color: var(--tt-color-green-lt);
  font-size: var(--tt-text-sm);
  font-weight: var(--tt-weight-bold);
}
.tt-slider-v2__card--done .tt-slider-v2__cta { opacity: 0.6; }
.tt-slider-v2__dismiss {
  margin-top: 14px;
  font-size: var(--tt-text-sm);
  color: var(--tt-color-text-dim);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 0;
  display: block;
  margin-left: auto;
}
.tt-slider-v2__dismiss:hover { color: var(--tt-color-text-mute); }

/* ─── Welcome Slider V2 — Responsive ───────────────────────────────────── */

@media (max-width: 720px) {
  .tt-slider-v2__inner { padding: 0 20px; }
  .tt-slider-v2__cards { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════
 * WELCOME SLIDER — onboarding checklist (consolidated from welcome module)
 *
 * Default green-themed (used on /my-profile/ and inside .profile-player-edit player
 * profile). When rendered inside .profile (creator profile edit-mode), the
 * green tokens get overridden via --profile-role-color at the bottom.
 * ════════════════════════════════════════════════════════════════════ */

/* Container */
.tt-welcome-slider {
    background: var(--tt-alpha-green-06);
    border: var(--tt-border-green);
    border-radius: var(--tt-radius-xl);
    padding: var(--tt-space-6);
    margin-bottom: var(--tt-space-6);
    font-family: var(--tt-font-primary);
    color: var(--tt-color-text);
    position: relative;
}

/* Header — eyebrow + counter + arrows */
.tt-welcome-slider__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--tt-space-4); margin-bottom: var(--tt-space-5); flex-wrap: wrap;
}
.tt-welcome-slider__eyebrow {
    display: inline-flex; align-items: center; gap: var(--tt-space-2);
    font-size: var(--tt-text-sm); font-weight: var(--tt-weight-bold);
    color: var(--tt-color-green-lt); text-transform: uppercase;
    letter-spacing: var(--tt-tracking-wider);
}
.tt-welcome-slider__head-right { display: flex; align-items: center; gap: var(--tt-space-4); }
.tt-welcome-slider__counter {
    display: inline-flex; align-items: center; gap: var(--tt-space-2);
    font-size: var(--tt-text-base); font-weight: var(--tt-weight-semibold);
    color: var(--tt-color-text); letter-spacing: var(--tt-tracking-wide);
}
.tt-welcome-slider__counter-sep { color: var(--tt-alpha-white-30); }

/* Top-right arrow nav — round 32×32 buttons, alpha-tinted default,
   role-color filled on hover. No disabled state (slider is endless). */
.tt-welcome-slider__nav { display: flex; gap: var(--tt-space-2); }
.tt-welcome-slider__arrow {
    width: 32px; height: 32px; border-radius: var(--tt-radius-full);
    background: var(--tt-alpha-white-06); border: 1px solid var(--tt-alpha-white-10);
    color: var(--tt-color-text-white); font-size: var(--tt-text-md);
    font-weight: var(--tt-weight-bold); line-height: 1; cursor: pointer;
    transition: var(--tt-transition-base); font-family: var(--tt-font-primary);
    display: flex; align-items: center; justify-content: center;
}
.tt-welcome-slider__arrow:hover:not([data-disabled]) {
    background: var(--profile-role-color, var(--tt-color-green));
    border-color: var(--profile-role-color, var(--tt-color-green));
    color: var(--tt-color-text-white);
}
.tt-welcome-slider__arrow[data-disabled] {
    opacity: 0.3;
    cursor: default;
}

/* Track + slides */
.tt-welcome-slider__track-wrap { overflow: hidden; }
.tt-welcome-slider__track {
    display: flex; transition: transform var(--tt-transition-slow); will-change: transform;
}
.tt-welcome-slide {
    flex: 0 0 100%; min-width: 0;
    display: grid; grid-template-columns: 48px 1fr;
    gap: var(--tt-space-4); align-items: start;
    padding: var(--tt-space-2) 0;
}
.tt-welcome-slide__num {
    width: 44px; height: 44px; border-radius: var(--tt-radius-full);
    background: var(--tt-alpha-white-04); border: var(--tt-border-subtle);
    color: var(--tt-color-text); font-size: var(--tt-text-base);
    font-weight: var(--tt-weight-bold);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: var(--tt-transition-base);
    margin-top: 2px;
}
.tt-welcome-slide.is-done .tt-welcome-slide__num {
    background: var(--tt-color-green); border-color: var(--tt-color-green);
    color: var(--tt-color-text-white);
}
.tt-welcome-slide__content { min-width: 0; display: flex; flex-direction: column; gap: var(--tt-space-2); }
.tt-welcome-slide__title {
    font-size: var(--tt-text-lg); font-weight: var(--tt-weight-bold);
    color: var(--tt-color-text); line-height: var(--tt-leading-snug);
    margin: 0;
}
.tt-welcome-slide.is-done .tt-welcome-slide__title { color: var(--tt-color-text-mute); }
.tt-welcome-slide__desc {
    font-size: var(--tt-text-base); color: var(--tt-color-text);
    line-height: var(--tt-leading-normal);
}

/* Actions row — CTA-button left, Skip · Dismiss · Done text-links right.
   Both sit below the title/description, on a single line that wraps on narrow viewports. */
.tt-welcome-slide__actions {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: var(--tt-space-3) var(--tt-space-4);
    margin-top: var(--tt-space-2);
}
.tt-welcome-slide__action {
    display: inline-flex; align-items: center; gap: var(--tt-space-1);
    padding: var(--tt-btn-padding-sm); border-radius: var(--tt-btn-radius);
    font-family: var(--tt-font-primary); font-size: var(--tt-text-md);
    font-weight: var(--tt-weight-semibold); text-decoration: none;
    white-space: nowrap; border: 1px solid transparent; cursor: pointer;
    transition: var(--tt-transition-base);
}
/* Single unified button look — ghost-style (transparent BG, role-color
   border + text, role-color-bg fill on hover). 'lime' / 'cta' / 'muted'
   variants from older content versions are no longer rendered. */
.tt-welcome-slide__action.style-ghost {
    background: var(--tt-alpha-green-08); border: var(--tt-border-green);
    color: var(--tt-color-green-lt);
}
.tt-welcome-slide__action.style-ghost:hover { background: var(--tt-alpha-green-15); }
.tt-welcome-slide__action.is-context {
    background: transparent; border: 1px dashed var(--tt-alpha-white-15);
    color: var(--tt-color-text); cursor: default;
}
.tt-welcome-slide__pill {
    display: inline-flex; align-items: center; gap: var(--tt-space-1);
    padding: var(--tt-btn-padding-sm); border-radius: var(--tt-btn-radius);
    background: var(--tt-alpha-green-15); border: var(--tt-border-green);
    color: var(--tt-color-green-lt); font-size: var(--tt-text-md);
    font-weight: var(--tt-weight-semibold);
}

/* Skip · Dismiss · Done text-link cluster — sits next to the CTA button.
   Strict text-link behaviour: NO background, NO border, NO underline.
   Default colour: role colour. Hover: white. That's it. */
.tt-welcome-slide__taskbar {
    display: inline-flex; align-items: center;
    gap: var(--tt-space-1); flex-wrap: wrap;
}
.tt-welcome-slide__taskbar-link {
    background: transparent; border: 0; padding: 0; margin: 0;
    font-family: var(--tt-font-primary);
    font-size: var(--tt-text-base);
    font-weight: var(--tt-weight-semibold);
    color: var(--profile-role-color, var(--tt-color-green-lt));
    cursor: pointer;
    text-decoration: none;
    transition: color .15s;
}
.tt-welcome-slide__taskbar-link:hover,
.tt-welcome-slide__taskbar-link:focus,
.tt-welcome-slide__taskbar-link:active {
    background: transparent;
    border: 0;
    text-decoration: none;
    color: var(--tt-color-text);
}
.tt-welcome-slide__taskbar-link:disabled { opacity: 0.4; cursor: default; }
.tt-welcome-slide__taskbar-sep {
    color: var(--profile-role-color, var(--tt-alpha-white-30));
    font-size: var(--tt-text-base);
}

/* Dots */
.tt-welcome-slider__dots {
    display: flex; justify-content: center; gap: var(--tt-space-2);
    margin-top: var(--tt-space-5);
}
.tt-welcome-slider__dot {
    width: 8px; height: 8px; border-radius: var(--tt-radius-full);
    background: var(--tt-alpha-white-15); border: none; padding: 0; cursor: pointer;
    transition: var(--tt-transition-base);
}
.tt-welcome-slider__dot:hover { background: var(--tt-alpha-white-30); }
.tt-welcome-slider__dot.is-done { background: var(--tt-color-green); }
.tt-welcome-slider__dot.is-active {
    background: var(--tt-color-green-lt);
    transform: scale(1.4);
}

/* Footer */
/* Mobile compaction */
@media (max-width: 720px) {
    .tt-welcome-slider { padding: var(--tt-space-5); }
    .tt-welcome-slide {
        grid-template-columns: 36px 1fr;
        gap: var(--tt-space-3);
    }
    .tt-welcome-slide__num { width: 32px; height: 32px; font-size: var(--tt-text-sm); }
    .tt-welcome-slider__head { gap: var(--tt-space-3); }
    .tt-welcome-slider__counter { font-size: var(--tt-text-sm); }
}

/* ─────── ROLE-COLOR OVERRIDE ───────
   When the slider is rendered inside .profile (creator profile edit-mode),
   replace the green-tinted defaults with the role color for a cohesive
   look (orange for VA, blue for Streamer, mint-green for Writer). */
.profile .tt-welcome-slider {
    background: var(--profile-role-color-bg);
    border-color: var(--profile-role-color);
}
.profile .tt-welcome-slider__eyebrow { color: var(--profile-role-color); }
.profile .tt-welcome-slide.is-done .tt-welcome-slide__num {
    background: var(--profile-role-color);
    border-color: var(--profile-role-color);
}
.profile .tt-welcome-slide__action.style-ghost {
    background: transparent;
    border-color: var(--profile-role-color);
    color: var(--profile-role-color);
}
.profile .tt-welcome-slide__action.style-ghost:hover {
    background: var(--profile-role-color-bg);
}
.profile .tt-welcome-slide__pill {
    background: var(--profile-role-color-bg);
    border-color: var(--profile-role-color);
    color: var(--profile-role-color);
}
.profile .tt-welcome-slider__dot.is-done   { background: var(--profile-role-color); }
.profile .tt-welcome-slider__dot.is-active { background: var(--profile-role-color); }

/* How-To CTA: same ghost-style → role-color override (mirrors slider). */
.profile .profile-howto-item__cta {
    background: transparent;
    border-color: var(--profile-role-color);
    color: var(--profile-role-color);
}
.profile .profile-howto-item__cta:hover {
    background: var(--profile-role-color-bg);
}

/* ════════════════════════════════════════════════════════════════════
   PHASE 5C — DEMO REEL · HOW TO · MY NETWORK · MY ACCOUNT
   ════════════════════════════════════════════════════════════════════ */

/* ─── Demo Reel public render (Portfolio Tab) ──────────────────── */
.profile-section--demo-reel .profile-demo-reel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--tt-space-3);
}
.profile-demo-sample {
    background: var(--tt-color-bg-card);
    border: 1px solid var(--tt-alpha-white-08);
    border-radius: var(--tt-radius-md);
    padding: var(--tt-space-3);
    display: flex;
    flex-direction: column;
    gap: var(--tt-space-2);
}
.profile-demo-sample__head {
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: var(--tt-space-2);
}
.profile-demo-sample__title {
    font-size: var(--tt-text-base);
    font-weight: var(--tt-weight-semibold);
    color: var(--tt-color-text);
    margin: 0;
}
.profile-demo-sample__role {
    font-size: var(--tt-text-sm);
    color: var(--tt-color-text-dim);
    background: var(--tt-alpha-white-05);
    padding: 2px 8px;
    border-radius: var(--tt-radius-sm);
}
.profile-demo-sample__desc {
    font-size: var(--tt-text-sm);
    color: var(--tt-color-text-dim);
    line-height: var(--tt-leading-relaxed);
    margin: 0;
}
.profile-demo-sample__player {
    width: 100%;
    margin-top: var(--tt-space-1);
}

/* ─── Demo Reel edit form (Pro Tab) ────────────────────────────── */
.profile-edit-row--demo .profile-edit-row--demo__audio {
    margin-top: var(--tt-space-2);
    display: flex; flex-direction: column; gap: var(--tt-space-1);
}
.profile-edit-row--demo__player { width: 100%; }
.profile-edit-row--demo__remove {
    align-self: flex-start;
    background: transparent; border: 0; padding: 0;
    color: var(--tt-color-danger);
    font-size: var(--tt-text-sm);
    cursor: pointer; text-decoration: underline;
}

/* ─── How To Tab — Accordion ───────────────────────────────────── */
.profile-howto {
    background: var(--tt-color-bg-card);
    border: 1px solid var(--tt-alpha-white-08);
    border-radius: var(--tt-radius-xl);
    padding: var(--tt-space-5);
}
.profile-howto__head { margin-bottom: var(--tt-space-4); }
.profile-howto__title {
    font-size: var(--tt-text-xl);
    font-weight: var(--tt-weight-bold);
    margin: 0 0 var(--tt-space-1);
}
.profile-howto__lead {
    font-size: var(--tt-text-base);
    color: var(--tt-color-text);
    margin: 0;
}
.profile-howto__list {
    display: flex; flex-direction: column;
    gap: var(--tt-space-3);
}

.profile-howto-item {
    background: var(--tt-alpha-white-04);
    border: 1px solid var(--tt-alpha-white-08);
    border-radius: var(--tt-radius-lg);
    overflow: hidden;
}
.profile-howto-item[open] {
    background: var(--tt-alpha-white-05);
    border-color: var(--profile-role-color, var(--tt-alpha-white-08));
}
.profile-howto-item__summary {
    list-style: none;
    cursor: pointer;
    padding: var(--tt-space-3) var(--tt-space-4);
    display: flex; align-items: center; gap: var(--tt-space-3);
}
.profile-howto-item__summary::-webkit-details-marker { display: none; }
.profile-howto-item__num {
    flex: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--tt-alpha-white-05);
    color: var(--tt-color-text);
    font-size: var(--tt-text-base);
    font-weight: var(--tt-weight-bold);
    display: flex; align-items: center; justify-content: center;
}
.profile-howto-item[open] .profile-howto-item__num {
    background: var(--profile-role-color, var(--tt-alpha-white-15));
    color: var(--tt-color-bg);
}
.profile-howto-item__title-block {
    flex: 1;
    display: flex; flex-direction: column;
    min-width: 0;
}
.profile-howto-item__title {
    font-size: var(--tt-text-lg);
    font-weight: var(--tt-weight-semibold);
    color: var(--tt-color-text);
    line-height: var(--tt-leading-tight);
}
.profile-howto-item__hint {
    font-size: var(--tt-text-base);
    color: var(--tt-color-text);
    line-height: var(--tt-leading-snug);
    margin-top: 4px;
}
.profile-howto-item__chev {
    flex: none;
    color: var(--tt-color-text-dim);
    font-size: var(--tt-text-md);
    transition: transform .15s;
}
.profile-howto-item[open] .profile-howto-item__chev { transform: rotate(180deg); }
.profile-howto-item__body {
    padding: 0 var(--tt-space-4) var(--tt-space-4);
    border-top: 1px solid var(--tt-alpha-white-08);
    margin-top: 0;
}
.profile-howto-item__what-how-why {
    margin: var(--tt-space-3) 0;
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: var(--tt-space-3);
    row-gap: var(--tt-space-2);
}
/* What/How/Why — structural labels. Mint (not role-color) to keep
   the role-color budget reserved for identity signals (the number
   circle when [open], item-open border, focus borders, toggle-checked).
   No uppercase, no letter-spacing — clean labels. */
.profile-howto-item__what-how-why dt {
    font-size: var(--tt-text-base);
    font-weight: var(--tt-weight-semibold);
    color: var(--tt-color-green-lt);
}
.profile-howto-item__what-how-why dd {
    margin: 0;
    font-size: var(--tt-text-base);
    color: var(--tt-color-text);
    line-height: var(--tt-leading-relaxed);
}
/* How-To CTA — Mint ghost-style (same as Welcome Slider). Universal
   accent for "action available", not role-coded. */
.profile-howto-item__cta {
    display: inline-flex; align-items: center; gap: var(--tt-space-1);
    padding: var(--tt-btn-padding-sm); border-radius: var(--tt-btn-radius);
    font-family: var(--tt-font-primary); font-size: var(--tt-text-md);
    font-weight: var(--tt-weight-semibold); text-decoration: none;
    white-space: nowrap; cursor: pointer;
    background: var(--tt-alpha-green-08);
    border: var(--tt-border-green);
    color: var(--tt-color-green-lt);
    transition: var(--tt-transition-base);
}
.profile-howto-item__cta:hover { background: var(--tt-alpha-green-15); }

/* ─── My Network Tab ───────────────────────────────────────────── */
.profile-network {
    background: var(--tt-color-bg-card);
    border: 1px solid var(--tt-alpha-white-08);
    border-radius: var(--tt-radius-xl);
    padding: var(--tt-space-5);
}
.profile-network__head {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between;
    gap: var(--tt-space-3);
    margin-bottom: var(--tt-space-4);
    /* Sticky search header — sits below tt-tabs sticky stack.
       70px = approx tabs height with padding. nav-height handles top bar. */
    position: sticky;
    top: calc(var(--tt-nav-height) + 70px);
    background: var(--tt-color-bg-card);
    z-index: 10;
    padding-top: var(--tt-space-2);
    margin-top: calc(-1 * var(--tt-space-2));
}
.profile-network__title {
    font-size: var(--tt-text-xl);
    font-weight: var(--tt-weight-bold);
    margin: 0;
}
.profile-network__search {
    flex: 1;
    max-width: 320px;
}
.profile-network__search-input {
    width: 100%;
    background: var(--tt-color-bg);
    border: 1px solid var(--tt-alpha-white-08);
    border-radius: var(--tt-radius-md);
    padding: 10px 14px;
    font-size: var(--tt-text-base);
    font-family: inherit;
    color: var(--tt-color-text);
}
.profile-network__search-input::placeholder {
    font-size: var(--tt-text-md);
    color: var(--tt-color-text-dim);
}
.profile-network__search-input:focus {
    outline: none;
    border-color: var(--profile-role-color, var(--tt-color-accent));
}
.profile-network__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tt-space-4);
}
.profile-network__cols.is-single {
    grid-template-columns: 1fr;
    max-width: 600px;
}
@media (max-width: 768px) {
    .profile-network__cols { grid-template-columns: 1fr; }
}

.profile-network__col {
    background: var(--tt-alpha-white-04);
    border: 1px solid var(--tt-alpha-white-08);
    border-radius: var(--tt-radius-lg);
    padding: var(--tt-space-4);
}
.profile-network-col__head {
    display: flex; align-items: baseline; gap: var(--tt-space-2);
    margin-bottom: var(--tt-space-3);
    padding-bottom: var(--tt-space-2);
    border-bottom: 1px solid var(--tt-alpha-white-08);
}
.profile-network-col__title {
    font-size: var(--tt-text-lg);
    font-weight: var(--tt-weight-semibold);
    margin: 0;
}
.profile-network-col__count {
    font-size: var(--tt-text-md);
    color: var(--tt-color-text-dim);
    background: var(--tt-alpha-white-05);
    padding: 2px 10px;
    border-radius: var(--tt-radius-sm);
}

.profile-network-list {
    display: flex; flex-direction: column;
    gap: var(--tt-space-2);
}
.profile-network-list--empty .profile-network-list__empty {
    font-size: var(--tt-text-base);
    color: var(--tt-color-text);
    text-align: center;
    padding: var(--tt-space-4) 0;
    margin: 0;
}

.profile-network-row {
    display: flex; align-items: center;
    gap: var(--tt-space-3);
    padding: var(--tt-space-3);
    border-radius: var(--tt-radius-md);
    transition: background .15s;
}
.profile-network-row:hover { background: var(--tt-alpha-white-05); }

.profile-network-row__avatar {
    flex: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--tt-alpha-white-05);
    display: flex; align-items: center; justify-content: center;
}
.profile-network-row__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-network-row__avatar-fallback {
    font-size: var(--tt-text-base);
    font-weight: var(--tt-weight-semibold);
    color: var(--tt-color-text);
    text-transform: uppercase;
}

.profile-network-row__main {
    flex: 1; min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--tt-space-2);
    row-gap: 2px;
    align-items: center;
}
.profile-network-row__name {
    font-size: var(--tt-text-base);
    font-weight: var(--tt-weight-semibold);
    color: var(--tt-color-text);
    text-decoration: none;
    grid-column: 1; grid-row: 1;
    white-space: nowrap;
}
.profile-network-row__role-pill {
    grid-column: 2; grid-row: 1;
    font-size: var(--tt-text-sm);
    color: var(--tt-color-text-dim);
    background: var(--tt-alpha-white-05);
    padding: 2px 10px;
    border-radius: var(--tt-radius-sm);
    justify-self: start;
}
.profile-network-row__role-pill--writer      { color: var(--tt-color-green-lt); }
.profile-network-row__role-pill--voice_actor { color: var(--tt-color-accent); }
.profile-network-row__role-pill--streamer    { color: var(--tt-color-blue-lt); }

.profile-network-row__headline {
    grid-column: 1 / -1; grid-row: 2;
    font-size: var(--tt-text-md);
    color: var(--tt-color-text-dim);
    line-height: var(--tt-leading-snug);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-network-btn {
    flex: none;
    background: transparent;
    border: 1px solid var(--tt-alpha-white-08);
    color: var(--tt-color-text);
    font-size: var(--tt-text-md);
    font-weight: var(--tt-weight-semibold);
    font-family: inherit;
    padding: 8px 14px;
    border-radius: var(--tt-radius-md);
    cursor: pointer;
    transition: all .15s;
}
.profile-network-btn:hover {
    border-color: var(--profile-role-color, var(--tt-color-accent));
    color: var(--profile-role-color, var(--tt-color-accent));
}
.profile-network-btn--defollow:hover {
    border-color: var(--tt-color-danger);
    color: var(--tt-color-danger);
}
.profile-network-mutual {
    flex: none;
    font-size: var(--tt-text-md);
    color: var(--profile-role-color, var(--tt-color-green-lt));
    font-weight: var(--tt-weight-semibold);
    padding: 8px 14px;
}
.profile-network-list__more {
    margin-top: var(--tt-space-3);
    background: transparent;
    border: 1px solid var(--tt-alpha-white-08);
    color: var(--tt-color-text-dim);
    font-size: var(--tt-text-md);
    font-family: inherit;
    padding: 10px 18px;
    border-radius: var(--tt-radius-md);
    cursor: pointer;
    align-self: center;
}
.profile-network-list__more:hover {
    border-color: var(--profile-role-color, var(--tt-color-accent));
    color: var(--profile-role-color, var(--tt-color-accent));
}

/* ─── My Account Tab ───────────────────────────────────────────── */
/* My Account — Card-in-Card pattern matching the Signup section model.
   Outer .profile-account is just the wrapper. Each .profile-account__section
   is its own card (bg-card + alpha-white-07 border + 14px radius). The
   Danger zone card uses a red border to stand out semantically. */
.profile-account {
    display: flex;
    flex-direction: column;
    gap: var(--tt-space-4);
    /* Defensive overrides against Elementor injecting blue accent colors
       on native form controls (radio dots, checkbox checkmarks, select
       caret). accent-color paints native controls green; color-scheme:dark
       hints the browser to use dark-mode native dropdown styling. */
    accent-color: var(--tt-color-green);
    color-scheme: dark;
}
.profile-account__head { margin-bottom: 0; }
.profile-account__title {
    font-size: var(--tt-text-xl);
    font-weight: var(--tt-weight-bold);
    margin: 0 0 var(--tt-space-2);
}
.profile-account__section {
    background: var(--tt-color-bg-card);
    border: 1px solid var(--tt-alpha-white-07);
    border-radius: var(--tt-radius-xl);
    padding: var(--tt-space-4) var(--tt-space-5);
    display: flex;
    flex-direction: column;
    gap: var(--tt-space-3);
}
.profile-account__section--danger {
    border-color: rgba(224, 92, 92, 0.3);
    background: rgba(224, 92, 92, 0.03);
}
.profile-account__section-title {
    font-size: var(--tt-text-lg);
    font-weight: var(--tt-weight-semibold);
    margin: 0;
}
.profile-account__section-hint {
    font-size: var(--tt-text-md);
    color: var(--tt-color-text);
    line-height: var(--tt-leading-snug);
    margin: 0;
}
.profile-account__row {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: var(--tt-space-3);
}
.profile-account__value {
    font-size: var(--tt-text-base);
    font-family: inherit;
    color: var(--tt-color-text);
}
.profile-account__hint {
    font-size: var(--tt-text-md);
    color: var(--tt-color-text-dim);
    line-height: var(--tt-leading-snug);
}

/* Text fields inside the account panel — name, email, delete confirmation.
   Same visual language as the toggles above: card background, hairline
   border, role colour only on focus (identity stamp, never on actions). */
.profile-account__fields {
    display: flex; flex-direction: column;
    gap: var(--tt-space-3);
}
.profile-account__field {
    display: flex; flex-direction: column;
    gap: 6px;
    max-width: 420px;
}
.profile-account__field-label {
    font-size: var(--tt-text-md);
    color: var(--tt-color-text-dim);
}
.profile-account__input {
    background: var(--tt-alpha-white-04, rgba(255,255,255,0.04));
    border: 1px solid var(--tt-alpha-white-07);
    border-radius: var(--tt-radius-md);
    color: var(--tt-color-text);
    font-family: inherit;
    font-size: var(--tt-text-base);
    padding: 10px 12px;
    width: 100%;
}
.profile-account__input:focus {
    outline: none;
    border-color: var(--profile-role-color, var(--tt-color-green));
}
.profile-account__hint--ok    { color: var(--tt-color-green-lt, var(--tt-color-green)); }
.profile-account__hint--error { color: var(--tt-color-danger); }

/* The typed confirmation. Hidden until the first button is pressed, so the
   destructive control is never one stray click away. */
.profile-account__confirm {
    display: flex; flex-direction: column;
    gap: var(--tt-space-3);
    padding-top: var(--tt-space-3);
    border-top: 1px solid rgba(224, 92, 92, 0.3);
}
.profile-account__btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.profile-account__btn[disabled]:hover { opacity: 0.45; }

/* Action buttons — Aktions-Button (solid green + white text) for primary
   save/reset, Neben-Aktion (transparent + mint border) for secondary,
   red ghost for danger. NO role-color on action buttons — role-color
   stays reserved for identity (toggle-checked, focus-borders, item-open). */
.profile-account__btn {
    background: var(--tt-color-green);
    color: var(--tt-color-text);
    font-size: var(--tt-text-base);
    font-weight: var(--tt-weight-bold);
    font-family: inherit;
    padding: 11px 24px;
    border: 0;
    border-radius: var(--tt-radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s;
}
.profile-account__btn:hover { opacity: 0.85; }
.profile-account__btn--secondary {
    background: var(--profile-role-color, var(--tt-color-green));
    color: var(--tt-color-text);
    border: 0;
}
.profile-account__btn--secondary:hover {
    opacity: 0.85;
}
.profile-account__btn--danger {
    background: transparent;
    border: 1px solid var(--tt-color-danger);
    color: var(--tt-color-danger);
    font-weight: var(--tt-weight-semibold);
}
.profile-account__btn--danger:hover {
    background: var(--tt-color-danger);
    color: var(--tt-color-text);
    opacity: 1;
}

/* Toggles — checked state in role-color (identity stamp). Track and
   thumb fixed sizes; track grows visually with checked color. */
.profile-account__toggle-list {
    display: flex; flex-direction: column;
    gap: var(--tt-space-3);
}
.profile-account__toggle {
    display: flex; align-items: flex-start;
    gap: var(--tt-space-3);
    cursor: pointer;
}
/* Bullet-proof hidden checkbox — Elementor sometimes overrides appearance/
   opacity/positioning on inputs, which would expose the native blue
   checkmark. The !important flags + appearance:none defend against that. */
.profile-account__toggle input,
.profile-account__toggle input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 40px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    z-index: -1 !important;
}
.profile-account__toggle-track {
    flex: none;
    width: 40px; height: 22px;
    background: var(--tt-alpha-white-15);
    border-radius: 11px;
    position: relative;
    transition: background .2s;
    margin-top: 1px;
}
.profile-account__toggle-track::before {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    transition: left .2s;
}
.profile-account__toggle input:checked + .profile-account__toggle-track {
    background: var(--profile-role-color, var(--tt-color-green));
}
.profile-account__toggle input:checked + .profile-account__toggle-track::before { left: 20px; }
.profile-account__toggle-label {
    font-size: var(--tt-text-base);
    font-weight: var(--tt-weight-semibold);
    color: var(--tt-color-text);
    line-height: var(--tt-leading-snug);
}
.profile-account__toggle-sub {
    display: block;
    font-size: var(--tt-text-md);
    color: var(--tt-color-text-dim);
    margin-top: 4px;
    font-weight: var(--tt-weight-regular);
    line-height: var(--tt-leading-snug);
}

/* Player notification filter (creator picker) — keep visible sizes
   readable. Filter title is a smaller header. */
.profile-account__filter {
    display: flex; flex-direction: column;
    gap: var(--tt-space-2);
    padding-top: var(--tt-space-2);
    border-top: 1px solid var(--tt-alpha-white-07);
}
.profile-account__filter-title {
    font-size: var(--tt-text-md);
    font-weight: var(--tt-weight-semibold);
    color: var(--tt-color-text);
    margin: 0;
}
.profile-account__radio {
    display: flex; align-items: center;
    gap: var(--tt-space-2);
    font-size: var(--tt-text-base);
    color: var(--tt-color-text);
    cursor: pointer;
}
.profile-account__filter-count {
    color: var(--tt-color-text-dim);
    font-size: var(--tt-text-md);
}
.profile-account__picker {
    margin-top: var(--tt-space-2);
    padding: var(--tt-space-3);
    background: var(--tt-alpha-white-04);
    border: 1px solid var(--tt-alpha-white-07);
    border-radius: var(--tt-radius-md);
    display: none; /* hidden by default; shown only when the "selected" radio
                      is checked — pure CSS, no JS dependency. The previous
                      JS-driven display toggle had a silent bug where the
                      change event wasn't firing in some click scenarios. */
    flex-direction: column;
    gap: var(--tt-space-2);
}
/* :has() walks up from the checked radio to the .profile-account__filter
 * container, then back down to the picker. Universal support in modern
 * browsers (Chrome 105+, Safari 15.4+, Firefox 121+ — i.e. everything in
 * 2026). */
.profile-account__filter:has(input[data-account-filter-mode][value="selected"]:checked) .profile-account__picker {
    display: flex;
}
.profile-account__picker-row {
    display: flex; align-items: center;
    gap: var(--tt-space-2);
    font-size: var(--tt-text-base);
    color: var(--tt-color-text);
    cursor: pointer;
}

/* ════════════════════════════════════════════════════════════════════
   PROFILE EDIT — BANNER / AVATAR PICKER + TEMPLATE MODAL
   ────────────────────────────────────────────────────────────────────
   Shared between profile-creator.php (Creator edit) and profile-player.php
   (Player edit). Single source of truth so both edit pages render the
   identical UI. `--profile-role-color` is set inline on the Creator wrapper;
   on the Player page it falls back to the secondary color via var() default.
   ════════════════════════════════════════════════════════════════════ */

.profile-edit-picker { margin-bottom: var(--tt-space-6); }
.profile-edit-picker__label {
	display: flex;
	align-items: baseline;
	gap: var(--tt-space-2);
	color: var(--tt-color-text-white);
	font-size: var(--tt-text-base);
	font-weight: 600;
	margin-bottom: var(--tt-space-3);
}
.profile-edit-picker__ratio {
	color: var(--tt-color-text-mute);
	font-size: var(--tt-text-sm);
	font-weight: 400;
}
.profile-edit-picker__current {
	margin-bottom: var(--tt-space-3);
	border-radius: 8px;
	overflow: hidden;
	background: rgba(0,0,0,0.3);
	position: relative;
}
.profile-edit-picker__current--circle {
	width: 160px; height: 160px;
	border-radius: 50%;
}
.profile-edit-picker__preview { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-edit-picker[data-picker="banner"] .profile-edit-picker__preview { aspect-ratio: 16/5; }

.profile-edit-picker__spinner {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
}
.profile-edit-picker__spinner[hidden] { display: none; }
.profile-edit-picker__spinner::before {
	content: "";
	width: 32px; height: 32px;
	border: 3px solid rgba(255,255,255,0.2);
	border-top-color: var(--profile-role-color, var(--e-global-color-secondary));
	border-radius: 50%;
	animation: profile-spin 0.8s linear infinite;
}
@keyframes profile-spin { to { transform: rotate(360deg); } }

.profile-edit-picker__actions {
	display: flex;
	gap: var(--tt-space-3);
	flex-wrap: wrap;
}
.profile-edit-picker__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 6px;
	color: var(--tt-color-text-white);
	font-size: var(--tt-text-base);
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}
.profile-edit-picker__btn:hover {
	background: rgba(255,255,255,0.08);
	border-color: var(--profile-role-color, var(--e-global-color-secondary));
}
.profile-edit-picker__btn--upload { cursor: pointer; }

/* ─── Template Modal — retired: replaced by .tt-popup-select-avatar
   and .tt-popup-select-banner components (see end of file). ─────── */

/* ════════════════════════════════════════════════════════════════════
   PTV2 PROFILE LAYOUT SKELETON — wrapper, frame, hero, tabs, panel
   ────────────────────────────────────────────────────────────────────
   Migrated from profile-creator.php inline CSS so profile-player.php
   can use the same .profile-* class set without duplicating styles.
   Creator-specific classes (.profile-credit, .profile-stat-card, .profile-network-row,
   .profile-bio, .profile-tag, .profile-section primitives) remain inline in
   profile-creator.php for now — migrate when both edit pages share them.
   ════════════════════════════════════════════════════════════════════ */


/* ─── Wrapper + container ────────────────────────────────────────── */
.profile {
	font-family: var(--tt-font-primary);
	background: var(--tt-color-bg);
	color: var(--tt-color-text);
	font-size: var(--tt-text-base);
	line-height: var(--tt-leading-relaxed);

	/* Role-color custom property — overridden inline on the .profile wrapper
	   based on detected role (writer/voice_actor/streamer). All hero +
	   border + icon-bg styles reference --profile-role-color so a single inline
	   value drives the entire profile's role accent. Defaults to mint here
	   in case the inline style is missing. */
	--profile-role-color:    #74BEAB;  /* writer fallback */
	--profile-role-color-bg: rgba(116, 190, 171, 0.18);
}

/* Profile-wide role-color frame — wraps the whole .profile instance, not
   just the hero. Border lives on .profile__frame (a dedicated wrapper inside
   .profile) so it spans all sections continuously without each section
   needing its own border. */
.profile__frame {
	border: 1px solid var(--profile-role-color);
	border-radius: var(--tt-radius-xl);
	overflow: hidden;
	margin: var(--tt-space-6) auto var(--tt-space-8);
	max-width: var(--tt-container-wide);
	background: var(--tt-color-bg);
}
.profile__container {
	/* Frame already constrains width and applies the role-color border;
	   container just provides horizontal padding for non-hero content
	   (tabs, panels, sidebar, sections). Hero is rendered as a sibling
	   above this container so it spans frame edge-to-edge. */
	padding: var(--tt-space-5);
}

/* Report-Profile foot — direct child of .profile__frame, sits below the
   .profile__container. Frame has overflow:hidden + zero padding, so this
   wrapper needs its own padding to keep the report-button from clinging
   to the role-color border. Padding mirrors .profile__container for
   visual consistency with the rest of the framed content. Referenced
   from profile-creator.php Z.4971 and profile-player.php Z.2816. */
.profile__report-foot {
	padding: var(--tt-space-5);
}















/* Stats — bumped from text-md to text-base (17px), no border-top now */
.profile-hero__rating-link {
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: opacity var(--tt-transition-fast);
}
.profile-hero__rating-link:hover { opacity: 0.75; }



/* Share Profile button — GHOST style. Dark bg, role-color border + text +
   arrow stroke. Hover flips font to white (border + bg stay). Icon box
   transparent; the arrow inherits currentColor so it matches the text
   color in both idle + hover states without separate icon rules.
   Border rendered as box-shadow inset so the button's 42px outer height
   stays in sync with the primary CTA next to it (base has border: 0). */
.profile-hero__btn--share {
	background: var(--tt-color-bg) !important;
	color: var(--author-role-color, var(--profile-role-color, var(--tt-color-green))) !important;
	box-shadow: inset 0 0 0 var(--tt-border-w-md) var(--author-role-color, var(--profile-role-color, var(--tt-color-green))) !important;
	padding: 0 16px 0 6px !important;
	gap: var(--tt-space-2) !important;
	transition: color .15s, box-shadow .15s, background .15s !important;
}
.profile-hero__btn--share:hover {
	color: var(--tt-color-text-white) !important;
	opacity: 1 !important;
}
.profile-hero__btn--share__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: var(--tt-radius-sm);
	background: transparent;
	flex-shrink: 0;
}
.profile-hero__btn--share__icon svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	stroke-width: 2.5;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Log-out button — filled in danger-red (same shape/size as the Primary
   and Share buttons, only the colour differs). Targeted via the data-attr
   so no PHP/HTML change is required; semantically this attribute already
   identifies the button. */
.profile-hero__btn[data-profile-confirm="logout"] {
	background: var(--tt-color-danger) !important;
	color: var(--tt-color-text-white) !important;
}
.profile-hero__btn[data-profile-confirm="logout"]:hover { opacity: 0.85; }



/* External-link / recommend icon defensives — keeps the recommend
   shortcode's icon-square role-colored. Social pills no longer get
   role-color BG (they live in the Connect Card and use their own
   neutral labeled-pill styling — see .profile-social).  */






/* ─── Tab-bar + panels ──────────────────────────────────────────── */
   layout space via a placeholder so content doesn't jump.
   Tabs sit INSIDE .profile__frame (under the hero), so they inherit the
   frame's width constraint. When stuck (position:fixed), they break
   out to full viewport width via .is-stuck override.
   ════════════════════════════════════════════════════════════════════ */
.profile-tabs {
	position: relative;
	z-index: var(--tt-z-sticky);
	background: var(--tt-color-bg);
	border-bottom: 1px solid var(--tt-alpha-white-07);
}

/* Scroll-anchor offset — when JS calls scrollIntoView() (tab click,
   anchor-link click, history hash) the element's top should land BELOW
   the TWIST top-nav AND the page-level sticky tab bar, not behind them.
   Applied to the frame (tab clicks scroll there) and to all named IDs
   inside .profile (#stories, #blog, #panel-portfolio, etc.). 70px ≈ tab
   nav height (~55px) + small breathing buffer. */
.profile__frame,
.profile [id] {
	scroll-margin-top: calc(var(--tt-nav-height) + 70px);
}


/* ─── Edit-Card primitives ─────────────────────────────────────── */

.profile-edit-save {
	background: var(--tt-color-green);
	color: var(--tt-color-text-white);
	border: none;
	padding: 10px 24px;
	border-radius: 6px;
	font-size: var(--tt-text-base);
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease, opacity 0.18s ease;
	font-family: inherit;
}
.profile-edit-save:hover:not(:disabled) { background: var(--tt-color-green-dark); }
.profile-edit-save:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Picker (banner / avatar) ─────────────────
   .profile-edit-picker classes are shared by profile-creator.php and
   profile-player.php. The template-picker popup is now .tt-popup-select-*
   (see end of file). */







/* ─── Chip group (multi-select pills with optional max) ─────────── */








/* ============================================================================
   PAGE-LEVEL LAYOUT — moved out of style.css
   ----------------------------------------------------------------------------
   Sections/Blocks die zu einer einzelnen Page gehören (z.B. .tt-auth-page für
   Sign-In/Forgot-Password, .tcs-* für die Signup-Pages, .treg-* für das
   Registration-Form) leben NICHT mehr hier. Sie sind inline in der jeweiligen
   Page-PHP (single source of truth pro Page). Hier in style.css landen nur
   echte Komponenten die seitenübergreifend wiederverwendet werden.
   ============================================================================ */


/* ============================================================================
   TT-POPUP-INFO — System-Message-Popup (Framework only)
   ----------------------------------------------------------------------------
   WOFÜR
   System-Feedback in einem zentrierten Overlay-Popup. Der User liest die
   Message und schließt das Popup. Kein Input, keine Auswahl — reines
   Read+Dismiss.

   EINGESETZT FÜR
     • Auth-Feedback: Login-Error, Logout-Bestätigung, „Reset link sent"
     • Warnhinweise, allgemeine Bestätigungen
     • System-Errors, Process-Notifications

   BEISPIELE
     1. /signin/ — bei falschem Passwort zeigt class-login-form.php
        ein .tt-popup-info mit rot-getöntem Icon und Message.
     2. /forgot-password/ — nach Submit zeigt class-forgot-form.php
        ein .tt-popup-info mit grün-getöntem Check-Icon
        („Reset link sent to your email").

   SCOPE DIESER STYLES
   Hier nur das Framework: Overlay-Verhalten, Card-Maße, Default-Typo,
   Default-Farben, Spacings. Spezifische Variant-Tönung (success-grün,
   error-rot, warning-orange, info-blau), spezifische Icons und Button-
   Texte leben INLINE bei der jeweiligen Page/Form, die das Popup
   triggert. So bleibt das Framework schlank und jede Use-Site setzt
   eigene Details ohne hier nachzueditieren.

   HTML-STRUKTUR
     <div class="tt-popup-info" id="…">
       <div class="tt-popup-info__card">
         <div class="tt-popup-info__icon">✓</div>
         <h3 class="tt-popup-info__title">…</h3>
         <p   class="tt-popup-info__message">…</p>
         <button class="tt-popup-info__btn">Close</button>
       </div>
     </div>

   SICHTBARKEIT
   Standard: hidden (display:none). Mit .is-visible auf .tt-popup-info wird
   das Overlay als flex gezeigt und die Card horizontal+vertikal zentriert.
   ============================================================================ */

.tt-popup-info {
	position: fixed;
	inset: 0;
	z-index: var(--tt-z-modal);
	background: rgba(0, 0, 0, 0.7);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}
.tt-popup-info.is-visible {
	display: flex;
}

.tt-popup-info__card {
	width: 100%;
	max-width: 420px;
	background: var(--tt-color-bg-card);
	border: 1px solid var(--tt-alpha-white-07);
	border-radius: var(--tt-radius-xl);
	padding: 36px 32px;
	color: var(--tt-color-text);
	text-align: center;
	font-family: var(--tt-font-primary);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.tt-popup-info__icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--tt-alpha-white-07);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
	color: var(--tt-color-text);
}

.tt-popup-info__title {
	font-size: var(--tt-text-h3);   /* heading-like UI → heading knob */
	font-weight: var(--tt-weight-bold);
	line-height: var(--tt-leading-tight);
	color: var(--tt-color-text);
	margin: 0 0 10px;
}

.tt-popup-info__message {
	font-size: var(--tt-text-base);
	line-height: var(--tt-leading-snug);
	color: var(--tt-color-text);
	margin: 0 0 24px;
}

/* Layout extras for .tt-popup-info__btn — visual chrome from the Primary
   button block further down. This block only sets popup-specific layout. */
.tt-popup-info__btn {
	display: inline-block;
	padding: 11px 28px;
	font-size: var(--tt-text-base);
}

/* Variant tints — selected via data-status attribute on the overlay. The
 * popup framework above stays neutral; these rules add the colored icon
 * background + (for error) a tinted close button so the popup signals
 * success / error / info / warning at a glance. Triggered from JS via
 * overlay.setAttribute('data-status', '<status>'). */
.tt-popup-info[data-status="error"] .tt-popup-info__icon {
	color: var(--tt-color-danger);
	background: rgba(224, 92, 92, 0.10);
	border-color: rgba(224, 92, 92, 0.4);
}
.tt-popup-info[data-status="error"] .tt-popup-info__btn {
	background: var(--tt-color-danger);
}
.tt-popup-info[data-status="success"] .tt-popup-info__icon {
	color: var(--tt-color-green-lt);
	background: rgba(29, 153, 120, 0.10);
	border-color: rgba(29, 153, 120, 0.4);
}
.tt-popup-info[data-status="info"] .tt-popup-info__icon {
	color: var(--tt-color-blue-lt);
	background: rgba(152, 166, 212, 0.10);
	border-color: rgba(152, 166, 212, 0.4);
}
.tt-popup-info[data-status="warning"] .tt-popup-info__icon {
	color: var(--tt-color-accent);
	background: rgba(235, 156, 10, 0.10);
	border-color: rgba(235, 156, 10, 0.4);
}


/* ============================================================================
   TT-POPUP-SELECT-AVATAR · TT-POPUP-SELECT-BANNER — Picker-Popup (Framework only)
   ----------------------------------------------------------------------------
   WOFÜR
   Auswahl-Popup mit großem Live-Preview oben + horizontal scrollbarer
   Thumbnail-Reihe darunter. User klickt einen Thumb → Preview aktualisiert
   sich → User bestätigt mit "Apply". Cancel/Outside-Click/Escape verwirft.

   EINGESETZT FÜR
     • Avatar-Template-Auswahl auf /my-profile/ (Edit-Modus): runder Preview
       200×200, runde Thumbs 72×72.
     • Banner-Template-Auswahl auf /my-profile/ (Edit-Modus): 16:5 Preview
       bis 560px breit, 16:5 Thumbs je 160px breit.

   BEISPIELE
     1. Avatar-Picker (profile-creator.php / profile-player.php): User klickt
        "Choose from template" → openTemplateModal('avatar') baut die
        .tt-popup-select-avatar HTML, lädt die Thumbs aus
        data-templates JSON, zeigt sie horizontal scrollbar, große Vorschau
        oben, Apply speichert via applyHeroSlug().
     2. Banner-Picker: gleich, aber 16:5 Format.

   SCOPE DIESER STYLES
   Framework: Overlay, Card (max 720px), Title/Hint, Preview-Wrap, Slider-
   Track + Arrows, Action-Buttons, Hover/Selected-Marker auf Thumbs.
   Shape-spezifisch (rund vs 16:5) ist je Component definiert.
   Variant-Tönung gibt's hier nicht — der Selected-State nutzt die mint-
   Green-Token-Farbe (siehe --tt-color-green); Anpassung pro Role-Color
   geschieht inline beim Aufruf, falls gewünscht.

   HTML-STRUKTUR (Avatar-Beispiel; Banner identisch außer Klassen-Suffix)
     <div class="tt-popup-select-avatar" id="…">
       <div class="tt-popup-select-avatar__card">
         <h3  class="tt-popup-select-avatar__title">Choose an avatar template</h3>
         <p   class="tt-popup-select-avatar__hint">Click a thumbnail to preview, then Apply.</p>
         <div class="tt-popup-select-avatar__preview">
           <div class="tt-popup-select-avatar__preview-image" style="background-image:url(…)"></div>
         </div>
         <div class="tt-popup-select-avatar__slider">
           <button class="tt-popup-select-avatar__slider-arrow" data-direction="prev">‹</button>
           <div    class="tt-popup-select-avatar__slider-track">
             <button class="tt-popup-select-avatar__thumb is-selected" data-slug="…" data-url="…"
                     style="background-image:url(…)"></button>
             …more thumbs…
           </div>
           <button class="tt-popup-select-avatar__slider-arrow" data-direction="next">›</button>
         </div>
         <div class="tt-popup-select-avatar__actions">
           <button class="tt-popup-select-avatar__btn-secondary" data-cancel>Cancel</button>
           <button class="tt-popup-select-avatar__btn"           data-confirm>Apply</button>
         </div>
       </div>
     </div>

   SICHTBARKEIT
   Standard hidden (display:none). Mit .is-visible auf Overlay zeigen.
   ============================================================================ */

/* Overlay (shared) */
.tt-popup-select-avatar,
.tt-popup-select-banner {
	position: fixed;
	inset: 0;
	z-index: var(--tt-z-modal);
	background: rgba(0, 0, 0, 0.7);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}
.tt-popup-select-avatar.is-visible,
.tt-popup-select-banner.is-visible {
	display: flex;
}

/* Card (shared) */
.tt-popup-select-avatar__card,
.tt-popup-select-banner__card {
	width: 100%;
	max-width: 720px;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--tt-color-bg-card);
	border: 1px solid var(--tt-alpha-white-07);
	border-radius: var(--tt-radius-xl);
	padding: 28px 32px;
	color: var(--tt-color-text);
	font-family: var(--tt-font-primary);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
	text-align: left;
}

/* Title + Hint (shared) */
.tt-popup-select-avatar__title,
.tt-popup-select-banner__title {
	font-size: var(--tt-text-lg);
	font-weight: var(--tt-weight-bold);
	line-height: var(--tt-leading-tight);
	color: var(--tt-color-text);
	margin: 0 0 4px;
}
.tt-popup-select-avatar__hint,
.tt-popup-select-banner__hint {
	font-size: var(--tt-text-md);
	line-height: var(--tt-leading-snug);
	color: var(--tt-color-text);
	margin: 0 0 20px;
}

/* Preview wrap (shared centering) */
.tt-popup-select-avatar__preview,
.tt-popup-select-banner__preview {
	display: flex;
	justify-content: center;
	margin: 0 0 24px;
}

/* Preview image — SHAPE SPECIFIC. Now an <img> tag (not a background-image div). */
.tt-popup-select-avatar__preview-image {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--tt-alpha-white-18);
	display: block;
}
.tt-popup-select-banner__preview-image {
	width: 100%;
	max-width: 560px;
	aspect-ratio: 16 / 5;
	border-radius: 8px;
	object-fit: cover;
	border: 3px solid var(--tt-alpha-white-18);
	display: block;
}

/* Slider wrap (shared) — arrows + scrollable track */
.tt-popup-select-avatar__slider,
.tt-popup-select-banner__slider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	position: relative;
}

/* Slider arrows (shared) — Module E 2026-05-15: role-color w/ dark-green fallback.
   Modal is appended to body so --profile-role-color usually falls back. */
.tt-popup-select-avatar__slider-arrow,
.tt-popup-select-banner__slider-arrow {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--profile-role-color, var(--tt-color-green));
	border: 1px solid var(--profile-role-color, var(--tt-color-green));
	color: var(--tt-color-text-white);
	font-family: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: filter 0.15s, transform 0.15s;
}
.tt-popup-select-avatar__slider-arrow:hover,
.tt-popup-select-banner__slider-arrow:hover {
	filter: brightness(1.15);
	transform: translateY(-1px);
}

/* Slider track (shared) — horizontal scroll, hide native scrollbar */
.tt-popup-select-avatar__slider-track,
.tt-popup-select-banner__slider-track {
	flex: 1;
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 4px 2px;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.tt-popup-select-avatar__slider-track::-webkit-scrollbar,
.tt-popup-select-banner__slider-track::-webkit-scrollbar {
	display: none;
}

/* Thumbs (shared base, shape specific below). Hold an <img> child that fills
   the button; overflow:hidden clips the image to the thumb's border-radius. */
.tt-popup-select-avatar__thumb,
.tt-popup-select-banner__thumb {
	flex: 0 0 auto;
	background: rgba(255, 255, 255, 0.04);
	border: 2px solid transparent;
	cursor: pointer;
	padding: 0;
	overflow: hidden;
	transition: border-color 0.15s, transform 0.15s;
}
.tt-popup-select-avatar__thumb img,
.tt-popup-select-banner__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tt-popup-select-avatar__thumb:hover,
.tt-popup-select-banner__thumb:hover {
	transform: scale(1.04);
	border-color: var(--tt-color-green-lt);
}
.tt-popup-select-avatar__thumb.is-selected,
.tt-popup-select-banner__thumb.is-selected {
	border-color: var(--tt-color-green);
}

/* Thumbs — SHAPE SPECIFIC */
.tt-popup-select-avatar__thumb {
	width: 72px;
	height: 72px;
	border-radius: 50%;
}
.tt-popup-select-banner__thumb {
	width: 160px;
	aspect-ratio: 16 / 5;
	border-radius: 6px;
}

/* Actions (shared) */
.tt-popup-select-avatar__actions,
.tt-popup-select-banner__actions {
	display: flex;
	justify-content: flex-end;
	gap: var(--tt-space-3);
}

/* Buttons (shared) — Aktions-Button (Apply) + Neben-Aktion (Cancel) */
.tt-popup-select-avatar__btn,
.tt-popup-select-banner__btn {
	background: var(--tt-color-green);
	color: var(--tt-color-text);
	border: none;
	border-radius: var(--tt-radius-md);
	padding: 11px 24px;
	font-family: inherit;
	font-size: var(--tt-text-base);
	font-weight: var(--tt-weight-bold);
	cursor: pointer;
	transition: opacity 0.2s;
}
.tt-popup-select-avatar__btn:hover,
.tt-popup-select-banner__btn:hover {
	opacity: 0.9;
}
.tt-popup-select-avatar__btn-secondary,
.tt-popup-select-banner__btn-secondary {
	background: transparent;
	color: var(--tt-color-text);
	border: 1px solid var(--tt-color-green-lt);
	border-radius: var(--tt-radius-md);
	padding: 11px 24px;
	font-family: inherit;
	font-size: var(--tt-text-base);
	font-weight: var(--tt-weight-regular);
	cursor: pointer;
	transition: background 0.15s;
}
.tt-popup-select-avatar__btn-secondary:hover,
.tt-popup-select-banner__btn-secondary:hover {
	background: rgba(29, 153, 120, 0.06);
}

/* Mobile — slimmer paddings + smaller preview/thumbs */
@media (max-width: 600px) {
	.tt-popup-select-avatar__card,
	.tt-popup-select-banner__card {
		padding: 20px 16px;
	}
	.tt-popup-select-avatar__preview-image {
		width: 160px;
		height: 160px;
	}
	.tt-popup-select-avatar__thumb {
		width: 60px;
		height: 60px;
	}
	.tt-popup-select-banner__thumb {
		width: 120px;
	}
}

/* ════════════════════════════════════════════════════════════════════
   PARENT HELLO ELEMENTOR HOVER OVERRIDE — kill magenta everywhere on profile
   ────────────────────────────────────────────────────────────────────
   Hello Elementor parent theme's reset.css paints <button>:hover/:focus
   and <a>:hover with a magenta accent (#c36) site-wide. Our profile pages
   use their own styled-button system (.profile-hero__btn, .profile-account__btn,
   .twist-follow-btn, .profile-network-btn, .profile-howto-item__cta) where
   each component owns its hover. This block:

     1. Scopes the override to .profile (we don't touch site-wide a:hover etc.)
     2. Wipes any inherited background-color / color from non-our-system
        buttons + links on hover
     3. Re-sets background on our STYLED buttons with !important so they
        keep their identity through hover

   Without this, the parent magenta wins the cascade on equal specificity
   because external parent CSS loads before child theme style.css, and
   parent likely uses !important. Scoping to .profile keeps the rest of
   the site (Elementor pages, blog, etc.) unchanged.
   ════════════════════════════════════════════════════════════════════ */

/* 1 — Universal magenta wipe inside .profile wrapper.
   Unstyled buttons + plain links lose the magenta paint. Our styled
   classes below re-set their own hover bg with !important to keep
   their look. */
.profile button:hover, .profile button:focus,
.profile [type="button"]:hover, .profile [type="button"]:focus,
.profile [type="submit"]:hover, .profile [type="submit"]:focus,
.profile [type="reset"]:hover, .profile [type="reset"]:focus {
	background-color: transparent !important;
	color: inherit !important;
	text-decoration: none !important;
}
.profile a:hover, .profile a:focus {
	color: inherit !important;
	background-color: transparent !important;
	text-decoration: none !important;
}

/* 2 — Re-assert hover styling for OUR styled buttons.
   Specificity-and-!important so we win over the universal wipe above
   plus any parent-theme rule. Each row mirrors the base-state bg so
   the button looks identical during hover (opacity-fade only). */
.profile .profile-account__btn:hover {
	background: var(--tt-color-green) !important;
	color: var(--tt-color-text) !important;
	opacity: 0.85;
}
.profile .profile-account__btn--secondary:hover {
	background: var(--profile-role-color, var(--tt-color-green)) !important;
	color: var(--tt-color-text) !important;
	opacity: 0.85;
}
.profile .profile-account__btn--danger:hover {
	background: var(--tt-color-danger) !important;
	color: var(--tt-color-text-white) !important;
	opacity: 1;
}
.profile .profile-hero__btn[data-profile-confirm="logout"]:hover {
	background: var(--tt-color-danger) !important;
	color: var(--tt-color-text-white) !important;
	opacity: 0.85;
}
.profile .profile-howto-item__cta:hover {
	background: var(--tt-alpha-green-15) !important;
	color: var(--tt-color-green-lt) !important;
}
.profile .profile-network-btn:hover {
	border-color: var(--profile-role-color, var(--tt-color-accent)) !important;
	color: var(--profile-role-color, var(--tt-color-accent)) !important;
}
.profile .profile-network-btn--defollow:hover {
	border-color: var(--tt-color-danger) !important;
	color: var(--tt-color-danger) !important;
}
.profile .profile-network-list__more:hover {
	border-color: var(--profile-role-color, var(--tt-color-accent)) !important;
	color: var(--profile-role-color, var(--tt-color-accent)) !important;
}
.profile .twist-follow-btn.is-following:hover {
	background: rgba(224,92,92,0.12) !important;
	color: var(--tt-color-danger) !important;
	box-shadow: inset 0 0 0 1px var(--tt-color-danger);
}

/* 3 — Mailto / contact-support link in My Account hint — Mint accent
   on hover instead of magenta (the universal wipe above kills magenta;
   this gives it back a visible hover). */
.profile-account__hint-link {
	color: var(--tt-color-green-lt);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.profile .profile-account__hint-link:hover,
.profile .profile-account__hint-link:focus {
	color: var(--tt-color-green) !important;
	text-decoration: underline !important;
}

/* ════════════════════════════════════════════════════════════════════
   MINI CTA — Blog Single Post Sidebar Widgets
   ────────────────────────────────────────────────────────────────────
   Compact CTA card used in the Blog Single Post page (Author Widget
   area). Two flavours render via [twist_become_creator_cta] and
   [twist_submit_blog_cta] — same markup, different copy + target URL.
   Mint-tinted background, centered, single primary button.
   ════════════════════════════════════════════════════════════════════ */
.twist-cta-mini {
	background: transparent;
	padding: var(--tt-space-4);
	text-align: left;
}
/* !important needed throughout — when this shortcode lives inside an
   Elementor widget (Text Editor, Shortcode), Elementor applies its own
   typography either via globals (--e-global-typography-*) or as inline
   style="" on the widget container. Without !important, our class
   selectors lose the cascade against Elementor's higher specificity
   and inline attributes. */
.twist-cta-mini__title {
	font-size: var(--tt-text-lg) !important;
	font-weight: var(--tt-weight-bold) !important;
	color: var(--tt-color-text) !important;
	line-height: var(--tt-leading-tight) !important;
	font-family: var(--tt-font-primary) !important;
	margin: 0 0 var(--tt-space-1) !important;
}
.twist-cta-mini__lead {
	font-size: var(--tt-text-base) !important;
	font-weight: var(--tt-weight-regular) !important;
	color: var(--tt-color-text) !important;
	line-height: var(--tt-leading-snug) !important;
	font-family: var(--tt-font-primary) !important;
	margin: 0 0 var(--tt-space-3) !important;
}
/* Layout extras for .twist-cta-mini__btn — visual chrome from the Primary
   button block further down. This block only sets layout-specific properties
   (block layout, centering, padding, font-size). */
.twist-cta-mini__btn {
	display: block;
	width: fit-content;
	margin: 0 auto;
	padding: 9px 18px;
	font-size: var(--tt-text-base);
}

/* ════════════════════════════════════════════════════════════════════
   MY ACCOUNT — Email Notifications additions (frequency picker, subsection
   headers, shared TWIST updates block).
   New elements added when My Account got the role-aware notification matrix
   per Chris's spec (Track B). All inherit the existing profile-account__*
   visual language (Card-BG, mint focus, Poppins, etc.) — see existing rules
   above. Only NEW class hooks styled here.
   ════════════════════════════════════════════════════════════════════ */

/* Field row — label + select stacked. Used for the Frequency picker. */
.profile-account__field {
	display: flex;
	flex-direction: column;
	gap: var(--tt-space-2);
	margin-top: var(--tt-space-3);
	margin-bottom: var(--tt-space-4);
	max-width: 380px;
}
.profile-account__field-label {
	font-size: var(--tt-text-md);
	font-weight: var(--tt-weight-semibold);
	color: var(--tt-color-text);
}

/* Select element — matches the textarea/input look in the modal/forms. */
.profile-account__select {
	background: var(--tt-color-bg) !important;
	color: var(--tt-color-text) !important;
	border: 1px solid rgba(255,255,255,0.08) !important;
	border-radius: 8px !important;
	padding: 10px 14px !important;
	font-family: inherit !important;
	font-size: var(--tt-text-base) !important;
	cursor: pointer;
	transition: border-color .2s;
	/* Native caret arrow stays browser-default; dark color-scheme on the
	   parent .profile-account makes Chrome/Safari render a dark caret. */
}
.profile-account__select:hover,
.profile-account__select:focus {
	outline: none !important;
	border-color: var(--tt-color-green-lt) !important;
}
/* Option styling — browser support varies. Firefox respects these fully;
   Chrome on macOS uses OS-native dropdown (handled by color-scheme:dark on
   .profile-account). The !important flags defend against Elementor's
   generic option-hover styles. */
.profile-account__select option {
	background: var(--tt-color-bg) !important;
	background-color: var(--tt-color-bg) !important;
	color: var(--tt-color-text) !important;
}
.profile-account__select option:checked,
.profile-account__select option:hover,
.profile-account__select option:focus {
	background: var(--tt-color-green) !important;
	background-color: var(--tt-color-green) !important;
	color: var(--tt-color-bg) !important;
}

/* Subsection title — used inside Email Notifications card to group
   role-specific channels, "Which creators?" filter, and Shared updates. */
.profile-account__subsection-title {
	font-size: var(--tt-text-base);
	font-weight: var(--tt-weight-semibold);
	color: var(--tt-color-text);
	margin: var(--tt-space-4) 0 var(--tt-space-2);
	line-height: var(--tt-leading-snug);
}
.profile-account__subsection-title:first-child {
	margin-top: var(--tt-space-3);
}

/* ════════════════════════════════════════════════════════════════════
   ACCOUNT TOAST — visible save-confirmation pattern (Option A).
   Fixed bottom-right of the viewport. Single shared element managed by
   ttShowAccountToast() in welcome.js. Used for every account-settings
   change (notifications, privacy, frequency, filter, creator picker).
   ════════════════════════════════════════════════════════════════════ */
.profile-account__toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999;
	background: var(--tt-color-green);
	color: var(--tt-color-text);
	padding: 10px 18px;
	border-radius: 8px;
	font-family: var(--tt-font-primary), sans-serif;
	font-size: var(--tt-text-md);
	font-weight: var(--tt-weight-semibold);
	box-shadow: 0 4px 16px rgba(0,0,0,0.4);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .25s, transform .25s;
	pointer-events: none;
}
.profile-account__toast--visible {
	opacity: 1;
	transform: translateY(0);
}
.profile-account__toast--error {
	background: var(--tt-color-danger);
}

/* ─────────────────────────────────────────────────────────────────────
   LIBRARY MODE — Personal view hides the marketing headline
   ─────────────────────────────────────────────────────────────────────
   The Library page (Elementor) carries a top headline section meant
   for the Public view ("Audiobooks don't talk back — TWIST Tales does"
   etc.). In Personal mode (?lib_mode=my) that headline is irrelevant
   and visually distracting — the user is already in their own library.

   Wiring: functions.php body_class filter adds `lib-mode-my` to <body>
   when the query param is present. The Elementor headline section gets
   the custom CSS class `library-headline` (set once in Elementor:
   Advanced → CSS Classes → library-headline). This rule hides it.
   Public mode (no query param or any other value) leaves it visible.
   ───────────────────────────────────────────────────────────────────── */
body.lib-mode-my .library-headline { display: none; }


/* ── Hero-Tier Buttons · gradient bg, dark text, white-on-hover + lift ──
   Big page-level conversion CTAs:
     .headerMyaccountBtn .btn   — Nav "Become a creator" (all 23 pages)
     .treg-submit               — Creator signup "Create account"
     .tplr-submit               — Player signup "Create my account"
     .tpns-btn / .tpop-btn      — Newsletter Subscribe
     .profile-cta__btn          — Profile "Become a Streamer"
     .about-us__btn-primary     — About hero "Listen to a story"
   Shared visual: gradient background, dark text, 14px radius, white-text
   + lift on hover. Per-selector extras (padding, layout, typography)
   live in their own rules elsewhere — this block only sets the shared
   visual chrome. */

.headerMyaccountBtn .btn,
.treg-submit,
.tplr-submit,
.tpns-btn,
.tpop-btn,
.profile-cta__btn,
.about-us__btn-primary {
  background: var(--tt-hero-bg);
  color: var(--tt-hero-color);
  border-radius: var(--tt-btn-radius);
  border: none;
  font-family: var(--tt-font-primary);
  font-weight: var(--tt-btn-weight);
  letter-spacing: -0.1px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--tt-btn-transition), transform var(--tt-transition-fast), box-shadow var(--tt-transition-base);
}

.headerMyaccountBtn .btn:hover,
.treg-submit:hover,
.tplr-submit:hover,
.tpns-btn:hover,
.tpop-btn:hover,
.profile-cta__btn:hover,
.about-us__btn-primary:hover {
  background: var(--tt-hero-bg-hover);
  color: var(--tt-hero-color-hover);
  transform: translateY(-1px);
  box-shadow: var(--tt-btn-lift-shadow);
}

.headerMyaccountBtn .btn:active,
.treg-submit:active,
.tplr-submit:active,
.tpns-btn:active,
.tpop-btn:active,
.profile-cta__btn:active,
.about-us__btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.headerMyaccountBtn .btn:focus-visible,
.treg-submit:focus-visible,
.tplr-submit:focus-visible,
.tpns-btn:focus-visible,
.tpop-btn:focus-visible,
.profile-cta__btn:focus-visible,
.about-us__btn-primary:focus-visible {
  outline: 2px solid var(--tt-alpha-green-40);
  outline-offset: 3px;
}


/* ── Primary-Tier Buttons · solid green bg, white text, lift on hover ──
   In-page workhorse action buttons:
     .twist-content .twist-btn          — "Submit Blogpost Request" — article
     .twist-cta-mini__btn               — "Sign Up Now" / "Submit Blog Post"
     .tt-popup-info__btn                — modal action (verification etc.)
     .tt-board-section__cta--primary    — "Host a Roundtable" — Learn page
     .tt-board-submit-cta               — "Submit a brief" — Earn toolbar
     .tt-board-posting__apply           — "Apply" — Earn per-posting card
     .tt-modal__btn--primary            — "Sign in" / "Close" — Earn modals
     .glsr-button                       — Site Reviews submit button
   Shared visual: solid bg (--tt-primary-bg), white text, 14px radius, hover
   = lift -1px + soft shadow + bg shift to --tt-primary-bg-hover. Per-selector
   extras (padding, layout, font-size) live in their own rules elsewhere.
   Variant note: .tt-popup-info__btn[data-status="error"] keeps its red fill
   via higher-specificity rule below in the popup-info section. */

.twist-content .twist-btn,
.twist-cta-mini__btn,
.tt-popup-info__btn,
.tt-board-section__cta--primary,
.tt-board-submit-cta,
.tt-board-posting__apply,
.tt-modal__btn--primary,
.glsr-button {
  background: var(--tt-primary-bg);
  color: var(--tt-primary-color);
  border-radius: var(--tt-btn-radius);
  border: none;
  font-family: var(--tt-font-primary);
  font-weight: var(--tt-btn-weight);
  letter-spacing: -0.1px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--tt-btn-transition), transform var(--tt-transition-fast), box-shadow var(--tt-transition-base);
}

/* Context dimensions for .twist-content .twist-btn — 48px tall + 28px horizontal padding. */
.twist-content .twist-btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  font-size: var(--tt-text-base);
}

.twist-content .twist-btn:hover,
.twist-cta-mini__btn:hover,
.tt-popup-info__btn:hover,
.tt-board-section__cta--primary:hover,
.tt-board-submit-cta:hover,
.tt-board-posting__apply:hover,
.tt-modal__btn--primary:hover,
.glsr-button:hover {
  background: var(--tt-primary-bg-hover);
  color: var(--tt-primary-color);
  transform: translateY(-1px);
  box-shadow: var(--tt-btn-lift-shadow);
}

.twist-content .twist-btn:active,
.twist-cta-mini__btn:active,
.tt-popup-info__btn:active,
.tt-board-section__cta--primary:active,
.tt-board-submit-cta:active,
.tt-board-posting__apply:active,
.tt-modal__btn--primary:active,
.glsr-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.twist-content .twist-btn:focus-visible,
.twist-cta-mini__btn:focus-visible,
.tt-popup-info__btn:focus-visible,
.tt-board-section__cta--primary:focus-visible,
.tt-board-submit-cta:focus-visible,
.tt-board-posting__apply:focus-visible,
.tt-modal__btn--primary:focus-visible,
.glsr-button:focus-visible {
  outline: 2px solid var(--tt-alpha-green-40);
  outline-offset: 3px;
}

/* Disabled state — must override .tt-modal__btn--primary[disabled] rgba background */
.twist-content .twist-btn:disabled,
.twist-cta-mini__btn:disabled,
.tt-popup-info__btn:disabled,
.tt-board-section__cta--primary:disabled,
.tt-board-submit-cta:disabled,
.tt-board-posting__apply:disabled,
.tt-modal__btn--primary:disabled,
.glsr-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* ── Secondary Buttons · solid green + white text · content-driving ──
   .tth-featured__cta             — Story Worlds hub "Enter Kadras →"
   .tt-load-more-btn              — Library + Blog "Load More"
   .about-us__btn-secondary       — About hero "Become a creator"
   Same visual chrome as Primary tier — kept as a semantic group for
   clarity (content-driving actions vs. form-submit actions). */

.tth-featured__cta,
.tt-load-more-btn,
.about-us__btn-secondary {
  background: var(--tt-primary-bg);
  color: var(--tt-primary-color);
  border-radius: var(--tt-btn-radius);
  border: none;
  font-family: var(--tt-font-primary);
  font-weight: var(--tt-btn-weight);
  letter-spacing: -0.1px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--tt-btn-transition), transform var(--tt-transition-fast), box-shadow var(--tt-transition-base);
}

.tth-featured__cta:hover,
.tt-load-more-btn:hover,
.about-us__btn-secondary:hover {
  background: var(--tt-primary-bg-hover);
  color: var(--tt-primary-color);
  transform: translateY(-1px);
  box-shadow: var(--tt-btn-lift-shadow);
}

.tth-featured__cta:active,
.tt-load-more-btn:active,
.about-us__btn-secondary:active {
  transform: translateY(0);
  box-shadow: none;
}

.tth-featured__cta:focus-visible,
.tt-load-more-btn:focus-visible,
.about-us__btn-secondary:focus-visible {
  outline: 2px solid var(--tt-alpha-green-40);
  outline-offset: 3px;
}

.tth-featured__cta:disabled,
.tt-load-more-btn:disabled,
.about-us__btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* ── OUTLINE · transparent + green border · external/cross-context ─────── */

.tt-board-section__cta--secondary,
.tt-board-event__cta,
.tt-board-join-btn,
.tt-board-posting__apply--ext {
  background: transparent;
  color: var(--tt-outline-color);
  border: var(--tt-outline-border);
  border-radius: var(--tt-btn-radius);
  font-family: var(--tt-font-primary);
  font-weight: var(--tt-btn-weight);
  letter-spacing: -0.1px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--tt-btn-transition);
}

.tt-board-section__cta--secondary:hover,
.tt-board-event__cta:hover,
.tt-board-join-btn:hover,
.tt-board-posting__apply--ext:hover {
  background: var(--tt-outline-bg-hover);
  color: var(--tt-outline-color);
  border-color: var(--tt-color-green);
}

.tt-board-section__cta--secondary:focus-visible,
.tt-board-event__cta:focus-visible,
.tt-board-join-btn:focus-visible,
.tt-board-posting__apply--ext:focus-visible {
  outline: 2px solid var(--tt-alpha-green-40);
  outline-offset: 3px;
}

.tt-board-section__cta--secondary:disabled,
.tt-board-event__cta:disabled,
.tt-board-join-btn:disabled,
.tt-board-posting__apply--ext:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* ─── Profile Hero — Primary CTA ("View Stories") ─────────────────────────
   FILLED role-color button. Single source of truth for .profile-hero__btn--primary.
   Background follows the cascade:
     1. --follow-role-color   (set inline on .twist-follow-btn-wrap by shortcode)
     2. --profile-role-color  (set on <main class="profile"> by template)
     3. --tt-color-green      (final fallback for non-profile contexts)
   Hover: text flips white, slight opacity dim. */

.profile-hero__btn--primary {
  background: var(--follow-role-color, var(--profile-role-color, var(--tt-color-green))) !important;
  color: var(--tt-color-bg-black) !important;
  border-radius: var(--tt-btn-radius) !important;
  border: none !important;
  font-family: var(--tt-font-primary);
  font-weight: var(--tt-btn-weight);
  letter-spacing: -0.1px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--tt-transition-base), color var(--tt-transition-base);
}

.profile-hero__btn--primary:hover {
  color: var(--tt-color-text-white) !important;
  opacity: 0.85;
}

.profile-hero__btn--primary:focus-visible {
  outline: 2px solid var(--profile-role-color, var(--tt-alpha-green-40));
  outline-offset: 3px;
}


/* ── Player-Review "Go to Story" link — inline text-link with arrow glyph ── */
/* Added 2026-05-15: was inverse-orphan (markup in functions.php had no CSS) */
.player-review-story-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--tt-space-2);
  color: var(--tt-color-green-lt);
  text-decoration: none;
  font-size: var(--tt-text-sm);
  font-weight: var(--tt-weight-semibold);
  font-family: var(--tt-font-primary);
  transition: color var(--tt-transition-base), transform var(--tt-transition-fast);
}
.player-review-story-btn:hover {
  color: var(--tt-color-green);
  transform: translateX(2px);
}


/* ── FILLED role-color · creator card · solid "View Profile" ───────────── */

.tt-card-creator__cta {
  /* Layout — moved here from tt-element-styles.php 2026-05-17, so style.css
     is the single source of truth for this button's visual + geometry. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  font-size: var(--tt-text-md);
  white-space: nowrap;
  position: relative;
  z-index: 2;
  /* Role-color BG via --tt-creator-role (set on .tt-card-creator--{role} in
     tt-element-styles.php lines 1884–1886). NOT --profile-role-color, which
     is only defined on .profile wrapper and doesn't reach creator cards. */
  background: var(--tt-creator-role, var(--tt-color-green)) !important;
  color: var(--tt-color-bg-black) !important;
  border-radius: var(--tt-btn-radius) !important;
  border: none !important;
  font-family: var(--tt-font-primary);
  font-weight: var(--tt-btn-weight);
  letter-spacing: -0.1px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--tt-btn-transition), transform var(--tt-transition-fast), box-shadow var(--tt-transition-base), filter var(--tt-transition-base);
}

.tt-card-creator__cta:hover {
  opacity: 1 !important;
  color: var(--tt-color-text-white) !important;
  transform: translateY(-1px);
  box-shadow: var(--tt-btn-lift-shadow);
  filter: brightness(1.08);
}

.tt-card-creator__cta:active {
  transform: translateY(0);
  box-shadow: none;
  filter: none;
}

.tt-card-creator__cta:focus-visible {
  outline: 2px solid var(--tt-creator-role, var(--tt-alpha-green-40));
  outline-offset: 3px;
}


/* ── Creator-Card Follow-Btn — consistency 2026-05-15 (#29) ─────────────
   Previously: OUTLINED override here (transparent + role-color border).
   Removed: now inherits .twist-follow-btn.not-following FILLED alias above
   (line ~5833). Result: Follow-Btn matches View-Profile sibling visually
   (both filled role-color) → consistent with Profile-Hero pattern.

   .is-following state falls through to functions.php base rule
   (background: var(--tt-color-bg-card) — dark grey card surface). */

/* Creator-Card Follow-Btn hover — REMOVED 2026-05-16 (universalisierte
   .twist-follow-btn.not-following:hover Regel an Z.5227 deckt diesen
   Selector vollständig ab, ohne `.profile`-Prefix gilt sie auch hier). */


/* ── Cancel/Link · Icon-Danger · Segment-Toggle Buttons ──────────────────
   Three small button families bundled below:
   - CANCEL/LINK     · mint underlined text → green on hover
   - ICON-DANGER     · 36px circle, grey default → red on hover
   - SEGMENT-TOGGLE  · pill switcher (transparent inactive → green active) */

/* ── CANCEL / LINK · mint underlined text → green on hover ─────────────── */

.tt-modal__btn--secondary,
.treg-add-btn,
.tt-filter-bar__reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none !important;
  border: none !important;
  border-bottom: 1.5px solid var(--tt-color-green-lt) !important;
  border-radius: 0 !important;
  color: var(--tt-color-green-lt) !important;
  font-family: var(--tt-font-primary);
  font-size: 15px;
  font-weight: var(--tt-weight-semibold);
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 4px 0 !important;
  height: auto;
  cursor: pointer;
  transition: color var(--tt-transition-base), border-bottom-color var(--tt-transition-base);
}

.tt-modal__btn--secondary:hover,
.treg-add-btn:hover,
.tt-filter-bar__reset:hover {
  color: var(--tt-color-green) !important;
  border-bottom-color: var(--tt-color-green) !important;
  background: none !important;
}

.tt-modal__btn--secondary:focus-visible,
.treg-add-btn:focus-visible,
.tt-filter-bar__reset:focus-visible {
  outline: 2px solid var(--tt-alpha-green-40);
  outline-offset: 4px;
}


/* ── ICON-DANGER · 36px circle, grey default → red on hover ────────────── */

.tt-modal__close,
.treg-channel-remove,
.treg-lang-remove {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--tt-color-text-soft) !important;
  border: 1px solid var(--tt-alpha-white-15) !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px;
  line-height: 1;
  transition: var(--tt-transition-base);
}

.tt-modal__close:hover,
.treg-channel-remove:hover,
.treg-lang-remove:hover {
  background: var(--tt-alpha-danger-10) !important;
  color: var(--tt-color-danger) !important;
  border-color: var(--tt-alpha-danger-30) !important;
}

.tt-modal__close:focus-visible,
.treg-channel-remove:focus-visible,
.treg-lang-remove:focus-visible {
  outline: 2px solid var(--tt-alpha-danger-30);
  outline-offset: 2px;
}


/* ── SEGMENT-TOGGLE · pill switcher (Library + Earn-chips) ─────────────── */

/* Container — wraps the pill items */
.tt-library-toggle {
  display: inline-flex;
  background: var(--tt-color-bg-chip);
  border: 1px solid var(--tt-alpha-white-07);
  border-radius: var(--tt-radius-full);
  padding: 4px;
  gap: 2px;
  margin: 0 0 24px;
}

/* Buttons — inactive = transparent + dim text; active = solid green + white */
.tt-library-toggle__btn,
.tt-board-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: var(--tt-radius-full) !important;
  background: transparent !important;
  border: none !important;
  color: var(--tt-color-text-dim) !important;
  font-family: var(--tt-font-primary);
  font-size: var(--tt-text-sm);
  font-weight: var(--tt-weight-semibold);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--tt-transition-base), color var(--tt-transition-base);
}

.tt-library-toggle__btn:hover,
.tt-board-chip:hover {
  color: var(--tt-color-text) !important;
  background: transparent !important;
}

.tt-library-toggle__btn.is-active,
.tt-board-chip.is-active {
  background: var(--tt-color-green) !important;
  color: #FFFFFF !important;
  border-color: var(--tt-color-green) !important;
}

.tt-library-toggle__btn.is-active:hover,
.tt-board-chip.is-active:hover {
  background: var(--tt-primary-bg-hover) !important;
  color: #FFFFFF !important;
}

.tt-library-toggle__btn:focus-visible,
.tt-board-chip:focus-visible {
  outline: 2px solid var(--tt-alpha-green-40);
  outline-offset: 2px;
}


/* ── .register-btn · scoped per auth-page wrapper ──────────────────────── */

/* SIGNIN — Hero */
.tt-auth-page--signin .register-btn {
  background: var(--tt-hero-bg);
  color: var(--tt-hero-color);
  border: none;
  border-radius: var(--tt-btn-radius);
  text-decoration: none;
  transition: var(--tt-btn-transition), transform var(--tt-transition-fast), box-shadow var(--tt-transition-base);
}
.tt-auth-page--signin .register-btn:hover {
  background: var(--tt-hero-bg-hover);
  color: var(--tt-hero-color-hover);
  transform: translateY(-1px);
  box-shadow: var(--tt-btn-lift-shadow);
}
.tt-auth-page--signin .register-btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.tt-auth-page--signin .register-btn:focus-visible {
  outline: 2px solid var(--tt-alpha-green-40);
  outline-offset: 3px;
}

/* FORGOT-PASSWORD — Primary */
.tt-auth-page--forgot-password .register-btn {
  background: var(--tt-primary-bg);
  color: var(--tt-primary-color);
  border: none;
  border-radius: var(--tt-btn-radius);
  text-decoration: none;
  transition: var(--tt-btn-transition), transform var(--tt-transition-fast), box-shadow var(--tt-transition-base);
}
.tt-auth-page--forgot-password .register-btn:hover {
  background: var(--tt-primary-bg-hover);
  color: var(--tt-primary-color);
  transform: translateY(-1px);
  box-shadow: var(--tt-btn-lift-shadow);
}
.tt-auth-page--forgot-password .register-btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.tt-auth-page--forgot-password .register-btn:focus-visible {
  outline: 2px solid var(--tt-alpha-green-40);
  outline-offset: 3px;
}


/* ── Page-level h1 + Hero name · display font + brand gradient ───────── */

/* ── Display headings · uses --tt-font-display token for h1 / h2 / hero name ─ */
h1,
h2,
.profile-hero__name {
  font-family: var(--tt-font-display);
  letter-spacing: -0.5px;
}

h1,
.profile-hero__name {
  background: var(--tt-text-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  /* Webkit fallback when background-clip is unsupported — keeps text visible */
  -webkit-text-fill-color: transparent;
}

/* Nested inline elements inside a gradient h1 inherit transparent by default,
   which would make them disappear. Restore for the link case. */
h1 a:not(.no-gradient),
.profile-hero__name a:not(.no-gradient) {
  background: var(--tt-text-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

/* Opt-out */
h1.no-gradient,
.profile-hero__name.no-gradient,
.no-gradient h1,
.no-gradient .profile-hero__name {
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  color: inherit;
  -webkit-text-fill-color: initial;
}

/* Creator name in the per-role colour (profile hero). Overrides the shared
   h1 gradient-clip so the name matches the role colour used on the cards. */
.profile-hero__name,
.profile-hero__name a:not(.no-gradient) {
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  color: var(--profile-role-color, var(--tt-color-green));
  -webkit-text-fill-color: var(--profile-role-color, var(--tt-color-green));
}


/* ═══════════════════════════════════════════════════════════════════════════
   SLIDER ARROWS — Module E (2026-05-15)
   ═══════════════════════════════════════════════════════════════════════════

   Two distinct slider contexts, two color treatments:

   1) .profile-carousel (Creator + Player Profile pages — Portfolio Tab, Other
      Creators, Other Players) → role-color background with white arrow.
      Cascades --profile-role-color from <main class="profile">.

   2) .twist-blog-slider (Related Blog Posts under each blog post) → dark green
      background with white arrow. No role context, brand color.

   Bonus: .tt-popup-select-avatar/banner__slider-arrow (Picker-Modal thumbnail
   strip) — same role-color-with-fallback chain. Modal is appended to body so
   role-color cascade doesn't reach it; falls back cleanly to dark green.

   Migrated from inline <style> blocks in profile-creator.php + profile-player.php
   (dedup'd ~30 lines × 2 files).
   ═══════════════════════════════════════════════════════════════════════════ */

/* Nav arrows: lifted into a reserved top band (padding-top) so they sit
   top-right above the cards, under the section title, and never overlap
   slide text. Swiper clips outside .swiper, so we reserve space rather than
   use negative offsets. Shared by ALL .profile-carousel instances. */
.profile-carousel .swiper-button-prev,
.profile-carousel .swiper-button-next {
  width: 36px;
  height: 36px;
  top: 50%;
  margin-top: 0;
  transform: translateY(-50%);
  border-radius: var(--tt-radius-full);
  background: transparent;
  border: 1px solid var(--tt-alpha-white-35);
  color: var(--tt-color-text-white);
  transition:
    background var(--tt-transition-base),
    border-color var(--tt-transition-base);
}
.profile-carousel .swiper-button-prev { left: 0;  right: auto; }
.profile-carousel .swiper-button-next { right: 0; left: auto; }
.profile-carousel .swiper-button-prev:hover,
.profile-carousel .swiper-button-next:hover {
  background: var(--tt-alpha-white-10);
  border-color: var(--tt-color-text-white);
}
.profile-carousel .swiper-button-prev::after,
.profile-carousel .swiper-button-next::after {
  font-size: var(--tt-text-sm);
  font-weight: var(--tt-weight-bold);
}
.profile-carousel .swiper-button-disabled { opacity: 0.4; }

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS + FILTER-BAR PRIMITIVES — Module F (2026-05-18)
   ═══════════════════════════════════════════════════════════════════════════

   Migrated from tt-element-styles.php / card_css() (Z.1558–2042) so style.css
   is the single source of truth for component visuals. The PHP function
   retains its JavaScript bookmark-click handler (needs PHP-side nonce/config).

   Contents (87 unique selectors):
     • Card primitives — tags, links, stars, rating chips
     • Story Card — full visual + 4 variant overrides
     • Blog Card — list/grid variant
     • Creator Card — base + role variants (--writer/--voice-actor/--streamer)
       Note: .tt-card-creator__cta (View Profile button) visual styles live
             above in the role-color profile-hero block, NOT here. This block
             contains the surrounding card structure, hero, actions, chips.
     • Filter-bar primitives — .tt-filter-bar + sub-elements, used by both
       Creators-Index and Story Library filter UIs.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CARD: Shared overlay tags ── */
.tt-card-tag { position: absolute; font-family: var(--tt-font-primary); line-height: 1; pointer-events: none; }
.tt-card-tag--genre { top: 10px; left: 10px; background: var(--tt-alpha-bg-card-alt-90); color: var(--tt-color-text); font-size: var(--tt-text-sm); font-weight: var(--tt-weight-regular); padding: 6px 12px; border-radius: 16px; backdrop-filter: blur(6px); }
.tt-card-tag--price { top: 10px; right: 10px; background: var(--tt-color-green); color: var(--tt-color-text-white); font-size: var(--tt-text-xs); font-weight: var(--tt-weight-bold); padding: 5px 12px; border-radius: 16px; letter-spacing: 0.4px; text-transform: uppercase; }
.tt-card-tag--lang  { bottom: 10px; right: 10px; background: var(--tt-alpha-bg-85); color: var(--tt-color-text); font-size: var(--tt-text-xs); font-weight: var(--tt-weight-semibold); padding: 4px 8px; border-radius: 5px; letter-spacing: 0.6px; backdrop-filter: blur(6px); }
.tt-card-tag--lang-mid { bottom: 36%; }
.tt-card-tag--sm { font-size: 10px; padding: 4px 9px; top: 8px; left: 8px; }
.tt-card-tag--price.tt-card-tag--sm { top: 8px; right: 8px; left: auto; }
.tt-card-tag--inline { position: static; display: inline-block; pointer-events: auto; }

/* ── CARD: link pattern (no nested anchors) ── */
.tt-card-link { color: inherit; text-decoration: none; outline: none; }
.tt-card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.tt-card-attr-link { position: relative; z-index: 2; color: var(--tt-color-green-lt); text-decoration: none; font-weight: var(--tt-weight-semibold); transition: color 0.15s; }
.tt-card-attr-link:hover { color: var(--tt-color-text); }
.tt-card-attr-name { color: var(--tt-color-text); font-weight: var(--tt-weight-semibold); }
.tt-card-attr-tba  { color: var(--tt-color-text-dim); font-style: italic; }

/* ── CARD: stars ── */
.tt-card-stars { display: inline-flex; gap: 1px; align-items: center; vertical-align: middle; }
.tt-card-stars__half { position: relative; display: inline-block; vertical-align: middle; }
.tt-card-stars__half svg { position: absolute; inset: 0; }
.tt-card-stars__half-fg { width: 50%; overflow: hidden; }
.tt-card-rating-c { display: inline-flex; align-items: center; gap: 5px; font-size: inherit; color: var(--tt-color-text-soft); font-weight: var(--tt-weight-semibold); }
.tt-card-rating-c__val   { color: var(--tt-color-text); font-weight: var(--tt-weight-semibold); }
.tt-card-rating-c__count { color: var(--tt-color-text-dim); }
.tt-card-rating-c--empty .tt-card-rating-c__val { color: var(--tt-color-text-dim); }
.tt-card-rating-empty    { font-size: inherit; color: var(--tt-color-text-dim); font-style: italic; }

/* ─── STORY CARD — single design
 *
 * Wide horizontal layout: 4:5 cover left, body right.
 * Atoms: cover overlays (genre, badges), body content rows,
 * footer (meta + bookmark + price). Typography aligned to
 * Creator Cards: title text-lg bold, teaser text-base,
 * attribution text-base, meta text-base. ─── */

/* ── Base + shared atoms ── */
.tt-card-story {
  position: relative;
  background: var(--tt-color-bg-card);
  border: 1px solid var(--tt-alpha-white-07);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
  color: var(--tt-color-text);
}
.tt-card-story:hover {
  border-color: var(--tt-alpha-green-lt-30);
  transform: translateY(-2px);
}

/* ── Cover (used by both layouts) ── */
.tt-card-story__cover {
  position: relative;
  background: var(--tt-color-bg-input);
  overflow: hidden;
}
.tt-card-story__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.tt-card-story:hover .tt-card-story__cover img {
  transform: scale(1.04);
}

/* Smoothen the image → body transition: bottom 20% of cover fades from
   transparent to card-bg, painting a soft dissolve over the photo edge.
   Sits above the image (z-index 1) but below the cover tags (z-index 2),
   so genre + status badges stay fully readable. */
.tt-card-story__cover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  background: linear-gradient(to bottom, transparent, var(--tt-color-bg-card));
  pointer-events: none;
  z-index: 1;
}

/* ── Cover overlays: genre + status badges in single top-left row ── */
.tt-card-story__cover-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: calc(100% - 24px);
  z-index: 2;
}
.tt-card-story__genre {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: var(--tt-text-sm);
  font-weight: var(--tt-weight-semibold);
  color: var(--tt-color-text);
  background: rgba(29, 153, 120, 0.92);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.tt-card-story__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: var(--tt-text-sm);
  font-weight: var(--tt-weight-semibold);
  line-height: 1.4;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.tt-card-story__badge--new {
  color: var(--tt-color-bg-black);
  background: rgba(235, 236, 87, 0.92);
}
.tt-card-story__badge--recommended {
  color: var(--tt-color-bg-black);
  background: rgba(235, 156, 10, 0.92);
}
.tt-card-story__badge--popular {
  color: var(--tt-color-bg-black);
  background: rgba(152, 166, 212, 0.92);
}

/* ── Body (used by both layouts) ── */
.tt-card-story__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.tt-card-story__title {
  font-weight: var(--tt-weight-bold);
  color: var(--tt-color-text);
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tt-card-story__title a { color: inherit; text-decoration: none; }
.tt-card-story__attr {
  font-size: var(--tt-text-base);
  color: var(--tt-color-text-soft);
  margin: 0;
  line-height: var(--tt-leading-snug);
}
.tt-card-story__teaser {
  font-size: var(--tt-text-base);
  font-weight: var(--tt-weight-regular);
  color: var(--tt-color-text-mute);
  margin: 0;
  line-height: var(--tt-leading-normal);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Footer row: meta left, actions (bookmark + price) right ── */
.tt-card-story__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.tt-card-story__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--tt-text-base);
  color: var(--tt-color-text-soft);
  flex-wrap: wrap;
}
.tt-card-story__sep { opacity: 0.5; }
.tt-card-story__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* CRITICAL: lift the actions row above .tt-card-link::after
     (z-index:1) which overlays the entire card to make the title
     click-anywhere. Without this stacking context the bookmark
     button click is captured by the overlay. */
  position: relative;
  z-index: 2;
}

/* Bookmark button — ghost / outline base, mint solid + white text
   when bookmarked. Mirrors Creator Follow button pattern. */
.tt-card-story .tt-card-story__bookmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: var(--tt-text-sm);
  font-weight: var(--tt-weight-semibold);
  line-height: 1;
  white-space: nowrap;
  color: var(--author-role-color, var(--profile-role-color, var(--tt-color-green)));
  background: var(--tt-color-bg);
  border: var(--tt-border-w-md) solid var(--author-role-color, var(--profile-role-color, var(--tt-color-green)));
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  position: relative;
  z-index: 3;
}
.tt-card-story .tt-card-story__bookmark:hover {
  color: var(--tt-color-text-white);
}
.tt-card-story .tt-card-story__bookmark.is-bookmarked {
  color: var(--tt-color-text-white);
  background: var(--author-role-color, var(--profile-role-color, var(--tt-color-green)));
  border-color: var(--author-role-color, var(--profile-role-color, var(--tt-color-green)));
}
.tt-card-story .tt-card-story__bookmark.is-bookmarked:hover {
  opacity: 0.85;
}
.tt-card-story .tt-card-story__bookmark svg path {
  fill: none;
  stroke: currentColor;
}
.tt-card-story .tt-card-story__bookmark.is-bookmarked svg path {
  fill: currentColor;
  stroke: currentColor;
}

.tt-card-story__price {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: var(--tt-text-base);
  font-weight: var(--tt-weight-bold);
  line-height: 1;
  white-space: nowrap;
}
.tt-card-story__price--free {
  color: var(--tt-color-text-white);
  background: var(--tt-color-accent);
  border: none;
  box-shadow: inset 0 0 0 2px var(--tt-color-text-white);
}

/* ── Layout — Editorial (16:9 cover top, body below) — single design ── */
.tt-card-story {
  display: flex;
  flex-direction: column;
}
.tt-card-story .tt-card-story__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.tt-card-story .tt-card-story__body {
  flex: 1;
  padding: 18px 20px 20px;
}
.tt-card-story .tt-card-story__title {
  font-size: var(--tt-text-h3);   /* heading-like UI → heading knob */
}


/* ═══════════════════════════════════════════════════════════════
 * BLOG CARDS — single design (Editorial)
 *
 * 16:9 featured image (with read-time tag overlay TR), body with
 * title + excerpt + author byline. Title text-lg, excerpt + byline
 * sized one notch up from previous variant for readability.
 * ═══════════════════════════════════════════════════════════════ */
.tt-card-blog { position: relative; background: var(--tt-color-bg-card); border: 1px solid var(--tt-alpha-white-07); border-radius: 12px; overflow: hidden; transition: border-color 0.2s, transform 0.2s; display: flex; flex-direction: column; height: 100%; }
.tt-card-blog:hover { border-color: var(--tt-alpha-green-lt-30); transform: translateY(-2px); }
.tt-card-blog__title a { color: inherit; text-decoration: none; }

/* Category tag — top-left of cover, primary green (was mint #74BEAB at 92%) */
.tt-card-blog__category {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: var(--tt-text-sm);
  font-weight: var(--tt-weight-semibold);
  color: var(--tt-color-text);
  background: rgba(29, 153, 120, 0.92);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  z-index: 2;
}

.tt-card-blog .tt-card-blog__cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tt-color-bg-input); flex-shrink: 0; }
.tt-card-blog .tt-card-blog__cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.4s; }
.tt-card-blog:hover .tt-card-blog__cover img { transform: scale(1.04); }
.tt-card-blog .tt-card-blog__body { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.tt-card-blog .tt-card-blog__title { font-size: var(--tt-text-h3); font-weight: var(--tt-weight-bold); color: var(--tt-color-text); margin: 0 0 8px; line-height: var(--tt-leading-snug); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-card-blog .tt-card-blog__excerpt { font-size: var(--tt-text-base); color: var(--tt-color-text-mute); margin: 0 0 14px; line-height: var(--tt-leading-normal); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tt-card-blog .tt-card-blog__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.tt-card-blog .tt-card-blog__byline { font-size: var(--tt-text-md); color: var(--tt-color-text-soft); margin: 0; line-height: var(--tt-leading-snug); }
.tt-card-blog .tt-card-blog__readtime { font-size: var(--tt-text-md); color: var(--tt-color-green-lt); line-height: var(--tt-leading-snug); white-space: nowrap; flex-shrink: 0; }

/* Blog-card author link — primary green (override the shared
   .tt-card-attr-link mint, which stays for story-card writer/VA links). */
.tt-card-blog .tt-card-attr-link { color: var(--tt-color-green); }
.tt-card-blog .tt-card-attr-link:hover { color: var(--tt-color-text); }

/* ═══════════════════════════════════════════════════════════════
 * CREATOR CARDS — A/B/C/D with role-aware coloring via CSS vars
 * ═══════════════════════════════════════════════════════════════ */
.tt-card-creator {
  --tt-creator-role: var(--tt-color-text-soft);
  --tt-creator-role-bg: var(--tt-alpha-white-07);
  --tt-creator-chip-bg: var(--tt-alpha-white-07);
  --tt-creator-chip-color: var(--tt-color-text-soft);
  position: relative;
  background: var(--tt-color-bg-card-alt);
  border: 1px solid var(--tt-alpha-white-07);
  border-radius: 14px;
  color: var(--tt-color-text);
  transition: border-color 0.2s, transform 0.2s;
}
.tt-card-creator:hover { transform: translateY(-2px); }
.tt-card-creator__name a { color: inherit; text-decoration: none; }

/* Role colors */
.tt-card-creator--writer       { --tt-creator-role: var(--tt-color-green-lt);  --tt-creator-role-bg: var(--tt-alpha-green-lt-18); --tt-creator-chip-bg: var(--tt-alpha-green-lt-18); --tt-creator-chip-color: var(--tt-color-green-lt); }
.tt-card-creator--voice-actor  { --tt-creator-role: var(--tt-color-accent);     --tt-creator-role-bg: var(--tt-alpha-accent-18);    --tt-creator-chip-bg: var(--tt-alpha-accent-18);   --tt-creator-chip-color: var(--tt-color-accent); }
.tt-card-creator--streamer     { --tt-creator-role: var(--tt-color-blue);       --tt-creator-role-bg: var(--tt-alpha-blue-15);      --tt-creator-chip-bg: var(--tt-alpha-blue-15);     --tt-creator-chip-color: var(--tt-color-blue); }

/* Shared atoms */
.tt-card-creator__role-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 16px; font-size: var(--tt-text-xs); font-weight: var(--tt-weight-semibold); color: var(--tt-creator-role); background: var(--tt-creator-role-bg); border: 1px solid var(--tt-creator-role); white-space: nowrap; }
.tt-card-creator__avail { font-size: var(--tt-text-xs); color: var(--tt-color-text-white); font-weight: var(--tt-weight-regular); }
.tt-card-creator__avail-dot { color: var(--tt-creator-role); }
/* Disable card-wide click overlay for creator cards — only View
   Portfolio button + name link should navigate, follow button must
   remain clickable. Story/blog cards keep the overlay (full-card
   link is desired there). */
.tt-card-creator .tt-card-link::after { display: none; }
.tt-card-creator__sep { color: var(--tt-color-text-dim); opacity: 0.5; }
.tt-card-creator__followers { font-size: var(--tt-text-xs); color: var(--tt-color-text-soft); }
.tt-card-creator__followers strong { color: var(--tt-color-text); font-weight: var(--tt-weight-semibold); }
.tt-card-creator__chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 16px; font-size: var(--tt-text-xs); font-weight: var(--tt-weight-semibold); color: var(--tt-creator-chip-color); background: var(--tt-creator-chip-bg); }
.tt-card-creator__rating { color: var(--tt-color-accent); font-weight: var(--tt-weight-semibold); }
/* .tt-card-creator__cta — visual styles moved to style.css (single source).
   2026-05-17: Removed local block so style.css owns the button visually,
   matching the Follow-Btn-via-style.css pattern. Role-color BG still
   driven by --tt-creator-role custom prop set on .tt-card-creator--{role}
   above (lines 1884–1886). */
.tt-card-creator__avatar {
  width: 80px !important; height: 80px !important;
  min-width: 80px !important; min-height: 80px !important;
  max-width: 80px !important; max-height: 80px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  border: 3px solid var(--tt-creator-role);
  flex-shrink: 0;
  background: var(--tt-color-bg-input);
}

/* Story-Coach badge — outer ring around the avatar (preserves the
   role-color border underneath). Applied via `.is-storycoach` modifier
   on the avatar img, set in render_creator_cc1() / profile-creator.php
   when user_meta `_tt_badge_storycoach` is truthy. */
.tt-card-creator__avatar.is-storycoach,
.profile-hero__avatar.is-storycoach {
  outline: 3px solid var(--tt-color-green-lime);
  outline-offset: 2px;
}

/* ─── CC layouts: shared atoms additions ─── */
.tt-card-creator__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tt-card-creator__stats { font-size: var(--tt-text-base); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; color: var(--tt-color-text-soft); }
.tt-card-creator__stats strong { color: var(--tt-color-text); font-weight: var(--tt-weight-semibold); }
.tt-card-creator__rating-star { font-size: var(--tt-text-lg); color: var(--tt-color-accent); }

/* Follow button — wrap layout only.
   Visual styling now lives in style.css (.twist-follow-btn.not-following
   FILLED alias) + functions.php base. Both also handle Profile-Hero context,
   so Creator-Card Follow now matches Profile-Hero pattern. Inline override
   removed 2026-05-15 (#29 consistency fix). */
.tt-card-creator .twist-follow-btn-wrap { display: inline-flex; }

/* ─── CC1: Editorial 2 (status row, big name, hero with avatar+actions
   inline, chips, bio, stats footer) ─── */
.tt-card-creator--cc1 { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.tt-card-creator--cc1:hover { border-color: var(--tt-creator-role); }
.tt-card-creator--cc1 .tt-card-creator__status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tt-card-creator--cc1 .tt-card-creator__role-badge { font-size: var(--tt-text-sm); padding: 5px 14px; }
.tt-card-creator--cc1 .tt-card-creator__avail { font-size: var(--tt-text-sm); }
.tt-card-creator--cc1 .tt-card-creator__name { font-size: var(--tt-text-h2); font-weight: var(--tt-weight-bold); margin: 0; line-height: 1.2; color: var(--tt-creator-role); }
.tt-card-creator--cc1 .tt-card-creator__hero { display: flex; align-items: center; gap: 14px; }
.tt-card-creator--cc1 .tt-card-creator__actions { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.tt-card-creator--cc1 .tt-card-creator__features { display: flex; gap: 6px; flex-wrap: wrap; }
.tt-card-creator--cc1 .tt-card-creator__bio { font-size: var(--tt-text-base); color: var(--tt-color-text); margin: 0; line-height: var(--tt-leading-normal); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tt-card-creator--cc1 .tt-card-creator__stats { margin-top: auto; padding-top: 4px; }

/* ─── FILTER BAR primitives ─── */
.tt-filter-bar { background: var(--tt-color-bg); padding: var(--tt-space-3) 0; box-sizing: border-box; font-family: var(--tt-font-primary); color: var(--tt-color-text); margin: var(--tt-space-4) 0 var(--tt-space-4); }
.tt-filter-bar--sticky { position: sticky; top: var(--tt-nav-height); z-index: var(--tt-z-sticky); }
.tt-filter-bar__inner { display: flex; gap: var(--tt-space-3); justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.tt-filter-bar__field { display: flex; flex-direction: column; gap: 0; min-width: var(--tt-creators-filter-field-min); flex: 0 1 var(--tt-creators-filter-field-basis); }
/* Visually hide labels but keep them for screen readers (sr-only) */
.tt-filter-bar__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tt-filter-bar__apply { padding: var(--tt-space-3) var(--tt-space-5); background: var(--tt-color-green); color: var(--tt-color-text-white); border: none; border-radius: 8px; font-family: var(--tt-font-primary); font-weight: var(--tt-weight-semibold); cursor: pointer; }

/* Search row — full-width row above the dropdowns by default.
   Library overrides this to inline (see tt-library-filter scope). */
.tt-filter-bar__search { flex: 1 1 100%; width: 100%; margin-bottom: var(--tt-space-2); }
.tt-filter-bar__search-inner { display: flex; align-items: stretch; gap: var(--tt-space-2); max-width: 640px; margin: 0 auto; }
.tt-filter-bar__search-scope { flex-shrink: 0; min-width: 140px; }
.tt-filter-bar__search-input {
  flex: 1; min-width: 0;
  background: var(--tt-color-bg-input);
  border: var(--tt-border-w-md) solid var(--tt-alpha-white-07);
  border-radius: 8px;
  padding: var(--tt-space-3) var(--tt-space-4);
  color: var(--tt-color-text);
  font-family: var(--tt-font-primary);
  font-size: var(--tt-text-base);
  line-height: 1.4;
  height: var(--tt-filter-h);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.tt-filter-bar__search-input::placeholder { color: var(--tt-color-text-dim); }
.tt-filter-bar__search-input:focus { border-color: var(--tt-color-green); }
.tt-filter-bar__search-btn {
  flex-shrink: 0;
  background: var(--tt-color-green);
  border: none;
  border-radius: 8px;
  padding: 0 var(--tt-space-3);
  color: var(--tt-color-text-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--tt-filter-h);
  box-sizing: border-box;
  transition: background-color 0.15s;
}
.tt-filter-bar__search-btn:hover { background: var(--tt-color-green-lt); }

/* Layout B — compact dropdowns: smaller basis so all 6 fit one row */
.tt-filter-bar--compact .tt-filter-bar__field { flex: 0 1 180px; min-width: 160px; }
.tt-filter-bar--compact .tt-filter-bar__inner { gap: var(--tt-space-2); }

/* Layout C — explicit row break inside the filter form */
.tt-filter-bar__break { flex: 1 1 100%; height: 0; margin: 0; padding: 0; }

/* Select2 alignment inside filter bar (long Writer/VA lists) */
.tt-filter-bar .select2-container { width: 100% !important; }

/* Filter-scoped dropdown sizing — bring tt-select3's native 17px
   font-size down to 14px (text-md) so all filter chrome matches.
   Min-height of the select2 wrapper recalculated against text-md
   to keep proportions tight. Scope is filter-bar + creators-filter
   only so other tt-select3 usages site-wide keep 17px.
   Note: .tt-dd__trigger needs !important because the custom-dropdown
   CSS uses !important across the board to defeat Elementor button
   theme styles. */
.tt-filter-bar .tt-select3 > select,
.tt-filter-bar .tt-select3 .select2-container--default .select2-selection--single .select2-selection__rendered,
.tt-creators-filter .tt-select3 > select,
.tt-creators-filter .tt-select3 .select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: var(--tt-text-md);
}
.tt-filter-bar .tt-select3--tt-dd .tt-dd__trigger,
.tt-creators-filter .tt-select3--tt-dd .tt-dd__trigger {
  font-size: var(--tt-text-md) !important;
}
.tt-filter-bar .tt-select3 .select2-container--default .select2-selection--single,
.tt-creators-filter .tt-select3 .select2-container--default .select2-selection--single {
  min-height: calc(var(--tt-text-md) * 1.4 + var(--tt-space-3) * 2);
}

@media (max-width: 720px) {
  .tt-filter-bar { padding: var(--tt-space-2) var(--tt-space-3); }
  .tt-filter-bar__inner { gap: var(--tt-space-2); }
  .tt-filter-bar__field { flex: 1 1 calc(50% - var(--tt-space-1)); min-width: var(--tt-creators-filter-field-min-mobile); }
  .tt-filter-bar__search-inner { flex-wrap: wrap; }
  .tt-filter-bar__search-scope { flex: 1 1 100%; }
  .tt-filter-bar__search-input { flex: 1 1 calc(100% - 56px); }
}

/* -------------------------------------------------------------
   BOTTOM-SHEET MODE -- mobile only
   Trigger, sheet-head, sheet-apply, backdrop are emitted in markup
   always; desktop hides them via the defaults below. Mobile media
   query (<= 768px) flips: dropdowns hide, trigger shows, form
   becomes a position:fixed bottom sheet that slides up on --open.
   ------------------------------------------------------------- */
.tt-filter-bar__trigger,
.tt-filter-bar__sheet-head,
.tt-filter-bar__sheet-apply,
.tt-filter-bar__backdrop { display: none; }

body.tt-no-scroll { overflow: hidden; }

@media (max-width: 768px) {
  /* Compact sticky bar: only the trigger shows; form contents hidden until opened. */
  .tt-filter-bar__inner { display: none; }

  .tt-filter-bar__trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--tt-space-2);
    padding: var(--tt-space-3) var(--tt-space-4);
    background: var(--tt-color-bg);
    color: var(--tt-color-text);
    border: var(--tt-border-w-md) solid var(--tt-color-green);
    border-radius: var(--tt-radius-md);
    font-family: var(--tt-font-primary);
    font-size: var(--tt-text-md);
    font-weight: var(--tt-weight-semibold);
    cursor: pointer;
    line-height: 1;
  }
  .tt-filter-bar__trigger svg { color: var(--tt-color-green); }
  .tt-filter-bar__trigger-count {
    background: var(--tt-color-green);
    color: var(--tt-color-text-white);
    padding: 2px var(--tt-space-2);
    border-radius: 999px;
    font-size: var(--tt-text-xs);
    font-weight: var(--tt-weight-semibold);
    line-height: 1.2;
    min-width: 16px;
    text-align: center;
  }

  /* Backdrop covers the rest of the viewport when sheet is open. */
  .tt-filter-bar__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--tt-alpha-black-72);
    opacity: 0;
    pointer-events: none;
    z-index: var(--tt-z-modal);
    transition: opacity var(--tt-transition-base);
  }

  /* Sheet: form becomes a fixed bottom panel. Default off-screen via
     translateY(100%); --open slides it up. */
  .tt-filter-bar--open .tt-filter-bar__inner {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    background: var(--tt-color-bg-card);
    border-radius: var(--tt-radius-lg) var(--tt-radius-lg) 0 0;
    box-shadow: var(--tt-shadow-xl);
    transform: translateY(0);
    transition: transform var(--tt-transition-base);
    z-index: calc(var(--tt-z-modal) + 1);
    overflow-y: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--tt-space-4);
    gap: var(--tt-space-3);
  }
  .tt-filter-bar--open .tt-filter-bar__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .tt-filter-bar__sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--tt-space-3);
    border-bottom: var(--tt-border-w-sm) solid var(--tt-alpha-white-07);
    margin-bottom: var(--tt-space-1);
  }
  .tt-filter-bar__sheet-title {
    font-size: var(--tt-text-lg);
    font-weight: var(--tt-weight-semibold);
    color: var(--tt-color-text);
  }
  .tt-filter-bar__sheet-close {
    background: var(--tt-alpha-white-10);
    border: none;
    color: var(--tt-color-text);
    width: 32px;
    height: 32px;
    border-radius: var(--tt-radius-md);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .tt-filter-bar__sheet-close:hover { background: var(--tt-alpha-white-20); }

  /* Fields stack vertically inside the sheet -- overrides the 720px-block
     2-col layout above. */
  .tt-filter-bar--open .tt-filter-bar__field {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
  }
  .tt-filter-bar--open .tt-filter-bar__search { margin-bottom: 0; flex: 0 0 auto; }

  /* Apply button: full-width primary action at sheet bottom. */
  .tt-filter-bar__sheet-apply {
    display: block;
    width: 100%;
    padding: var(--tt-space-3) var(--tt-space-5);
    background: var(--tt-color-green);
    color: var(--tt-color-text-white);
    border: none;
    border-radius: var(--tt-btn-radius);
    font-family: var(--tt-font-primary);
    font-weight: var(--tt-weight-semibold);
    font-size: var(--tt-text-md);
    cursor: pointer;
    margin-top: var(--tt-space-2);
  }

  .tt-filter-bar--open .tt-filter-bar__reset {
    align-self: center;
    margin-top: var(--tt-space-1);
  }

  /* Sticky bar centers the trigger horizontally on mobile. */
  .tt-filter-bar--sticky { text-align: center; }
}

/* ── Mobile breakpoints for story cards ── */
@media (max-width: 720px) {
  .tt-card-story .tt-card-story__body { padding: 16px; }
}

/* Chips — role-colored border for visual prominence (matches
   the role-badge treatment so feature chips read as part of
   the same role-color family) */
.tt-card-creator__chip {
  border: 1px solid var(--tt-creator-chip-color);
}

