/**
 * Tenerife Advisor app shell — full viewport, responsive (phone / tablet / desktop).
 * Loaded without landing.css / tenerife-hero on / (see layout_landing.php).
 */
body.ta-tiktok-app-mode.cms-landing-theme:not(.ta-app-listing-shell) {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--ta-bg-dark, #050508) !important;
    color: var(--ta-text, #ffffff) !important;
}

body.ta-tiktok-app-mode {
    overflow: hidden;
    background-color: var(--ta-bg-dark, #050508);
    color: var(--ta-text, #ffffff);
}

body.ta-tiktok-app-mode.cms-landing-theme:not(.ta-app-listing-shell) #brief-ai-lp {
    --bg-color: transparent;
    --text-main: var(--ta-text, #ffffff);
    --lp-bg-color: var(--ta-bg-dark, #050508);
    --lp-text-main: var(--ta-text, #ffffff);
    background: transparent !important;
    color: inherit;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    overflow: visible !important;
}

body.ta-tiktok-app-mode .lp-cms-header,
body.ta-tiktok-app-mode .lp-landing-shell > .cms-layout-module,
body.ta-tiktok-app-mode .site-footer,
body.ta-tiktok-app-mode #brief-ai-lp > .cms-layout-module {
    display: none !important;
}

body.ta-tiktok-app-mode:not(.ta-app-listing-shell) #brief-ai-lp {
    padding: 0;
    margin: 0;
    max-width: none;
}

.ta-tiktok-app {
    /* Platz für Bottom-Nav inkl. höherer Glas-Leiste + Abstand über Home-Indikator (iPhone) */
    --ta-nav-h: 92px;
    --ta-top-h: max(64px, calc(env(safe-area-inset-top) + 58px));
    --ta-type-bar-h: 0px;
    --ta-shell-pad-x: clamp(16px, 4vw, 32px);
    --ta-content-max: 100%;
    --ta-feed-max: 100%;
    --ta-shell-max: 100%;
    --ta-glass: var(--ta-glass-bg, rgba(255, 255, 255, 0.1));
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 200;
    background: var(--ta-bg-dark, #050508);
    color: var(--ta-text, #ffffff);
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.ta-tiktok-app *,
.ta-tiktok-app *::before,
.ta-tiktok-app *::after {
    box-sizing: border-box;
}

.ta-tiktok-view {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding-top: var(--ta-top-h);
    animation: taTiktokFade 0.35s ease-out;
}

#ta-view-feed.ta-tiktok-view,
#ta-view-profile.ta-tiktok-view {
    padding-top: 0;
}

.ta-tiktok-view.is-active {
    display: flex;
}

#ta-view-home.is-active .ta-tiktok-home-scroll,
#ta-view-profile.is-active .ta-tiktok-profile {
    flex: 1;
    min-height: 0;
}

#ta-view-profile.is-active .ta-tiktok-profile {
    display: flex;
    flex-direction: column;
}

#ta-view-feed.ta-tiktok-view.is-active {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#ta-view-feed .ta-tiktok-discover-wrap {
    padding-top: var(--ta-top-h);
}

#ta-view-feed .ta-tiktok-discover-wrap--feed {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 0;
}

#ta-view-feed:has(.ta-tiktok-type-bar) .ta-tiktok-discover-wrap {
    padding-top: 0;
}

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

/* —— Top bar: Logo | Kategorien (mittig) | Sprache —— */
.ta-tiktok-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 90;
    padding: max(8px, env(safe-area-inset-top)) max(20px, var(--ta-shell-pad-x)) 8px;
    border-bottom: 1px solid var(--ta-glass-border);
    background: rgba(11, 15, 25, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
}

html:not([data-lp-color-scheme="dark"]) .ta-tiktok-top {
    background: rgba(243, 246, 251, 0.92);
}

.ta-tiktok-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 20px;
    width: 100%;
    max-width: var(--ta-shell-max);
    margin: 0 auto;
    pointer-events: auto;
}

.ta-tiktok-top.ta-ng-top-nav,
.ta-ng-top-nav {
    pointer-events: none;
}

.ta-ng-top-left,
.ta-ng-top-right,
.ta-ng-top-center,
.ta-ng-top-badge,
.ta-ng-top-tab,
.ta-ng-lang-cluster,
.ta-ng-tools-cluster,
.ta-ng-top-nav .lp-nav-badge,
.ta-ng-top-nav .lp-theme-toggle {
    pointer-events: auto;
}

.ta-tiktok-top-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: min(42vw, 220px);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ta-text);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.ta-tiktok-top-logo:hover {
    color: var(--ta-primary);
}

.ta-tiktok-top .lp-logo__img {
    display: none;
    width: auto;
    max-width: 100%;
    max-height: 2.5rem;
    height: auto;
    object-fit: contain;
}

body.ta-tiktok-app-mode .ta-tiktok-top .lp-logo.has-light-logo .lp-logo__img--light {
    display: block !important;
}

body.ta-tiktok-app-mode .ta-tiktok-top .lp-logo.has-light-logo .lp-logo__text {
    display: none;
}

body.ta-tiktok-app-mode .ta-tiktok-top .lp-logo .lp-logo__img--dark {
    display: none !important;
}

body.ta-tiktok-app-mode .ta-tiktok-top .lp-logo:not(.has-light-logo) .lp-logo__text {
    display: inline;
}

.ta-tiktok-top-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 0.45rem;
}

.ta-ng-tools-cluster {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.ta-tiktok-top-end .lp-cms-nav-cluster {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    min-height: 0;
}

body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.55rem;
    height: 2.55rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--ta-glass-border);
    background: var(--ta-glass);
    color: var(--ta-text);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-nav-badge--lang-trigger,
body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-nav-badge--site-menu-trigger {
    gap: 8px;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
}

body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-lang-trigger-name,
body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-site-menu-trigger-text {
    display: inline-block;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-nav-badge--lang-trigger,
    body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-nav-badge--site-menu-trigger,
    body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-theme-toggle {
        width: 2.35rem;
        min-width: 2.35rem;
        height: 2.35rem;
        padding: 0 !important;
        gap: 0;
    }

    body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-lang-trigger-name,
    body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-site-menu-trigger-text {
        display: none;
    }

    body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .ta-ng-top-badge--ghost {
        width: 2.35rem;
        min-width: 2.35rem;
        height: 2.35rem;
    }
}

/* Pill-Buttons wie food-king / lp-cms-header (landing.css), lesbar auf dunklem App-Header */
body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-nav-badge--lang-trigger,
body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-nav-badge--site-menu-trigger,
body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-theme-toggle {
    color: var(--ta-text);
    border-color: var(--ta-glass-border);
    background: var(--ta-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-nav-badge--lang-trigger:hover,
body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-nav-badge--site-menu-trigger:hover,
body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-theme-toggle:hover,
body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-nav-badge--lang-trigger:focus-visible,
body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-nav-badge--site-menu-trigger:focus-visible,
body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .lp-theme-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .ta-ng-sound-badge {
    padding: 0;
}

body.ta-tiktok-app-mode .ta-tiktok-top .ta-ng-sound-badge svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.ta-tiktok-app-mode .ta-tiktok-top .ta-ng-sound-badge .ta-ng-sound-icon-speaker {
    fill: currentColor;
    stroke: none;
}

body.ta-tiktok-app-mode .ta-tiktok-top .ta-ng-sound-badge .ta-ng-sound-icon-wave {
    opacity: 1;
    transition: opacity 0.2s ease;
}

body.ta-tiktok-app-mode .ta-tiktok-top .ta-ng-sound-badge .ta-ng-sound-icon-off {
    opacity: 0;
    transition: opacity 0.2s ease;
}

@keyframes ta-sound-muted-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.14);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(248, 113, 113, 0);
    }
}

body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .ta-ng-sound-badge.is-muted {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(127, 29, 29, 0.34);
    animation: ta-sound-muted-pulse 1.4s ease-in-out infinite;
}

body.ta-tiktok-app-mode .ta-tiktok-top .ta-ng-sound-badge.is-muted .ta-ng-sound-icon-wave {
    opacity: 0;
}

body.ta-tiktok-app-mode .ta-tiktok-top .ta-ng-sound-badge.is-muted .ta-ng-sound-icon-off {
    opacity: 1;
}

body.ta-tiktok-app-mode.cms-landing-theme .ta-tiktok-top .ta-ng-top-badge--ghost {
    display: inline-flex;
    width: 2.55rem;
    min-width: 2.55rem;
    height: 2.55rem;
    padding: 0 !important;
    font-size: 0;
    line-height: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Theme-Toggle: Mond/Sonne Icons – landing.css wird im TikTok-Modus nicht geladen */
body.ta-tiktok-app-mode .ta-tiktok-top .lp-theme-icon {
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

body.ta-tiktok-app-mode .ta-tiktok-top .lp-theme-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Light Mode: Mond zeigen (= "zu Dark wechseln") */
body.ta-tiktok-app-mode .ta-tiktok-top .lp-theme-icon--moon {
    display: inline-flex;
}

/* Dark Mode: Sonne zeigen (= "zu Light wechseln") */
html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode .ta-tiktok-top .lp-theme-icon--sun {
    display: inline-flex;
}

html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode .ta-tiktok-top .lp-theme-icon--moon {
    display: none;
}

@keyframes lp-nav-menu-gradient-pan {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Popups über App-Shell — Hell + Dunkel wie landing.css */
body.ta-tiktok-app-mode .lp-lang-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    align-items: flex-start;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow-y: auto;
}

body.ta-tiktok-app-mode .lp-lang-popup-overlay:not([hidden]) {
    display: flex;
}

body.ta-tiktok-app-mode .lp-lang-popup-content {
    position: relative;
    width: min(100%, 920px);
    margin: 28px auto;
    padding: 1.35rem 1.15rem 1.15rem;
    border-radius: 22px;
    color: var(--lp-text-main, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body.ta-tiktok-app-mode .lp-lang-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--lp-dashboard-border, #e2e8f0);
    border-radius: 999px;
    color: var(--lp-text-muted, #64748b);
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

body.ta-tiktok-app-mode .lp-lang-popup-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--lp-text-main, #0f172a);
    border-color: rgba(0, 0, 0, 0.1);
}

body.ta-tiktok-app-mode .lp-lang-popup-heading {
    margin: 0 0 12px;
    padding-right: 44px;
    font-family: "Outfit", "Inter", system-ui, -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--lp-ai-blue, #3b82f6), var(--lp-ai-purple, #8b5cf6), var(--lp-ai-pink, #ec4899));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

body.ta-tiktok-app-mode .lp-lang-popup-grid.iro-language-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
}

@media (min-width: 900px) {
    body.ta-tiktok-app-mode .lp-lang-popup-grid.iro-language-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

body.ta-tiktok-app-mode #lp-site-lang-popup-dialog .lp-lang-popup-btn.iro-lang-btn,
body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-lang-popup-btn.iro-lang-btn,
body.ta-tiktok-app-mode #ta-tiktok-create-sheet .lp-lang-popup-btn.iro-lang-btn {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 42px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(148, 163, 184, 0.26) !important;
    border-radius: 12px !important;
    font-family: "Outfit", "Inter", system-ui, -apple-system, sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em !important;
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none !important;
}

body.ta-tiktok-app-mode #lp-site-lang-popup-dialog .lp-lang-popup-btn.iro-lang-btn:hover,
body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-lang-popup-btn.iro-lang-btn:hover,
body.ta-tiktok-app-mode #ta-tiktok-create-sheet .lp-lang-popup-btn.iro-lang-btn:hover {
    border-color: color-mix(in srgb, var(--lp-ai-blue, #3b82f6) 40%, transparent) !important;
    background: rgba(255, 255, 255, 0.92) !important;
}

body.ta-tiktok-app-mode #lp-site-lang-popup-dialog .lp-lang-popup-btn.iro-lang-btn.is-current,
body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-lang-popup-btn.iro-lang-btn.is-current,
body.ta-tiktok-app-mode #lp-site-lang-popup-dialog .lp-lang-popup-btn.iro-lang-btn[aria-current="true"],
body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-lang-popup-btn.iro-lang-btn[aria-current="true"] {
    color: #0f172a !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body.ta-tiktok-app-mode #lp-site-lang-popup-dialog .lp-lang-popup-btn.iro-lang-btn.is-current::after,
body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-lang-popup-btn.iro-lang-btn.is-current::after,
body.ta-tiktok-app-mode #lp-site-lang-popup-dialog .lp-lang-popup-btn.iro-lang-btn[aria-current="true"]::after,
body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-lang-popup-btn.iro-lang-btn[aria-current="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        var(--lp-ai-blue, #3b82f6),
        var(--lp-ai-purple, #a855f7),
        var(--lp-ai-pink, #ec4899),
        var(--lp-ai-purple, #a855f7),
        var(--lp-ai-blue, #3b82f6)
    );
    background-size: 200% 100%;
    animation: lp-nav-menu-gradient-pan 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

body.ta-tiktok-app-mode #lp-site-lang-popup-dialog .lp-lang-popup-btn.iro-lang-btn.is-current > *,
body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-lang-popup-btn.iro-lang-btn.is-current > *,
body.ta-tiktok-app-mode #lp-site-lang-popup-dialog .lp-lang-popup-btn.iro-lang-btn[aria-current="true"] > *,
body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-lang-popup-btn.iro-lang-btn[aria-current="true"] > * {
    position: relative;
    z-index: 1;
}

body.ta-tiktok-app-mode .lp-lang-popup-flag {
    display: inline-block !important;
    font-size: 1.15em !important;
    line-height: 1 !important;
    margin-top: -1px !important;
}

body.ta-tiktok-app-mode .lp-lang-popup-flag img {
    display: block;
    width: auto;
    height: 1.15em;
    max-height: 1.25em;
    margin: 0;
    border-radius: 2px;
    object-fit: cover;
}

body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-site-menu-section-label {
    grid-column: 1 / -1;
    margin: 0.3rem 0 0.1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--lp-nav-badge-border, rgba(148, 163, 184, 0.25));
    font-family: "Outfit", "Inter", system-ui, -apple-system, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lp-text-muted, rgba(100, 116, 139, 0.95));
}

body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-site-menu-popup-form {
    display: contents;
}

/* Popups: Dark Mode */
html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode .lp-lang-popup-overlay {
    background-color: rgba(0, 0, 0, 0.55);
}

html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode .lp-lang-popup-content {
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode .lp-lang-popup-close {
    border-color: rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}

html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode .lp-lang-popup-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.5);
}

html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode .lp-lang-popup-heading {
    background: linear-gradient(135deg, #93c5fd, #c4b5fd, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode #lp-site-lang-popup-dialog .lp-lang-popup-btn.iro-lang-btn,
html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-lang-popup-btn.iro-lang-btn,
html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode #ta-tiktok-create-sheet .lp-lang-popup-btn.iro-lang-btn {
    background: rgba(30, 41, 59, 0.86) !important;
    border-color: rgba(100, 116, 139, 0.44) !important;
    color: #e5edf6 !important;
}

html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode #lp-site-lang-popup-dialog .lp-lang-popup-btn.iro-lang-btn:hover,
html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-lang-popup-btn.iro-lang-btn:hover,
html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode #ta-tiktok-create-sheet .lp-lang-popup-btn.iro-lang-btn:hover {
    border-color: color-mix(in srgb, var(--lp-ai-purple, #a855f7) 40%, transparent) !important;
    background: rgba(30, 41, 59, 0.86) !important;
}

html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode #lp-site-lang-popup-dialog .lp-lang-popup-btn.iro-lang-btn.is-current,
html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-lang-popup-btn.iro-lang-btn.is-current,
html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode #lp-site-lang-popup-dialog .lp-lang-popup-btn.iro-lang-btn[aria-current="true"],
html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-lang-popup-btn.iro-lang-btn[aria-current="true"] {
    color: #e5edf6 !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-lp-color-scheme="dark"] body.ta-tiktok-app-mode #lp-site-menu-popup-dialog .lp-site-menu-section-label {
    color: rgba(203, 213, 225, 0.75);
    border-top-color: rgba(255, 255, 255, 0.12);
}

.ta-tiktok-chip {
    flex: 0 0 auto;
    border: 1px solid var(--ta-glass-border);
    background: var(--ta-glass);
    color: var(--ta-text);
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1.2;
}

.ta-tiktok-chip.is-active {
    background: linear-gradient(45deg, var(--ta-primary), var(--ta-accent));
    border-color: transparent;
}

/* —— Home —— */
.ta-tiktok-home-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px var(--ta-shell-pad-x) calc(var(--ta-nav-h) + 28px);
    -webkit-overflow-scrolling: touch;
    background:
        radial-gradient(circle at 88% 2%, rgba(56, 189, 248, 0.22), transparent 34%),
        radial-gradient(circle at 12% 16%, rgba(236, 72, 153, 0.18), transparent 36%),
        linear-gradient(180deg, rgba(139, 92, 246, 0.12), transparent 38%);
}

.ta-tiktok-home-inner {
    width: 100%;
    max-width: var(--ta-feed-max);
    margin: 0 auto;
}

.ta-tiktok-home-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ta-tiktok-home-footer {
    width: calc(100% + (2 * var(--ta-shell-pad-x)));
    max-width: 100vw;
    margin: 28px calc(-1 * var(--ta-shell-pad-x)) 0;
}

.ta-tiktok-home-footer .gemini-footer {
    border-radius: 24px 24px 0 0;
}

.ta-tiktok-home-hero {
    text-align: left;
    padding: 4px 0 2px;
}

.ta-tiktok-home-hero-card {
    position: relative;
    overflow: hidden;
    padding: 22px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.2), transparent 26%),
        radial-gradient(circle at 92% 4%, rgba(56, 189, 248, 0.26), transparent 32%),
        linear-gradient(145deg, rgba(139, 92, 246, 0.24), rgba(236, 72, 153, 0.12) 48%, rgba(255, 255, 255, 0.07));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.ta-tiktok-home-hero-card::before {
    content: '';
    position: absolute;
    inset: -35% auto auto 42%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    filter: blur(2px);
    pointer-events: none;
}

.ta-tiktok-home-hero-card > * {
    position: relative;
    z-index: 1;
}

.ta-tiktok-eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ta-accent);
}

.ta-tiktok-home-hero h1,
.ta-tiktok-home-title {
    max-width: none;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: clamp(1.65rem, 8.5vw, 2.65rem);
    margin: 0 0 12px;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.ta-tiktok-home-title__line,
.ta-tiktok-home-title__accent {
    display: block;
}

.ta-tiktok-home-title__accent {
    color: var(--ta-accent);
}

.ta-tiktok-home-lead {
    color: var(--ta-muted);
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.5;
    max-width: 42rem;
    white-space: pre-line;
}

.ta-tiktok-preview {
    margin: 2px 0;
}

.ta-tiktok-preview-title {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ta-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.86;
}

.ta-tiktok-preview-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ta-tiktok-preview-rail::-webkit-scrollbar {
    display: none;
}

.ta-tiktok-home-types {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 1px 0 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ta-tiktok-home-types::-webkit-scrollbar {
    display: none;
}

.ta-tiktok-home-type-chip {
    border: 1px solid var(--ta-glass-border);
    border-radius: 999px;
    flex: 0 0 auto;
    padding: 9px 13px;
    color: var(--ta-text);
    background: rgba(255, 255, 255, 0.09);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ta-tiktok-home-services,
.ta-tiktok-home-pulse {
    margin: 4px 0 2px;
}

.ta-tiktok-home-service-grid {
    display: grid;
    gap: 9px;
}

.ta-tiktok-home-service-card {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
        var(--ta-glass);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}

.ta-tiktok-home-service-card h3 {
    margin: 0 0 6px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ta-tiktok-home-service-card p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--ta-muted);
}

.ta-tiktok-home-pulse-list {
    display: grid;
    gap: 8px;
}

.ta-tiktok-home-pulse-item {
    display: block;
    padding: 12px 13px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.075);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ta-tiktok-home-pulse-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.11);
}

.ta-tiktok-home-pulse-item strong,
.ta-tiktok-home-pulse-item span {
    display: block;
}

.ta-tiktok-home-pulse-item strong {
    font-size: 0.88rem;
    letter-spacing: -0.02em;
}

.ta-tiktok-home-pulse-item span {
    margin-top: 2px;
    color: var(--ta-muted);
    font-size: 0.78rem;
}

.ta-tiktok-home-pulse-empty {
    margin: 0;
    color: var(--ta-muted);
}

.ta-tiktok-preview-card {
    position: relative;
    flex: 0 0 clamp(148px, 44vw, 198px);
    width: clamp(148px, 44vw, 198px);
    aspect-ratio: 9 / 16;
    height: auto;
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;

    /* Editorial / Passepartout — lokale Fonts (landing-fonts-slim) */
    --ta-ed-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ta-ed-dur: 0.78s;
    --ta-ed-font-ui: 'Inter', system-ui, -apple-system, sans-serif;
    --ta-ed-font-accent: 'Manrope', 'Inter', system-ui, sans-serif;
    --ta-ed-font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --ta-ed-matte: #fcfaf7;
    --ta-ed-matte-border: #e6e2da;
    --ta-ed-text-matte: #12161a;
    --ta-ed-gold: #c29f6e;
    --ta-ed-title-on-photo: #ffffff;
    --ta-ed-sub-on-photo: rgba(255, 255, 255, 0.78);

    font-family: var(--ta-ed-font-ui);
    color: var(--ta-ed-text-matte);
    background: var(--ta-ed-matte);
    border: 1px solid var(--ta-ed-matte-border);
    box-shadow:
        0 26px 62px -22px rgba(18, 22, 26, 0.18),
        0 12px 26px -12px rgba(18, 22, 26, 0.08);
    transition: box-shadow var(--ta-ed-dur) var(--ta-ed-ease);
}

html[data-lp-color-scheme='dark'] .ta-tiktok-preview-card {
    --ta-ed-matte: #1c1f28;
    --ta-ed-matte-border: rgba(255, 255, 255, 0.1);
    --ta-ed-text-matte: #f4f4f5;
    --ta-ed-gold: #d4b88a;
    --ta-ed-title-on-photo: #ffffff;
    --ta-ed-sub-on-photo: rgba(255, 255, 255, 0.78);
    box-shadow:
        0 28px 64px -20px rgba(0, 0, 0, 0.55),
        0 12px 28px -12px rgba(0, 0, 0, 0.35);
}

button.ta-tiktok-preview-card {
    cursor: pointer;
    font: inherit;
    text-align: left;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    color: inherit;
}

.ta-tiktok-preview-card--filter.is-active {
    outline: 2px solid var(--ta-neon-primary, #00f2fe);
    outline-offset: 3px;
    box-shadow:
        0 28px 64px -20px rgba(0, 242, 254, 0.12),
        0 12px 28px -12px rgba(0, 0, 0, 0.35);
}

.ta-tiktok-preview-card:focus-visible {
    outline: 2px solid var(--ta-primary, #8b5cf6);
    outline-offset: 3px;
}

.ta-tiktok-preview-card--filter:focus-visible {
    outline: 2px solid var(--ta-neon-primary, #00f2fe);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
.ta-tiktok-preview-card:hover {
        box-shadow:
            0 36px 78px -26px rgba(18, 22, 26, 0.22),
            0 16px 32px -14px rgba(18, 22, 26, 0.1);
    }

    html[data-lp-color-scheme='dark'] .ta-tiktok-preview-card:hover {
        box-shadow:
            0 38px 80px -22px rgba(0, 0, 0, 0.6),
            0 16px 34px -12px rgba(0, 0, 0, 0.4);
    }

    .ta-tiktok-preview-card:hover .ta-tiktok-preview-card__image-wrap {
        top: 46px;
        left: 14px;
        width: calc(100% - 28px);
        height: calc(100% - 138px);
        border-radius: 14px;
    }

    .ta-tiktok-preview-card:hover .ta-tiktok-preview-card__media {
        transform: scale(1.08);
    }

    .ta-tiktok-preview-card:hover .ta-tiktok-preview-card__vignette {
        opacity: 0;
    }

    .ta-tiktok-preview-card:hover .ta-tiktok-preview-card__meta-top {
        opacity: 1;
        transform: translateY(0);
    }

    .ta-tiktok-preview-card:hover .ta-tiktok-preview-card__title {
        color: var(--ta-ed-text-matte);
    }

    .ta-tiktok-preview-card:hover .ta-tiktok-preview-card__count {
        color: rgba(18, 22, 26, 0.52);
    }

    html[data-lp-color-scheme='dark'] .ta-tiktok-preview-card:hover .ta-tiktok-preview-card__count {
        color: rgba(244, 244, 245, 0.55);
    }
}

.ta-tiktok-preview-card__image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 27px;
    z-index: 1;
    transition:
        top var(--ta-ed-dur) var(--ta-ed-ease),
        left var(--ta-ed-dur) var(--ta-ed-ease),
        width var(--ta-ed-dur) var(--ta-ed-ease),
        height var(--ta-ed-dur) var(--ta-ed-ease),
        border-radius var(--ta-ed-dur) var(--ta-ed-ease);
}

.ta-tiktok-preview-card__media {
    position: absolute;
    inset: 0;
    display: block;
    background-color: #252a35;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.01);
    transition: transform var(--ta-ed-dur) var(--ta-ed-ease);
}

.ta-tiktok-preview-card__vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(18, 22, 26, 0) 40%, rgba(18, 22, 26, 0.66) 100%);
    transition: opacity var(--ta-ed-dur) var(--ta-ed-ease);
}

.ta-tiktok-preview-card__meta-top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 3;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
        opacity var(--ta-ed-dur) var(--ta-ed-ease),
        transform var(--ta-ed-dur) var(--ta-ed-ease);
}

.ta-tiktok-preview-card__category-line {
    display: block;
    font-family: var(--ta-ed-font-accent);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ta-ed-gold);
}

.ta-tiktok-preview-card__info-bottom {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.ta-tiktok-preview-card__title {
    font-family: var(--ta-ed-font-display);
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--ta-ed-title-on-photo);
    transition: color var(--ta-ed-dur) var(--ta-ed-ease);
}

.ta-tiktok-preview-card__count {
    font-family: var(--ta-ed-font-ui);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ta-ed-sub-on-photo);
    transition: color var(--ta-ed-dur) var(--ta-ed-ease);
}

@media (max-width: 650px) {
    .ta-tiktok-preview-card {
        border-radius: 22px;
    }

    .ta-tiktok-preview-card__image-wrap {
        border-radius: 21px;
    }

    .ta-tiktok-preview-card__title {
        font-size: clamp(0.95rem, 4.5vw, 1.15rem);
    }

    .ta-tiktok-preview-card__category-line {
        font-size: 8px;
        letter-spacing: 0.16em;
    }

    .ta-tiktok-preview-card__count {
        font-size: 9px;
    }

    .ta-tiktok-preview-card__info-bottom {
        left: 12px;
        right: 12px;
        bottom: 14px;
    }

    .ta-tiktok-preview-card__meta-top {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    @media (hover: hover) and (pointer: fine) {
        .ta-tiktok-preview-card:hover .ta-tiktok-preview-card__image-wrap {
            top: 36px;
            left: 10px;
            width: calc(100% - 20px);
            height: calc(100% - 112px);
            border-radius: 11px;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .ta-tiktok-preview-card,
    .ta-tiktok-preview-card__image-wrap,
    .ta-tiktok-preview-card__media,
    .ta-tiktok-preview-card__vignette,
    .ta-tiktok-preview-card__meta-top,
    .ta-tiktok-preview-card__title,
    .ta-tiktok-preview-card__count {
        transition: none !important;
    }

    .ta-tiktok-preview-card__meta-top {
        opacity: 1;
        transform: none;
    }

    .ta-tiktok-preview-card__vignette {
        opacity: 0.35;
    }
}

.ta-tiktok-home-cta-wrap {
    text-align: left;
    padding: 4px 0 0;
}

.ta-tiktok-home-cta-wrap--hero {
    margin-top: 16px;
}

.ta-tiktok-cta {
    background: linear-gradient(45deg, var(--ta-primary), var(--ta-accent));
    color: #fff;
    border: none;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.35);
}

.ta-tiktok-home-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 15px;
}

.ta-tiktok-home-proof span {
    display: block;
    min-width: 0;
    padding: 9px 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.14);
    text-align: center;
}

.ta-tiktok-home-proof strong,
.ta-tiktok-home-proof small {
    display: block;
}

.ta-tiktok-home-proof small {
    color: var(--ta-muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ta-tiktok-home-proof strong {
    margin-top: 6px;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ta-tiktok-cta:active {
    transform: scale(0.96);
}

/* —— Discover: type filter + feed —— */
.ta-tiktok-type-bar {
    flex: 0 0 auto;
    position: relative;
    z-index: 85;
    padding: 10px var(--ta-shell-pad-x) 10px;
    margin-top: var(--ta-top-h);
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0.98), rgba(11, 15, 25, 0.85));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ta-tiktok-type-bar__scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    max-width: var(--ta-shell-max);
    margin: 0 auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ta-tiktok-type-bar__scroll::-webkit-scrollbar {
    display: none;
}

.ta-tiktok-discover-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    position: relative;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.12), transparent 70%),
        var(--ta-bg);
}

html:not([data-lp-color-scheme="dark"]) .ta-tiktok-discover-stage {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.ta-tiktok-discover-stage {
    width: 100%;
    max-width: var(--ta-feed-max);
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ta-tiktok-discover-stage.is-post-feed {
    max-width: min(100vw, 520px);
    background:
        radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(8, 13, 24, 0.98), rgba(3, 5, 10, 1));
}

.ta-tiktok-feed {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ta-tiktok-feed.is-post-grid {
    scroll-snap-type: none;
    scroll-behavior: auto;
    background:
        radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(7, 16, 30, 0.96), rgba(4, 7, 12, 1));
    min-height: 100%;
}

.ta-tiktok-feed.is-post-feed {
    background: transparent;
}

.ta-tiktok-feed::-webkit-scrollbar {
    display: none;
}

.ta-tiktok-feed-loading {
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ta-tiktok-feed-loading::after {
    content: '';
    width: 36px;
    height: 36px;
    border: 3px solid var(--ta-glass-border);
    border-top-color: var(--ta-primary);
    border-radius: 50%;
    animation: taTiktokSpin 0.8s linear infinite;
}

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

.ta-tiktok-discover-posts {
    min-height: 100%;
    padding: 14px var(--ta-shell-pad-x) calc(var(--ta-nav-h) + 16px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.ta-profile-posts-grid--discover {
    width: 100%;
    max-width: var(--ta-feed-max);
    margin: 0;
    gap: 4px;
}

.ta-profile-posts-grid--discover .ta-profile-post-item {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.ta-profile-posts-grid--discover .ta-profile-post-item > img,
.ta-profile-posts-grid--discover .ta-profile-post-item > video {
    border-radius: inherit;
    pointer-events: none;
}

.ta-tiktok-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    cursor: pointer;
    background-color: #111827;
}

.ta-tiktok-card-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.ta-tiktok-card-media--empty {
    background: linear-gradient(135deg, #1f2937, #111827);
}

.ta-tiktok-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 65%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
}

.ta-tiktok-card-body {
    position: absolute;
    left: var(--ta-shell-pad-x);
    right: 88px;
    bottom: calc(var(--ta-nav-h) + 12px);
    z-index: 2;
    max-width: 40rem;
}

.ta-tiktok-badge {
    display: inline-block;
    background: var(--ta-primary);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.ta-tiktok-card h2:not(.ta-ng-feed-title) {
    margin: 0 0 6px;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ta-tiktok-card p:not(.ta-ng-feed-desc):not(.ta-ng-feed-subline) {
    margin: 0;
    color: var(--ta-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.ta-tiktok-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    opacity: 0.95;
}

.ta-tiktok-actions {
    position: absolute;
    right: var(--ta-shell-pad-x);
    bottom: calc(var(--ta-nav-h) + 20px);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.ta-tiktok-action {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--ta-glass-border);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}

.ta-tiktok-action svg {
    width: 22px;
    height: 22px;
}

.ta-tiktok-action:active {
    transform: scale(0.88);
}

.ta-tiktok-action.is-liked {
    border-color: var(--ta-accent);
    color: var(--ta-accent);
}

.ta-tiktok-action.is-liked svg {
    fill: var(--ta-accent);
    stroke: var(--ta-accent);
}

.ta-tiktok-action-label {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: -8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.ta-tiktok-feed-empty {
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: var(--ta-muted);
}

/* —— Profile —— */
.ta-tiktok-profile {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: var(--ta-feed-max);
    margin: 0 auto;
    padding-top: var(--ta-top-h);
    padding-bottom: var(--ta-nav-h);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
}

.ta-tiktok-profile::-webkit-scrollbar {
    display: none;
}

.ta-tiktok-profile-login {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    gap: 16px;
}

.ta-tiktok-profile-login p {
    color: var(--ta-muted);
    max-width: 20rem;
}

.ta-tiktok-profile-error,
.ta-tiktok-profile-placeholder {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.07);
    text-align: center;
}

.ta-tiktok-profile-error strong {
    color: #fff;
    font-size: 1rem;
}

.ta-tiktok-profile-error span {
    max-width: 28rem;
    font-size: 0.88rem;
}

.ta-tiktok-profile-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(100%, 280px);
}

.ta-tiktok-profile-btns a {
    display: block;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.ta-tiktok-profile-btns .ta-tiktok-cta {
    width: 100%;
}

.ta-tiktok-profile-btns .ta-tiktok-ghost {
    border: 1px solid var(--ta-glass-border);
    color: var(--ta-text);
    background: var(--ta-glass);
}

.ta-tiktok-profile-dashboard-scroll {
    flex: 0 0 auto;
    min-height: auto;
    width: 100%;
    max-width: var(--ta-feed-max);
    margin: 0 auto;
    overflow: visible;
    padding: 0 var(--ta-shell-pad-x) calc(var(--ta-nav-h) + 12px);
}

.ta-social-profile {
    position: relative;
    overflow: hidden;
    margin: 6px 0 16px;
    padding: 92px 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    background:
        radial-gradient(circle at 15% 10%, rgba(236, 72, 153, 0.22), transparent 38%),
        radial-gradient(circle at 88% 0%, rgba(14, 165, 233, 0.2), transparent 34%),
        rgba(255, 255, 255, 0.06);
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
}

.ta-social-profile__cover {
    position: absolute;
    inset: 0 0 auto;
    height: 132px;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(236, 72, 153, 0.74)),
        url("data:image/svg+xml,%3Csvg width='240' height='120' viewBox='0 0 240 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-10 98C38 58 56 74 86 46c37-34 69-22 106 12 21 19 41 24 64 12v64H-10z' fill='rgba(255,255,255,.2)'/%3E%3Ccircle cx='196' cy='24' r='32' fill='rgba(255,255,255,.18)'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.95;
}

.ta-social-profile__head {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.ta-social-profile__avatar-wrap {
    position: relative;
    width: 98px;
    height: 98px;
}

.ta-social-profile__avatar {
    width: 98px;
    height: 98px;
    border: 4px solid #0b0f19;
    border-radius: 50%;
    object-fit: cover;
    background: #111827;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
}

.ta-social-profile__avatar--fallback {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #111827, var(--ta-primary), var(--ta-accent));
}

.ta-social-profile__plus {
    position: absolute;
    right: 0;
    bottom: 4px;
    width: 30px;
    height: 30px;
    border: 3px solid #0b0f19;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--ta-primary), var(--ta-accent));
}

.ta-social-profile__identity {
    min-width: 0;
    padding-bottom: 6px;
}

.ta-social-profile__verified {
    margin: 0 0 4px;
    color: #f0abfc;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ta-social-profile__identity h1 {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(1.45rem, 5vw, 2.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ta-social-profile__identity p:not(.ta-social-profile__verified) {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.ta-social-profile__stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 12px;
}

.ta-social-profile__stats a,
.ta-social-profile__stats .ta-social-profile__stat {
    padding: 11px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: inherit;
    background: rgba(255, 255, 255, 0.07);
    text-align: center;
    text-decoration: none;
}

.ta-social-profile__stats .ta-social-profile__stat {
    display: block;
}

.ta-social-profile__stats strong,
.ta-social-profile__stats span {
    display: block;
}

.ta-social-profile__stats strong {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
}

.ta-social-profile__stats span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.7rem;
    font-weight: 700;
}

.ta-social-profile__bio {
    position: relative;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.45;
}

.ta-social-profile__actions {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 16px;
}

.ta-social-profile__actions a,
.ta-social-profile__actions button.is-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 800;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.ta-social-profile__actions a.is-primary,
.ta-social-profile__actions button.is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ta-primary), var(--ta-accent));
    box-shadow: 0 12px 34px rgba(139, 92, 246, 0.28);
}

.ta-social-profile__tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0 -2px 12px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.26);
}

.ta-social-profile__tabs a {
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.66);
    text-align: center;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 900;
}

.ta-social-profile__tabs a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
}

.ta-social-profile__gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
}

.ta-social-profile__tile {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: #111827;
}

.ta-social-profile__tile > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 900;
    transition: transform 0.28s ease;
}

.ta-social-profile__tile:hover > span {
    transform: scale(1.05);
}

.ta-social-profile__tile .is-empty {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(236, 72, 153, 0.78));
}

.ta-social-profile__tile > span::after {
    display: none;
}

.ta-social-profile__tile small {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ta-social-profile__empty {
    position: relative;
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.68);
    text-align: center;
}

/* TikTok-native profile pass (less Instagram card look) */
.ta-social-profile {
    margin: 0 0 14px;
    padding: 12px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    z-index: 4;
}

.ta-social-profile__cover {
    display: none;
}

.ta-social-profile__head {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0 4px;
}

.ta-social-profile__avatar-wrap,
.ta-social-profile__avatar {
    width: 82px;
    height: 82px;
}

.ta-social-profile__avatar {
    border-width: 2px;
}

.ta-social-profile__identity {
    padding: 0;
}

.ta-social-profile__verified {
    margin: 0 0 3px;
    color: #a78bfa;
    font-size: 0.62rem;
}

.ta-social-profile__identity h1 {
    font-size: clamp(1.15rem, 4vw, 1.55rem);
    letter-spacing: -0.02em;
}

.ta-social-profile__identity p:not(.ta-social-profile__verified) {
    margin-top: 4px;
    font-size: 0.8rem;
}

.ta-social-profile__stats {
    gap: 0;
    margin: 14px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ta-social-profile__stats a {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 10px 4px;
}

.ta-social-profile__stats strong {
    font-size: 1rem;
}

.ta-social-profile__stats span {
    font-size: 0.66rem;
}

.ta-social-profile__actions {
    margin-bottom: 10px;
}

.ta-social-profile__actions a {
    min-height: 38px;
    border-radius: 10px;
    font-weight: 700;
}

.ta-social-profile__tabs {
    margin: 0 0 8px;
    padding: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ta-social-profile__tabs a {
    position: relative;
    border-radius: 0;
    padding: 10px 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.62);
}

.ta-social-profile__tabs a.is-active {
    background: transparent;
    color: #fff;
}

.ta-social-profile__tabs a.is-active::after {
    content: '';
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.ta-dev-profile-banner {
    margin: 0 16px 12px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #f5d76e;
    background: rgba(245, 215, 110, 0.12);
    border: 1px solid rgba(245, 215, 110, 0.35);
    border-radius: 8px;
    text-align: center;
}

.ta-dev-profile-banner code {
    font-size: 11px;
    color: #fff;
}

/* TikTok profile head: centered avatar, name, @handle, plain stats, CTA row */
.ta-social-profile--tiktok-head {
    --ta-profile-avatar-size: 120px;
    padding-top: 8px;
}

.ta-social-profile--tiktok-head .ta-social-profile__cover {
    display: none;
}

.ta-social-profile--tiktok-head .ta-social-profile__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 16px 16px 0;
    grid-template-columns: unset;
}

.ta-social-profile--tiktok-head .ta-social-profile__avatar-wrap {
    width: var(--ta-profile-avatar-size);
    height: var(--ta-profile-avatar-size);
    margin: 0 0 14px;
}

.ta-social-profile--tiktok-head .ta-social-profile__avatar {
    width: var(--ta-profile-avatar-size);
    height: var(--ta-profile-avatar-size);
    border: none;
    border-radius: 50%;
    box-shadow: none;
    background: #333;
}

.ta-social-profile--tiktok-head .ta-social-profile__avatar--fallback {
    font-size: 44px;
    font-weight: 700;
    background: #333;
}

.ta-social-profile--tiktok-head .ta-social-profile__identity {
    width: 100%;
    min-width: 0;
    padding: 0;
    text-align: center;
}

.ta-social-profile--tiktok-head .ta-social-profile__verified {
    display: none;
}

.ta-social-profile--tiktok-head .ta-social-profile__name,
.ta-social-profile--tiktok-head .ta-social-profile__identity h1 {
    margin: 0 0 4px;
    overflow: visible;
    white-space: normal;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: normal;
    color: #fff;
}

.ta-social-profile--tiktok-head .ta-social-profile__handle {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

.ta-social-profile__handle--copy {
    display: inline-block;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ta-social-profile__handle--copy:hover,
.ta-social-profile__handle--copy:focus-visible {
    color: rgba(255, 255, 255, 0.9);
    outline: none;
}

.ta-social-profile__handle--copy:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

.ta-social-profile--tiktok-head .ta-social-profile__tagline {
    margin: 0 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.ta-social-profile--tiktok-head .ta-location-manager-badge {
    justify-content: center;
    margin: 8px auto 0;
    max-width: 100%;
}

.ta-social-profile--tiktok-head .ta-social-profile__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    margin: 20px 0 20px;
    padding: 0;
    border: 0;
    grid-template-columns: unset;
}

.ta-social-profile--tiktok-head .ta-social-profile__stats a,
.ta-social-profile--tiktok-head .ta-social-profile__stats .ta-social-profile__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.ta-social-profile--tiktok-head .ta-social-profile__stats strong {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.ta-social-profile--tiktok-head .ta-social-profile__stats span {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.55);
}

.ta-social-profile--tiktok-head .ta-social-profile__bio {
    margin: 0 16px 16px;
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
}

.ta-social-profile--tiktok-head .ta-social-profile__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;
    padding: 0 16px;
    grid-template-columns: unset;
}

.ta-social-profile--tiktok-head .ta-social-profile__actions--visitor .ta-social-profile__btn--message {
    flex: 1 1 100%;
    max-width: min(320px, 100%);
}

.ta-social-profile--tiktok-head .ta-social-profile__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: min(140px, calc(50% - 6px));
    flex: 1 1 140px;
    max-width: calc(50% - 4px);
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
}

.ta-social-profile--tiktok-head .ta-social-profile__btn--edit {
    background: #333;
    color: #fff;
}

.ta-social-profile--tiktok-head .ta-social-profile__btn--message,
.ta-social-profile--tiktok-head .ta-social-profile__actions > a.is-primary,
.ta-social-profile--tiktok-head .ta-social-profile__actions > button.is-primary {
    background: #fe2c55;
    color: #fff;
}

.ta-social-profile--tiktok-head .ta-social-profile__actions--location {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    grid-template-columns: unset;
    gap: 8px;
    padding: 0 12px;
}

.ta-social-profile--tiktok-head .ta-social-profile__actions--location .ta-social-profile__btn--message,
.ta-social-profile--tiktok-head .ta-social-profile__actions--location > a.is-primary,
.ta-social-profile--tiktok-head .ta-social-profile__actions--location > button.is-primary {
    grid-column: auto;
    min-width: 0;
    max-width: min(240px, 100%);
    flex: 0 1 auto;
    white-space: nowrap;
}

.ta-social-profile--tiktok-head .ta-social-profile__actions--location > a:not(.ta-social-profile__btn--message):not(.is-primary):not(.ta-location-route-btn):not(.ta-location-follow-btn):not(.ta-location-post-btn):not(.ta-location-like-btn) {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 4px;
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile--tiktok-head .ta-social-profile__name,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile--tiktok-head .ta-social-profile__identity h1,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile--tiktok-head .ta-social-profile__stats strong {
    color: #0f172a;
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile--tiktok-head .ta-social-profile__handle,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile--tiktok-head .ta-social-profile__tagline,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile--tiktok-head .ta-social-profile__stats span,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile--tiktok-head .ta-social-profile__bio {
    color: rgba(15, 23, 42, 0.55);
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile--tiktok-head .ta-social-profile__btn--edit {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile--tiktok-head .ta-social-profile__btn--message,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile--tiktok-head .ta-social-profile__actions > a.is-primary,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile--tiktok-head .ta-social-profile__actions > button.is-primary {
    background: #fe2c55;
    color: #fff;
}

.ta-social-profile--tiktok-head .ta-social-profile__btn--follow {
    background: #333;
    color: #fff;
}

.ta-social-profile--tiktok-head .ta-social-profile__btn--follow.is-following {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile--tiktok-head .ta-social-profile__btn--follow {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile--tiktok-head .ta-social-profile__btn--follow.is-following {
    background: rgba(15, 23, 42, 0.14);
    color: #0f172a;
}

.ta-social-profile__gallery {
    border-radius: 0;
    gap: 2px;
    background: transparent;
}

.ta-social-profile__tile {
    background: rgba(255, 255, 255, 0.08);
}

.ta-social-profile__tile small {
    display: none;
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile__stats {
    border-top-color: rgba(15, 23, 42, 0.12);
    border-bottom-color: rgba(15, 23, 42, 0.12);
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile__tabs {
    border-bottom-color: rgba(15, 23, 42, 0.16);
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile__tabs a {
    color: rgba(15, 23, 42, 0.56);
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile__tabs a.is-active {
    color: #0f172a;
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile__tabs a.is-active::after {
    background: #0f172a;
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile__identity h1,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile__stats strong {
    color: #0f172a;
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile__identity p:not(.ta-social-profile__verified),
html:not([data-lp-color-scheme="dark"]) .ta-social-profile__stats span,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile__bio,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile__empty {
    color: rgba(15, 23, 42, 0.68);
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile__actions a,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile__actions button.is-primary {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.05);
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile__actions a.is-primary,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile__actions button.is-primary {
    color: #fff;
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile__actions--location > a.is-primary,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile__actions--location > button.is-primary {
    color: #0f172a;
}

html:not([data-lp-color-scheme="dark"]) .ta-social-profile__actions--location .ta-location-follow-btn,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile__actions--location .ta-location-post-btn,
html:not([data-lp-color-scheme="dark"]) .ta-social-profile__actions--location .ta-location-like-btn {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.05);
}

html:not([data-lp-color-scheme="dark"]) .ta-tiktok-home-hero-card {
    border-color: rgba(15, 23, 42, 0.12);
    background:
        radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.72), transparent 26%),
        radial-gradient(circle at 92% 4%, rgba(14, 165, 233, 0.18), transparent 32%),
        linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.08) 48%, rgba(255, 255, 255, 0.74));
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.12);
}

html:not([data-lp-color-scheme="dark"]) .ta-tiktok-home-service-card,
html:not([data-lp-color-scheme="dark"]) .ta-tiktok-home-pulse-item,
html:not([data-lp-color-scheme="dark"]) .ta-tiktok-home-type-chip,
html:not([data-lp-color-scheme="dark"]) .ta-tiktok-home-proof span {
    border-color: rgba(15, 23, 42, 0.11);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

/* Plus → Location: kompakte Leiste statt voller Social-Galerie über dem Listing-Formular */
.ta-tiktok-listing-edit-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px 14px;
    margin: 0 0 4px;
    position: sticky;
    top: 0;
    z-index: 3;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.96) 0%, rgba(11, 15, 25, 0.88) 85%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html:not([data-lp-color-scheme='dark']) .ta-tiktok-listing-edit-nav {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.9) 85%, transparent 100%);
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.ta-tiktok-listing-edit-nav__back {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ta-primary);
    text-decoration: none;
    white-space: nowrap;
}

.ta-tiktok-listing-edit-nav__back:hover {
    text-decoration: underline;
}

.ta-tiktok-listing-edit-nav__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ta-text);
    flex: 1;
    min-width: 0;
}

.ta-tiktok-profile-dashboard-scroll .ta-dash {
    --ta-dash-accent: var(--ta-primary, #8b5cf6);
    --ta-dash-accent-soft: rgba(139, 92, 246, 0.22);
    --ta-dash-surface: rgba(255, 255, 255, 0.08);
    --ta-dash-border: rgba(255, 255, 255, 0.14);
    --ta-dash-muted: rgba(255, 255, 255, 0.68);
    --ta-dash-text: #f8fafc;
    max-width: none;
    margin: 0;
    padding: 12px 0 24px;
    color: var(--ta-dash-text);
}

.ta-tiktok-profile-dashboard-scroll .ta-dash > .ta-dash-hero,
.ta-tiktok-profile-dashboard-scroll .ta-dash > .ta-dash-stats {
    display: none;
}

.ta-tiktok-profile-dashboard-scroll .ta-dash-hero {
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28) 0%, rgba(236, 72, 153, 0.14) 55%, rgba(15, 23, 42, 0.5) 100%);
    border-color: var(--ta-dash-border);
    box-shadow: none;
}

.ta-tiktok-profile-dashboard-scroll .ta-dash-panel,
.ta-tiktok-profile-dashboard-scroll .ta-dash-stat {
    background: var(--ta-dash-surface);
    border-color: var(--ta-dash-border);
    color: var(--ta-dash-text);
}

.ta-tiktok-profile-dashboard-scroll .ta-dash-nav__link {
    color: var(--ta-dash-muted);
}

.ta-tiktok-profile-dashboard-scroll .ta-dash-nav__link.is-active,
.ta-tiktok-profile-dashboard-scroll .ta-dash-nav__link:hover {
    color: var(--ta-dash-text);
}

.ta-tiktok-profile-dashboard-scroll .ta-dash-stat strong,
.ta-tiktok-profile-dashboard-scroll .ta-dash-panel__title {
    color: var(--ta-dash-text);
}

.ta-tiktok-profile-dashboard-scroll .ta-dash-btn--ghost {
    color: var(--ta-dash-text);
    border-color: var(--ta-dash-border);
}

.ta-tiktok-profile-dashboard-scroll .ta-dash-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 0;
    margin-bottom: 12px;
}

/* —— Bottom nav —— */
.ta-tiktok-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* Extra Puffer über safe-area-inset-bottom: wirkt auf iPhone weniger „abgeschnitten“ */
    padding: 12px var(--ta-shell-pad-x) max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    background: linear-gradient(transparent, rgba(11, 15, 25, 0.92) 40%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 80;
    pointer-events: none;
}

.ta-tiktok-nav-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: min(100%, 460px);
    pointer-events: auto;
    background: rgba(15, 20, 32, 0.88);
    border: 1px solid var(--ta-glass-border);
    border-radius: 999px;
    padding: 11px 10px 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    overflow: visible;
}

html:not([data-lp-color-scheme="dark"]) .ta-tiktok-nav-inner {
    background: rgba(15, 20, 32, 0.88);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.ta-tiktok-nav-item {
    position: relative;
    width: 100%;
    background: none;
    border: none;
    color: #8e9aa8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px 8px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.ta-tiktok-nav-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
    -webkit-font-smoothing: antialiased;
}

html[data-lp-color-scheme="dark"] .ta-tiktok-nav-item {
    color: rgba(148, 163, 184, 0.88);
}

html:not([data-lp-color-scheme="dark"]) .ta-tiktok-nav-item {
    color: rgba(255, 255, 255, 0.72);
}

.ta-tiktok-nav-create {
    --ta-nav-create-mid: #ff2a7a;
    --ta-nav-create-end: #ff5252;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--ta-nav-create-mid) 0%, var(--ta-nav-create-end) 100%);
    box-shadow: 0 4px 16px rgba(255, 42, 122, 0.35);
    transform: translateY(-4px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.ta-tiktok-nav-create svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.ta-tiktok-nav-create:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 6px 20px rgba(255, 42, 122, 0.45);
}

.ta-tiktok-nav-create:active {
    transform: translateY(-2px) scale(0.96);
}

a.ta-tiktok-nav-create,
a.ta-tiktok-nav-create:visited {
    color: #fff;
    text-decoration: none;
}

.ta-tiktok-nav-spacer {
    width: 100%;
    height: 1px;
}

.ta-tiktok-nav-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ta-tiktok-nav-item:hover svg {
    transform: translateY(-2px);
}

.ta-tiktok-nav-item.is-active {
    color: #0f172a;
}

html:not([data-lp-color-scheme="dark"]) .ta-tiktok-nav-item.is-active {
    color: #ffffff;
}

html[data-lp-color-scheme="dark"] .ta-tiktok-nav-item.is-active {
    color: #f8fafc;
}

.ta-tiktok-nav-item.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 26px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background-color: #ff2a7a;
    animation: ta-nav-dot-in 0.3s ease forwards;
}

@keyframes ta-nav-dot-in {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ta-tiktok-toast {
    position: fixed;
    top: calc(var(--ta-top-h) + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    background: var(--ta-primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 300;
}

.ta-tiktok-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ta-tiktok-create-overlay {
    position: fixed;
    inset: 0;
    z-index: 260;
    /* Glas-Scrim Dark: heller als Vollton, starker Blur */
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(6, 10, 22, 0.26) 100%
    );
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
}

html:not([data-lp-color-scheme="dark"]) .ta-tiktok-create-overlay {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(241, 245, 249, 0.52) 100%
    );
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.ta-tiktok-create-fan {
    position: fixed;
    left: 50%;
    bottom: calc(max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px)) + 72px);
    z-index: 270;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: min(calc(100vw - 20px), var(--ta-listing-app-w, 480px));
    transform: translateX(-50%);
    pointer-events: none;
    padding: 0;
    box-sizing: border-box;
}

body.ta-app-bottom-nav-docked .ta-tiktok-create-fan {
    bottom: calc(max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px)) + 76px);
}

/* Creator Studio Pro — Einladungskarten (Plus-Menü) */
#ta-tiktok-create-sheet.ta-tiktok-create-fan {
    gap: 14px;
}

#ta-tiktok-create-sheet.ta-tiktok-create-fan > .ta-tiktok-create-option {
    width: 100%;
    max-width: 100%;
}

.ta-create-invite {
    --ta-invite-bg: #ffffff;
    --ta-invite-text: #111111;
    --ta-invite-muted: #666666;
    --ta-invite-gold: #bc9c6e;
    --ta-invite-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ta-invite-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ta-invite-hud-bg: #fafafc;
    --ta-invite-hud-border: rgba(0, 0, 0, 0.04);
    --ta-invite-pill-bg: #ffffff;
    --ta-invite-pill-border: rgba(0, 0, 0, 0.05);
    --ta-invite-video-shell: #111111;
    /* Self-hosted landing-fonts-slim: Inter + Manrope + Outfit (Gemini-ähnlich, ruhig) */
    --ta-invite-font-ui: 'Inter', system-ui, -apple-system, sans-serif;
    --ta-invite-font-accent: 'Manrope', 'Inter', system-ui, sans-serif;
    --ta-invite-font-display: 'Outfit', 'Inter', system-ui, sans-serif;

    pointer-events: auto;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    background: var(--ta-invite-bg);
    color: var(--ta-invite-text);
    cursor: pointer;
    text-align: left;
    font-family: var(--ta-invite-font-ui);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    -webkit-tap-highlight-color: transparent;
    transition:
        box-shadow 0.45s var(--ta-invite-ease),
        border-color 0.35s var(--ta-invite-ease),
        transform 0.45s var(--ta-invite-ease);
    animation: ta-create-card-rise 0.4s var(--ta-invite-ease) both;
}

.ta-create-invite:nth-child(1) {
    animation-delay: 0s;
}

.ta-create-invite:nth-child(2) {
    animation-delay: 0.08s;
}

html[data-lp-color-scheme='dark'] .ta-create-invite {
    --ta-invite-bg: #171a22;
    --ta-invite-text: #f4f4f5;
    --ta-invite-muted: #a1a1aa;
    --ta-invite-gold: #c9ae7a;
    --ta-invite-hud-bg: #1e222c;
    --ta-invite-hud-border: rgba(255, 255, 255, 0.06);
    --ta-invite-pill-bg: #252a36;
    --ta-invite-pill-border: rgba(255, 255, 255, 0.08);
    --ta-invite-video-shell: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.ta-create-invite__ambient {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(
        250px circle at var(--ta-invite-glow-x, 50%) var(--ta-invite-glow-y, 50%),
        rgba(188, 156, 110, 0.14),
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

html[data-lp-color-scheme='dark'] .ta-create-invite__ambient {
    background: radial-gradient(
        250px circle at var(--ta-invite-glow-x, 50%) var(--ta-invite-glow-y, 50%),
        rgba(201, 174, 122, 0.12),
        transparent 72%
    );
}

.ta-create-invite__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: clamp(16px, 4vw, 24px);
    box-sizing: border-box;
}

.ta-create-invite__info {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 12px;
    box-sizing: border-box;
    min-width: 0;
}

.ta-create-invite__info-top {
    display: block;
}

.ta-create-invite__tag {
    display: block;
    font-family: var(--ta-invite-font-accent);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ta-invite-gold);
    font-weight: 700;
    margin-bottom: 6px;
}

.ta-create-invite__title {
    display: block;
    font-family: var(--ta-invite-font-display);
    font-size: clamp(1.05rem, 3.6vw, 1.3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.18;
    color: var(--ta-invite-text);
}

.ta-create-invite__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--ta-invite-font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ta-invite-muted);
}

.ta-create-invite__cta::after {
    content: '→';
    color: var(--ta-invite-gold);
    transition: transform 0.4s var(--ta-invite-ease);
}

.ta-create-invite:focus-visible {
    outline: 2px solid var(--ta-invite-gold);
    outline-offset: 3px;
}

.ta-create-invite:hover .ta-create-invite__cta::after,
.ta-create-invite:focus-visible .ta-create-invite__cta::after {
    transform: translateX(4px);
}

.ta-create-invite__visual {
    width: 45%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

/* Video mockup */
.ta-create-invite__video {
    width: 90px;
    height: 155px;
    max-height: 100%;
    background: var(--ta-invite-video-shell);
    border-radius: 14px;
    position: relative;
    padding: 3px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.55s var(--ta-invite-ease);
    box-sizing: border-box;
}

html[data-lp-color-scheme='dark'] .ta-create-invite__video {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

.ta-create-invite:hover .ta-create-invite__video,
.ta-create-invite:focus-visible .ta-create-invite__video {
    transform: scale(1.06) rotateY(-10deg) translateZ(15px);
}

.ta-create-invite__video-gradient {
    position: absolute;
    inset: 3px;
    border-radius: 11px;
    background: linear-gradient(0deg, #111 0%, #bc9c6e 50%, #e8cbb0 100%);
    background-size: 100% 200%;
    animation: ta-create-luxury-gradient 5s infinite ease-in-out;
}

.ta-create-invite__video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ta-create-invite__video-play::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #ffffff;
    margin-left: 2px;
}

.ta-create-invite__video-bar {
    position: absolute;
    bottom: 12px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.ta-create-invite__video-progress {
    display: block;
    height: 100%;
    width: 0;
    background: #ffffff;
    animation: ta-create-video-progress 4s infinite linear;
}

/* Location HUD */
.ta-create-invite__hud {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 142px;
    margin-inline: auto;
    background: var(--ta-invite-hud-bg);
    border: 1px solid var(--ta-invite-hud-border);
    border-radius: 12px;
    padding: 10px 10px 11px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.55s var(--ta-invite-ease);
    box-sizing: border-box;
}

html[data-lp-color-scheme='dark'] .ta-create-invite__hud {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.ta-create-invite:hover .ta-create-invite__hud,
.ta-create-invite:focus-visible .ta-create-invite__hud {
    transform: scale(1.04) rotateX(8deg) translateZ(20px);
}

.ta-create-invite__hud-head {
    display: block;
    margin-bottom: 8px;
    text-align: left;
    width: 100%;
}

.ta-create-invite__hud-title {
    display: block;
    font-family: var(--ta-invite-font-ui);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ta-invite-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ta-create-invite__hud-sub {
    display: block;
    font-family: var(--ta-invite-font-ui);
    font-size: 8px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    color: var(--ta-invite-gold);
    margin-top: 3px;
}

.ta-create-invite__tag-pill {
    display: inline-flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 30px;
    padding: 7px 12px;
    background: var(--ta-invite-pill-bg);
    border: 1px solid var(--ta-invite-pill-border);
    border-radius: 9px;
    font-family: var(--ta-invite-font-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    color: var(--ta-invite-muted);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.4s var(--ta-invite-pop),
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        opacity 0.2s ease;
}

.ta-create-invite__tag-pill.is-active {
    background: var(--ta-invite-text);
    color: #ffffff;
    border-color: var(--ta-invite-text);
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

/* Status-Shout HUD (oberste Plus-Menü-Karte) — gleiche Font-Tokens wie Video/Spot */
.ta-create-invite__status-hud {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 148px;
    margin-inline: auto;
}

.ta-create-invite__status-hud-core {
    width: 100%;
    background: var(--ta-invite-hud-bg);
    border: 1px solid var(--ta-invite-hud-border);
    border-radius: 14px;
    padding: 11px 10px 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.55s var(--ta-invite-ease);
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

html[data-lp-color-scheme='dark'] .ta-create-invite__status-hud-core {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.ta-create-invite__status-hud-core::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(188, 156, 110, 0.2), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 1;
}

html[data-lp-color-scheme='dark'] .ta-create-invite__status-hud-core::after {
    background: linear-gradient(90deg, transparent, rgba(201, 174, 122, 0.16), transparent);
}

.ta-create-invite__status-hud-core.ta-create-invite__status-hud-core--shimmer::after {
    animation: ta-create-status-laser 0.8s var(--ta-invite-ease) forwards;
}

.ta-create-invite:hover .ta-create-invite__status-hud-core,
.ta-create-invite:focus-visible .ta-create-invite__status-hud-core {
    transform: scale(1.04) rotateY(-8deg) translateZ(18px);
}

.ta-create-invite__status-user,
.ta-create-invite__status-text-wrap,
.ta-create-invite__status-footer {
    position: relative;
    z-index: 2;
    will-change: transform, opacity, filter;
    transition:
        transform 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.12),
        opacity 0.5s var(--ta-invite-ease),
        filter 0.5s ease;
}

.ta-create-invite__status-hud-core.ta-create-invite__status-hud-core--out .ta-create-invite__status-user {
    transform: translateY(-12px) scale(0.96);
    opacity: 0;
    filter: blur(2px);
    transition-delay: 0ms;
}

.ta-create-invite__status-hud-core.ta-create-invite__status-hud-core--out .ta-create-invite__status-text-wrap {
    transform: translateY(-16px) scale(0.94);
    opacity: 0;
    filter: blur(4px);
    transition-delay: 30ms;
}

.ta-create-invite__status-hud-core.ta-create-invite__status-hud-core--out .ta-create-invite__status-footer {
    transform: translateY(-8px) scale(0.97);
    opacity: 0;
    filter: blur(2px);
    transition-delay: 60ms;
}

.ta-create-invite__status-hud-core.ta-create-invite__status-hud-core--prepare .ta-create-invite__status-user {
    transform: translateY(14px) scale(0.96);
    opacity: 0;
    filter: blur(2px);
    transition: none !important;
}

.ta-create-invite__status-hud-core.ta-create-invite__status-hud-core--prepare .ta-create-invite__status-text-wrap {
    transform: translateY(20px) scale(0.92);
    opacity: 0;
    filter: blur(4px);
    transition: none !important;
}

.ta-create-invite__status-hud-core.ta-create-invite__status-hud-core--prepare .ta-create-invite__status-footer {
    transform: translateY(10px) scale(0.96);
    opacity: 0;
    filter: blur(2px);
    transition: none !important;
}

.ta-create-invite__status-hud-core:not(.ta-create-invite__status-hud-core--out):not(.ta-create-invite__status-hud-core--prepare)
    .ta-create-invite__status-user {
    transition-delay: 30ms;
}

.ta-create-invite__status-hud-core:not(.ta-create-invite__status-hud-core--out):not(.ta-create-invite__status-hud-core--prepare)
    .ta-create-invite__status-text-wrap {
    transition-delay: 80ms;
}

.ta-create-invite__status-hud-core:not(.ta-create-invite__status-hud-core--out):not(.ta-create-invite__status-hud-core--prepare)
    .ta-create-invite__status-footer {
    transition-delay: 130ms;
}

.ta-create-invite__status-user {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ta-create-invite__status-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--ta-invite-gold);
    background: linear-gradient(135deg, #e8cbb0, #bc9c6e);
    flex-shrink: 0;
}

.ta-create-invite__status-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ta-create-invite__status-name {
    font-family: var(--ta-invite-font-ui);
    font-size: 9px;
    font-weight: 700;
    color: var(--ta-invite-text);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ta-create-invite__status-handle {
    font-family: var(--ta-invite-font-ui);
    font-size: 7.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ta-invite-gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ta-create-invite__status-text-wrap {
    min-height: 32px;
    display: flex;
    align-items: center;
}

.ta-create-invite__status-text {
    font-family: var(--ta-invite-font-ui);
    font-size: 10px;
    font-weight: 500;
    color: var(--ta-invite-text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ta-create-invite__status-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 6px;
}

html[data-lp-color-scheme='dark'] .ta-create-invite__status-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.ta-create-invite__status-time {
    font-family: var(--ta-invite-font-ui);
    font-size: 7px;
    font-weight: 500;
    color: var(--ta-invite-muted);
    font-variant-numeric: tabular-nums;
}

.ta-create-invite__status-icon {
    font-size: 10px;
    color: var(--ta-invite-gold);
    display: inline-block;
    animation: ta-create-status-pulse 2.5s infinite ease-in-out;
}

.ta-create-invite__status-hud-core.ta-create-invite__status-hud-core--shimmer .ta-create-invite__status-icon {
    animation:
        ta-create-status-pulse 2.5s infinite ease-in-out,
        ta-create-status-icon-pop 0.75s var(--ta-invite-pop) forwards;
}

@keyframes ta-create-status-laser {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

@keyframes ta-create-status-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes ta-create-status-icon-pop {
    0% {
        transform: scale(0.4) rotate(-120deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

html[data-lp-color-scheme='dark'] .ta-create-invite__tag-pill.is-active {
    color: #0f0f10;
}

@keyframes ta-create-luxury-gradient {
    0%,
    100% {
        background-position: 0% 0%;
        filter: saturate(1);
    }
    50% {
        background-position: 0% 100%;
        filter: saturate(1.3);
    }
}

@keyframes ta-create-video-progress {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ta-create-invite,
    .ta-create-invite__video,
    .ta-create-invite__hud,
    .ta-create-invite__spatial-map,
    .ta-create-invite__tag-pill,
    .ta-create-invite__status-hud-core,
    .ta-create-invite__status-user,
    .ta-create-invite__status-text-wrap,
    .ta-create-invite__status-footer {
        transition: none !important;
    }

    .ta-create-invite__video-gradient,
    .ta-create-invite__video-progress,
    .ta-create-invite__status-icon,
    .ta-create-invite__status-hud-core::after {
        animation: none !important;
    }

    .ta-create-invite:hover .ta-create-invite__video,
    .ta-create-invite:focus-visible .ta-create-invite__video,
    .ta-create-invite:hover .ta-create-invite__hud,
    .ta-create-invite:focus-visible .ta-create-invite__hud,
    .ta-create-invite:hover .ta-create-invite__spatial-map,
    .ta-create-invite:focus-visible .ta-create-invite__spatial-map,
    .ta-create-invite:hover .ta-create-invite__status-hud-core,
    .ta-create-invite:focus-visible .ta-create-invite__status-hud-core {
        transform: none;
    }
}

body.is-create-open .ta-tiktok-nav-create {
    transform: translateY(-4px) scale(1.06);
}

@keyframes ta-create-card-rise {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#ta-tiktok-create-overlay[hidden] {
    display: none !important;
}

.ta-tiktok-contact-body {
    padding: 0 1rem 1.25rem;
}

.ta-tiktok-contact-form {
    display: grid;
    gap: 12px;
}

.ta-tiktok-contact-form label {
    display: grid;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.ta-tiktok-contact-form input,
.ta-tiktok-contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    padding: 10px 12px;
    font: inherit;
}

.ta-tiktok-contact-setup {
    display: grid;
    gap: 12px;
}

.ta-tiktok-contact-setup p {
    margin: 0;
    line-height: 1.5;
    color: var(--ta-muted);
}

.ta-tiktok-contact-setup-link {
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
}

.ta-tiktok-contact-status {
    margin: 0;
    font-size: 0.85rem;
}

body.ta-dashboard-embed {
    margin: 0;
    background: #0b0f19;
    overflow: auto;
}

body.ta-dashboard-embed .ta-guest-dashboard {
    max-width: none;
    padding-bottom: 24px;
}

body.ta-dashboard-embed .lp-cms-header {
    display: none;
}

/* Tablet */
@media (min-width: 768px) {
    .ta-tiktok-app {
        --ta-shell-pad-x: 24px;
        --ta-nav-h: 104px;
        --ta-content-max: min(100%, 960px);
        --ta-shell-max: min(100%, 960px);
        --ta-feed-max: min(100%, 520px);
    }

    .ta-tiktok-top {
        padding-left: max(24px, var(--ta-shell-pad-x));
        padding-right: max(24px, var(--ta-shell-pad-x));
    }

    .ta-tiktok-top-logo {
        max-width: min(32vw, 260px);
    }

    .ta-tiktok-top-end {
        gap: 0.5rem;
    }

    .ta-tiktok-top .lp-logo__img {
        max-height: 2.85rem;
    }

    .ta-tiktok-chip {
        font-size: 0.82rem;
        padding: 8px 16px;
    }

    .ta-tiktok-home-hero h1,
    .ta-tiktok-home-title {
        font-size: clamp(1.85rem, 5.5vw, 2.75rem);
    }

    .ta-tiktok-preview-rail {
        display: flex;
        gap: 14px;
    }

    .ta-tiktok-preview-card {
        flex: 0 0 clamp(152px, 40vw, 200px);
        width: clamp(152px, 40vw, 200px);
    }

    .ta-tiktok-discover-stage {
        border-radius: 20px;
        overflow: hidden;
    }

    .ta-tiktok-card-body {
        right: 120px;
    }

    .ta-tiktok-nav-inner {
        max-width: 480px;
    }

    .ta-tiktok-nav-item {
        padding: 6px 18px;
        font-size: 0.75rem;
    }

    .ta-tiktok-nav-item svg {
        width: 26px;
        height: 26px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .ta-tiktok-app {
        --ta-shell-pad-x: 32px;
        --ta-content-max: min(100%, 1280px);
        --ta-shell-max: min(100%, 1280px);
        --ta-feed-max: 480px;
    }

    .ta-tiktok-top-grid {
        gap: 16px 24px;
    }

    .ta-tiktok-top-logo {
        max-width: 260px;
    }

    .ta-tiktok-home-hero h1,
    .ta-tiktok-home-title {
        font-size: clamp(2rem, 4.2vw, 2.85rem);
    }

    .ta-tiktok-preview-rail {
        gap: 16px;
    }

    .ta-tiktok-preview-card {
        flex: 0 0 clamp(156px, 36vw, 205px);
        width: clamp(156px, 36vw, 205px);
    }

    .ta-tiktok-card h2:not(.ta-ng-feed-title) {
        font-size: clamp(1.5rem, 2vw, 2rem);
    }

    .ta-tiktok-card-body {
        right: 132px;
        left: max(var(--ta-shell-pad-x), 20px);
    }

    .ta-tiktok-actions {
        right: max(var(--ta-shell-pad-x), 20px);
    }

    .ta-tiktok-nav-inner {
        max-width: 420px;
    }

}

@media (min-width: 1280px) {
    .ta-tiktok-app {
        --ta-content-max: min(100%, 1400px);
        --ta-shell-max: min(100%, 1400px);
    }

    .ta-tiktok-preview-card {
        flex: 0 0 clamp(160px, 34vw, 210px);
        width: clamp(160px, 34vw, 210px);
    }
}

@media (min-width: 1440px) {
    .ta-tiktok-app {
        --ta-feed-max: 520px;
    }

}

/* —— Direct messages (TikTok-style inbox) —— */
.ta-messages-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-width: var(--ta-shell-max, 520px);
    margin: 0 auto;
    padding: 0 var(--ta-shell-pad-x, 16px) calc(var(--ta-nav-h, 92px) + 16px);
}

.ta-messages-login,
.ta-messages-empty,
.ta-messages-thread-empty {
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 48px 20px;
    text-align: center;
    color: var(--ta-muted);
}

.ta-messages-header {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 16px 0 12px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--ta-page-bg, #0b0f19) 96%, transparent) 0%, color-mix(in srgb, var(--ta-page-bg, #0b0f19) 82%, transparent) 100%);
}

.ta-messages-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ta-messages-inbox-panel,
.ta-messages-thread-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.ta-messages-inbox {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    padding-bottom: 12px;
}

.ta-messages-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--ta-glass-border, rgba(255, 255, 255, 0.12));
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.ta-messages-row:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ta-messages-row__avatar,
.ta-messages-peer__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ta-messages-peer__avatar {
    width: 40px;
    height: 40px;
}

.ta-messages-row__avatar--fallback,
.ta-messages-peer__avatar--fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.ta-messages-row__body {
    min-width: 0;
}

.ta-messages-row__top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

.ta-messages-row__top strong {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ta-messages-row__top time {
    font-size: 0.72rem;
    color: var(--ta-muted);
    flex-shrink: 0;
}

.ta-messages-row__preview {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--ta-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ta-messages-row__badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
}

.ta-messages-thread-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ta-glass-border, rgba(255, 255, 255, 0.12));
}

.ta-messages-back {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.ta-messages-back svg {
    width: 22px;
    height: 22px;
}

.ta-messages-thread-peer {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ta-messages-peer__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ta-messages-peer__meta strong {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ta-messages-peer__meta span {
    font-size: 0.78rem;
    color: var(--ta-muted);
}

.ta-messages-thread-body {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0 12px;
    min-height: 280px;
}

.ta-messages-bubble {
    max-width: 82%;
    align-self: flex-start;
    padding: 10px 14px;
    border-radius: 18px 18px 18px 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ta-messages-bubble.is-mine {
    align-self: flex-end;
    border-radius: 18px 18px 6px 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(236, 72, 153, 0.75));
    border-color: transparent;
}

.ta-messages-bubble p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.92rem;
    line-height: 1.45;
}

.ta-messages-bubble time {
    display: block;
    margin-top: 6px;
    font-size: 0.68rem;
    opacity: 0.72;
}

.ta-messages-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 10px 0 0;
    border-top: 1px solid var(--ta-glass-border, rgba(255, 255, 255, 0.12));
}

.ta-messages-compose textarea {
    width: 100%;
    min-height: 44px;
    max-height: 120px;
    resize: none;
    border-radius: 22px;
    border: 1px solid var(--ta-glass-border, rgba(255, 255, 255, 0.14));
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    padding: 11px 16px;
    font: inherit;
    line-height: 1.35;
}

.ta-messages-send {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.ta-messages-send svg {
    width: 20px;
    height: 20px;
}

.ta-tiktok-nav-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#ta-view-messages {
    overflow: hidden;
}

#ta-view-messages.is-active .ta-messages-shell {
    height: calc(100dvh - var(--ta-top-offset, 72px) - var(--ta-nav-h, 92px));
}

html:not([data-lp-color-scheme="dark"]) .ta-messages-row {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 23, 42, 0.1);
}

html:not([data-lp-color-scheme="dark"]) .ta-messages-bubble:not(.is-mine) {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.08);
}

html:not([data-lp-color-scheme="dark"]) .ta-messages-compose textarea {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.12);
}

/* Listing-/Archivseiten im gleichen TikTok-App-Shell-Layout wie Frontpage-Header */
body.ta-tiktok-app-mode.ta-app-listing-shell.cms-landing-theme {
    overflow: hidden;
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    background-color: var(--ta-bg-dark, #050508);
    color: var(--ta-text, #ffffff);
}

html:has(body.ta-tiktok-app-mode.ta-app-listing-shell.cms-landing-theme) {
    overflow: hidden;
    height: 100%;
}

body.ta-tiktok-app-mode.ta-app-listing-shell.cms-landing-theme #brief-ai-lp {
    box-sizing: border-box;
    width: 100%;
    max-width: min(100%, 520px);
    margin: 0 auto;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    padding-left: max(env(safe-area-inset-left, 0px), 16px);
    padding-right: max(env(safe-area-inset-right, 0px), 16px);
    padding-bottom: calc(var(--ta-nav-h, 92px) + env(safe-area-inset-bottom, 0px));
}

/* Post Modal — Upload (glass, light + dark) */
.ta-tiktok-modal[hidden] {
    display: none !important;
}

.ta-tiktok-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ta-tiktok-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html:not([data-lp-color-scheme="dark"]) .ta-tiktok-modal-backdrop {
    background: rgba(15, 23, 42, 0.28);
}

.ta-tiktok-modal-content {
    position: relative;
    width: 90%;
    max-width: 440px;
    border-radius: 24px;
    overflow: hidden;
    animation: ta-modal-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ta-post-upload-modal {
    --ta-up-font: 'Inter', var(--ta-invite-font-ui, system-ui, -apple-system, sans-serif);
    --ta-up-bg: rgba(14, 14, 18, 0.72);
    --ta-up-border: rgba(255, 255, 255, 0.08);
    --ta-up-shadow: 0 50px 100px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --ta-up-heading: #ffffff;
    --ta-up-muted: #9ca3af;
    --ta-up-accent: #ff3b30;
    --ta-up-accent-2: #aa0018;
    --ta-up-close-bg-hover: rgba(255, 59, 48, 0.2);
    --ta-up-drop-bg: rgba(255, 255, 255, 0.02);
    --ta-up-drop-border: rgba(255, 255, 255, 0.06);
    --ta-up-drop-hover-bg: rgba(255, 59, 48, 0.04);
    --ta-up-input-bg: rgba(255, 255, 255, 0.04);
    --ta-up-input-border: rgba(255, 255, 255, 0.08);
    --ta-up-input-text: #f9fafb;
    --ta-up-input-focus: rgba(255, 59, 48, 0.45);
    --ta-up-progress-bg: rgba(5, 5, 8, 0.94);
    --ta-up-ring-bg: rgba(255, 255, 255, 0.04);
    --ta-up-ring-fill: #ff3b30;
    --ta-up-success: #10b981;
    --ta-up-submit-disabled-bg: rgba(255, 255, 255, 0.06);
    --ta-up-submit-disabled-text: #6b7280;
    --ta-up-loc-bg: rgba(0, 242, 254, 0.1);
    --ta-up-loc-border: rgba(0, 242, 254, 0.22);
    --ta-up-loc-text: var(--ta-neon-primary, #00f2fe);

    font-family: var(--ta-up-font);
    background: var(--ta-up-bg);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid var(--ta-up-border);
    box-shadow: var(--ta-up-shadow);
    color: var(--ta-up-muted);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.55s ease;
}

html:not([data-lp-color-scheme="dark"]) .ta-post-upload-modal {
    --ta-up-bg: rgba(255, 255, 255, 0.82);
    --ta-up-border: rgba(15, 23, 42, 0.08);
    --ta-up-shadow: 0 40px 80px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    --ta-up-heading: #0f172a;
    --ta-up-muted: #64748b;
    --ta-up-close-bg-hover: rgba(255, 59, 48, 0.12);
    --ta-up-drop-bg: rgba(248, 250, 252, 0.95);
    --ta-up-drop-border: rgba(15, 23, 42, 0.08);
    --ta-up-drop-hover-bg: rgba(255, 59, 48, 0.06);
    --ta-up-input-bg: rgba(255, 255, 255, 0.96);
    --ta-up-input-border: rgba(15, 23, 42, 0.1);
    --ta-up-input-text: #0f172a;
    --ta-up-input-focus: rgba(255, 59, 48, 0.35);
    --ta-up-progress-bg: rgba(255, 255, 255, 0.96);
    --ta-up-ring-bg: rgba(15, 23, 42, 0.08);
    --ta-up-ring-fill: #ff3b30;
    --ta-up-submit-disabled-bg: rgba(241, 245, 249, 0.95);
    --ta-up-submit-disabled-text: #94a3b8;
    --ta-up-loc-bg: rgba(14, 165, 233, 0.1);
    --ta-up-loc-border: rgba(14, 165, 233, 0.25);
    --ta-up-loc-text: #0369a1;
}

.ta-post-upload-modal.is-leaving {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
    filter: blur(6px);
    pointer-events: none;
}

@keyframes ta-modal-pop {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ta-post-upload-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.ta-post-upload-modal__header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--ta-up-heading), #ff3b30);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.ta-post-upload-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: #888;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

html:not([data-lp-color-scheme="dark"]) .ta-post-upload-modal__close {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
    color: #64748b;
}

.ta-post-upload-modal__close:hover {
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.35);
    color: #fff;
}

html:not([data-lp-color-scheme="dark"]) .ta-post-upload-modal__close:hover {
    color: #0f172a;
}

.ta-post-upload-modal__form.ta-tiktok-post-form {
    padding: 16px 24px 24px;
    max-height: min(78vh, 760px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ta-post-form-media {
    width: 100%;
    height: 270px;
    max-height: min(52vh, 330px);
    background: var(--ta-up-drop-bg);
    border: 1px solid var(--ta-up-drop-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, box-shadow 0.35s ease;
}

.ta-post-form-media:hover {
    border-color: rgba(255, 59, 48, 0.45);
    background: var(--ta-up-drop-hover-bg);
    box-shadow: 0 0 60px rgba(255, 59, 48, 0.06);
}

html:not([data-lp-color-scheme="dark"]) .ta-post-form-media:hover {
    box-shadow: 0 0 48px rgba(255, 59, 48, 0.12);
}

.ta-post-form-media-inner {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
}

.ta-post-form-media-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ta-post-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
}

.ta-post-dropzone-label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ta-up-muted);
}

.ta-post-palm-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.03);
    animation: ta-post-palm-hyper-pulse 2.5s infinite ease-in-out;
}

html:not([data-lp-color-scheme="dark"]) .ta-post-palm-circle {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 0 20px rgba(15, 23, 42, 0.04);
}

.ta-post-palm-circle::before,
.ta-post-palm-circle::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(180deg, #ff003c 0%, transparent 50%, #ff3b30 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ta-post-palm-hyper-rotate 1.5s linear infinite;
    opacity: 0.75;
}

.ta-post-palm-circle::after {
    inset: -7px;
    animation: ta-post-palm-hyper-rotate 2.5s linear infinite reverse;
    opacity: 0.25;
    background: linear-gradient(90deg, #ff3b30, transparent);
}

.ta-post-form-media:hover .ta-post-palm-circle {
    animation: ta-post-palm-hyper-pulse 0.8s infinite ease-in-out;
}

.ta-post-form-media:hover .ta-post-palm-circle::before {
    animation: ta-post-palm-hyper-rotate 0.6s linear infinite;
}

.ta-post-palm-svg {
    z-index: 3;
    filter: drop-shadow(0 2px 15px rgba(255, 59, 48, 0.55));
    overflow: visible;
}

.ta-post-palm-tree-group {
    transform-origin: 32px 60px;
    animation: ta-post-palm-trunk-sway 3.5s ease-in-out infinite alternate;
}

.ta-post-palm-svg .ta-post-palm-crown {
    transform-origin: 32px 25px;
    animation: ta-post-palm-crown-tilt 3.5s ease-in-out infinite alternate;
}

.ta-post-palm-svg .ta-post-palm-leaf-left-low { transform-origin: 32px 25px; animation: ta-post-palm-rustle-low-l 1.4s ease-in-out infinite alternate; }
.ta-post-palm-svg .ta-post-palm-leaf-left-mid { transform-origin: 32px 25px; animation: ta-post-palm-rustle-mid-l 1.7s ease-in-out infinite alternate; }
.ta-post-palm-svg .ta-post-palm-leaf-left-high { transform-origin: 32px 25px; animation: ta-post-palm-rustle-high-l 2s ease-in-out infinite alternate; }
.ta-post-palm-svg .ta-post-palm-leaf-right-high { transform-origin: 32px 25px; animation: ta-post-palm-rustle-high-r 1.9s ease-in-out infinite alternate; }
.ta-post-palm-svg .ta-post-palm-leaf-right-mid { transform-origin: 32px 25px; animation: ta-post-palm-rustle-mid-r 1.6s ease-in-out infinite alternate; }
.ta-post-palm-svg .ta-post-palm-leaf-right-low { transform-origin: 32px 25px; animation: ta-post-palm-rustle-low-r 1.3s ease-in-out infinite alternate; }

@keyframes ta-post-palm-trunk-sway {
    0% { transform: rotate(-1.5deg) skewX(-0.5deg); }
    100% { transform: rotate(4deg) skewX(1.5deg); }
}

@keyframes ta-post-palm-crown-tilt {
    0% { transform: rotate(1deg) translateX(-0.5px); }
    100% { transform: rotate(-3deg) translateX(0.5px); }
}

@keyframes ta-post-palm-rustle-low-l { 0% { transform: rotate(0deg) scale(1); } 100% { transform: rotate(-5deg) scale(1.04); } }
@keyframes ta-post-palm-rustle-mid-l { 0% { transform: rotate(0deg); } 100% { transform: rotate(-3deg) scaleY(1.02); } }
@keyframes ta-post-palm-rustle-high-l { 0% { transform: rotate(0deg); } 100% { transform: rotate(-4deg); } }
@keyframes ta-post-palm-rustle-high-r { 0% { transform: rotate(0deg); } 100% { transform: rotate(5deg); } }
@keyframes ta-post-palm-rustle-mid-r { 0% { transform: rotate(0deg); } 100% { transform: rotate(4deg) scaleY(1.03); } }
@keyframes ta-post-palm-rustle-low-r { 0% { transform: rotate(0deg) scale(1); } 100% { transform: rotate(6deg) scale(1.05); } }

@keyframes ta-post-palm-hyper-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(255, 59, 48, 0.12), inset 0 0 20px rgba(255, 255, 255, 0.02); }
    50% { transform: scale(1.03); box-shadow: 0 0 45px rgba(255, 59, 48, 0.22), inset 0 0 20px rgba(255, 59, 48, 0.08); }
}

@keyframes ta-post-palm-hyper-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ta-post-form-cover-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 2;
    pointer-events: none;
}

.ta-post-form-media.is-uploading .ta-post-form-media-stage,
.ta-post-form-media.is-uploading .ta-post-form-cover-preview {
    opacity: 0;
    visibility: hidden;
}

/* Off-screen decode surface — 0×0 breaks videoWidth/canvas cover extraction in Chromium/Safari */
.ta-post-form-hidden-asset {
    position: absolute;
    left: 0;
    top: 0;
    width: 480px;
    height: 270px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.ta-post-form-media-stage > img,
.ta-post-form-media-stage > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ta-post-cover-timeline {
    margin-top: 4px;
    margin-bottom: 14px;
    padding: 2px 6px;
}

.ta-post-cover-timeline__label {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ta-up-muted);
    opacity: 0.9;
}

.ta-post-cover-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    margin: 0;
    background: transparent;
    outline: none;
    cursor: pointer;
}

.ta-post-cover-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

html:not([data-lp-color-scheme="dark"]) .ta-post-cover-slider::-webkit-slider-runnable-track {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.1);
}

.ta-post-cover-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 26px;
    margin-top: -10px;
    border-radius: 5px;
    background: #ff3b30;
    border: 2px solid #ffffff;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.85), 0 4px 10px rgba(0, 0, 0, 0.45);
    cursor: grab;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.ta-post-cover-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.12);
    background: #ff5247;
}

.ta-post-cover-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

html:not([data-lp-color-scheme="dark"]) .ta-post-cover-slider::-moz-range-track {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.1);
}

.ta-post-cover-slider::-moz-range-thumb {
    width: 14px;
    height: 26px;
    border-radius: 5px;
    background: #ff3b30;
    border: 2px solid #ffffff;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.85);
    cursor: grab;
}

.ta-post-cover-slider::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.12);
}

.ta-post-upload-progress {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: var(--ta-up-progress-bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.ta-post-upload-progress:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.ta-tiktok-modal-content.ta-post-upload-modal {
    border-radius: 32px;
}

.ta-post-upload-progress__ring-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 18px;
}

.ta-post-upload-progress__svg {
    display: block;
    transform: rotate(-90deg);
}

.ta-post-upload-progress__ring-bg,
.ta-post-upload-progress__ring-fill {
    fill: none;
    stroke-width: 4;
}

.ta-post-upload-progress__ring-bg {
    stroke: var(--ta-up-ring-bg);
}

.ta-post-upload-progress__ring-fill {
    stroke: var(--ta-up-ring-fill);
    stroke-linecap: round;
    stroke-dasharray: 226.195;
    stroke-dashoffset: 226.195;
    transition: stroke-dashoffset 0.12s ease, stroke 0.25s ease;
}

.ta-post-upload-progress.is-success .ta-post-upload-progress__ring-fill {
    stroke: var(--ta-up-success);
}

.ta-post-upload-progress__pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: var(--ta-up-heading);
}

.ta-post-upload-progress__status {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    color: var(--ta-up-muted);
    animation: ta-post-upload-status-pulse 0.45s ease-in-out infinite alternate;
}

@keyframes ta-post-upload-status-pulse {
    0% { opacity: 0.72; transform: scale(0.97); }
    100% { opacity: 1; transform: scale(1); }
}

.ta-post-upload-progress.is-phase-warm .ta-post-upload-progress__ring-fill {
    stroke: #ff3b30;
}

.ta-post-upload-progress.is-phase-warm .ta-post-upload-progress__status {
    color: #ff3b30;
}

.ta-post-upload-progress.is-phase-mid .ta-post-upload-progress__ring-fill {
    stroke: #ff6a00;
}

.ta-post-upload-progress.is-phase-mid .ta-post-upload-progress__status {
    color: #ff6a00;
}

.ta-post-upload-progress.is-phase-hot .ta-post-upload-progress__ring-fill {
    stroke: #ff0055;
}

.ta-post-upload-progress.is-phase-hot .ta-post-upload-progress__status {
    color: #ff0055;
}

.ta-post-upload-progress.is-success .ta-post-upload-progress__status {
    color: var(--ta-up-success);
    font-weight: 700;
    animation: none;
}

.ta-post-location-link-field {
    margin-bottom: 12px;
}

.ta-post-location-link-field[hidden] {
    display: none !important;
}

.ta-post-location-link-field__hint {
    margin: 0 0 10px;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--ta-up-muted);
}

.ta-post-location-link-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ta-post-upload-modal .ta-post-location-link-chip.ta-explore-spatial-data-check {
    width: 100%;
    font: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

.ta-post-upload-modal .ta-post-location-link-chip.is-active {
    color: var(--ta-spatial-option-text-active, #fff);
    border-color: var(--ta-spatial-check-active-border, rgba(255, 59, 48, 0.55));
}

.ta-post-upload-modal .ta-post-location-link-chip.is-active .ta-explore-spatial-data-check__indicator {
    background: var(--ta-spatial-check-indicator, #ff3b30);
    box-shadow: 0 0 0 3px var(--ta-spatial-check-indicator-ring, rgba(255, 59, 48, 0.2));
}

.ta-post-video-category-field {
    margin-bottom: 14px;
}

.ta-post-video-category-field__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ta-up-muted);
}

.ta-post-video-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    max-width: 100%;
}

.ta-post-video-category-chips[hidden] {
    display: none !important;
}

.ta-post-video-category-chips::-webkit-scrollbar {
    display: none;
}

.ta-post-video-category-chip {
    flex: 0 0 auto;
    border: 1px solid var(--ta-up-input-border);
    background: var(--ta-up-input-bg);
    color: var(--ta-up-input-text);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ta-post-video-category-chip.is-active {
    border-color: rgba(255, 59, 48, 0.55);
    background: rgba(255, 59, 48, 0.14);
    color: #ff3b30;
}

/* Feed — Spatial-Filter wie Entdecken (Suche + Akkordeon) */
#ta-view-feed .ta-feed-spatial-shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

#ta-view-feed .ta-feed-spatial-content {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

#ta-view-feed .ta-feed-spatial-filter-host {
    position: absolute;
    top: var(--ta-top-h, 64px);
    left: 0;
    right: 0;
    z-index: 28;
    padding: var(--ta-spatial-host-pad-top, 18px) var(--ta-spatial-host-pad-x, 20px) 0;
    pointer-events: none;
    box-sizing: border-box;
}

#ta-view-feed .ta-feed-spatial-filter-host[hidden],
#ta-view-feed #ta-feed-video-filter[hidden] {
    display: none !important;
}

#ta-view-feed .ta-feed-spatial-filter-host > .ta-explore-spatial-filter-system {
    pointer-events: none;
}

#ta-view-feed .ta-explore-spatial-filter-system:not(.is-expanded) .ta-explore-spatial-search-row,
#ta-view-feed .ta-explore-spatial-filter-system:not(.is-expanded) .ta-explore-spatial-search-input,
#ta-view-feed .ta-explore-spatial-filter-system:not(.is-expanded) .ta-explore-spatial-trigger-btn {
    pointer-events: auto;
}

#ta-view-feed .ta-feed-spatial-filter-host:has(.ta-explore-spatial-filter-system.is-expanded) {
    pointer-events: auto;
}

#ta-view-feed .ta-feed-spatial-filter-host:has(.ta-explore-spatial-filter-system.is-expanded) > .ta-explore-spatial-filter-system {
    pointer-events: auto;
}

#ta-view-feed .ta-feed-spatial-shell:has(.ta-explore-spatial-filter-system.is-expanded)::after {
    opacity: 1;
}

/* In-place expand (kein position:fixed — sonst doppelter Offset im transformierten App-Shell) */
body.ta-tiktok-app-mode #ta-view-feed .ta-feed-spatial-filter-host:has(.ta-explore-spatial-filter-system.is-expanded) {
    position: absolute;
    top: var(--ta-top-h, 64px);
    left: 0;
    right: 0;
    bottom: calc(var(--ta-nav-h, 92px) + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    transform: none;
    padding: var(--ta-spatial-host-pad-top, 18px) var(--ta-spatial-host-pad-x, 20px) 0;
    z-index: var(--ta-spatial-overlay-z, 115);
    pointer-events: auto;
    background: var(--ta-spatial-expanded-bg);
    backdrop-filter: blur(var(--ta-spatial-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--ta-spatial-blur)) saturate(160%);
    border-bottom: 1px solid var(--ta-spatial-expanded-border);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

html:not([data-lp-color-scheme="dark"]) body.ta-tiktok-app-mode #ta-view-feed .ta-feed-spatial-filter-host:has(.ta-explore-spatial-filter-system.is-expanded) {
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

#ta-view-feed .ta-explore-spatial-filter-system.is-expanded .ta-explore-spatial-search-row {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
}

#ta-view-feed .ta-tiktok-discover-wrap--feed {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 0;
}

.ta-tiktok-post-category-tag {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
}

.ta-post-upload-modal__field {
    margin-bottom: 20px;
}

.ta-post-form-body-textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 88px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--ta-up-input-border);
    background: var(--ta-up-input-bg);
    color: var(--ta-up-input-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ta-post-form-body-textarea::placeholder {
    color: var(--ta-up-muted);
    opacity: 0.85;
}

.ta-post-form-body-textarea:focus {
    border-color: var(--ta-up-input-focus);
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.14);
}

html:not([data-lp-color-scheme="dark"]) .ta-post-form-body-textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.16);
}

.ta-post-upload-filters {
    margin: 0 0 14px;
}

.ta-post-upload-filters__variant[hidden] {
    display: none !important;
}

.ta-post-upload-modal .ta-explore-spatial-filter-system--post-upload {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.ta-post-upload-modal .ta-explore-spatial-filter-system--post-upload {
    display: block;
}

.ta-post-upload-modal .ta-explore-spatial-filter-system--post-upload .ta-explore-spatial-matrix,
.ta-post-upload-modal .ta-explore-spatial-matrix--post-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    height: auto;
    max-height: min(42vh, 320px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 4px 4px;
    box-sizing: border-box;
}

.ta-post-upload-modal .ta-explore-spatial-acc {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

html:not([data-lp-color-scheme="dark"]) .ta-post-upload-modal .ta-explore-spatial-acc {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.9);
}

.ta-post-upload-modal .ta-explore-spatial-acc__trigger {
    width: 100%;
    padding: 12px 14px;
}

.ta-post-upload-modal .ta-explore-spatial-acc__body {
    padding: 0 10px 10px;
}

.ta-post-form-actions {
    display: flex;
    justify-content: stretch;
    width: 100%;
}

.ta-tiktok-btn-primary.ta-post-upload-modal__submit {
    width: 100%;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff3b30 0%, #aa0018 100%);
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.28);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, opacity 0.2s ease;
}

.ta-tiktok-btn-primary.ta-post-upload-modal__submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 36px rgba(255, 59, 48, 0.45);
}

.ta-tiktok-btn-primary.ta-post-upload-modal__submit:active:not(:disabled) {
    transform: translateY(1px);
}

.ta-tiktok-btn-primary.ta-post-upload-modal__submit:disabled {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ta-up-submit-disabled-text);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

html:not([data-lp-color-scheme="dark"]) .ta-tiktok-btn-primary.ta-post-upload-modal__submit:disabled {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(15, 23, 42, 0.06);
}

.ta-tiktok-btn-primary:not(.ta-post-upload-modal__submit) {
    display: inline-block;
    background: linear-gradient(135deg, var(--ta-primary, #8b5cf6), var(--ta-accent, #ec4899));
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.ta-tiktok-btn-primary:not(.ta-post-upload-modal__submit):active {
    transform: scale(0.96);
}

.ta-tiktok-post-form.is-edit-mode .ta-post-form-media {
    pointer-events: none;
}

.ta-tiktok-post-form.is-edit-mode .ta-post-dropzone-content {
    display: none;
}

.ta-tiktok-post-form.is-edit-mode .ta-post-cover-timeline {
    display: none !important;
}

.ta-tiktok-post-form.is-edit-mode #ta-post-cover-preview {
    display: none !important;
}

/* Post Card (Feed) */
.ta-tiktok-post-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #000;
    scroll-snap-align: start;
    overflow: hidden;
}

.ta-tiktok-post-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ta-tiktok-post-media img,
.ta-tiktok-post-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ta-post-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.ta-tiktok-post-card.is-paused .ta-post-video-play {
    opacity: 0.8;
}

.ta-tiktok-post-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Gleiche Unterkante wie .ta-ng-feed-info auf Entdecken (über Bottom-Nav + Aktionsleiste) */
    padding: 20px 0 calc(var(--ta-safe-bottom, env(safe-area-inset-bottom, 16px)) + var(--ta-feed-actions-offset, 108px)) 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    pointer-events: none;
    box-sizing: border-box;
}

.ta-tiktok-post-overlay .ta-tiktok-post-author,
.ta-tiktok-post-overlay .ta-tiktok-post-body,
.ta-tiktok-post-overlay .ta-tiktok-post-more-btn {
    pointer-events: auto;
    max-width: calc(100% - var(--ta-feed-actions-reserve, 88px));
}

.ta-tiktok-post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ta-tiktok-post-avatar {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #fff;
    overflow: hidden;
    background: #333;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.ta-tiktok-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ta-tiktok-post-avatar-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.35rem;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.ta-tiktok-post-author-info {
    display: flex;
    flex-direction: column;
}

.ta-tiktok-post-author-name,
a.ta-tiktok-post-author-name.ta-ng-feed-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    color: #fff;
    text-decoration: none;
}

a.ta-tiktok-post-author-name.ta-ng-feed-title:hover,
a.ta-tiktok-post-author-name.ta-ng-feed-title:focus-visible {
    text-decoration: underline;
    outline: none;
}

.ta-tiktok-post-subline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    max-width: 100%;
}

.ta-tiktok-post-subline-handle.ta-ng-feed-subline {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}

.ta-tiktok-post-meta-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    text-decoration: none;
    white-space: nowrap;
}

a.ta-tiktok-post-meta-badge:hover,
a.ta-tiktok-post-meta-badge:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.38);
    outline: none;
}

.ta-tiktok-post-avatar-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
}

.ta-tiktok-post-location-tag {
    font-size: 0.8rem;
    color: var(--ta-neon-primary, #00f2fe);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ta-tiktok-post-location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    font-size: 0.9rem;
    line-height: 1;
    color: currentColor;
}

.ta-tiktok-post-body {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 100%;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ta-tiktok-post-body.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.ta-tiktok-post-actions {
    position: absolute;
    bottom: calc(var(--ta-safe-bottom) + var(--ta-feed-actions-offset, 108px) + var(--ta-feed-actions-rise, 8px));
    right: var(--ta-feed-actions-right, 14px);
    display: flex;
    flex-direction: column;
    gap: var(--ta-explore-rail-gap, 16px);
    align-items: center;
    z-index: 10;
}

.ta-tiktok-post-action-btn {
    background: transparent;
    border: none;
    color: var(--ta-overlay-text, #fff);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0;
}

.ta-tiktok-post-action-btn:active {
    transform: scale(0.8);
}

.ta-tiktok-post-action-btn .ta-ng-btn-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ta-tiktok-post-action-btn svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: #fff;
    transition: all 0.3s;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}

.ta-tiktok-post-action-btn.btn-share svg {
    width: 22px;
    height: 22px;
}

.ta-tiktok-post-action-btn.btn-like.is-liked .ta-ng-btn-icon {
    background: transparent;
    border: none;
}

.ta-tiktok-post-action-btn.btn-like.is-liked svg {
    fill: var(--ta-like-active, #ef4444);
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.75));
    transform: scale(1.1);
}

.ta-tiktok-post-action-btn .ta-ng-action-count {
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Vertical TikTok-style post viewer */
body.ta-post-viewer-open {
    overflow: hidden;
}

.ta-post-viewer[hidden] {
    display: none !important;
}

.ta-post-viewer {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: #000;
}

body.ta-app-listing-shell .ta-post-viewer {
    left: 50%;
    right: auto;
    width: min(100vw, var(--ta-listing-app-w, 480px));
    max-width: var(--ta-listing-app-w, 480px);
    transform: translateX(-50%);
}

.ta-post-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: #000;
}

.ta-post-viewer-close {
    position: absolute;
    top: max(env(safe-area-inset-top, 0px), 12px);
    right: max(env(safe-area-inset-right, 0px), 12px);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.ta-post-viewer-track {
    position: relative;
    z-index: 2;
    height: 100dvh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ta-post-viewer-track::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.ta-post-viewer-slide {
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
}

.ta-post-viewer-slide .ta-tiktok-post-media {
    min-height: 100dvh;
}

.ta-post-viewer-slide .ta-tiktok-post-overlay {
    inset: 0;
    width: auto;
    min-height: 0;
    height: 100%;
    justify-content: flex-end;
    padding-bottom: calc(max(env(safe-area-inset-bottom, 0px), 16px) + 84px);
    box-sizing: border-box;
}

.ta-post-viewer-slide .ta-tiktok-post-media video,
.ta-post-viewer-slide .ta-tiktok-post-media img {
    width: 100%;
    height: 100dvh;
    object-fit: cover;
}

.ta-post-viewer-slide.is-paused .ta-post-video-play {
    opacity: 1;
}

/* TikTok-style post action sheets (edit / delete) */
body.ta-post-actions-open {
    overflow: hidden;
}

body.ta-post-comments-open {
    overflow: hidden;
}

.ta-post-actions-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3100;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ta-post-actions-backdrop[hidden],
.ta-post-actions-sheet[hidden] {
    display: none !important;
}

.ta-post-actions-sheet {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 3110;
    width: min(calc(100% - 20px), 420px);
    transform: translateX(-50%);
    display: grid;
    gap: 10px;
}

.ta-post-actions-sheet__head {
    padding: 18px 16px 8px;
    border-radius: 18px;
    text-align: center;
    color: #fff;
    background: rgba(22, 24, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ta-post-actions-sheet__head h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.ta-post-actions-sheet__head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.85rem;
}

.ta-post-actions-sheet__panel {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(22, 24, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ta-post-actions-sheet__btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.ta-post-actions-sheet__btn:last-child {
    border-bottom: 0;
}

.ta-post-actions-sheet__btn.is-danger {
    color: #ff375f;
}

.ta-post-actions-sheet__btn:active,
.ta-post-actions-sheet__cancel:active {
    background: rgba(255, 255, 255, 0.06);
}

.ta-post-actions-sheet__cancel {
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 18px;
    background: rgba(22, 24, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.ta-post-comments-sheet[hidden] {
    display: none !important;
}

.ta-post-comments-sheet__backdrop {
    position: fixed;
    inset: 0;
    z-index: 3120;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ta-post-comments-sheet__panel {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 3130;
    width: min(100%, 480px);
    max-height: min(78dvh, 760px);
    transform: translateX(-50%);
    border-radius: 24px 24px 0 0;
    background: rgba(12, 14, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    overflow: hidden;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.4);
}

.ta-post-comments-sheet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ta-post-comments-sheet__head h3 {
    margin: 0;
    font-size: 1.02rem;
}

.ta-post-comments-sheet__head p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
}

.ta-post-comments-sheet__close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.ta-post-comments-sheet__context {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ta-post-comments-sheet__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ta-post-comments-sheet__avatar,
.ta-post-comment__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    font-weight: 800;
}

.ta-post-comments-sheet__avatar img,
.ta-post-comment__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ta-post-comments-sheet__meta {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.ta-post-comments-sheet__meta strong {
    font-size: 0.95rem;
}

.ta-post-comments-sheet__meta span {
    color: var(--ta-neon-primary, #00f2fe);
    font-size: 0.8rem;
    font-weight: 600;
}

.ta-post-comments-sheet__body {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    line-height: 1.45;
}

.ta-post-comments-sheet__list {
    overflow-y: auto;
    padding: 10px 18px 18px;
    display: grid;
    gap: 14px;
}

.ta-post-comments-sheet__empty {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
    text-align: center;
    padding: 24px 0;
}

.ta-post-comment {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
}

.ta-post-comment--reply {
    margin-left: 28px;
}

.ta-post-comment__body {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.ta-post-comment__head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.ta-post-comment__author {
    font-weight: 700;
    font-size: 0.92rem;
}

.ta-post-comment__time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.ta-post-comment__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.45;
    font-size: 0.92rem;
    word-break: break-word;
}

.ta-post-comment__reply {
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.ta-post-comment__replies {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.ta-post-comments-sheet__form,
.ta-post-comments-sheet__login {
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 20, 0.98);
}

.ta-post-comments-sheet__form textarea {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 12px 14px;
    box-sizing: border-box;
    font: inherit;
}

.ta-post-comments-sheet__form textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.ta-post-comments-sheet__actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.ta-post-comments-sheet .ta-comments-sheet-submit {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    text-align: center;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    border-radius: 12px;
}

.ta-post-comments-sheet .ta-post-comments-sheet__cancel:not([hidden]) {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.ta-post-comments-sheet__cancel {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.ta-post-comments-sheet__login .ta-tiktok-btn-primary {
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.ta-tiktok-post-more-btn {
    position: absolute;
    top: max(env(safe-area-inset-top, 0px), 12px);
    left: max(env(safe-area-inset-left, 0px), 12px);
    right: auto;
    z-index: 4;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.ta-tiktok-post-more-btn svg {
    width: 20px;
    height: 20px;
}

.ta-post-viewer-more-btn {
    position: absolute;
    top: max(env(safe-area-inset-top, 0px), 12px);
    left: max(env(safe-area-inset-left, 0px), 12px);
    z-index: 6;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.ta-post-viewer-more-btn svg {
    width: 22px;
    height: 22px;
}

/* Social Posts Grid (Profile & Location) */
.ta-profile-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin: 12px -16px;
}

.ta-profile-post-item {
    display: block;
    aspect-ratio: 3/4;
    background: #111;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ta-profile-post-item > img,
.ta-profile-post-item > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    pointer-events: none;
}

.ta-profile-post-item .ta-post-type-icon {
    pointer-events: none;
}

.ta-profile-post-item:hover > img,
.ta-profile-post-item:hover > video {
    transform: scale(1.05);
}

.ta-profile-post-item--listing {
    text-decoration: none;
    color: inherit;
}

.ta-profile-post-item__empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(236, 72, 153, 0.78));
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
}

.ta-listing-posts-empty {
    margin: 8px 0 0;
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    font-size: 0.95rem;
}

.ta-post-type-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #fff;
    font-size: 0.75rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.ta-social-profile__actions--location {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    grid-template-columns: unset;
    gap: 8px;
}

.ta-social-profile__actions--location > * {
    min-width: 0;
}

.ta-social-profile__actions--location .ta-location-route-btn,
.ta-social-profile__actions--location .ta-location-follow-btn,
.ta-social-profile__actions--location .ta-location-post-btn,
.ta-social-profile__actions--location .ta-location-like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.ta-social-profile__actions--location .ta-location-route-btn:hover,
.ta-social-profile__actions--location .ta-location-follow-btn:hover,
.ta-social-profile__actions--location .ta-location-post-btn:hover,
.ta-social-profile__actions--location .ta-location-like-btn:hover,
.ta-social-profile__actions--location .ta-location-follow-btn.is-following,
.ta-social-profile__actions--location .ta-location-like-btn.is-active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.ta-social-profile__actions--location .ta-location-route-btn:active,
.ta-social-profile__actions--location .ta-location-follow-btn:active,
.ta-social-profile__actions--location .ta-location-post-btn:active,
.ta-social-profile__actions--location .ta-location-like-btn:active {
    transform: scale(0.96);
}

.ta-social-profile__actions--location .ta-location-route-btn svg,
.ta-social-profile__actions--location .ta-location-follow-btn svg,
.ta-social-profile__actions--location .ta-location-post-btn svg,
.ta-social-profile__actions--location .ta-location-like-btn svg {
    width: 20px;
    height: 20px;
}

.ta-social-profile__actions--location .ta-location-like-btn .ta-icon-solid {
    display: none;
}

.ta-social-profile__actions--location .ta-location-like-btn.is-active .ta-icon-outline {
    display: none;
}

.ta-social-profile__actions--location .ta-location-like-btn.is-active .ta-icon-solid {
    display: block;
    color: #ff2d55;
}

.ta-social-profile__actions--location .ta-location-follow-btn.is-following {
    color: #ff2d55;
}

body.ta-app-listing-shell #brief-ai-lp > .ta-tiktok-top {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    margin-left: calc(-1 * max(env(safe-area-inset-left, 0px), 16px));
    margin-right: calc(-1 * max(env(safe-area-inset-right, 0px), 16px));
    z-index: 90;
}

body.ta-app-listing-shell #brief-ai-lp > .ta-tiktok-top + .lp-lang-popup-overlay {
    z-index: 500;
}

body.ta-app-bottom-nav-docked.ta-app-listing-shell .ta-tiktok-nav.ta-app-bottom-nav-dock {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    width: min(100vw, 520px);
    max-width: 520px;
    transform: translateX(-50%);
    box-sizing: border-box;
    z-index: 120;
    padding-left: max(env(safe-area-inset-left, 0px), 16px);
    padding-right: max(env(safe-area-inset-right, 0px), 16px);
}

body.ta-app-bottom-nav-docked.ta-app-listing-shell .ta-tiktok-nav.ta-app-bottom-nav-dock .ta-tiktok-nav-inner {
    max-width: 100%;
}

body.ta-app-bottom-nav-docked.ta-app-listing-shell a.ta-tiktok-nav-item,
body.ta-app-bottom-nav-docked.ta-app-listing-shell a.ta-tiktok-nav-create {
    box-sizing: border-box;
    text-decoration: none;
}

.ta-public-users-grid .ta-cool-card--user {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ta-public-users-grid .ta-public-user-card__main {
    height: 100%;
}

.ta-public-users-grid .ta-card-img--initial {
    display: grid;
    place-items: center;
    min-height: 180px;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(145deg, rgba(15, 118, 110, 0.35), rgba(15, 23, 42, 0.85));
    color: #fff;
}

.ta-public-user-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 4px 4px;
}

.ta-public-user-card__actions .ta-social-profile__btn {
    justify-content: center;
    min-height: 38px;
    font-size: 0.82rem;
}

/* iOS Safari auto-zooms focused inputs below 16px — keep explore search stable on phones. */
@media (hover: none) and (pointer: coarse) {
    body.ta-tiktok-app-mode .ta-explore-spatial-search-input {
        font-size: 16px;
    }
}
