:root {
    /* Solid Colors */
    --color-000: #000;
    --color-0000: #000000;
    --color-111: #111;
    --color-111827: #111827;
    --color-1ca662: #1ca662;
    --color-1da1f2: #1da1f2;
    --color-222: #222;
    --color-2d2a32: #2d2a32;
    --color-305afe: #305afe;
    --color-333: #333;
    --color-37474f: #37474f;
    --color-3898ec: #3898ec;
    --color-41d1ff: #41d1ff;
    --color-444: #444;
    --color-4da6ff: #4da6ff;
    --color-4f46e5: #4f46e5;
    --color-555: #555;
    --color-615e64: #615e64;
    --color-61dafb: #61dafb;
    --color-6b7280: #6b7280;
    --color-6c696f: #6c696f;
    --color-8c52ff: #8c52ff;
    --color-939195: #939195;
    --color-a34ee2: #a34ee2;
    --color-bcbabd: #bcbabd;
    --color-dad9da: #dad9da;
    --color-dcdcdc: #dcdcdc;
    --color-e0e0e0: #e0e0e0;
    --color-e57373: #e57373;
    --color-ec4899: #ec4899;
    --color-eff0ef: #eff0ef;
    --color-f0f2f5: #f0f2f5;
    --color-f3f4f6: #f3f4f6;
    --color-f5efe6: #f5efe6;
    --color-f5f5f5: #f5f5f5;
    --color-f6f6f6: #f6f6f6;
    --color-fa5128: #fa5128;
    --color-fcd293: #fcd293;
    --color-fd99c0: #fd99c0;
    --color-fed217: #fed217;
    --color-ff5c5c: #ff5c5c;
    --color-ff6f61: #ff6f61;
    --color-ff8c42: #ff8c42;
    --color-ffd93b: #ffd93b;
    --color-4f86f7: #4f86f7;
    --color-fab429: #fab429;
    --color-f65169: #f65169;
    --color-0095f6: #0095f6;
    --color-007ed9: #007ed9;
    --color-fff: #fff;
    --color-ffffff: #ffffff;
    /* RGBA Colors */
    --rgba-2: rgba(0, 0, 0, 0.05);
    --rgba-10: rgba(0, 0, 0, 0.3);
    --rgba-11: rgba(0, 0, 0, 0.08);
    --rgba-12: rgba(0, 0, 0, 0.25);
    --rgba-18: rgba(245, 239, 230, 0.5);
    --rgba-29: rgba(255, 255, 255, 1);
    --rgba-34: rgba(0, 0, 0, 0.02);
    --rgba-35: rgba(0, 0, 0, 0.6);
    --rgba-37: rgba(50, 50, 93, 0.25);
    --rgba-38: rgba(255, 255, 255, 0.1);
    --rgba-41: rgba(0, 0, 0, 0.1);
    --rgba-53: rgba(0, 0, 0, 0.4);
    --rgba-62: rgba(0, 0, 0, 0.5);
}

/* ==========================================
   Dark Theme (opt-in)
   Usage options:
   - Add data-theme="dark" to <html> or <body>
   - Or add class "theme-dark" to <html> or <body>
   ========================================== */

:root[data-theme="dark"],
body.theme-dark,
html.theme-dark {
    /* Base surfaces (ChatGPT-like) */
    --bg-base: #0b0f14;
    /* main background */
    --bg-color: var(--bg-base);
    --bg-muted: #12161c;
    /* subtle muted area */
    --bg-elevated: #202123;
    /* cards/panels */
    --surface: var(--bg-elevated);
    --hover-bg-color: rgba(255, 255, 255, 0.06);
    /* Text & icons */
    --text-primary: #e5e7eb;
    /* near slate-200 */
    --text-dark: #e5e7eb;
    --text: #cfd3da;
    /* general text */
    --text-secondary: #c4ccd4;
    /* secondary */
    --text-muted: #b7c1cc;
    /* muted */
    --text-gray: #b7c1cc;
    /* Legacy variables used across styles */
    --primary-text: var(--text-primary);
    --secondary-text: var(--text-secondary);
    --icon-color: #ffffff;
    --eye-color: #ffffff;
    --svg-color: #c0c8d0;
    /* Controls */
    --btn-primary-bg: var(--button-blue-color);
    --btn-primary-text: var(--white);
    --button-dark-bg: #1a1d21;
    --input-bg: #303030;
    /* inputs (ChatGPT-like) */
    --border-subtle: rgba(255, 255, 255, 0.08);
    /* Accents keep brand */
    --accent: var(--button-blue-color);
    --link-color: var(--button-blue-color);
    /* Shadows */
    --box-shadow: var(--rgba-41);
    /* Alerts */
    --alert-info-bg: var(--color-accent-blue-a30);
    --alert-info-text: var(--text-primary);
    --alert-info-border: var(--color-blue-500);
    /* Settings dashboard */
    --sd-admin-text-primary: var(--text-primary);
    --sd-admin-text-muted: var(--text-muted);
    --sd-admin-link: var(--button-blue-color);
    --sd-admin-bg-blue-soft: var(--color-indigo-500-a16);
    --sd-admin-bg-blue-softer: var(--color-indigo-500-a25);
    --sd-admin-bg-teal-soft: var(--color-emerald-500-a12);
    --sd-admin-bg-coral-soft: var(--color-amber-500-a15);
    --sd-admin-bg-danger-soft: var(--color-red-500-a18);
    --sd-admin-bg-posts-soft: var(--color-slate-900-a12);
    --sd-admin-bg-offwhite: var(--bg-elevated);
    --sd-admin-hover-bg: var(--hover-bg-color);
    --sd-admin-hover-bg-subtle: var(--white-04);
    --rgba-18: rgba(30, 35, 43, 0.65);
    --rgba-12: rgba(12, 14, 20, 0.4);
    --rgba-29: rgba(23, 30, 40, 0.9);
}

:root[data-theme="dark"] .security-dashboard .status-pill--off,
html.theme-dark .security-dashboard .status-pill--off,
body.theme-dark .security-dashboard .status-pill--off {
    background: var(--color-slate-900-a20);
    border-color: var(--color-slate-900-a35);
    color: var(--sd-admin-text-primary);
}

:root[data-theme="dark"] .security-dashboard .security-empty,
html.theme-dark .security-dashboard .security-empty,
body.theme-dark .security-dashboard .security-empty {
    background: var(--color-slate-900-a15);
    border-color: var(--color-slate-900-a35);
}


/* Prefer system dark if not explicitly set */


/* Buttons that should invert on Dark (white bg, dark text) */

:root[data-theme="dark"] .pp-save,
html.theme-dark .pp-save,
body.theme-dark .pp-save {
    background: var(--white) !important;
    color: var(--black) !important;
}

:root[data-theme="dark"] .live-ended-actions .btn-go,
html.theme-dark .live-ended-actions .btn-go,
body.theme-dark .live-ended-actions .btn-go {
    background: var(--white) !important;
    color: var(--black) !important;
}

:root[data-theme="dark"] .tips-cta,
html.theme-dark .tips-cta,
body.theme-dark .tips-cta {
    background: var(--white) !important;
    color: var(--black) !important;
}


/* Hover states for inverted buttons */

:root[data-theme="dark"] .pe-save:hover,
html.theme-dark .pe-save:hover,
body.theme-dark .pe-save:hover,
:root[data-theme="dark"] .pp-save:hover,
html.theme-dark .pp-save:hover,
body.theme-dark .pp-save:hover,
:root[data-theme="dark"] .peb-copy:hover,
html.theme-dark .peb-copy:hover,
body.theme-dark .peb-copy:hover,
:root[data-theme="dark"] .live-ended-actions .btn-go:hover,
html.theme-dark .live-ended-actions .btn-go:hover,
body.theme-dark .live-ended-actions .btn-go:hover,
:root[data-theme="dark"] .tips-cta:hover,
html.theme-dark .tips-cta:hover,
body.theme-dark .tips-cta:hover {
    background: var(--hover-bg-color) !important;
    color: var(--text-dark) !important;
}


/* Accent focus ring for inputs/buttons */

.text-field:focus,
.pp-input:focus,
.pe-text:focus,
.textarea textarea:focus,
.tips-input:focus,
.tips-select:focus {
    box-shadow: var(--focus);
}

.margin-bottom-0 {
    margin-bottom: 0px !important;
}


/* Accessible-only label utility (shared with admin) */

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


/* Unified Pagination (shared styles) */

.dz-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    width: 100%;
}

.dz-pagination .page-core {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    max-width: 100%;
}

.dz-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle, var(--rgba-11));
    color: var(--text-dark, var(--color-111));
    text-decoration: none;
    background: var(--bg-base, var(--bg-color));
    font-size: 13px;
    font-weight: 600;
}

.dz-pagination .page-btn:hover {
    background: var(--sd-admin-hover-bg);
}

.dz-pagination .page-btn.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.dz-pagination .page-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0 6px;
    padding: 0;
    line-height: 1;
    font-size: 0;
}

.dz-pagination .page-list li {
    list-style: none;
    background: none !important;
    background-image: none !important;
    padding: 0;
    margin: 0;
}

.dz-pagination .page-list li::before {
    display: none !important;
}

.dz-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle, var(--rgba-11));
    text-decoration: none;
    color: var(--text-dark, var(--color-111));
    background: var(--bg-base, var(--bg-color));
    font-size: 13px;
    font-weight: 600;
}

.dz-pagination .page-link:hover {
    background: var(--sd-admin-hover-bg);
}

.dz-pagination .page-link.is-active {
    background: var(--color-slate-650);
    color: var(--white);
    border-color: var(--color-slate-650);
}

.dz-pagination .page-ellipsis {
    color: var(--text-gray, var(--color-6b7280));
    padding: 0 6px;
}

.dz-pagination .page-goto {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.dz-pagination .goto-input {
    width: 80px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle, var(--rgba-11));
    padding: 0 10px;
    background: var(--bg-base, var(--bg-color));
    color: var(--text-dark, var(--color-111));
}

.dz-pagination .goto-btn {
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--color-brand-blue);
    color: var(--white);
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.ads-sidebar,
.sponsor-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.ads-sidebar__header,
.sponsor-sidebar__header {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-gray, #6b7280);
}

.ads-sidebar__cards,
.sponsor-sidebar__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ads-card,
.sponsor-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: 16px;
    background: var(--surface, #ffffff);
    box-shadow: var(--shadow-2-6-08, none);
    overflow: hidden;
}

.ads-card-media,
.sponsor-card-media {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--grey-light, #f3f4f6);
}

.ads-card-media::after,
.sponsor-card-media::after {
    content: "";
    display: block;
    padding-bottom: 56%;
}

.ads-card-media>*,
.sponsor-card-media>* {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ads-card-image,
.sponsor-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ads-card-video,
.sponsor-card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    background: #000;
}

.ads-card-body,
.sponsor-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.ads-card-badge,
.sponsor-card-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-gray, #6b7280);
}

.ads-card-title,
.sponsor-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark, #111827);
    text-decoration: none;
}

.ads-card-title:hover,
.sponsor-card-title:hover {
    color: var(--button-blue-color);
}

.ads-card [data-ad-placeholder="1"],
.sponsor-card [data-ad-placeholder="1"] {
    pointer-events: none;
    cursor: default;
}

.ads-card-description,
.sponsor-card-description {
    font-size: 13px;
    color: var(--text-gray, #6b7280);
    line-height: 1.5;
    margin: 0;
}

.ads-card-cta,
.sponsor-card-cta {
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--button-blue-color);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ads-card-cta:hover,
.sponsor-card-cta:hover {
    background: var(--button-blue-hover-color, #2563eb);
}

.ads-card-cta:focus-visible,
.sponsor-card-cta:focus-visible {
    outline: 2px solid var(--button-blue-color);
    outline-offset: 2px;
}

.ads-sponsored {
    width: 100%;
}

.ads-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
    border-radius: 18px;
    background: var(--surface, #ffffff);
    box-shadow: var(--shadow-2-6-08, none);
}

.ads-frame__badge {
    position: absolute;
    top: 14px;
    left: 18px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
}

.ads-frame__media {
    margin-top: 20px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.ads-frame__media video,
.ads-frame__media img,
.ads-frame__video {
    width: 100%;
    display: block;
    object-fit: cover;
    border: none;
}

.ads-frame__link {
    display: block;
}

.ads-frame__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ads-frame__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ads-frame__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark, #111827);
    text-decoration: none;
}

.ads-frame__title:hover {
    color: var(--button-blue-color);
}

.ads-frame__description {
    margin: 0;
    font-size: 14px;
    color: var(--text-gray, #6b7280);
    line-height: 1.6;
    white-space: pre-line;
}

.ads-frame__cta {
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--button-blue-color);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ads-frame__cta:hover {
    background: var(--button-blue-hover-color, #2563eb);
}

.ads-frame__cta:focus-visible {
    outline: 2px solid var(--button-blue-color);
    outline-offset: 2px;
}

.ads-card+.ads-card,
.ads-card+.sponsor-card,
.sponsor-card+.ads-card,
.sponsor-card+.sponsor-card {
    margin-top: 0;
}

.ads-range-btn {
    color: var(--white);
    padding: 5px 12px;
    background-color: var(--button-dark-bg);
    border: 1px solid var(--border-color);
    outline: none;
    cursor: pointer;
    border-radius: 10px;
}

.ads-range-btn:hover {
    background-color: var(--hover-bg-color);
}

.dz-pagination .goto-btn:hover {
    opacity: .9;
}


/* Responsive behavior */

:root {
    /* System Variables */
    --bg-color: var(--color-f5efe6);
    --primary-color: var(--color-ff5c5c);
    --primary-text: var(--color-000);
    --secondary-text: var(--color-444);
    --muted-text: var(--color-333);
    --hero-tag-bg: var(--color-fcd293);
    --button-dark-bg: var(--color-222);
    --button-blue-color: var(--color-0095f6);
    --button-blue-hover-color: var(--color-007ed9);
    --button-text: var(--color-fff);
    --box-shadow: var(--rgba-41);
    --icon-color: var(--color-ffffff);
    --eye-color: var(--color-ffffff);
    --verified-color: var(--color-1da1f2);
    --text-dark: var(--color-111827);
    --text-gray: var(--color-6b7280);
    --bg-light: var(--color-eff0ef);
    --btn-dark: var(--color-111827);
    --text: var(--color-2d2a32);
    --white: var(--color-ffffff);
    --black: var(--color-2d2a32);
    --grey-on-white: var(--color-6c696f);
    --grey-light: var(--color-eff0ef);
    --grey-background: var(--color-dad9da);
    --grey-on-black: var(--color-bcbabd);
    --grey-light-text: var(--color-939195);
    --grey-on-grey: var(--color-615e64);
    --blue: var(--color-305afe);
    --orange-red: var(--color-fa5128);
    --gold: var(--color-fed217);
    --light-pink: var(--color-fd99c0);
    --green: var(--color-1ca662);
    --warning: var(--color-e57373);
    /* Char Colors (Sticker?) */
    --charColor1: var(--color-ffd93b);
    --charColor2: var(--color-ff8c42);
    --charColor3: var(--color-ff6f61);
    --charColor4: var(--color-8c52ff);
    --charColor5: var(--color-00c49a);
    --charColor6: var(--color-4da6ff);
    /* Fonts */
    --GaphikFont: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --PlatformSansSerif: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --fontApple: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* Additional Icon Colors */
    --icon-color-white: var(--color-ffffff);
    --cancel-button: var(--color-37474f);
    /*Icon and Menu Hover BackgroundColor*/
    --hover-bg-color: var(--color-e0e0e0);
    /*Global SVG Color*/
    --svg-color: var(--color-333);
    --toggle-width: 72px;
    --toggle-height: 40px;
    --thumb-size: 32px;
    --radius: 999px;
    /* Light theme colors (OFF state like screenshot #1) */
    --track-off: #e5e9ef;
    /* soft gray */
    --track-on: #4f86f7;
    /* primary when ON */
    --thumb: #ffffff;
    --shadow: 0 1px 3px var(--rgba-15);
    --focus: 0 0 0 3px var(--button-blue-a35);
    --dark: var(--color-0000);
    /* Generic overlays / borders used in video editor & swiper */
    --rgba-0: rgba(0, 0, 0, 0);
    --rgba-8: rgba(0, 0, 0, 0.08);
    --rgba-15: rgba(0, 0, 0, 0.15);
    --rgba-25: rgba(0, 0, 0, 0.25);
    --rgba-35: rgba(0, 0, 0, 0.35);
    --rgba-55: rgba(0, 0, 0, 0.55);
    --rgba-80: rgba(0, 0, 0, 0.8);
    /* Whites with alpha for text/lines over video */
    --white-70: rgba(255, 255, 255, 0.7);
    --white-85: rgba(255, 255, 255, 0.85);
    --white-90: rgba(255, 255, 255, 0.9);
    --white-30: rgba(255, 255, 255, 0.3);
    --white-25: rgba(255, 255, 255, 0.25);
    /* Solid colors used in this range */
    /* Note: if --black / --white / --color-111 already exist, keep them. */
    --color-111: #111;
    /* dark border on handles */
    --toast-error: #f44336;
    /* toast error */
    --toast-success: #4caf50;
    /* toast success */
    --toast-info: #2196f3;
    /* toast info */
    /* Additional Colors and Shadows */
    --color-e6e6e6: #e6e6e6;
    --color-bbb: #bbb;
    --color-ddd: #ddd;
    --color-00c49a: #00c49a;
    --color-4ea3ff: #4ea3ff;
    --color-7db3ff: #7db3ff;
    --color-777: #777;
    /* Extended palette */
    --color-emerald-900: #0b6b2b;
    --color-emerald-700: #047857;
    --color-emerald-500: #10b981;
    --color-emerald-50: #f0fdf4;
    --color-mint-50: #e6f4ea;
    --color-cyan-600: #0891b2;
    --color-cyan-500: #0bb0c0;
    --color-cyan-400: #24b8c7;
    --color-teal-500: #14b8a6;
    --color-green-600: #16a34a;
    --color-green-500: #22c55e;
    --color-slate-950: #0b1120;
    --color-slate-940: #0b1220;
    --color-slate-900: #0f172a;
    --color-ink-950: #10131a;
    --color-midnight-900: #111b2e;
    --color-gray-800: #1f2937;
    --color-gray-700: #374151;
    --color-slate-650: #4b5563;
    --color-slate-600: #475569;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;
    --color-gray-50: #f9fafb;
    --color-charcoal-900: #202123;
    --color-facebook-primary: #1877f2;
    --color-facebook-shadow: #0f5fcc;
    --color-twitter-blue: #1d9bf0;
    --color-twitter-deep: #1a8cd8;
    --color-brand-blue: #1f4bd8;
    --color-blue-650: #274bcc;
    --color-blue-600: #1d4ed8;
    --color-blue-500: #2563eb;
    --color-blue-300: #8ab6ff;
    --color-blue-200: #b7d0ff;
    --color-indigo-700: #4338ca;
    --color-indigo-500: #6366f1;
    --color-indigo-50: #f5f3ff;
    --color-violet-500: #7c3aed;
    --color-orange-500: #f97316;
    --color-orange-450: #f77737;
    --color-orange-400: #fb923c;
    --color-orange-gradient-mid: #f56040;
    --color-amber-700: #b45309;
    --color-amber-500: #f59e0b;
    --color-amber-400: #ffb300;
    --color-rose-600: #e11d48;
    --color-rose-50: #fff1f2;
    --color-red-700: #b00020;
    --color-red-600: #b91c1c;
    --color-red-500: #fd1d1d;
    --color-coral-500: #ff6b60;
    --color-sky-50: #e8f5fd;
    --color-sky-100: #f0f9ff;
    /* RGB channel tokens */
    --black-rgb: 0, 0, 0;
    --button-blue-rgb: 0, 149, 246;
    --color-slate-500-rgb: 107, 114, 128;
    --color-slate-950-rgb: 11, 17, 32;
    --color-slate-400-rgb: 148, 163, 184;
    --color-slate-900-rgb: 15, 23, 42;
    --color-emerald-500-rgb: 16, 185, 129;
    --ink-900-rgb: 17, 17, 26;
    --color-gray-900-rgb: 17, 24, 39;
    --color-midnight-900-rgb: 17, 27, 46;
    --color-slate-300-rgb: 203, 213, 225;
    --color-slate-200-rgb: 226, 232, 240;
    --color-gray-200-rgb: 229, 231, 235;
    --color-red-500-rgb: 239, 68, 68;
    --color-amber-500-rgb: 245, 158, 11;
    --color-slate-50-rgb: 248, 250, 252;
    --color-gray-50-rgb: 249, 250, 251;
    --white-rgb: 255, 255, 255;
    --color-green-500-rgb: 28, 166, 98;
    --color-twitter-blue-rgb: 29, 161, 242;
    --color-brand-blue-rgb: 31, 75, 216;
    --color-royal-500-rgb: 48, 90, 254;
    --color-sky-500-rgb: 59, 130, 246;
    --color-accent-blue-rgb: 79, 134, 247;
    --color-indigo-600-rgb: 79, 70, 229;
    --color-mint-500-rgb: 80, 205, 137;
    --color-indigo-500-rgb: 99, 102, 241;
    /* Semi-transparent tokens */
    --button-blue-a15: rgba(var(--button-blue-rgb), 0.15);
    --button-blue-a25: rgba(var(--button-blue-rgb), 0.25);
    --button-blue-a35: rgba(var(--button-blue-rgb), 0.35);
    --color-accent-blue-a06: rgba(var(--color-accent-blue-rgb), 0.06);
    --color-accent-blue-a08: rgba(var(--color-accent-blue-rgb), 0.08);
    --color-accent-blue-a12: rgba(var(--color-accent-blue-rgb), 0.12);
    --color-accent-blue-a18: rgba(var(--color-accent-blue-rgb), 0.18);
    --color-accent-blue-a30: rgba(var(--color-accent-blue-rgb), 0.3);
    --color-accent-blue-a35: rgba(var(--color-accent-blue-rgb), 0.35);
    --color-accent-blue-a40: rgba(var(--color-accent-blue-rgb), 0.4);
    --color-accent-blue-a50: rgba(var(--color-accent-blue-rgb), 0.5);
    --color-amber-500-a15: rgba(var(--color-amber-500-rgb), 0.15);
    --color-brand-blue-a11: rgba(var(--color-brand-blue-rgb), 0.11);
    --color-emerald-500-a08: rgba(var(--color-emerald-500-rgb), 0.08);
    --color-emerald-500-a12: rgba(var(--color-emerald-500-rgb), 0.12);
    --color-emerald-500-a18: rgba(var(--color-emerald-500-rgb), 0.18);
    --color-emerald-500-a35: rgba(var(--color-emerald-500-rgb), 0.35);
    --color-gray-200-a90: rgba(var(--color-gray-200-rgb), 0.9);
    --color-gray-50-a90: rgba(var(--color-gray-50-rgb), 0.9);
    --color-gray-900-a12: rgba(var(--color-gray-900-rgb), 0.12);
    --color-green-500-a25: rgba(var(--color-green-500-rgb), 0.25);
    --color-indigo-500-a06: rgba(var(--color-indigo-500-rgb), 0.06);
    --color-indigo-500-a08: rgba(var(--color-indigo-500-rgb), 0.08);
    --color-indigo-500-a12: rgba(var(--color-indigo-500-rgb), 0.12);
    --color-indigo-500-a15: rgba(var(--color-indigo-500-rgb), 0.15);
    --color-indigo-500-a16: rgba(var(--color-indigo-500-rgb), 0.16);
    --color-indigo-500-a25: rgba(var(--color-indigo-500-rgb), 0.25);
    --color-indigo-500-a35: rgba(var(--color-indigo-500-rgb), 0.35);
    --color-indigo-500-a45: rgba(var(--color-indigo-500-rgb), 0.45);
    --color-indigo-600-a05: rgba(var(--color-indigo-600-rgb), 0.05);
    --color-indigo-600-a12: rgba(var(--color-indigo-600-rgb), 0.12);
    --color-midnight-900-a08: rgba(var(--color-midnight-900-rgb), 0.08);
    --color-midnight-900-a22: rgba(var(--color-midnight-900-rgb), 0.22);
    --color-mint-500-a12: rgba(var(--color-mint-500-rgb), 0.12);
    --color-red-500-a18: rgba(var(--color-red-500-rgb), 0.18);
    --color-royal-500-a22: rgba(var(--color-royal-500-rgb), 0.22);
    --color-royal-500-a28: rgba(var(--color-royal-500-rgb), 0.28);
    --color-sky-500-a08: rgba(var(--color-sky-500-rgb), 0.08);
    --color-sky-500-a15: rgba(var(--color-sky-500-rgb), 0.15);
    --color-sky-500-a18: rgba(var(--color-sky-500-rgb), 0.18);
    --color-slate-200-a60: rgba(var(--color-slate-200-rgb), 0.6);
    --color-slate-200-a70: rgba(var(--color-slate-200-rgb), 0.7);
    --color-slate-200-a85: rgba(var(--color-slate-200-rgb), 0.85);
    --color-slate-200-a90: rgba(var(--color-slate-200-rgb), 0.9);
    --color-slate-300-a35: rgba(var(--color-slate-300-rgb), 0.35);
    --color-slate-300-a90: rgba(var(--color-slate-300-rgb), 0.9);
    --color-slate-400-a08: rgba(var(--color-slate-400-rgb), 0.08);
    --color-slate-400-a25: rgba(var(--color-slate-400-rgb), 0.25);
    --color-slate-400-a35: rgba(var(--color-slate-400-rgb), 0.35);
    --color-slate-400-a45: rgba(var(--color-slate-400-rgb), 0.45);
    --color-slate-400-a70: rgba(var(--color-slate-400-rgb), 0.7);
    --color-slate-400-a90: rgba(var(--color-slate-400-rgb), 0.9);
    --color-slate-50-a70: rgba(var(--color-slate-50-rgb), 0.7);
    --color-slate-500-a16: rgba(var(--color-slate-500-rgb), 0.16);
    --color-slate-500-a18: rgba(var(--color-slate-500-rgb), 0.18);
    --color-slate-900-a07: rgba(var(--color-slate-900-rgb), 0.07);
    --color-slate-900-a08: rgba(var(--color-slate-900-rgb), 0.08);
    --color-slate-900-a10: rgba(var(--color-slate-900-rgb), 0.1);
    --color-slate-900-a12: rgba(var(--color-slate-900-rgb), 0.12);
    --color-slate-900-a15: rgba(var(--color-slate-900-rgb), 0.15);
    --color-slate-900-a18: rgba(var(--color-slate-900-rgb), 0.18);
    --color-slate-900-a20: rgba(var(--color-slate-900-rgb), 0.2);
    --color-slate-900-a25: rgba(var(--color-slate-900-rgb), 0.25);
    --color-slate-900-a35: rgba(var(--color-slate-900-rgb), 0.35);
    --color-slate-950-a28: rgba(var(--color-slate-950-rgb), 0.28);
    --color-twitter-blue-a25: rgba(var(--color-twitter-blue-rgb), 0.25);
    --ink-900-a05: rgba(var(--ink-900-rgb), 0.05);
    --ink-900-a10: rgba(var(--ink-900-rgb), 0.1);
    --rgba-black-18: rgba(var(--black-rgb), 0.18);
    --rgba-black-20: rgba(var(--black-rgb), 0.2);
    --rgba-black-28: rgba(var(--black-rgb), 0.28);
    --rgba-black-65: rgba(var(--black-rgb), 0.65);
    --rgba-black-75: rgba(var(--black-rgb), 0.75);
    --white-04: rgba(var(--white-rgb), 0.04);
    --white-12: rgba(var(--white-rgb), 0.12);
    --white-20: rgba(var(--white-rgb), 0.2);
    --white-22: rgba(var(--white-rgb), 0.22);
    --white-75: rgba(var(--white-rgb), 0.75);
    --white-80: rgba(var(--white-rgb), 0.8);
    --white-95: rgba(var(--white-rgb), 0.95);
    --link-blue: var(--color-7db3ff);
    --danger: #e53935;
    --danger-alt: #ef4444;
    --danger-hover: #dc2626;
    /* Toast v2 palette */
    --toast-bg: var(--color-111);
    --toast-bg-success: #0f5132;
    --toast-bg-error: #842029;
    --toast-bg-info: #0d6efd;
    --toast-shadow: 0 8px 24px var(--rgba-black-20);
    /* Alerts palette */
    --alert-error-bg: #fde8e8;
    --alert-error-text: #7f1d1d;
    --alert-error-border: #fecaca;
    --alert-success-bg: #ecfdf5;
    --alert-success-text: #065f46;
    --alert-success-border: #a7f3d0;
    --alert-info-bg: #eff6ff;
    --alert-info-text: #1e3a8a;
    --alert-info-border: #bfdbfe;
    /* Additional alphas */
    --white-18: rgba(255, 255, 255, 0.18);
    --rgba-30: rgba(0, 0, 0, 0.12);
    /* Shadow presets */
    --shadow-2-6-08: 0 2px 6px var(--rgba-11);
    --shadow-4-10-12: 0 4px 10px var(--rgba-30);
    --shadow-4-12-20: 0 4px 12px var(--rgba-black-20);
    --shadow-6-16-10: 0 6px 16px var(--rgba-41);
    --shadow-8-24-10: 0 8px 24px var(--rgba-41);
    --shadow-8-24-20: 0 8px 24px var(--rgba-black-20);
    --shadow-20-40-25: 0 20px 40px var(--rgba-12);
    --shadow-soft: var(--ink-900-a10) 0px 4px 16px, var(--ink-900-a05) 0px 8px 32px;
    --shadow-8-24-35: 0 8px 24px var(--rgba-35);
    /*Range Border*/
    --range-blue: var(--range-blue);
    --range-color-1: #c0ccda;
    --range-color-2: #d3dce6;
    --range-color-3: #fdd835;
    --range-color-4: #b0d7f5;
    --range-color-5: #13ce66;
    --range-color-6: #a1efc4;
    --range-color-7: #ff4949;
    --range-color-8: #f9b3b3;
    --range-color-9: #fbeac1;
    /*Like SVG color*/
    --post-like-color: #d32f2f;
    /* Semantic aliases */
    --text-primary: var(--text);
    --text-secondary: var(--secondary-text);
    --text-muted: var(--muted-text);
    --text-inverse: var(--white);
    --bg-base: var(--bg-color);
    --bg-muted: var(--bg-light);
    --bg-elevated: var(--white);
    --surface: var(--white);
    --border-subtle: var(--color-e6e6e6);
    --overlay-dim: var(--rgba-62);
    --accent: var(--button-blue-color);
    --accent-hover: var(--button-blue-hover-color);
    --link-color: var(--link-blue);
    --btn-primary-bg: var(--button-blue-color);
    --btn-primary-text: var(--white);
    --btn-primary-hover-bg: var(--accent-hover);
    --input-bg: var(--color-f0f2f5);
    /* Minor alphas */
    --rgba-03: rgba(0, 0, 0, 0.03);
    --rgba-45: rgba(0, 0, 0, 0.45);
    --white-08: rgba(255, 255, 255, 0.08);
    --white-60: rgba(255, 255, 255, 0.6);
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

* {
    box-sizing: border-box;
}

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


/* Local Inter font (variable preferred, fallback static) */

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter/Inter-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/inter/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html,
body {
    width: 100%;
    height: 100%;
    padding: 0px;
    margin: 0px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary, var(--text-dark));
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    scroll-behavior: smooth;
    background-color: var(--bg-base, var(--bg-color));
}

.full-width {
    width: 100%;
}

.gap {
    gap: 10px;
}

.gap-root {
    gap: 1px;
}

.column-gap {
    column-gap: 10px;
}

.none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.transition {
    -webkit-transition: all 0.25s ease;
    -moz-transition: all ease 0.25s;
    -o-transition: all ease 0.25s;
    transition: all 0.25s ease;
}

.cursor-point {
    cursor: pointer;
}

header {
    padding: 30px 60px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-weight: bold;
    font-size: 18px;
}

nav {
    display: flex;
    gap: 30px;
    font-size: 14px;
    justify-content: center;
    align-items: center;
}

nav a {
    color: var(--primary-text);
    text-decoration: none;
}

.auth-buttons button {
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.auth-buttons .login {
    background: none;
    margin-right: 10px;
}

.auth-buttons .signup {
    background: var(--button-dark-bg);
    color: var(--button-text);
    padding: 8px 16px;
    border-radius: 20px;
}

.hero {
    text-align: center;
    background: var(--bg-color);
    padding: 30px 20px 0;
}

.hero .tag {
    display: inline-block;
    background: var(--hero-tag-bg);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.hero p {
    font-size: 16px;
    color: var(--secondary-text);
    margin-top: 15px;
}

.carousel-wrapper {
    width: 100vw;
    perspective: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.21);
}

.carousel {
    position: relative;
    width: 300px;
    height: 450px;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 0.4s ease-out;
    user-select: none;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.6s ease;
    opacity: 1;
    transform-origin: center center;
}

.carousel-item:hover {
    opacity: 1;
    box-shadow: var(--rgba-37) 0px 50px 100px -20px, var(--rgba-10) 0px 30px 60px -30px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotateY(180deg);
}

.view-count {
    position: absolute;
    bottom: 10px;
    right: 12px;
    /* 12px from the right edge */
    display: flex;
    align-items: center;
    background-color: var(--rgba-62);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--color-fff);
    font-weight: 500;
    z-index: 2;
    backdrop-filter: blur(2px);
    transform: rotateY(180deg);
    /* fix mirroring */
}

.carousel-item.no-view-metric .view-count {
    display: none;
}

.username-label {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: var(--rgba-53);
    color: var(--color-fff);
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 20px;
    font-weight: 500;
    z-index: 2;
    backdrop-filter: blur(2px);
    transform: rotateY(180deg);
    /* mirror correction */
    display: flex;
    align-items: center;
    justify-content: center;
}

.verified-badge {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: cover;
}

.eye-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    align-items: center;
    justify-content: center;
    color: var(--color-fff);
    transform: rotateY(180deg);
}

.eye-icon svg,
.eye-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.view-number {
    margin-left: 6px;
}

.image-list {
    display: none;
}

.cta {
    background: var(--bg-color);
    text-align: center;
    padding: 40px 20px 60px;
}

.cta .btn-wrapper {
    position: relative;
    display: inline-block;
}

.cta .btn-wrapper a {
    background: var(--primary-color);
    color: var(--button-text);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px var(--box-shadow);
    display: inline-block;
}

.cta .btn-wrapper span {
    position: absolute;
    left: -70px;
    bottom: -25px;
    font-size: 12px;
    color: var(--muted-text);
    transform: rotate(-10deg);
}

.cta .btn-wrapper .arrow {
    width: 40px;
    height: 30px;
    border-left: 2px solid var(--muted-text);
    border-bottom: 2px solid var(--muted-text);
    transform: rotate(-45deg);
    position: absolute;
    left: 45px;
    bottom: 10px;
}

header {
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.relative {
    position: relative;
    overflow: hidden;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.main-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 20px 0;
    transition: all 0.3s ease;
    padding-left: 20px;
    padding-right: 20px;
}

body.nav-locked {
    overflow: hidden;
}

.wrapper {
    background-image: url('imgs/blur-bg.png');
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 100% auto;
}

.main-header-inner {
    width: 100%;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background-color: var(--rgba-18);
    border-radius: 100px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    inset: 20px 4% auto;
    transition: border-radius 0.2s ease;
}

:root[data-theme="dark"] .main-header-inner,
html[data-theme="dark"] .main-header-inner,
body[data-theme="dark"] .main-header-inner,
html.theme-dark .main-header-inner,
body.theme-dark .main-header-inner {
    background-color: var(--bg-elevated) !important;
    color: var(--text-primary);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

html.theme-dark .main-header-inner h1,
html.theme-dark .main-header-inner h2,
html.theme-dark .main-header-inner h3,
html.theme-dark .main-header-inner h4,
html.theme-dark .main-header-inner h5,
html.theme-dark .main-header-inner h6,
body.theme-dark .main-header-inner h1,
body.theme-dark .main-header-inner h2,
body.theme-dark .main-header-inner h3,
body.theme-dark .main-header-inner h4,
body.theme-dark .main-header-inner h5,
body.theme-dark .main-header-inner h6,
:root[data-theme="dark"] .main-header-inner h1,
:root[data-theme="dark"] .main-header-inner h2,
:root[data-theme="dark"] .main-header-inner h3,
:root[data-theme="dark"] .main-header-inner h4,
:root[data-theme="dark"] .main-header-inner h5,
:root[data-theme="dark"] .main-header-inner h6 {
    color: var(--text-primary);
}

html.theme-dark .main-header-inner p,
body.theme-dark .main-header-inner p,
:root[data-theme="dark"] .main-header-inner p {
    color: var(--text-secondary);
}

.theme-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--bg-elevated);
    color: var(--text-dark);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft, var(--box-shadow));
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    z-index: 1100;
}

.theme-toggle:hover {
    transform: translateY(-2px);
}

:root[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .theme-toggle,
html.theme-dark .theme-toggle,
body.theme-dark .theme-toggle {
    background: var(--color-slate-900-a20);
    color: var(--text-primary);
    border-color: var(--color-slate-900-a35);
}

:root[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:hover,
html.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:hover {
    background: var(--color-slate-900-a35);
}

.container-nav {
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    display: flex;
    position: relative;
    gap: 20px;
}

.nav-cluster {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    box-sizing: border-box;
}

.primary-navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.12));
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark, #111827);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--color-305afe, #305afe);
    outline-offset: 2px;
}

:root[data-theme="dark"] .nav-toggle,
html.theme-dark .nav-toggle,
body.theme-dark .nav-toggle {
    background: var(--color-slate-900-a50, rgba(15, 23, 42, 0.5));
    color: var(--text-primary, #f8fafc);
    border-color: var(--color-slate-900-a35, rgba(15, 23, 42, 0.35));
}

.nav-toggle__box {
    width: 22px;
    height: 16px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.nav-toggle__line {
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-header.menu-open .nav-toggle__line--top {
    transform: translateY(7px) rotate(45deg);
}

.main-header.menu-open .nav-toggle__line--middle {
    opacity: 0;
}

.main-header.menu-open .nav-toggle__line--bottom {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle__label {
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.container-nav nav a {
    margin-left: 0;
}

nav .menu-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

nav .menu-item + .menu-item {
    margin-left: 12px;
}

nav .menu-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--menu-underline-color, currentColor);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease, background-color 0.22s ease;
    border-radius: 999px;
    opacity: 0.95;
}

nav .menu-item:hover::after,
nav .menu-item:focus-visible::after {
    transform: scaleX(1);
}

nav .menu-item:hover,
nav .menu-item:focus-visible {
    opacity: 1;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.site-logo img {
    width: auto;
    height: 35px;
}


/* Logo theme/viewport variants */

.logo-image {
    display: none !important;
    height: 35px;
    width: auto;
}


/* Default to light theme (unless system/explicit dark overrides) */

.logo--for-light {
    display: inline !important;
}

.logo--for-dark {
    display: none !important;
}


/* Desktop by default; switch to mobile on small screens */

.logo--desktop {
    display: inline !important;
}

.logo--mobile {
    display: none !important;
}


/* Explicit theme overrides via data-theme / classes (Desktop only) */

:root[data-theme="dark"] .logo--desktop.logo--for-light,
html.theme-dark .logo--desktop.logo--for-light,
body.theme-dark .logo--desktop.logo--for-light {
    display: none !important;
}

:root[data-theme="dark"] .logo--desktop.logo--for-dark,
html.theme-dark .logo--desktop.logo--for-dark,
body.theme-dark .logo--desktop.logo--for-dark {
    display: inline !important;
}

:root[data-theme="light"] .logo--desktop.logo--for-light,
html.theme-light .logo--desktop.logo--for-light,
body.theme-light .logo--desktop.logo--for-light {
    display: inline !important;
}

:root[data-theme="light"] .logo--desktop.logo--for-dark,
html.theme-light .logo--desktop.logo--for-dark,
body.theme-light .logo--desktop.logo--for-dark {
    display: none !important;
}


/* System preference when explicit theme is not set or set to auto */

@media (prefers-color-scheme: dark) {
     :root:not([data-theme]) .logo--desktop.logo--for-light,
     :root[data-theme="auto"] .logo--desktop.logo--for-light {
        display: none !important;
    }
     :root:not([data-theme]) .logo--desktop.logo--for-dark,
     :root[data-theme="auto"] .logo--desktop.logo--for-dark {
        display: inline !important;
    }
}

@media (max-width: 640px) and (prefers-color-scheme: dark) {
    /* Mobile auto/system */
     :root:not([data-theme]) .has-mobile-logo .logo--mobile.logo--for-light,
     :root[data-theme="auto"] .has-mobile-logo .logo--mobile.logo--for-light {
        display: none !important;
    }
     :root:not([data-theme]) .has-mobile-logo .logo--mobile.logo--for-dark,
     :root[data-theme="auto"] .has-mobile-logo .logo--mobile.logo--for-dark {
        display: inline !important;
    }
    /* Also force-hide desktop variants in auto/system dark on mobile */
     :root:not([data-theme]) .has-mobile-logo .logo--desktop.logo--for-light,
     :root[data-theme="auto"] .has-mobile-logo .logo--desktop.logo--for-light,
     :root:not([data-theme]) .has-mobile-logo .logo--desktop.logo--for-dark,
     :root[data-theme="auto"] .has-mobile-logo .logo--desktop.logo--for-dark {
        display: none !important;
    }
}

.logo-light {
    font-weight: 400;
}

.work-example {
    border-radius: 40px;
    width: 160px;
    max-width: none;
    height: auto;
}

img {
    vertical-align: middle;
    display: inline-block;
}

img {
    border: 0;
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

:root[data-theme="dark"] nav a,
html.theme-dark nav a,
body.theme-dark nav a {
    color: var(--text-primary);
}

.btn-call {
    background: var(--color-fff);
    border-radius: 9999px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 1px 3px var(--rgba-11);
    border: 1px solid var(--color-e5e7eb);
    transition: 0.2s ease;
}

.btn-call:hover {
    background: var(--color-f3f4f6);
}

:root[data-theme="dark"] .btn-call,
html.theme-dark .btn-call,
body.theme-dark .btn-call {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 3px var(--color-slate-900-a25);
}

:root[data-theme="dark"] .btn-call:hover,
html.theme-dark .btn-call:hover,
body.theme-dark .btn-call:hover {
    background: var(--color-slate-900-a30);
}

.recent-work h2 {
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.01em;
    /*margin-bottom: 20px;*/
    font-family: var(--PlatformSansSerif);
    font-size: 60px;
    font-weight: 500;
    line-height: 94%;
    z-index: 2;
}

.recent-work .max-width-640px {
    margin-left: auto;
    margin-right: auto;
}

.recent-work p {
    color: var(--text-dark);
    text-align: center;
    max-width: 680px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    font-size: 20px;
    line-height: 30px;
    font-family: var(--GaphikFont);
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 0px);
    text-align: center;
    padding: 40px 20px;
    overflow: hidden;
}

.hero-top-space {
    padding-top: 180px;
}

.hero h1 {
    max-width: 1300px;
    text-align: center;
    line-height: 94%;
    letter-spacing: -0.01em;
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 130px;
    font-weight: 900;
    color: var(--text);
    font-family: var(--PlatformSansSerif);
}

.hero .hero-bg {
    position: absolute;
    z-index: -1;
    left: 0;
    height: 100%;
    width: 100%;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.3;
    }
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.btn-start {
    padding: 14px 28px;
    background: var(--btn-dark);
    color: var(--color-fff);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: 0.2s ease;
    position: relative;
    z-index: 1;
    margin-top: -50px;
}

.ghost {
    position: absolute;
    width: 150px;
    z-index: 0;
    will-change: transform;
}

.ghost-left-top {
    top: 30px;
    left: 15%;
    transform: rotate(-6deg);
}

.ghost-left-bottom {
    bottom: 80px;
    left: 20%;
    transform: rotate(-4deg);
}

.ghost-right-top {
    top: 50px;
    right: 15%;
    transform: rotate(6deg);
}

.ghost-right-bottom {
    bottom: 80px;
    right: 20%;
    transform: rotate(5deg);
}

.ghost-center-top {
    top: 10px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    z-index: 0;
}


/* Animasyonlar */

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomInDZ {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Classes */

.fade-down {
    animation: fadeDown 0.8s ease-out forwards;
}

.zoom-in {
    animation: zoomInDZ 0.6s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.4s;
}

.delay-2 {
    animation-delay: 0.8s;
}

.delay-3 {
    animation-delay: 1.2s;
}

.delay-4 {
    animation-delay: 1.6s;
}

.delay-5 {
    animation-delay: 2s;
}

.delay-6 {
    animation-delay: 2.4s;
}

.delay-7 {
    animation-delay: 2.8s;
}

.delay-8 {
    animation-delay: 3.2s;
}

@keyframes slideInUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate__slideInUp {
    animation-name: slideInUp;
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__delay-2s {
    animation-delay: 2s;
}

.fade-down,
.zoom-in {
    animation-fill-mode: forwards;
}

.hero-title {
    background: linear-gradient( 90deg, var(--color-4f46e5), var(--color-ec4899), var(--color-4f46e5));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 6s ease infinite, zoomInDZ 0.6s ease-out forwards;
    animation-delay: 0s, 0.8s;
    font-weight: 900;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.1;
    margin: 20px auto 40px;
    text-align: center;
    opacity: 0;
}

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

.converted {
    position: absolute;
    bottom: 0px;
    margin: 0;
    padding: 0;
    display: inline-block;
    line-height: 0;
    font-size: 0;
}

.converted img {
    position: relative;
    margin: 0;
    padding: 0;
    display: block;
    vertical-align: bottom;
}

.converted_mirror {
    position: absolute;
    top: 0px;
    margin: 0;
    padding: 0;
    display: inline-block;
    line-height: 0;
    font-size: 0;
    z-index: 0;
}

.converted_mirror img {
    position: relative;
    margin: 0;
    padding: 0;
    display: block;
    vertical-align: bottom;
    opacity: 0.3;
    filter: blur(12px);
    -webkit-filter: blur(12px);
    /* for Safari */
}

.section {
    position: relative;
    background: var(--bg-color);
    padding-top: 20px;
    padding-bottom: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.marquee-slider {
    width: 100%;
    grid-column-gap: 1.6rem;
    grid-row-gap: 1.6rem;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    position: relative;
}

.marquee-slider__list {
    grid-column-gap: 1.6rem;
    grid-row-gap: 1.6rem;
    flex: none;
    z-index: 1;
    display: flex;
    flex-flow: row;
    align-items: stretch;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.38, 1.399);
}

.marquee-slider__list--item {
    color: var(--color-555);
    grid-column-gap: 0.6rem;
    border-radius: 30px;
    flex: none;
    display: flex;
    padding: 10px;
    position: relative;
    align-items: center;
    grid-row-gap: 1.6rem;
    justify-content: center;
    box-shadow: inset 0 0 0 1px var(--rgba-11);
    background-image: linear-gradient(135deg, var(--rgba-34), var(--rgba-11));
    font-size: 14px;
    font-weight: 500;
}

html.theme-dark .marquee-slider__list--item,
body.theme-dark .marquee-slider__list--item {
    color: #fff;
}

.marquee-slider__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--rgba-34);
    box-shadow: inset 0 0 0 1px var(--rgba-22);
}

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

.work-example {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.features-section {
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.features-title {
    font-size: 42px;
    font-weight: 800;
    font-family: var(--PlatformSansSerif);
    color: var(--color-1e1e1e);
    margin-bottom: 10px;
}

:root[data-theme="dark"] .features-title,
html.theme-dark .features-title,
body.theme-dark .features-title {
    color: var(--text-primary);
}

.features-subtitle {
    font-size: 18px;
    color: var(--color-555);
    margin-bottom: 60px;
    font-family: var(--GaphikFont);
}

:root[data-theme="dark"] .features-subtitle,
html.theme-dark .features-subtitle,
body.theme-dark .features-subtitle {
    color: rgba(255, 255, 255, 0.86);
}

.features-container {
    max-width: 860px;
    padding-left: 40px;
    padding-right: 40px;
    position: relative;
}

.w-layout-blockcontainer {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.w-container:before,
.w-container:after {
    content: ' ';
    grid-area: 1 / 1 / 2 / 2;
    display: table;
}

.benefit-cards {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    flex-flow: wrap;
    grid-template-rows: auto auto auto auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    grid-auto-flow: row;
    display: grid;
}

#w-node-aea8b5ca-52a4-8b83-6b6f-c151ec2e246f-d11c69fb {
    grid-area: span 2 / span 1 / span 2 / span 1;
}

.card.black {
    background-color: var(--black);
}

.card {
    background-color: var(--bg-elevated);
    border-radius: 40px;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
    min-width: 320px;
    padding: 40px;
    display: flex;
    text-align: left;
}

#w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb {
    grid-area: 3 / 2 / 5 / 3;
}

.card.grey {
    background-color: var(--grey-background);
}

:root .benefit-cards .card.black,
:root .benefit-cards .card.grey,
body .benefit-cards .card.black,
body .benefit-cards .card.grey,
html .benefit-cards .card.black,
html .benefit-cards .card.grey {
    background-color: var(--bg-elevated);
}

:root[data-theme="dark"] .card,
html.theme-dark .card,
body.theme-dark .card {
    background-color: var(--bg-elevated);
    color: var(--text-secondary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .benefit-cards .card.black,
:root[data-theme="dark"] .benefit-cards .card.grey,
html.theme-dark .benefit-cards .card.black,
html.theme-dark .benefit-cards .card.grey,
body.theme-dark .benefit-cards .card.black,
body.theme-dark .benefit-cards .card.grey {
    background-color: var(--bg-elevated);
}

:root[data-theme="dark"] .card.black,
html.theme-dark .card.black,
body.theme-dark .card.black {
    background-color: #272a33;
}

:root[data-theme="dark"] .card.grey,
html.theme-dark .card.grey,
body.theme-dark .card.grey {
    background-color: #1f2329;
}

:root[data-theme="dark"] .card.black.flex-vertical-40px,
html.theme-dark .card.black.flex-vertical-40px,
body.theme-dark .card.black.flex-vertical-40px {
    background-color: var(--bg-elevated);
}

:root[data-theme="dark"] .card h3,
html.theme-dark .card h3,
body.theme-dark .card h3 {
    color: var(--text-primary);
}

:root[data-theme="dark"] .card p,
html.theme-dark .card p,
body.theme-dark .card p {
    color: var(--text-secondary);
}

:root[data-theme="dark"] .card .feature-heading-icon,
html.theme-dark .card .feature-heading-icon,
body.theme-dark .card .feature-heading-icon {
    color: var(--accent);
}

:root[data-theme="dark"] .feature-heading-icon--text,
html.theme-dark .feature-heading-icon--text,
body.theme-dark .feature-heading-icon--text {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

:root[data-theme="dark"] .card-black-heading,
html.theme-dark .card-black-heading,
body.theme-dark .card-black-heading {
    color: var(--text-primary) !important;
}

:root[data-theme="dark"] .card-black-text,
html.theme-dark .card-black-text,
body.theme-dark .card-black-text {
    color: var(--text-secondary) !important;
}

.benefit-cards .card-black-heading {
    color: var(--text-dark) !important;
}

.benefit-cards .card-black-text {
    color: var(--grey-on-white) !important;
}

:root[data-theme="dark"] .benefit-cards .card-black-heading,
html.theme-dark .benefit-cards .card-black-heading,
body.theme-dark .benefit-cards .card-black-heading {
    color: var(--text-primary) !important;
}

:root[data-theme="dark"] .benefit-cards .card-black-text,
html.theme-dark .benefit-cards .card-black-text,
body.theme-dark .benefit-cards .card-black-text {
    color: var(--text-secondary) !important;
}

html.theme-dark #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb,
body.theme-dark #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb,
#w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb[data-theme="dark"],
html[data-theme="dark"] #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
}

html.theme-dark #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb h3,
body.theme-dark #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb h3,
#w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb[data-theme="dark"] h3,
html[data-theme="dark"] #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb h3 {
    color: var(--text-primary);
}

html.theme-dark #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb p,
body.theme-dark #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb p,
#w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb[data-theme="dark"] p,
html[data-theme="dark"] #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb p {
    color: var(--text-secondary);
}

html.theme-dark #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb .feature-heading-icon,
body.theme-dark #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb .feature-heading-icon,
#w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb[data-theme="dark"] .feature-heading-icon,
html[data-theme="dark"] #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb .feature-heading-icon {
    color: var(--accent);
}

html.theme-dark #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb .feature-heading-icon--text,
body.theme-dark #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb .feature-heading-icon--text,
#w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb[data-theme="dark"] .feature-heading-icon--text,
html[data-theme="dark"] #w-node-_60d4259f-237b-0bfc-b28c-409ccff0396f-d11c69fb .feature-heading-icon--text {
    background: rgba(79, 134, 247, 0.22);
    color: var(--button-blue-color);
}

.feature-heading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    vertical-align: middle;
    color: var(--color-4f86f7);
}

.feature-heading-icon svg,
.feature-heading-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.feature-heading-icon--text {
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    color: var(--white);
    background: var(--maintenance-card-border);
}

.card.black .feature-heading-icon {
    color: var(--white);
}

.card.black .feature-heading-icon--text {
    background: var(--white-20);
    color: var(--white);
}

.card.grey .feature-heading-icon--text {
    background: var(--color-gray-900-a12);
    color: var(--sd-admin-text-primary);
}

.benefit-cards .card .feature-heading-icon--text {
    background: rgba(79, 134, 247, 0.14);
    color: var(--button-blue-color);
}

:root[data-theme="dark"] .benefit-cards .card .feature-heading-icon--text,
html.theme-dark .benefit-cards .card .feature-heading-icon--text,
body.theme-dark .benefit-cards .card .feature-heading-icon--text {
    background: rgba(79, 134, 247, 0.22);
    color: var(--button-blue-color);
}

.card-black-heading {
    color: var(--grey-light) !important;
}

.card-black-text {
    color: var(--grey-on-black) !important;
}

.card.black p {
    letter-spacing: -0.01em;
    margin-bottom: 0px;
    font-family: var(--GaphikFont);
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
}

.card h3 {
    color: var(--text-dark);
    letter-spacing: -0.01em;
    margin-top: 0px;
    margin-bottom: 12px;
    font-family: var(--GaphikFont);
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

.card p {
    color: var(--grey-on-white);
    letter-spacing: -0.01em;
    margin-bottom: 0px;
    font-family: var(--GaphikFont);
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
}

.features-tags-section {
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.features-tags-title {
    position: relative;
    font-size: 42px;
    font-weight: 800;
    max-width: 900px;
    margin: 0px auto;
    font-family: var(--PlatformSansSerif);
    color: var(--color-1e1e1e);
    margin-bottom: 50px;
}

:root[data-theme="dark"] .features-tags-title,
html.theme-dark .features-tags-title,
body.theme-dark .features-tags-title {
    color: var(--text-primary);
}

.features-tags-subtitle {
    max-width: 760px;
    margin: 30px auto 40px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--grey-on-white);
}

:root[data-theme="dark"] .features-tags-subtitle,
html.theme-dark .features-tags-subtitle,
body.theme-dark .features-tags-subtitle {
    color: var(--text-secondary);
}

.features-tags-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    margin-top: 40px;
}

.tag.narrow {
    text-align: center;
    flex: 0 auto;
    min-width: 0;
    padding: 32px 40px;
}

.tag.wide {
    text-align: center;
    flex: 1 1 360px;
    min-width: 320px;
    padding: 32px 40px;
}

.tag {
    background-color: var(--bg-elevated);
    border-radius: 40px;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
    min-width: 320px;
    padding: 40px;
    display: flex;
}

.tag h3 {
    color: var(--text-dark);
    letter-spacing: -0.01em;
    margin-top: 0;
    margin-bottom: 0px;
    font-family: var(--GaphikFont);
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

.work-texture {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 2;
}

.work-texture img {
    width: 100px;
    height: auto;
}

.work-texture-bottom {
    position: absolute;
    right: 0px;
    bottom: 0px;
    z-index: 2;
}

.work-texture-bottom img {
    width: 100px;
    height: auto;
}


/* =========================================================
   Settings tables — responsive scroll containment & no-wrap guard
   Applies to settings area tables (.subscription-table, .payments-table, .bank-table, .settings-table)
   ========================================================= */

:is(.settings-section,
.settings-dashboard) .table-card {
    max-width: 100%;
    overflow: hidden;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}


/* Scope guard to neutralize global word-breaking inside the scroller only */

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table * {
    word-break: normal !important;
    overflow-wrap: normal !important;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table th,
:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table td {
    min-width: 0;
    vertical-align: middle;
    word-break: normal;
    overflow-wrap: normal;
}


/* Shared column sizing to trigger scroll before wrapping */

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .earnings-supporter {
    min-width: 220px;
    white-space: nowrap;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .earnings-status,
:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .subscription-status-cell {
    min-width: 140px;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .earnings-type,
:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .subscription-plan-cell {
    min-width: 120px;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .subscription-amount-cell,
:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .amount-mono,
:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .table-invoice-link {
    white-space: nowrap;
}

.subscription-supporter-cell {
    min-width: 220px;
}

.subscription-date-cell {
    min-width: 120px;
}

.subscription-plan-cell {
    min-width: 120px;
}

.subscription-amount-cell {
    min-width: 110px;
}

.subscription-status-cell {
    min-width: 140px;
}

.subscription-provider-cell {
    min-width: 180px;
    white-space: nowrap;
}

.subscription-actions {
    min-width: 80px;
}


/* Creator cell: prevent vertical stacking & allow safe ellipsis */

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .earnings-supporter__link,
:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .earnings-supporter__link--static {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    min-width: 0;
    vertical-align: middle;
    white-space: nowrap;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .earnings-supporter__avatar {
    flex: 0 0 auto;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .earnings-supporter__names {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    max-width: 320px;
    white-space: nowrap;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .earnings-supporter__display,
:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .earnings-supporter__username {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Long provider reference: shorten with ellipsis but no wrap */

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-reference {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-reference span:first-child {
    flex: 0 0 auto;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-reference span:last-child,
.subscription-provider-id {
    display: inline-block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Status badge always stays on one line */

:is(.settings-section,
.settings-dashboard) .table-card__scroll .earnings-table .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    white-space: nowrap;
    line-height: 1.2;
    padding: 0px 4px;
    text-align: center;
}


/* Bank history table keeps dates on one line */

:is(.settings-section,
.settings-dashboard) .table-card__scroll .bank-table__cell {
    white-space: nowrap;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .bank-table__cell--id {
    min-width: 160px;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .bank-table__cell--amount {
    min-width: 120px;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .bank-table__cell--status {
    min-width: 140px;
}

:is(.settings-section,
.settings-dashboard) .table-card__scroll .bank-table__cell--requested,
:is(.settings-section,
.settings-dashboard) .table-card__scroll .bank-table__cell--processed {
    min-width: 140px;
}


/* Narrow viewports: keep everything on one line and use x-scroll */

@media (max-width: 1280px) {
    /* widened by 1px to include the edge case */
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table th,
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table td {
        white-space: nowrap !important;
    }
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table .earnings-supporter__names,
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table .earnings-supporter__display,
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table .earnings-supporter__username,
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table .earnings-reference,
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table .amount-mono,
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table .subscription-date-cell,
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table .subscription-provider-cell,
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table .subscription-provider-label,
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table .subscription-provider-id,
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table .status-badge,
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .bank-table__cell {
        white-space: nowrap !important;
    }
}


/* Tighten default padding inside the table for narrow screens */


/* Column pruning for smaller widths — hide least-important columns */

@media (max-width: 820px) {
    .subscription-table th:nth-child(4),
    .subscription-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 720px) {
    .subscription-table th:nth-child(5),
    .subscription-table td:nth-child(5) {
        display: none;
    }
}


/* Ensure surrounding cards never push the viewport horizontally */

.settings-section,
.settings-dashboard {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}


/*Pricing*/

.pricing-cards {
    gap: 20px;
    flex-direction: column;
    display: flex;
}

.pricing-card {
    gap: 20px;
    flex-direction: row;
    flex: 1 1 0%;
    justify-content: space-between;
    margin-bottom: 0px;
    margin-right: 0px;
    padding: 0px;
    display: flex;
}

.pricing-card.grey {
    background-color: var(--grey-background);
    border-radius: 40px;
}

html.theme-dark .pricing-card.grey,
body.theme-dark .pricing-card.grey,
.pricing-card.grey[data-theme="dark"],
html[data-theme="dark"] .pricing-card.grey {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
}

html.theme-dark .pricing-card.grey h3,
body.theme-dark .pricing-card.grey h3,
.pricing-card.grey[data-theme="dark"] h3,
html[data-theme="dark"] .pricing-card.grey h3 {
    color: var(--text-primary);
}

html.theme-dark .pricing-card.grey p,
body.theme-dark .pricing-card.grey p,
.pricing-card.grey[data-theme="dark"] p,
html[data-theme="dark"] .pricing-card.grey p {
    color: var(--text-secondary);
}

html.theme-dark .pricing-card.grey .card.grey,
body.theme-dark .pricing-card.grey .card.grey,
.pricing-card.grey[data-theme="dark"] .card.grey,
html[data-theme="dark"] .pricing-card.grey .card.grey {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
}

html.theme-dark .pricing-card.grey .card.grey h3,
body.theme-dark .pricing-card.grey .card.grey h3,
.pricing-card.grey[data-theme="dark"] .card.grey h3,
html[data-theme="dark"] .pricing-card.grey .card.grey h3 {
    color: var(--text-primary);
}

html.theme-dark .pricing-card.grey .card.grey p,
body.theme-dark .pricing-card.grey .card.grey p,
.pricing-card.grey[data-theme="dark"] .card.grey p,
html[data-theme="dark"] .pricing-card.grey .card.grey p {
    color: var(--text-secondary);
}

.pricing-card--pair {
    flex-direction: row;
}

.pricing-card--pair .card {
    flex: 1 1 0%;
}

.pricing-card--single {
    flex-direction: column;
}

.pricing-card-buttons {
    margin-top: 12px;
}

.button-large.is-secondary {
    background-color: var(--grey-light);
    color: var(--text-dark);
}

.pricing-yearly-note {
    margin-top: 6px;
    font-size: 16px;
    color: var(--grey-on-white);
}

.pricing-card-title {
    grid-column-gap: 12px;
    grid-row-gap: 12px;
    background-color: var(--grey-light);
    border-radius: 999px;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    justify-content: flex-start;
    align-items: center;
    padding: 7px 20px 7px 8px;
    display: flex;
}

html.theme-dark .pricing-card-title,
body.theme-dark .pricing-card-title,
.pricing-card-title[data-theme="dark"],
html[data-theme="dark"] .pricing-card-title {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
}

html.theme-dark .pricing-card-title .badge,
body.theme-dark .pricing-card-title .badge,
.pricing-card-title[data-theme="dark"] .badge,
html[data-theme="dark"] .pricing-card-title .badge {
    color: var(--text-primary);
}

h4 {
    letter-spacing: -0.01em;
    margin-top: 0;
    margin-bottom: 10px;
    font-family: var(--GaphikFont);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
}

.card.flex-vertical-40px {
    grid-column-gap: 40px;
    grid-row-gap: 40px;
    align-items: flex-start;
}

.profilephoto {
    border-radius: 999px;
    width: 32px;
    height: 32px;
}

.pricing-cost {
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    font-family: var(--GaphikFont);
    font-size: 42px;
    font-weight: 500;
    line-height: 42px;
}

.pricing-card-buttons {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    text-align: center;
    flex-direction: column;
    width: 100%;
    display: flex;
}

.button-large {
    border: 2px none var(--grey-light);
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    letter-spacing: -0.01em;
    border-radius: 100px;
    padding: 20px 30px;
    font-family: var(--GaphikFont);
    font-size: 20px;
    font-weight: 500;
    transition: transform 0.2s;
    display: block;
}

.w-button {
    color: var(--color-fff);
    line-height: inherit;
    cursor: pointer;
    background-color: var(--color-3898ec);
    border: 0;
    border-radius: 0;
    padding: 9px 15px;
    text-decoration: none;
    display: inline-block;
}

.button-large {
    border: 2px none var(--grey-light);
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    letter-spacing: -0.01em;
    border-radius: 100px;
    padding: 20px 30px;
    font-family: var(--GaphikFont);
    font-size: 20px;
    font-weight: 500;
    transition: transform 0.2s;
    display: block;
}

.earnings-simulator {
    --simulator-accent: var(--color-ff5c5c);
    --simulator-accent-soft: rgba(255, 92, 92, 0.25);
    --simulator-accent-shadow: rgba(255, 92, 92, 0.3);
    --earnings-card-bg: var(--grey-light);
    --earnings-card-border: rgba(17, 24, 39, 0.08);
    padding: 0;
}

:root[data-theme="dark"] .earnings-simulator,
html.theme-dark .earnings-simulator,
body.theme-dark .earnings-simulator {
    --earnings-card-bg: #262b36;
    --earnings-card-border: rgba(255, 255, 255, 0.05);
}

@supports (color: color-mix(in srgb, red 30%, transparent)) {
    .earnings-simulator {
        --simulator-accent-soft: color-mix(in srgb, var(--simulator-accent) 30%, transparent);
        --simulator-accent-shadow: color-mix(in srgb, var(--simulator-accent) 40%, transparent);
    }
}

.earnings-simulator__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.earnings-simulator__title {
    margin-bottom: 16px;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.earnings-simulator__subtitle {
    margin: 0 auto 24px;
    max-width: 680px;
    font-size: 18px;
    color: var(--grey-on-white);
}

html.theme-dark .earnings-simulator__subtitle,
body.theme-dark .earnings-simulator__subtitle,
.earnings-simulator__subtitle[data-theme="dark"],
html[data-theme="dark"] .earnings-simulator__subtitle {
    color: var(--text-secondary);
}

.earnings-simulator__controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 24px;
    align-items: flex-start;
    text-align: left;
}

.earnings-simulator__column {
    background: var(--earnings-card-bg);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 35px 70px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--earnings-card-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

html.theme-dark .earnings-simulator__column,
body.theme-dark .earnings-simulator__column,
.earnings-simulator__column[data-theme="dark"],
html[data-theme="dark"] .earnings-simulator__column {
    background: var(--bg-elevated);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.04);
}

.earnings-simulator__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    margin-bottom: 12px;
}

.earnings-simulator__label-text {
    font-size: 16px;
    color: var(--text-dark);
}

html.theme-dark .earnings-simulator__label-text,
body.theme-dark .earnings-simulator__label-text,
.earnings-simulator__label-text[data-theme="dark"],
html[data-theme="dark"] .earnings-simulator__label-text {
    color: var(--text-primary);
}

.earnings-simulator__icons {
    display: flex;
    gap: 8px;
    font-size: 18px;
    opacity: 0.85;
}

.earnings-simulator__icons svg {
    width: 20px;
    height: 20px;
}

.earnings-simulator__icon-fallback {
    display: inline-flex;
    align-items: center;
    color: var(--text-dark);
}

html.theme-dark .earnings-simulator__icon-fallback,
body.theme-dark .earnings-simulator__icon-fallback,
.earnings-simulator__icon-fallback[data-theme="dark"],
html[data-theme="dark"] .earnings-simulator__icon-fallback {
    color: var(--text-primary);
}

.earnings-simulator__currency {
    font-size: 18px;
    color: var(--simulator-accent);
    font-weight: 600;
}

.earnings-simulator__slider {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    width: 100%;
}

.earnings-simulator__slider input[type="range"] {
    flex: 1 1 auto;
    height: 6px;
    background: transparent;
    -webkit-appearance: none;
}

.earnings-simulator__slider input[type="range"]:focus {
    outline: none;
}

.earnings-simulator__slider input[type="range"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus);
    border-radius: 999px;
}

.earnings-simulator__slider input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--simulator-accent) 0%, var(--simulator-accent-soft) 100%);
}

.earnings-simulator__slider input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--simulator-accent) 0%, var(--simulator-accent-soft) 100%);
}

.earnings-simulator__slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--simulator-accent);
    border: 3px solid var(--white);
    box-shadow: 0 6px 12px var(--simulator-accent-shadow);
    margin-top: -8px;
}

.earnings-simulator__slider input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--simulator-accent);
    box-shadow: 0 6px 12px var(--simulator-accent-shadow);
}

.earnings-simulator__slider input[type="range"]::-moz-focus-outer {
    border: 0;
}

.earnings-simulator__value {
    font-weight: 600;
    font-size: 18px;
    min-width: 96px;
    text-align: right;
    margin-left: auto;
    color: var(--text-dark);
}

html.theme-dark .earnings-simulator__value,
body.theme-dark .earnings-simulator__value,
.earnings-simulator__value[data-theme="dark"],
html[data-theme="dark"] .earnings-simulator__value {
    color: var(--text-primary);
}

.earnings-simulator__result {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

html.theme-dark .earnings-simulator__result,
body.theme-dark .earnings-simulator__result,
.earnings-simulator__result[data-theme="dark"],
html[data-theme="dark"] .earnings-simulator__result {
    color: var(--text-primary);
}

.earnings-simulator__amount {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    color: var(--simulator-accent);
    display: inline-block;
    margin: 0 12px;
}

.earnings-simulator__disclaimer,
.earnings-simulator__note {
    font-size: 14px;
    color: var(--grey-on-white);
    margin: 0;
    line-height: 1.5;
}

.earnings-simulator__disclaimer {
    margin-bottom: 12px;
}

.earnings-simulator__summary {
    background: var(--earnings-card-bg);
    border-radius: 28px;
    padding: 32px 36px;
    text-align: center;
    border: 1px solid var(--earnings-card-border);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

html.theme-dark .earnings-simulator__summary,
body.theme-dark .earnings-simulator__summary,
.earnings-simulator__summary[data-theme="dark"],
html[data-theme="dark"] .earnings-simulator__summary {
    background: var(--bg-elevated);
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.form-input-wrapper .form-text {
    font-size:13px;
    font-weight: 400;
}

html.theme-dark .earnings-simulator__disclaimer,
body.theme-dark .earnings-simulator__disclaimer,
.earnings-simulator__disclaimer[data-theme="dark"],
html[data-theme="dark"] .earnings-simulator__disclaimer,
html.theme-dark .earnings-simulator__note,
body.theme-dark .earnings-simulator__note,
.earnings-simulator__note[data-theme="dark"],
html[data-theme="dark"] .earnings-simulator__note {
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .earnings-simulator__controls {
        grid-template-columns: 1fr;
    }

    .earnings-simulator__value {
        min-width: 0;
        text-align: left;
        margin-left: 0;
    }

    .earnings-simulator__slider {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .earnings-simulator__summary {
        padding: 28px;
    }
}

@media (max-width: 600px) {
    .earnings-simulator {
        padding: 56px 0;
    }

    .earnings-simulator__title {
        font-size: 30px;
    }

    .earnings-simulator__amount {
        font-size: 38px;
    }
}

.divider {
    background-color: var(--grey-on-black);
    width: 100%;
    height: 1px;
}

.button-link {
    border: 2px none var(--grey-light);
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.01em;
    background-color: var(--color-000) 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    font-family: var(--GaphikFont);
    font-size: 18px;
    font-weight: 400;
    text-decoration: underline;
    display: inline-block;
}

.pricing-card-list {
    margin-bottom: 0;
    color: var(--text-dark);
}

ul {
    color: var(--grey-on-white);
    margin-top: 0;
    margin-bottom: 10px;
    padding-left: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
}

.pricing-card-list-item {
    letter-spacing: -0.01em;
    background-image: url("data:image/svg+xml,%3Csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M1%206l2.5%202.5L7%203.5'%20stroke='%23111111'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M5%207l2%202%204-5'%20stroke='%23111111'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: 0 14px;
    font-family: var(--GaphikFont);
    font-size: 18px;
}

.pricing-card-list li {
    color: var(--text-dark);
}

li {
    background-image: url('../icons/tick_double.svg');
    background-position: 0 14px;
    background-repeat: no-repeat;
    background-size: 12px;
    background-attachment: scroll;
    margin-bottom: 4px;
    padding-left: 20px;
    list-style-type: none;
}

.admin_li_icon {
    background-image: url('../icons/send_comment.svg') !important;
    background-position: 0 5px !important;
}

.pricing-card-list.light-grey {
    color: var(--grey-on-black);
}

.pricing-description {
    padding: 10px 0;
}

:root[data-theme="dark"] .pricing-card-list,
html.theme-dark .pricing-card-list,
body.theme-dark .pricing-card-list {
    color: var(--text-primary);
}

:root:not([data-theme="dark"]):not(.theme-dark) .card.black .pricing-card-list-item,
html:not([data-theme="dark"]):not(.theme-dark) .card.black .pricing-card-list-item {
    color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M1%206l2.5%202.5L7%203.5'%20stroke='%23ffffff'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M5%207l2%202%204-5'%20stroke='%23ffffff'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}

:root:not([data-theme="dark"]):not(.theme-dark) .card.black .pricing-card-cost,
html:not([data-theme="dark"]):not(.theme-dark) .card.black .pricing-card-cost {
    color: var(--white);
}

:root:not([data-theme="dark"]):not(.theme-dark) .card.black .black-text,
html:not([data-theme="dark"]):not(.theme-dark) .card.black .black-text {
    color: var(--white);
}

:root:not([data-theme="dark"]):not(.theme-dark) .card.black .pricing-card-title .black-text,
html:not([data-theme="dark"]):not(.theme-dark) .card.black .pricing-card-title .black-text {
    color: var(--text-dark);
}

:root:not([data-theme="dark"]):not(.theme-dark) .card.black .pricing-card-cost .white-text,
html:not([data-theme="dark"]):not(.theme-dark) .card.black .pricing-card-cost .white-text {
    color: var(--white);
}

:root[data-theme="dark"] .pricing-card-list-item,
html.theme-dark .pricing-card-list-item,
body.theme-dark .pricing-card-list-item {
    color: var(--text-primary);
    background-image: url("data:image/svg+xml,%3Csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M1%206l2.5%202.5L7%203.5'%20stroke='%23ffffff'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M5%207l2%202%204-5'%20stroke='%23ffffff'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}

.button-large.w-button {
    background-color: var(--grey-light);
    color: var(--text-dark);
}

.button-link.w-button {
    color: var(--grey-light);
}

.button-large:hover {
    transform: scale(1.05);
}

.pricing-cost.white {
    color: var(--grey-light);
}

.pricing-small-print {
    gap: 40px;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-columns: 1fr;
    align-self: center;
    padding: 0px 40px;
    display: block;
}

#w-node-_68ff8981-ffc2-3c5c-7203-f6a1d626881e-d11c69fb {
    grid-row-start: span 1;
    grid-column-start: span 2;
    grid-row-end: span 1;
    grid-column-end: span 2;
}

.paragraph-small {
    color: var(--grey-light-text);
    font-size: 16px;
}

:root[data-theme="dark"] .paragraph-small,
html.theme-dark .paragraph-small,
body.theme-dark .paragraph-small {
    color: rgba(255, 255, 255, 0.85);
}

.pricing-small-print p {
    color: var(--grey-on-white);
    letter-spacing: -0.01em;
    margin-bottom: 0px;
    font-family: var(--GaphikFont);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.no-hassle-section {
    padding: 100px 20px;
    text-align: center;
}

.big-bold-list {
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.01em;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: var(--PlatformSansSerif);
    font-size: clamp(36px, 6vw, 76px);
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    line-height: 1.05;
}

.text-centered {
    text-align: center;
}

.w-layout-blockcontainer-paragraph {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.faq-section {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Inter', sans-serif;
}

.faq-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: 40px;
    background: var(--color-fff);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.faq-question {
    width: 100%;
    padding: 32px 40px;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    -webkit-text-stroke-color: var(--text-dark);
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--GaphikFont);
}

.faq-answer {
    max-height: 0;
    padding: 0 32px;
    font-size: 15px;
    overflow: hidden;
    color: var(--color-555);
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 12px 32px 28px;
}

.faq-question span {
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-item.active .faq-question span {
    transform: rotate(0deg);
}

.faq-answer p {
    color: var(--grey-on-white);
    letter-spacing: -0.01em;
    margin-bottom: 0px;
    font-family: var(--GaphikFont);
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    text-align: left;
    margin-bottom: 40px;
}

html.theme-dark .faq-item,
body.theme-dark .faq-item,
.faq-item[data-theme="dark"],
html[data-theme="dark"] .faq-item {
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

html.theme-dark .faq-question,
body.theme-dark .faq-question,
.faq-question[data-theme="dark"],
html[data-theme="dark"] .faq-question {
    color: var(--text-primary);
}

html.theme-dark .faq-answer,
body.theme-dark .faq-answer,
.faq-answer[data-theme="dark"],
html[data-theme="dark"] .faq-answer {
    color: var(--text-secondary);
}

html.theme-dark .faq-answer p,
body.theme-dark .faq-answer p,
.faq-answer[data-theme="dark"] p,
html[data-theme="dark"] .faq-answer p {
    color: var(--text-secondary);
}

.footer {
    z-index: -1;
    background-color: var(--black);
    padding-top: 140px;
    padding-bottom: 60px;
    position: static;
    bottom: 0px;
    left: 0px;
    right: 0px;
    margin-top: -80px;
}

.wave-transition {
    background-color: var(--bg-color);
    height: 80px;
    border-bottom-right-radius: 80px;
    border-bottom-left-radius: 80px;
    z-index: 5;
    position: relative;
}

.container.hero-copy {
    text-align: center;
    max-width: 1300px;
    padding: 160px 60px;
}

.container h1 {
    color: var(--grey-light);
    text-align: center;
    letter-spacing: -0.01em;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: var(--PlatformSansSerif);
    font-size: clamp(32px, 5vw, 68px);
    font-weight: 700;
    line-height: 1.08;
}

.p-intro.max-width-680px.light-grey {
    color: var(--grey-light);
    max-width: 680px;
}

.p-intro {
    color: var(--grey-light);
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    font-family: var(--GaphikFont);
    font-size: 22px;
    line-height: 32px;
}

.button-hero.light-grey {
    background-color: var(--grey-light);
    color: var(--text-dark);
}

.button-hero {
    border: 2px none var(--grey-light);
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    letter-spacing: -0.01em;
    border-radius: 100px;
    padding: 24px 40px;
    font-family: var(--GaphikFont);
    font-size: 20px;
    font-weight: 500;
    transition: transform 0.2s;
    display: inline-block;
}

.button-hero:hover {
    transform: scale(1.05);
}

.footer .button-hero {
    padding: 12px 40px;
    font-size: 15px;
}

:root[data-theme="dark"] .button-hero.light-grey,
html.theme-dark .button-hero.light-grey,
body.theme-dark .button-hero.light-grey {
    background-color: var(--white);
    color: var(--black);
}

:root[data-theme="dark"] .button-hero.light-grey:hover,
html.theme-dark .button-hero.light-grey:hover,
body.theme-dark .button-hero.light-grey:hover {
    background-color: var(--grey-light);
    color: var(--black);
}

.footer-small-print {
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.white-text {
    color: var(--grey-light);
    letter-spacing: -0.01em;
    margin-bottom: 0;
    display: inline-block;
}

.footer-links {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    flex-flow: wrap;
    justify-content: flex-end;
    display: flex;
}

.footer-link {
    color: var(--grey-on-black);
    letter-spacing: -0.01em;
    font-family: var(--GaphikFont);
    font-size: 18px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .footer-small-print {
        flex-direction: column;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-small-print .button-hero {
        width: 100%;
        max-width: 280px;
    }

    .footer-links {
        justify-content: center;
    }
}


/*****************************/


/**********LOADER*************/


/*****************************/

.loading-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 9999;
    top: 0;
    left: 0;
    gap: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--rgba-29);
    border-radius: 15px;
    -webkit-border-radius: 15px;
}

.loading-text {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 400;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.ve-upload-progress-stack {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    box-sizing: border-box;
}

.ve-upload-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.ve-upload-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-4f86f7), var(--color-ff8c42));
    transition: width 0.2s ease-out;
}

.ve-upload-progress-percent {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.ve-upload-processing-notice {
    font-size: 12px;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
    opacity: 0.9;
}

.popUp-container.podcast-uploading .ve-upload-progress-stack {
    display: flex !important;
}

.popUp-container.podcast-uploading .upload-btn {
    pointer-events: none;
    opacity: 0.65;
}

.click-box-loader {
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    box-sizing: border-box;
}

.click-box-loader__panel {
    width: 100%;
    max-width: 260px;
    background-color: var(--rgba-29);
    border-radius: 14px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
    box-sizing: border-box;
}

.click-box-loader__panel .loader {
    width: 64px;
    height: 64px;
}

.post-category-chip,
.podcast-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.14), rgba(14, 165, 233, 0.12));
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.post-category-chip {
    margin-left: 8px;
}
.podcast-filter-chip {
    margin: 10px 0 14px;
    gap: 10px;
    flex-wrap: wrap;
}
.podcast-filter-clear {
    font-size: 13px;
    text-decoration: underline;
    color: inherit;
}
.podcast-row-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    font-size: 12px;
    font-weight: 600;
}
.podcast-row-about__text {
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
:root[data-theme="dark"] .post-category-chip,
html.theme-dark .post-category-chip,
body.theme-dark .post-category-chip,
:root[data-theme="dark"] .podcast-category-chip,
html.theme-dark .podcast-category-chip,
body.theme-dark .podcast-category-chip,
:root[data-theme="dark"] .podcast-row-category,
html.theme-dark .podcast-row-category,
body.theme-dark .podcast-row-category {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

.podcast-player-card {
    width: 100%;
    background: #0b0b0b;
    border-radius: 0;
    padding: 18px 18px 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.podcast-card-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.podcast-card-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    filter: blur(22px) saturate(1.2);
    opacity: 0.6;
}
.podcast-player-card > *:not(.podcast-card-backdrop) {
    position: relative;
    z-index: 1;
}
.podcast-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}
.podcast-cover-preview {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 10px auto 0px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #1b1b1b 0%, #111 45%, #0b0b0b 65%, #000 100%);
    animation: podcastDiscSpin 10s linear infinite;
    animation-play-state: paused;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24), 0 6px 12px rgba(0, 0, 0, 0.18);
}
.podcast-cover-preview--hero {
    width: 220px;
    height: 220px;
    margin-bottom: 12px;
}
.podcast-cover-preview::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 25%,
        rgba(255, 255, 255, 0.03) 60%,
        rgba(255, 255, 255, 0.02) 80%,
        rgba(255, 255, 255, 0.01) 100%);
    z-index: 1;
}
.podcast-cover-preview::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, #202020 0%, #0d0d0d 70%, #000 100%);
    z-index: 3;
}

.pcover-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.pcover-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    width: 340px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 340px;
}
.pcover-header {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.pcover-title {
    font-weight: 600;
    font-size: 15px;
}
.pcover-frame {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 6px;
    background: #f4f4f4;
}
.pcover-frame img {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: center center;
    user-select: none;
    cursor: grab;
    touch-action: none;
}
.pcover-controls {
    display: flex;
    justify-content: center;
}
.pcover-zoom {
    width: 200px;
}
.pcover-save,
.pcover-cancel {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-dark);
}
.pcover-save {
    color: var(--blue, #246bf5);
}
:root[data-theme="dark"] .pcover-wrapper,
html.theme-dark .pcover-wrapper,
body.theme-dark .pcover-wrapper {
    background: var(--bg-elevated, #11161d);
    color: var(--text-primary, #e5e7eb);
}
:root[data-theme="dark"] .pcover-title,
html.theme-dark .pcover-title,
body.theme-dark .pcover-title,
:root[data-theme="dark"] .pcover-save,
html.theme-dark .pcover-save,
body.theme-dark .pcover-save,
:root[data-theme="dark"] .pcover-cancel,
html.theme-dark .pcover-cancel,
body.theme-dark .pcover-cancel {
    color: var(--text-primary, #e5e7eb);
}
:root[data-theme="dark"] .pcover-save,
html.theme-dark .pcover-save,
body.theme-dark .pcover-save {
    color: var(--btn-primary-bg, #4f86f7);
}
:root[data-theme="dark"] .pcover-frame,
html.theme-dark .pcover-frame,
body.theme-dark .pcover-frame {
    background: var(--bg-muted, #1a1f27);
}
.podcast-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.podcast-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}
.podcast-player-card .podcast-bars span {
    display: block;
    width: 6px;
    border-radius: 4px;
    transform-origin: center bottom;
}
.podcast-player-card .podcast-bars.left span:nth-child(1) { height: 10px; background: linear-gradient(180deg, #ffd200, #ff9f00) !important; }
.podcast-player-card .podcast-bars.left span:nth-child(2) { height: 16px; background: linear-gradient(180deg, #ffe76c, #ffbd00) !important; }
.podcast-player-card .podcast-bars.left span:nth-child(3) { height: 24px; background: linear-gradient(180deg, #c7ff6b, #57c84d) !important; }
.podcast-player-card .podcast-bars.left span:nth-child(4) { height: 18px; background: linear-gradient(180deg, #a6ff7f, #28c76f) !important; }
.podcast-player-card .podcast-bars.left span:nth-child(5) { height: 12px; background: linear-gradient(180deg, #7bff8a, #00c9a7) !important; }
.podcast-player-card .podcast-bars.right span:nth-child(1) { height: 12px; background: linear-gradient(180deg, #00c9ff, #00a1ff) !important; }
.podcast-player-card .podcast-bars.right span:nth-child(2) { height: 18px; background: linear-gradient(180deg, #3d7bff, #4f46e5) !important; }
.podcast-player-card .podcast-bars.right span:nth-child(3) { height: 24px; background: linear-gradient(180deg, #6b6bff, #7c3aed) !important; }
.podcast-player-card .podcast-bars.right span:nth-child(4) { height: 16px; background: linear-gradient(180deg, #a855f7, #d946ef) !important; }
.podcast-player-card .podcast-bars.right span:nth-child(5) { height: 10px; background: linear-gradient(180deg, #f054a8, #ff2d55) !important; }

.podcast-player-card.is-playing .podcast-bars span {
    animation: podcastBarPulse 0.9s ease-in-out infinite;
}
.podcast-player-card.is-playing .podcast-bars span:nth-child(1) { animation-delay: 0s; }
.podcast-player-card.is-playing .podcast-bars span:nth-child(2) { animation-delay: 0.1s; }
.podcast-player-card.is-playing .podcast-bars span:nth-child(3) { animation-delay: 0.2s; }
.podcast-player-card.is-playing .podcast-bars span:nth-child(4) { animation-delay: 0.15s; }
.podcast-player-card.is-playing .podcast-bars span:nth-child(5) { animation-delay: 0.05s; }
.podcast-player-card.is-playing .podcast-cover-preview {
    animation-play-state: running;
}

.podcast-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}
.podcast-progress-track {
    position: relative;
    flex: 1;
    height: 4px;
    background: #f7f7f7;
    border-radius: 999px;
}
.podcast-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: #ff3148;
    border-radius: 999px;
    transition: width 0.15s linear;
}
.podcast-progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #ff3148;
    border: 2px solid #fff;
    border-radius: 50%;
    pointer-events: none;
}
.podcast-time {
    min-width: 90px;
    font-size: 12px;
    color: #d9d9d9;
    text-align: right;
}
.podcast-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.podcast-btn {
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
.podcast-btn:hover { background: rgba(255,255,255,0.12); }
.podcast-btn:active { transform: scale(0.97); }
.podcast-btn.play {
    width: 50px;
    height: 50px;
    border-width: 2px;
}
.podcast-btn .icon-pause { display: none; }
.podcast-player-card.is-playing .icon-play { display: none; }
.podcast-player-card.is-playing .icon-pause { display: inline; }
.podcast-audio-element {
    display: none;
}
.podcast-cover-placeholder {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #111;
    font-size: 26px;
}
.podcast-hero-cover {
    width: 220px;
    height: 220px;
    border-radius: 28px;
    overflow: hidden;
    background: #f3f4f6;
}
.podcast-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.podcast-hero-cover.has-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes podcastBarPulse {
    0%   { transform: scaleY(1); }
    25%  { transform: scaleY(1.4); }
    50%  { transform: scaleY(0.8); }
    75%  { transform: scaleY(1.3); }
    100% { transform: scaleY(1); }
}
@keyframes podcastDiscSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

:root:not([data-theme="dark"]) .podcast-player-card,
html:not(.theme-dark):not(.theme-light-override) body:not(.theme-dark) .podcast-player-card {
    background: #f9f9fb;
    color: #0b0b0b;
}
:root:not([data-theme="dark"]) .podcast-card-backdrop img,
html:not(.theme-dark):not(.theme-light-override) body:not(.theme-dark) .podcast-card-backdrop img {
    filter: blur(18px) saturate(1.05);
    opacity: 0.5;
}
:root:not([data-theme="dark"]) .podcast-bars span,
html:not(.theme-dark):not(.theme-light-override) body:not(.theme-dark) .podcast-bars span {
    background: #0b0b0b;
}
:root:not([data-theme="dark"]) .podcast-progress-track,
html:not(.theme-dark):not(.theme-light-override) body:not(.theme-dark) .podcast-progress-track {
    background: #dfe1e5;
}
:root:not([data-theme="dark"]) .podcast-progress-thumb,
html:not(.theme-dark):not(.theme-light-override) body:not(.theme-dark) .podcast-progress-thumb {
    border-color: #f9f9fb;
}
:root:not([data-theme="dark"]) .podcast-time,
html:not(.theme-dark):not(.theme-light-override) body:not(.theme-dark) .podcast-time {
    color: #202124;
}
:root:not([data-theme="dark"]) .podcast-btn,
html:not(.theme-dark):not(.theme-light-override) body:not(.theme-dark) .podcast-btn {
    border-color: rgba(0,0,0,0.18);
    background: rgba(0,0,0,0.06);
    color: #0b0b0b;
}
:root:not([data-theme="dark"]) .podcast-btn:hover,
html:not(.theme-dark):not(.theme-light-override) body:not(.theme-dark) .podcast-btn:hover {
    background: rgba(0,0,0,0.1);
}
:root:not([data-theme="dark"]) .podcast-btn:active,
html:not(.theme-dark):not(.theme-light-override) body:not(.theme-dark) .podcast-btn:active {
    transform: scale(0.97);
}

:root:not([data-theme="dark"]) .profile-podcast-hero,
html:not(.theme-dark):not(.theme-light-override) body:not(.theme-dark) .profile-podcast-hero {
    background: linear-gradient(135deg, rgba(250, 242, 233, 0.85), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(0, 0, 0, 0.04);
}
:root:not([data-theme="dark"]) .profile-podcast-list {
    background: #fff;
    border-color: rgba(0,0,0,0.06);
}
:root[data-theme="dark"] .profile-podcast-hero,
html.theme-dark .profile-podcast-hero,
body.theme-dark .profile-podcast-hero {
    background: linear-gradient(135deg, rgba(20, 24, 30, 0.85), rgba(14, 18, 24, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.06);
}
:root[data-theme="dark"] .profile-podcast-list,
html.theme-dark .profile-podcast-list,
body.theme-dark .profile-podcast-list {
    background: rgba(17, 23, 31, 0.85);
    border-color: rgba(255,255,255,0.08);
}

:root[data-theme="dark"] .podcast-player-card,
html.theme-dark .podcast-player-card,
body.theme-dark .podcast-player-card {
    background: #040404;
    color: #f7f7f7;
}
:root[data-theme="dark"] .podcast-card-backdrop img,
html.theme-dark .podcast-card-backdrop img,
body.theme-dark .podcast-card-backdrop img {
    filter: blur(22px) saturate(1.15);
    opacity: 0.6;
}

.profile-podcast-hero {
    width: 100%;
    border-radius: 24px;
    padding: 22px 24px;
    align-items: center;
    gap: 24px;
}
.podcast-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 12px;
    width: 100%;
}
.profile-podcast-hero__art {
    flex: 0 0 auto;
}
.profile-podcast-hero__meta {
    flex: 1 1 auto;
}
.pp-hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #9ca3af;
}
.pp-hero-title {
    font-size: 32px;
    font-weight: 800;
    margin: 6px 0;
}
.pp-hero-sub {
    color: #6b7280;
    font-size: 15px;
}
.pp-hero-stats {
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.pp-stat {
    font-weight: 700;
    color: #111827;
    display: flex;
    gap: 6px;
    align-items: center;
}
.pp-stat__label {
    font-weight: 600;
    color: #6b7280;
}
.pp-stat__value {
    font-weight: 700;
}
:root[data-theme="dark"] .pp-stat__label { color: #9ca3af; }
:root[data-theme="dark"] .pp-stat { color: #e5e7eb; }
.pp-hero-actions .btn {
    padding: 13px 26px;
    border-radius: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.pp-hero-actions .btn.btn-outline {
    border: 1px solid rgba(0,0,0,0.12);
    background: transparent;
    color: #111827;
}
:root[data-theme="dark"] .pp-hero-actions .btn.btn-outline {
    border-color: rgba(255,255,255,0.15);
    color: #e5e7eb;
}
:root[data-theme="dark"] .pp-hero-actions .btn.btn-outline {
    border-color: rgba(255,255,255,0.15);
    color: #e5e7eb;
}
.profile-podcast-list {
    margin-top: 20px;
    border-radius: 18px;
    border: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
}
.pp-list-head,
.podcast-row {
    padding: 14px 16px;
}
.pp-list-head {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
}
.pp-col__track {
    flex: 3 1 0;
}
.pp-col__about {
    flex: 3 1 0;
}
.pp-col__time {
    width: auto;
    text-align: right;
}
.podcast-row {
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle, rgba(0,0,0,0.05));
}
.podcast-row:last-child {
    border-bottom: none;
}
.podcast-row.is-featured-row {
    background: rgba(255, 49, 72, 0.08);
}
.podcast-row-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease, border-color 0.2s ease, background 0.2s ease;
}
.podcast-row-play::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 12px;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #111;
}
.podcast-row-play::after {
    content: '';
    position: absolute;
    inset: 0;
    display: none;
}
.podcast-row-play:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ededed 100%);
    border-color: rgba(0,0,0,0.18);
}
.podcast-row.is-playing .podcast-row-play::before,
.profile-podcast-hero.is-playing .pp-hero-play::before {
    width: 12px;
    height: 14px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: none;
    background: linear-gradient(to right,
        #111 0%,
        #111 35%,
        transparent 35%,
        transparent 65%,
        #111 65%,
        #111 100%);
}
:root[data-theme="dark"] .podcast-row-play {
    background: linear-gradient(135deg, #161b24 0%, #1f2530 100%);
    border-color: rgba(255,255,255,0.14);
}
:root[data-theme="dark"] .podcast-row-play::before {
    border-color: transparent transparent transparent #f7f7f7;
}
:root[data-theme="dark"] .podcast-row-play:hover {
    background: linear-gradient(135deg, #1c2330 0%, #242c3a 100%);
    border-color: rgba(255,255,255,0.2);
}
:root[data-theme="dark"] .podcast-row.is-playing .podcast-row-play::before,
:root[data-theme="dark"] .profile-podcast-hero.is-playing .pp-hero-play::before {
    background: linear-gradient(to right,
        #f7f7f7 0%,
        #f7f7f7 35%,
        transparent 35%,
        transparent 65%,
        #f7f7f7 65%,
        #f7f7f7 100%);
}
:root[data-theme="dark"] .podcast-row-play {
    background: #11161d;
    border-color: rgba(255,255,255,0.15);
}
:root[data-theme="dark"] .podcast-row-play::before {
    border-color: transparent transparent transparent #f7f7f7;
}
.podcast-row-track {
    flex: 3 1 0;
    min-width: 0;
}
.podcast-row-about {
    flex: 3 1 0;
    font-size: 14px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
:root[data-theme="dark"] .podcast-row-about {
    color: #cfd3da;
}
.podcast-row-thumb {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}
.podcast-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.podcast-row-thumb.has-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.podcast-row-title {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
:root[data-theme="dark"] .podcast-row-title {
    color: #e5e7eb;
}
.podcast-row-time {
    width: auto;
    text-align: right;
    color: #6b7280;
    font-weight: 400;
    font-size: 13px;
}
:root[data-theme="dark"] .podcast-row-time {
    color: #cfd3da;
}
.pp-hero-play {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 13px 30px;
    min-width: 150px;
    min-height: 52px;
    line-height: 1;
}

@media (max-width: 768px) {
    .podcast-page {
        gap: 12px;
    }
    .profile-podcast-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-podcast-hero__art {
        margin: 0 auto;
    }
    .profile-podcast-hero__meta {
        width: 100%;
        align-items: center;
    }
    .pp-hero-actions {
        width: 100%;
    }
    .pp-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .pp-hero-stats {
        justify-content: center;
    }
}
.pp-hero-play::before {
    content: '';
    display: inline-block;
    flex: 0 0 18px;
    height: 18px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #fff;
    border-right: 0 solid transparent;
    box-sizing: border-box;
}
.profile-podcast-hero.is-playing .pp-hero-play::before {
    border: none;
    width: 14px;
    height: 16px;
    background: linear-gradient(to right,
        #fff 0%,
        #fff 40%,
        transparent 40%,
        transparent 60%,
        #fff 60%,
        #fff 100%);
    box-shadow: none;
    transform: none;
    border-radius: 0;
}
:root[data-theme="dark"] .podcast-time,
html.theme-dark .podcast-time,
body.theme-dark .podcast-time {
    color: #d9d9d9;
}
:root[data-theme="dark"] .podcast-btn,
html.theme-dark .podcast-btn,
body.theme-dark .podcast-btn {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.loader {
    width: 80px;
    height: 80px;
    position: relative;
}

.loader div {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border: 3px solid;
    border-radius: 50%;
    opacity: 0;
    animation: pulse-loader 1.2s linear infinite;
    transform-origin: center center;
    box-sizing: border-box;
    background: transparent;
    transform: var(--base-transform);
}

@keyframes pulse-loader {
    0% {
        transform: var(--base-transform) scale(1);
        opacity: 0;
    }
    40% {
        transform: var(--base-transform) scale(2);
        opacity: 1;
    }
    100% {
        transform: var(--base-transform) scale(1);
        opacity: 0;
    }
}

.loader div {
    transform: var(--base-transform);
}

.loader div:nth-child(1) {
    --base-transform: rotate(0deg) translate(30px);
    animation-delay: 0s;
    border-color: var(--charColor1);
}

.loader div:nth-child(2) {
    --base-transform: rotate(30deg) translate(30px);
    animation-delay: 0.1s;
    border-color: var(--charColor2);
}

.loader div:nth-child(3) {
    --base-transform: rotate(60deg) translate(30px);
    animation-delay: 0.2s;
    border-color: var(--charColor3);
}

.loader div:nth-child(4) {
    --base-transform: rotate(90deg) translate(30px);
    animation-delay: 0.3s;
    border-color: var(--charColor4);
}

.loader div:nth-child(5) {
    --base-transform: rotate(120deg) translate(30px);
    animation-delay: 0.4s;
    border-color: var(--charColor5);
}

.loader div:nth-child(6) {
    --base-transform: rotate(150deg) translate(30px);
    animation-delay: 0.5s;
    border-color: var(--charColor6);
}

.loader div:nth-child(7) {
    --base-transform: rotate(180deg) translate(30px);
    animation-delay: 0.6s;
    border-color: var(--charColor1);
}

.loader div:nth-child(8) {
    --base-transform: rotate(210deg) translate(30px);
    animation-delay: 0.7s;
    border-color: var(--charColor2);
}

.loader div:nth-child(9) {
    --base-transform: rotate(240deg) translate(30px);
    animation-delay: 0.8s;
    border-color: var(--charColor3);
}

.loader div:nth-child(10) {
    --base-transform: rotate(270deg) translate(30px);
    animation-delay: 0.9s;
    border-color: var(--charColor4);
}

.loader div:nth-child(11) {
    --base-transform: rotate(300deg) translate(30px);
    animation-delay: 1s;
    border-color: var(--charColor5);
}

.loader div:nth-child(12) {
    --base-transform: rotate(330deg) translate(30px);
    animation-delay: 1.1s;
    border-color: var(--charColor6);
}

/****************************************/


/************Login & Register************/


/****************************************/

.login-container {
    width: 100%;
    max-width: 830px;
    margin: 0px auto;
    padding: 0px 20px;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.login-container .site-logo {
    font-size: 50px;
}

.login-form {
    width: 100%;
    margin-top: 30px;
    padding: 30px 40px;
    border-radius: 40px;
    -webkit-border-radius: 40px;
    display: flex;
    flex-direction: column;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background-color: var(--rgba-18);
    box-shadow: var(--rgba-12) 0px 25px 50px -12px;
    padding-bottom: 30px;
}

.register-form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 0px;
    padding-bottom: 10px;
    gap: 20px;
}

.form-register-box {
    width: 100%;
    display: flex;
    gap: 20px;
}

.form-container {
    width: 100%;
    display: flex;
    padding: 20px 0px;
    padding-bottom: 10px;
    gap: 20px;
}

.form-input-wrapper {
    width: 100%;
}

.form-input-wrapper label {
    text-align: left;
    font-weight: 500;
    display: flex;
    padding-left: 5px;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    outline: none;
    border: 2px solid var(--border-subtle);
    border-radius: 15px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    background-color: var(--bg-base, var(--bg-color));
    padding: 15px;
    transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-input:focus,
.form-input:active {
    border: 2px solid var(--black);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.form-input-wrapper .form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--secondary-text, #6b7280);
}

:root[data-theme="dark"] .form-input,
html.theme-dark .form-input,
body.theme-dark .form-input {
    color: var(--white);
    border-color: var(--border-subtle);
    background: var(--surface);
}

:root[data-theme="dark"] .form-input:focus,
:root[data-theme="dark"] .form-input:active,
html.theme-dark .form-input:focus,
html.theme-dark .form-input:active,
body.theme-dark .form-input:focus,
body.theme-dark .form-input:active {
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35);
}

.login-submit,
.register-submit {
    border: 2px none var(--grey-light);
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    letter-spacing: -0.01em;
    border-radius: 100px;
    font-family: var(--GaphikFont);
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.2s;
    display: block;
    padding: 15px;
    width: 100%;
    cursor: pointer;
}

.login-submit {
    margin-top: 30px;
}

.btn-hover:hover {
    transform: scale(1.05);
}

.btn-hover:active {
    transform: scale(1);
}

.login-form-not {
    text-align: left;
    padding-top: 20px;
}

.login-form-not h2 {
    font-family: var(--PlatformSansSerif);
    margin-bottom: 30px;
    font-size: 40px;
}

.login-form-not p {
    text-align: left;
    margin: 0px !important;
    font-size: 18px;
    margin-top: 20px !important;
}

.login-form a {
    text-decoration: none;
    color: var(--text-dark);
    width: max-content;
    padding-right: 10px;
}

.form-not {
    width: 100%;
    font-size: 14px;
    text-align: left;
    font-weight: 500;
    color: var(--text-dark);
    padding-left: 10px;
}

.form-not-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.form-not-group .form-not {
    width: auto;
    padding-left: 0;
    margin-bottom: 0;
    text-align: center;
}

.form-not-group .form-not a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--color-emerald-500);
    color: var(--color-emerald-700);
    background-color: var(--color-emerald-50);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.form-not-group .form-not a:hover,
.form-not-group .form-not a:focus {
    background-color: var(--color-emerald-500);
    border-color: var(--color-emerald-500);
    color: var(--white);
}

.login-action-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.login-action-links .form-not {
    width: auto;
    padding-left: 0;
    margin-bottom: 0;
    text-align: center;
}

.login-action-links .form-not a {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-weight: 400;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}


.contact-page {
    padding: 64px 24px 88px;
    display: flex;
    justify-content: center;
}

.contact-page .contact-card {
    width: 100%;
    max-width: 780px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-radius: 32px;
    box-shadow: var(--rgba-12) 0 28px 48px -18px;
    padding: 36px;
    gap: 28px;
}

.contact-page .card-header h1 {
    font-size: 34px;
    margin-bottom: 12px;
}

.contact-page .card-header p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-dark);
}
.theme-dark .contact-page .contact-card {
    background: rgba(17, 24, 39, 0.92);
    box-shadow: 0 28px 48px -18px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-dark .contact-page .card-header p {
    color: var(--text-light, #e5e7eb);
}

.contact-page .form-input-wrapper {
    margin-bottom: 18px;
}

.contact-select {
    appearance: none;
    background-color: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(17, 24, 39, 0.55);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='10' viewBox='0 0 16 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.705 1.293a1 1 0 0 0-1.41 1.414l6.414 6.414a1 1 0 0 0 1.414 0l6.414-6.414a1 1 0 1 0-1.414-1.414L8 6.586 1.705 1.293Z' fill='%234336CA'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-select:focus {
    border-color: rgba(17, 24, 39, 0.75);
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.18);
    background-color: var(--bg-base, var(--bg-color));
}

.theme-dark .contact-select {
    background-color: rgba(15, 23, 42, 0.82);
    color: var(--white);
    border-color: rgba(229, 231, 235, 0.6);
}

.theme-dark .contact-select:focus {
    border-color: rgba(229, 231, 235, 0.85);
    box-shadow: 0 0 0 4px rgba(229, 231, 235, 0.18);
    background-color: rgba(15, 23, 42, 0.92);
}

.contact-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: var(--color-neutral-900, #111827);
    color: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.contact-submit:hover,
.contact-submit:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(17, 24, 39, 0.35);
    filter: brightness(1.05);
}

.contact-submit:active {
    transform: translateY(0);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.28);
    filter: brightness(0.95);
}

.contact-submit[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 900px) {
    .login-container {
        max-width: 680px;
        padding: 0 20px;
    }

    .login-form {
        padding: 28px 24px;
        border-radius: 32px;
    }

    .login-form-not h2 {
        font-size: 34px;
    }

    .register-form-container,
    .form-container,
    .form-register-box {
        gap: 18px;
    }

    .contact-page {
        padding: 54px 20px 72px;
    }

    .contact-page .contact-card {
        padding: 32px;
        border-radius: 28px;
        gap: 22px;
    }

    .contact-page .card-header h1 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .login-container {
        max-width: 100%;
        padding: 0 16px;
    }

    .login-form {
        padding: 26px 20px;
        border-radius: 28px;
    }

    .login-form-not h2 {
        font-size: 30px;
    }

    .login-form-not p {
        font-size: 16px;
    }

    .form-container,
    .form-register-box {
        flex-direction: column;
        gap: 14px;
    }

    .register-form-container {
        gap: 14px;
    }

    .social-login-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .social-login-wrapper .social-btn {
        width: 100%;
        justify-content: center;
    }

    .login-action-links,
    .form-not-group {
        gap: 10px;
    }

    .contact-page {
        padding: 44px 16px 60px;
    }

    .contact-page .contact-card {
        padding: 26px 22px;
        border-radius: 26px;
    }

    .contact-page .card-header h1 {
        font-size: 28px;
    }

    .contact-page .card-header p {
        font-size: 14px;
    }

    .contact-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .login-container .site-logo {
        font-size: 36px;
    }

    .login-form {
        padding: 22px 16px;
        border-radius: 24px;
    }

    .login-form-not {
        padding-top: 12px;
    }

    .login-form-not h2 {
        font-size: 26px;
    }

    .login-form-not p {
        font-size: 15px;
    }

    .form-input-wrapper label {
        font-size: 14px;
    }

    .login-action-links,
    .form-not-group {
        flex-direction: column;
    }

    .login-action-links .form-not a,
    .form-not-group .form-not a {
        width: 100%;
    }

    .contact-page {
        padding: 34px 14px 48px;
    }

    .contact-page .contact-card {
        padding: 22px 18px;
        border-radius: 22px;
        gap: 18px;
    }

    .contact-page .card-header h1 {
        font-size: 24px;
    }

    .contact-select {
        padding-right: 42px;
        background-position: right 14px center;
    }
}

.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 40px 0;
    width: 100%;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--hover-bg-color);
}

.form-divider-text {
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--GaphikFont);
    text-transform: uppercase;
    color: var(--text-dark);
    white-space: nowrap;
}

.social-login-wrapper {
    width: 100%;
    padding: 0px 0px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--GaphikFont);
    border: 1px solid var(--color-dcdcdc);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    background-color: transparent;
    transition: transform 0.2s, background-color 0.3s ease;
}

.social-btn img {
    width: 20px;
    height: 20px;
}

.social-btn:hover {
    background-color: var(--color-f6f6f6);
}

.google-btn:hover {
    background-color: var(--color-f8f9fa);
}

.facebook-btn:hover {
    background-color: var(--color-f0f2f5);
}

.twitter-btn:hover {
    background-color: var(--color-sky-50);
}

.form-not-register {
    width: 100% !important;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    padding-top: 20px;
}

.form-not-register a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    display: inline-block;
}

.login-wraning {
    width: 100%;
    font-weight: 500;
    font-size: 13px;
    background-color: var(--warning);
    text-align: left;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    color: var(--white);
}

.login-alert {
    width: 100%;
    max-width: 360px;
    font-weight: 500;
    font-size: 13px;
    text-align: left;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.login-alert--success {
    background-color: var(--color-mint-50);
    color: var(--color-emerald-900);
}

.divid {
    flex: 1 2 auto;
}


/****************************************/


/***********404 Page Not Found***********/


/****************************************/

.login-form-not-404 h2 {
    font-size: 68px;
    font-weight: 900;
    margin-bottom: 20px;
}

.login-form-not-404 p {
    font-size: 23px;
    line-height: 1.6;
    margin-bottom: 0px;
    margin-top: 40px;
}

.page-404-box {
    width: 100%;
    margin-top: 30px;
    padding: 30px 40px;
    border-radius: 40px;
    -webkit-border-radius: 40px;
    display: flex;
    flex-direction: column;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background-color: var(--rgba-18);
    box-shadow: var(--rgba-12) 0px 25px 50px -12px;
    padding-bottom: 30px;
}

.back-to-home {
    border: 2px none var(--grey-light);
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    letter-spacing: -0.01em;
    border-radius: 100px;
    font-family: var(--GaphikFont);
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.2s;
    display: block;
    padding: 15px;
    width: 100%;
    cursor: pointer;
}

.back-to-home a {
    width: 100% !important;
    text-decoration: none;
    color: var(--white) !important;
    padding-right: 10px;
}


/****************************************/


/***********Privacy & Policies***********/


/****************************************/

.privacy-section {
    padding: 60px 20px;
    padding-top: 140px;
    color: var(--color-333);
    text-align: left !important;
}

.privacy-section .container p {
    margin: 0px !important;
}

.privacy-section .container p a {
    color: var(--charColor3);
}

.privacy-section .container {
    max-width: 800px;
    margin: auto;
}

.policy-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #000000 !important;
}

:root[data-theme="dark"] .policy-title,
html.theme-dark .policy-title,
body.theme-dark .policy-title {
    color: var(--white) !important;
}

.policy-description {
    font-size: 16px;
    margin-bottom: 40px;
}

.policy-heading {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--color-111);
}

.policy-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.policy-list li {
    margin-bottom: 10px;
}

:root:not([data-theme="dark"]) .policy-list li,
html:not([data-theme="dark"]) .policy-list li {
    background-image: url("data:image/svg+xml,%3Csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M1%206l2.5%202.5L7%203.5'%20stroke='%23111111'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M5%207l2%202%204-5'%20stroke='%23111111'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] .policy-list li,
html.theme-dark .policy-list li,
body.theme-dark .policy-list li {
    color: var(--white);
}


/**********************************/


/***********Terms of Use***********/


/**********************************/

.terms-section {
    padding: 60px 20px;
    padding-top: 140px;
    color: var(--color-333);
    text-align: left;
}

.terms-section .container {
    max-width: 800px;
    margin: auto;
}

.terms-section .container .terms-title {
    text-align: left;
}

.terms-section .container p {
    margin: 0px !important;
}

.terms-section .container p a {
    color: var(--charColor3);
}

.terms-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #000000 !important;
}

:root[data-theme="dark"] .terms-title,
html.theme-dark .terms-title,
body.theme-dark .terms-title {
    color: var(--white) !important;
}

.terms-description {
    font-size: 16px;
    margin-bottom: 40px;
    margin-left: 0px !important;
}

.terms-heading {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--color-111);
}

.terms-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.terms-list li {
    margin-bottom: 10px;
}

:root:not([data-theme="dark"]) .terms-list li,
html:not([data-theme="dark"]) .terms-list li {
    background-image: url("data:image/svg+xml,%3Csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M1%206l2.5%202.5L7%203.5'%20stroke='%23111111'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Cpath%20d='M5%207l2%202%204-5'%20stroke='%23111111'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] .terms-list,
html.theme-dark .terms-list,
body.theme-dark .terms-list,
:root[data-theme="dark"] .terms-list li,
html.theme-dark .terms-list li,
body.theme-dark .terms-list li {
    color: var(--white);
}

.footer-out {
    margin-top: 0px !important;
    padding: 60px !important;
}


/*******************************/


/***********Main Page***********/


/*******************************/

.hero-title-main {
    background: linear-gradient( 90deg, var(--color-4f46e5), var(--color-ec4899), var(--color-4f46e5));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 6s ease infinite;
    animation-delay: 0s, 0.8s;
    font-weight: 900;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.1;
    margin: 20px auto 40px;
    text-align: center;
}

.upload-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.upload-ui {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--rgba-38);
    border: 2px solid var(--color-61dafb);
    border-radius: 40px;
    padding: 14px 20px;
    max-width: 720px;
    width: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 25px var(--rgba-41);
}

.upload-label {
    flex-grow: 1;
    cursor: pointer;
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-input {
    display: none;
}

.btn-start-ai {
    background: linear-gradient(90deg, var(--color-a34ee2), var(--color-41d1ff));
    border: none;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    margin-left: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-start-ai:hover {
    transform: scale(1.05);
}

.sparkle {
    font-size: 18px;
}

.upload-ui label span {
    color: var(--text-gray);
}

.modal-wrapper {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--rgba-35);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-elevated);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 10px 40px var(--rgba-10);
    font-family: var(--PlatformSansSerif);
}

.modal-title h2 {
    font-size: 30px;
    margin-bottom: 20px;
    font-weight: 700;
}

.modal-title p {
    font-size: 16px;
    color: var(--text-gray);
    font-family: var(--GaphikFont);
    margin-bottom: 30px;
}

.modal-content-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.icon-btn {
    position: relative;
    padding-left: 44px;
    padding-right: 16px;
    height: 48px;
    line-height: 48px;
    background-color: var(--btn-dark);
    color: var(--white);
    font-weight: 400;
    font-size: 14px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: calc(50% - 10px);
    text-align: left;
    transition: transform 0.2s ease;
    font-family: var(--GaphikFont);
}

.icon-btn.camera::before,
.icon-btn.gallery::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--icon-color-white);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.icon-btn.camera::before {
    -webkit-mask-image: url('icons/camera.svg');
    mask-image: url('icons/camera.svg');
}

.icon-btn.gallery::before {
    -webkit-mask-image: url('icons/image.svg');
    mask-image: url('icons/image.svg');
}

.icon-btn:hover {
    transform: scale(1.05);
}

.close-modal {
    background: var(--cancel-button);
    color: var(--white);
    margin-top: 30px;
    padding: 12px 20px;
    font-size: 14px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
    transition: transform 0.2s ease;
}

.close-modal:hover {
    opacity: 0.9;
    transform: scale(1.03);
}


/***************************************************/


/***********User Created Stickers Gallery***********/


/***************************************************/

.sticker-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(clamp(120px, 25vw, 180px), 1fr));
    gap: 16px;
    justify-items: center;
    margin-top: 40px;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 960px;
}

.sticker-item {
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 12px;
    box-shadow: 0 4px 12px var(--rgba-2);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sticker-item:hover {
    transform: scale(1.05);
}

.sticker-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.main-footer {
    margin-top: 0px !important;
}


/***************************************/


/***********Earning Simulator***********/


/***************************************/

.simulator-section {
    text-align: center;
    padding: 80px 20px;
}

.simulator-title {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: var(--PlatformSansSerif);
    color: var(--primary-color);
}

.simulator-subtitle {
    font-size: 1rem;
    color: var(--color-777);
    margin-top: 10px;
    margin-bottom: 40px;
}

.simulator-box {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.simulator-sliders {
    width: 100%;
    display: flex;
    gap: 25px;
}

.simulator-item {
    width: 100%;
}

.simulator-sliders label {
    margin-bottom: 5px;
    display: block;
    text-align: left;
    font-family: var(--PlatformSansSerif);
}

.simulator-icons i {
    margin-left: 8px;
    color: var(--color-4f86f7);
}

input[type='range'] {
    width: 100%;
    height: 28px;
    -webkit-appearance: none;
    outline: none;
    background-color: transparent !important;
    border: 0;
    padding: 0 8px;
    margin: 8px 0;
}

.simulator-value {
    font-weight: bold;
    color: var(--text-dark);
    margin-top: 5px;
}

.simulator-result {
    margin-top: 40px;
    font-size: 1.2rem;
}

.text-highlight {
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1.6rem;
}


/*RANGE*/

input[type='range'] {
    width: 100%;
    height: 28px;
    /* thumbHeight + (2 x thumbBorderWidth)*/
    -webkit-appearance: none;
    /*remove the line*/
    outline: none;
    background-color: transparent !important;
    border: 0;
    /*for firefox on android*/
    padding: 0 8px;
    /*for IE*/
    margin: 8px 0;
}


/*chrome and opera*/

input[type='range']::-webkit-slider-runnable-track {
    background: var(--rgba-12);
    /*trackColor*/
    height: 8px;
    /*trackHeight*/
    border-radius: 8px;
    /*trackHeight*/
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

input[type='range']:hover::-webkit-slider-runnable-track,
input[type='range']:focus::-webkit-slider-runnable-track {
    background: var(--rgba-12);
    /*activeTrackColor*/
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: var(--black);
    /*thumbColor*/
    width: 30px;
    /* thumbHeight + (2 x thumbBorderWidth)*/
    height: 30px;
    /* thumbHeight + (2 x thumbBorderWidth)*/
    border-radius: 50%;
    margin-top: -10px;
    /* -[thumbHeight + (2 x thumbBorderWidth) - trackHeight]/2*/
    cursor: pointer;
    border: 1px solid var(--rgba-18);
    /*border-width should be equal to thumbBorderWidth if you want same border width across all browsers and border-color should match the background*/
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

input[type='range']:hover::-webkit-slider-thumb,
input[type='range']:focus::-webkit-slider-thumb {
    background: var(--black);
    transform: scale(1.1);
    box-shadow: var(--box-shadow);
    /*activeThumbColor*/
}


/*firefox*/

input[type='range']::-moz-focus-outer {
    border: 0;
}

input[type='range']::-moz-range-track {
    background: var(--color-f0f2f5);
    /*trackColor*/
    height: 4px;
    /*trackHeight*/
    border-radius: 4px;
    /*trackHeight*/
    /*background isn't animatable, so can't use transition*/
}

input[type='range']:hover::-moz-range-track,
input[type='range']:focus::-moz-range-track {
    background: var(--color-f0f2f5);
    /*activeTrackColor*/
}

input[type='range']::-moz-range-thumb {
    background: var(--color-fab429);
    /*thumbColor*/
    width: 10px;
    /*thumbHeight*/
    height: 10px;
    /*thumbHeight*/
    border-radius: 50%;
    cursor: pointer;
    border: 4px solid var(--color-ffffff);
    /*border-width = thumbBorderWidth, border-color should match the background*/
}

input[type='range']:hover::-moz-range-thumb,
input[type='range']:focus::-moz-range-thumb {
    background: var(--color-f65169);
    /*activeThumbColor*/
}

input[type='range']::-moz-range-progress {
    background: var(--color-f65169);
    /*thumbColor*/
    border-radius: 4px;
    /*trackHeight*/
    height: 4px;
    /*trackHeight*/
}

input[type='range']:hover::-moz-range-progress,
input[type='range']:focus::-moz-range-progress {
    background: var(--color-fab429);
    /*activeThumbColor*/
}


/*edge and IE*/

input[type='range']::-ms-track {
    background: var(--color-f0f2f5);
    /*trackColor*/
    height: 4px;
    /*trackHeight*/
    border-radius: 4px;
    /*trackHeight*/
    border: none;
    color: transparent;
}

input[type='range']:hover::-ms-track,
input[type='range']:focus::-ms-track {
    background: var(--color-fab429);
    /*activeTrackColor*/
}

input[type='range']::-ms-thumb {
    background: var(--color-f65169);
    /*thumbColor*/
    width: 10px;
    /*thumbHeight*/
    height: 10px;
    /*thumbHeight*/
    border-radius: 50%;
    border: none;
    margin: 0 4px 0;
    /*0 thumbBorderWidth 0*/
    box-shadow: 0 0 0 4px var(--color-ffffff);
    /*0 0 0 thumbBorderWidth #fff, box-shadow color should match the background*/
    /*cursor:pointer; doesn't work*/
}

input[type='range']:hover::-ms-thumb,
input[type='range']:focus::-ms-thumb {
    background: var(--color-fab429);
    /*activeThumbColor*/
}

input[type='range']::-ms-tooltip {
    display: none;
    /*tooltip makes thumb sliding lagy*/
}

input[type='range']::-ms-fill-lower {
    background: var(--color-f65169);
    /*thumbColor*/
    border-radius: 4px;
    /*trackHeight*/
}

input[type='range']:hover::-ms-fill-lower,
input[type='range']:focus::-ms-fill-lower {
    background: var(--color-fab429);
    /*activeThumbColor*/
}

.vertically-stacked-slider {
    padding: 8px;
}

.vertically-stacked-slider>input[type='range'] {
    padding: 0;
}

.horizontally-stacked-slider {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.horizontally-stacked-slider>input[type='range'] {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}


/*************************************/


/***************CONTAINER***************/


/*************************************/

.site_container {
    width: 100%;
    height: 100%;
}

.flex {
    display: flex;
    display: -moz-flex;
    display: -o-flex;
    display: -ms-flex;
}

.inline-flex {
    display: inline-flex;
}

.align_items_justify_content {
    justify-content: center;
    align-items: center;
}

.space_between {
    justify-content: space-between;
}

.align_items {
    align-items: center;
}

.justify_content {
    justify-content: center;
}

.flex_start {
    justify-content: flex-start;
}

.flex_end {
    justify-content: flex-end;
}

.stretch {
    align-items: stretch;
}

.truncated {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flexBoxColumn {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}


/*************************************/


/***************HEADER***************/


/*************************************/

.site-announcement {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 5vh, 32px);
    background: var(--rgba-55);
    z-index: 99999;
}

.site-announcement__overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}

.site-announcement__dialog {
    position: relative;
    width: min(560px, 100%);
    max-width: min(640px, 100%);
    max-height: min(92vh, 720px);
    background: var(--white);
    color: var(--color-111827);
    border-radius: 20px;
    box-shadow: 0 28px 60px var(--color-slate-900-a25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    border-color: none;
    outline: none;
}

.site-announcement__media {
    flex: 0 1 auto;
    width: 100%;
    height: clamp(140px, 36vh, 360px);
    min-height: 120px;
    max-height: 420px;
    display: flex;
    overflow: hidden;
}

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

.site-announcement__content {
    padding: clamp(20px, 4vh, 28px) clamp(20px, 6vw, 32px) 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.site-announcement__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: inherit;
}

.site-announcement__body {
    font-size: 1rem;
    line-height: 1.6;
    color: inherit;
    overflow-wrap: anywhere;
}

.site-announcement__body .ann-bg-black,
.site-announcement__body .ann-bg-slate,
.site-announcement__body .ann-bg-blue,
.site-announcement__body .ann-bg-cyan,
.site-announcement__body .ann-bg-green,
.site-announcement__body .ann-bg-amber,
.site-announcement__body .ann-bg-rose,
.site-announcement__body .ann-bg-purple {
    display: inline;
    padding: 0 0.25em;
    border-radius: 0.35em;
    font-weight: 600;
}

.site-announcement__body .ann-bg-black {
    background-color: var(--color-slate-900);
    color: var(--color-gray-50);
}

.site-announcement__body .ann-bg-slate {
    background-color: var(--color-slate-100);
    color: var(--color-slate-900);
}

.site-announcement__body .ann-bg-blue {
    background-color: var(--color-blue-500);
    color: var(--white);
}

.site-announcement__body .ann-bg-cyan {
    background-color: var(--color-cyan-600);
    color: var(--color-sky-100);
}

.site-announcement__body .ann-bg-green {
    background-color: var(--color-emerald-500);
    color: var(--color-emerald-50);
}

.site-announcement__body .ann-bg-amber {
    background-color: var(--color-amber-500);
    color: var(--text-dark);
}

.site-announcement__body .ann-bg-rose {
    background-color: var(--color-rose-600);
    color: var(--color-rose-50);
}

.site-announcement__body .ann-bg-purple {
    background-color: var(--color-violet-500);
    color: var(--color-indigo-50);
}

.site-announcement__body .ann-bg-black a,
.site-announcement__body .ann-bg-slate a,
.site-announcement__body .ann-bg-blue a,
.site-announcement__body .ann-bg-cyan a,
.site-announcement__body .ann-bg-green a,
.site-announcement__body .ann-bg-amber a,
.site-announcement__body .ann-bg-rose a,
.site-announcement__body .ann-bg-purple a {
    color: inherit;
}


/* Announcement inline text color utilities (placed after backgrounds so they win the cascade) */

.site-announcement__body .ann-text-black {
    color: var(--text-dark);
}

.site-announcement__body .ann-text-white {
    color: var(--white);
}

.site-announcement__body .ann-text-slate {
    color: var(--color-slate-600);
}

.site-announcement__body .ann-text-blue {
    color: var(--color-blue-500);
}

.site-announcement__body .ann-text-cyan {
    color: var(--color-cyan-600);
}

.site-announcement__body .ann-text-green {
    color: var(--color-emerald-500);
}

.site-announcement__body .ann-text-amber {
    color: var(--color-amber-500);
}

.site-announcement__body .ann-text-rose {
    color: var(--color-rose-600);
}

.site-announcement__body .ann-text-purple {
    color: var(--color-violet-500);
}

.site-announcement__body .ann-underline {
    text-decoration: underline;
}

.site-announcement__body p {
    margin: 0;
}

.site-announcement__body p+p {
    margin-top: 0.6rem;
}

.site-announcement__body a {
    color: var(--color-305afe);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-announcement__body a:hover,
.site-announcement__body a:focus-visible {
    color: var(--color-4f86f7);
}

.site-announcement__body ul,
.site-announcement__body ol {
    margin: 0.6rem 0 0 1.25rem;
    padding-left: 1.25rem;
}

.site-announcement__body li+li {
    margin-top: 0.35rem;
}

.site-announcement__body blockquote {
    margin: 0.6rem 0 0;
    padding-left: 1rem;
    border-left: 3px solid var(--color-slate-900-a15);
    color: inherit;
}

.site-announcement__body strong,
.site-announcement__body b {
    font-weight: 600;
}

.site-announcement__body em,
.site-announcement__body i {
    font-style: italic;
}

.site-announcement__footer {
    padding: clamp(20px, 4vh, 28px) clamp(20px, 6vw, 32px) clamp(20px, 6vh, 32px) clamp(20px, 6vw, 32px);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.site-announcement__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    min-height: 40px;
    border-radius: 999px;
    background: var(--color-305afe);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-announcement__cta:hover,
.site-announcement__cta:focus-visible {
    background: var(--color-4f86f7);
    transform: translateY(-1px);
}

.site-announcement__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    min-height: 40px;
    border-radius: 999px;
    background: var(--color-slate-900-a10);
    color: inherit;
    border: 0;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-announcement__close:hover,
.site-announcement__close:focus-visible {
    background: var(--color-slate-900-a20);
    transform: translateY(-1px);
}

@media (max-height: 560px) {
    .site-announcement__media {
        height: clamp(120px, 32vh, 260px);
    }
    .site-announcement__content {
        padding-top: 20px;
    }
    .site-announcement__footer {
        padding-top: 20px;
        padding-bottom: 24px;
    }
}

.site-announcement--hidden {
    display: none !important;
}

:root[data-theme="dark"] .site-announcement,
body.theme-dark .site-announcement,
html.theme-dark .site-announcement {
    background: var(--rgba-black-75);
}

:root[data-theme="dark"] .site-announcement__dialog,
body.theme-dark .site-announcement__dialog,
html.theme-dark .site-announcement__dialog {
    background: var(--bg-elevated, var(--color-charcoal-900));
    color: var(--text-primary);
    box-shadow: 0 32px 70px var(--rgba-55);
}

:root[data-theme="dark"] .site-announcement__close,
body.theme-dark .site-announcement__close,
html.theme-dark .site-announcement__close {
    background: var(--white-12);
}

:root[data-theme="dark"] .site-announcement__close:hover,
:root[data-theme="dark"] .site-announcement__close:focus-visible,
body.theme-dark .site-announcement__close:hover,
body.theme-dark .site-announcement__close:focus-visible,
html.theme-dark .site-announcement__close:hover,
html.theme-dark .site-announcement__close:focus-visible {
    background: var(--white-22);
}

:root[data-theme="dark"] .site-announcement__cta,
body.theme-dark .site-announcement__cta,
html.theme-dark .site-announcement__cta {
    background: var(--primary-color, var(--color-4f86f7));
}

:root[data-theme="dark"] .site-announcement__body a,
body.theme-dark .site-announcement__body a,
html.theme-dark .site-announcement__body a {
    color: var(--primary-color, var(--color-blue-300));
}

:root[data-theme="dark"] .site-announcement__body a:hover,
:root[data-theme="dark"] .site-announcement__body a:focus-visible,
body.theme-dark .site-announcement__body a:hover,
body.theme-dark .site-announcement__body a:focus-visible,
html.theme-dark .site-announcement__body a:hover,
html.theme-dark .site-announcement__body a:focus-visible {
    color: var(--primary-color-strong, var(--color-blue-200));
}

.site_header {
    width: 100%;
    padding: 15px 15px 0px 15px;
}

.site_header_container {
    width: 100%;
    padding: 10px 20px 10px 20px;
    background-color: var(--bg-elevated);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.site_header_container a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.site_header_container a img {
    height: 35px;
    width: auto;
    object-fit: contain;
    display: block;
}


/* Header mobile controls */

.header_left {
    gap: 10px;
}

.btn-icon {
    border: none;
    background: transparent;
    padding: 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--hover-bg-color);
}

.mobile-nav-btn-left,
.mobile-nav-btn-right {
    display: none;
}

.mobile-search-toggle {
    display: none;
}

.mobile-nav-btn-left svg,
.mobile-nav-btn-left img,
.mobile-nav-btn-right img,
.mobile-nav-btn-right svg {
    width: 25px;
    height: 25px;
}

:root[data-theme="dark"] .mobile-nav-btn-left svg,
html.theme-dark .mobile-nav-btn-left svg,
body.theme-dark .mobile-nav-btn-left svg {
    color: var(--white);
    fill: currentColor;
    stroke: currentColor;
}

:root[data-theme="dark"] .mobile-nav-btn-right svg,
html.theme-dark .mobile-nav-btn-right svg,
body.theme-dark .mobile-nav-btn-right svg {
    color: var(--white);
    fill: currentColor;
    stroke: currentColor;
}


/* Hide right mobile toggle when there is no right panel */

.mobile-nav-btn-right.is-hidden {
    display: none !important;
}

.header_search_wrapper {
    flex: 1;
    padding: 0 15px;
}

.search_bar_container {
    width: 100%;
    margin: 0px auto;
    max-width: 400px;
    position: relative;
    gap: 6px;
}

.search-filter-dropdown {
    position: absolute;
    flex: 0 0 auto;
    right: 2px;
}

.search-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated, var(--bg-base));
    color: var(--primary-text);
    border-radius: 13px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.search-filter-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.search-filter-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    background: var(--bg-elevated, var(--bg-base));
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-8-24-10);
    padding: 6px;
    display: none;
    z-index: 10;
}

.search-filter-dropdown.is-open .search-filter-menu {
    display: block;
}

.search-filter-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: none;
    background: transparent;
    color: var(--primary-text);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-filter-option:hover,
.search-filter-option:focus-visible {
    background: var(--rgba-55);
    outline: none;
}

.search-filter-option.active {
    background: var(--btn-dark);
    color: var(--btn-primary-text, var(--white));
}

.search_input {
    outline: none;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 15px;
    font-size: 14px;
    color: var(--primary-text) !important;
    font-family: var(--fontApple);
    background-color: var(--bg-color);
    border: none;
    padding: 10px;
}


/* Improve search usability on mobile/tablet */

.search_input:focus {
    box-shadow: 0 0 0 2px var(--border-subtle) inset;
}

@media (max-width: 768px) {
    .search-filter-toggle {
        padding: 8px 10px;
    }
    .search-filter-menu {
        min-width: 140px;
    }
    .search-filter-option {
        padding: 8px 14px;
    }
}

.header_right {
    min-width: 120px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.user_avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.header_icon_group {
    gap: 15px;
}

.header-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-auth-link--signin {
    color: var(--primary-text);
    border-color: var(--border-subtle, var(--color-midnight-900-a08));
    background: transparent;
}

.header-auth-link--signin:hover {
    background: var(--hover-bg-color, var(--sd-admin-hover-bg));
}

.header-auth-link--signup {
    background: var(--btn-primary-bg, var(--color-305afe));
    color: var(--btn-primary-text, var(--white));
}

.header-auth-link--signup:hover {
    background: var(--btn-primary-hover-bg, var(--color-blue-650));
}

.header_language_switcher_wrapper,
.welcome_language_switcher_wrapper,
.auth_language_switcher_wrapper,
.maintenance-language-switcher {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header_language_switcher,
.welcome_language_switcher,
.auth_language_switcher {
    appearance: none;
    background: transparent;
    border-radius: 12px;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.12));
    padding: 0 14px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header_language_switcher__label,
.welcome_language_switcher__label,
.auth_language_switcher__label {
    letter-spacing: 0.04em;
}

.language_switcher_text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header_language_switcher .language_switcher_icon svg,
.header_language_switcher .language_switcher_icon img,
.welcome_language_switcher .language_switcher_icon svg,
.welcome_language_switcher .language_switcher_icon img,
.auth_language_switcher .language_switcher_icon svg,
.auth_language_switcher .language_switcher_icon img {
    width: 20px;
    height: 20px;
}

.header_language_switcher,
.welcome_language_switcher {
    color: var(--white, #ffffff);
    border-color: rgba(255, 255, 255, 0.32);
}

.theme-light .header_language_switcher,
:root[data-theme="light"] .header_language_switcher,
html[data-theme="light"] .header_language_switcher,
body[data-theme="light"] .header_language_switcher,
:root:not([data-theme]) .header_language_switcher,
html:not([data-theme]) .header_language_switcher,
body:not([data-theme]) .header_language_switcher {
    color: var(--text-dark, #111827);
    border-color: rgba(0, 0, 0, 0.12);
    background-color: rgba(255, 255, 255, 0.8);
}

.theme-light .header_language_switcher:hover,
:root[data-theme="light"] .header_language_switcher:hover,
html[data-theme="light"] .header_language_switcher:hover,
body[data-theme="light"] .header_language_switcher:hover,
:root:not([data-theme]) .header_language_switcher:hover,
html:not([data-theme]) .header_language_switcher:hover,
body:not([data-theme]) .header_language_switcher:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

.header_language_switcher:hover,
.welcome_language_switcher:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.auth_language_switcher {
    color: var(--primary-text, #1f1f2c);
}

.theme-light .welcome_language_switcher,
:root[data-theme="light"] .welcome_language_switcher,
html[data-theme="light"] .welcome_language_switcher,
body[data-theme="light"] .welcome_language_switcher,
:root:not([data-theme]) .welcome_language_switcher,
html:not([data-theme]) .welcome_language_switcher,
body:not([data-theme]) .welcome_language_switcher {
    color: var(--text-dark, #111827);
    border-color: rgba(0, 0, 0, 0.12);
}

.theme-light .welcome_language_switcher:hover,
:root[data-theme="light"] .welcome_language_switcher:hover,
html[data-theme="light"] .welcome_language_switcher:hover,
body[data-theme="light"] .welcome_language_switcher:hover,
:root:not([data-theme]) .welcome_language_switcher:hover,
html:not([data-theme]) .welcome_language_switcher:hover,
body:not([data-theme]) .welcome_language_switcher:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

.auth_language_switcher:hover {
    background: rgba(0, 0, 0, 0.05);
}

.auth_language_switcher_wrapper {
    margin-top: 18px;
}

.header_language_switcher_wrapper {
    margin-right: 12px;
}

.welcome_language_switcher_wrapper {
    margin-left: 0;
}

.maintenance-language-switcher {
    margin-left: auto;
}

.icon_button {
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.icon_button:hover {
    background-color: var(--hover-bg-color);
}

.icon_button img,
.icon_button svg {
    width: 20px;
    height: 20px;
}


/* Header badge: show only when .is-on, pulse animation optional */

.has_badge .badge_count {
    position: absolute;
    top: 0px;
    right: 4px;
    background-color: var(--orange-red);
    color: var(--white);
    border-radius: 999px;
    line-height: 1;
    width: 10px;
    height: 10px;
    padding: 0;
    z-index: 2;
    box-shadow: 0 0 0 2px var(--bg-color);
    display: none;
    /* hidden by default — appears only on new items */
}

.has_badge .badge_count.is-on {
    display: inline-block;
}

.has_badge .badge_count.pulse {
    animation: badge-pulse 1.2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(0.85);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(0.85);
    }
}

.user_dropdown {
    background-color: var(--bg-color);
    border-radius: 999px;
    padding: 6px 10px;
    gap: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.user_dropdown:hover {
    background-color: var(--hover-bg-color);
}

.user_dropdown .avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
}

.user_dropdown .username {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
}

.dropdown_arrow {
    width: 12px;
    height: 12px;
}

.click_box {
    position: absolute;
    width: auto;
    max-width: 90vw;
    padding: 0;
    padding-top: 10px;
    z-index: 9999;
    display: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-family: var(--fontApple);
}

.click_box.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.click_box_inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* Dropdown panel: constrain to viewport height, let inner list scroll */

.click_box_wrapper {
    width: 400px;
    max-width: 90vw;
    background-color: var(--bg-elevated);
    box-shadow: 0 8px 25px var(--box-shadow);
    border-radius: 15px;
    /* The panel itself should not scroll horizontally; inner content will */
    overflow: hidden;
    /* Grow until (viewport - 10px); then stop. */
    max-height: calc(100vh - 10px);
    /* Make header stay at top while list area becomes flexible */
    display: flex;
    flex-direction: column;
}


/* Use modern dynamic viewport units when supported (iOS Safari, mobile UI chrome) */

@supports (max-height: 100dvh) {
    .click_box_wrapper {
        max-height: calc(100dvh - 90px);
    }
}

.click_box_header {
    width: 100%;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.messages_dropdown_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.messages_dropdown_header span {
    min-width: 0;
}

.messages_dropdown_view_all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--body-bg, #f7f8fb);
    color: var(--text-muted, #64748b);
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease;
}

.messages_dropdown_view_all:hover,
.messages_dropdown_view_all:focus-visible {
    background: var(--hover-bg-color, #f0f2f5);
    color: var(--text-dark, #111827);
}

:root[data-theme="dark"] .messages_dropdown_view_all,
body.theme-dark .messages_dropdown_view_all {
    background: #2b2b2b;
    color: #f5f5f5;
}

:root[data-theme="dark"] .messages_dropdown_view_all:hover,
:root[data-theme="dark"] .messages_dropdown_view_all:focus-visible,
body.theme-dark .messages_dropdown_view_all:hover,
body.theme-dark .messages_dropdown_view_all:focus-visible {
    background: #343434;
    color: #ffffff;
}

.arrow {
    width: 100%;
    height: 1px;
    background-color: var(--border-subtle);
}

.click_box_results {
    width: 100%;
    /* scrolling is vertical; allow it to expand under wrapper constraints */
    max-height: none;
    overflow-y: visible;
    overflow-x: hidden;
    font-family: var(--fontApple);
}

.click_box_recent_searches,
.click_box_new_search_results {
    width: 100%;
    padding: 15px 5px;
    gap: 5px;
}

._padding {
    padding: 0px 5px !important;
}

.activity-page {
    width: 100%;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-page__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-page__heading {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
}

.activity-page__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-page__card {
    max-height: none;
}

.activity-page__card .activity-list {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.activity-page__sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-page__section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-page__section+.activity-page__section {
    border-top: 1px solid var(--sd-admin-border);
    padding-top: 16px;
}

.activity-page__section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--sd-admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-page__empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--sd-admin-text-muted);
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.activity-page__empty-icon svg,
.activity-page__empty-icon img {
    width: 38px;
    height: 38px;
}

.notif-section {
    margin-bottom: 5px;
}

.notif-section-title {
    font-weight: 700;
    font-size: 18px;
    margin: 5px 10px;
}


/* Make the message list scroll within the dropdown, not the page */

.click_box_new_search_results {
    flex: 1 1 auto;
    /* take remaining space under header */
    min-height: 0;
    /* allow flex child to actually shrink */
    overflow-y: auto;
    /* vertical scroll when needed */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* smooth on iOS */
    overscroll-behavior: contain;
    /* don’t scroll the page when hitting ends */
    padding-bottom: 10px;
    /* visual gap to bottom edge */
    scrollbar-gutter: stable both-edges;
    /* avoid layout jump when scrollbar appears */
}

.click_box_wrapper.settings-menu-dropdown {
    width: 360px;
}

.click_box_new_search_results.settings-menu-dropdown__body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.settings-menu-dropdown__profile-section {
    padding: 18px 20px 0px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-menu-dropdown__profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark, var(--color-111));
}

.settings-menu-dropdown__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.settings-menu-dropdown__identity {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-menu-dropdown__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark, var(--color-111));
}

.settings-menu-dropdown__hint {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
}

.settings-menu-dropdown__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.settings-menu-dropdown__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--hover-bg-color, rgba(0, 0, 0, 0.04));
    color: var(--text-dark, var(--color-111));
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.settings-menu-dropdown__card--action:hover {
    background: var(--rgba-11, rgba(0, 0, 0, 0.08));
}

.settings-menu-dropdown__card--metric {
    cursor: default;
}

.settings-menu-dropdown__card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-muted, rgba(0, 0, 0, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.settings-menu-dropdown__card-icon svg {
    width: 20px;
    height: 20px;
}

.settings-menu-dropdown__card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-menu-dropdown__card-label {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
}

.settings-menu-dropdown__card-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark, var(--color-111));
}

.settings-menu-dropdown__divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 8px 20px;
}

.settings-menu-dropdown__links {
    padding: 10px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.settings-menu-dropdown__links .settings_sidebar__menu_box {
    width: 100%;
    border-radius: 0;
}

.box_title {
    width: 100%;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 14px;
}

.search-result-section-title {
    width: 100%;
    padding: 10px 12px 4px;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background 0.2s ease;
    cursor: pointer;
    width: 100%;
    /* ensure item doesn't exceed container */
    min-width: 0;
    /* allow children to shrink */
    max-width: 100%;
}

.search-result-item:hover {
    background: var(--hover-bg-color);
}

.search-result-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-result-avatar--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--grey-light);
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 800;
}

.search-result-thumb {
    border-radius: 12px;
    background: var(--grey-light);
}

.search-result-avatar img {
    width: 100%;
    height: auto;
    position: relative;
    display: block;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    /* take remaining space */
    min-width: 0;
    /* KEY: enables ellipsis inside */
}

.search-result-username {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    display: flex;
    align-items: center;
}

.search-result-fullname {
    font-weight: 400;
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 2px;
}

.search-result-fullname .search-result-dot {
    display: inline-block;
    margin: 0 6px;
    color: inherit;
}

.search-result-fullname .search-result-meta {
    color: inherit;
    font-size: inherit;
}

.search-result-fullname-message {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 400;
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 2px;
    min-width: 0;
    /* allow line to shrink within flex */
}

.search-result-fullname-message .last-text {
    flex: 1 1 auto;
    min-width: 0;
    /* enables ellipsis inside flex */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* show … when text is long */
}

.search-result-fullname-message .last-time {
    flex: 0 0 auto;
    /* do not shrink the time */
    white-space: nowrap;
    margin-left: 6px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    color: var(--verified-color);
}

.verified-badge img,
.verified-badge svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.no-seached-yet {
    width: 100%;
    font-weight: 600;
    padding: 30px;
    text-align: center;
    gap: 20px;
}

.no-seached-yet img,
.no-seached-yet svg {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.no-search-result {
    width: 100%;
    font-weight: 600;
    gap: 20px;
    color: var(--text-gray);
}

.no-search-result img,
.no-search-result svg {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.s_result {
    display: none;
}

.create_new_btn_box {
    padding: 20px;
    border-radius: 12px;
    transition: background 0.2s ease;
    cursor: pointer;
    gap: 10px;
    font-weight: 500;
    font-size: 16px;
    color: var(--text-dark);
}

.create_new_btn_box img,
.create_new_btn_box svg {
    width: 25px;
    height: 25px;
    color: var(--svg-color);
}

.create_new_btn_box:hover {
    background: var(--hover-bg-color);
}

.create_new_btn_box.is-disabled,
.create_new_btn_box[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
    background: transparent;
}


/*************************************/


/***************SIDEBAR***************/


/*************************************/

.sidebar_container {
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 100%;
    max-width: 300px;
    height: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar__inner {
    width: 100%;
    background-color: var(--bg-elevated);
    border-radius: 15px;
    height: 100%;
    box-shadow: var(--box-shadow);
}

.sidebar__inner button {
    border: none;
    background-color: transparent;
}

.settings-menu-dropdown__links button {
    border: none;
    background-color: transparent;
}

.sticky_top {
    position: sticky;
    position: -webkit-sticky;
    top: 0px;
}

.sidebar_scroll {
    overflow: hidden;
    overflow-y: scroll;
}

.sidebar__menu_wrapper {
    padding: 10px;
    gap: 5px;
}

.sidebar__menu_box {
    padding: 10px;
    color: var(--text-dark);
    border-radius: 8px;
    -webkit-border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    font-family: var(--fontApple);
}

.sidebar__menu_box:hover {
    background-color: var(--hover-bg-color);
}

.sidebar__menu_box span {
    margin-right: 8px;
}

.sidebar__menu_box > span:has(> svg, > img) {
    width: 24px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sidebar__menu_box > span:has(> svg, > img) svg,
.sidebar__menu_box > span:has(> svg, > img) img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    display: block;
    object-fit: contain;
}

.sidebar__menu_lang_label {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.profile img {
    overflow: hidden;
    border-radius: 50%;
    -webkit-border-radius: 50%;
}

.home_page,
.list_menu,
.reels,
.images,
.explore,
.premium,
.profile,
.creators,
.dashboard_user,
.bookmarks,
.messages,
.lives,
.audio_rooms,
.advertisements,
.settings,
.activity,
.switch_apperange,
.logout,
.my_profile,
.security,
.preferences,
.password,
.subscription,
.super_thanks,
.bank,
.payments,
.payout_methods,
.subscription_fees,
.blocked,
.profilephoto--icon {
    color: var(--svg-color);
}

.home_page svg,
.home_page img,
.list_menu svg,
.list_menu img,
.reels svg,
.reels img,
.images svg,
.images img,
.explore svg,
.explore img,
.premium svg,
.premium img,
.profile svg,
.profile img,
.creators svg,
.creators img,
.dashboard_user svg,
.dashboard_user img,
.bookmarks svg,
.bookmarks img,
.messages svg,
.messages img,
.lives svg,
.lives img,
.advertisements svg,
.advertisements img,
.settings svg,
.settings img,
.trending svg,
.trending img,
.activity svg,
.activity img,
.switch_apperange svg,
.switch_apperange img,
.logout svg,
.logout img,
.my_profile svg,
.my_profile img,
.security svg,
.security img,
.preferences svg,
.preferences img,
.password svg,
.password img,
.subscription svg,
.subscription img,
.super_thanks svg,
.super_thanks img,
.bank svg,
.bank img,
.payments svg,
.payments img,
.payout_methods svg,
.payout_methods img,
.subscription_fees svg,
.subscription_fees img,
.blocked svg,
.blocked img,
.walletTopup svg,
.walletTopup img,
.language_switcher_icon svg,
.language_switcher_icon img,
.podcasts svg,
.podcasts img,
.audio_rooms svg,
.audio_rooms img,
.podcasts-hero__cover-placeholder svg,
.podcasts-hero__cover-placeholder img {
    width: 26px;
    height: 26px;
}

.profilephoto--icon svg,
.profilephoto--icon img {
    width: 32px;
    height: 32px;
}

.sidebar__footer {
    margin-top: auto;
    padding: 10px;
    position: sticky;
    position: -webkit-sticky;
    bottom: 0px;
    background-color: var(--bg-elevated);
}

.sidebar_hide_more_menu_box {
    border-radius: 8px;
    -webkit-border-radius: 8px;
    padding: 10px;
    margin: 5px 0px;
}

.more_active {
    background-color: var(--hover-bg-color);
}


/*************************************/


/*************CROP IMAGE**************/


/*************************************/

.popUp-container {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: var(--rgba-10);
    display: flex;
    justify-content: center;
    align-items: stretch;
    /* use stretch instead of flex-start */
    min-height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.popUp-container.pcover-overlay {
    background: rgba(0, 0, 0, 0.65);
    align-items: center;
    justify-content: center;
}

.popup-wrapper {
    width: 100%;
    max-width: 720px;
    background: var(--bg-elevated);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    margin: auto;
}

.create-new-modal-container {
    align-items: center;
    padding: 24px 12px;
}

.create-new-modal {
    max-width: 420px;
    width: min(420px, 100%);
    background: var(--bg-elevated, var(--bg-color));
    border-radius: 18px;
    padding: 0 0 0px;
    position: relative;
    box-shadow: var(--shadow-elevated, 0 24px 48px rgba(15, 23, 42, 0.18));
}

.create-new-modal__close {
    background: transparent;
    border: 0;
    color: var(--text-muted, var(--color-slate-500));
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.create-new-modal__close:hover,
.create-new-modal__close:focus-visible {
    color: var(--text-dark, #0f172a);
    outline: none;
}

.create-new-modal .click_box_header {
    padding: 24px 28px 16px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.create-new-modal__title {
    flex: 1;
}

.create-new-modal .arrow {
    height: 1px;
    width: 100%;
    background: var(--border-subtle);
    margin: 0;
}

.create-new-modal__body {
    width: 100%;
    padding: 16px 24px 24px;
    gap: 14px;
}

.create-new-modal__body .create_new_btn_box {
    width: 100%;
}

.create-new-modal__body .create_new_btn_box.flexBoxColumn {
    gap: 14px;
    align-items: stretch;
}

.create-new-modal__body .create_ads_btns {
    gap: 12px;
}

.create-new-modal__body .create_ads {
    justify-content: center;
}

.auth-required-container {
    justify-content: center;
    padding: 24px;
}

.auth-required-popup {
    max-width: 420px;
    padding: 32px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.confirm-popup-container {
    justify-content: center;
    padding: 24px;
}

.confirm-popup {
    max-width: 440px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    background: var(--bg-elevated, var(--color-ink-950));
    border-radius: 18px;
    border-top: 4px solid transparent;
    box-shadow: 0 24px 48px var(--color-slate-900-a18);
    overflow: visible;
    backdrop-filter: blur(6px);
}

.confirm-popup--neutral {
    border-top-color: var(--color-305afe);
}

.confirm-popup--info {
    border-top-color: var(--color-1da1f2);
}

.confirm-popup--success {
    border-top-color: var(--color-1ca662);
}

.confirm-popup--warning {
    border-top-color: var(--color-amber-500);
}

.confirm-popup__close {
    top: 18px;
    right: 18px;
    background: transparent;
    color: var(--text-tertiary, var(--color-slate-400-a90));
    font-size: 20px;
    line-height: 1;
    padding: 6px;
    transition: color 0.2s ease;
}

.confirm-popup__close:hover,
.confirm-popup__close:focus {
    color: var(--text-primary, var(--color-slate-50));
}

.confirm-popup__head {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.confirm-popup__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    background: var(--color-305afe);
    color: var(--color-ffffff, var(--white));
    box-shadow: 0 16px 32px var(--color-royal-500-a22);
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.confirm-popup__icon:focus,
.confirm-popup__icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px var(--color-royal-500-a28);
}

.confirm-popup--info .confirm-popup__icon,
.confirm-popup--neutral .confirm-popup__icon {
    background: var(--color-1da1f2);
    box-shadow: 0 16px 32px var(--color-twitter-blue-a25);
}

.confirm-popup--success .confirm-popup__icon {
    background: var(--color-1ca662);
    box-shadow: 0 16px 32px var(--color-green-500-a25);
}

.confirm-popup--warning .confirm-popup__icon {
    background: var(--black);
    color: var(--white);
}

.confirm-popup__head-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    text-align: left;
}

.confirm-popup__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, var(--color-slate-50));
    margin: 0;
}

.confirm-popup__message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary, var(--color-slate-200-a85));
}

.confirm-popup__actions {
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.confirm-popup__btn {
    min-width: 150px;
    font-weight: 600;
    border-radius: 999px;
    padding: 12px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.confirm-popup__btn--confirm {
    background: var(--btn-dark, var(--color-midnight-900));
    color: var(--white);
    border: none;
    box-shadow: 0 12px 24px var(--color-midnight-900-a22);
}

.confirm-popup__btn--confirm:hover,
.confirm-popup__btn--confirm:focus {
    background: var(--btn-dark-hover, var(--color-slate-950));
    transform: translateY(-1px);
    box-shadow: 0 16px 28px var(--color-slate-950-a28);
}

.confirm-popup__btn--cancel {
    background: transparent;
    color: var(--text-secondary, var(--color-slate-200-a85));
    border: 1px solid var(--border-subtle, var(--color-slate-400-a25));
    box-shadow: none;
}

.confirm-popup__btn--cancel:hover,
.confirm-popup__btn--cancel:focus {
    color: var(--text-primary, var(--color-slate-50));
    border-color: var(--color-slate-400-a45);
    background: var(--color-slate-400-a08);
}

.auth-required-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.auth-required-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, var(--color-ffffff));
}

.auth-required-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-required-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    min-width: 120px;
}

.auth-required-btn--login {
    background: var(--color-4f46e5);
    color: var(--color-ffffff);
}

.auth-required-btn--login:hover,
.auth-required-btn--login:focus {
    background: var(--color-305afe);
    color: var(--color-ffffff);
}

.auth-required-btn--register {
    border: 1px solid var(--rgba-38);
    color: var(--black);
    background: var(--hover-bg-color);
}

.auth-required-btn--register:hover,
.auth-required-btn--register:focus {
    background: var(--black);
    color: var(--white);
}


/* Live popup specific tweaks (no inline styles) */

.live-popup {
    max-width: 640px;
}

.live-create {
    padding: 28px 24px 16px;
}

.live-icon {
    margin-bottom: 18px;
}

.live-title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 6px;
}

.live-desc {
    justify-content: center;
    text-align: center;
    margin-bottom: 16px;
}

.live-input-holder {
    width: 100%;
    max-width: 420px;
}

.live-input-holder+.live-input-holder {
    margin-top: 14px;
}

.live-audience-title {
    margin-bottom: 8px;
    text-align: center;
}

.live-select {
    width: 100%;
    overflow: visible;
    position: relative;
}

.live-select-toggle {
    width: 100%;
    justify-content: space-between;
}

.live-select-toggle .chev {
    margin-left: 8px;
}

.audience-menu {
    list-style: none;
    margin: 6px 0 0;
    padding: 6px 0;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-elevated);
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 5;
}

.audience-option {
    padding: 10px 12px;
    cursor: pointer;
}

.audience-option:hover {
    background: var(--hover-bg-color);
}


/* Audience sheet (Instagram-like) */

.aud-sheet-container {
    width: 100%;
    max-width: 420px;
    padding: 12px;
}

.aud-sheet {
    background: var(--bg-elevated);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.aud-item {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
}

.aud-item:hover {
    background: var(--hover-bg-color);
}

.aud-sep {
    height: 1px;
    background: var(--border-subtle);
}

.aud-cancel {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: var(--bg-elevated);
    border: none;
    border-radius: 14px;
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.aud-cancel:hover {
    background: var(--hover-bg-color);
}


/* Live page layout */

.pad-24 {
    padding: 24px;
}

.live-header {
    padding: 14px 16px;
    gap: 12px;
}

.live-subtext {
    font-size: 12px;
    opacity: .7;
}

.live-owner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ml-6 {
    margin-left: 6px;
}

.live-stage {
    padding: 12px 16px;
}

.live-player {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
}

.live-video-host {
    position: absolute;
    inset: 0;
}

.live-player-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.live-muted {
    opacity: .8;
}

.max-860 {
    max-width: 860px;
    width: 100%;
}

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

.btn-danger {
    background: var(--danger-alt);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.text-center {
    text-align: center;
}


/* Top-right chips over the player */

.live-chips {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 6;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: var(--shadow-4-12-20);
}

.chip .icon svg,
.chip .icon img {
    width: 16px;
    height: 16px;
    display: block;
}

.chip-blue {
    background: var(--accent);
}

.chip-blue:hover {
    background: var(--accent-hover);
}

.chip-red {
    background: var(--danger-alt);
}

.chip-red:hover {
    background: var(--danger-hover);
}


/* Meta block under video */

.live-meta {
    padding: 12px 0 0;
}

.live-title-bar {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 12px 0;
}

.channel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.channel-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.channel-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
}

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

.channel-name {
    font-weight: 700;
    color: var(--text-dark);
}

.channel-sub {
    font-size: 12px;
    color: var(--text-gray);
}

.channel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--hover-bg-color);
    color: var(--text-dark);
    font-weight: 600;
}

.stat-chip svg,
.stat-chip img {
    width: 16px;
    height: 16px;
}

.follow-btn {
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--hover-bg-color);
    font-weight: 500;
    color: var(--text-dark);
}

.donate-btn {
    padding: 6px 14px;
    border-radius: 10px;
    background: var(--button-blue-color);
    color: var(--white);
    font-weight: 500;
}

.donate-btn:hover {
    background: var(--accent-hover);
}


/* clickable stat chip */

.stat-chip.clickable {
    cursor: pointer;
}

.stat-chip.clickable:hover {
    filter: brightness(0.98);
}


/* Live two-column layout (YouTube-like) */

.live-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 16px;
    padding: 0 16px 24px;
}

.live-left {
    min-width: 0;
}

.live-right {
    min-width: 0;
}

.live-right.sticky {
    position: sticky;
    align-self: start;
    height: 100%;
}

.live-player--wide {
    aspect-ratio: 16 / 9;
}


/* Live like button + flying hearts (bottom-right) */

.live-like-ctrl {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    z-index: 5;
}

.live-like-btn {
    pointer-events: auto;
    background: var(--rgba-38);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.live-like-btn:hover {
    background: var(--white-18);
}

.live-like-count {
    min-width: 28px;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    text-shadow: 0 1px 2px var(--rgba-62);
}

.live-heart-stream {
    position: absolute;
    right: 4px;
    bottom: 64px;
    /* above button */
    width: 120px;
    height: 0;
    /* we position children absolutely */
    pointer-events: none;
    overflow: visible;
}

.live-tip-stream {
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: 60%;
    max-width: 520px;
    pointer-events: none;
    z-index: 9999;
}

.tip-toast {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rgba-35);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 10px;
    margin-top: 8px;
    transform: translateY(10px);
    opacity: 0;
    animation: tipToastIn .25s ease forwards;
}

.tip-toast .tip-name {
    font-weight: 700;
}

.tip-toast .tip-amount {
    font-weight: 800;
}

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


/* Simple confetti */

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 12px;
    opacity: .9;
    will-change: transform, opacity;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: .95;
    }
    100% {
        transform: translateY(260px) rotate(720deg);
        opacity: 0;
    }
}

.live-heart-stream .f-heart {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22px;
    height: 22px;
    opacity: 0.95;
    animation: liveHeartUp var(--dur, 1600ms) ease-in forwards;
    transform: translate(0, 0) scale(var(--scale, 1));
}

.live-heart-stream .f-heart svg,
.live-heart-stream .f-heart img {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes liveHeartUp {
    0% {
        transform: translate(0, 0) scale(0.9);
        opacity: .95;
    }
    25% {
        transform: translate(calc(var(--tx, -16px) * .35), -60px) scale(1);
    }
    60% {
        transform: translate(calc(var(--tx, -16px) * .75), -125px) scale(1.05);
        opacity: .9;
    }
    100% {
        transform: translate(var(--tx, -16px), -180px) scale(1.1);
        opacity: 0;
    }
}

.live-chat {
    background: var(--bg-elevated);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.live-chat-header {
    padding: 12px 14px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-subtle);
}

.live-chat-body {
    padding: 12px 14px;
    overflow-y: auto;
    max-height: 65vh;
    min-height: 360px;
}

.live-chat-msg {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.live-chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 28px;
}

.live-chat-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.live-chat-msg .from {
    font-weight: 600;
    margin-right: 6px;
}

.live-chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.live-chat-input .text-field {
    flex: 1 1 auto;
    min-width: 0;
}

.live-chat--disabled {
    justify-content: flex-start;
    padding-bottom: 18px;
    height: auto;
}

.live-chat-disabled-copy {
    padding: 12px 14px 18px;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.create_media_box {
    width: 100%;
    height: 100%;
    padding: 200px 0px;
    gap: 20px;
    font-weight: 500;
    font-size: 17px;
}

.icon_upload {
    color: var(--svg-color);
}

.create_media_box svg,
.create_media_box img {
    width: 60px;
    height: 60px;
}

.crop-container {
    width: 100%;
    height: 100%;
    display: none;
}

.crop-frame {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.crop-image {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.crop-image img {
    position: absolute;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    transition: transform 0.2s;
}

.crop-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crop-controls button {
    width: 30px;
    height: 30px;
    background-color: var(--rgba-10);
    border: none;
    color: var(--white);
    padding: 10px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999999999;
    background-image: linear-gradient(to right, var(--white-30) 1px, transparent 1px), linear-gradient(to bottom, var(--white-30) 1px, transparent 1px);
    background-size: 33.33% 100%, 100% 33.33%;
}


/* Profile – lightweight crop frame variants */

.pcrop-frame--square {
    aspect-ratio: 1 / 1;
}

.pcrop-frame--wide {
    aspect-ratio: 16 / 9;
}


/* Cover safe-area (YouTube channel art guide) */

.pcrop-safe {
    position: absolute;
    box-sizing: border-box;
    border: 2px dashed var(--white-80);
    background: var(--white-04);
    pointer-events: none;
    z-index: 2;
}


/* Cover cropping viewport confined to safe-area only */

.pcrop-viewport {
    position: absolute;
    overflow: hidden;
    z-index: 1;
}


/* Settings – Profile hero */

.profile-hero {
    position: relative;
    margin: 12px 0 72px;
    width: 100%;
}

.profile-hero .hero-cover {
    position: relative;
    border-radius: 16px;
    overflow: visible;
    background: var(--bg-muted);
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-8-24-10);
    max-height: 240px;
    width: 100%;
}

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

.profile-hero .hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--rgba-0) 65%, var(--rgba-black-28));
    opacity: 0;
    transition: opacity .15s ease;
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
}

.profile-hero .hero-cover:hover::after {
    opacity: 1;
}

.profile-hero .hero-edit-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rgba-55);
    color: var(--white);
    border: 1.5px solid var(--white-90);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, opacity .15s ease;
    opacity: 0;
    z-index: 2;
}

.profile-hero .hero-cover:hover .hero-edit-btn,
.profile-hero .hero-edit-btn:focus-visible {
    opacity: 1;
}

.profile-hero .hero-edit-btn:hover {
    transform: scale(1.05);
    background: var(--rgba-black-65);
}

.profile-hero .hero-edit-btn span {
    display: none;
}

.profile-hero .hero-edit-btn svg,
.profile-hero .hero-edit-btn img {
    width: 18px;
    height: 18px;
    color: var(--white);
}

.profile-hero .hero-safe {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    aspect-ratio: 1546 / 423;
    border-top: 2px dashed var(--white-95);
    border-bottom: 2px dashed var(--white-95);
    display: none;
    pointer-events: none;
}

.profile-hero.is-show-guides .hero-safe {
    display: block;
}

.profile-hero .hero-cover .hero-avatar {
    position: absolute;
    left: 50%;
    bottom: -58px;
    transform: translateX(-50%);
    width: 116px;
    height: 116px;
    border-radius: 50%;
    border: 4px solid var(--bg-elevated);
    overflow: hidden;
    background: var(--bg-muted);
    box-shadow: 0 8px 24px var(--rgba-black-18);
    z-index: 5;
}

.profile-hero .hero-cover .hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-hero .hero-cover .hero-avatar .hero-edit-btn {
    width: 34px;
    height: 34px;
    inset: 0;
    margin: auto;
    opacity: 1;
    border-width: 1px;
    background: var(--rgba-62);
}

@media (hover: none) and (pointer: coarse) {
    .profile-hero .hero-edit-btn {
        opacity: 1;
    }
}


/* Hide hero safe guides and toggle if present */

.profile-hero .hero-safe,
.hero-toggles {
    display: none !important;
}


/* ============ Settings Profile (remove inline styles) ============ */

.settings-profile {
    gap: 16px;
}

.settings-section-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.sp-form {
    gap: 14px;
    max-width: 680px;
}

.sp-field {
    gap: 6px;
}

.sp-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.sp-actions {
    justify-content: flex-start;
    gap: 10px;
}

.sp-hint {
    margin-top: 4px;
    color: var(--text-gray);
}


/* Generic placeholder for empty settings pages */

.settings-placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 26px 28px;
    padding-left: 40px;
    background: var(--bg-elevated, #fff);
    border: 1px dashed var(--border-subtle, rgba(15, 23, 42, 0.12));
    border-radius: 18px;
}

.settings-placeholder::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 18px;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--button-blue-color, #0ea5e9), var(--color-4f86f7, #6366f1));
    opacity: 0.85;
}

.settings-placeholder > * {
    position: relative;
    z-index: 1;
}

.settings-placeholder .title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark, var(--color-1a1a1a));
    line-height: 1.4;
}

.settings-placeholder .desc {
    color: var(--text-gray, rgba(71, 85, 105, 0.95));
    font-size: 15px;
    line-height: 1.7;
    max-width: 640px;
}

.settings-placeholder .desc a {
    color: var(--button-blue-color, #0ea5e9);
    text-decoration: none;
    font-weight: 600;
}

.settings-placeholder .desc a:hover,
.settings-placeholder .desc a:focus {
    text-decoration: underline;
}

.settings-prompt-list {
    margin: 4px 0 0;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-gray);
}

.settings-prompt-list li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.crop_setting_buttons {
    position: absolute;
    left: 10px;
    top: 10px;
    gap: 10px;
    z-index: 99;
}

.filter-container {
    position: relative;
}

.filter-wrapper {
    position: relative;
    display: inline-block;
}

.open-filters {
    padding: 10px;
    background: var(--rgba-35);
    border-radius: 8px;
    font-size: 20px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    color: var(--svg-color);
}

.open-filters img,
.open-filters svg {
    width: 20px;
    height: 20px;
}

.filter-buttons {
    position: absolute;
    top: -40px;
    left: 45px;
    background: var(--rgba-35);
    border-radius: 16px;
    box-shadow: var(--shadow-8-24-10);
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 200px;
    z-index: 99;
    overflow: hidden;
}

.filter-buttons.hidden {
    display: none;
}

.filter-buttons .filter-btn {
    all: unset;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 15px;
    color: var(--white);
}

.filter-buttons .filter-btn:hover {
    background-color: var(--rgba-38);
}

.filter-buttons .filter-btn.active {
    background-color: var(--rgba-38);
    font-weight: 500;
}

.filter-buttons .filter-btn.delete {
    color: var(--white);
}

.filter-buttons .filter-btn.delete:hover {
    background-color: var(--rgba-38);
}

.upload-btn {
    padding: 10px 18px;
    background-color: var(--button-blue-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.upload-btn:hover {
    background-color: var(--accent-hover);
}

.upload-text {
    font-family: var(--fontApple);
    margin-top: 10px;
    font-size: 17px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
}

.original_view {
    z-index: 99;
    color: var(--white);
    top: 60px;
    left: 10px;
}

.original_view button {
    padding: 8px;
    border: none;
    outline: none;
    border-radius: 8px;
    background-color: var(--rgba-35);
    color: var(--white);
    cursor: pointer;
}

.original_view button svg,
.original_view button img {
    width: 25px;
    height: 25px;
}

.restove_view {
    z-index: 99;
    color: var(--white);
    top: 140px;
    left: 10px;
}

.restove_view button {
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 8px;
    background-color: var(--rgba-35);
    color: var(--white);
    cursor: pointer;
}

.restove_view button svg,
.restove_view button img {
    width: 20px;
    height: 20px;
}

.prev_button,
.next_button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    color: var(--white);
    z-index: 1;
    background-color: var(--rgba-35);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    border: none;
    cursor: pointer;
}

.prev_button svg,
.prev_button img,
.next_button svg,
.next_button img {
    width: 15px;
    height: 15px;
}

.prev_button {
    left: 5px;
}

.next_button {
    right: 5px;
}

.fileInputMore {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 99;
}

.add-more-btn {
    padding: 11px;
    background-color: var(--rgba-35);
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
}

.add-more-btn svg,
.add-more-btn img {
    width: 18px;
    height: 18px;
}

.goNext,
.finishPost {
    outline: none;
    margin-left: auto;
    font-weight: 600;
    font-size: 15px;
    color: var(--blue);
    border: 0px;
    background-color: transparent;
    cursor: pointer;
    /* Prevent label from breaking into two lines (e.g., "Go Live") */
    white-space: nowrap;
}

.goNext.disabled {
    color: var(--text-gray);
    opacity: .5;
    cursor: not-allowed;
}

.goBack {
    outline: none;
    margin-left: 0px;
    font-weight: 600;
    font-size: 15px;
    color: var(--blue);
    border: 0px;
    background-color: transparent;
    cursor: pointer;
}

.crop-finish-and-post,
.finish_video_container {
    width: 100%;
    padding: 15px;
    gap: 25px;
}
.finish_podcast_container {
    width: 100%;
    padding: 15px;
    gap: 25px;
}
.podcast-category-box {
    width: 100%;
}
.podcast-category-box .setting-row {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.podcast-category-box .advanced_settings_title {
    width: 100%;
    font-weight: 600;
    color: var(--text-primary);
    justify-content: flex-start;
}
.podcast-category-box .advanced_settings_input {
    width: 100%;
    flex-direction: column;
}
.podcast-category-box .podcast-category-select {
    width: 100%;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    padding: 10px 48px 10px 14px;
    border: 1px solid var(--border-subtle);
    background-color: var(--input-bg, var(--bg-color));
    color: var(--text-primary, var(--text-dark));
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: background 0.25s ease, box-shadow 140ms ease, border-color 140ms ease, color 140ms ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, var(--text-muted, #6b7280) 50%),
      linear-gradient(135deg, var(--text-muted, #6b7280) 50%, transparent 50%),
      linear-gradient(to right, transparent, transparent);
    background-position:
      right 18px center,
      right 12px center,
      right 42px center;
    background-size: 8px 8px, 8px 8px, 1px 50%;
    background-repeat: no-repeat;
    max-width: 300px;
}
.podcast-category-box .podcast-category-select:hover {
    border-color: var(--border-strong, #d0d5dd);
    background-color: var(--card-bg, #f8fafc);
}
.podcast-category-select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.podcast-category-empty {
    font-size: 13px;
    color: var(--text-muted);
}

.post-text {
    width: 100%;
    position: relative;
    padding: 10px 20px;
    font-weight: 400;
    font-size: 16px;
}

.post-title {
    width: 100%;
    position: relative;
    padding: 10px 20px 0;
}

.create_title {
    border: 2px solid var(--border-subtle);
    background: var(--input-bg);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 650;
    outline: none;
    border-radius: 15px;
    padding: 12px 15px;
    min-height: 48px;
}

.ads-post-text {
    width: 100%;
    position: relative;
    font-weight: 400;
    font-size: 16px;
}

.create_text {
    border: 2px solid var(--border-subtle);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
    resize: none;
    border-radius: 15px;
    padding: 15px;
    min-height: 125px;
}


/* Generic single-line text input for popups */

.text-field {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--border-subtle);
    padding: 12px 14px;
    background: var(--input-bg);
    color: var(--text-primary);
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    outline: none;
}

.text-field::placeholder {
    color: var(--text-gray);
}

.text-field:focus {
    border-color: #000;
}


/* Ensure live-create overrides base padding */

.create_media_box.live-create {
    padding: 28px 24px 56px !important;
}

.advanced_settings_box {
    gap: 15px;
}


/* Visibility pills row: wrap and center on small screens */

.advanced_settings_box .visibility-options {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    row-gap: 10px;
}

.post-settings-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-gray);
}

.advanced_settings_title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.advanced_sttings_switch {
    margin-left: auto;
}


/* Setting row: title left, switch right; stack and center switch on mobile */

.advanced_settings_box .setting-row {
    flex-wrap: wrap;
}


/* Prevent iOS Safari auto-zoom on form fields by ensuring >=16px font on small screens */

.advanced_settings_description {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    text-align: center;
    width: 100%;
}
.create_media_box .advanced_settings_description {
    text-align: center;
    justify-content: center;
}

.post-visiblity {
    border-radius: 30px;
    -webkit-border-radius: 30px;
    padding: 8px 12px;
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s ease;
    cursor: pointer;
}

.post-visiblity.active {
    background-color: var(--hover-bg-color);
}

.post-visiblity:hover {
    background-color: var(--hover-bg-color);
}

.svg_ {
    color: var(--text-dark);
}

.svg_ svg,
.svg_ img {
    width: 20px;
    height: 20px;
}

.post-price {
    font-weight: 600;
}

.set-price-popup {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--rgba-10);
    z-index: 99999;
}

.set-price-popup-container {
    width: 100%;
    max-width: 450px;
    background-color: var(--bg-elevated);
    border-radius: 15px;
    -webkit-border-radius: 15px;
}

.set-price-popup-title {
    width: 100%;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.set-price-container {
    padding: 15px;
}

.set-price-area {
    width: 100%;
}

.set-price {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--border-subtle);
    padding: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    padding-left: 35px;
    outline: none;
}

.set-price:focus {
    border: 2px solid var(--black);
    outline: none;
    box-shadow: none;
}

.price_svg {
    position: absolute;
    padding: 11px 0px 0px 10px;
    left: 0px;
    top: 0px;
    z-index: 1;
    color: var(--text-gray);
}

.price_svg svg,
.price_svg img {
    width: 20px;
    height: 20px;
}

.form-warning {
    font-weight: 600;
    color: var(--warning) !important;
}

.set-price-footer {
    padding: 8px 10px;
}

.set-price-clear {
    margin-left: 0px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 15px;
    color: var(--white);
    border-radius: 30px;
    -webkit-border-radius: 30px;
    box-shadow: var(--box-shadow);
    background-color: var(--cancel-button);
    cursor: pointer;
}

.set-price-done {
    padding: 8px 18px;
    font-weight: 600;
    font-size: 15px;
    color: var(--white);
    border-radius: 30px;
    -webkit-border-radius: 30px;
    box-shadow: var(--box-shadow);
    background-color: var(--button-blue-color);
    margin-left: auto;
    cursor: pointer;
}

.original_view:hover,
.add-more-btn:hover,
.restove_view:hover,
.open-filters:hover,
.goNext:hover,
.finishPost:hover,
.set-price-done:hover,
.set-price-clear:hover,
.close_pop:hover {
    opacity: 0.8;
}

.close_pop {
    top: 10px;
    right: 10px;
    z-index: 99;
    color: var(--blue);
    border: none;
}

.click_box_header .close_pop {
    position: static;
    margin-left: auto;
    background: transparent;
    padding: 0;
}

.close_pop svg,
.close_pop img {
    width: 18px;
    height: 18px;
}

.close_pop {
    outline: none;
    margin-left: auto;
    font-weight: 600;
    font-size: 15px;
    color: var(--blue);
    border: 0px;
    background-color: transparent;
    cursor: pointer;
    white-space: nowrap;
    padding-left: 10px !important;
}


/***************************************/


/*************MAIN CONTENT**************/


/***************************************/

.main-content {
    flex: 1 1 0%;
    min-width: 0;
    width: auto;
    padding: 15px;
    box-sizing: border-box;
}

.content-area {
    width: 100%;
    height: 100%;
    min-width: 0;
}

.content-left {
    width: 100%;
    max-width: 70%;
    height: 100%;
}

.content-left-container {
    width: 100%;
    max-width: 700px;
    margin: 0px auto;
}


/* Mobile: remove outer padding for edge-to-edge look */


/* Responsive: hide sidebars and use off-canvas drawers on mobile */


/* Mobile overlay */

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--rgba-53);
    z-index: 1990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mobile-overlay.show,
body.mobile-left-open .mobile-overlay,
body.mobile-right-open .mobile-overlay {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    z-index: 2100;
    padding: 7px;
}

.mobile-drawer-close:focus-visible,
.mobile-drawer-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.mobile-template-host {
    display: none;
}

.post_ {
    border-radius: 15px;
    background-color: var(--bg-elevated);
    overflow: hidden;
}

.post_header {
    padding: 12px;
}

.post_owner_avatar {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
}

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

.post-owner-data {
    flex: 1 1 auto;
    min-width: 0;
    gap: 3px;
}

.post-owner-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    column-gap: 5px;
}

.post-owner-name a {
    color: var(--text-dark);
    text-decoration: none;
}

.post-owner-name a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.post-owner-name-img {
    color: var(--verified-color);
}

.post-owner-name svg,
.post-owner-name img {
    width: 15px;
    height: 15px;
}

.post-share-time {
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 400;
}

.walletTopup.icon_button {
    position: relative;
}

.walletTopup.icon_button svg,
.walletTopup.icon_button img {
    width: 20px;
    height: 20px;
}

.post-settings-btn-box {
    flex: 0 0 auto;
    min-width: 45px;
    margin-left: auto;
}

.post-settings-btn {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    transition: background 0.3s ease;
    cursor: pointer;
    color: var(--svg-color);
}

:root[data-theme="dark"] .post-settings-btn,
html.theme-dark .post-settings-btn,
body.theme-dark .post-settings-btn {
    background: var(--color-slate-900-a15);
    color: var(--svg-color);
}

.post-settings-btn svg,
.post-settings-btn img {
    width: 18px;
    height: 18px;
}

.post-settings-btn:hover {
    background-color: var(--hover-bg-color);
}

:root[data-theme="dark"] .post-settings-btn:hover,
html.theme-dark .post-settings-btn:hover,
body.theme-dark .post-settings-btn:hover {
    background-color: var(--color-slate-900-a35);
}


/* Post settings popup (sheet-style) */

.pm-message {
    padding: 15px;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
}

.post-menu-popup {
    position: fixed;
    inset: 0;
    background: var(--rgba-10);
    z-index: 2147482000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-sheet-container {
    width: 100%;
    max-width: 420px;
    padding: 12px;
}

.pm-sheet {
    background: var(--bg-elevated);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.pm-item {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
}

.pm-item.is-danger {
    color: var(--danger);
}

.pm-item:hover {
    background: var(--hover-bg-color);
}

.pm-item.is-disabled,
.pm-item[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
}

.language-switch-wait {
    margin: 12px auto 0;
    padding: 10px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--hover-bg-color);
    border-radius: 12px;
}

.language-switch-wait[hidden] {
    display: none;
}

.pm-sep {
    height: 1px;
    background: var(--border-subtle);
}

.pm-cancel {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: var(--bg-elevated);
    border: none;
    border-radius: 14px;
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.pm-cancel:hover {
    background: var(--hover-bg-color);
}


/* Post & Comment report reasons popup (sheet-style) */

.post-report-popup,
.comment-report-popup {
    position: fixed;
    inset: 0;
    background: var(--rgba-10);
    z-index: 2147482001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-sheet-container,
.cr-sheet-container {
    width: 100%;
    max-width: 480px;
    padding: 12px;
}

.pr-sheet,
.cr-sheet {
    background: var(--bg-elevated);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.pr-header,
.cr-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--bg-color);
}

.pr-title,
.cr-title {
    font-weight: 800;
    font-size: 16px;
    color: var(--text-dark);
    text-align: center;
}

.pr-sub,
.cr-sub {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-gray);
    text-align: center;
}

.pr-list,
.cr-list {
    display: block;
    max-height: 56vh;
    overflow-y: auto;
}

.pr-item,
.cr-item {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-dark);
    cursor: pointer;
}

.pr-item:hover,
.cr-item:hover {
    background: var(--hover-bg-color);
}

.pr-sep,
.cr-sep {
    height: 1px;
    background: var(--border-subtle);
}

.pr-cancel,
.cr-cancel {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: var(--bg-elevated);
    border: none;
    border-radius: 14px;
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.pr-cancel:hover,
.cr-cancel:hover {
    background: var(--hover-bg-color);
}


/* Post visibility popup (owner) */

.post-visibility-popup {
    position: fixed;
    inset: 0;
    background: var(--rgba-10);
    z-index: 2147482001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pv-sheet-container {
    width: 100%;
    max-width: 480px;
    padding: 12px;
}

.pv-sheet {
    background: var(--bg-elevated);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.pv-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--bg-color);
}

.pv-title {
    font-weight: 800;
    font-size: 16px;
    color: var(--text-dark);
    text-align: center;
}

.pv-sub {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-gray);
    text-align: center;
}

.pv-list {
    display: block;
    max-height: 56vh;
    overflow-y: auto;
}

.pv-item {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-dark);
    cursor: pointer;
}

.pv-item:hover {
    background: var(--hover-bg-color);
}

.pv-item.is-active {
    background: var(--hover-bg-color);
}

.pv-sep {
    height: 1px;
    background: var(--border-subtle);
}

.pv-cancel {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: var(--bg-elevated);
    border: none;
    border-radius: 14px;
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.pv-cancel:hover {
    background: var(--hover-bg-color);
}


/* Premium price popup */

.post-price-popup {
    position: fixed;
    inset: 0;
    background: var(--rgba-10);
    z-index: 2147482002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-sheet-container {
    width: 100%;
    max-width: 420px;
    padding: 12px;
}

.pp-sheet {
    background: var(--bg-elevated);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.pp-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--bg-color);
}

.pp-title {
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    color: var(--text-dark);
}

.pp-sub {
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
    color: var(--text-gray);
}

.pp-body {
    padding: 14px 16px;
}

.pp-input {
    width: 100%;
    border: 2px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
    background: var(--input-bg);
    color: var(--text-primary);
}

.pp-input:focus {
    border-color: #000;
}

.pp-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-gray);
}

.pp-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

.pp-save {
    background: var(--btn-dark);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.pp-save:hover {
    opacity: .92;
}

.pp-cancel {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: var(--bg-elevated);
    border: none;
    border-radius: 14px;
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.pp-cancel:hover {
    background: var(--hover-bg-color);
}


/* Edit post popup */

.post-edit-popup,
.comment-edit-popup {
    position: fixed;
    inset: 0;
    background: var(--rgba-10);
    z-index: 2147482002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-embed-popup {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--rgba-10);
    z-index: 2147482002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pe-sheet-container,
.ce-sheet-container,
.cd-sheet-container {
    width: 100%;
    max-width: 520px;
    padding: 12px;
}

.pe-sheet,
.ce-sheet,
.cd-sheet {
    background: var(--bg-elevated);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.pe-header,
.ce-header,
.cd-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--bg-color);
}

.pe-title,
.ce-title,
.cd-title {
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    color: var(--text-dark);
}

.pe-sub,
.ce-sub,
.cd-sub {
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
    color: var(--text-gray);
}

.pe-body,
.ce-body {
    padding: 14px 16px;
}

.pe-text,
.ce-text {
    width: 100%;
    min-height: 120px;
    border: 2px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
    resize: vertical;
    background: var(--input-bg);
    color: var(--text-primary);
}

.pe-text::placeholder,
.ce-text::placeholder {
    color: var(--text-gray);
}

.pe-text:focus,
.ce-text:focus {
    border-color: #000;
}

.pe-actions,
.ce-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    gap: 10px;
}

.pe-save,
.ce-save {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.pe-save:hover,
.ce-save:hover {
    background: var(--btn-primary-hover-bg);
}

.pe-cancel,
.ce-cancel {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: var(--bg-elevated);
    border: none;
    border-radius: 14px;
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.pe-cancel:hover,
.ce-cancel:hover {
    background: var(--hover-bg-color);
}


/* Embed popup specifics */

.post-embed-popup .peb-code {
    width: 100%;
    min-height: 110px;
    border: 2px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    color: var(--text-dark);
    background: var(--input-bg);
    outline: none;
    resize: vertical;
}

.post-embed-popup .peb-code:focus {
    border-color: #000;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
    outline: none;
}

.post-embed-popup .peb-copy {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.post-embed-popup .peb-copy:hover {
    background: var(--btn-primary-hover-bg);
}

.post-embed-popup .peb-copy.is-copied {
    background: var(--green);
}

.post-embed-popup .peb-copy.is-copied::before {
    content: '✓';
    display: inline-block;
    font-weight: 900;
    margin-right: 6px;
}


/* ====== EMBED PAGE (no inline CSS) ====== */

.embed-page {
    background: var(--dark);
    color: var(--white);
    min-height: 100vh;
    overflow: hidden;
}

.embed-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

.embed-frame {
    width: min(100vw, 420px);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    margin: 0;
}

.embed-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-111);
    color: var(--color-f5f5f5);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-8-24-35);
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100%;
}

.embed-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 8px;
}

.embed-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid var(--white-08);
}

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

.embed-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.embed-uname {
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.embed-time {
    font-size: 12px;
    color: var(--color-bbb);
}

.embed-media {
    background: var(--dark);
    display: block;
    min-height: 0;
}

.embed-media img,
.embed-media video {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--dark);
    object-fit: contain;
}

.embed-body {
    display: none;
}

.embed-body a {
    color: var(--link-blue);
    text-decoration: none;
}

.embed-caption {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.embed-footer {
    padding: 8px 12px 12px;
    display: flex;
    justify-content: flex-end;
}

.embed-viewlink {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-weight: 800;
    border: none;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
}

.embed-viewlink:hover {
    background: var(--btn-primary-hover-bg);
}

.embed-placeholder {
    max-width: 90%;
    text-align: center;
    color: var(--color-ddd);
    font: 500 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, Helvetica, sans-serif;
}

.embed-brand {
    margin-top: 8px;
    font-size: 12px;
    opacity: .7;
}

.embed-owner {
    opacity: .8;
    font-size: 12px;
    margin-top: 4px;
}


/* Delete confirm popup */

.post-delete-popup,
.comment-delete-popup {
    position: fixed;
    inset: 0;
    background: var(--rgba-10);
    z-index: 2147482003;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-sheet-container,
.cd-sheet-container {
    width: 100%;
    max-width: 420px;
    padding: 12px;
}

.pd-sheet,
.cd-sheet {
    background: var(--bg-elevated);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.pd-header,
.cd-header {
    padding: 16px;
    border-bottom: 1px solid var(--bg-color);
    text-align: center;
}

.pd-title,
.cd-title {
    font-weight: 800;
    font-size: 16px;
    color: var(--text-dark);
}

.pd-sub,
.cd-sub {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-gray);
}

.pd-actions,
.cd-actions {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    justify-content: center;
}

.pd-actions .pd-confirm,
.cd-actions .cd-confirm {
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.pd-actions .pd-cancel,
.cd-actions .cd-cancel {
    background: var(--bg-elevated);
    color: var(--text-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.pd-actions .pd-confirm:hover,
.cd-actions .cd-confirm:hover {
    opacity: .92;
}

.pd-actions .pd-cancel:hover,
.cd-actions .cd-cancel:hover {
    background: var(--hover-bg-color);
}

.post-media-swiper {
    width: 100%;
    overflow: hidden;
}

.post-media-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rgba-2);
}

.post-media-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.post-media-swiper .swiper-pagination {
    bottom: 8px !important;
}

.post-media-swiper .swiper-pagination-bullet {
    opacity: 0.5;
}

.post-media-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}


/* Dear customer: These rules refine the look and click area of the nav buttons inside a post. */

.post-media-swiper .swiper-button-next,
.post-media-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rgba-35);
    backdrop-filter: blur(2px);
}

.post-media-swiper .swiper-button-next::after,
.post-media-swiper .swiper-button-prev::after {
    font-size: 16px;
    /* default is larger; feel free to adjust */
    color: var(--white);
}


/* Slight padding so buttons don’t stick to edges */

.post-media-swiper .swiper-button-prev {
    left: 8px;
}

.post-media-swiper .swiper-button-next {
    right: 8px;
}


/* Video container inside popup */

.set_video_container {
    width: 100%;
    background-color: var(--dark);
    min-height: 300px;
    max-width: 100%;
    max-height: calc(100vh - 160px);
    /* Account for header and bottom spacing */
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.set_video_container .loading-container {
    border-radius: 0px;
    -webkit-border-radius: 0px;
}


/* Video stage */

.video-edit-stage {
    width: 100%;
    height: fit-content;
    max-width: 600px;
    /* Adjust to popup content */
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Video element */

.edit-video {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    background: var(----color-000);
    object-fit: contain;
    /* Prevent overflow; preserve aspect ratio */
}


/* Set video container acts as positioning context for absolute controls */

.set_video_container {
    position: relative;
    overflow: hidden;
    /* prevent overflow */
}


/* Controls bar pinned to bottom, full-width overlay */

.ve-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 12px 14px;
    box-sizing: border-box;
    background: linear-gradient( 180deg, var(--rgba-0) 0%, var(--rgba-55) 40%, var(--rgba-80) 100%);
    color: var(--color-fff);
}


/* Timeline strip */

.ve-timeline {
    user-select: none;
}

.ve-track {
    position: relative;
    height: 36px;
    background: var(--black);
    /* until frames load */
}

.ve-canvas {
    display: block;
    width: 100%;
    height: 100%;
}


/* Range visuals */

.ve-shade {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--rgba-35);
    pointer-events: none;
}

.ve-shade-left {
    left: 0;
    width: 0;
}

.ve-shade-right {
    right: 0;
    left: auto;
}

.ve-range-outline {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 10px;
    pointer-events: none;
}


/* Handles */

.ve-handle {
    position: absolute;
    top: 0;
    width: 10px;
    height: 100%;
    border-radius: 6px;
    cursor: ew-resize;
    background: var(--color-fff);
    border: 1px solid var(--color-111);
    box-shadow: 0 0 0 2px var(--rgba-8);
}

.ve-handle-start {
    left: 0;
}

.ve-handle-end {
    right: 0;
}


/* Ticks + fields */

.ve-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--white-85);
    margin-top: 6px;
}

.ve-fields {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.ve-label {
    font-size: 12px;
    color: var(--white-90);
    width: 100%;
}

.ve-fields input[type='number'] {
    width: 90px;
    padding: 6px 8px;
    border: 1px solid var(--white-25);
    background: var(--rgba-25);
    color: var(--color-fff);
    border-radius: 8px;
}

.ve-fields .ve-play-range {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--white-30);
    background: var(--rgba-35);
    color: var(--color-fff);
    cursor: pointer;
}

.ve-play-range svg {
    width: 18px;
    height: 18px;
}


/* Video fits the popup without overflow (earlier rule you added) */

.video-edit-stage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: var(--color-000);
    border-radius: 6px;
}

.ve-start-number,
.ve-end-number {
    display: none;
}


/* Marker class to fully hide native video UI */

.no-native-controls::-webkit-media-controls-enclosure {
    display: none !important;
}

.no-native-controls::-webkit-media-controls {
    display: none !important;
}

.no-native-controls::-webkit-media-controls-panel {
    display: none !important;
}

.no-native-controls::-webkit-media-controls-play-button {
    display: none !important;
}

.no-native-controls::-webkit-media-controls-start-playback-button {
    display: none !important;
}


/* Mac/iOS Safari fallback for overlay z-index issues: */

.no-native-controls {
    -webkit-touch-callout: none;
}


/* ==== Toast Genel ==== */

.ve-toast {
    position: fixed;
    /* If inside popup, you can use absolute */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    max-width: 90%;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 12px var(--rgba-15);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}


/* While toast is closing */

.ve-toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}


/* ==== Toast Renkleri ==== */

.ve-toast-error {
    background-color: var(--toast-error);
    color: var(--color-fff);
}

.ve-toast-success {
    background-color: var(--toast-success);
    color: var(--color-fff);
}

.ve-toast-info {
    background-color: var(--toast-info);
    color: var(--color-fff);
}


/* Toast content */

.ve-toast-body {
    word-break: break-word;
}

.ve-track,
.ve-handle {
    touch-action: none;
}


/* prevent page scroll during drag */

.ve-handle {
    position: absolute;
}

.ve-handle::before {
    content: '';
    position: absolute;
    top: -18px;
    bottom: -18px;
    left: -18px;
    right: -18px;
    /* invisible larger hit area */
}


/* Playhead line */

.ve-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-ffffff);
    border-radius: 1px;
    box-shadow: 0 0 0 2px var(--rgba-15);
    pointer-events: none;
}


/* Tick dots container (absolute dots under the track within a relative wrapper) */

.ve-tick-dots {
    position: relative;
    height: 10px;
    margin-top: 6px;
}

.ve-tick-dots .ve-dot {
    position: absolute;
    top: 0;
    width: 3px;
    height: 3px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--white-70);
}

.ve-playhead.is-hidden {
    opacity: 0;
}

.ve-playhead {
    transition: opacity 0.15s linear;
}

.post-footer-buttons {
    padding: 15px;
    column-gap: 8px;
}

.post-button-box {
    padding: 0px;
    column-gap: 5px;
}

.post-button-heart,
.post-button-comment,
.post-button-send,
.post-button-super-thanks {
    padding: 5px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    transition: background 0.3s ease;
}

.post-button-box:hover .post-button-heart,
.post-button-box:hover .post-button-comment,
.post-button-box:hover .post-button-send,
.post-button-box:hover .post-button-super-thanks {
    background-color: var(--hover-bg-color);
}

.p_like,
.p_comment,
.p_send,
.p_super_thanks,
.p_save,
.p_saved {
    color: var(--svg-color);
}

.p_super_thanks_live {
    color: var(--white);
}

.p_unlike {
    color: var(--post-like-color);
}

.p_like svg,
.p_unlike svg,
.p_comment svg,
.p_send svg,
.p_send img,
.p_super_thanks svg,
.p_save svg,
.p_saved svg,
.p_super_thanks img,
.p_comment img,
.p_unlike img,
.p_like img,
.p_save img,
.p_saved img,
.p_super_thanks_live svg,
.p_super_thanks_live img {
    width: 25px;
    height: 25px;
}

.total-like,
.total-comment,
.total-send {
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--fontApple);
    font-size: 13px;
}

.metric-label {
    padding-left: 3px;
}

.pm-header {
    font-weight: 600;
    font-size: 18px;
    padding: 10px;
    border-bottom: 1px solid var(--border-subtle);
}


/* Hide the text labels next to counts on small screens */

.post-button-box-super-thanks {
    padding: 0px 5px;
    padding-right: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.post-button-box-super-thanks:hover {
    background-color: var(--hover-bg-color);
}

.button-save {
    margin-left: auto;
}

.post-comments {
    padding: 0px 5px 0px 15px;
}

.post-comment {
    padding: 5px;
    margin-bottom: 10px;
}

.post-comment-owner-avatar {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    margin-right: 15px;
}

.post-comment-owner-avatar-container {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
}

.post-comment-owner-avatar-container img {
    width: 100%;
    height: 100%;
}

.comment-container {
    font-size: 13px;
    color: var(--text-dark);
    font-family: var(--fontApple);
}

.comment-container a {
    font-weight: 600;
    text-decoration: none;
    color: var(--text-dark);
}

.comment-container a span {
    margin-left: 0px !important;
}

.comment-container a img,
.comment-container a svg {
    width: 13px;
    height: 13px;
}

.comment-data {
    margin-top: 5px;
    column-gap: 5px;
    row-gap: 6px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-actions {
    display: flex;
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
    flex-wrap: wrap;
}

.comment-data-box {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-gray);
    font-family: var(--fontApple);
    opacity: 0.7;
    background: transparent;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.comment-data-box:focus {
    outline: none;
    opacity: 1;
}

.comment-data-box:disabled {
    pointer-events: none;
    opacity: 0.4;
}

.comment-time {
    font-weight: 300 !important;
}

.comment-like:hover,
.comment-reply:hover,
.comment-report:hover,
.comment-edit:hover,
.comment-delete:hover {
    color: var(--text-dark);
    opacity: 1;
}

.comment-report.is-reported {
    color: var(--accent, var(--button-blue-color));
    opacity: 1;
}

.comment-edited {
    font-size: 12px;
    color: var(--text-gray);
    opacity: 0.8;
}

.comment-edit-popup .ce-actions {
    justify-content: flex-end;
}

.c-like {
    padding: 8px;
    color: var(--svg-color);
}

.c-like svg,
.c-like img {
    width: 15px;
    height: 15px;
}

.make-comment {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0px;
    left: 0px;
    z-index: 99;
    background-color: var(--rgba-53);
}

.make-comment-area {
    padding: 8px;
    margin-top: auto;
    background-color: var(--bg-elevated);
    -webkit-border-top-left-radius: 15px;
    -webkit-border-top-right-radius: 15px;
    -moz-border-radius-topleft: 15px;
    -moz-border-radius-topright: 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}


/* Comment textareas: disable manual resize + prepare for auto-grow */

.textarea textarea {
    width: 100%;
    box-sizing: border-box;
    resize: none;
    overflow-y: hidden;
    min-height: 90px;
    max-height: 200px;
    line-height: 1.4;
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--fontApple);
}

.textarea textarea::placeholder {
    color: var(--text-gray);
}


/* Focus state for visual clarity */

.textarea textarea:focus {
    border-color: #000;
    outline: none;
    box-shadow: none;
}

.make-comment-emoji-list {
    margin-top: 8px;
    padding: 15px;
    background-color: var(--bg-color);
    border-radius: 15px;
    -webkit-border-radius: 15px;
    max-height: 200px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.make-comment-emoji-list .emoji {
    font-size: 30px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    border-radius: 50%;
    -webkit-border-radius: 50%;
}

.make-comment-emoji-list .emoji:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
    background-color: var(--hover-bg-color);
}

.make-comment-emoji-list h3 {
    font-size: 14px;
    position: sticky;
    top: -15px;
    padding: 8px 0px;
    background-color: var(--bg-color);
}

.make-comment-btns {
    padding: 0px 0px;
}

.make-comment-emojis {
    padding: 5px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    color: var(--text-gray);
    background-color: var(--bg-color);
}

.make-comment-emojis svg,
.make-comment-emojis img {
    width: 21px;
    height: 21px;
}

.make-comment-emojis:hover {
    background-color: var(--hover-bg-color);
}

.make-send-comment {
    margin-left: auto;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    background-color: var(--bg-color);
}

.make-send-comment:hover {
    background-color: var(--hover-bg-color);
}

.make-send-comment svg,
.make-send-comment img {
    width: 12px;
    height: 12px;
    margin-left: 2px;
}

.make-comment-area-top-arrow {
    padding: 0px 0px 5px 0px;
}

.top-arrow {
    max-width: 80px;
    height: 5px;
    background-color: var(--black);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    margin: 0px auto;
}

.post-comments-container {
    padding: 8px 14px 0;
}

.post-comments {
    align-items: stretch;
    gap: 10px;
    padding: 0;
}

.post-comment {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0;
}

.post-comment-owner-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin-right: 0;
}

.post-comment-owner-avatar-container {
    width: 34px;
    height: 34px;
    overflow: hidden;
}

.post-comment-owner-avatar-container img {
    object-fit: cover;
}

.comment-container {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.comment-bubble {
    max-width: 100%;
    padding: 9px 12px;
    border-radius: 15px;
    background: var(--bg-muted, #f0f2f5);
    color: var(--text-dark);
    line-height: 1.35;
}

.comment-container .comment-owner {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.25;
}

.comment-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.comment-data {
    justify-content: flex-start;
    margin-top: 0;
    padding-left: 2px;
    gap: 10px;
}

.comment-actions {
    gap: 10px;
}

.comment-data-box {
    min-height: 24px;
    border-radius: 999px;
    padding: 0 2px;
    font-weight: 650;
    opacity: 0.78;
}

.comment-data-box:hover {
    opacity: 1;
    color: var(--text-dark);
}

.c-like {
    margin-left: auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.c-like:hover {
    background: var(--hover-bg-color);
}

.make-comment {
    width: 100%;
    height: auto;
    position: relative;
    bottom: auto;
    left: auto;
    z-index: 2;
    background: transparent;
    padding: 8px 14px 14px;
}

.make-comment-area {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    -webkit-border-radius: 0;
}

.make-comment-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px 34px;
    align-items: center;
    column-gap: 8px;
    width: 100%;
}

.make-comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    align-self: center;
}

.make-comment-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.make-comment-input-shell {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
}

.make-comment .write-comment {
    width: 100%;
    height: 34px;
    min-height: 34px;
    max-height: 140px;
    box-sizing: border-box;
    resize: none;
    overflow-y: hidden;
    border: 1px solid transparent;
    border-radius: 17px;
    padding: 7px 14px;
    background: var(--bg-muted, #f0f2f5);
    color: var(--text-primary, #111827);
    font-family: var(--fontApple);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

.make-comment .write-comment:focus {
    border-color: var(--border-subtle, rgba(0,0,0,0.08));
    background: var(--bg-base, #fff);
    outline: none;
    box-shadow: none;
}

.make-comment-emojis,
.make-send-comment,
.comment-reply-cancel {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.make-comment-emojis,
.make-send-comment {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50%;
    padding: 0;
    align-self: center;
    flex: 0 0 34px;
    margin: 0;
    background: transparent;
}

.make-comment-emojis {
    color: var(--text-dark);
}

.make-send-comment {
    margin-left: 0;
    color: var(--text-dark);
}

.make-comment-emojis:hover,
.make-send-comment:hover {
    background-color: var(--hover-bg-color);
}

.make-send-comment:hover {
    color: var(--text-dark);
}

.make-comment-emojis svg,
.make-comment-emojis img,
.make-send-comment svg,
.make-send-comment img {
    width: 18px;
    height: 18px;
    margin: 0;
}

.make-emoji-wrapper {
    position: absolute;
    left: 0;
    right: auto;
    bottom: calc(100% + 10px);
    z-index: 50;
}

.make-comment-emoji-list {
    box-shadow: none;
    border: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
    width: min(320px, calc(100vw - 32px));
    max-height: 220px;
    overflow: auto;
}

.comment-reply-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px 44px;
    padding: 9px 10px 9px 12px;
    border-radius: 12px;
    background: var(--bg-muted, #f0f2f5);
    color: var(--text-dark);
}

.comment-reply-context__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    line-height: 1.2;
}

.comment-reply-context__text span {
    color: var(--text-gray);
    font-weight: 650;
}

.comment-reply-context__text strong {
    overflow: hidden;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-reply-cancel {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: var(--bg-base, #fff);
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 760;
}

.comment-reply-cancel:hover {
    background: var(--hover-bg-color);
}

:root[data-theme="dark"] .comment-bubble,
body.theme-dark .comment-bubble,
html.theme-dark .comment-bubble,
:root[data-theme="dark"] .make-comment .write-comment,
body.theme-dark .make-comment .write-comment,
html.theme-dark .make-comment .write-comment,
:root[data-theme="dark"] .comment-reply-context,
body.theme-dark .comment-reply-context,
html.theme-dark .comment-reply-context {
    background: #2b2b2b;
}

:root[data-theme="dark"] .make-comment .write-comment:focus,
body.theme-dark .make-comment .write-comment:focus,
html.theme-dark .make-comment .write-comment:focus {
    background: #202123;
}

:root[data-theme="dark"] .make-comment-emojis,
body.theme-dark .make-comment-emojis,
html.theme-dark .make-comment-emojis,
:root[data-theme="dark"] .make-send-comment,
body.theme-dark .make-send-comment,
html.theme-dark .make-send-comment {
    background: transparent;
    color: #f5f5f5;
}

:root[data-theme="dark"] .make-comment-emojis:hover,
body.theme-dark .make-comment-emojis:hover,
html.theme-dark .make-comment-emojis:hover,
:root[data-theme="dark"] .make-send-comment:hover,
body.theme-dark .make-send-comment:hover,
html.theme-dark .make-send-comment:hover {
    background: #2b2b2b;
    color: #f5f5f5;
}

:root[data-theme="dark"] .comment-reply-cancel,
body.theme-dark .comment-reply-cancel,
html.theme-dark .comment-reply-cancel {
    background: #202123;
    color: #f5f5f5;
}

@media (max-width: 560px) {
    .post-comments-container {
        padding: 8px 12px 0;
    }

    .make-comment {
        padding: 8px 12px 12px;
    }

    .make-comment-row {
        grid-template-columns: 34px minmax(0, 1fr) 34px 34px;
        align-items: center;
        gap: 7px;
    }

    .make-comment-avatar {
        width: 34px;
        height: 34px;
    }

    .make-comment-emojis,
    .make-send-comment {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        flex-basis: 34px;
    }

    .make-comment .write-comment {
        min-height: 34px;
        padding: 7px 12px;
        border-radius: 17px;
        font-size: 13px;
    }

    .comment-reply-context {
        margin-left: 40px;
    }
}

.content-right {
    width: 100%;
    max-width: 30%;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 100%;
}
.content-right.flex.align_items {
    align-items: stretch;
}

.post-media-single {
    width: 100%;
}

.post-media-single img {
    width: 100%;
    padding: 0px;
    margin: 0px;
    display: inline-block;
}

.visibility-warning {
    min-height: 300px;
}

.unlock-icon {
    /* Keep a stable box so text below doesn't jump */
    width: 90px;
    height: 90px;
    margin: 20px auto;
    /* vertical spacing without affecting inner stacking */
    color: var(--svg-color);
    position: relative;
}

.unlock-icon img,
.unlock-icon svg {
    width: 90px;
    height: 90px;
    display: block;
}


/* Stack both states on top of each other and fade between them */

.unlock-icon .locked,
.unlock-icon .unlock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .15s ease;
}

.unlock-icon .unlock {
    opacity: 0;
}


/* Post view: change only opacity, not layout */

.visibility-warning:hover .unlock-icon .locked {
    opacity: 0;
}

.visibility-warning:hover .unlock-icon .unlock {
    opacity: 1;
}


/* Grid tile overlay: button/overlay hover swaps opacity (no reflow) */

.tile-overlay--interactive:hover .unlock-icon .locked {
    opacity: 0;
}

.tile-overlay--interactive:hover .unlock-icon .unlock {
    opacity: 1;
}

.tile-overlay--interactive:has(.unlock-price:hover) .unlock-icon .locked {
    opacity: 0;
}

.tile-overlay--interactive:has(.unlock-price:hover) .unlock-icon .unlock {
    opacity: 1;
}

.post-media-video {
    position: relative;
}

.post-media-video video {
    width: 100%;
}

.feed-filter-bar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    margin-bottom: 14px;
    background: var(--bg-muted, var(--color-f0f2f5));
    border-radius: 14px;
    border: 1px solid var(--border-subtle, var(--rgba-11));
}

.feed-filter-button {
    flex: 1;
    min-width: 110px;
    border: none;
    background: transparent;
    color: var(--text-muted, #6b7280);
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.feed-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

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

.feed-filter-button.is-active {
    background: var(--surface, var(--white));
    color: var(--text-dark, #111827);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.feed-filter-button:focus {
    box-shadow: var(--focus);
}

.feed-filtered-out {
    display: none !important;
}

.feed-loading {
    width: 100%;
    min-height: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 12px;
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted, #6b7280);
    font-size: 13px;
    font-weight: 600;
}

.feed-loading__spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid var(--border-color, #dbe3ef);
    border-top-color: var(--text-dark, #111827);
    animation: feedSpin .8s linear infinite;
}

.feed-loading__label {
    line-height: 1;
}

.feed-empty-state {
    min-height: 280px;
    justify-content: center;
}

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

:root[data-theme="dark"] .feed-loading__spinner,
html.theme-dark .feed-loading__spinner,
body.theme-dark .feed-loading__spinner,
html[data-theme="dark"] .feed-loading__spinner,
body[data-theme="dark"] .feed-loading__spinner {
    border-color: rgba(255, 255, 255, .18);
    border-top-color: var(--text-dark, #f9fafb);
}

@media (max-width: 640px) {
    .feed-loading {
        min-height: 96px;
        padding: 22px 10px;
    }

    .feed-empty-state {
        min-height: 220px;
    }

    .feed-filter-bar {
        gap: 4px;
        padding: 5px;
    }

    .feed-filter-button {
        min-width: 90px;
        font-size: 12px;
        padding: 6px 8px;
    }
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 9 / 16;
    /* Keep aspect ratio in modern browsers */
    max-height: 80vh;
    /* Limit height to 80% of viewport */
    overflow: hidden;
    position: relative;
    background: var(--dark);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill while preserving aspect ratio (may crop) */
    display: block;
}

.video-wrapper--standard {
    aspect-ratio: 16 / 9;
    background: var(--bg-muted);
}

.video-wrapper--standard video {
    object-fit: contain;
    background: var(--dark);
}

.video-wrapper--standard::after,
.video-wrapper--standard.is-paused::after {
    display: none;
}

.video-wrapper--standard .video-sound-toggle,
.video-wrapper--standard .video-progress-bar,
.video-wrapper--standard .video-time-label {
    display: none;
}


/* Play Icon shown when video is paused */

.video-wrapper.is-paused::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: url('icons/play.svg') no-repeat center center;
    background-size: contain;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    opacity: 1;
}


/* Pause Icon shown when video is playing (optional) */

.video-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: url('icons/pause.svg') no-repeat center center;
    background-size: contain;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-wrapper.is-paused::after {
    opacity: 1;
}

.video-sound-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    background-color: var(--rgba-62);
    background-image: url('../css/icons/sound-off.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 16px 16px;
    z-index: 10;
    cursor: pointer;
    border: none;
    outline: none;
    padding: 5px;
    border-radius: 50%;
    box-sizing: content-box;
    opacity: 0.8;
}

.video-sound-toggle.sound-on {
    background-image: url('../css/icons/sound-on.svg');
}

.video-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background-color: var(--range-color-3);
    transition: width 0.25s linear;
    z-index: 4;
}

.video-time-label {
    position: absolute;
    bottom: 6px;
    left: 10px;
    font-size: 12px;
    color: var(--white);
    background: var(--rgba-10);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: sans-serif;
    z-index: 5;
}
.video-speed-control {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.video-speed-toggle {
    background: var(--rgba-62);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.video-speed-toggle:focus {
    box-shadow: var(--focus);
}

.video-speed-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.video-speed-toggle-icon svg {
    width: 12px;
    height: 12px;
}

.video-speed-menu {
    min-width: 150px;
    background: var(--rgba-10);
    color: var(--white);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-speed-control.is-open .video-speed-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.video-speed-menu-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    color: var(--white);
    opacity: 0.7;
}

.video-speed-option {
    width: 100%;
    background: transparent;
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    text-align: left;
}

.video-speed-option.is-active {
    background: var(--rgba-62);
}

.video-speed-option-suffix {
    font-size: 11px;
    opacity: 0.7;
}

.video-seek {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px 4px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
    border-radius: 10px;
    color: var(--white);
    font-size: 12px;
    z-index: 9;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-seek input.video-seek-range {
    flex: 1;
    width: 100%;
    cursor: pointer;
    height: 18px;
    padding: 0;
    margin: 0;
}

.video-seek input.video-seek-range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: var(--rgba-62);
}

.video-seek input.video-seek-range::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: -5px;
    background: var(--white);
    border: 1px solid var(--rgba-10);
}

.video-seek input.video-seek-range::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: var(--rgba-62);
}

.video-seek input.video-seek-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--rgba-10);
}

.video-seek input.video-seek-range::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: var(--range-color-3);
}

.video-seek input.video-seek-range::-ms-track {
    height: 4px;
    border-radius: 999px;
    background: var(--rgba-62);
}

.video-seek input.video-seek-range::-ms-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--rgba-10);
}

.video-seek-time {
    white-space: nowrap;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.video-wrapper--standard .video-speed-control {
    left: auto;
    right: 10px;
}

.video-wrapper--standard .video-seek {
    top: 10px;
    bottom: auto;
    right: 80px;
    background: var(--rgba-62);
    transform: translateY(-6px);
}

.video-wrapper:hover .video-seek,
.video-wrapper:focus-within .video-seek {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 640px) {
    .video-speed-toggle {
        font-size: 11px;
        padding: 5px 8px;
    }

    .video-speed-menu {
        min-width: 130px;
    }

    .video-seek {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 5px 8px;
        gap: 8px;
    }

    .video-wrapper--standard .video-seek {
        top: 8px;
        right: 68px;
    }
}


/***************************/


/*******POST LIKE***********/


/***************************/


/* ===================== LIKE HEART FX (SVG) ===================== */

.like-fx-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 3;
}


/* Overlay covering the whole post; centers heart */

.like-heart-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(0);
}

.like-heart-wrap.run {
    animation: heartFloat 1000ms ease-in forwards;
}


/* Fixed box for the heart to avoid clipping */

.like-heart-box {
    width: 130px;
    height: 130px;
}


/* Fit SVG to box (override inline width/height) */

.like-heart-svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
    transform: translateX(0);
    overflow: visible;
    /* <-- kesilmeyi engeller */
    will-change: transform, opacity;
}

.like-heart-sway {
    will-change: transform;
}


/* sway driven by JS */


/* Random tilt applied here (configured via JS var) */

.like-heart-tilt {
    transform-origin: 50% 60%;
    transform: rotate(var(--tilt, 0deg));
}


/* Bounce core */

.like-heart-core {
    transform-origin: 50% 60%;
    transform: scale(0.3) rotate(-2deg);
}

.like-heart-core.run {
    animation: heartBounce 480ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes heartBounce {
    0% {
        opacity: 0.9;
        transform: scale(0.3) rotate(-2deg);
    }
    40% {
        transform: scale(1.08) rotate(0deg);
    }
    65% {
        transform: scale(0.95) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes heartFloat {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-260px);
    }
    /* longer flight */
}

@keyframes heartSway {
    0% {
        transform: translateX(0);
    }
    16.6% {
        transform: translateX(12px);
        animation-timing-function: ease-in-out;
    }
    33.3% {
        transform: translateX(0);
        animation-timing-function: ease-in-out;
    }
    50% {
        transform: translateX(-12px);
        animation-timing-function: ease-in-out;
    }
    66.6% {
        transform: translateX(0);
        animation-timing-function: ease-in-out;
    }
    83.3% {
        transform: translateX(10px);
        animation-timing-function: ease-in-out;
    }
    100% {
        transform: translateX(0);
    }
}


/* Like button icons toggle */

.p_like .icon-liked {
    display: none;
}

.p_like .icon-unliked {
    display: inline-flex;
}

.p_like.is-liked .icon-liked {
    display: inline-flex;
    color: var(--post-like-color);
}

.p_like.is-liked .icon-unliked {
    display: none;
}


/* Toast positioning container */

.dz-toast-container {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 2147483000;
    /* above modals */
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    /* allow clicks through gaps */
}


/* Toast base */

.dz-toast {
    min-width: 160px;
    max-width: 360px;
    background: var(--toast-bg);
    color: var(--white);
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: var(--toast-shadow);
    font-size: 13px;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: auto;
    /* allow hover/copy if needed */
}


/* Enter/leave state */

.dz-toast.is-shown {
    opacity: 1;
    transform: translateY(0);
}


/* Variants */

.dz-toast.is-success {
    background: var(--toast-bg-success);
}

.dz-toast.is-error {
    background: var(--toast-bg-error);
}

.dz-toast.is-info {
    background: var(--toast-bg-info);
}

.dz-alert-dialog-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--rgba-53);
    z-index: 99999999999;
    padding: 16px;
}

.dz-alert-dialog-overlay.is-visible {
    display: flex;
}

.dz-alert-dialog {
    width: 100%;
    max-width: min(420px, 90vw);
    background: var(--bg-elevated);
    color: var(--text-color);
    border-radius: 16px;
    box-shadow: var(--box-shadow, 0 12px 45px rgba(15, 17, 20, 0.25));
    padding: 24px;
}

.dz-alert-dialog__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.dz-alert-dialog__message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.dz-alert-dialog__actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.dz-alert-dialog__btn {
    border: 0;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.dz-alert-dialog__btn--primary {
    background: var(--button-blue-color);
    color: var(--white);
}

.dz-alert-dialog__btn--primary:hover,
.dz-alert-dialog__btn--primary:focus-visible {
    background: var(--accent-hover);
}

.dz-alert-dialog__btn--ghost {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.dz-alert-dialog__btn--ghost:hover,
.dz-alert-dialog__btn--ghost:focus-visible {
    border-color: var(--primary-color, var(--button-blue-color));
    color: var(--primary-color, var(--button-blue-color));
}

.dz-alert-dialog--success .dz-alert-dialog__title {
    color: var(--alert-success-text);
}

.dz-alert-dialog--danger .dz-alert-dialog__title {
    color: var(--color-ff5c5c);
}

.dz-alert-dialog--warning .dz-alert-dialog__title {
    color: var(--color-fab429);
}

.dz-alert-dialog--info .dz-alert-dialog__title {
    color: var(--color-4f86f7);
}


/* Tips inline tooltip (single area inside tips modal) */

.tips-alert,
.wallet-topup-alert {
    display: none;
    margin: 10px 16px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.35;
}

.tips-alert svg,
.tips-alert img,
.wallet-topup-alert svg,
.wallet-topup-alert img {
    width: 18px;
    height: 18px;
}

.tips-alert a,
.wallet-topup-alert a {
    font-weight: 500;
    color: var(--link-color);
}

.tips-alert.is-open,
.wallet-topup-alert.is-open {
    display: block;
}

[data-billing-fields][hidden] {
    display: none !important;
}

.tips-accordion--summary {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-elevated);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

[data-billing-summary] .billing-summary-card__title {
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

[data-billing-summary] > header {
    width: 100%;
    padding: 20px 24px;
    display: block;
}

[data-billing-summary] .billing-summary-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

[data-billing-summary] .billing-summary-card__lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.billing-summary-card__hint {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.billing-edit-toggle {
    align-self: flex-start;
    border-radius: 999px;
    border: 1px solid var(--button-blue-color);
    background: transparent;
    color: var(--button-blue-color);
    font-weight: 600;
    padding: 7px 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.billing-edit-toggle:hover,
.billing-edit-toggle:focus-visible {
    background: var(--button-blue-color);
    color: var(--white);
}

.tips-accordion--form {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-top: 12px;
    background: var(--bg-elevated);
    padding-bottom: 8px;
}

.tips-accordion--form.is-collapsed {
    display: none;
}

.tips-alert.is-shown,
.wallet-topup-alert.is-shown {
    display: block;
}

.tips-alert.is-error,
.wallet-topup-alert.is-error {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
    border: 1px solid var(--alert-error-border);
}

.tips-alert.is-success,
.wallet-topup-alert.is-success {
    background: var(--alert-success-bg);
    color: var(--alert-success-text);
    border: 1px solid var(--alert-success-border);
}

.tips-alert.is-info,
.wallet-topup-alert.is-info {
    background: var(--alert-info-bg);
    color: var(--alert-info-text);
    border: 1px solid var(--alert-info-border);
}


/* Live ended modal */

.live-ended-overlay {
    position: fixed;
    inset: 0;
    background: var(--rgba-45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147482000;
}

.live-ended-modal {
    width: 90%;
    max-width: 420px;
    background: var(--bg-elevated);
    border-radius: 14px;
    box-shadow: var(--shadow-20-40-25);
    padding: 20px;
    text-align: center;
}

.live-ended-title {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.live-ended-desc {
    color: var(--text-gray);
    margin-bottom: 14px;
}

.live-ended-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-ended-actions .btn-go {
    background: var(--btn-dark);
    color: var(--white);
    border: 0;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.live-ended-actions .btn-go:hover {
    opacity: .92;
}

.show-other-comments {
    padding: 10px;
    background-color: var(--hover-bg-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    margin-bottom: 10px;
}

.show-other-comments:hover {
    color: var(--white);
    background-color: var(--black);
}

.show-other-comments a {
    color: var(--text-dark);
}

.show-other-comments:hover a {
    color: var(--white);
}

.transition_background_color {
    -webkit-transition: background-color 0.3s ease, -webkit-transform 0.3s ease;
    -moz-transition: background-color 0.3s ease, -moz-transform 0.3s ease;
    -ms-transition: background-color 0.3s ease, -ms-transform 0.3s ease;
    -o-transition: background-color 0.3s ease, -o-transform 0.3s ease;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.c-like .icon-liked {
    display: none;
}

.c-like .icon-unliked {
    display: inline-flex;
}

.c-like.is-liked .icon-liked {
    display: inline-flex;
    color: var(--post-like-color);
}

.c-like.is-liked .icon-unliked {
    display: none;
}

.book_post.p_save .icon-saved {
    display: none;
}

.book_post.p_saved .icon-save {
    display: none;
}

.book_post .icon-save,
.book_post .icon-saved {
    pointer-events: none;
}


/*********************************/


/*********CONTENT RIGHT***********/


/*********************************/

.content-right-container {
    width: 100%;
    min-height: 1px;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.suggested-users {
    background: var(--third-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggested-users__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.suggested-users__title {
    font-weight: 600;
    color: var(--black);
}

.suggested-users__reload {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
    padding: 0;
}

.suggested-users__reload:hover {
    background: var(--primary-color-opacity);
    border-color: var(--primary-color);
}

.suggested-users__reload svg {
    width: 18px;
    height: 18px;
}

.suggested-users__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.suggested-users__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 18px 12px;
}

.suggested-users__empty {
    color: var(--text-muted);
    font-size: 14px;
}

.suggested-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.suggested-card__avatar {
    position: relative;
    display: inline-flex;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.suggested-card__avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #f5f7fb 0%, #eef1f7 100%);
}

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

.suggested-card__name {
    font-weight: 700;
    color: var(--black);
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
    transition: color .2s ease;
}

.suggested-card__name:hover {
    color: var(--primary-color);
}

.suggested-card__badge svg {
    width: 14px;
    height: 14px;
}

.suggested-card__badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

body.theme-dark .suggested-users__title,
body.theme-dark .suggested-card__name {
    color: var(--white);
}

body.theme-dark .suggested-card__avatar-inner {
    border-color: var(--border-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #1f2530 0%, #1a1f28 100%);
}

body.theme-dark .suggested-card__badge {
    background: #0f131a;
}


/*********************************/


/*********EXPLORE PAGE ***********/


/*********************************/

#explore-sentinel.io-sentinel {
    display: block;
    width: 100%;
    height: 1px;
    /* avoid 0px */
}

.explore-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 0.1rem;
}

.explore-block {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.1rem;
}

.explore-block.is-right {
    grid-template-areas: 'a b V' 'c d V';
}

.explore-block.is-left {
    grid-template-areas: 'V a b' 'V c d';
}

.explore-block.is-compact {
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    grid-auto-rows: auto;
}

.explore-block.is-compact .tile {
    grid-area: auto;
}

.tile {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.tile--square {
    aspect-ratio: 1 / 1;
}

.tile--tall {
    grid-row: span 2;
}

.area-a {
    grid-area: a;
}

.area-b {
    grid-area: b;
}

.area-c {
    grid-area: c;
}

.area-d {
    grid-area: d;
}

.area-V {
    grid-area: V;
}

.tile img,
.tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.explore-area {
    width: 100%;
}

.explore-page-area {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
    max-width: 100%;
}

.explore-left {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.explore-left-container {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}

/*
 * Keep the Explore two-column contract stable when Safari appends blocks.
 * Without a fixed sidebar basis, the flex item can shrink after lazy-loaded
 * grid content changes the main column's intrinsic width.
 */
.explore-page-area > .content-right {
    flex: 0 0 30%;
    width: 30%;
    max-width: 30%;
    min-width: 0;
    box-sizing: border-box;
}

.explore-page-area .content-right-container,
.explore-page-area #explore,
.explore-page-area #explore-root {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .explore-page-area {
        display: block;
    }

    .explore-page-area .content-right {
        display: none;
    }
}

.tile--ghost {
    visibility: hidden;
}

.tile {
    position: relative;
}

.tile-meta {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 12px;
    background: var(--rgba-62);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 6px;
    pointer-events: none;
}

.tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tile {
    position: relative;
}

.tile-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    color: var(--white);
}

.tile-badge svg {
    width: 25px;
    height: 25px;
}

.tile-badge svg {
    display: block;
}

.tile-overlay {
    position: absolute;
    inset: 0;
    background: var(--rgba-35);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.tile:hover .tile-overlay {
    opacity: 1;
}

/* Make lock/CTA overlays clickable and always visible */

.tile-overlay--interactive {
    opacity: 1 !important;
    pointer-events: auto;
    z-index: 3;
    flex-direction: column;
}

.tile-overlay--interactive .unlock-price {
    margin-top: 8px;
}

.metric {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--white);
}

.metric-value {
    line-height: 1;
}

.metric-icon {
    color: var(--white);
}

.metric-icon svg {
    width: 25px;
    height: 25px;
}

.tile .loading-container {
    background-color: var(--rgba-35);
}

.full-post-container {
    position: fixed;
    inset: 0;
    background-color: var(--rgba-10);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-post-wrapper {
    padding: 10px;
    max-width: 700px;
    width: min(700px, 100vw);
    max-height: 100dvh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: block;
}

.full-post-wrapper>* {
    max-width: 100%;
}

.nav-buttons {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1001;
    pointer-events: auto;
}

.post-nav {
    appearance: none;
    border: none;
    background: var(--bg-3, var(--rgba-35));
    color: var(--text-on-3, var(--white));
    border-radius: 50%;
    -webkit-border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.post-nav:hover {
    opacity: 0.9;
}

.post-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.post-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1001;
    color: var(--white);
    background-color: var(--rgba-10);
    padding: 10px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    cursor: pointer;
}

.post-close:hover {
    background-color: var(--rgba-35);
}

.post-close svg,
.post-close img {
    width: 18px;
    height: 18px;
}

.full-post-inner {
    position: relative;
    overscroll-behavior: contain;
}


/* Safari-specific scroll lock removed */


/* Removed hard freeze classes to keep interactions responsive on desktop */

.full-post-inner .loading-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Removed container freeze */

.icon-arrow-down,
.icon-arrow-up {
    color: var(--white);
}

.icon-arrow-down svg,
.icon-arrow-down img,
.icon-arrow-up svg,
.icon-arrow-up img {
    width: 18px;
    height: 18px;
}


/* Removed global body scroll lock */


/* Removed sidebar scroll freeze */


/*********************************/


/********** REELS PAGE ***********/


/*********************************/

.reels_container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    width: 100%;
    max-width: 935px;
    margin: 0 auto;
    border-radius: 12px;
    -webkit-border-radius: 12px;
}


/* Reels page: 4 → 3 (tablet) → 2 (mobile) */

.reels_container>.empty-state {
    grid-column: 1 / -1;
    justify-self: center;
    align-self: center;
    text-align: center;
    padding: 80px 0;
}

.reels_post_wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* square tiles */
    overflow: hidden;
}

a.reels_post_wrapper,
.most-popular-post-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.reels_post_wrapper_reels {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.reels_post_wrapper .post-media,
.reels_post_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* crop center to square */
    object-position: center center;
    display: block;
}

.reels_post_wrapper_reels .post-media,
.reels_post_wrapper_reels img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* crop center to square */
    object-position: center center;
    display: block;
}


/* Fallback for browsers without aspect-ratio support */

@supports not (aspect-ratio: 1 / 1) {
    .reels_post_wrapper {
        height: 0;
        padding-top: 100%;
    }
    .reels_post_wrapper .post-media,
    .reels_post_wrapper img {
        position: absolute;
        inset: 0;
    }
}


/*********************************/


/********** LIVES PAGE ***********/


/*********************************/

.lives-page {
    width: 100%;
    gap: 24px;
}

.lives-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.lives-grid>.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 72px 0;
}

.live-card {
    display: flex;
    flex-direction: column;
    background: var(--surface, var(--white));
    border-radius: 20px;
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
    box-shadow: 0 18px 38px var(--rgba-37);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 100%;
}

.live-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 44px rgba(15, 23, 42, 0.22);
}

.live-card__cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-222);
}

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

.live-card__cover--fallback {
    background: linear-gradient(135deg, var(--button-blue-color), var(--color-4f86f7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-card__cover-icon svg {
    width: 56px;
    height: 56px;
    color: var(--white);
    opacity: 0.9;
}

.badge-live {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--button-blue-color), var(--color-4f86f7));
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.18);
}

.badge-live__icon svg {
    width: 16px;
    height: 16px;
}

.badge-live__label {
    display: inline-block;
}

.live-card__body {
    display: flex;
    gap: 16px;
    padding: 20px 20px 0;
    align-items: center;
}

.live-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--surface, var(--white));
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.live-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--primary-text, var(--text-dark, #111));
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.live-card__owner {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted, #6b7280);
    text-decoration: none;
}

.live-card__owner:hover {
    color: var(--link-color);
}

.live-card__footer {
    margin-top: auto;
    padding: 20px;
}

.live-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--accent, var(--button-blue-color));
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 149, 246, 0.28);
}

.live-card__cta:hover {
    background: var(--accent-hover, var(--button-blue-hover-color, #2563eb));
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(0, 149, 246, 0.32);
}

.live-card__cta:focus-visible {
    outline: 2px solid var(--accent, var(--button-blue-color));
    outline-offset: 3px;
}

/*********************************/


/******** PODCASTS PAGE **********/


/*********************************/

.podcasts-page {
    width: 100%;
    gap: 24px;
}

/* Full-width content container only for podcasts page */
.content-left-container.podcasts-page {
    max-width: 100%;
}

.podcasts-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding: 22px 22px 24px;
    border-radius: 24px;
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
    position: relative;
    overflow: hidden;
    min-height: 300px;
    background-image:
        linear-gradient(135deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.35)),
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.26), transparent 32%),
        linear-gradient(135deg, rgba(79, 134, 247, 0.18), rgba(0, 149, 246, 0.12)),
        var(--podcasts-hero-bg, none);
    background-size: cover;
    background-position: center;
    background-blend-mode: normal, screen, normal, normal;
}

body.theme-dark .podcasts-hero,
:root[data-theme="dark"] .podcasts-hero {
    background-image:
        linear-gradient(135deg, rgba(10, 14, 18, 0.78), rgba(12, 18, 24, 0.62)),
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.14), transparent 32%),
        linear-gradient(135deg, rgba(79, 134, 247, 0.12), rgba(94, 234, 212, 0.12)),
        var(--podcasts-hero-bg, none);
    background-size: cover;
    background-position: center;
    background-blend-mode: normal, screen, normal, normal;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.34);
}

.podcasts-hero__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.podcasts-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: transparent;
    color: var(--text-primary, #0f172a);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.podcasts-hero__eyebrow .podcasts-hero__badge{font-size:9px;}
.podcasts-hero__head .podcasts-hero__badge{font-size:13px !important;}
.podcasts-hero__eyebrow .podcasts-hero__badge{font-size:9px;}

body.theme-dark .podcasts-hero__badge,
:root[data-theme="dark"] .podcasts-hero__badge {
    background: transparent;
    color: var(--text-primary, #0f172a);
}

.podcasts-hero__body {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 420px;
    gap: 24px;
    align-items: stretch;
    min-height: 280px;
    position: relative;
    z-index: 2;
    height: 100%;
}

.podcasts-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    z-index: 1;
    position: relative;
    z-index: 3;
    min-height: 100%;
    height: 100%;
    align-self: stretch;
}

.podcasts-hero__title {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 36px);
    line-height: 1.25;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.podcasts-hero__subtitle {
    margin: 0;
    font-size: 16px;
    color: rgba(241, 245, 249, 0.86);
    max-width: 720px;
    line-height: 1.5;
}

.podcasts-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 0;
}

.podcasts-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    border: 1px solid transparent;
}

.podcasts-cta--primary {
    background: var(--accent, var(--button-blue-color));
    color: var(--white);
    box-shadow: 0 12px 24px rgba(0, 149, 246, 0.22);
}

.podcasts-cta--primary:hover {
    background: var(--accent-hover, var(--button-blue-hover-color, #2563eb));
    transform: translateY(-1px);
}

.podcasts-cta--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.22);
}

.podcasts-cta--secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.podcasts-cta:focus-visible {
    outline: 2px solid var(--accent, var(--button-blue-color));
    outline-offset: 2px;
}

.podcasts-hero__navs {
    display: inline-flex;
    gap: 12px;
}

.podcasts-hero__nav {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-primary, #0f172a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.podcasts-hero__nav:hover {
    transform: translateY(-1px);
}

.podcasts-hero__nav:focus-visible {
    outline: 2px solid var(--accent, var(--button-blue-color));
    outline-offset: 2px;
}

.podcasts-hero__nav[disabled] {
    opacity: 0.35;
    pointer-events: none;
}

.podcasts-hero--ads {
    min-height: 340px;
    color: #f8fafc;
}

.podcasts-hero--ads .podcasts-hero__badge {
    color: rgba(248, 250, 252, 0.88);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.podcasts-hero--ads .podcasts-hero__actions .podcasts-cta--secondary {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.22);
}

.podcasts-hero__slides {
    width: 100%;
}

.podcasts-hero__slide {
    display: none;
    position: relative;
}

.podcasts-hero__slide.is-active {
    display: block;
}

.podcasts-hero__slides.is-swiper {
    overflow: hidden;
    display: block;
    position: relative;
}

.podcasts-hero__slides.is-swiper .podcasts-hero__slide {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

.podcasts-hero__progress {
    position: absolute;
    left: 22px;
    right: auto;
    bottom: 16px;
    height: 4px;
    display: flex;
    gap: 8px;
    pointer-events: none;
    width: 100%;
    max-width: 150px;
}

.podcasts-hero__progress-bar {
    flex: 1 1 0;
    max-width: 150px;
    height: 100%;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
}

.podcasts-hero__progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    width: var(--progress-fill, 0%);
    background: #fff;
    border-radius: inherit;
    transition: width var(--progress-duration, 0ms) linear;
}

.podcasts-hero__sponsor-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.podcasts-cta--ghost {
    background: transparent;
    color: var(--text-primary, #0f172a);
    border: 1px dashed var(--border-subtle, rgba(15, 23, 42, 0.18));
}

.podcasts-cta--ghost:hover {
    background: var(--bg-elevated, rgba(15, 23, 42, 0.04));
}

.podcasts-hero__art {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(94, 234, 212, 0.16), transparent 45%), linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(79, 134, 247, 0.18));
    min-height: 300px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

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

.podcasts-hero__cover-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: var(--text-muted, #6b7280);
}

.podcast-ad-popup {
    width: min(760px, 96vw);
    padding: 18px;
    gap: 14px;
}

.podcast-ad-body {
    padding: 4px;
    gap: 12px;
}

.podcast-ad-form .form-label {
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

.podcast-ad-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.podcast-ad-field {
    flex: 1 1 240px;
}

.podcast-ad-upload .form-text {
    margin-top: 6px;
    color: var(--text-muted, #6b7280);
    font-size: 12px;
}

.podcast-ad-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.podcast-ad-submit {
    background: var(--accent, var(--button-blue-color));
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 149, 246, 0.18);
}

.podcast-ad-submit.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

.podcast-ad-delete {
    background: transparent;
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.12));
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted, #6b7280);
}

.podcast-ad-delete.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.podcast-ad-select-btn {
    background: var(--bg-elevated, rgba(15, 23, 42, 0.04));
    border: 1px dashed var(--border-subtle, rgba(15, 23, 42, 0.2));
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

.podcast-ad-picker {
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    background: var(--white, #fff);
    box-shadow: none;
    padding: 0;
    max-height: 360px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.podcast-ad-picker__header {
    border-bottom: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.1));
    padding-bottom: 6px;
}

.podcast-ad-picker__close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.podcast-ad-picker__list {
    overflow-y: auto;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.podcast-ad-picker__item {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
    border-radius: 10px;
    transition: background 0.12s ease;
}

.podcast-ad-picker__item:hover {
    background: var(--bg-elevated, rgba(15, 23, 42, 0.05));
}

.podcast-ad-picker__cover {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-elevated, rgba(15, 23, 42, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
}

.podcast-ad-picker__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-ad-picker__title {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary, #0f172a);
}

.podcast-ad-picker__select {
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.2));
    background: var(--bg-elevated, rgba(15, 23, 42, 0.04));
    cursor: pointer;
    font-weight: 700;
}

.podcast-ad-picker__empty {
    padding: 8px;
    color: var(--text-muted, #6b7280);
}

.podcast-ad-selected {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 4px;
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08));
    border-radius: 10px;
    background: var(--white, #fff);
}

.podcast-ad-selected__cover {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--bg-elevated, rgba(15, 23, 42, 0.06));
}

.podcast-ad-selected__cover img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    display: block;
}

.podcast-ad-selected__title {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary, #0f172a);
}

.podcast-ad-selected__clear {
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.2));
    background: var(--bg-elevated, rgba(15, 23, 42, 0.04));
    border-radius: 10px;
    padding: 6px 9px;
    cursor: pointer;
    font-weight: 700;
}

/* Podcast ad packages */
.podcast-ad-packages {
    background: #f8fafc;
    border: 1px solid var(--color-e0e0e0, #e5e7eb);
    border-radius: 14px;
    padding: 14px;
    gap: 12px;
}

.podcast-ad-packages__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
}

.podcast-ad-package-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    width: 100%;
}

.podcast-ad-package {
    background: var(--white, #fff);
    border: 1px solid var(--color-e0e0e0, #e5e7eb);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    color: var(--color-333, #333);
}

.podcast-ad-package.is-active,
.podcast-ad-package:focus,
.podcast-ad-package:hover {
    border-color: var(--color-amber-400, #f59e0b);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.14);
    transform: translateY(-2px);
    outline: none;
}

:root[data-theme="dark"] .podcast-ad-package.is-active,
html.theme-dark .podcast-ad-package.is-active,
body.theme-dark .podcast-ad-package.is-active,
:root[data-theme="dark"] .podcast-ad-package:focus,
html.theme-dark .podcast-ad-package:focus,
body.theme-dark .podcast-ad-package:focus,
:root[data-theme="dark"] .podcast-ad-package:hover,
html.theme-dark .podcast-ad-package:hover,
body.theme-dark .podcast-ad-package:hover {
    box-shadow: none;
}

.podcast-ad-package__title {
    font-weight: 700;
    color: var(--color-111827, #111827);
    margin-bottom: 6px;
}

.podcast-ad-package__price {
    font-weight: 700;
    color: var(--color-111827, #111827);
    margin-bottom: 8px;
}

.podcast-ad-package__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: var(--color-111827, #111827);
    margin-bottom: 6px;
}

.podcast-ad-package__meta span {
    background: #fff7ed;
    color: var(--color-111827, #111827);
    border-radius: 8px;
    padding: 4px 8px;
}

.podcast-ad-package__addons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--color-111827, #111827);
    margin-bottom: 6px;
}

.podcast-ad-package__addons span {
    background: #fff7ed;
    border-radius: 8px;
    padding: 4px 8px;
    color: var(--color-111827, #111827);
}

.podcast-ad-package__desc {
    font-size: 13px;
    color: var(--color-333, #333);
    line-height: 1.4;
}

.podcast-ad-package__empty {
    padding: 12px;
    text-align: center;
    color: var(--color-555, #555);
    border: 1px dashed var(--color-e0e0e0, #e5e7eb);
    border-radius: 10px;
    background: var(--color-f5f5f5, #f5f5f5);
}

.podcast-ad-balance {
    margin-bottom: 10px;
}

.podcast-ad-balance__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    border: 1px solid var(--color-e0e0e0, #e5e7eb);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
}

.podcast-ad-balance__label {
    color: var(--color-6b7280, #6b7280);
}

:root[data-theme="dark"] .podcast-ad-balance__label,
html.theme-dark .podcast-ad-balance__label,
body.theme-dark .podcast-ad-balance__label {
    color: #fff;
}

.podcast-ad-balance__value {
    color: var(--color-111827, #111827);
}

.podcast-ad-plan-toggle {
    width: 100%;
    border: 1px solid var(--color-e0e0e0, #e5e7eb);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white, #fff);
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 8px;
}

.podcast-ad-plan-toggle__chevron {
    font-size: 14px;
    color: var(--color-6b7280, #6b7280);
}

.podcast-ad-breakdown {
    border: 1px solid var(--color-e0e0e0, #e5e7eb);
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    margin-top: 10px;
}

.podcast-ad-breakdown__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
}

.podcast-ad-breakdown__row strong {
    font-weight: 700;
}

.podcast-ad-breakdown .text-danger {
    color: #b91c1c;
}

.podcast-ad-package-options {
    flex-wrap: wrap;
}

.podcast-ad-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--color-e0e0e0, #e5e7eb);
    border-radius: 10px;
    background: var(--white, #fff);
    cursor: pointer;
    user-select: none;
    transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
    position: relative;
}

.podcast-ad-option:hover {
    border-color: var(--color-amber-400, #f59e0b);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.16);
}

:root[data-theme="dark"] .podcast-ad-option:hover,
html.theme-dark .podcast-ad-option:hover,
body.theme-dark .podcast-ad-option:hover {
    box-shadow: none;
}

.podcast-ad-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    appearance: none;
    inset: 0;
}

.podcast-ad-option__box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-e0e0e0, #e5e7eb);
    border-radius: 6px;
    background: var(--white, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 120ms ease, border-color 120ms ease;
}

.podcast-ad-option input[type="checkbox"]:checked + .podcast-ad-option__box {
    background: var(--color-amber-400, #f59e0b);
    border-color: var(--color-amber-400, #f59e0b);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.26);
}

.podcast-ad-option input[type="checkbox"]:checked + .podcast-ad-option__box::after {
    content: '\2713';
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.podcast-ad-option__label {
    font-weight: 600;
    color: var(--color-333, #333);
}

.podcast-ad-payment-actions {
    display: none;
}

:root[data-theme="dark"] .podcast-ad-packages,
html.theme-dark .podcast-ad-packages,
body.theme-dark .podcast-ad-packages {
    background: transparent;
    border-color: var(--border-subtle, rgba(255, 255, 255, 0.12));
}

:root[data-theme="dark"] .podcast-ad-package,
html.theme-dark .podcast-ad-package,
body.theme-dark .podcast-ad-package {
    background: transparent;
    color: #fff;
    border-color: var(--border-subtle, rgba(255, 255, 255, 0.18));
}

:root[data-theme="dark"] .podcast-ad-package__meta span,
html.theme-dark .podcast-ad-package__meta span,
body.theme-dark .podcast-ad-package__meta span {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

:root[data-theme="dark"] .podcast-ad-package__addons span,
html.theme-dark .podcast-ad-package__addons span,
body.theme-dark .podcast-ad-package__addons span {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

:root[data-theme="dark"] .podcast-ad-package__desc,
html.theme-dark .podcast-ad-package__desc,
body.theme-dark .podcast-ad-package__desc {
    color: #fff;
}

:root[data-theme="dark"] .podcast-ad-balance__row,
html.theme-dark .podcast-ad-balance__row,
body.theme-dark .podcast-ad-balance__row {
    background: transparent;
    border-color: var(--border-subtle, rgba(255, 255, 255, 0.12));
    color: #fff;
}
:root[data-theme="dark"] .podcast-ad-balance__value,
html.theme-dark .podcast-ad-balance__value,
body.theme-dark .podcast-ad-balance__value {
    color: #fff;
}

:root[data-theme="dark"] .podcast-ad-plan-toggle,
html.theme-dark .podcast-ad-plan-toggle,
body.theme-dark .podcast-ad-plan-toggle {
    background: transparent;
    border-color: var(--border-subtle, rgba(255, 255, 255, 0.12));
    color: #fff;
}

:root[data-theme="dark"] .podcast-ad-breakdown,
html.theme-dark .podcast-ad-breakdown,
body.theme-dark .podcast-ad-breakdown {
    background: var(--bg-elevated, #202123);
    border-color: var(--border-subtle, rgba(255, 255, 255, 0.12));
}

:root[data-theme="dark"] .podcast-ad-option,
html.theme-dark .podcast-ad-option,
body.theme-dark .podcast-ad-option {
    background: transparent;
    border-color: var(--border-subtle, rgba(255, 255, 255, 0.18));
    color: #fff;
}

:root[data-theme="dark"] .podcast-ad-option__box,
html.theme-dark .podcast-ad-option__box,
body.theme-dark .podcast-ad-option__box {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
}

:root[data-theme="dark"] .podcast-ad-option__label,
html.theme-dark .podcast-ad-option__label,
body.theme-dark .podcast-ad-option__label {
    color: #fff;
}

:root[data-theme="dark"] .podcast-ad-package__title,
html.theme-dark .podcast-ad-package__title,
body.theme-dark .podcast-ad-package__title,
:root[data-theme="dark"] .podcast-ad-package__price,
html.theme-dark .podcast-ad-package__price,
body.theme-dark .podcast-ad-package__price {
    color: #fff;
}

:root[data-theme="dark"] .podcast-ad-selected,
html.theme-dark .podcast-ad-selected,
body.theme-dark .podcast-ad-selected,
:root[data-theme="dark"] .podcast-ad-picker,
html.theme-dark .podcast-ad-picker,
body.theme-dark .podcast-ad-picker {
    background: transparent;
    color: #fff;
}

:root[data-theme="dark"] .podcast-ad-selected *,
html.theme-dark .podcast-ad-selected *,
body.theme-dark .podcast-ad-selected *,
:root[data-theme="dark"] .podcast-ad-picker *,
html.theme-dark .podcast-ad-picker *,
body.theme-dark .podcast-ad-picker * {
    color: inherit;
}

.podcast-ad-status {
    align-items: center;
    gap: 10px;
}

.podcast-ad-status .badge {
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge--pending {
    background: rgba(234, 179, 8, 0.18);
    color: #92400e;
}

.badge--approved {
    background: rgba(16, 185, 129, 0.16);
    color: #065f46;
}

.badge--rejected {
    background: rgba(239, 68, 68, 0.16);
    color: #991b1b;
}

.badge--deleted {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.status-note {
    color: var(--text-muted, #6b7280);
    font-weight: 600;
}

.podcast-ad-alert {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
}

.podcast-ad-alert.is-error {
    background: #fef2f2;
    border-color: #fecdd3;
    color: #991b1b;
}

.podcast-ad-alert.is-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.podcasts-hero__nav:focus-visible {
    outline: 2px solid var(--accent, var(--button-blue-color));
    outline-offset: 2px;
}

.podcasts-categories,
.podcasts-recent {
    width: 100%;
}

.podcasts-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.podcasts-section__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

.podcasts-section__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--link-color, #2563eb);
    text-decoration: none;
}

.podcasts-section__link:hover {
    text-decoration: underline;
}

.podcasts-chip-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
}

.podcasts-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.12));
    background: var(--surface, var(--white));
    color: var(--text-primary, #0f172a);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.podcasts-chip:hover {
    background: var(--bg-elevated, rgba(15, 23, 42, 0.04));
}

.podcasts-chip.is-active {
    background: var(--accent, var(--button-blue-color));
    color: var(--white);
    border-color: transparent;
}

.podcasts-chip:focus-visible {
    outline: 2px solid var(--accent, var(--button-blue-color));
    outline-offset: 2px;
}

.podcasts-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.podcast-row {
    width: 100%;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.86));
    border: 1px solid transparent;
    border-radius: 16px;
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 14px 16px;
    box-shadow: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.podcast-row:hover {
    transform: translateY(-2px);
    box-shadow: none;
    border-color: transparent;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
}

.podcast-row__thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(79, 134, 247, 0.16), rgba(0, 149, 246, 0.10));
    flex-shrink: 0;
}

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

.podcast-row__thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-muted, #6b7280);
}

.podcast-row__play {
    position: absolute;
    right: 50%;
    bottom: 50%;
    width: 34px;
    height: 34px;
    transform: translate(50%, 50%);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.62);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
    border: none;
}

.podcast-row__play:hover {
    transform: translate(50%, 50%) scale(1.04);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
}

.podcast-row__play .icon-play {
    display: inline-flex;
}

.podcast-row__play .icon-pause {
    display: none;
}

.podcast-row.is-playing .podcast-row__play .icon-play {
    display: none;
}

.podcast-row.is-playing .podcast-row__play .icon-pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: translateY(-2px);
}

.podcast-row__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.podcast-row__header {
    width: 100%;
    gap: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.podcast-row__title-wrapper {
    gap: 6px;
    width: auto;
    flex: 1 1 0;
    min-width: 0;
}

.podcast-row__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    text-decoration: none;
}

.podcast-row__title:hover {
    color: var(--link-color, #2563eb);
}

.podcast-row__creator {
    text-decoration: none;
    color: var(--text-muted, #6b7280);
    font-size: 13px;
    font-weight: 600;
}

.podcast-row__creator-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.podcast-row__creator-name {
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.podcast-row__creator-handle {
    color: var(--text-muted, #6b7280);
    font-weight: 500;
}

.podcast-row__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--surface, var(--white));
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
}

.podcast-row__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-row__verified svg,
.podcast-row__verified img {
    width: 16px;
    height: 16px;
}
.podcast-row__verified {
    color: #0ea5e9;
}
.podcast-row__verified svg path,
.podcast-row__verified img path {
    fill: currentColor;
}

.podcast-row__tag {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--bg-elevated, rgba(15, 23, 42, 0.06));
    color: var(--text-primary, #0f172a);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

.podcast-row__actions {
    align-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
}

.podcast-row__icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.12));
    background: var(--surface, var(--white));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary, #0f172a);
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.podcast-row__icon-btn svg,
.podcast-row__icon-btn img {
    width: 20px;
    height: 20px;
}

.podcast-row__icon-btn .icon-save,
.podcast-row__icon-btn .icon-like {
    display: inline-flex;
}

.podcast-row__icon-btn .icon-saved,
.podcast-row__icon-btn .icon-liked {
    display: none;
}

.podcast-row__icon-btn.podcast-save.is-active .icon-save { display: none; }
.podcast-row__icon-btn.podcast-save.is-active .icon-saved { display: inline-flex; }

.podcast-row__icon-btn.podcast-like.is-active .icon-like { display: none; }
.podcast-row__icon-btn.podcast-like.is-active .icon-liked { display: inline-flex; }

.podcast-row__icon-btn:hover {
    background: var(--bg-elevated, rgba(15, 23, 42, 0.04));
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.14);
}

.podcast-row__icon-btn:focus-visible {
    outline: 2px solid var(--accent, var(--button-blue-color));
    outline-offset: 2px;
}

.podcast-row__icon-btn.is-active {
    background: var(--accent, var(--button-blue-color));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 149, 246, 0.2);
}

.podcast-row__icon-btn.podcast-like.is-active {
    background: rgba(224, 36, 94, 0.12);
    color: #e0245e;
    border-color: transparent;
    box-shadow: none;
}

.podcast-row__icon-btn.podcast-save.is-active {
    background: rgba(79, 134, 247, 0.12);
    color: var(--accent, var(--button-blue-color));
    border-color: transparent;
    box-shadow: none;
}

.podcast-row__icon-btn.podcast-share {
    border-radius: 14px;
    width: auto;
    height: 38px;
    padding: 0 12px;
    gap: 6px;
}

.podcast-row__duration {
    padding: 6px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(79, 134, 247, 0.12), rgba(0, 149, 246, 0.08));
    color: var(--text-primary, #0f172a);
    font-weight: 500;
    font-size: 11px;
    min-width: 70px;
    text-align: center;
}

@media (max-width: 1180px) {
    .podcasts-hero {
        background-position: 60% center;
        min-height: 280px;
    }
    .podcasts-hero__body {
        grid-template-columns: 1fr;
    }
    .podcasts-hero__art {
        max-width: none;
        min-height: 240px;
    }
}

@media (max-width: 900px) {
    .podcast-row {
        align-items: flex-start;
    }
    .podcast-row__actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .podcast-row__thumb {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 640px) {
    .podcast-row {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }
    .podcast-row__thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }
    .podcast-row__play {
        width: 36px;
        height: 36px;
    }
    .podcast-row__body {
        width: 100%;
    }
    .podcast-row__title-wrapper {
        width: 100%;
    }
    .podcast-row__title {
        font-size: 16px;
    }
    .podcast-row__creator {
        font-size: 12px;
    }
    .podcast-row__creator-name {
        font-size: 13px;
    }
    .podcast-row__creator-handle {
        font-size: 12px;
    }
    .podcast-row__actions {
        gap: 6px;
        width: 100%;
        margin-top: 6px;
        flex-wrap: wrap;
        justify-content: flex-start;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
        row-gap: 6px;
    }
    .podcast-row__icon-btn {
        width: 34px;
        height: 34px;
    }
    .podcast-row__duration {
        font-size: 12px;
        min-width: 64px;
    }
    .podcasts-hero {
        padding: 12px 12px 40px;
        min-height: 0;
    }
    .podcasts-hero__title {
        font-size: 20px;
    }
    .podcasts-hero__subtitle {
        font-size: 14px;
    }
    .podcasts-hero__copy {
        gap: 4px;
        align-items: flex-start;
    }
    .podcasts-hero__actions {
        gap: 8px;
        margin-top: 4px;
        flex-wrap: wrap;
    }
    .podcasts-hero__body {
        min-height: 0;
    }
}

:root[data-theme="dark"] .podcast-row,
body.theme-dark .podcast-row,
html.theme-dark .podcast-row {
    background: linear-gradient(140deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

:root[data-theme="dark"] .podcast-row__icon-btn,
body.theme-dark .podcast-row__icon-btn,
html.theme-dark .podcast-row__icon-btn {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(248, 250, 252, 0.9);
}

:root[data-theme="dark"] .podcast-row__icon-btn:hover,
body.theme-dark .podcast-row__icon-btn:hover,
html.theme-dark .podcast-row__icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

:root[data-theme="dark"] .podcast-row__icon-btn.podcast-like.is-active,
body.theme-dark .podcast-row__icon-btn.podcast-like.is-active,
html.theme-dark .podcast-row__icon-btn.podcast-like.is-active {
    background: rgba(224, 36, 94, 0.16);
    color: #f472b6;
    border-color: transparent;
}

:root[data-theme="dark"] .podcast-row__icon-btn.podcast-save.is-active,
body.theme-dark .podcast-row__icon-btn.podcast-save.is-active,
html.theme-dark .podcast-row__icon-btn.podcast-save.is-active {
    background: rgba(79, 134, 247, 0.18);
    color: rgba(191, 219, 254, 0.95);
    border-color: transparent;
}

:root[data-theme="dark"] .podcast-row__duration,
body.theme-dark .podcast-row__duration,
html.theme-dark .podcast-row__duration {
    background: linear-gradient(135deg, rgba(79, 134, 247, 0.16), rgba(0, 149, 246, 0.12));
    color: rgba(241, 245, 249, 0.92);
}

:root[data-theme="dark"] .podcast-row__verified,
body.theme-dark .podcast-row__verified,
html.theme-dark .podcast-row__verified {
    color: #38bdf8;
}
.reels_post_wrapper:hover .tile-overlay {
    opacity: 1;
}

.reels_post_wrapper:hover .tile-total-view {
    display: none;
}

.reels_post_wrapper:hover .multi-image-indicator {
    display: none;
}

.main-content {
    height: max-content;
}

.tile-total-view {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1;
    gap: 5px;
}

.view-svg {
    color: var(--white);
}

.view-svg svg,
.view-svg img {
    width: 16px;
    height: 16px;
}

.view-total {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

.multi-image-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1;
    color: var(--white);
}

.multi-image-indicator svg,
.multi-image-indicator img {
    width: 16px;
    height: 16px;
}


/************************************/


/********** CREATORS PAGE ***********/


/************************************/

.creators-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    width: 100%;
}

.creator-wrapper {
    padding: 10px;
    min-height: 400px;
}

.creator-avatar-container {
    z-index: 1;
}

.creator-avatar {
    width: 80px;
    height: 80px;
    margin: 0px auto;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    overflow: hidden;
}

.creator-avatar img {
    width: 100%;
    height: 100%;
}

.creator-info-wrapper {
    width: 100%;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    margin-top: -40px;
    padding-top: 55px;
    background-color: var(--bg-elevated);
    gap: 3px;
    font-family: var(--fontApple);
}


/* Tighter cards on tablet/mobile: smaller avatar and adjusted header spacing */

.creator-name-username {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
}

.creator-username {
    font-weight: 400;
    font-size: 13px;
    color: var(--grey-on-black);
}

.creators-bio {
    font-size: 14px;
    color: var(--secondary-text);
    text-align: center;
    padding: 8px 0px;
}

.creator-post-following-followers {
    padding: 8px 0px;
    gap: 4px;
}

.creator-pff-wrapper {
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    gap: 4px;
}

.creator-pff-wrapper>div {
    text-align: center;
}

.ppf-count {
    font-weight: 400;
}


/* --- Latest 3 posts: always perfect squares --- */

.creator-las-three-post {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
}


/* Each cell becomes a square box */

.creator-latest-post {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--rgba-10);
}


/* Image fills and crops to cover, preserving center focus */

.creator-latest-post img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@supports not (aspect-ratio: 1 / 1) {
    .creator-latest-post {
        position: relative;
    }
    .creator-latest-post::before {
        content: '';
        display: block;
        padding-top: 100%;
    }
    .creator-latest-post img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.creator-follow-btn-wrapper {
    padding: 8px 8px;
    gap: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.creator-follow-btn-wrapper .follow_user,
.creator-follow-btn-wrapper .message_user {
    flex: 1 1 calc(50% - 8px);
}

.follow_user {
    width: 100%;
    background-color: var(--button-blue-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.message_user {
    width: 100%;
    background-color: var(--black);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.follow_user:hover {
    background-color: var(--accent-hover);
}

.message_user:hover {
    background-color: var(--cancel-button);
}

.follow_me,
.message_me {
    color: var(--white);
    margin-right: 5px;
}

.message_me svg,
.message_me img {
    width: 20px;
    height: 20px;
}

.message_label {
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.creator-follow-btn-wrapper svg,
.creator-follow-btn-wrapper img {
    width: 18px;
    height: 18px;
}

.follow_user.is-following {
    background-color: var(--black);
    opacity: 0.9;
}

.follow_user[data-loading='1'] {
    pointer-events: none;
    opacity: 0.6;
}

.creator-latest-post--placeholder {
    position: relative;
    background-color: var(--input-bg);
    border: 1px dashed var(--rgba-30);
}

.creator-latest-post--placeholder .creator-latest-post__empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--secondary-text);
    opacity: 0.6;
}

.creator-latest-post--placeholder:hover {
    filter: brightness(1.01);
}

.creator-wrapper:hover .creator-info-wrapper {
    transform: scale(1.04);
    box-shadow: var(--rgba-62);
}

#creators-loading {
    text-align: center;
    padding: 12px;
    font-size: 14px;
    color: var(--secondary-text);
}

.none {
    display: none !important;
}

.no-post-shared-yet {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 1;
    background-color: var(--white-60);
}

.no-post-icon {
    color: var(--grey-light-text);
}

.no-post-icon svg,
.no-post-icon img {
    width: 40px;
    height: 40px;
}

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


/************************************/


/********** MESSAGES BOX ***********/


/************************************/

.messages_box_wrapper {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 99;
    transition: opacity 160ms ease;
}

@supports (bottom: calc(10px + env(safe-area-inset-bottom))) {
    .messages_box_wrapper {
        bottom: calc(10px + env(safe-area-inset-bottom));
    }
}

html.media-viewer--locked .messages_box_wrapper,
body.media-viewer--locked .messages_box_wrapper {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    display: none !important;
}

.messages_box_wrapper--viewer-lock {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    display: none !important;
}

.messages_box_container {
    min-width: 200px;
    padding: 8px 15px;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    background-color: var(--bg-elevated);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.messages_box_container:hover {
    background-color: var(--hover-bg-color);
}

.messages_icon {
    color: var(--svg-color);
}

.messages_icon svg,
.messages_icon img {
    width: 21px;
    height: 21px;
}

.message_title {
    font-weight: 600;
    font-size: 17px;
    color: var(--text-dark);
    font-family: var(--fontApple);
}


/* Recent DM avatars in floating Messages bubble */

.messages_icon_title_latest_chat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.messages_icon_title_latest_chat.full-width {
    width: 100%;
}

.latest_chat_avatars {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0;
}

.latest_chat_avatars .avatar_ring {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--white);
    background: var(--white);
    box-shadow: var(--shadow-2-6-08);
    cursor: pointer;
    position: relative;
    transition: transform .12s ease, box-shadow .12s ease;
}

.latest_chat_avatars .avatar_ring+.avatar_ring {
    margin-left: -8px;
}

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

.latest_chat_avatars .avatar_ring:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-4-10-12);
}


/* On live page, move floating messages widget away from live chat panel */

body.is-live-page .messages_box_wrapper {
    right: calc(360px + 16px);
    right: calc(min(360px, 100vw - 20px) + 16px);
    left: auto;
}


/* Dim and disable DM widget when user is interacting with live chat */

body.is-live-page.live-chat-focus .messages_box_wrapper {
    opacity: .15;
    pointer-events: none;
    transition: opacity 120ms ease;
}

.current_message_box {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 360px;
    width: min(360px, calc(100vw - 20px));
    background-color: var(--bg-elevated);
    border-radius: 15px;
    -webkit-border-radius: 15px;
    box-shadow: var(--shadow-soft);
    height: 521px;
    max-height: 521px;
    height: min(521px, calc(100vh - 20px));
    max-height: calc(100vh - 20px);
    min-height: 320px;
    min-height: min(320px, calc(100vh - 20px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 720px) {
    .messages_box_wrapper {
        right: 0;
        left: 0;
        width: 100%;
    }

    .current_message_box {
        position: fixed;
        inset: 0;
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        -webkit-border-radius: 0;
        z-index: 100;
    }
}

.chat_list_box {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat_list_header {
    padding: 12px 15px;
}

@supports (padding-top: env(safe-area-inset-top)) {
    .chat_list_header {
        padding-top: calc(12px + env(safe-area-inset-top));
    }
}

.chat_list_text {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-dark);
}

.back-prev {
    margin-left: auto;
    color: var(--svg-color);
    cursor: pointer;
}

.back-prev svg,
.back-prev img {
    width: 20px;
    height: 20px;
}

.chat_list_container {
    height: 100%;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

.chat-result-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    transition: background 0.2s ease;
    cursor: pointer;
    width: 100%;
    /* ensure item doesn't exceed container */
    min-width: 0;
    /* allow children to shrink */
    max-width: 100%;
}

.chat-result-item:hover {
    background: var(--bg-light);
}

.chat-result-avatar {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

.chat-result-avatar img {
    width: 100%;
    height: auto;
    position: relative;
    display: block;
}

.chat-result-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    /* take remaining space */
    min-width: 0;
    /* KEY: enables ellipsis inside */
}

.chat-result-username {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    display: flex;
    align-items: center;
}

.chat-result-fullname {
    font-weight: 400;
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 2px;
}

.chat-result-fullname-message {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 400;
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 2px;
    min-width: 0;
    /* allow line to shrink within flex */
}

.chat-result-fullname-message .last-text {
    flex: 1 1 auto;
    min-width: 0;
    /* enables ellipsis inside flex */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* show … when text is long */
}

.chat-result-fullname-message .last-time {
    flex: 0 0 auto;
    /* do not shrink the time */
    white-space: nowrap;
    margin-left: 6px;
}

.chat-result-fullname-message .last-text span svg,
.chat-result-fullname-message .last-text span img {
    width: 18px;
    height: 18px;
}

.icon svg,
.icon img {
    width: 18px;
    height: 18px;
}

.back-prev-chat {
    color: var(--svg-color);
    cursor: pointer;
}

.back-prev-chat svg,
.back-prev-chat img {
    width: 20px;
    height: 20px;
}

.chat_current_user .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.chat_current_user .username {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}


/*=========================================
  CHAT
=========================================*/


/* Conversations container spacing */

.conversations {
    width: 100%;
    padding: 12px 14px 20px;
    /* composer padding */
    gap: 10px;
}


/* One message line */

.chat_message_row {
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}


/* Side alignment */

.chat_message_row.incoming {
    justify-content: flex-start;
}

.chat_message_row.outgoing {
    justify-content: flex-end;
}


/* Avatar only for incoming (like Instagram DM) */

.chat_avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 28px;
}

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


/* Bubble */

.chat_bubble {
    max-width: min(78%, 560px);
    padding: 10px 12px;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.35;
    word-break: break-word;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 1px 2px var(--rgba-11);
}


/* Incoming (light) */

.chat_bubble.incoming {
    background: var(--bg-base, var(--bg-color));
    color: var(--text-dark);
    border-top-left-radius: 6px;
    /* IG stile */
}


/* Outgoing (blue) */

.chat_bubble.outgoing {
    background: var(--button-blue-color);
    color: var(--white);
    border-top-right-radius: 6px;
}

.chat_bubble.chat_bubble--tip {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #14532d;
    border: 1px solid rgba(34, 197, 94, .24);
    box-shadow: none;
}

.chat_bubble.outgoing.chat_bubble--tip,
.chat_bubble.incoming.chat_bubble--tip {
    color: #14532d;
}

.chat_bubble.chat_bubble--tip .chat_status {
    color: #166534;
    opacity: 1;
}

.chat_bubble.chat_bubble--tip .chat_status .tick_icon svg {
    color: #166534;
}

.chat_tip_message {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.chat_tip_message__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.chat_tip_message__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat_tip_message__label {
    color: rgba(20, 83, 45, .72);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.chat_tip_message__amount {
    color: #14532d;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.chat_message_row.is-highlighted .chat_bubble {
    box-shadow: 0 0 0 3px var(--button-blue-a25), 0 8px 22px var(--rgba-12);
}

.chat_reply_quote {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin: 0 0 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: #f4efe7;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.chat_bubble.incoming .chat_reply_quote {
    background: #ece3d7;
}

.chat_bubble.outgoing .chat_reply_quote {
    background: var(--rgba-15);
}

:root[data-theme="dark"] .chat_reply_quote,
html[data-theme="dark"] .chat_reply_quote,
body[data-theme="dark"] .chat_reply_quote,
html.theme-dark .chat_reply_quote,
body.theme-dark .chat_reply_quote {
    background: rgba(255, 255, 255, 0.07);
}

:root[data-theme="dark"] .chat_bubble.incoming .chat_reply_quote,
html[data-theme="dark"] .chat_bubble.incoming .chat_reply_quote,
body[data-theme="dark"] .chat_bubble.incoming .chat_reply_quote,
html.theme-dark .chat_bubble.incoming .chat_reply_quote,
body.theme-dark .chat_bubble.incoming .chat_reply_quote {
    background: rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .chat_bubble.outgoing .chat_reply_quote,
html[data-theme="dark"] .chat_bubble.outgoing .chat_reply_quote,
body[data-theme="dark"] .chat_bubble.outgoing .chat_reply_quote,
html.theme-dark .chat_bubble.outgoing .chat_reply_quote,
body.theme-dark .chat_bubble.outgoing .chat_reply_quote {
    background: rgba(255, 255, 255, 0.16);
}

.chat_reply_quote span {
    font-size: 11px;
    font-weight: 800;
    opacity: .72;
}

.chat_reply_quote strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 750;
}

.chat_reactions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.chat_reactions span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--bg-elevated, var(--white));
    color: var(--text-dark);
    box-shadow: 0 2px 8px var(--rgba-12);
    font-size: 12px;
    font-weight: 800;
}

.chat_bubble.outgoing .chat_reactions span {
    background: var(--white);
    color: var(--text-dark);
}

.chat_message_actions {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(-50%);
    z-index: 4;
}

.chat_message_row.incoming .chat_message_actions {
    right: -74px;
}

.chat_message_row.outgoing .chat_message_actions {
    left: -74px;
}

.chat_reaction_toggle,
.chat_action_toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #f6f1ea;
    color: #111827;
    box-shadow: none;
    cursor: pointer;
    opacity: 0;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    transition: opacity .16s ease, background .16s ease, transform .16s ease;
}

.chat_reaction_toggle {
    padding: 0;
    font-size: 0;
    line-height: 0;
}

.chat_reaction_toggle svg,
.chat_reaction_toggle img {
    display: block;
    width: 23px;
    height: 23px;
    margin: 0;
    flex: 0 0 23px;
}

.chat_message_row:hover .chat_reaction_toggle,
.chat_message_row:hover .chat_action_toggle,
.chat_reaction_toggle:focus,
.chat_action_toggle:focus,
.chat_message_actions:focus-within .chat_reaction_toggle,
.chat_message_actions:focus-within .chat_action_toggle {
    opacity: 1;
}

.chat_reaction_toggle:hover,
.chat_action_toggle:hover {
    background: #eee6dc;
    transform: scale(1.04);
}

.chat_reaction_rail {
    position: absolute;
    top: calc(100% + 8px);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fbf7f0;
    box-shadow: none;
    z-index: 6;
}

.chat_reaction_rail.is-floating {
    position: fixed;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 10095;
    max-width: calc(100vw - 16px);
    overflow-x: auto;
    overscroll-behavior: contain;
}

.chat_reaction_rail[hidden] {
    display: none;
}

.chat_message_row.outgoing .chat_reaction_rail {
    left: 0;
}

.chat_message_row.incoming .chat_reaction_rail {
    right: 0;
}

.chat_reaction_choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.chat_reaction_choice span {
    font-size: 22px;
    line-height: 1;
}

.chat_reaction_choice:hover {
    background: var(--hover-bg-color);
    transform: translateY(-1px) scale(1.06);
}

.chat_reaction_choice.is-active {
    background: #eee6dc;
    box-shadow: none;
}

.chat_action_menu {
    position: absolute;
    top: calc(100% + 8px);
    min-width: 168px;
    padding: 6px;
    border-radius: 12px;
    background: #fbf7f0;
    box-shadow: none;
    z-index: 10080;
    box-sizing: border-box;
}

.chat_action_menu.is-floating {
    position: fixed;
    right: auto;
    left: auto;
    top: auto;
}

.chat_message_row.outgoing .chat_action_menu {
    right: 0;
}

.chat_message_row.incoming .chat_action_menu {
    left: 0;
}

.chat_action_menu button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.chat_action_menu button:hover {
    background: #eee6dc;
}

.chat_action_modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .46);
}

.chat_action_modal__panel {
    width: min(440px, 100%);
    overflow: hidden;
    border-radius: 15px;
    background: var(--bg-elevated, var(--white));
    box-shadow: 0 24px 70px var(--rgba-20);
}

.chat_action_modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
}

.chat_action_modal__header strong {
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.2;
}

.chat_action_modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: var(--body-bg);
    color: var(--text-dark);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.chat_action_modal__body {
    padding: 18px;
}

.chat_action_modal__body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.chat_action_modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 18px 18px;
}

.chat_action_primary,
.chat_action_secondary,
.chat_action_danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

.chat_action_primary {
    background: #2563eb;
    color: #fff;
}

.chat_action_secondary {
    background: var(--body-bg);
    color: var(--text-dark);
}

.chat_action_danger {
    background: #fee2e2;
    color: #991b1b;
}

:root[data-theme="dark"] .chat_action_modal,body.theme-dark .chat_action_modal{background:rgba(0,0,0,.58);}
:root[data-theme="dark"] .chat_reaction_toggle,body.theme-dark .chat_reaction_toggle,
:root[data-theme="dark"] .chat_action_toggle,body.theme-dark .chat_action_toggle{background:#2b2b2b;color:#f5f5f5;box-shadow:none;}
:root[data-theme="dark"] .chat_reaction_toggle:hover,body.theme-dark .chat_reaction_toggle:hover,
:root[data-theme="dark"] .chat_action_toggle:hover,body.theme-dark .chat_action_toggle:hover{background:#343434;color:#f5f5f5;}
:root[data-theme="dark"] .chat_action_modal__panel,body.theme-dark .chat_action_modal__panel,
:root[data-theme="dark"] .chat_action_menu,body.theme-dark .chat_action_menu,
:root[data-theme="dark"] .chat_reaction_rail,body.theme-dark .chat_reaction_rail{background:#202020;color:#f5f5f5;box-shadow:none;}
:root[data-theme="dark"] .chat_action_modal__header,body.theme-dark .chat_action_modal__header{border-color:#303030;}
:root[data-theme="dark"] .chat_action_modal__header strong,body.theme-dark .chat_action_modal__header strong,
:root[data-theme="dark"] .chat_action_menu button,body.theme-dark .chat_action_menu button{color:#f5f5f5;}
:root[data-theme="dark"] .chat_action_modal__close,body.theme-dark .chat_action_modal__close,
:root[data-theme="dark"] .chat_action_secondary,body.theme-dark .chat_action_secondary{background:#151515;border-color:#303030;color:#f5f5f5;}
:root[data-theme="dark"] .chat_action_menu button:hover,body.theme-dark .chat_action_menu button:hover,
:root[data-theme="dark"] .chat_reaction_choice:hover,body.theme-dark .chat_reaction_choice:hover,
:root[data-theme="dark"] .chat_action_secondary:hover,body.theme-dark .chat_action_secondary:hover{background:#2b2b2b;border-color:#4b5563;color:#f5f5f5;}
:root[data-theme="dark"] .chat_reaction_choice.is-active,body.theme-dark .chat_reaction_choice.is-active{background:#343434;box-shadow:none;}

.chat_report_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.chat_report_field:last-child {
    margin-bottom: 0;
}

.chat_report_field span {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 850;
}

.chat_report_field select,
.chat_report_field textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--body-bg);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    outline: 0;
}

.chat_report_field select {
    min-height: 44px;
    padding: 0 12px;
}

.chat_report_field textarea {
    min-height: 108px;
    padding: 12px;
    resize: vertical;
}

.chat_action_toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10001;
    max-width: min(360px, calc(100vw - 44px));
    padding: 12px 14px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 18px 44px var(--rgba-20);
}

.chat_action_toast[hidden] {
    display: none;
}

.chat_action_toast--success {
    background: #047857;
}

.chat_action_toast--error {
    background: #b91c1c;
}

.chat_reply_composer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--hover-bg-color);
    color: var(--text-dark);
}

.chat_reply_composer[hidden] {
    display: none !important;
}

.chat_reply_composer div {
    min-width: 0;
}

.chat_reply_composer span {
    display: block;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 800;
}

.chat_reply_composer strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 800;
}

.chat_reply_composer button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 0;
    border-radius: 50%;
    background: var(--bg-elevated, var(--white));
    color: var(--text-dark);
    cursor: pointer;
}

.chat_tip_btn {
    border: 0;
    cursor: pointer;
    background: transparent;
    color: var(--text-dark);
}

.chat_tip_btn span,
.chat_paid_btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.chat_tip_btn:hover,
.chat_tip_btn:focus-visible,
.chat_tip_btn:active,
.chat_tip_btn.is-active {
    background: var(--hover-bg-color);
    color: var(--text-dark);
}

.chat_paid_btn {
    border: 0;
    cursor: pointer;
}

.chat_tip_panel,
.chat_paid_panel {
    display: grid;
    grid-template-columns: minmax(92px, 1fr) minmax(104px, 150px) max-content 36px;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 14px;
    background: var(--hover-bg-color);
    color: var(--text-dark);
}

.chat_paid_panel {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 150px) auto auto 32px;
}

.chat_tip_panel[hidden],
.chat_paid_panel[hidden] {
    display: none !important;
}

.chat_tip_panel__copy,
.chat_paid_panel__copy {
    min-width: 0;
    overflow: hidden;
}

.chat_tip_panel__copy span,
.chat_paid_panel__copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.chat_tip_panel__copy strong,
.chat_paid_panel__copy strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
}

.chat_tip_panel label,
.chat_paid_panel label {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-elevated, var(--white));
    overflow: hidden;
}

.chat_tip_panel label span,
.chat_paid_panel label span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 100%;
    color: var(--text-gray);
    font-weight: 850;
}

.chat_tip_panel input,
.chat_paid_panel input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 800;
}

.chat_tip_panel button,
.chat_paid_panel button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.chat_tip_panel [data-chat-tip-send] {
    min-width: 104px;
    padding: 0 14px;
    background: var(--text-dark);
    color: var(--white);
    white-space: nowrap;
}

.chat_paid_panel [data-chat-paid-image],
.chat_paid_panel [data-chat-paid-video] {
    padding: 0 13px;
    background: var(--text-dark);
    color: var(--white);
}

.chat_tip_panel [data-chat-tip-send][disabled] {
    opacity: .55;
    cursor: wait;
}

.chat_tip_panel [data-chat-tip-close],
.chat_paid_panel [data-chat-paid-close] {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated, var(--white));
    color: var(--text-dark);
    font-size: 18px;
}

.chat_tip_panel[data-error],
.chat_paid_panel[data-error],
.chat_paid_media[data-error] {
    box-shadow: inset 0 0 0 1px var(--color-red, #ef4444);
}

.chat_tip_panel__error {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(239, 68, 68, .1);
    color: var(--color-red, #ef4444);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.chat_tip_panel__error_text {
    min-width: 0;
}

.chat_tip_panel__topup {
    flex: 0 0 auto;
    min-height: 32px !important;
    padding: 0 12px;
    border-radius: 9px !important;
    background: var(--text-dark);
    color: var(--white);
    font-size: 12px !important;
    font-weight: 850 !important;
    white-space: nowrap;
}

.chat_tip_panel__topup:hover,
.chat_tip_panel__topup:focus-visible {
    background: var(--blue);
    color: var(--white);
}

.chat_tip_panel__error[hidden] {
    display: none !important;
}

.chat_paid_media {
    width: min(230px, 70vw);
}

.chat_paid_media--unlocked {
    position: relative;
}

.chat_paid_media--unlocked img,
.chat_paid_media--unlocked video {
    display: block;
    width: 100%;
    border-radius: 12px;
}

.chat_paid_media--unlocked span {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(15,23,42,.78);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
}

.chat_paid_media--locked {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    padding: 18px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(15,23,42,.06));
    text-align: center;
}

.chat_paid_media__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text-dark);
    color: var(--white);
    font-size: 18px;
}

.chat_paid_media--locked strong {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 850;
}

.chat_bubble.outgoing .chat_paid_media--locked strong {
    color: var(--white);
}

.chat_paid_media--locked p {
    margin: 0;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.chat_bubble.outgoing .chat_paid_media--locked p {
    color: rgba(255,255,255,.82);
}

.chat_paid_media--locked button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: var(--text-dark);
    color: var(--white);
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.chat_bubble.outgoing .chat_paid_media--locked button {
    background: var(--white);
    color: var(--text-dark);
}

@media (max-width: 560px) {
    .chat_tip_panel,
    .chat_paid_panel {
        grid-template-columns: minmax(0, 1fr) minmax(104px, 128px) 44px;
        gap: 8px;
        padding: 10px;
    }

    .chat_tip_panel__copy,
    .chat_paid_panel__copy {
        grid-column: 1 / -1;
    }

    .chat_tip_panel [data-chat-tip-send],
    .chat_paid_panel [data-chat-paid-image],
    .chat_paid_panel [data-chat-paid-video] {
        grid-column: auto;
        min-width: 0;
        padding: 0 12px;
    }

    .chat_tip_panel__error {
        align-items: stretch;
        flex-direction: column;
    }

    .chat_tip_panel__topup {
        width: 100%;
    }
}

.chat_deleted_message {
    color: inherit;
    font-style: italic;
    opacity: .72;
}


/* Grouping: same side follows -> tighter radii & spacing */

.chat_message_row.compact .chat_bubble {
    margin-top: -2px;
}

.chat_message_row.compact .chat_bubble.incoming {
    border-top-left-radius: 18px;
}

.chat_message_row.compact .chat_bubble.outgoing {
    border-top-right-radius: 18px;
}


/* Emoji-only enlargement (optional helper) */

.chat_bubble.emoji_only {
    font-size: 28px;
    line-height: 1.05;
    padding: 8px 10px;
}

.chat_bubble img,
.chat_bubble video {
    width: 100%;
    border-radius: 10px;
    -webkit-border-radius: 10px;
}


/* Shared post (DM) card */

.chat-share-card {
    display: block;
    width: 180px;
    text-decoration: none;
    color: inherit;
}

.chat-share-card .csp-thumb {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--hover-bg-color);
    aspect-ratio: 1 / 1;
    min-height: 160px;
}

.chat-share-card .csp-thumb img,
.chat-share-card .csp-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-share-card .csp-video {
    position: relative;
}

.chat-share-card .csp-play {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--rgba-35);
    color: var(--white);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.chat-share-card .csp-meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-dark);
}

.chat-share-card .csp-user {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.chat-share-card .csp-type {
    opacity: .7;
}

.chat-share-loading {
    padding: 8px 10px;
    font-size: 12px;
    color: var(--text-dark);
    opacity: .7;
}

.chat-share-skeleton {
    width: 180px;
    height: 120px;
    background: var(--hover-bg-color);
    border-radius: 12px;
}


/* Share popup */

.share-popup {
    width: min(548px, 90vw);
    background: var(--bg-elevated);
    border-radius: 22px;
    box-shadow: var(--shadow-20-40-25);
    padding: 12px 16px 14px;
    position: relative;
}

.share-close {
    position: absolute;
    right: 8px;
    top: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--svg-color);
}

.share-close svg,
.share-close img {
    width: 20px;
    height: 20px;
}

.share-header {
    padding: 6px 4px 10px;
    text-align: center;
    font-weight: 700;
}

.share-external {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 0 10px;
}

.share-external-btn {
    min-height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--grey-light);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.share-external-btn:hover,
.share-external-btn:focus-visible {
    background: var(--hover-bg-color);
    border-color: var(--border-color);
}

.share-search {
    padding: 8px 0 4px;
}

.share-search-input {
    /* Match header .search_input style */
    outline: none;
    width: 100%;
    border-radius: 15px;
    font-size: 14px;
    font-family: var(--fontApple);
    color: var(--primary-text) !important;
    background-color: var(--bg-color);
    border: none;
    padding: 10px;
}

.share-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 10px 4px 6px;
    max-height: 360px;
    overflow: auto;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 4px;
    border-radius: 10px;
    position: relative;
    user-select: none;
}

.share-item:hover {
    background: var(--hover-bg-color);
}

.share-item.is-selected {
    background: var(--hover-bg-color);
}

.share-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    overflow: visible;
    box-shadow: 0 1px 2px var(--rgba-11);
    position: relative;
}

.share-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.share-name {
    max-width: 120px;
    font-size: 13px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-check {
    position: absolute;
    bottom: 2px;
    /* pull a bit outside the avatar */
    right: -3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--bg-elevated);
    /* crisp white ring over card bg */
    background: var(--button-blue-color);
    box-shadow: 0 2px 6px var(--rgba-12);
    opacity: 0;
    transform: scale(.92);
    transition: transform .15s ease, opacity .15s ease;
    z-index: 2;
    /* ensure above avatar */
    pointer-events: none;
    /* purely decorative */
}

.share-item.is-selected .share-check {
    opacity: 1;
    transform: scale(1);
}

.share-item.is-selected .share-check:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: 2px solid var(--white);
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}

.share-empty {
    padding: 120px 0px;
    font-weight: 600;
    font-size: 18px;
}

.share-compose {
    padding: 8px 0 0;
    position: sticky;
    bottom: 64px;
    background: var(--bg-elevated);
    z-index: 2;
    border-top: 1px solid var(--border-color);
}

.share-message-input {
    /* Base on .create_text */
    width: 100%;
    min-height: 56px;
    border: 2px solid var(--border-subtle);
    background: var(--input-bg);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    border-radius: 15px;
    padding: 15px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.share-message-input::placeholder {
    color: var(--text-gray);
}

.share-message-input:focus {
    border-color: var(--button-blue-color);
    box-shadow: 0 0 0 3px var(--button-blue-a15);
    background: var(--white);
}

.share-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
    position: sticky;
    bottom: 0;
    background: var(--bg-elevated);
    padding-bottom: 8px;
}

.share-send-btn {
    width: 100%;
    background: var(--button-blue-color);
    color: var(--white);
    border: 0;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 6px 16px var(--button-blue-a25);
}

.share-send-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.share-copy-link {
    display: none;
}

.share-popup {
    backdrop-filter: saturate(1.2);
}

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

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


/* Outgoing message status ticks */

.chat_status {
    font-size: 11px;
    opacity: .85;
    display: flex;
    justify-content: flex-end;
}

.chat_bubble.outgoing .chat_status {
    color: var(--white-90);
}

.chat_status.blue {
    color: var(--color-4ea3ff);
}

.chat_status .tick_icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-left: auto;
}


/* Ensure inline SVGs scale to the wrapper size */

.chat_status .tick_icon svg {
    width: 100%;
    height: 100%;
    display: block;
}


/* Centered meta time between groups */

.chat_meta {
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: var(--text-gray);
    margin: 8px 0 2px;
}


/* Per-message tiny time (optional) */

.chat_time {
    font-size: 11px;
    opacity: 0.65;
    margin-top: 4px;
}


/* Smooth scroll like other panels */

.chat_list_container.sidebar_scroll {
    overscroll-behavior: contain;
}


/* Ensure chat list can scroll */

.chat_list_container {
    height: 100%;
}

.chat_list_wrapper.conversations {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}


/* Spacer to align right side when no avatar */

.chat_spacer {
    flex: 0 0 28px;
    height: 28px;
}


/* Inline image inside bubble */

.chat_bubble img.inline-image {
    max-width: 100%;
    border-radius: 12px;
    display: block;
}

.chat_avatar_empty_message {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 58px;
}

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


/* Header username truncation safety */

.chat_current_user .username {
    max-width: 42vw;
}

.chat_input_area,
.chat_input_area_wrapper {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-elevated);
    margin-top: auto;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .chat_input_area,
    .chat_input_area_wrapper {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
}

.chat_textarea {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    padding: 8px 10px;
    border-radius: 20px;
    font-size: 14px;
    background: var(--input-bg);
    margin: 0 8px;
}

.chat_input_icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 6px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-dark);
    line-height: 1;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color .16s ease, color .16s ease;
}

.chat_input_icon:hover,
.chat_input_icon:focus-visible,
.chat_input_icon:active,
.chat_input_icon.is-active {
    background: var(--hover-bg-color);
    color: var(--text-dark);
}

.chat_input_icon svg,
.chat_input_icon img,
.chat_input_icon span {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keep chat composer actions aligned before the message field in every chat surface. */
.chat_input_area_wrapper {
    flex-wrap: nowrap;
    min-width: 0;
}

.chat_input_area_wrapper .emoji_btn {
    order: 1;
}

.chat_input_area_wrapper .attach_btn {
    order: 2;
}

.chat_input_area_wrapper .video_btn {
    order: 3;
}

.chat_input_area_wrapper .chat_tip_btn {
    order: 4;
}

.chat_input_area_wrapper .chat_paid_btn {
    order: 5;
}

.chat_input_area_wrapper .chat_textarea {
    order: 6;
    flex: 1 1 auto;
    min-width: 0;
}

.chat_input_area_wrapper .send_btn {
    order: 7;
    margin-left: 0;
}

/* Compact composer actions: keep the familiar action row until the user starts typing. */
.chat_input_area_wrapper {
    position: relative;
}

.chat_compact_actions {
    order: 1;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.chat_actions_toggle {
    order: 1;
    display: none !important;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}

.chat_actions_toggle span {
    width: auto;
    height: auto;
    display: block;
    font-size: inherit;
    line-height: inherit;
}

.chat_input_area_wrapper.is-typing .chat_compact_actions {
    display: none;
}

.chat_input_area_wrapper.is-typing .chat_actions_toggle,
.chat_input_area_wrapper.is-actions-open .chat_compact_actions {
    display: flex !important;
}

.chat_input_area_wrapper.is-actions-open .chat_compact_actions {
    position: absolute;
    left: 8px;
    bottom: calc(100% + 8px);
    z-index: 30;
    width: max-content;
    max-width: calc(100% - 16px);
    flex-wrap: wrap;
    padding: 5px;
    border: 1px solid var(--border-color, #dfe5ec);
    border-radius: 8px;
    background: var(--bg-elevated, #fff);
    box-sizing: border-box;
}

.chat_input_area_wrapper.is-actions-open .chat_compact_actions .chat_input_icon {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
}

.chat_input_area_wrapper.is-actions-open .chat_compact_actions .chat_input_icon svg,
.chat_input_area_wrapper.is-actions-open .chat_compact_actions .chat_input_icon img {
    width: 18px;
    height: 18px;
}

.chat_input_area_wrapper.is-actions-open .chat_compact_actions .chat_input_icon span {
    width: 18px;
    height: 18px;
    font-size: 15px;
}

:root[data-theme="dark"] .chat_input_area_wrapper.is-actions-open .chat_compact_actions,
body.theme-dark .chat_input_area_wrapper.is-actions-open .chat_compact_actions {
    border-color: #303030;
    background: #202020;
}

@media (max-width: 560px) {
    .chat_input_area_wrapper.is-actions-open .chat_compact_actions {
        left: 4px;
        max-width: calc(100% - 8px);
    }
}

/* Keep the inline action row as wide as its icons so it cannot overlap the textarea. */
.chat_input_area_wrapper:not(.is-actions-open) .chat_compact_actions {
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
}

.chat_input_area_wrapper .chat_textarea {
    flex: 1 1 0;
    min-width: 0;
}

.tick_icon img,
.tick_icon svg {
    width: 20px;
    height: 20px;
}

.most_popular_post_in_a_day {
    border-radius: 15px;
    -webkit-border-radius: 15px;
}

.most_popular_post_header {
    padding: 15px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    text-align: left;
    background-color: #ffffff;
}

.create_ads_btns {
    padding: 10px;
}

.notice.small {
    font-weight: 400;
    font-size: 12px;
}

.create_ads {
    padding: 10px 12px;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    background-color: var(--black);
    color: var(--white);
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
}

.create_ads img,
.create_ads svg {
    width: 20px;
    height: 20px;
}

.ads-edit-form {
    padding: 20px;
}

.ads-edit-label {
    padding: 10px 0px;
    font-weight: 600;
    font-size: 18px;
}


/* ===========================
    TIPS – Send a tip modal
============================== */


/* Root overlay */

.tips-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: none;
    /* toggle with .is-open */
    align-items: center;
    justify-content: center;
    background: var(--rgba-10);
    -webkit-overflow-scrolling: touch;
}

.tips-overlay.is-open {
    display: flex;
}


/* Modal panel */

.tips {
    width: min(560px, 92vw);
    background: var(--bg-elevated);
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--rgba-10);
    padding: 18px 18px 16px;
    position: relative;
    font-family: var(--fontApple);
}


/* Close button (top-right “x”) */

.tips-close {
    position: absolute;
    width: 32px;
    height: 32px;
    padding: 0;
    top: 6px;
    right: 10px;
    border: 0;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--svg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.tips-close:hover {
    background: var(--hover-bg-color);
    transform: scale(1.04);
}

.tips-close img,
.tips-close svg {
    width: 18px;
    height: 18px;
}

.tips-close span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    font-size: 20px;
}

.tips-close.close_pop {
    padding-left: 0 !important;
}


/* Header title */

.tips-header {
    padding: 2px 2px 10px;
}

.tips-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
}


/* Recipient row */

.tips-user {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    padding: 6px 2px 14px;
}

.tips-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
}

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

.tips-identity {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tips-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
}

.tips-handle {
    font-size: 14px;
    color: var(--text-gray);
    font-family: var(--GaphikFont);
}


/* Form controls */

.tips-form {
    display: grid;
    gap: 14px;
}

.tips-field {
    position: relative;
}

.tips-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.tips-input,
.tips-select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--primary-text);
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease;
    font-family: var(--fontApple);
}

.tips-input::placeholder {
    color: var(--text-gray);
}

.tips-input:focus,
.tips-select:focus {
    border-color: #000;
}


/* Billing agreement accordion (native <details>) */

.tips-accordion {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-color);
}

.tips-accordion>summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tips-accordion>summary::-webkit-details-marker {
    display: none;
}

.tips-accordion .tips-accordion-body {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-gray);
    background: var(--bg-elevated);
}


/* Summary block */

.tips-section-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    margin: 10px 0px;
}

.tips-summary {
    padding-top: 2px;
}

.tips-summary dl {
    margin: 8px 0 0;
}

.tips-summary .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.tips-summary .row dt {
    font-weight: 600;
}

.tips-summary .row dd {
    margin: 0;
    color: var(--text-dark);
}


/* Payment methods */

.tips-methods {
    display: grid;
    gap: 10px;
}

.tips-gateways {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tips-total-amount {
    font-weight: 600;
    color: var(--color-1ca662);
}

.pay-opt {
    height: 64px;
    border: 2px solid var(--border-subtle);
    background: var(--bg-elevated);
    border-radius: 12px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color .2s ease, transform .15s ease, background .2s ease;
    padding: 6px;
}

.pay-opt:hover {
    transform: translateY(-1px);
    background: var(--hover-bg-color);
}

.pay-opt.is-selected {
    border-color: var(--button-blue-color);
}

.pay-opt img,
.pay-opt svg {
    max-width: 110px;
    max-height: 28px;
}


/* Credit balance pill card */

.pay-credit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--border-subtle);
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
    width: fit-content;
}

.pay-credit:hover {
    background: var(--hover-bg-color);
}

.pay-credit img {
    width: 22px;
    height: 22px;
}

.pay-credit .credit-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 14px;
}

.pay-credit .credit-amount {
    color: var(--text-gray);
    font-size: 14px;
}


/* Note text */

.tips-note {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.45;
}

.wallet-topup-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 14px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
}

.wallet-topup-balance-label {
    font-weight: 600;
    color: var(--text-dark);
}

.wallet-topup-balance-value {
    font-weight: 700;
    color: var(--text-accent, var(--text-dark));
}

.wallet-topup-quick {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallet-topup-quick-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.wallet-topup-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wallet-topup-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-default);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wallet-topup-chip:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.wallet-topup-chip.is-active {
    background: var(--hover-bg-color);
    color: var(--text-dark);
    border-color: var(--accent-color);
}

.wallet-topup-chip:focus-visible {
    outline: 2px solid var(--focus-outline-color);
    outline-offset: 2px;
}

.wallet-topup-note {
    margin-top: -6px;
    font-size: 13px;
    color: var(--text-gray);
}

.wallet-topup-empty-body {
    padding: 12px 4px 0;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}

.wallet-topup-empty-body p {
    margin: 0;
}

.wallet-topup-empty-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.wallet-topup-empty-actions .wallet-topup-manage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
}

.wallet-topup-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-default);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    padding: 0 20px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}

.wallet-topup-cancel:hover {
    border-color: var(--border-color);
    background: var(--hover-bg-color);
    transform: translateY(-1px);
}

.wallet-topup-cancel:focus-visible {
    outline: 2px solid var(--focus-outline-color);
    outline-offset: 2px;
}

:root[data-theme="dark"] .wallet-topup-balance,
html.theme-dark .wallet-topup-balance,
body.theme-dark .wallet-topup-balance {
    background: var(--surface-elevated);
    border-color: var(--border-color);
    color: var(--text-light);
}

:root[data-theme="dark"] .wallet-topup-chip,
html.theme-dark .wallet-topup-chip,
body.theme-dark .wallet-topup-chip {
    background: var(--surface-elevated);
    border-color: var(--border-color);
    color: var(--text-light);
}

:root[data-theme="dark"] .wallet-topup-chip.is-active,
html.theme-dark .wallet-topup-chip.is-active,
body.theme-dark .wallet-topup-chip.is-active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

:root[data-theme="dark"] .wallet-topup-empty-body,
html.theme-dark .wallet-topup-empty-body,
body.theme-dark .wallet-topup-empty-body {
    color: var(--text-light);
}

:root[data-theme="dark"] .wallet-topup-cancel,
html.theme-dark .wallet-topup-cancel,
body.theme-dark .wallet-topup-cancel {
    border-color: var(--border-color);
    background: var(--surface-elevated);
    color: var(--text-light);
}

:root[data-theme="dark"] .wallet-topup-cancel:hover,
html.theme-dark .wallet-topup-cancel:hover,
body.theme-dark .wallet-topup-cancel:hover {
    background: var(--surface-hover);
}

@media (max-width: 600px) {
    .wallet-topup-empty-actions {
        justify-content: center;
    }

    .wallet-topup-empty-actions .wallet-topup-manage,
    .wallet-topup-cancel {
        width: 100%;
        min-width: 0;
    }
}


/* Footer action */

.tips-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.tips-cta {
    min-width: 160px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--button-blue-color);
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
}

.tips-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}


/* Provider list (shared with ads create) */

.provider_list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.provider-item {
    border: 2px solid var(--border-subtle);
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
    user-select: none;
}

.provider-item:hover {
    background: var(--hover-bg-color);
    transform: translateY(-1px);
}

.provider-item input[type="radio"] {
    accent-color: var(--button-blue-color);
    flex-shrink: 0;
}

.provider-item .provider-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
}


/* highlight selected (modern browsers) */

.provider-item:has(input[type="radio"]:checked) {
    border-color: var(--button-blue-color);
    background: var(--hover-bg-color);
}


/* fallback: emphasize text when selected */

.provider-item input[type="radio"]:checked+.provider-name {
    color: var(--button-blue-color);
}

[data-wallet-balance-text] {
    font-variant-numeric: tabular-nums;
}

.wallet-topup-balance-value {
    font-variant-numeric: tabular-nums;
}


/* Billing fields grid (tips) */

.billing-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.billing-fields .full-span {
    grid-column: 1 / -1;
}


/* Buyer section spacing */

.tips-accordion .buyer-section {
    margin-bottom: 12px;
}


/* Utility icon size */

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


/* Responsive */

.locked_bg {
    background-image: url(imgs/geometricBg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
}

.locked-preview-container {
    width: 100%;
    gap: 12px;
}

.locked-preview {
    width: 100%;
    height: 100%;
    border-radius: 0px;
    background: var(--bg-elevated);
    object-fit: cover;
    overflow: hidden;
    display: block;
}

.locked-preview--video {
    min-height: 0;
}

.locked-preview--teaser {
    object-fit: contain;
    background: #000;
}

.locked-preview--image {
    display: block;
}

.locked-preview-media {
    width: 100%;
    position: relative;
    border-radius: 0px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--dark);
}

.locked-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(180deg, rgba(4,4,4,0) 45%, rgba(1,1,1,0.75) 100%);
    pointer-events: none;
}

.locked-preview-overlay .visibility-warning {
    min-height: auto;
    width: 100%;
    max-width: 520px;
    background: rgba(2,2,2,0.8);
    border-radius: 18px;
    padding: 24px;
    color: var(--white);
    box-shadow: var(--shadow-16-24-56);
    pointer-events: auto;
}

.locked-preview-overlay .unlock-box {
    background: transparent;
    color: inherit;
}

.locked-preview-overlay .unlock-text,
.locked-preview-overlay .unlock-details {
    color: inherit;
}

.locked-preview-overlay .unlock-price {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
}

.locked-preview-media[data-premium-teaser="1"] .locked-preview-overlay {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.locked-preview-media[data-premium-teaser="1"].is-teaser-locked .locked-preview-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.locked-preview--audio-teaser {
    gap: 18px;
    padding: 28px;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.16), rgba(0,0,0,0) 42%),
        #111827;
    color: #fff;
}

.locked-preview-audio-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.locked-preview-audio-icon svg,
.locked-preview-audio-icon img {
    width: 34px;
    height: 34px;
    display: block;
}

.locked-preview-audio {
    width: min(420px, 100%);
}

.unlock-price {
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--white);
    background-color: var(--btn-dark);
    font-family: var(--fontApple);
    box-shadow: var(--shadow-8-24-10);
    cursor: pointer;
}

.unlock-price:hover {
    background-color: var(--button-dark-bg);
}


/* Hide empty thanks counter to avoid showing "0" */

.post-button-box-super-thanks .total-send:empty {
    display: none;
}

.tips-title-box {
    width: 100%;
    border-radius: 12px;
    background: var(--bg-elevated);
    color: var(--primary-text);
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color .2s ease;
    font-family: var(--fontApple);
    padding: 15px;
    padding-left: 0px;
}


/*=========================================
  PROFILE
=========================================*/

.profile-area {
    width: 100%;
}

.profile-left {
    width: 100%;
    height: 100%;
    margin-top: -120px;
    z-index: 1;
}

.profile-left-container {
    width: 100%;
    max-width: 967px;
    margin: 0px auto;
}

.profile-top-container {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
}


/* Profile top - header */

.profile-cover {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
}

.profile-cover-img,
.profile-cover>img.profile-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-cover--empty {
    background-color: var(--rgba-30);
}


/* Utility spacing */

.mt-40 {
    margin-top: 40px;
}


/* Settings – Payments (moved from inline <style>) */

.settings-section .title {
    font-weight: 600;
    margin-bottom: 8px;
}

.settings-section .notice.small {
    font-size: 12px;
    opacity: .8;
    margin-bottom: 12px;
}

.secrets-form .form-row {
    margin-bottom: 12px;
}

.secrets-form label {
    display: block;
    margin-bottom: 6px;
}

.secrets-form .input-group {
    display: flex;
    gap: 8px;
}

.secrets-form input[type=password],
.secrets-form input[type=text] {
    flex: 1;
    min-width: 300px;
    padding: 8px;
}

.secrets-form .reveal-btn,
.secrets-form .save-btn {
    padding: 8px 12px;
    cursor: pointer;
}

.secrets-form .form-actions {
    margin-top: 16px;
}

.settings-section .error {
    color: var(--color-red-700);
    margin-bottom: 8px;
}

.earnings-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.earnings-chart-card {
    min-height: 320px;
}

.table-card {
    flex: 1 1 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.table-card-plus {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.earnings-table-card {
    gap: 18px;
}

.earnings-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table-card .earnings-table-wrapper {
    flex: 1 1 auto;
    min-width: 0;
}

.table-card .earnings-pagination {
    margin-top: 12px;
}

.earnings-table {
    width: 100%;
    border-collapse: collapse;
}

.earnings-table th,
.earnings-table td {
    font-size: 13px;
    white-space: nowrap;
    padding: 12px 14px;
}

.earnings-table th {
    font-weight: 600;
    color: var(--text-gray);
    text-align: left;
}

.earnings-table td {
    border-top: 1px solid var(--border-subtle);
    color: var(--text-dark);
    vertical-align: middle;
}

.earnings-table th:nth-child(5),
.earnings-table th:nth-child(6),
.earnings-table th:nth-child(7),
.earnings-table th:nth-child(8),
.earnings-table th:nth-child(10),
.earnings-table td:nth-child(5),
.earnings-table td:nth-child(6),
.earnings-table td:nth-child(7),
.earnings-table td:nth-child(8),
.earnings-table td:nth-child(10) {
    text-align: right;
}

.earnings-type {
    font-weight: 600;
}

.earnings-reference {
    max-width: 220px;
    white-space: normal;
    word-break: break-word;
}

.earnings-supporter {
    min-width: 220px;
    white-space: normal;
}

.earnings-supporter__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.earnings-supporter__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.earnings-supporter__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.earnings-supporter__names {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.earnings-supporter__display {
    font-weight: 600;
    color: var(--text-dark);
}

.earnings-supporter__username {
    font-size: 12px;
    color: var(--text-gray);
}

.earnings-post {
    text-align: center;
}

.earnings-post a {
    color: var(--button-blue-color);
    font-weight: 600;
    text-decoration: none;
}

.earnings-post a:hover {
    text-decoration: underline;
}

.earnings-status {
    white-space: normal;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--color-slate-500-a16);
    color: var(--color-gray-700);
}

.status-badge--success {
    background: var(--color-emerald-500-a18);
    color: var(--color-emerald-700);
}

.status-badge--pending {
    background: var(--color-sky-500-a18);
    color: var(--color-brand-blue);
}

.status-badge--danger {
    background: var(--color-red-500-a18);
    color: var(--color-red-600);
}

.status-badge--neutral {
    background: var(--color-slate-500-a18);
    color: var(--color-slate-650);
}

.table-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-gray);
}

.table-sort:hover,
.table-sort.is-active {
    color: var(--text-dark);
}

.table-sort .sort-indicator {
    font-size: 11px;
}

.earnings-reference {
    font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-gray);
    white-space: normal;
    word-break: break-word;
}

.earnings-summary {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--text-gray);
}

.earnings-notice {
    margin-top: 12px;
}

.earnings-pagination {
    margin-top: 16px;
}

.earnings-empty {
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
    padding: 16px 0;
}


/* Settings – Profile Cropper (remove inline styles)
   pe-actions default layout: right-aligned actions row */

.pe-actions.pcrop-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    width: 100%;
    justify-content: flex-end;
}

.profile-header {
    gap: 24px;
}

.profile-avatar {
    border: 3px solid var(--bg-color);
    border-radius: 50%;
    -webkit-border-radius: 50%;
}

.profile-avatar img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.profile-meta {
    gap: 20px;
}

.profile-username-row {
    gap: 20px;
}

.profile-username {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-text);
}

.verified-badge svg,
.verified-badge img {
    width: 18px;
    height: 18px;
}

.profile-actions {
    gap: 8px;
}

.profile-actions svg,
.profile-actions img {
    width: 20px;
    height: 20px;
}

.profile-stats {
    background-color: var(--bg-elevated);
    border-radius: 15px;
    overflow: hidden;
}

.profile-stats .stat-item {
    color: var(--primary-text);
    font-size: 14px;
    padding: 12px 15px;
}

.stat-item:hover {
    background-color: var(--hover-bg-color);
}

.profile-stats .stat-item .stat-num {
    font-weight: 600;
    margin-right: 4px;
}

.profile-stats .stat-item.is-active {
    font-weight: 700;
    color: var(--text-dark);
}

.profile-fullname {
    font-weight: 600;
    color: var(--primary-text);
}

.profile-bio {
    color: var(--secondary-text);
    white-space: pre-line;
}


/* Profile tabs */

.profile-tabs-scroll {
    position: relative;
}

.tabs-viewport {
    width: 100%;
}

.profile-tabs {
    gap: 8px;
    padding: 10px 0 0 0;
}

.profile-tab {
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--primary-text);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.profile-tab.is-active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.profile-tab .tab-icon svg,
.profile-tab .tab-icon img {
    width: 18px;
    height: 18px;
}

.profile-tabs-scroll .tabs-arrow.is-hidden {
    display: none;
}


/* Mobile: horizontal scrollable tabs with arrows */


/* Empty state (profile followers/following and tabs) */

.empty-state {
    padding: 40px 0;
}

.empty-state__icon svg,
.empty-state__icon img {
    width: 48px;
    height: 48px;
    opacity: 0.65;
}

.empty-state__title {
    font-weight: 600;
    color: var(--primary-text);
}

.empty-state__body {
    text-align: center;
    gap: 16px;
}

.empty-state__subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.empty-state__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 12px;
    background: var(--accent, var(--button-blue-color));
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.empty-state__cta:hover {
    background: var(--accent-hover, var(--button-blue-hover-color, #2563eb));
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 149, 246, 0.28);
}

.empty-state__cta:focus-visible {
    outline: 2px solid var(--accent, var(--button-blue-color));
    outline-offset: 3px;
}


/* Center empty-state when directly under profile root (All tab) */

#profile-root>.empty-state {
    width: 100%;
    text-align: center;
    padding: 80px 0;
}

#profile-root>.empty-state .empty-state__icon svg,
#profile-root>.empty-state .empty-state__icon img {
    width: 72px;
    height: 72px;
}


/* When empty-state is shown inside explore-grid (All tab) */

.explore-grid>.empty-state {
    grid-column: 1 / -1;
    justify-self: center;
    align-self: center;
    text-align: center;
    padding: 80px 0;
}

.explore-grid>.empty-state .empty-state__icon svg,
.explore-grid>.empty-state .empty-state__icon img {
    width: 72px;
    height: 72px;
}


/* Locked tile placeholder (no media leak) */

.tile-locked {
    width: 100%;
    height: 100%;
    background-image: url(imgs/geometricBg.png);
    background-repeat: repeat;
    background-size: contain;
}

.profile-left-container .reels_container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    overflow: hidden;
}


/* Center and enlarge empty-state inside 3-col grids */

.profile-left-container .reels_container .empty-state {
    grid-column: 1 / -1;
    /* span all columns */
    justify-self: center;
    align-self: center;
    text-align: center;
    padding: 80px 0;
    /* bigger */
}

.profile-left-container .reels_container .empty-state__icon svg,
.profile-left-container .reels_container .empty-state__icon img {
    width: 72px;
    height: 72px;
}

.profile-left-container .reels_container .empty-state__title {
    font-size: 20px;
}

.creators-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
}


/* Responsive: creators grid 3 → 2 → 1 columns */

.profile-left-container .reels_post_wrapper {
    border-radius: 10px;
}

.reels_post_wrapper_reels {
    border-radius: 10px;
}

.subscribeMe {
    background-color: var(--color-ff6f61);
}

.unsubscribeMe {
    background-color: var(--color-f65169);
}


/* ===========================
    SETTINGS PAGE
============================== */

.page-settings-ciontainer {
    background-color: var(--bg-elevated);
    border-radius: 15px;
    font-family: var(--fontApple);
}

.page-settings-title {
    font-weight: 700;
    font-size: 20px;
    color: var(--text-dark);
    padding: 14px 16px;
    text-align: left;
}

.page-settings-left {
    max-width: 320px;
    min-width: 320px;
    border-right: 1px solid var(--border-subtle)
}

.page-settings-right {
    padding: 16px;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
}

.page-settings-right>* {
    min-width: 0;
}

.settings_sidebar__menu_box {
    padding: 15px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    font-family: var(--fontApple);
}

.settings_sidebar__menu_box:hover {
    background-color: var(--hover-bg-color);
}

.settings_sidebar__menu_box span {
    margin-right: 8px;
}

.creator-identity-chip {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--button-blue-color);
    color: var(--white);
}

.settings-menu__toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.settings-menu__toggle-btn,
.settings-menu__toggle-icon,
.settings-menu__active-label {
    display: none;
}

.settings-menu__options {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (max-width: 991px) {
    .page-settings-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .page-settings-left {
        max-width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 12px;
        align-items: stretch;
        gap: 0;
    }

    .settings-menu__toggle-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 12px 16px;
        border-radius: 12px;
        border: 1px solid var(--border-subtle);
        background-color: var(--bg-elevated, var(--color-fff));
        color: var(--text-dark);
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }

    .settings-menu__toggle-btn:focus-visible {
        outline: 2px solid var(--color-4f46e5);
        outline-offset: 2px;
    }

    .settings-menu__toggle-title {
        flex: 0 0 auto;
    }

    .settings-menu__active-label {
        display: inline-flex;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
        color: var(--text-muted, var(--text-dark));
        font-weight: 500;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .settings-menu__toggle-icon {
        display: inline-flex;
        flex: 0 0 auto;
        width: 16px;
        height: 16px;
        align-items: center;
        justify-content: center;
        color: var(--text-dark);
    }

    .settings-menu__toggle-icon::before {
        content: '';
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }

    .settings-menu__toggle:checked + .settings-menu__toggle-btn .settings-menu__toggle-icon::before {
        transform: rotate(-135deg);
    }

    .settings-menu__options {
        margin-top: 16px;
        padding: 4px;
        border-radius: 12px;
        border: 1px solid var(--border-subtle);
        background-color: var(--bg-elevated, var(--color-fff));
        box-shadow: 0 12px 26px -18px var(--rgba-37);
        gap: 0;
        max-height: 9999px;
        opacity: 1;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.2s ease, margin-top 0.2s ease, padding 0.2s ease;
    }

    .settings-menu__toggle:not(:checked) ~ .settings-menu__options {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        padding: 0;
        box-shadow: none;
        border-width: 0;
        pointer-events: none;
    }

    .settings-menu__toggle:checked ~ .settings-menu__options {
        pointer-events: auto;
    }

    .settings-menu__options .settings_sidebar__menu_box {
        border-radius: 10px;
        margin: 4px 0;
        padding: 14px 16px;
        font-size: 15px;
    }

    .settings-menu__options .settings_sidebar__menu_box:first-child {
        margin-top: 0;
    }

    .settings-menu__options .settings_sidebar__menu_box:last-child {
        margin-bottom: 0;
    }

    .settings-menu__options .arrow {
        margin: 8px 0;
    }

    .settings-menu__options .arrow:first-child,
    .settings-menu__options .arrow:last-child {
        display: none;
    }

    .page-settings-right {
        padding: 20px 12px 16px;
    }
}

/* Active state for current settings tab */

.settings_sidebar__menu_box[aria-current="page"] {
    background-color: var(--hover-bg-color);
}


/* Settings: profile alerts */

.settings-profile .pp-alert {
    margin-top: 6px;
}


/*checkbox radio component*/

.el-radio,
.el-checkbox {
    position: relative;
    font-size: 100%;
}

label.el-radio,
label.el-checkbox {
    display: block;
    cursor: pointer;
}

.el-radio>input[type='radio'],
.el-checkbox>input[type='checkbox'] {
    display: none;
}

.el-radio>input[type='radio'][disabled],
.el-checkbox>input[type='checkbox'][disabled] {
    cursor: not-allowed;
}

.el-radio>input[type='radio']+.el-radio-style,
.el-checkbox>input[type='checkbox']+.el-checkbox-style {
    position: relative;
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    vertical-align: middle;
    cursor: pointer;
}

.el-radio>input[type='radio']+.el-radio-style:hover:before,
.el-checkbox>input[type='checkbox']+.el-checkbox-style:hover:before {
    border-color: var(--range-blue);
}

.el-radio>input[type='radio']+.el-radio-style:before,
.el-checkbox>input[type='checkbox']+.el-checkbox-style:before {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    content: '';
    border: 1px solid var(--range-color-1);
}

.el-radio>input[type='radio']+.el-radio-style:after,
.el-checkbox>input[type='checkbox']+.el-checkbox-style:after {
    position: absolute;
    display: none;
    content: '';
}

.el-radio>input[type='radio'][disabled]+.el-radio-style,
.el-checkbox>input[type='checkbox'][disabled]+.el-checkbox-style {
    cursor: not-allowed;
    color: var(--range-color-2);
}

.el-radio>input[type='radio'][disabled]+.el-radio-style:hover,
.el-radio>input[type='radio'][disabled]+.el-radio-style:before,
.el-radio>input[type='radio'][disabled]+.el-radio-style:after,
.el-checkbox>input[type='checkbox'][disabled]+.el-checkbox-style:hover,
.el-checkbox>input[type='checkbox'][disabled]+.el-checkbox-style:before,
.el-checkbox>input[type='checkbox'][disabled]+.el-checkbox-style:after {
    cursor: not-allowed;
}

.el-radio>input[type='radio'][disabled]+.el-radio-style:hover:before,
.el-checkbox>input[type='checkbox'][disabled]+.el-checkbox-style:hover:before {
    border: 1px solid var(--range-color-2);
    animation-name: none;
}

.el-radio>input[type='radio'][disabled]+.el-radio-style:before,
.el-checkbox>input[type='checkbox'][disabled]+.el-checkbox-style:before {
    border-color: var(--range-color-2);
}

.el-radio>input[type='radio']:checked+.el-radio-style:before,
.el-checkbox>input[type='checkbox']:checked+.el-checkbox-style:before {
    animation-name: none;
}

.el-radio>input[type='radio']:checked+.el-radio-style:after,
.el-checkbox>input[type='checkbox']:checked+.el-checkbox-style:after {
    display: block;
}

.el-radio>input[type='radio']+.el-radio-style:before {
    border-radius: 50%;
}

.el-radio>input[type='radio']+.el-radio-style:after {
    top: 0.4em;
    left: 0.4em;
    width: 0.6em;
    height: 0.6em;
    border-radius: 50%;
    background: var(--range-blue);
}

.el-radio>input[type='radio']:checked+.el-radio-style:before {
    border: 1px solid var(--range-blue);
}

.el-radio>input[type='radio']:checked[disabled]+.el-radio-style:before {
    border: 1px solid var(--range-color-5);
}

.el-radio>input[type='radio']:checked[disabled]+.el-radio-style:after {
    background: var(--range-color-5);
}

.el-checkbox>input[type='checkbox']+.el-checkbox-style:before {
    border-radius: 3px;
}

.el-checkbox>input[type='checkbox']+.el-checkbox-style:after {
    top: 0.15em;
    left: 0.5em;
    box-sizing: border-box;
    width: 0.4em;
    height: 0.85em;
    transform: rotate(45deg);
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
}

.el-checkbox>input[type='checkbox']:checked+.el-checkbox-style:before {
    border: var(--range-blue);
    background: var(--range-blue);
}

.el-checkbox>input[type='checkbox']:checked[disabled]+.el-checkbox-style:before {
    border: var(--range-color-5);
    background: var(--range-color-5);
}


/*blue theme*/

.el-radio.el-radio-blue>input[type='radio']+label:hover:before,
.el-checkbox.el-checkbox-blue>input[type='checkbox']+label:hover:before,
.el-radio.el-radio-blue>input[type='radio']:checked+label:before,
.el-checkbox.el-checkbox-blue>input[type='checkbox']:checked+label:before {
    border-color: var(--range-blue);
}

.el-checkbox.el-checkbox-blue>input[type='checkbox']:checked+label:before,
.el-radio.el-radio-blue>input[type='radio']+label:after {
    background: var(--range-blue);
}

.el-radio.el-radio-blue>input[type='radio'][disabled]+label:hover:before,
.el-checkbox.el-checkbox-blue>input[type='checkbox'][disabled]+label:hover:before {
    border-color: var(--range-color-2);
}

.el-checkbox.el-checkbox-blue>input[type='checkbox']:checked[disabled]+label:before,
.el-radio.el-radio-blue>input[type='radio']:checked[disabled]+label:before {
    border-color: var(--range-color-5);
}

.el-checkbox.el-checkbox-blue>input[type='checkbox'][disabled]:checked+label:before,
.el-radio.el-radio-blue>input[type='radio']:checked[disabled]+label:after {
    background: var(--range-color-5);
}


/*green theme*/

.el-radio.el-radio-green>input[type='radio']+label:hover:before,
.el-checkbox.el-checkbox-green>input[type='checkbox']+label:hover:before,
.el-radio.el-radio-green>input[type='radio']:checked+label:before,
.el-checkbox.el-checkbox-green>input[type='checkbox']:checked+label:before {
    border-color: var(--range-color-5);
}

.el-checkbox.el-checkbox-green>input[type='checkbox']:checked+label:before,
.el-radio.el-radio-green>input[type='radio']+label:after {
    background: var(--range-color-5);
}

.el-radio.el-radio-green>input[type='radio'][disabled]+label:hover:before,
.el-checkbox.el-checkbox-green>input[type='checkbox'][disabled]+label:hover:before {
    border-color: var(--range-color-2);
}

.el-checkbox.el-checkbox-green>input[type='checkbox']:checked[disabled]+label:before,
.el-radio.el-radio-green>input[type='radio']:checked[disabled]+label:before {
    border-color: var(--range-color-6);
}

.el-checkbox.el-checkbox-green>input[type='checkbox'][disabled]:checked+label:before,
.el-radio.el-radio-green>input[type='radio']:checked[disabled]+label:after {
    background: var(--range-color-6);
}


/*red theme*/

.el-radio.el-radio-red>input[type='radio']+label:hover:before,
.el-checkbox.el-checkbox-red>input[type='checkbox']+label:hover:before,
.el-radio.el-radio-red>input[type='radio']:checked+label:before,
.el-checkbox.el-checkbox-red>input[type='checkbox']:checked+label:before {
    border-color: var(--range-color-7);
}

.el-checkbox.el-checkbox-red>input[type='checkbox']:checked+label:before,
.el-radio.el-radio-red>input[type='radio']+label:after {
    background: var(--range-color-7);
}

.el-radio.el-radio-red>input[type='radio'][disabled]+label:hover:before,
.el-checkbox.el-checkbox-red>input[type='checkbox'][disabled]+label:hover:before {
    border-color: var(--range-color-2);
}

.el-checkbox.el-checkbox-red>input[type='checkbox']:checked[disabled]+label:before,
.el-radio.el-radio-red>input[type='radio']:checked[disabled]+label:before {
    border-color: var(--range-color-8);
}

.el-checkbox.el-checkbox-red>input[type='checkbox'][disabled]:checked+label:before,
.el-radio.el-radio-red>input[type='radio']:checked[disabled]+label:after {
    background: var(--range-color-8);
}


/*yellow theme*/

.el-radio.el-radio-yellow>input[type='radio']+label:hover:before,
.el-checkbox.el-checkbox-yellow>input[type='checkbox']+label:hover:before,
.el-radio.el-radio-yellow>input[type='radio']:checked+label:before,
.el-checkbox.el-checkbox-yellow>input[type='checkbox']:checked+label:before {
    border-color: var(--range-color-3);
}

.el-checkbox.el-checkbox-yellow>input[type='checkbox']:checked+label:before,
.el-radio.el-radio-yellow>input[type='radio']+label:after {
    background: var(--range-color-3);
}

.el-radio.el-radio-yellow>input[type='radio'][disabled]+label:hover:before,
.el-checkbox.el-checkbox-yellow>input[type='checkbox'][disabled]+label:hover:before {
    border-color: var(--range-color-2);
}

.el-checkbox.el-checkbox-yellow>input[type='checkbox']:checked[disabled]+label:before,
.el-radio.el-radio-yellow>input[type='radio']:checked[disabled]+label:before {
    border-color: var(--range-color-9);
}

.el-checkbox.el-checkbox-yellow>input[type='checkbox'][disabled]:checked+label:before,
.el-radio.el-radio-yellow>input[type='radio']:checked[disabled]+label:after {
    background: var(--range-color-9);
}


/*switch component*/

.el-switch,
.el-switch-style,
.el-switch-style:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.el-switch {
    display: inline-block;
    font-size: 100%;
    height: 1.6em;
    position: relative;
}

.el-switch .el-switch-style {
    height: 1.6em;
    left: 0;
    background: var(--range-color-1);
    -webkit-border-radius: 0.8em;
    border-radius: 0.8em;
    display: inline-block;
    position: relative;
    top: 0;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    width: 3em;
    cursor: pointer;
}

.el-switch .el-switch-style:before {
    display: block;
    content: '';
    height: 1.4em;
    position: absolute;
    width: 1.4em;
    background-color: var(--white);
    -webkit-border-radius: 50%;
    border-radius: 50%;
    left: 0.1em;
    top: 0.1em;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.el-switch>input[type='checkbox'],
.el-switch>input[type='radio'] {
    display: none;
}

.el-switch>input[type='checkbox'][disabled]+.el-switch-style,
.el-switch>input[type='radio'][disabled]+.el-switch-style {
    cursor: not-allowed;
    background-color: var(--range-color-2);
}

.el-switch>input[type='checkbox']:checked+.el-switch-style,
.el-switch>input[type='radio']:checked+.el-switch-style {
    background-color: var(--range-blue);
}

.el-switch>input[type='checkbox']:checked+.el-switch-style:before,
.el-switch>input[type='radio']:checked+.el-switch-style:before {
    left: 50%;
}

.el-switch>input[type='checkbox']:checked[disabled]+.el-switch-style,
.el-switch>input[type='radio']:checked[disabled]+.el-switch-style {
    background-color: var(--range-color-5);
}

.el-switch.el-switch-blue>input[type='checkbox']:checked+.el-switch-style,
.el-switch.el-switch-blue>input[type='radio']:checked+.el-switch-style {
    background-color: var(--range-blue);
}

.el-switch.el-switch-blue>input[type='checkbox']:checked[disabled]+.el-switch-style {
    background-color: var(--range-color-5);
}

.el-switch.el-switch-green>input[type='checkbox']:checked+.el-switch-style,
.el-switch.el-switch-green>input[type='radio']:checked+.el-switch-style {
    background-color: var(--range-color-5);
}

.el-switch.el-switch-green>input[type='checkbox']:checked[disabled]+.el-switch-style {
    background-color: var(--range-color-6);
}

.el-switch.el-switch-red>input[type='checkbox']:checked+.el-switch-style,
.el-switch.el-switch-red>input[type='radio']:checked+.el-switch-style {
    background-color: var(--range-color-7);
}

.el-switch.el-switch-red>input[type='checkbox']:checked[disabled]+.el-switch-style {
    background-color: var(--range-color-8);
}

.el-switch.el-switch-yellow>input[type='checkbox']:checked,
.el-switch.el-switch-yellow>input[type='radio']:checked+.el-switch-style {
    background-color: var(--range-color-3);
}

.el-switch.el-switch-yellow>input[type='checkbox']:checked[disabled],
.el-switch.el-switch-yellow>input[type='radio']:checked[disabled]+.el-switch-style {
    background-color: var(--range-color-9);
}


/*define size*/

.el-radio.el-radio-sm,
.el-checkbox.el-checkbox-sm,
.el-switch.el-switch-sm {
    font-size: 85%;
}

.el-radio.el-radio-lg,
.el-checkbox.el-checkbox-lg,
.el-switch.el-switch-lg {
    font-size: 125%;
}


/* Custom: Small switch active color (#ffb300) */

.el-switch.el-switch-sm>input[type='checkbox']:checked+.el-switch-style,
.el-switch.el-switch-sm>input[type='radio']:checked+.el-switch-style {
    background-color: var(--color-amber-400);
}

.contact-card {
    max-width: 830px;
    margin: 0px auto;
}

@media (max-width: 1025px) {
    .menu-item {
        display: none;
    }
}

.vertical-box {
    transform: rotate(180deg);
    transform-origin: center center;
}

.chip-blue:focus-visible,
.donate-btn:focus-visible,
.upload-btn:focus-visible,
.tips-cta:focus-visible,
.embed-viewlink:focus-visible,
.pe-save:focus-visible,
.post-embed-popup .peb-copy:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}


/* ============ Profile media row (avatar left, cover right) ============ */

.profile-media-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 8px 0 12px;
}

.profile-media-row .pm-box {
    position: relative;
}

.profile-media-row .pm-avatar {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-elevated);
    background: var(--bg-muted);
    box-shadow: 0 8px 24px var(--rgba-black-18);
    flex: 0 0 auto;
}

.profile-media-row .pm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-media-row .pm-cover {
    flex: 1 1 auto;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-muted);
    box-shadow: var(--shadow-8-24-10);
}

.profile-media-row .pm-cover--empty {
    background: var(--rgba-30);
}

.profile-media-row .pm-cover--empty img {
    display: none;
}

.video-teaser-field .video-teaser-filename {
    font-size: 12px;
    color: var(--secondary-text, #6b7280);
    padding-left: 5px;
}

.profile-media-row .pm-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-media-row .pm-edit {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--rgba-55);
    color: var(--white);
    border: 1.5px solid var(--white-90);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, opacity .15s ease;
    opacity: 0;
    z-index: 2;
}

.profile-media-row .pm-edit img,
.profile-media-row .pm-edit svg {
    width: 16px;
    height: 16px;
    color: var(--white);
}

.profile-media-row .pm-box:hover .pm-edit,
.profile-media-row .pm-edit:focus-visible {
    opacity: 1;
}

.disBlock {
    display: flex !important;
}


/* Maintenance mode */

.maintenance-body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg-color, var(--white));
    color: var(--text-primary, var(--color-111827));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

.maintenance-screen {
    width: min(880px, 100%);
    background: var(--surface, var(--color-fff));
    border-radius: 32px;
    padding: 56px clamp(24px, 5vw, 64px);
    box-shadow: 0 24px 60px var(--color-slate-900-a12);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.maintenance-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.maintenance-logo {
    max-height: 48px;
    width: auto;
    display: none;
}

.maintenance-logo--light {
    display: block;
}

.maintenance-logo--mobile-light,
.maintenance-logo--mobile-dark {
    display: none;
}

.maintenance-header__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.maintenance-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--white);
    background: linear-gradient(135deg, var(--color-4f86f7), var(--color-8c52ff));
    box-shadow: 0 4px 18px var(--color-accent-blue-a30);
}

.maintenance-site-name {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary, var(--color-6b7280));
}

.maintenance-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.maintenance-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-primary, var(--color-111827));
}

.maintenance-lead {
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    color: var(--text, var(--color-37474f));
}

.maintenance-message p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text, var(--color-37474f));
    white-space: pre-wrap;
}

.maintenance-status-card {
    background: var(--color-accent-blue-a06);
    border: 1px solid var(--color-accent-blue-a12);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.maintenance-status-card__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.maintenance-status-card__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary, var(--color-6b7280));
}

.maintenance-status-card__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, var(--color-111827));
}

.maintenance-status-note {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary, var(--color-6b7280));
}

.maintenance-status-card__countdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.maintenance-status-card__countdown--hidden {
    display: none;
}

.maintenance-status-card__countdown-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary, var(--color-6b7280));
}

.maintenance-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    gap: 12px;
}

.maintenance-countdown__segment {
    background: var(--white-75);
    border-radius: 18px;
    padding: 12px;
    text-align: center;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-primary, var(--color-111827));
}

.maintenance-countdown__segment strong {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.maintenance-countdown__segment span {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary, var(--color-6b7280));
}

.maintenance-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.maintenance-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--color-4f86f7), var(--color-41d1ff));
    color: var(--white);
    box-shadow: 0 14px 30px var(--color-accent-blue-a30);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.maintenance-btn:hover,
.maintenance-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px var(--color-accent-blue-a35);
}

.maintenance-btn:focus-visible {
    outline: 3px solid var(--color-accent-blue-a40);
    outline-offset: 3px;
}

.maintenance-btn--secondary {
    background: transparent;
    color: var(--button-blue-color, var(--color-4f86f7));
    border: 2px solid var(--color-accent-blue-a50);
    box-shadow: none;
}

.maintenance-btn--secondary:hover,
.maintenance-btn--secondary:focus {
    background: var(--color-accent-blue-a18);
    transform: none;
}

.maintenance-btn--secondary:focus {
    border-color: #000;
}

.maintenance-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.maintenance-social__title {
    margin: 0;
    font-weight: 600;
    color: var(--text-secondary, var(--color-6b7280));
}

.maintenance-social__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.maintenance-social__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--color-accent-blue-a08);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--button-blue-color, var(--color-4f86f7));
    text-decoration: none;
    transition: background 0.18s ease;
}

.maintenance-social__link:hover,
.maintenance-social__link:focus {
    background: var(--color-accent-blue-a18);
}

.maintenance-social__badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    background: var(--button-blue-color, var(--color-4f86f7));
}

.maintenance-social__badge--status {
    background: linear-gradient(135deg, var(--color-green-500), var(--color-green-600));
}

.maintenance-social__badge--twitter {
    background: linear-gradient(135deg, var(--color-twitter-blue), var(--color-twitter-deep));
}

.maintenance-social__badge--facebook {
    background: linear-gradient(135deg, var(--color-facebook-primary), var(--color-facebook-shadow));
}

.maintenance-social__badge--instagram {
    background: linear-gradient(135deg, var(--color-orange-450), var(--color-orange-gradient-mid), var(--color-red-500));
}

.maintenance-social__badge--tiktok {
    background: linear-gradient(135deg, var(--text-dark), var(--color-teal-500));
}

.maintenance-footer {
    margin-top: auto;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary, var(--color-6b7280));
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.maintenance-footer p {
    margin: 0;
}

.maintenance-retry-hint {
    font-size: 0.85rem;
}

.contact-maintenance-note {
    display: none;
}

body.layout-contact .contact-maintenance-note {
    display: block;
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--color-accent-blue-a08);
    color: var(--text-secondary, var(--color-6b7280));
    font-size: 0.9rem;
}


/* Contact page lockdown when maintenance mode is active */

body.maintenance-mode-live.layout-contact .get_box,
body.maintenance-mode-live.layout-contact .search_input,
body.maintenance-mode-live.layout-contact .mobile-search-toggle,
body.maintenance-mode-live.layout-contact .mobile-nav-btn-left,
body.maintenance-mode-live.layout-contact .mobile-nav-btn-right,
body.maintenance-mode-live.layout-contact .header-auth-link {
    pointer-events: none !important;
    opacity: 0.4;
    cursor: not-allowed;
}

body.maintenance-mode-live.layout-contact .messages_box_wrapper {
    display: none !important;
}

body.maintenance-mode-live.layout-contact .maintenance-disabled {
    pointer-events: none !important;
    opacity: 0.4;
    cursor: not-allowed;
}

body.maintenance-mode-live.layout-contact .get_box:focus,
body.maintenance-mode-live.layout-contact .search_input:focus,
body.maintenance-mode-live.layout-contact .mobile-search-toggle:focus,
body.maintenance-mode-live.layout-contact .header-auth-link:focus {
    outline: none;
}

body.maintenance-mode-live.layout-contact .header_icon_group,
body.maintenance-mode-live.layout-contact .header_search_wrapper {
    position: relative;
}

@media (max-width: 780px) {
    .maintenance-screen {
        padding: 36px clamp(20px, 5vw, 40px);
        border-radius: 28px;
    }
    .maintenance-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .maintenance-header__meta {
        align-items: flex-start;
    }
    .maintenance-countdown {
        grid-template-columns: repeat(2, minmax(72px, 1fr));
    }
    .maintenance-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

html[data-theme='dark'],
body.theme-dark,
html.theme-dark {
    --maintenance-card-bg: rgba(15, 23, 42, 0.6);
    --maintenance-card-border: rgba(79, 134, 247, 0.25);
}

html[data-theme='dark'] .maintenance-screen,
body.theme-dark .maintenance-screen,
html.theme-dark .maintenance-screen {
    background: var(--surface, var(--color-charcoal-900));
    box-shadow: 0 28px 50px var(--rgba-62);
}

html[data-theme='dark'] .maintenance-status-card,
body.theme-dark .maintenance-status-card,
html.theme-dark .maintenance-status-card {
    background: var(--maintenance-card-bg);
    border-color: var(--maintenance-card-border);
}

html[data-theme='dark'] .maintenance-countdown__segment,
body.theme-dark .maintenance-countdown__segment,
html.theme-dark .maintenance-countdown__segment {
    background: var(--hover-bg-color);
}

html[data-theme='dark'] .maintenance-logo--dark,
body.theme-dark .maintenance-logo--dark,
html.theme-dark .maintenance-logo--dark {
    display: block;
}

html[data-theme='dark'] .maintenance-logo--light,
body.theme-dark .maintenance-logo--light,
html.theme-dark .maintenance-logo--light {
    display: none;
}

html[data-theme='dark'] .maintenance-logo--mobile-dark,
body.theme-dark .maintenance-logo--mobile-dark,
html.theme-dark .maintenance-logo--mobile-dark {
    display: block;
}

html[data-theme='dark'] .maintenance-logo--mobile-light,
body.theme-dark .maintenance-logo--mobile-light,
html.theme-dark .maintenance-logo--mobile-light {
    display: none;
}

.creator-alert {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-indigo-600-a12), var(--color-emerald-500-a08));
    border: 1px solid var(--color-indigo-500-a25);
    color: var(--sd-admin-text-primary);
    margin-bottom: 12px;
    backdrop-filter: blur(2px);
}

.creator-alert__text {
    font-size: 14px;
    line-height: 1.45;
}

.creator-alert__action {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-4f46e5);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.security-dashboard {
    gap: 28px;
    background: var(--sd-admin-bg-offwhite);
    padding: 24px;
    border-radius: 32px;
}

.security-dashboard .security-overview {
    margin-bottom: 8px;
}

.security-dashboard .status-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--color-indigo-500-a25);
    background: linear-gradient(135deg, var(--color-indigo-500-a12), var(--color-mint-500-a12));
}

.security-dashboard .status-pill__icon svg,
.security-dashboard .status-pill__icon img {
    width: 28px;
    height: 28px;
}

.security-dashboard .status-pill__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.security-dashboard .status-pill__label {
    font-weight: 600;
    color: var(--sd-admin-text-primary);
}

.security-dashboard .status-pill__meta {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.security-dashboard .status-pill--on {
    border-color: var(--color-emerald-500-a35);
}

.security-dashboard .status-pill--off {
    border-color: var(--color-gray-200-a90);
    background: var(--color-gray-50-a90);
}

.security-dashboard .security-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.security-dashboard .security-grid-pass {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.security-dashboard .security-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-base, var(--bg-color));
    border: 1px solid var(--color-slate-200-a70);
    border-radius: 26px;
    padding: 28px 26px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.security-dashboard .security-card:hover,
.security-dashboard .security-card:focus-within {
    transform: translateY(-2px);
}

.security-dashboard .security-card__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.security-dashboard .security-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--sd-admin-text-primary);
    letter-spacing: -0.01em;
}

.security-dashboard .security-card__description {
    font-size: 14px;
    color: var(--sd-admin-text-muted);
    margin: 0;
    line-height: 1.55;
}

.security-dashboard .security-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.security-dashboard .security-form__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.security-dashboard .security-form__actions--end {
    justify-content: flex-end;
}

.security-dashboard .security-form__alert {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
    min-height: 18px;
}

.security-dashboard .security-form__alert.is-error {
    color: var(--danger-alt);
}

.security-dashboard .security-form__alert.is-success {
    color: var(--color-emerald-700);
}

.security-dashboard .security-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.security-dashboard .security-field__label {
    font-weight: 600;
    color: var(--sd-admin-text-primary);
}

.security-dashboard .security-field__hint {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.security-dashboard .security-field__feedback {
    font-size: 13px;
    color: var(--danger-alt);
    min-height: 16px;
}

.security-dashboard .security-field__feedback:empty {
    min-height: 0;
}

.security-dashboard .security-field input,
.security-dashboard .security-field textarea {
    border: 1px solid var(--color-slate-300-a90);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    background: var(--bg-base, var(--bg-color));
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.security-dashboard .security-field input:focus,
.security-dashboard .security-field textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
    outline: none;
}

.security-dashboard .security-meter {
    height: 10px;
    background: var(--color-slate-200-a90);
    border-radius: 999px;
    overflow: hidden;
}

.security-dashboard .security-meter__bar {
    display: block;
    height: 100%;
    width: 12%;
    background: linear-gradient(90deg, var(--color-orange-500), var(--color-orange-400), var(--color-green-500));
    transition: width 0.25s ease;
}

.security-dashboard .btn-secondary {
    background: var(--color-indigo-500-a08);
    border: 1px solid var(--color-indigo-500-a25);
    color: var(--button-blue-color);
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.security-dashboard .btn-secondary:hover,
.security-dashboard .btn-secondary:focus {
    background: var(--color-indigo-500-a16);
    border-color: var(--color-indigo-500-a45);
    color: var(--button-blue-color);
}

.security-dashboard .btn-secondary:focus {
    border-color: var(--button-blue-color);
}

.payout-methods-grid .btn-secondary {
    background: var(--color-indigo-500-a08);
    border: 1px solid var(--color-indigo-500-a25);
    color: var(--button-blue-color);
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.payout-methods-grid .btn-secondary:hover,
.payout-methods-grid .btn-secondary:focus {
    background: var(--color-indigo-500-a16);
    border-color: var(--color-indigo-500-a45);
    color: var(--button-blue-color);
}

.payout-methods-grid .btn-secondary:focus {
    border-color: #000;
}

.payout-methods-grid .btn-secondary.btn-dark {
    background: var(--color-slate-900);
    border-color: var(--color-slate-900);
    color: var(--white);
}

.payout-methods-grid .btn-secondary.btn-dark:hover,
.payout-methods-grid .btn-secondary.btn-dark:focus {
    background: var(--text-dark);
    border-color: var(--text-dark);
    color: var(--white);
}

.payout-methods-grid .btn-secondary.btn-dark:focus {
    border-color: #000;
}

.btn-link {
    background: none;
    border: none;
    color: var(--sd-admin-link);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.btn-link:hover,
.btn-link:focus {
    text-decoration: underline;
}

.security-dashboard .security-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.security-dashboard .security-toggle__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.security-dashboard .security-toggle__status {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.security-dashboard .security-2fa-setup {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    align-items: start;
}

.security-dashboard .security-2fa-setup[hidden] {
    display: none!important;
}

.security-dashboard .security-2fa-qr {
    width: 100%;
    max-width: 360px;
    background: var(--surface);
    border: 1px solid var(--color-slate-900-a08);
    padding: 16px;
    border-radius: 0;
    overflow: visible;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
}

.security-qr-wrap {
    background: var(--surface);
    padding: 16px;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.security-qr-wrap code {
    background: var(--color-indigo-500-a08);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
    display: inline-block;
    max-width: 100%;
}

.security-qr-wrap img {
    display: block;
    image-rendering: pixelated;
    max-width: 100%;
    height: auto;
    transform: none!important;
    filter: none!important;
    mix-blend-mode: normal!important;
}

.security-dashboard .security-2fa-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.security-dashboard .security-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.security-dashboard .security-code-row code {
    background: var(--color-indigo-500-a08);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
    display: inline-block;
    max-width: 100%;
}

.security-dashboard .security-2fa-manage {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-dashboard .security-2fa-manage[hidden] {
    display: none!important;
}

.security-dashboard [data-twofactor-disable-actions] .btn-danger,
.security-form__actions .btn-danger {
    background: var(--color-slate-900);
    border-color: var(--color-slate-900);
    color: var(--white);
    outline: none;
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    font-weight: 500;
    font-size: 13px;
}

.security-dashboard [data-twofactor-disable-actions] .btn-danger:hover {
    background: var(--color-slate-940);
    border-color: var(--color-slate-940);
    color: var(--white);
}

.security-dashboard [data-twofactor-disable-actions] .btn-danger:focus {
    outline: 2px solid var(--color-slate-900-a35);
    outline-offset: 2px;
}

.security-dashboard .security-2fa-disable {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
    padding: 18px;
    border: 1px dashed var(--color-indigo-500-a35);
    border-radius: 16px;
    background: var(--color-indigo-500-a08);
}

.security-dashboard .security-sessions {
    border: 1px solid var(--color-slate-400-a35);
    border-radius: 12px;
    overflow: hidden;
}

.security-dashboard .security-sessions__row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-slate-300-a35);
    background: var(--bg-base, var(--bg-color));
}

.security-dashboard .security-sessions__row:last-child {
    border-bottom: none;
}

.security-dashboard .security-sessions__row--head {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sd-admin-text-muted);
    background: var(--color-indigo-500-a06);
    font-weight: 600;
}

.security-dashboard .security-sessions__device {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.security-dashboard .security-sessions__meta {
    font-size: 12px;
    color: var(--sd-admin-text-muted);
}

.security-dashboard .security-sessions__actions {
    display: flex;
    justify-content: flex-end;
}

.security-dashboard .security-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--color-emerald-500-a12);
    color: var(--color-emerald-700);
    font-size: 12px;
    font-weight: 600;
}

.security-dashboard .security-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 32px 16px;
    border: 1px solid var(--color-slate-200-a60);
    border-radius: 16px;
    background: var(--color-slate-50-a70);
}

.security-dashboard .security-empty__icon svg,
.security-dashboard .security-empty__icon img {
    width: 38px;
    height: 38px;
    opacity: 0.65;
}

.security-dashboard .security-empty p {
    margin: 0;
    color: var(--sd-admin-text-muted);
    font-size: 14px;
}

.security-dashboard .security-backup {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.security-dashboard .security-backup__meta {
    display: flex;
    gap: 6px;
    font-size: 13px;
    color: var(--sd-admin-text-muted);
    align-items: center;
}

.security-dashboard .security-backup__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.security-dashboard .security-backup__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-dashboard .security-backup__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.security-dashboard .security-backup__list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.security-dashboard .security-backup__list li {
    background: var(--color-indigo-500-a08);
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-align: center;
}

.security-dashboard .security-events {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-dashboard .security-events__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--sd-admin-text-primary);
}

.security-dashboard .security-events__description {
    font-size: 14px;
    color: var(--sd-admin-text-muted);
    margin: 0;
}

.security-dashboard .security-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-dashboard .security-event {
    border: 1px solid var(--color-slate-200-a60);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-base, var(--bg-color));
    box-shadow: var(--shadow-4-10-12, 0 10px 24px var(--color-slate-900-a07));
}

.security-dashboard .security-event__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.security-dashboard .security-event__main time {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.security-dashboard .security-event__meta {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.security-dashboard .security-code-row button,
.security-dashboard .security-backup__actions button,
.security-dashboard .security-form__actions button {
    white-space: nowrap;
}

.creator-alert__action:hover,
.creator-alert__action:focus {
    background: var(--color-indigo-700);
    color: var(--white);
}

.creator-settings .title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.creator-settings .description {
    color: var(--color-slate-650);
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.creator-status-card {
    border: 1px solid var(--color-indigo-500-a25);
    border-radius: 16px;
    padding: 16px;
    background: var(--color-indigo-600-a05);
    margin-bottom: 20px;
}

.creator-status-card--inline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-emerald-500-a08);
    border-color: var(--color-emerald-500-a35);
}

.creator-status-card__row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.creator-status-card__row:last-child {
    margin-bottom: 0;
}

.creator-status-card__label {
    font-weight: 600;
    color: var(--sd-admin-text-primary);
}

.creator-status-card__value {
    font-weight: 600;
    text-transform: capitalize;
}

.creator-status-card__value--approved {
    color: var(--color-emerald-700);
}

.creator-status-card__value--pending {
    color: var(--color-amber-700);
}

.creator-status-card__value--rejected {
    color: var(--color-red-600);
}

.creator-status-card__value--none {
    color: var(--sd-admin-text-muted);
}

.creator-status-card__hint {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.creator-status-card__note {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
    margin: 0;
}

:root[data-theme="dark"] .creator-status-card,
html.theme-dark .creator-status-card,
body.theme-dark .creator-status-card {
    background: var(--color-indigo-500-a12);
    border-color: var(--color-indigo-500-a35);
}

:root[data-theme="dark"] .creator-status-card--inline,
html.theme-dark .creator-status-card--inline,
body.theme-dark .creator-status-card--inline {
    background: var(--color-emerald-500-a18);
    border-color: var(--color-emerald-500-a35);
}

.creator-documents {
    margin-bottom: 24px;
}

.creator-documents__title {
    font-weight: 600;
    margin-bottom: 6px;
}

.creator-documents__list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
    color: var(--color-gray-800);
}

.creator-documents__list li {
    margin-bottom: 4px;
}

.creator-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.creator-form__group {
    border: 1px dashed var(--color-slate-400-a70);
    border-radius: 12px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    overflow: visible;
    min-height: 0;
}

.creator-form__group legend {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.creator-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.creator-input input[type="file"],
.creator-input input[type="text"],
.creator-input input[type="number"],
.creator-input input[type="email"],
.creator-input select,
.creator-input textarea {
    border: 2px solid var(--color-slate-400-a70);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: var(--bg-base, var(--bg-color));
}

.creator-input input[type="file"]:focus,
.creator-input input[type="text"]:focus,
.creator-input input[type="number"]:focus,
.creator-input input[type="email"]:focus,
.creator-input select:focus,
.creator-input textarea:focus {
    border-color: var(--button-blue-color) !important;
    box-shadow: 0 0 0 3px var(--button-blue-a15);
    outline: none !important;
}

:root[data-theme="dark"] .creator-input input[type="file"],
html.theme-dark .creator-input input[type="file"],
body.theme-dark .creator-input input[type="file"],
:root[data-theme="dark"] .creator-input input[type="text"],
html.theme-dark .creator-input input[type="text"],
body.theme-dark .creator-input input[type="text"],
:root[data-theme="dark"] .creator-input input[type="number"],
html.theme-dark .creator-input input[type="number"],
body.theme-dark .creator-input input[type="number"],
:root[data-theme="dark"] .creator-input input[type="email"],
html.theme-dark .creator-input input[type="email"],
body.theme-dark .creator-input input[type="email"],
:root[data-theme="dark"] .creator-input select,
html.theme-dark .creator-input select,
body.theme-dark .creator-input select,
:root[data-theme="dark"] .creator-input textarea,
html.theme-dark .creator-input textarea,
body.theme-dark .creator-input textarea {
    background: var(--surface);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

:root[data-theme="dark"] .creator-input input[type="file"]:focus,
html.theme-dark .creator-input input[type="file"]:focus,
body.theme-dark .creator-input input[type="file"]:focus,
:root[data-theme="dark"] .creator-input input[type="text"]:focus,
html.theme-dark .creator-input input[type="text"]:focus,
body.theme-dark .creator-input input[type="text"]:focus,
:root[data-theme="dark"] .creator-input input[type="number"]:focus,
html.theme-dark .creator-input input[type="number"]:focus,
body.theme-dark .creator-input input[type="number"]:focus,
:root[data-theme="dark"] .creator-input input[type="email"]:focus,
html.theme-dark .creator-input input[type="email"]:focus,
body.theme-dark .creator-input input[type="email"]:focus,
:root[data-theme="dark"] .creator-input select:focus,
html.theme-dark .creator-input select:focus,
body.theme-dark .creator-input select:focus,
:root[data-theme="dark"] .creator-input textarea:focus,
html.theme-dark .creator-input textarea:focus,
body.theme-dark .creator-input textarea:focus {
    border-color: var(--button-blue-color) !important;
    box-shadow: 0 0 0 3px var(--button-blue-a25);
}

.creator-input--textarea textarea {
    min-height: 90px;
    resize: vertical;
    overflow: auto;
}

textarea,
textarea.form-input,
.form-input textarea,
.contact-page textarea,
.creator-input--textarea textarea {
    resize: vertical;
    overflow-x: hidden;
}

.creator-form__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.creator-form__alert {
    font-size: 13px;
    color: var(--color-gray-800);
    min-height: 20px;
}

.creator-form__alert.is-success {
    color: var(--color-emerald-700);
}

.creator-form__alert.is-error {
    color: var(--color-red-600);
}

.creator-form__hint {
    font-size: 13px !important;
    color: var(--color-6b7280);
}

.creator-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.creator-grid-pref {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(1, minmax(200px, 1fr));
}

.creator-payout-group {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.creator-payout-group[hidden] {
    display: none !important;
}

.btn-primary {
    background: var(--btn-primary-bg, linear-gradient(135deg, var(--color-4f46e5), var(--color-indigo-500)));
    border: none;
    color: var(--btn-primary-text, var(--white));
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--btn-primary-hover-bg, linear-gradient(135deg, var(--color-indigo-700), var(--color-4f46e5)));
}


/* Settings dashboard */

:root {
    --sd-admin-text-primary: #111b2e;
    --sd-admin-text-danger: #e05e5e;
    --sd-admin-text-muted: var(--text-gray);
    --sd-admin-link: var(--color-brand-blue);
    --sd-admin-bg-blue-soft: #eef1f6;
    --sd-admin-bg-blue-softer: #e9f2ff;
    --sd-admin-bg-teal-soft: #e8f7f6;
    --sd-admin-bg-coral-soft: #ffe8e6;
    --sd-admin-bg-danger-soft: #fff2f1;
    --sd-admin-bg-posts-soft: #f3fbfc;
    --sd-admin-bg-offwhite: #f6f8fb;
    --sd-admin-hover-bg: rgba(17, 27, 46, 0.06);
    --sd-admin-hover-bg-subtle: rgba(17, 27, 46, 0.04);
    --sd-admin-border: var(--border-subtle, var(--color-midnight-900-a08));
    --sd-admin-shadow: var(--shadow-soft, var(--box-shadow));
}

.card_admin.settings-dashboard {
    background-color: var(--bg-elevated);
    border-radius: 15px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: var(--text-dark);
}

.settings-dashboard .h1 {
    padding: 0;
    font-size: 28px;
    font-weight: 700;
}

.settings-dashboard-intro {
    margin-top: -8px;
    color: var(--sd-admin-text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.kpi-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-card {
    background: var(--bg-base, var(--bg-color));
    color: var(--text-dark);
    border-radius: 14px;
    padding: 16px 18px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kpi-card {
    flex: 1 1 260px;
    max-width: 100%;
}

.kpi-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kpi-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kpi-icon svg {
    width: 24px;
    height: 24px;
}

.kpi-icon--followers {
    background: var(--sd-admin-bg-blue-soft);
    color: var(--sd-admin-text-primary);
}

.kpi-icon--subscribers {
    background: var(--sd-admin-bg-blue-softer);
    color: var(--sd-admin-text-primary);
}

.kpi-icon--earnings {
    background: var(--sd-admin-bg-coral-soft);
    color: var(--color-coral-500);
}

.kpi-icon--supporters {
    background: var(--sd-admin-bg-teal-soft);
    color: var(--color-cyan-500);
}

.kpi-icon--revenue {
    background: var(--sd-admin-bg-danger-soft);
    color: var(--danger-alt);
}

.kpi-amount {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.kpi-period {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.kpi-delta {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subscription-fees-segment-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.subscription-fees-segment {
    border: 1px solid var(--border-subtle, var(--color-midnight-900-a08));
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--bg-base, var(--bg-color));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subscription-fees-segment__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subscription-fees-segment__indicator {
    width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--accent);
    flex-shrink: 0;
}

.subscription-fees-segment__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.subscription-fees-segment__title {
    font-weight: 600;
    font-size: 14px;
}

.subscription-fees-segment__percent {
    font-size: 14px;
    color: var(--sd-admin-text-muted);
}

.subscription-fees-segment__indicator--creator {
    background: var(--accent);
}

.subscription-fees-segment__indicator--platform {
    background: var(--button-blue-color);
}

.subscription-fees-segment__indicator--processing {
    background: var(--warning);
}

.revenue-progress {
    margin-top: 18px;
}

.revenue-progress__chart {
    display: block;
    width: 100%;
    height: 16px;
}

.revenue-progress__background {
    fill: var(--border-subtle, var(--color-midnight-900-a08));
}

.revenue-progress__segment {
    fill: var(--accent);
}

.revenue-progress__segment--creator {
    fill: var(--accent);
}

.revenue-progress__segment--platform {
    fill: var(--button-blue-color);
}

.revenue-progress__segment--processing {
    fill: var(--warning);
}

.subscription-fees-calculator__results {
    margin-top: 16px;
    width: 100%;
}

.subscription-fees-resources {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscription-fees-resources__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subscription-fees-resource__trigger {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.subscription-fees-resource__trigger::after {
    content: ">";
    font-size: 14px;
    opacity: 0.6;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.subscription-fees-resource__trigger:hover::after,
.subscription-fees-resource__trigger:focus-visible::after {
    transform: translateX(4px);
    opacity: 1;
}

.fee-resource-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    z-index: 1200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.fee-resource-modal.is-open {
    display: flex;
}

.fee-resource-modal:target {
    display: flex;
}

body.fee-resource-modal-open {
    overflow: hidden;
}

.fee-resource-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: block;
}

.fee-resource-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: min(600px, 100%);
    padding: 32px;
    background: var(--bg-elevated, #fff);
    border-radius: 22px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
    color: var(--text-dark, #0f172a);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.fee-resource-modal__header header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding:0px !important;
}

.fee-resource-modal__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--button-blue-color, #0ea5e9), var(--color-4f86f7, #4f86f7));
    align-items: center;
    justify-content: center;
    color: var(--white, #fff);
    flex-shrink: 0;
}

.fee-resource-modal__icon svg {
    width: 22px;
    height: 22px;
}

.fee-resource-modal__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    flex: 1;
    margin: 0;
}

.fee-resource-modal__close {
    margin-left: auto;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right:10px;
    top:10px;
    z-index: 1;
}

.fee-resource-modal__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fee-resource-modal__intro {
    margin: 0;
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: var(--text-gray, rgba(71, 85, 105, 0.9));
}

.fee-resource-modal__list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark, rgba(15, 23, 42, 0.92));
}

.fee-resource-modal__list li {
    background-image:  none !important;
    background-position: 0 14px;
    background-repeat: no-repeat;
    background-size: 12px;
    background-attachment: scroll;
    margin-bottom: 4px;
    padding-left: 20px;
    list-style-type: none;
    font-size: 14px;
}

.fee-resource-modal__footer {
    margin: 0;
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: var(--text-gray, rgba(71, 85, 105, 0.9));
}

@media (max-width: 640px) {
    .fee-resource-modal {
        padding: 16px;
    }

    .fee-resource-modal__dialog {
        padding: 24px;
        border-radius: 18px;
        max-height: calc(100vh - 32px);
    }

    .fee-resource-modal__header header {
        align-items: center;
    }

    .fee-resource-modal__title {
        font-size: 18px;
    }
}

.blocked-card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.blocked-card {
    background: var(--sd-admin-bg-offwhite);
    border: 1px solid var(--sd-admin-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blocked-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blocked-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sd-admin-border);
}

.blocked-card__identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blocked-card__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.blocked-card__meta {
    display: grid;
    gap: 12px 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.blocked-card__meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blocked-card__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--sd-admin-text-muted);
}

.blocked-card__value {
    font-size: 14px;
    color: var(--text-dark);
}

.blocked-card__value--wrap {
    word-break: break-word;
    white-space: pre-wrap;
}

.blocked-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.blocked-empty-card {
    background: var(--sd-admin-bg-offwhite);
    border: 1px dashed var(--sd-admin-border);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscription-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.subscription-card {
    background: var(--sd-admin-bg-offwhite);
    border: 1px solid var(--sd-admin-border);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 8px 20px var(--sd-admin-hover-bg-subtle);
}

.subscription-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.subscription-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sd-admin-border);
}

.subscription-card__identity {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subscription-card__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.subscription-card__meta {
    display: grid;
    gap: 14px 18px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.subscription-card__meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subscription-card__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--sd-admin-text-muted);
}

.subscription-card__value {
    font-size: 14px;
    color: var(--text-dark);
}

.subscription-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--sd-admin-bg-teal-soft);
    color: var(--sd-admin-text-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.subscription-card__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscription-card__action {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subscription-card__form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.subscription-empty-card,
.subscription-history-empty {
    background: var(--sd-admin-bg-offwhite);
    border: 1px dashed var(--sd-admin-border);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscription-empty-card__title,
.subscription-history-empty__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.subscription-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscription-history-item {
    background: var(--sd-admin-bg-offwhite);
    border: 1px solid var(--sd-admin-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 6px 18px var(--sd-admin-hover-bg-subtle);
}

.subscription-history-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subscription-history-item__event {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.subscription-history-item__meta {
    display: grid;
    gap: 12px 16px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.subscription-history-item__meta-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subscription-history-item__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--sd-admin-text-muted);
}

.subscription-history-item__value {
    font-size: 14px;
    color: var(--text-dark);
}

.subscription-history-item__hint {
    color: var(--sd-admin-text-muted);
}

.creator-input--search-blocked {
    position: relative;
}

.creator-input--search-blocked input[type="search"] {
    border-radius: 14px;
    border: 1px solid var(--sd-admin-border);
    background: var(--sd-admin-bg-offwhite);
    padding: 12px 16px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: 0 2px 6px var(--sd-admin-hover-bg-subtle);
    color: var(--text-dark);
}

.creator-input--search-blocked input[type="search"]::placeholder {
    color: var(--sd-admin-text-muted);
}

.creator-input--search-blocked input[type="search"]:focus,
.creator-input--search-blocked input[type="search"]:focus-visible {
    outline: none !important;
    border-color: #000;
    background: var(--bg-base, var(--bg-color));
}

.blocked-empty-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.blocked-empty-card__desc {
    font-size: 14px;
    color: var(--sd-admin-text-muted);
    line-height: 1.5;
}

.kpi-delta.positive {
    color: var(--sd-admin-text-primary);
}

.kpi-delta.negative {
    color: var(--sd-admin-text-danger);
}

.kpi-delta.neutral {
    color: var(--sd-admin-text-muted);
}

.kpi-chart {
    background: var(--sd-admin-bg-posts-soft);
    border-radius: 16px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
}

.kpi-chart--line {
    background: var(--sd-admin-bg-offwhite);
}

.kpi-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.charts-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 16px;
}

.chart-card,
.donut-card {
    flex: 1 1 320px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.chart-card .chart-box,
.donut-card .chart-box {
    position: relative;
    width: 100%;
    height: clamp(240px, 40vw, 360px);
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.chart-card .chart-box canvas,
.donut-card .chart-box canvas {
    flex: 1 1 auto;
    width: 100% !important;
    height: 100% !important;
}

.chart-card .chart-box .chart-fallback,
.donut-card .chart-box .chart-fallback {
    margin-top: 12px;
}

.chart-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.chart-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-flex;
    margin-right: 6px;
}

.legend-blue {
    background: var(--color-brand-blue);
}

.legend-cyan {
    background: var(--color-cyan-400);
}

.legend-green {
  background: #16a34a;
}

.legend-orange {
  background: #f59e0b;
}

.legend-purple {
  background: #7c3aed;
}

.ads-campaign-link-wrap {
    margin-top: 6px;
}

.ads-campaign-link {
    font-size: 12px;
    color: var(--button-blue-color);
    text-decoration: none;
    word-break: break-word;
}

.ads-campaign-link:hover {
    text-decoration: underline;
}

.advanced_settings_box,
.payment_box,
.ads-campaign-section {
    overflow: visible;
}

.ads-section-heading {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark, #111827);
    margin-bottom: 12px;
}

.ads-campaign-section {
    background: rgba(31, 75, 216, 0.04);
    border: 1px solid rgba(31, 75, 216, 0.12);
    border-radius: 14px;
    padding: 16px;
    gap: 16px;
}

.ads-field-label {
    column-gap: 6px;
}

.ads-field-label>span:first-child {
    font-weight: 600;
    color: var(--text-dark, #111827);
}

.ads-help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.12));
    background: var(--hover-bg-color, #f3f4f6);
    color: var(--text-gray, #6b7280);
    font-size: 11px;
    font-weight: 600;
    cursor: help;
    position: relative;
}

.ads-help-button:hover,
.ads-help-button:focus {
    background: var(--btn-dark);
    color: var(--white);
    outline: none;
}

.ads-help-button:focus-visible {
    outline: 2px solid var(--button-blue-color);
    outline-offset: 2px;
}

.ads-help-button[aria-expanded='true'] {
    background: var(--btn-dark);
    color: var(--white);
}

.ads-tooltip {
    position: fixed;
    min-width: min(180px, calc(100vw - 24px));
    max-width: min(240px, calc(100vw - 24px));
    background: var(--text-dark, #111827);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.4;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    z-index: 999999;
    opacity: 0;
    transform: translateY(2px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: auto;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    --ads-tooltip-anchor: 50%;
    --ads-tooltip-origin-x: 50%;
    --ads-tooltip-origin-y: 0%;
    transform-origin: var(--ads-tooltip-origin-x) var(--ads-tooltip-origin-y);
}

.ads-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ads-tooltip::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: inherit;
    transform: rotate(45deg);
    left: var(--ads-tooltip-anchor, 50%);
    margin-left: -4px;
}

.ads-tooltip[data-placement='bottom']::after {
    top: -4px;
    box-shadow: -2px -2px 4px rgba(15, 23, 42, 0.08);
}

.ads-tooltip[data-placement='top']::after {
    bottom: -4px;
    box-shadow: 2px 2px 4px rgba(15, 23, 42, 0.08);
}

.legend-red {
    background: var(--color-coral-500);
}

.chart-fallback {
    margin-top: 12px;
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.chart-fallback.is-hidden {
    display: none;
}

.insight-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.insight-card {
    flex: 1 1 320px;
    position: relative;
    overflow: hidden;
}

.insight-card .insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.insight-title-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight-card .insight-title {
    font-size: 16px;
    font-weight: 600;
}

.insight-info {
    background: transparent;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--sd-admin-text-muted);
    cursor: pointer;
}

.insight-info:focus-visible {
    outline: 2px solid var(--accent, var(--color-brand-blue));
    outline-offset: 2px;
}

.insight-info svg {
    width: 18px;
    height: 18px;
}

.insight-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    max-width: 260px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-base, var(--bg-color));
    color: var(--text-dark);
    font-size: 13px;
    line-height: 1.4;
    box-shadow: var(--sd-admin-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.insight-title-wrap:focus-within .insight-tooltip,
.insight-title-wrap:hover .insight-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.insight-card .insight-summary {
    font-size: 14px;
    font-weight: 500;
    color: var(--sd-admin-text-primary);
}

.insight-card .insight-trend {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.list-card {
    flex: 1 1 320px;
    gap: 12px;
    max-height: 420px;
}

.list-header {
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sd-admin-border);
}

.list-header .icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.list-header .view-all {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background: var(--black);
    padding: 6px 10px;
    border-radius: 10px;
    text-decoration: none;
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 320px;
    padding-right: 4px;
}

.activity-item {
    display: flex;
    gap: 12px;
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--sd-admin-hover-bg-subtle);
    transition: background .2s ease;
}

.activity-item:hover {
    background: var(--sd-admin-hover-bg);
}

.activity-item--has-link {
    cursor: pointer;
}

.activity-item--has-link:focus,
.activity-item--has-link:focus-visible {
    outline: 2px solid var(--accent, var(--button-blue-color, #2563eb));
    outline-offset: 2px;
}

.activity-item--empty {
    justify-content: center;
    color: var(--sd-admin-text-muted);
    font-size: 14px;
}

.avatar-stack {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sd-admin-bg-blue-soft);
    color: var(--sd-admin-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.avatar-stack .avatar-link {
    display: block;
    width: 100%;
    height: 100%;
}

.avatar-stack img,
.avatar-stack .avatar-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initial {
    font-size: 16px;
}

.activity-name {
    font-weight: 600;
    color: var(--sd-admin-text-primary);
    text-decoration: none;
}

.activity-name:hover,
.activity-name:focus {
    text-decoration: underline;
}

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

.activity-body .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.activity-body .title span {
    color: var(--sd-admin-text-muted);
}

.activity-body .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.activity-body .meta strong {
    color: var(--text-dark);
    font-weight: 600;
}

.activity-chip {
    display: inline-flex;
    align-items: center;
    padding: 0px 10px;
    border-radius: 999px;
    background: var(--sd-admin-bg-offwhite, rgba(17, 17, 17, 0.08));
    color: var(--sd-admin-text-primary, var(--text-dark));
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.activity-meta__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-size: inherit;
}

.activity-meta__item+.activity-meta__item::before {
    content: '·';
    margin: 0 6px;
    color: inherit;
}

.activity-meta__amount {
    font-weight: 600;
    color: var(--text-dark);
}

.activity-meta__time {
    color: var(--sd-admin-text-muted);
}

.activity-page__section-empty {
    margin: 0;
    color: var(--sd-admin-text-muted);
    font-size: 12px !important;
}

.super-thanks-kpi-card,
.payments-kpi-card {
    gap: 10px;
}

.super-thanks-kpi-icon,
.payments-kpi-icon {
    border-radius: 14px;
    background: var(--sd-admin-bg-offwhite);
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.super-thanks-kpi-icon--accent,
.payments-kpi-icon--accent {
    color: var(--accent);
}

.super-thanks-kpi-icon--primary,
.payments-kpi-icon--primary {
    color: var(--button-blue-color);
}

.super-thanks-kpi-icon--warning,
.payments-kpi-icon--warning {
    color: var(--warning);
}

.payments-kpi-icon--success {
    color: #16a34a;
}

.super-thanks-kpi-amount,
.payments-kpi-amount {
    font-size: 20px;
    font-weight: 700;
}

.super-thanks-kpi-period,
.payments-kpi-period {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}


/* Bank dashboard */

.settings-dashboard--bank {
    gap: 24px;
}

.bank-kpi-card {
    gap: 10px;
}

.bank-kpi-icon {
    border-radius: 14px;
    background: var(--sd-admin-bg-offwhite);
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bank-kpi-icon svg {
    width: 24px;
    height: 24px;
}

.bank-kpi-icon--balance {
    background: var(--sd-admin-bg-blue-softer);
    color: var(--button-blue-color);
}

.bank-kpi-icon--pending {
    background: var(--sd-admin-bg-coral-soft);
    color: var(--color-coral-500);
}

.bank-kpi-icon--last {
    background: var(--sd-admin-bg-teal-soft);
    color: var(--color-cyan-500);
}

.bank-kpi-amount {
    font-size: 20px;
    font-weight: 700;
}

.bank-kpi-hint {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.bank-status-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bank-status-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bank-status-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--sd-admin-bg-blue-soft);
    color: var(--button-blue-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bank-status-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bank-status-card__eyebrow {
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--sd-admin-text-muted);
}

.bank-status-card__updated {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px !important;
    color: var(--sd-admin-text-muted);
}

.bank-status-card__updated span:last-child {
    color: var(--text-dark);
    font-weight: 600;
}

.bank-status-card__note {
    font-size: 13px !important;
    line-height: 1.55;
    color: var(--sd-admin-text-muted);
}

.bank-status-card__note strong {
    color: var(--sd-admin-text-primary);
    font-weight: 600;
    margin-right: 4px;
}

.bank-status-card__banner {
    margin: 12px 0;
}

.bank-status-card__admin-note {
    margin: 12px 0;
}

.bank-status-card__admin-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--sd-admin-text-primary);
}

.bank-form {
    gap: 20px;
}

.bank-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.settings-dashboard--bank .creator-form__group {
    border: none;
    padding: 0;
    background: transparent;
}

.settings-dashboard--bank .creator-form__group legend {
    margin-bottom: 0;
}

.bank-form-card {
    border: none;
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    overflow: visible !important;
    max-height: none;
    align-content: flex-start;
}

.bank-form-card__title {
    flex: 0 0 100%;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.28px;
    text-transform: uppercase;
    color: var(--sd-admin-text-muted);
}

.bank-form-card .creator-input {
    flex: 1 1 220px;
    min-width: 220px;
}

.bank-form-card .creator-input-plus {
    flex: 1 1 auto !important;
}

.bank-form-card .creator-input--textarea {
    flex-basis: 100%;
}

.bank-form-card legend {
    border: 0;
    padding: 0;
}

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

.bank-form-actions .btn-primary {
    min-width: 180px;
}

.bank-withdraw-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bank-withdraw-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bank-withdraw-card__title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bank-withdraw-card__title-wrap .btn-primary {
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.2;
}

.bank-withdraw-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.bank-withdraw-card__balance {
    margin: 0;
    font-size: 14px !important;
    color: var(--sd-admin-text-muted);
}

.bank-withdraw-card__balance strong {
    color: var(--text-dark);
    font-weight: 700;
}

.bank-withdraw-card__hint {
    margin: 0;
    font-size: 13px !important;
    color: var(--sd-admin-text-muted);
}

.bank-withdraw-form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.bank-withdraw-form-grid__row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bank-withdraw-form-grid .creator-input--textarea {
    grid-column: 1 / -1;
}

.bank-withdrawal-form textarea {
    resize: vertical;
    min-height: 72px;
}

.bank-withdrawal-form button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.bank-table-card .table-card__hint {
    color: var(--sd-admin-text-muted);
}

.bank-table-card .table-card__summary {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.bank-table {
    min-width: 600px;
}

.bank-table__cell {
    font-size: 13px;
}

.bank-table__cell--id {
    font-variant-numeric: tabular-nums;
    color: var(--sd-admin-text-muted);
}

.bank-table__cell--amount {
    font-weight: 600;
}

.bank-table__cell--status .status-badge {
    font-size: 12px;
}

.bank-table__cell--requested,
.bank-table__cell--processed {
    color: var(--sd-admin-text-muted);
}


/* Payout dashboard shared styles */

.settings-dashboard--payouts {
    gap: 24px;
}

.payout-summary-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payout-summary-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payout-summary-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--sd-admin-bg-offwhite);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--button-blue-color);
}

.payout-summary-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payout-summary-card__eyebrow {
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--sd-admin-text-muted);
}

.payout-summary-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.payout-summary-card__details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payout-summary-card__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    font-size: 13px;
}

.payout-summary-card__label {
    font-weight: 600;
    color: var(--sd-admin-text-muted);
}

.payout-summary-card__value {
    font-weight: 600;
    color: var(--text-dark);
}

.payout-summary-card__status {
    font-size: 12px;
}

.payout-summary-card__connection {
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--sd-admin-text-muted);
}

.payout-summary-card__connection.is-connected {
    color: var(--sd-admin-text-primary);
}

.payout-summary-card__connection.is-disconnected {
    color: var(--sd-admin-text-muted);
}

.payout-summary-card__hint {
    margin: 0;
    font-size: 13px !important;
    color: var(--sd-admin-text-muted);
}

.payout-summary-card--preferences .payout-summary-card__icon {
    background: var(--sd-admin-bg-teal-soft);
    color: var(--color-cyan-500);
}

.payout-methods-form,
.payout-preferences-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.payout-methods-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--color-sky-500-a08);
    color: var(--sd-admin-text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.payout-methods-hint svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: var(--color-blue-600);
}

.payout-methods-hint p {
    margin: 0;
}

.payout-methods-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.payout-method-card,
.payout-preferences-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payout-method-card header {
    padding: 10px;
}

.payout-method-card__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.payout-method-card__titles {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payout-method-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.payout-method-card__description {
    margin: 0;
    font-size: 13px !important;
    color: var(--sd-admin-text-muted);
}

.payout-method-card__status {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.payout-method-card__chip {
    background: var(--sd-admin-bg-blue-softer);
    color: var(--button-blue-color);
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.payout-method-card__status-badge {
    font-size: 12px;
}

.payout-method-card__connection {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.payout-method-card__connection.is-connected {
    color: var(--sd-admin-text-primary);
}

.payout-method-card__connection.is-disconnected {
    color: var(--sd-admin-text-muted);
}

.payout-method-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

.payout-method-card__note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: var(--sd-admin-bg-blue-softer);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--sd-admin-text-primary);
    margin-bottom: 12px;
}

.payout-method-card__note strong {
    font-weight: 600;
    color: inherit;
}

.payout-method-card__banner {
    background: var(--color-amber-500-a15);
    color: var(--color-amber-700);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.payout-summary-card__banner--pending {
    background: var(--color-sky-500-a15);
    color: var(--color-blue-600);
}

.payout-method-card__meta-item {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.payout-method-card__meta-item strong {
    color: var(--sd-admin-text-primary);
    font-weight: 600;
}

.payout-method-card__priority {
    max-width: 200px;
}

.payout-method-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.payout-method-card__default {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.creator-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--button-blue-color);
}

.payout-method-card__buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.payout-method-card__buttons button {
    flex: 0 1 auto;
}

.payout-method-card__switch {
    margin: 0;
    display: inline-flex;
}

.payout-method-card__switch-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--sd-admin-text-muted);
    cursor: pointer;
}

.payout-method-card__inline-message {
    margin: 0;
    font-size: 13px !important;
    color: var(--sd-admin-text-muted);
    max-width: 360px;
}

.payout-method-card__inline-message.is-success {
    color: var(--color-emerald-700);
}

.payout-method-card__inline-message.is-error {
    color: var(--danger-alt);
}

.payout-inline-link {
    color: var(--button-blue-color);
    font-weight: 600;
}

.payout-inline-link:hover,
.payout-inline-link:focus {
    text-decoration: underline;
}

.btn-dark {
    background: var(--color-slate-900);
    border: 1px solid var(--color-slate-900);
    color: var(--white);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-dark:hover,
.btn-dark:focus {
    background: var(--text-dark);
    border-color: var(--text-dark);
    color: var(--white);
}

.payout-method-card__buttons .btn-dark {
    min-width: 120px;
    justify-content: center;
}

.payout-methods-form__actions,
.payout-preferences-form__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payout-method-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payout-method-fields[hidden] {
    display: none !important;
}

.payout-method-fields__intro {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payout-method-fields__intro h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.payout-method-fields__intro p {
    margin: 0;
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.payout-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.payout-method-fields__textarea textarea {
    min-height: 96px;
    resize: vertical;
}

.payout-preferences-form__groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.super-thanks-charts {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.super-thanks-charts>* {
    width: 100%;
}

.super-thanks-chart-card .chart-box {
    height: min(300px, 28vw);
}

.table-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
}

.table-card__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.table-card__hint,
.table-card__summary {
    margin: 0;
    font-size: 13px !important;
    color: var(--sd-admin-text-muted);
}

.table-card__scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

.earnings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.earnings-table th,
.earnings-table td {
    padding: 12px 14px;
    font-size: 13px !important;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-dark);
    white-space: normal;
    vertical-align: middle;
}


/* Ads dashboard grid */

.ads-grid-wrapper {
    min-width: 100%;
}

.ads-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.8fr) minmax(220px, 1.5fr) minmax(200px, 1.2fr) minmax(160px, 0.8fr);
    gap: 16px;
    align-items: flex-start;
    min-width: 760px;
}

.ads-grid--header {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sd-admin-text-muted);
}

.ads-grid--header>div {
    display: flex;
    align-items: center;
}

.ads-header-actions {
    justify-content: flex-end;
}

.ads-grid-body {
    width: 100%;
}

.ads-grid-row {
    padding: 20px 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.ads-grid-body .ads-grid-row:last-child {
    border-bottom: none;
}

.ads-cell-full {
    grid-column: 1 / -1;
    font-size: 13px;
    color: var(--text-dark);
    text-align: left;
}

.ads-placeholder-row .ads-cell-full {
    text-align: center;
    color: var(--sd-admin-text-muted);
}

.ads-campaign-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ads-campaign-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-word;
}

.ads-campaign-status {
    display: flex;
    align-items: center;
}

.ads-campaign-meta {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sd-admin-text-muted);
}

.ads-budget-cell,
.ads-performance-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ads-budget-list,
.ads-performance-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ads-budget-line,
.ads-performance-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ads-budget-label,
.ads-performance-label,
.ads-dashboard .ads-spent-meta,
.ads-dashboard .ads-spent-over,
.ads-dashboard .ads-remaining-meta,
.ads-dashboard .ads-toggle-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sd-admin-text-muted);
}

.ads-budget-value,
.ads-performance-value {
    font-weight: 600;
    color: var(--text-dark);
}

.ads-dashboard .ads-spent-over {
    color: var(--color-red-600);
}

.ads-budget-meter {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--border-subtle);
    overflow: hidden;
    margin: 4px 0;
}

.ads-budget-meter__fill {
    height: 100%;
    background: var(--color-brand-blue);
    transition: width 0.2s ease-in-out;
}

.ads-budget-meter__fill.is-over {
    background: var(--color-red-500);
}

.ads-actions-cell {
    text-align: right;
}

.ads-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ads-toggle-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ads-toggle-group.is-disabled .ads-toggle-label {
    color: var(--sd-admin-text-muted);
}

.ads-action-btn {
    border: 1px solid var(--border-subtle);
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ads-action-btn:hover {
    background: var(--hover-bg-color);
    border-color: var(--hover-bg-color);
}

.ads-action-btn:focus-visible {
    outline: 2px solid var(--color-brand-blue);
    outline-offset: 2px;
}

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

.ads-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ads-edit-actions {
    padding: 15px 0px;
}

.ads-btn:hover {
    transform: translateY(-1px);
}

.ads-btn:focus-visible {
    outline: 2px solid var(--color-brand-blue);
    outline-offset: 2px;
}

.ads-btn-primary {
    background: var(--color-brand-blue);
    color: var(--white);
}

.ads-btn-primary:hover {
    background: var(--color-brand-blue-hover, #1f4bd8);
}

.ads-btn-grey {
    background: var(--bg-elevated);
    color: var(--text-dark);
}

.ads-btn-grey:hover {
    background: var(--hover-bg-color);
}

@media (max-width: 960px) {
    .ads-grid {
        grid-template-columns: minmax(200px, 1fr);
        min-width: 100%;
    }
    .ads-grid--header {
        display: none;
    }
    .ads-grid-row {
        grid-template-columns: minmax(200px, 1fr);
        padding: 18px 0;
    }
    .ads-actions-cell,
    .ads-actions {
        text-align: left;
        justify-content: flex-start;
    }
    .ads-actions {
        gap: 10px;
    }
    .ads-cell-full {
        grid-column: 1 / -1;
    }
}

.earnings-table th {
    text-align: left;
    font-weight: 600;
    color: var(--text-gray);
}

.earnings-table th:nth-child(5),
.earnings-table th:nth-child(6),
.earnings-table th:nth-child(7),
.earnings-table th:nth-child(8),
.earnings-table th:nth-child(10),
.earnings-table td:nth-child(5),
.earnings-table td:nth-child(6),
.earnings-table td:nth-child(7),
.earnings-table td:nth-child(8),
.earnings-table td:nth-child(10) {
    text-align: right;
}

.earnings-supporter__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.earnings-supporter__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.earnings-supporter__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.earnings-supporter__names {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.earnings-supporter__display {
    font-weight: 600;
    color: var(--text-dark);
}

.earnings-supporter__username {
    font-size: 12px;
    color: var(--text-gray);
}

.earnings-post a {
    color: var(--sd-admin-link);
    font-weight: 600;
    text-decoration: none;
}

.earnings-post a:hover {
    text-decoration: underline;
}

.earnings-reference {
    font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-gray);
    max-width: 220px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.table-invoice-link {
    color: var(--sd-admin-link);
    font-weight: 600;
    text-decoration: none;
}

.table-invoice-link:hover {
    text-decoration: underline;
}

.invoice {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.invoice__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 16px;
}

.brand-xl {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-xl__logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--sd-admin-bg-offwhite);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
}

.brand-xl__logo svg,
.brand-xl__logo img {
    width: 32px;
    height: 32px;
}

.brand-xl__name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.invoice__actions {
    display: flex;
    gap: 12px;
}

.inv-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--color-brand-blue-a11);
    color: var(--button-blue-color);
    font-weight: 600;
    text-decoration: none;
}

.inv-action:hover {
    text-decoration: none;
    filter: brightness(0.96);
}

.inv-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 12px 0;
}

.box-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-gray);
    font-weight: 700;
    margin-bottom: 8px;
}

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

.party__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.party__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.party__name:hover {
    text-decoration: underline;
}

.party__meta {
    font-size: 13px;
    color: var(--sd-admin-text-muted);
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--text-dark);
}

.summary-list .paid {
    color: var(--button-blue-color);
    font-weight: 800;
    letter-spacing: 0.2px;
}

.divider {
    height: 1px;
    background: var(--border-subtle);
}

.invoice__items table {
    width: 100%;
    border-collapse: collapse;
}

.invoice__items th {
    text-transform: uppercase;
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 0.3px;
}

.invoice__items td,
.invoice__items th {
    padding: 12px 0;
}

.amount-mono {
    font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    text-align: right;
    color: var(--text-dark);
}

.totals-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.totals-box .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
}

.thanks {
    text-align: center;
    font-weight: 800;
    margin-top: 12px;
}

.support-link {
    text-align: center;
}

.support-link a {
    color: var(--sd-admin-link);
    font-weight: 700;
    text-decoration: none;
}

.support-link a:hover {
    text-decoration: underline;
}

.foot-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--sd-admin-text-muted);
    text-align: center;
}

@media print {
    .invoice__actions,
    .support-link {
        display: none !important;
    }
    .invoice {
        box-shadow: none;
        padding: 0;
    }
}

.earnings-empty {
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
}


/* ===== Media Viewer ===================================================== */

html.media-viewer--locked,
body.media-viewer--locked {
    overflow: hidden;
}

.media-viewer {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: grid;
    place-items: center;
    padding: clamp(12px, 4vw, 32px);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease-in-out, visibility 160ms ease-in-out;
}

.media-viewer--active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.media-viewer__overlay {
    position: absolute;
    inset: 0;
    background: var(--rgba-80, rgba(0, 0, 0, 0.82));
    opacity: 0;
    transition: opacity 160ms ease-in-out;
}

.media-viewer--active .media-viewer__overlay {
    opacity: 1;
}

.media-viewer__viewport {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - clamp(48px, 12vh, 168px));
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(18px, 3vw, 32px);
    background: var(--bg-elevated, var(--white));
    color: var(--primary-text, var(--text-dark));
    border-radius: 20px;
    box-shadow: var(--shadow-20-40-25, var(--shadow-8-24-10));
    overflow: hidden;
}

.media-viewer__content {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 140px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.media-viewer__content img,
.media-viewer__content video,
.media-viewer__content canvas {
    max-width: 100%;
    border-radius: 16px;
    background: var(--bg-muted, var(--hover-bg-color));
}

.media-viewer__stage {
    position: relative;
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 24px);
    background: var(--bg-muted, var(--grey-light));
    border-radius: 18px;
    overflow: hidden;
}

.media-viewer__stage>* {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-viewer__meta {
    flex: 0 0 auto;
    color: var(--text, var(--text-gray));
    font-size: 0.95rem;
    line-height: 1.6;
}

.media-viewer__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.media-viewer__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius, 999px);
    background: var(--button-blue-color);
    color: var(--button-text, var(--white));
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 160ms ease-in-out, transform 160ms ease-in-out;
}

.media-viewer__action:hover {
    background: var(--button-blue-hover-color, var(--button-blue-color));
    transform: translateY(-1px);
}

.media-viewer__action:focus-visible {
    outline: 2px solid var(--button-blue-color);
    outline-offset: 2px;
}

.media-viewer__close {
    position: absolute;
    top: clamp(12px, 2vw, 20px);
    right: clamp(12px, 2vw, 20px);
    width: 42px;
    height: 42px;
    border-radius: var(--radius, 999px);
    border: 1px solid var(--border-subtle, var(--rgba-11));
    background: var(--surface, var(--white));
    color: var(--text, var(--text-dark));
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 160ms ease-in-out, color 160ms ease-in-out, border-color 160ms ease-in-out, transform 160ms ease-in-out;
    box-shadow: var(--shadow-2-6-08, var(--box-shadow));
}

.media-viewer__close:hover,
.media-viewer__close:focus {
    background: var(--hover-bg-color, var(--bg-muted));
    color: var(--text-dark, var(--black));
    border-color: var(--button-blue-color);
    transform: translateY(-1px);
}

.media-viewer__close:focus-visible {
    outline: 2px solid var(--button-blue-color);
    outline-offset: 2px;
}

.media-viewer__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius, 999px);
    border: 1px solid var(--border-subtle, var(--rgba-11));
    background: var(--surface, var(--white));
    color: var(--text, var(--text-dark));
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-2-6-08, var(--box-shadow));
    transition: background-color 160ms ease-in-out, color 160ms ease-in-out, border-color 160ms ease-in-out;
    z-index: 2;
}

.media-viewer__nav[hidden] {
    display: none;
}

.media-viewer__nav:disabled {
    cursor: default;
    opacity: 0.55;
    box-shadow: none;
}

.media-viewer__nav:not(:disabled):hover,
.media-viewer__nav:not(:disabled):focus {
    background: var(--hover-bg-color, var(--bg-muted));
    color: var(--text-dark, var(--black));
    border-color: var(--button-blue-color);
}

.media-viewer__nav:focus-visible {
    outline: 2px solid var(--button-blue-color);
    outline-offset: 2px;
}

.media-viewer__nav--prev {
    left: clamp(12px, 4vw, 28px);
}

.media-viewer__nav--next {
    right: clamp(12px, 4vw, 28px);
}

.media-viewer__reset {
    position: absolute;
    bottom: clamp(12px, 3vw, 24px);
    right: clamp(12px, 3vw, 24px);
    padding: 8px 14px;
    border-radius: var(--radius, 999px);
    border: 1px solid var(--border-subtle, var(--rgba-11));
    background: var(--surface, var(--white));
    color: var(--text, var(--text-dark));
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: var(--shadow-2-6-08, var(--box-shadow));
    transition: background-color 160ms ease-in-out, color 160ms ease-in-out, border-color 160ms ease-in-out;
    z-index: 2;
}

.media-viewer__reset[hidden] {
    display: none;
}

.media-viewer__reset:hover,
.media-viewer__reset:focus {
    background: var(--hover-bg-color, var(--bg-muted));
    color: var(--text-dark, var(--black));
    border-color: var(--button-blue-color);
}

.media-viewer__reset:focus-visible {
    outline: 2px solid var(--button-blue-color);
    outline-offset: 2px;
}

.media-viewer--loading .media-viewer__content {
    opacity: 0.6;
    pointer-events: none;
}

.media-viewer__spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--hover-bg-color, rgba(255, 255, 255, 0.35));
    border-top-color: var(--button-blue-color);
    animation: mediaViewerSpin 1s linear infinite;
    margin: 24px auto;
}

.media-viewer__zoom-surface {
    position: relative;
    overflow: hidden;
    touch-action: none;
}

.media-viewer__zoom-surface img {
    will-change: transform;
}

.media-viewer__zoom-surface.is-zoomed {
    cursor: grab;
}

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

@media (prefers-reduced-motion: reduce) {
    .media-viewer,
    .media-viewer__overlay,
    .media-viewer__action,
    .media-viewer__close {
        transition-duration: 0.01ms;
        transition-delay: 0ms;
    }
    .media-viewer__spinner {
        animation-duration: 1.6s;
    }
}

@media (max-width: 520px) {
    .media-viewer {
        padding: 0;
    }
    .media-viewer__viewport {
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }
    .media-viewer__close {
        top: 16px;
        right: 16px;
    }
    .media-viewer__nav {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .media-viewer__reset {
        padding: 6px 11px;
        font-size: 11px;
    }
}


/* LightGallery CSP-safe thumbnail strip */

.lg-components .dz-lg-thumb-strip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    gap: 12px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

@supports not (backdrop-filter: blur(8px)) {
    .lg-components .dz-lg-thumb-strip {
        background: rgba(15, 23, 42, 0.85);
    }
}

.dz-lg-thumb-list {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    max-width: min(920px, 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.dz-lg-thumb-list li {
    background-image: none !important;
}

.dz-lg-thumb-list:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
}

.dz-lg-thumb-list::-webkit-scrollbar {
    height: 6px;
}

.dz-lg-thumb-list::-webkit-scrollbar-track {
    background: transparent;
}

.dz-lg-thumb-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.dz-lg-thumb-item {
    flex: 0 0 auto;
}

.dz-lg-thumb {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.dz-lg-thumb:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

.dz-lg-thumb-img,
.dz-lg-thumb-fallback {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    opacity: 0.7;
}

.dz-lg-thumb-img {
    object-fit: cover;
}

.dz-lg-thumb:hover .dz-lg-thumb-img,
.dz-lg-thumb:hover .dz-lg-thumb-fallback {
    opacity: 0.9;
}

.dz-lg-thumb.is-active .dz-lg-thumb-img,
.dz-lg-thumb.is-active .dz-lg-thumb-fallback,
.dz-lg-thumb[aria-current="true"] .dz-lg-thumb-img,
.dz-lg-thumb[aria-current="true"] .dz-lg-thumb-fallback {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
}

.dz-lg-thumb.is-active,
.dz-lg-thumb[aria-current="true"] {
    cursor: default;
}

.dz-lg-thumb-strip+.lg-sub-html {
    margin-top: 8px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.subscription-table-card {
    margin-top: 20px;
}

.subscription-row--cancelled {
    background: var(--alert-success-bg, rgba(15, 81, 50, 0.08));
}

.settings-toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
}

.settings-toast {
    min-width: 220px;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--color-gray-800);
    color: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: auto;
    font-size: 14px;
    line-height: 1.4;
}

.settings-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.settings-toast.is-success {
    background: var(--toast-bg-success, var(--color-emerald-700));
}

.settings-toast.is-error {
    background: var(--color-red-600);
}

.settings-toast.is-info {
    background: var(--color-gray-800);
}

@media (prefers-color-scheme: dark) {
     :root:not([data-theme]),
     :root[data-theme="auto"] {
        --bg-base: #0b0f14;
        --bg-color: var(--bg-base);
        --bg-muted: #12161c;
        --bg-elevated: #202123;
        --surface: var(--bg-elevated);
        --hover-bg-color: rgba(255, 255, 255, 0.06);
        --text-primary: #e5e7eb;
        --text-dark: #e5e7eb;
        --text: #cfd3da;
        --text-secondary: #c4ccd4;
        --text-muted: #b7c1cc;
        --text-gray: #b7c1cc;
        /* Legacy variables used across styles */
        --primary-text: var(--text-primary);
        --secondary-text: var(--text-secondary);
        --icon-color: #ffffff;
        --eye-color: #ffffff;
        --svg-color: #c0c8d0;
        --btn-primary-bg: var(--button-blue-color);
        --btn-primary-text: var(--white);
        --button-dark-bg: #1a1d21;
        --input-bg: #303030;
        --border-subtle: rgba(255, 255, 255, 0.08);
        --accent: var(--primary-color);
        --link-color: var(--button-blue-color);
        --box-shadow: var(--rgba-41);
        --rgba-18: rgba(30, 35, 43, 0.65);
        --rgba-12: rgba(12, 14, 20, 0.4);
        --rgba-29: rgba(23, 30, 40, 0.9);
    }
    /* Desktop auto/system */
     :root:not([data-theme]) .logo--desktop.logo--for-light,
     :root[data-theme="auto"] .logo--desktop.logo--for-light {
        display: none !important;
    }
     :root:not([data-theme]) .logo--desktop.logo--for-dark,
     :root[data-theme="auto"] .logo--desktop.logo--for-dark {
        display: inline !important;
    }
     :root:not([data-theme]),
     :root[data-theme='auto'] {
        --maintenance-card-bg: rgba(15, 23, 42, 0.6);
        --maintenance-card-border: rgba(79, 134, 247, 0.25);
    }
     :root:not([data-theme]) .maintenance-screen,
     :root[data-theme='auto'] .maintenance-screen {
        background: var(--surface, var(--color-charcoal-900));
        box-shadow: 0 28px 50px var(--rgba-62);
    }
     :root:not([data-theme]) .maintenance-status-card,
     :root[data-theme='auto'] .maintenance-status-card {
        background: var(--maintenance-card-bg);
        border-color: var(--maintenance-card-border);
    }
     :root:not([data-theme]) .maintenance-countdown__segment,
     :root[data-theme='auto'] .maintenance-countdown__segment {
        background: var(--hover-bg-color);
    }
     :root:not([data-theme]) .maintenance-logo--dark,
     :root[data-theme='auto'] .maintenance-logo--dark {
        display: block;
    }
     :root:not([data-theme]) .maintenance-logo--light,
     :root[data-theme='auto'] .maintenance-logo--light {
        display: none;
    }
     :root:not([data-theme]) .maintenance-logo--mobile-dark,
     :root[data-theme='auto'] .maintenance-logo--mobile-dark {
        display: block;
    }
     :root:not([data-theme]) .maintenance-logo--mobile-light,
     :root[data-theme='auto'] .maintenance-logo--mobile-light {
        display: none;
    }
}

@media (max-width: 768px) {
    .ads-sidebar,
    .sponsor-sidebar {
        width: 100%;
    }
    .ads-sidebar__cards,
    .sponsor-sidebar__cards {
        gap: 20px;
    }
    .ads-card,
    .sponsor-card {
        margin-bottom: 0;
    }
    .dz-pagination {
        gap: 6px;
    }
    .dz-pagination .page-btn,
    .dz-pagination .page-link {
        height: 32px;
        min-width: 32px;
        border-radius: 8px;
    }
    .dz-pagination .goto-input {
        height: 32px;
        width: 72px;
        border-radius: 8px;
    }
    .dz-pagination .goto-btn {
        height: 32px;
        border-radius: 8px;
    }
    .activity-page {
        padding: 20px 12px;
        gap: 12px;
    }
    .activity-page__heading {
        font-size: 22px;
    }
    .activity-page__card {
        padding: 16px;
    }
    .main-content {
        padding: 0;
    }
    .profile-cover {
        border-radius: 0px !important;
    }
    .reels_container {
        grid-template-columns: repeat(2, 1fr);
    }
    .reels_container>.empty-state {
        padding: 48px 0;
    }
    .creator-avatar {
        width: 64px;
        height: 64px;
    }
    .creator-info-wrapper {
        margin-top: -32px;
        padding-top: 44px;
    }
    .profile-left-container .reels_container {
        grid-template-columns: repeat(2, 1fr);
    }
    .creators-container {
        grid-template-columns: 1fr;
    }
    .creators-grid {
        grid-template-columns: 1fr;
    }
    .creator-wrapper {
        padding: 6px;
    }
    .creator-follow-btn-wrapper {
        padding: 6px;
        gap: 6px;
    }
    header {
        padding: 20px 30px;
        flex-direction: column;
        align-items: flex-start;
    }
    .main-header-inner {
        padding: 20px;
    }
    .container h1 {
        font-size: 60px;
    }
    .hero h1 {
        font-size: 5.4rem;
    }
    .ghost {
        width: 60px;
    }
    .ghost-center-top {
        display: none;
    }
    .marquee-slider__list--item {
        width: 160px;
        height: 160px;
        max-width: 160px;
        min-height: 160px;
    }
    .pricing-card {
        flex-flow: column;
    }
    .benefit-cards {
        gap: 10px;
        flex-flow: column;
        display: flex;
    }
    .big-bold-list {
        font-size: 58px;
        line-height: 1.1;
    }
    .recent-work h2 {
        font-size: 30px;
    }
    .features-title {
        font-size: 30px;
    }
    .features-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .sticker-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .bank-form-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .bank-form-card {
        flex-direction: column;
        gap: 12px;
    }
    .bank-form-card .creator-input,
    .bank-form-card .creator-input--textarea {
        flex-basis: 100%;
        min-width: 0;
    }
    .bank-table {
        min-width: 480px;
    }
    .payout-method-card__header {
        flex-direction: column;
        align-items: flex-start;
    }
    .payout-method-card__status {
        justify-content: flex-start;
    }
    .payout-method-card__actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .payout-method-card__buttons {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .media-viewer {
        padding: clamp(8px, 3vw, 20px);
    }
    .media-viewer__viewport {
        width: 100%;
        max-height: calc(100vh - 32px);
        border-radius: 18px;
    }
    .media-viewer__nav {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .media-viewer__reset {
        padding: 7px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .dz-pagination {
        justify-content: space-between;
    }
    .dz-pagination .page-core {
        flex: 1 1 auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .dz-pagination .page-list {
        flex-wrap: nowrap;
    }
    .dz-pagination .page-first,
    .dz-pagination .page-last {
        display: none;
    }
    .dz-pagination .page-goto {
        order: 3;
        width: 100%;
        justify-content: flex-end;
    }
    .site-announcement__content {
        padding: 20px 16px 0 16px;
    }
    .site-announcement__footer {
        padding: 18px 16px 20px 16px;
        gap: 10px;
    }
    .create-new-modal {
        padding: 0 0 20px;
    }
    .create-new-modal .click_box_header {
        padding: 16px 20px 14px;
        font-size: 18px;
    }
    .create-new-modal__body {
        padding: 12px 16px 20px;
    }
}

@media (max-width: 640px) {
    .has-mobile-logo .logo--desktop {
        display: none !important;
    }
    .has-mobile-logo .logo--mobile {
        display: inline !important;
    }
    /* On mobile, show only the matching theme variant */
     :root[data-theme="dark"] .has-mobile-logo .logo--mobile.logo--for-light,
    html.theme-dark .has-mobile-logo .logo--mobile.logo--for-light,
    body.theme-dark .has-mobile-logo .logo--mobile.logo--for-light {
        display: none !important;
    }
     :root[data-theme="dark"] .has-mobile-logo .logo--mobile.logo--for-dark,
    html.theme-dark .has-mobile-logo .logo--mobile.logo--for-dark,
    body.theme-dark .has-mobile-logo .logo--mobile.logo--for-dark {
        display: inline !important;
    }
     :root[data-theme="light"] .has-mobile-logo .logo--mobile.logo--for-light,
    html.theme-light .has-mobile-logo .logo--mobile.logo--for-light,
    body.theme-light .has-mobile-logo .logo--mobile.logo--for-light {
        display: inline !important;
    }
     :root[data-theme="light"] .has-mobile-logo .logo--mobile.logo--for-dark,
    html.theme-light .has-mobile-logo .logo--mobile.logo--for-dark,
    body.theme-light .has-mobile-logo .logo--mobile.logo--for-dark {
        display: none !important;
    }
    /* Ensure desktop variants are force-hidden on mobile (higher specificity than theme show rules) */
     :root[data-theme="dark"] .has-mobile-logo .logo--desktop.logo--for-dark,
     :root[data-theme="dark"] .has-mobile-logo .logo--desktop.logo--for-light,
    html.theme-dark .has-mobile-logo .logo--desktop.logo--for-dark,
    html.theme-dark .has-mobile-logo .logo--desktop.logo--for-light,
    body.theme-dark .has-mobile-logo .logo--desktop.logo--for-dark,
    body.theme-dark .has-mobile-logo .logo--desktop.logo--for-light,
     :root[data-theme="light"] .has-mobile-logo .logo--desktop.logo--for-dark,
     :root[data-theme="light"] .has-mobile-logo .logo--desktop.logo--for-light,
    html.theme-light .has-mobile-logo .logo--desktop.logo--for-dark,
    html.theme-light .has-mobile-logo .logo--desktop.logo--for-light,
    body.theme-light .has-mobile-logo .logo--desktop.logo--for-dark,
    body.theme-light .has-mobile-logo .logo--desktop.logo--for-light {
        display: none !important;
    }
    .subscription-table th:nth-child(8),
    .subscription-table td:nth-child(8) {
        display: none;
    }
    .site-announcement {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }
    .site-announcement__dialog {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    @supports (height: 100dvh) {
        .site-announcement__dialog {
            height: 100dvh;
            max-height: 100dvh;
        }
    }
    .site-announcement__media {
        height: clamp(180px, 45vh, 360px);
        min-height: 160px;
    }
    .site-announcement__content {
        padding: 24px 20px 0;
    }
    .site-announcement__footer {
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    }
    .site-announcement {
        padding: 0px;
    }
    .site-announcement__content {
        padding: 24px 20px 0 20px;
    }
    .site-announcement__footer {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }
    .site-announcement__title {
        font-size: 1.1rem;
    }
    .site-announcement__body {
        font-size: 0.95rem;
    }
    .site-announcement__cta,
    .site-announcement__close {
        flex: 1 1 auto;
        justify-content: center;
        width: 100%;
    }
    .live-title-bar {
        font-size: 18px;
    }
    .lives-grid {
        grid-template-columns: 1fr;
    }
    .earnings-section {
        gap: 16px;
    }
    .earnings-chart-card {
        min-height: 280px;
    }
    .earnings-supporter__avatar {
        width: 32px;
        height: 32px;
    }
    .security-dashboard .security-sessions__row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
    .security-dashboard .security-sessions__row--head {
        display: none;
    }
    .security-dashboard .security-sessions__actions {
        justify-content: flex-start;
    }
    .security-dashboard .security-form__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-secondary,
    .btn-primary,
    .btn-danger {
        width: 100%;
        text-align: center;
    }
    .status-pill {
        flex-direction: column;
        align-items: flex-start;
    }
    .security-dashboard .security-card {
        padding: 20px;
    }
    .creator-form__group {
        grid-template-columns: 1fr;
    }
    .creator-payout-group {
        grid-template-columns: 1fr;
    }
    .creator-form__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .creator-alert {
        flex-direction: column;
        align-items: flex-start;
    }
    .creator-alert__action {
        width: 100%;
        justify-content: center;
    }
    .subscription-card__header {
        align-items: flex-start;
    }
    .subscription-card__form {
        width: 100%;
        justify-content: space-between;
    }
    .subscription-card__form button {
        width: 100%;
        justify-content: center;
    }
    .blocked-card {
        padding: 14px;
    }
    .blocked-card__meta {
        grid-template-columns: 1fr;
    }
    .payout-method-card__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .payout-method-card__default {
        justify-content: flex-start;
    }
    .payout-method-card__priority {
        width: 100%;
        max-width: none;
    }
    .payout-method-card__buttons {
        width: 100%;
    }
    .payout-method-card__buttons button {
        flex: 1 1 140px;
    }
    .payout-method-card__inline-message {
        max-width: none;
    }
    .invoice__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .invoice__actions {
        width: 100%;
        justify-content: flex-start;
    }
    .settings-dashboard .h1 {
        font-size: 24px;
    }
    .kpi-row,
    .charts-row,
    .insight-row {
        flex-direction: column;
    }
    .admin-card {
        min-width: 100%;
    }
    .dz-lg-thumb-img,
    .dz-lg-thumb-fallback {
        width: 60px;
        height: 60px;
        font-size: 11px;
    }
    .settings-toast-stack {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .settings-toast {
        width: 100%;
        max-width: none;
    }
    .kpi-card {
        flex: 1 1 auto;
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table th,
     :is(.settings-section,
    .settings-dashboard) .table-card__scroll .earnings-table td {
        padding: 10px 8px;
    }
    .subscription-table th:nth-child(7),
    .subscription-table td:nth-child(7) {
        display: none;
    }
    body.is-live-page .messages_box_wrapper {
        right: 10px;
    }
    .security-dashboard .security-grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: none;
    }
    .security-dashboard .security-2fa-setup {
        grid-template-columns: 1fr;
    }
    .security-dashboard .security-2fa-qr {
        justify-self: center;
    }
    .payout-methods-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .payout-method-card__titles {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 992px) {
    .subscription-table th:nth-child(2),
    .subscription-table td:nth-child(2) {
        display: none;
    }
    .reels_container {
        grid-template-columns: repeat(3, 1fr);
    }
    .creator-avatar {
        width: 72px;
        height: 72px;
    }
    .creator-info-wrapper {
        margin-top: -36px;
        padding-top: 50px;
    }
    .creators-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .creators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .creator-wrapper {
        padding: 8px;
    }
    .card_admin.settings-dashboard {
        padding: 20px;
    }
    .chart-card,
    .donut-card {
        min-height: 280px;
    }
    .activity-list {
        max-height: none;
    }
}

@media (max-width: 1024px) {
    .main-header.menu-open .main-header-inner {
        border-radius: 30px;
    }
    .container-nav {
        flex-wrap: wrap;
        gap: 2px;
    }
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .nav-cluster {
        width: calc(100% - 24px);
        max-width: 520px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin: 0 auto;
        padding: 0;
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.12));
        border-width: 0;
        box-shadow: 0 24px 45px rgba(15, 23, 42, 0.25);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        box-sizing: border-box;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, max-height 0.25s ease;
    }
    :root[data-theme="dark"] .nav-cluster,
    html.theme-dark .nav-cluster,
    body.theme-dark .nav-cluster {
        background: rgba(15, 23, 42, 0.85);
        border-color: var(--color-slate-900-a40, rgba(15, 23, 42, 0.4));
        box-shadow: 0 24px 45px rgba(0, 0, 0, 0.6);
    }
    .main-header.menu-open .nav-cluster {
        padding: 18px;
        margin: 12px auto;
        border-width: 1px;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        max-height: 85vh;
    }
    .primary-navigation {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .primary-navigation .menu-item {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        padding: 12px 0;
        font-size: 1rem;
    }
    .primary-navigation .menu-item + .menu-item {
        margin-left: 0;
    }
    .primary-navigation .menu-item::after {
        display: none;
    }
    .primary-navigation .btn-call {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-top: 12px;
    }
    .welcome_language_switcher_wrapper {
        width: 100%;
        margin-left: 0;
        margin-top: 16px;
        justify-content: flex-start;
    }
    .content-left {
        max-width: 100% !important;
    }
    .mobile-nav-btn-left,
    .mobile-nav-btn-right,
    .mobile-search-toggle {
        display: inline-flex;
    }
    .site_header_container {
        flex-wrap: wrap;
    }
    .header_left {
        order: 1;
    }
    /* Hide search row by default on mobile; toggle via .search-expanded */
    .header_search_wrapper {
        order: 2;
        width: 100%;
        padding: 8px 0 0 0;
        display: none;
    }
    .header_right {
        order: 3;
    }
    .search_bar_container {
        max-width: none;
    }
    .search_input {
        padding: 12px 14px;
        min-height: 44px;
        font-size: 16px;
    }
    /* Full-width overlay when search is focused/active */
    .site_header_container.search-expanded .header_search_wrapper {
        order: 0;
        width: 100%;
        position: absolute;
        z-index: 3000;
        left: 0;
        right: 0;
        top: 0;
        padding: 8px;
        display: block;
    }
    .site_header_container.search-expanded .search_bar_container {
        max-width: none !important;
        width: 100% !important;
    }
    .live-content {
        grid-template-columns: 1fr;
    }
    .live-right.sticky {
        position: static;
        top: auto;
    }
    .live-chat-body {
        max-height: none;
        min-height: 240px;
    }
    .advanced_settings_box .visibility-options {
        justify-content: center;
    }
    .advanced_settings_box .setting-row .advanced_settings_title {
        width: 100%;
    }
    .advanced_settings_box .setting-row .advanced_sttings_switch {
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        padding-top: 6px;
    }
    input,
    select,
    textarea,
    button,
    .form-input,
    .text-field,
    .create_text,
    .write-comment,
    .chat_textarea,
    .tips-input,
    .tips-select {
        font-size: 13px !important;
        line-height: 1.35;
    }
    .post-visiblity {
        padding: 8px 10px;
    }
    /* Left sidebar off-canvas */
    .sidebar.sidebar--left {
        position: fixed;
        top: 0;
        left: 0;
        height: 100dvh;
        width: 86vw;
        max-width: 300px;
        padding: 0px;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        z-index: 2000;
    }
    .sidebar.sidebar--left .sidebar__inner {
        height: 100%;
        border-radius: 0 12px 12px 0;
    }
    body.mobile-left-open .sidebar.sidebar--left {
        transform: translateX(0);
    }
    /* Right panel off-canvas */
    .content-right {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: 90vw;
        min-width: 360px;
        max-width: 420px;
        padding: 0px;
        transform: translateX(110%);
        transition: transform 0.25s ease;
        z-index: 2000;
        padding-left: 0px;
    }
    .content-right .content-right-container {
        height: 100%;
        background: var(--bg-elevated);
        border-radius: 12px 0 0 12px;
        box-shadow: var(--box-shadow);
        overflow-y: auto;
    }
    body.mobile-right-open .content-right {
        transform: translateX(0);
    }
    /* When any drawer open, lock body scroll */
    body.mobile-left-open,
    body.mobile-right-open {
        overflow: hidden;
    }
    .user_dropdown .username {
        display: none;
    }
    .user_dropdown {
        padding: 6px 6px !important;
    }
    .site_header_container a {
        min-width: auto !important;
    }
    .site_header {
        padding: 0px !important;
    }
    .site_header_container {
        border-radius: 0px !important;
        padding: 10px 10px 10px 10px;
    }
    .user_dropdown .dropdown_arrow {
        display: none;
    }
    .total-like .metric-label,
    .total-comment .metric-label {
        display: none !important;
    }
    .lives-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .earnings-section {
        gap: 20px;
    }
    .profile-cover {
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: min(220px, 45vw);
    }
    .profile-cover-img,
    .profile-cover > img.profile-cover-img {
        object-position: center;
    }
    .message_user.message_user--chat {
        width: auto;
        min-width: 44px;
        padding: 8px;
        justify-content: center;
    }
    .message_user.message_user--chat .message_label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }
    .creator-follow-btn-wrapper {
        gap: 6px;
    }
    .creator-follow-btn-wrapper .follow_user,
    .creator-follow-btn-wrapper .message_user {
        flex: 1 1 calc(50% - 6px);
        padding: 6px 8px;
    }
    .creator-follow-btn-wrapper .message_user.message_user--chat {
        flex: 0 0 44px;
    }
    .earnings-table th,
    .earnings-table td {
        font-size: 12px;
    }
    .earnings-supporter {
        min-width: 200px;
    }
    /* Flex layout: [<] [scrollable tabs] [>] */
    .profile-tabs-scroll {
        position: relative;
        min-height: 52px;
        overflow: visible;
        display: flex;
        align-items: center;
        width: 100%;
        gap: 8px;
    }
    .tabs-viewport {
        position: relative;
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0;
    }
    .tabs-viewport::-webkit-scrollbar {
        display: none;
    }
    .profile-tabs {
        flex-wrap: nowrap;
    }
    .profile-tab {
        flex: 0 0 auto;
    }
    .profile-tabs-scroll .tabs-arrow {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 999px;
        background: var(--bg-elevated);
        box-shadow: var(--shadow-4-10-12);
        display: grid;
        place-items: center;
        cursor: pointer;
        flex: 0 0 36px;
        z-index: 2147483000;
    }
    .profile-tabs-scroll .tabs-arrow svg,
    .profile-tabs-scroll .tabs-arrow img {
        width: 18px;
        height: 18px;
    }
    /* Default: show both arrows; JS hides with .is-hidden (low opacity, no clicks) */
    .profile-tabs-scroll .tabs-arrow {
        opacity: 1;
        pointer-events: auto;
    }
    .profile-tabs-scroll .tabs-arrow.is-hidden {
        display: grid !important;
        opacity: .4;
        pointer-events: none;
    }
    /* Optional edge fades (controlled by JS) */
    .profile-tabs-scroll.can-left .tabs-arrow--left {
        opacity: 1;
    }
    .profile-tabs-scroll.can-right .tabs-arrow--right {
        opacity: 1;
    }
    /* Edge fade cues (like YouTube) */
    .profile-tabs-scroll::before,
    .profile-tabs-scroll::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 22px;
        pointer-events: none;
        z-index: 1;
        display: none;
        /* toggled by JS via .can-left/.can-right */
    }
    .profile-tabs-scroll::before {
        left: 0;
        background: linear-gradient(to right, var(--bg-elevated), var(--rgba-0));
    }
    .profile-tabs-scroll::after {
        right: 0;
        background: linear-gradient(to left, var(--bg-elevated), var(--rgba-0));
    }
    .profile-tabs-scroll.can-left::before {
        display: block;
    }
    .profile-tabs-scroll.can-right::after {
        display: block;
    }
    .security-dashboard .security-grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: none;
    }
    .security-dashboard .security-2fa-setup {
        grid-template-columns: 1fr;
    }
    .security-dashboard .security-2fa-qr {
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .profile-hero {
        margin: 8px 0 64px;
    }
    .profile-hero .hero-cover {
        aspect-ratio: 16/9;
        max-height: 220px;
    }
    .profile-hero .hero-avatar {
        width: 96px;
        height: 96px;
        bottom: -48px;
    }
    .profile-media-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-media-row .pm-cover {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 540px) {
    .billing-fields {
        grid-template-columns: 1fr;
    }
    .tips {
        padding: 16px 14px;
    }
    .tips-gateways {
        grid-template-columns: repeat(2, 1fr);
    }
    .maintenance-body {
        padding: 24px 16px;
    }
    .maintenance-screen {
        gap: 24px;
    }
    .maintenance-logo--light,
    .maintenance-logo--dark {
        display: none;
    }
    .maintenance-logo--mobile-light {
        display: block;
        max-height: 40px;
    }
    .maintenance-logo--mobile-dark {
        display: none;
        max-height: 40px;
    }
    .maintenance-countdown__segment {
        padding: 10px;
    }
}

.gdpr-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    padding: 16px 18px;
    z-index: 1200;
    color: #111827;
    font-family: inherit;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.gdpr-banner--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gdpr-banner__inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.gdpr-banner__icon {
    flex: none;
    width: 40px;
    height: 40px;
}

.gdpr-banner__icon svg,
.gdpr-banner__icon img {
    width: 40px;
    height: 40px;
}

.gdpr-banner__icon-svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}

.gdpr-banner__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gdpr-banner__message {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.gdpr-banner__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gdpr-banner__btn {
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gdpr-banner__btn:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.gdpr-banner__btn--primary {
    background-color: #111111;
    color: #ffffff;
}

.gdpr-banner__btn--primary:hover {
    background-color: #000000;
}

.gdpr-banner__btn--ghost {
    background-color: transparent;
    color: #6b7280;
}

.gdpr-banner__btn--ghost:hover {
    color: #111827;
}

.gdpr-settings {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.gdpr-settings--visible {
    opacity: 1;
    pointer-events: auto;
}

.gdpr-settings__backdrop {
    position: absolute;
    inset: 0;
}

.gdpr-settings__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    color: #111827;
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    transform: translateY(16px);
    transition: transform 0.25s ease;
}

.gdpr-settings--visible .gdpr-settings__panel {
    transform: translateY(0);
}

.gdpr-settings__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gdpr-settings__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.gdpr-settings__close {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.gdpr-settings__close:hover,
.gdpr-settings__close:focus-visible {
    color: #111827;
    background: rgba(17, 24, 39, 0.08);
    outline: none;
}

.gdpr-settings__intro {
    margin: 10px 0 18px;
    font-size: 14px;
    line-height: 1.45;
    color: #4b5563;
}

.gdpr-settings__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gdpr-settings__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.gdpr-settings__option:last-child {
    border-bottom: none;
}

.gdpr-settings__option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gdpr-settings__option-title {
    font-size: 15px;
    font-weight: 600;
}

.gdpr-settings__option-hint {
    font-size: 12px;
    color: #6b7280;
}

.gdpr-settings__toggle {
    width: 44px;
    height: 24px;
    accent-color: #111111;
    cursor: pointer;
}

.gdpr-settings__toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gdpr-settings__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .gdpr-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
    .gdpr-settings {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .gdpr-banner__inner {
        flex-direction: column;
        gap: 12px;
    }
    .gdpr-banner__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .gdpr-banner__btn {
        width: 100%;
        text-align: center;
    }
    .gdpr-settings__panel {
        padding: 18px;
    }
    .gdpr-settings__actions {
        flex-direction: column;
        align-items: stretch;
    }
}
.theme-dark .contact-submit {
    background: var(--color-neutral-50, #f9fafb);
    color: var(--color-neutral-900, #111827);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.4);
}

.theme-dark .contact-submit:hover,
.theme-dark .contact-submit:focus {
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.52);
    filter: brightness(1.08);
}

.theme-dark .contact-submit:active {
    filter: brightness(0.94);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.45);
}

.csrf-session-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: inherit;
}

.csrf-session-modal {
    background: #fff;
    color: #1b1b1f;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    max-width: 420px;
    width: 100%;
    padding: 24px;
    text-align: center;
}

.csrf-session-modal h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

.csrf-session-modal p {
    margin: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.csrf-session-modal button {
    min-width: 140px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: #1f4bd8;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.csrf-session-modal button:focus {
    outline: 2px solid #1f4bd8;
    outline-offset: 2px;
}

.csrf-session-modal__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #ffe6e6;
    color: #d93025;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}
.reset-password-form .login-submit {
  display: block;
  width: 100%;
  margin-top: 12px;
}

.reset-password-form .form-container {
  flex-wrap: wrap;
}

.reset-password-form .form-input-wrapper.divid {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Page headers (simple hero for list pages) */
.page-hero {
    width: 100%;
    padding: 12px 0 4px;
    margin-bottom: 20px;
}
.page-hero__title {
    gap: 12px;
}
.page-hero__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--text-primary);
}
.page-hero__heading {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.page-hero__subheading {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* Post approval badges */
.post-approval-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;margin-left:8px;border-radius:999px;font-size:12px;line-height:1.2;background:var(--approval-chip-bg,#fff4e5);color:var(--approval-chip-text,#8a5a1f);}
.post-approval-chip--rejected{background:var(--approval-chip-reject-bg,#ffe8e6);color:var(--approval-chip-reject-text,#a12f2f);}
.post-approval-alert{border-radius:10px;border:1px solid var(--approval-alert-border,#e5e7eb);background:var(--approval-alert-bg,#f6f7fb);padding:12px 14px;margin:10px 0;color:var(--approval-alert-text,#374151);box-sizing:border-box;max-width:calc(100% - 20px);margin-left:10px;margin-right:10px;}
.post-approval-alert--pending{background:var(--approval-alert-pending-bg,#fff8ed);border-color:var(--approval-alert-pending-border,#f7e0c3);color:var(--approval-alert-pending-text,#8a5a1f);}
.post-approval-alert--rejected{background:var(--approval-alert-reject-bg,#fff1f0);border-color:var(--approval-alert-reject-border,#f5c2c0);color:var(--approval-alert-reject-text,#a92c2c);}
.post-approval-alert__title{font-weight:600;margin-bottom:4px;}
.post-approval-alert__message{font-size:14px;line-height:1.4;}
.post-approval-alert__note{margin-top:4px;font-size:13px;opacity:.9;}
.post-footer--disabled{opacity:.7;pointer-events:none;}
.tile-approval-pill{display:inline-block;padding:2px 6px;border-radius:999px;font-size:11px;margin-left:6px;background:#fff4e5;color:#8a5a1f;}
.tile-approval-pill--rejected{background:#ffe8e6;color:#a12f2f;}

/* Podcast ads dashboard */
.podcast-ads-board{gap:20px;}
.podcast-ads-board__header{align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap;}
.podcast-ads-board__header .form-text{margin-top:15px;font-size:13px;font-weight:300;}
.podcast-ads-board__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;width:100%;}
.podcast-ads-kpi{position:relative;border:1px solid var(--color-border-muted,#e5e7eb);background:linear-gradient(135deg,var(--color-surface-raised,#f7f9fc),#ffffff);padding:14px 16px;border-radius:14px;overflow:hidden;box-shadow:none;}
.podcast-ads-kpi:before{content:"";position:absolute;inset:-25% auto auto 60%;width:120px;height:120px;background:radial-gradient(circle at center,rgba(79,70,229,.12),transparent 65%);opacity:.4;pointer-events:none;}
.podcast-ads-kpi__meta{display:flex;align-items:center;gap:8px;justify-content:space-between;}
.podcast-ads-kpi__label{font-size:12px;color:var(--color-muted,#6b7280);text-transform:uppercase;letter-spacing:.06em;}
.podcast-ads-kpi__icon{width:34px;height:34px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:var(--color-surface,#f9fafb);box-shadow:0 8px 20px rgba(0,0,0,0.05);}
.podcast-ads-kpi__icon svg{width:18px;height:18px;}
.podcast-ads-kpi__icon.spend{background:linear-gradient(135deg,rgba(76,124,236,.16),rgba(76,124,236,.08));}
.podcast-ads-kpi__icon.approved{background:linear-gradient(135deg,rgba(34,197,94,.2),rgba(34,197,94,.1));}
.podcast-ads-kpi__icon.pending{background:linear-gradient(135deg,rgba(234,179,8,.2),rgba(234,179,8,.1));}
.podcast-ads-kpi__icon.expired{background:linear-gradient(135deg,rgba(239,68,68,.2),rgba(239,68,68,.1));}
.podcast-ads-kpi__value{display:flex;align-items:baseline;gap:6px;margin-top:20px;font-weight:700;}
.podcast-ads-kpi__currency{font-size:20px;color:#000;letter-spacing:.04em;}
.podcast-ads-kpi__number{font-size:20px;line-height:1.1;}
.podcast-ads-table-wrap{width:100%;background:var(--bg-base,var(--bg-color));border:1px solid var(--sd-admin-border,#e5e7eb);border-radius:14px;padding:0;box-shadow:none;overflow:hidden;}
.podcast-ads-table{width:100%;border-collapse:collapse;min-width:560px;background:transparent;}
.podcast-ads-table th,.podcast-ads-table td{padding:14px 16px;vertical-align:middle;color:var(--text-dark,#111827);font-size:14px;line-height:1.5;}
.podcast-ads-table th{border-bottom:1px solid var(--sd-admin-border,#e5e7eb);text-align:left;font-weight:600;font-size:13px;letter-spacing:.01em;text-transform:none;color:var(--text-gray,#6b7280);background:transparent;}
.podcast-ads-table tbody tr:not(:last-child) td{border-bottom:1px solid var(--sd-admin-border,#e5e7eb);}
.podcast-ads-table tbody tr{transition:background .15s ease;background:var(--bg-elevated,#ffffff);}
.podcast-ads-table tbody tr:hover{background:var(--sd-admin-hover-bg-subtle,rgba(17,27,46,0.04));}
.podcast-ads-table__package{display:flex;flex-direction:column;gap:10px;}
.podcast-ads-table__heading{display:flex;align-items:flex-start;gap:10px;}
.podcast-ads-table__icon{width:32px;height:32px;border-radius:10px;background:var(--color-surface,#f9fafb);display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(0,0,0,0.05);}
.podcast-ads-table__icon svg{width:18px;height:18px;}
.podcast-ads-table__title{font-weight:700;font-size:14px;line-height:1.35;color:var(--text-dark,#111827);}
.podcast-ads-table__subtitle{color:var(--sd-admin-text-muted,#6b7280);font-size:13px;margin-top:2px;line-height:1.3;}
.podcast-ads-table__tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px;}
.chip{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;border:1px solid transparent;color:var(--color-body,#111827);background:transparent;box-shadow:none;}
.chip--soft{background:transparent;}
.chip--accent{background:transparent;color:#b45309;border-color:rgba(245,158,11,.35);}
.chip--ghost{background:transparent;color:#4f46e5;border-color:rgba(79,70,229,.35);}
.podcast-ads-date{font-weight:400;font-size:13px;color:var(--text-dark,#111827);}
.podcast-ads-col--status{text-align:center;}
.podcast-ads-col--amount,.podcast-ads-col--actions{white-space:nowrap;}
.podcast-ads-meta{display:grid;grid-template-columns:1fr;gap:8px;}
.podcast-ads-meta__item{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--color-border-muted,#ececec);border-radius:10px;background:var(--color-surface-raised,#f9fafb);}
.podcast-ads-meta__icon{width:26px;height:26px;border-radius:8px;background:var(--color-surface,#eef2f7);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 14px rgba(0,0,0,0.04);}
.podcast-ads-meta__icon svg{width:16px;height:16px;}
.podcast-ads-meta__copy .meta-label{font-size:12px;color:var(--color-muted,#6b7280);}
.podcast-ads-meta__copy .meta-value{font-weight:700;}
.podcast-ads-amount{display:inline-flex;align-items:baseline;gap:1px;font-weight:700;}
.podcast-ads-amount__currency{font-size:16px;color:#000;letter-spacing:.04em;}
.podcast-ads-amount__value{font-size:15px;line-height:1.3;}
.podcast-ads-actions{display:flex;justify-content:flex-end;}
.podcast-ads-details{min-height:34px;padding:8px 14px;border-radius:10px;border:1px solid #000;background:#000;color:#fff;font-weight:600;transition:all .15s ease;box-shadow:none;cursor:pointer;}
.podcast-ads-details:hover{border-color:#000;color:#fff;background:#111;cursor:pointer;}
.podcast-ads-details:focus-visible{outline:2px solid #000;outline-offset:2px;}
:root[data-theme="dark"] .podcast-ads-details,body.theme-dark .podcast-ads-details{border-color:#000;background:#000;color:#fff;}
:root[data-theme="dark"] .podcast-ads-details:hover,body.theme-dark .podcast-ads-details:hover{border-color:#000;color:#fff;box-shadow:none;background:#111;}
.podcast-ads-hint{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;border:1px dashed var(--color-border-muted,#e5e7eb);color:var(--color-muted,#6b7280);background:var(--color-surface,#f9fafb);font-size:12px;}
.podcast-ads-hint__icon{width:16px;height:16px;display:flex;align-items:center;justify-content:center;}
.podcast-ads-empty{gap:10px;padding:22px;border:1px dashed var(--sd-admin-border,#e5e7eb);border-radius:14px;background:var(--bg-base,var(--bg-color));text-align:center;color:var(--sd-admin-text-muted,#6b7280);align-items:center;justify-content:center;}
.podcast-ads-empty__icon{width:52px;height:52px;border-radius:14px;background:transparent;border:none;display:flex;align-items:center;justify-content:center;box-shadow:none;}
.podcast-ads-empty__icon svg{color:#000;}
.podcast-ads-empty .form-text{font-size:12px;font-weight:300;}
.podcast-ad-creator-lock__body{padding:18px 20px 14px;background:var(--bg-elevated,#fff);border:1px solid var(--sd-admin-border,#e5e7eb);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,0.04);gap:10px;}
.podcast-ad-creator-lock__body .form-text{margin:0;font-size:13px;line-height:1.6;color:var(--text-gray,#6b7280);}
.podcast-ad-creator-lock__body .podcasts-cta{align-self:center;padding:10px 14px;font-size:13px;font-weight:700;border-radius:12px;box-shadow:none;margin:4px auto 0;}
.podcast-ad-creator-lock__body .podcasts-cta svg{width:16px;height:16px;}
.settings-placeholder.podcast-ads-empty::before{display:none;}
.podcast-ads-details-modal{z-index:60;background:rgba(0,0,0,0.4);}
.podcast-ads-details__wrapper{max-width:640px;width:100%;padding:18px;border-radius:16px;border:1px solid var(--color-border-muted,#e5e7eb);background:#fff;gap:14px;}
.podcast-ads-details__body{gap:12px;}
.podcast-ads-details__cover{width:100%;height:160px;border-radius:12px;background:var(--color-surface,#f9fafb);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.podcast-ads-details__cover img{width:100%;height:100%;object-fit:cover;}
.podcast-ads-details__flags{display:flex;gap:8px;flex-wrap:wrap;}
.podcast-ads-details__link{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;border:1px solid var(--color-border-muted,#d1d5db);background:linear-gradient(135deg,var(--color-surface,#f9fafb),#ffffff);color:var(--color-body,#111827);font-weight:600;font-size:13px;text-decoration:none;transition:all .15s ease;}
.podcast-ads-details__link:hover{border-color:var(--button-blue-color,#4f46e5);color:var(--button-blue-color,#4f46e5);}
.podcast-ads-details__link-icon svg{width:16px;height:16px;display:block;}
.podcast-ads-details__text{display:flex;flex-direction:column;gap:4px;}
.podcast-ads-details__title{font-size:18px;font-weight:700;}
.podcast-ads-details__subtitle{font-size:14px;color:var(--color-muted,#6b7280);}
.podcast-ads-details__meta-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.podcast-ads-details__amount-pill{border-radius:999px;font-weight:700;font-size:21px;}
.podcast-ads-details__timeline{display:flex;gap:10px;flex-wrap:wrap;}
.timeline-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--color-border-muted,#e5e7eb);border-radius:10px;background:var(--color-surface,#f9fafb);}
.timeline-icon{width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:var(--color-surface,#eef2f7);}
.timeline-icon svg,.timeline-icon img{width:16px;height:16px;display:block;}
.timeline-label{font-size:12px;color:var(--color-muted,#6b7280);}
.timeline-value{font-weight:600;font-size:13px;}
.podcast-ads-details__block{border:1px solid var(--color-border-muted,#e5e7eb);border-radius:14px;padding:14px;background:linear-gradient(135deg,var(--color-surface,#f9fafb),#ffffff);box-shadow:0 10px 30px rgba(0,0,0,0.04);}
.podcast-ads-details__block-title{font-weight:700;margin-bottom:10px;font-size:14px;letter-spacing:.01em;}
.podcast-ads-details__rows{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;}
.podcast-ads-details__row{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:8px 10px;border:1px solid var(--color-border-muted,#e5e7eb);border-radius:10px;background:var(--color-surface,#f9fafb);}
.podcast-ads-details__row span:first-child{color:var(--color-muted,#6b7280);font-size:13px;}
.podcast-ads-details__row span:last-child{font-weight:700;color:var(--color-body,#111827);}
.podcast-ads-details__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;}
.podcast-ads-details__stat{border:1px solid var(--color-border-muted,#e5e7eb);border-radius:12px;padding:10px;background:#fff;}
.podcast-ads-details__stat .stat-label{font-size:12px;color:var(--color-muted,#6b7280);}
.podcast-ads-details__stat .stat-value{font-size:18px;font-weight:700;margin-top:4px;}
.podcast-ads-details__footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding-top:6px;flex-wrap:nowrap;}
.podcast-ads-details__delete{border:1px solid #dc2626;background:linear-gradient(135deg,#fee2e2,#fff5f5);color:#b91c1c;padding:10px 12px;border-radius:12px;font-weight:700;font-size:15px;min-width:0;text-align:center;transition:all .15s ease;flex:1 1 0;}
.podcast-ads-details__delete:hover{border-color:#b91c1c;box-shadow:0 10px 20px rgba(220,38,38,0.12);}
.podcast-ads-details__delete:disabled{opacity:.55;cursor:not-allowed;box-shadow:none;}
.podcast-ads-details__footer .pr-cancel,
.podcast-ads-details__footer .cr-cancel{padding:10px 12px;border-radius:12px;border:1px solid var(--color-border-muted,#d1d5db);background:#fff;font-weight:700;min-width:0;text-align:center;flex:1 1 0;margin-top:0;box-shadow:none;display:flex;align-items:center;justify-content:center;}
@media (max-width:1024px){
    .podcast-ads-table th,.podcast-ads-table td{padding:12px 10px;}
    .podcast-ads-board__stats{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));}
}
@media (max-width:900px){
    .podcast-ads-table thead{display:none;}
    .podcast-ads-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;border:1px solid var(--color-border-muted,#ececec);border-radius:14px;margin-bottom:12px;}
    .podcast-ads-table tbody tr td{padding:0;border:none;background:transparent;}
    .podcast-ads-col--podcast,
    .podcast-ads-col--title,
    .podcast-ads-col--package{grid-column:1/-1;}
    .podcast-ads-col--dates{grid-column:1/2;}
    .podcast-ads-col--amount{grid-column:2/3;justify-self:end;}
    .podcast-ads-col--actions{grid-column:1/-1;align-self:end;justify-content:flex-end;}
    .podcast-ads-actions{justify-content:flex-end;}
    .podcast-ads-meta{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px){
    .podcast-ads-table tbody tr{grid-template-columns:1fr;}
    .podcast-ads-col--actions,.podcast-ads-col--amount{grid-column:1/-1;}
    .podcast-ads-meta{grid-template-columns:1fr;}
    .podcast-ads-board__header{align-items:flex-start;}
    .podcast-ads-details__footer{flex-wrap:wrap;}
    .podcast-ads-details__footer .podcast-ads-details__delete,
    .podcast-ads-details__footer .pr-cancel,
    .podcast-ads-details__footer .cr-cancel{flex:1 1 100%;}
}
:root[data-theme="dark"] .podcast-ads-kpi,body.theme-dark .podcast-ads-kpi{background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.02));border-color:var(--border-subtle,#1f2937);box-shadow:none;}
:root[data-theme="dark"] .podcast-ads-kpi:before,body.theme-dark .podcast-ads-kpi:before{background:radial-gradient(circle at center,rgba(79,86,255,.18),transparent 70%);}
:root[data-theme="dark"] .podcast-ads-kpi__icon,body.theme-dark .podcast-ads-kpi__icon{background:rgba(255,255,255,0.06);box-shadow:none;}
:root[data-theme="dark"] .podcast-ads-table-wrap,body.theme-dark .podcast-ads-table-wrap{background:var(--bg-base,#0b0f14);border-color:var(--border-subtle,#1f2937);}
:root[data-theme="dark"] .podcast-ads-table th,body.theme-dark .podcast-ads-table th{color:#94a3b8;}
:root[data-theme="dark"] .podcast-ads-table td,body.theme-dark .podcast-ads-table td{border-color:#1f2937;}
:root[data-theme="dark"] .podcast-ads-table tbody tr,body.theme-dark .podcast-ads-table tbody tr{background:rgba(255,255,255,0.02);}
:root[data-theme="dark"] .podcast-ads-table tbody tr:hover,body.theme-dark .podcast-ads-table tbody tr:hover{background:rgba(255,255,255,0.04);}
:root[data-theme="dark"] .podcast-ads-meta__item,body.theme-dark .podcast-ads-meta__item{border-color:#1f2937;background:rgba(255,255,255,0.03);}
:root[data-theme="dark"] .podcast-ads-meta__icon,body.theme-dark .podcast-ads-meta__icon{background:rgba(255,255,255,0.06);box-shadow:none;}
:root[data-theme="dark"] .podcast-ads-hint,body.theme-dark .podcast-ads-hint{border-color:#1f2937;background:rgba(255,255,255,0.04);color:#cbd5e1;}
:root[data-theme="dark"] .podcast-ads-empty,body.theme-dark .podcast-ads-empty{border-color:#1f2937;background:rgba(255,255,255,0.03);}
:root[data-theme="dark"] .podcast-ads-empty__icon,body.theme-dark .podcast-ads-empty__icon{background:rgba(255,255,255,0.06);box-shadow:none;}
:root[data-theme="dark"] .chip,body.theme-dark .chip{background:transparent;color:#e5e7eb;border-color:#1f2937;}
:root[data-theme="dark"] .chip--accent,body.theme-dark .chip--accent{background:transparent;color:#f59e0b;border-color:rgba(245,158,11,.45);}
:root[data-theme="dark"] .chip--ghost,body.theme-dark .chip--ghost{background:transparent;color:#c7d2fe;border-color:rgba(79,70,229,.45);}
:root[data-theme="dark"] .podcast-ads-details__wrapper,body.theme-dark .podcast-ads-details__wrapper{background:var(--bg-elevated,#1f2937);border-color:#1f2937;}
:root[data-theme="dark"] .podcast-ads-details__block,body.theme-dark .podcast-ads-details__block{background:linear-gradient(135deg,rgba(255,255,255,0.05),rgba(255,255,255,0.02));border-color:#1f2937;}
:root[data-theme="dark"] .podcast-ads-details__row span:last-child,body.theme-dark .podcast-ads-details__row span:last-child{color:#e5e7eb;}
:root[data-theme="dark"] .podcast-ads-details__stat,body.theme-dark .podcast-ads-details__stat{background:rgba(255,255,255,0.04);border-color:#1f2937;}
:root[data-theme="dark"] .podcast-ads-details__delete,body.theme-dark .podcast-ads-details__delete{border-color:#b91c1c;color:#fca5a5;background:linear-gradient(135deg,rgba(220,38,38,0.18),rgba(220,38,38,0.08));}
:root[data-theme="dark"] .podcast-ads-details__link,body.theme-dark .podcast-ads-details__link{border-color:#1f2937;background:linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.02));color:#e5e7eb;}

/* Audio rooms */
.audio-room-create-popup{max-width:560px;width:min(92vw,560px);}
.audio-room-create{gap:14px;padding:22px 24px 26px;}
.audio-room-create__icon,.audio-room-card__pulse,.audio-room-stage__pulse{width:58px;height:58px;min-width:58px;aspect-ratio:1/1;border-radius:50%;background:#eef6ff;color:#2563eb;display:inline-flex;align-items:center;justify-content:center;flex:0 0 58px;}
.audio-room-create__icon svg,.audio-room-card__pulse svg,.audio-room-stage__pulse svg{width:28px;height:28px;}
.audio-room-create__textarea{min-height:88px;resize:vertical;line-height:1.45;padding-top:12px;}
.audio-room-segmented{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;padding:4px;border:1px solid #e5e7eb;border-radius:8px;background:#f8fafc;}
.audio-room-segmented__item{min-height:38px;border:0;border-radius:6px;background:transparent;color:#475569;font-weight:700;cursor:pointer;}
.audio-room-segmented__item.active{background:#fff;color:#111827;box-shadow:0 1px 4px rgba(15,23,42,.08);}
.audio-room-paid-panel,.audio-room-limit-note,.audio-room-create__status{border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:12px;}
.audio-room-paid-panel.is-muted{opacity:.72;}
.audio-room-switch{gap:16px;cursor:pointer;}
.audio-room-switch strong{font-size:14px;color:#111827;}
.audio-room-switch small{margin-top:4px;color:#64748b;line-height:1.35;}
.audio-room-price-panel{margin-top:12px;display:flex;flex-direction:column;gap:10px;}
.audio-room-price-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.audio-room-price{min-height:38px;border:1px solid #dbe3ef;border-radius:7px;background:#f8fafc;color:#1f2937;font-weight:800;cursor:pointer;}
.audio-room-price.active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;}
.audio-room-create__status[data-type="error"],.audio-room-status-line[data-type="error"]{color:#b91c1c;}
.audio-room-create__status[data-type="success"],.audio-room-status-line[data-type="success"]{color:#047857;}
.audio-room-limit-note{color:#475569;font-size:13px;line-height:1.45;}
.audio-room-hero-action,.audio-room-action,.audio-room-control,.audio-room-chat__send{border:0;border-radius:8px;background:#111827;color:#fff;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 14px;white-space:nowrap;}
.audio-room-hero-action svg,.audio-room-control svg,.audio-room-chat__send svg{width:18px;height:18px;}
.audio-room-hero-action:disabled,.audio-room-action:disabled,.audio-room-control:disabled{opacity:.58;cursor:not-allowed;}
.audio-room-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%;}
.audio-room-card{border:1px solid #e5e7eb;border-radius:8px;background:#fff;overflow:hidden;display:flex;flex-direction:column;min-height:250px;}
.audio-room-card__main{display:flex;gap:16px;padding:18px;color:inherit;text-decoration:none;flex:1;}
.audio-room-card__content{min-width:0;display:flex;flex-direction:column;gap:10px;}
.audio-room-card__badges,.audio-room-stage__badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.audio-room-badge{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:0 9px;font-size:11px;font-weight:900;letter-spacing:0;color:#0f172a;background:#e2e8f0;}
.audio-room-badge--live{background:#dcfce7;color:#166534;}
.audio-room-badge--created,.audio-room-badge--open{background:#dbeafe;color:#1d4ed8;}
.audio-room-badge--paid{background:#fef3c7;color:#92400e;}
.audio-room-badge--ended{background:#fee2e2;color:#991b1b;}
.audio-room-card__title{font-size:17px;line-height:1.3;margin:0;color:#111827;font-weight:800;word-break:break-word;}
.audio-room-card__description{font-size:13px;line-height:1.45;margin:0;color:#64748b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.audio-room-card__stats{display:flex;gap:12px;color:#64748b;font-size:13px;font-weight:700;}
.audio-room-card__owner{border-top:1px solid #eef2f7;padding:10px 16px;display:flex;align-items:center;gap:10px;min-height:58px;}
.audio-room-card__avatar,.audio-room-stage__avatar{width:36px;height:36px;border-radius:50%;overflow:hidden;display:block;flex:0 0 auto;background:#e5e7eb;}
.audio-room-card__avatar img,.audio-room-stage__avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.audio-room-card__owner-copy{min-width:0;display:flex;flex-direction:column;gap:2px;}
.audio-room-card__owner-copy span{font-size:11px;line-height:1.1;color:#64748b;font-weight:800;text-transform:uppercase;}
.audio-room-card__name{font-size:14px;line-height:1.2;font-weight:750;color:#111827;text-decoration:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.audio-room-stage,.audio-room-chat,.audio-room-ticket,.audio-room-tip-sheet,.audio-room-manage{border:1px solid #e5e7eb;border-radius:8px;background:#fff;}
.audio-room-stage{padding:20px;display:flex;flex-direction:column;gap:18px;}
.audio-room-stage__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;}
.audio-room-stage__identity{display:flex;gap:16px;min-width:0;}
.audio-room-stage__copy{min-width:0;}
.audio-room-stage__copy h1{font-size:22px;line-height:1.25;margin:8px 0 0;color:#111827;font-weight:800;word-break:break-word;}
.audio-room-stage__copy p{font-size:14px;line-height:1.5;color:#64748b;margin:8px 0 0;}
.audio-room-stage__actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.audio-room-stage__actions .audio-room-action{min-width:112px;padding:0 18px;}
.audio-room-action--ghost{background:#f1f5f9;color:#0f172a;}
.audio-room-action--danger{background:#b91c1c;color:#fff;}
.audio-room-countdown{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dbeafe;background:#eff6ff;color:#1d4ed8;border-radius:8px;padding:10px 12px;}
.audio-room-countdown span{font-size:12px;font-weight:900;text-transform:uppercase;}
.audio-room-countdown strong{font-size:20px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums;}
.audio-room-countdown.is-warning{border-color:#fde68a;background:#fffbeb;color:#92400e;}
.audio-room-countdown.is-danger{border-color:#fecaca;background:#fef2f2;color:#991b1b;}
.audio-room-stage__host{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #eef2f7;border-radius:8px;background:#f8fafc;}
.audio-room-stage__host span{display:block;font-size:12px;color:#64748b;font-weight:700;}
.audio-room-stage__host a{font-weight:900;color:#111827;text-decoration:none;}
.audio-room-stage__meters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.audio-room-meter{border:1px solid #eef2f7;border-radius:8px;padding:12px;background:#fbfdff;}
.audio-room-meter strong{display:block;font-size:22px;color:#111827;line-height:1.1;}
.audio-room-meter span{display:block;margin-top:4px;color:#64748b;font-size:12px;font-weight:800;}
.audio-room-stage__controls{display:flex;gap:10px;flex-wrap:wrap;}
.audio-room-control{background:#f8fafc;color:#0f172a;border:1px solid #e5e7eb;}
.audio-room-control.is-active{border-color:#bbf7d0;background:#f0fdf4;color:#166534;}
.audio-room-control.is-selected{border-color:#111827;background:#111827;color:#fff;}
.audio-room-control.is-muted{border-color:#fecaca;background:#fef2f2;color:#991b1b;}
.audio-room-status-line{font-size:13px;color:#475569;font-weight:700;}
.audio-room-ended-modal{position:fixed;inset:0;z-index:10050;background:rgba(15,23,42,.52);display:flex;align-items:center;justify-content:center;padding:20px;}
.audio-room-ended-modal.none{display:none;}
.audio-room-ended-modal__panel{width:min(420px,100%);border:1px solid #e5e7eb;border-radius:8px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.25);padding:22px;text-align:center;display:flex;flex-direction:column;gap:10px;}
.audio-room-ended-modal__panel strong{font-size:20px;line-height:1.2;color:#111827;}
.audio-room-ended-modal__panel span{font-size:14px;line-height:1.45;color:#475569;font-weight:700;}
.audio-room-ended-modal__panel em{font-style:normal;font-size:13px;color:#64748b;font-weight:800;}
.audio-room-ended-modal__panel b{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#111827;color:#fff;margin-right:4px;}
.audio-room-ticket,.audio-room-tip-sheet{margin-top:14px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:14px;}
.audio-room-ticket__copy{display:flex;flex-direction:column;gap:5px;min-width:0;}
.audio-room-ticket__copy strong{font-size:15px;color:#111827;}
.audio-room-ticket__copy span{font-size:13px;color:#64748b;font-weight:900;}
.audio-room-ticket__form{display:grid;grid-template-columns:minmax(140px,220px) auto;gap:10px;align-items:center;}
.audio-room-ticket__form .text-field{height:44px;min-height:44px;line-height:1.2;padding:0 14px;border:1px solid #dbe3ef;border-radius:8px;background:#f8fafc;color:#111827;font-size:14px;font-weight:700;box-shadow:none;}
.audio-room-ticket__form select.text-field{padding-right:38px;appearance:auto;}
.audio-room-tip-sheet .audio-room-ticket__form{grid-template-columns:minmax(120px,1fr) minmax(150px,220px) minmax(150px,220px);flex:1;max-width:720px;}
.audio-room-tip-sheet .audio-room-action{height:44px;}
.audio-room-page.audio-room-page--with-manage{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:14px;align-items:start;width:100%;}
.audio-room-page.audio-room-page--with-manage .audio-room-stage,
.audio-room-page.audio-room-page--with-manage .audio-room-ticket,
.audio-room-page.audio-room-page--with-manage .audio-room-tip-sheet{grid-column:1/-1;}
.audio-room-page.audio-room-page--with-manage .audio-room-manage,
.audio-room-page.audio-room-page--with-manage .audio-room-chat{margin-top:0;}
.audio-room-manage{margin-top:14px;overflow:visible;}
.audio-room-manage__header{min-height:48px;padding:0 16px;border-bottom:1px solid #eef2f7;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.audio-room-manage__header strong{font-size:15px;color:#111827;}
.audio-room-manage__header span{font-size:12px;color:#64748b;font-weight:800;}
.audio-room-manage__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;}
.audio-room-manage__panel{border:1px solid #eef2f7;border-radius:8px;overflow:visible;}
.audio-room-manage__panel h2{font-size:13px;line-height:1.2;margin:0;padding:12px 12px;border-bottom:1px solid #eef2f7;color:#111827;}
.audio-room-manage__list{display:flex;flex-direction:column;gap:0;max-height:320px;overflow:auto;}
.audio-room-manage__empty{padding:16px;color:#64748b;font-size:13px;text-align:center;}
.audio-room-manage-item{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid #f1f5f9;}
.audio-room-manage-item:last-child{border-bottom:0;}
.audio-room-manage-item img{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#e5e7eb;}
.audio-room-manage-item__copy{min-width:0;}
.audio-room-manage-item__copy strong{display:block;font-size:13px;color:#111827;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.audio-room-manage-item__copy small{display:block;margin-top:2px;color:#64748b;font-size:11px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.audio-room-manage-item__actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;}
.audio-room-manage-item__actions button{min-height:30px;border:1px solid #dbe3ef;border-radius:7px;background:#f8fafc;color:#0f172a;font-size:11px;font-weight:900;cursor:pointer;padding:0 9px;}
.audio-room-manage-item__actions button[data-action="approve-speaker"]{border-color:#bbf7d0;background:#f0fdf4;color:#166534;}
.audio-room-manage-item__actions button[data-action="reject-speaker"]{border-color:#fecaca;background:#fef2f2;color:#991b1b;}
.audio-room-manage-item__actions button.is-danger{border-color:#fecaca;background:#fff1f2;color:#be123c;}
.audio-room-manage-item__actions button:disabled{opacity:.55;cursor:not-allowed;}
.audio-room-manage-item.is-speaking{background:#f0fdf4;}
.audio-room-manage-item.is-speaking::after{content:attr(data-speaking-label);position:absolute;right:52px;top:50%;transform:translateY(-50%);min-height:24px;padding:0 9px;border-radius:999px;background:#16a34a;color:#fff;font-size:11px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;pointer-events:none;}
.audio-room-manage-item.is-speaking img{box-shadow:0 0 0 3px rgba(34,197,94,.22);}
.audio-room-manage-item__menu{position:relative;margin-left:auto;}
.audio-room-manage-item__menu-toggle{width:32px;height:32px;padding:0;border:0;border-radius:8px;background:#f3f4f6;color:#111827;font-size:18px;font-weight:900;line-height:0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;letter-spacing:1px;text-indent:1px;}
.audio-room-manage-item__menu-toggle:hover,.audio-room-manage-item__menu.is-open .audio-room-manage-item__menu-toggle{background:#e9edf3;}
.audio-room-manage-item__dropdown{position:fixed;left:0;top:0;z-index:9999;min-width:176px;padding:8px;border:1px solid #e6dfd3;border-radius:10px;background:#f7f1e8;box-shadow:0 18px 48px rgba(15,23,42,.16);display:none;flex-direction:column;gap:3px;}
.audio-room-manage-item__menu.is-open .audio-room-manage-item__dropdown{display:flex;flex-direction:column;gap:3px;}
.audio-room-manage-item__dropdown-arrow{position:absolute;top:-7px;left:16px;width:12px;height:12px;background:#f7f1e8;border-left:1px solid #e6dfd3;border-top:1px solid #e6dfd3;transform:rotate(45deg);}
.audio-room-manage-item__menu.is-above .audio-room-manage-item__dropdown-arrow{top:auto;bottom:-7px;border-left:0;border-top:0;border-right:1px solid #e6dfd3;border-bottom:1px solid #e6dfd3;}
.audio-room-manage-item__dropdown button{position:relative;z-index:1;min-height:36px;border:0;border-radius:7px;background:transparent;color:#111827;text-align:left;font-size:12px;font-weight:850;cursor:pointer;padding:0 10px;}
.audio-room-manage-item__dropdown button:hover{background:#efe6d9;}
.audio-room-manage-item__dropdown button.is-danger{color:#b91c1c;}
.audio-room-manage-item__dropdown button:disabled{opacity:.55;cursor:not-allowed;}
.audio-room-chat{margin-top:14px;overflow:hidden;}
.audio-room-page.audio-room-page--with-manage .audio-room-chat{display:flex;flex-direction:column;min-height:360px;height:clamp(360px,calc(100vh - 430px),540px);}
.audio-room-chat__header{height:48px;padding:0 16px;border-bottom:1px solid #eef2f7;display:flex;align-items:center;}
.audio-room-chat__messages{max-height:330px;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px;}
.audio-room-page.audio-room-page--with-manage .audio-room-chat__messages{flex:1;max-height:none;min-height:0;}
.audio-room-chat__empty{color:#64748b;font-size:13px;text-align:center;padding:20px 10px;}
.audio-room-chat-message{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.4;}
.audio-room-chat-message strong{color:#111827;white-space:nowrap;}
.audio-room-chat-message span{color:#475569;word-break:break-word;}
.audio-room-chat-message--tip span{color:#b45309;font-weight:800;}
.audio-room-chat__form{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;padding:12px;border-top:1px solid #eef2f7;}
.audio-room-chat__send{padding:0;width:44px;background:#2563eb;}
@media (max-width:900px){
    .audio-room-grid{grid-template-columns:1fr;}
    .audio-room-page.audio-room-page--with-manage{display:flex!important;flex-direction:column;gap:14px;}
    .audio-room-page.audio-room-page--with-manage .audio-room-chat{width:100%;height:auto;min-height:0;}
    .audio-room-page.audio-room-page--with-manage .audio-room-chat__messages{max-height:330px;}
    .audio-room-stage__header{flex-direction:column;}
    .audio-room-stage__actions{justify-content:flex-start;}
}
@media (max-width:640px){
    .audio-room-create{padding:18px;}
    .audio-room-segmented,.audio-room-stage__meters{grid-template-columns:1fr;}
    .audio-room-price-presets{grid-template-columns:repeat(2,minmax(0,1fr));}
    .audio-room-card__main,.audio-room-stage__identity{flex-direction:column;}
    .audio-room-stage__copy h1{font-size:21px;}
    .audio-room-hero-action{width:100%;margin-top:12px;}
    .audio-room-ticket{align-items:stretch;flex-direction:column;}
    .audio-room-tip-sheet{align-items:stretch;flex-direction:column;}
    .audio-room-ticket__form{grid-template-columns:1fr;}
    .audio-room-manage__grid{grid-template-columns:1fr;}
    .audio-room-manage-item{grid-template-columns:34px minmax(0,1fr);}
    .audio-room-manage-item.is-speaking::after{position:static;grid-column:2/-1;transform:none;width:max-content;margin-top:4px;}
    .audio-room-manage-item__actions{grid-column:1/-1;justify-content:flex-start;}
    .audio-room-manage-item__menu{grid-column:1/-1;justify-self:flex-start;margin-left:44px;}
}
:root[data-theme="dark"] .audio-room-create__icon,body.theme-dark .audio-room-create__icon,
:root[data-theme="dark"] .audio-room-card__pulse,body.theme-dark .audio-room-card__pulse,
:root[data-theme="dark"] .audio-room-stage__pulse,body.theme-dark .audio-room-stage__pulse{background:rgba(37,99,235,.18);color:#93c5fd;}
:root[data-theme="dark"] .audio-room-segmented,body.theme-dark .audio-room-segmented,
:root[data-theme="dark"] .audio-room-paid-panel,body.theme-dark .audio-room-paid-panel,
:root[data-theme="dark"] .audio-room-limit-note,body.theme-dark .audio-room-limit-note,
:root[data-theme="dark"] .audio-room-create__status,body.theme-dark .audio-room-create__status,
:root[data-theme="dark"] .audio-room-card,body.theme-dark .audio-room-card,
:root[data-theme="dark"] .audio-room-stage,body.theme-dark .audio-room-stage,
:root[data-theme="dark"] .audio-room-chat,body.theme-dark .audio-room-chat,
:root[data-theme="dark"] .audio-room-ticket,body.theme-dark .audio-room-ticket,
:root[data-theme="dark"] .audio-room-tip-sheet,body.theme-dark .audio-room-tip-sheet,
:root[data-theme="dark"] .audio-room-manage,body.theme-dark .audio-room-manage{background:#111827;border-color:#1f2937;color:#e5e7eb;}
:root[data-theme="dark"] .audio-room-segmented__item,body.theme-dark .audio-room-segmented__item,
:root[data-theme="dark"] .audio-room-card__description,body.theme-dark .audio-room-card__description,
:root[data-theme="dark"] .audio-room-card__stats,body.theme-dark .audio-room-card__stats,
:root[data-theme="dark"] .audio-room-stage__copy p,body.theme-dark .audio-room-stage__copy p,
:root[data-theme="dark"] .audio-room-meter span,body.theme-dark .audio-room-meter span,
:root[data-theme="dark"] .audio-room-status-line,body.theme-dark .audio-room-status-line,
:root[data-theme="dark"] .audio-room-chat__empty,body.theme-dark .audio-room-chat__empty,
:root[data-theme="dark"] .audio-room-chat-message span,body.theme-dark .audio-room-chat-message span{color:#94a3b8;}
:root[data-theme="dark"] .audio-room-segmented__item.active,body.theme-dark .audio-room-segmented__item.active,
:root[data-theme="dark"] .audio-room-stage__host,body.theme-dark .audio-room-stage__host,
:root[data-theme="dark"] .audio-room-meter,body.theme-dark .audio-room-meter,
:root[data-theme="dark"] .audio-room-control,body.theme-dark .audio-room-control,
:root[data-theme="dark"] .audio-room-action--ghost,body.theme-dark .audio-room-action--ghost{background:#0f172a;border-color:#1f2937;color:#e5e7eb;}
:root[data-theme="dark"] .audio-room-control.is-selected,body.theme-dark .audio-room-control.is-selected{background:#f8fafc;border-color:#f8fafc;color:#111827;}
:root[data-theme="dark"] .audio-room-ticket__form .text-field,body.theme-dark .audio-room-ticket__form .text-field{background:#0f172a;border-color:#1f2937;color:#f8fafc;}
:root[data-theme="dark"] .audio-room-switch strong,body.theme-dark .audio-room-switch strong,
:root[data-theme="dark"] .audio-room-card__title,body.theme-dark .audio-room-card__title,
:root[data-theme="dark"] .audio-room-card__name,body.theme-dark .audio-room-card__name,
:root[data-theme="dark"] .audio-room-stage__copy h1,body.theme-dark .audio-room-stage__copy h1,
:root[data-theme="dark"] .audio-room-stage__host a,body.theme-dark .audio-room-stage__host a,
:root[data-theme="dark"] .audio-room-meter strong,body.theme-dark .audio-room-meter strong,
:root[data-theme="dark"] .audio-room-chat-message strong,body.theme-dark .audio-room-chat-message strong,
:root[data-theme="dark"] .audio-room-ticket__copy strong,body.theme-dark .audio-room-ticket__copy strong{color:#f8fafc;}
:root[data-theme="dark"] .audio-room-ticket__copy span,body.theme-dark .audio-room-ticket__copy span{color:#94a3b8;}
:root[data-theme="dark"] .audio-room-card__owner-copy span,body.theme-dark .audio-room-card__owner-copy span{color:#94a3b8;}
:root[data-theme="dark"] .audio-room-card__owner,body.theme-dark .audio-room-card__owner,
:root[data-theme="dark"] .audio-room-chat__header,body.theme-dark .audio-room-chat__header,
:root[data-theme="dark"] .audio-room-chat__form,body.theme-dark .audio-room-chat__form,
:root[data-theme="dark"] .audio-room-manage__header,body.theme-dark .audio-room-manage__header,
:root[data-theme="dark"] .audio-room-manage__panel,body.theme-dark .audio-room-manage__panel,
:root[data-theme="dark"] .audio-room-manage__panel h2,body.theme-dark .audio-room-manage__panel h2,
:root[data-theme="dark"] .audio-room-manage-item,body.theme-dark .audio-room-manage-item{border-color:#1f2937;}
:root[data-theme="dark"] .audio-room-manage__header strong,body.theme-dark .audio-room-manage__header strong,
:root[data-theme="dark"] .audio-room-manage__panel h2,body.theme-dark .audio-room-manage__panel h2,
:root[data-theme="dark"] .audio-room-manage-item__copy strong,body.theme-dark .audio-room-manage-item__copy strong{color:#f8fafc;}
:root[data-theme="dark"] .audio-room-manage__header span,body.theme-dark .audio-room-manage__header span,
:root[data-theme="dark"] .audio-room-manage__empty,body.theme-dark .audio-room-manage__empty,
:root[data-theme="dark"] .audio-room-manage-item__copy small,body.theme-dark .audio-room-manage-item__copy small{color:#94a3b8;}
:root[data-theme="dark"] .audio-room-manage-item__actions button,body.theme-dark .audio-room-manage-item__actions button{background:#0f172a;border-color:#334155;color:#e5e7eb;}
:root[data-theme="dark"] .audio-room-countdown,body.theme-dark .audio-room-countdown{background:#0f172a;border-color:#1e3a8a;color:#93c5fd;}
:root[data-theme="dark"] .audio-room-countdown.is-warning,body.theme-dark .audio-room-countdown.is-warning{background:#1f1a0a;border-color:#854d0e;color:#facc15;}
:root[data-theme="dark"] .audio-room-countdown.is-danger,body.theme-dark .audio-room-countdown.is-danger{background:#2a1114;border-color:#7f1d1d;color:#fca5a5;}
:root[data-theme="dark"] .audio-room-ended-modal__panel,body.theme-dark .audio-room-ended-modal__panel{background:#111827;border-color:#334155;}
:root[data-theme="dark"] .audio-room-ended-modal__panel strong,body.theme-dark .audio-room-ended-modal__panel strong{color:#f8fafc;}
:root[data-theme="dark"] .audio-room-ended-modal__panel span,body.theme-dark .audio-room-ended-modal__panel span,
:root[data-theme="dark"] .audio-room-ended-modal__panel em,body.theme-dark .audio-room-ended-modal__panel em{color:#cbd5e1;}
:root[data-theme="dark"] .audio-room-manage-item__actions button.is-danger,body.theme-dark .audio-room-manage-item__actions button.is-danger{background:#2a1114;border-color:#7f1d1d;color:#fca5a5;}
:root[data-theme="dark"] .audio-room-manage-item.is-speaking,body.theme-dark .audio-room-manage-item.is-speaking{background:#13251a;}
:root[data-theme="dark"] .audio-room-manage-item.is-speaking::after,body.theme-dark .audio-room-manage-item.is-speaking::after{background:#15803d;color:#fff;}
:root[data-theme="dark"] .audio-room-manage-item__menu-toggle,body.theme-dark .audio-room-manage-item__menu-toggle{background:#111;color:#f5f5f5;}
:root[data-theme="dark"] .audio-room-manage-item__menu-toggle:hover,body.theme-dark .audio-room-manage-item__menu-toggle:hover,
:root[data-theme="dark"] .audio-room-manage-item__menu.is-open .audio-room-manage-item__menu-toggle,body.theme-dark .audio-room-manage-item__menu.is-open .audio-room-manage-item__menu-toggle{background:#171717;}
:root[data-theme="dark"] .audio-room-manage-item__dropdown,body.theme-dark .audio-room-manage-item__dropdown{background:#222;border-color:#333;box-shadow:0 18px 48px rgba(0,0,0,.35);}
:root[data-theme="dark"] .audio-room-manage-item__dropdown-arrow,body.theme-dark .audio-room-manage-item__dropdown-arrow{background:#222;border-color:#333;}
:root[data-theme="dark"] .audio-room-manage-item__dropdown button,body.theme-dark .audio-room-manage-item__dropdown button{color:#f5f5f5;}
:root[data-theme="dark"] .audio-room-manage-item__dropdown button:hover,body.theme-dark .audio-room-manage-item__dropdown button:hover{background:#2f2f2f;}
:root[data-theme="dark"] .audio-room-manage-item__dropdown button.is-danger,body.theme-dark .audio-room-manage-item__dropdown button.is-danger{color:#fca5a5;}

body[data-layout="messages"] .messages_box_wrapper{display:none!important;visibility:hidden!important;pointer-events:none!important;}
.messages-page-main{align-items:flex-start;padding:18px;}
.messages-page-content{width:100%;max-width:1380px;margin:0 auto;}
.messages-page{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr) minmax(230px,290px);gap:14px;width:100%;min-height:calc(100vh - 112px);}
.messages-page.messages-page--details-hidden{grid-template-columns:minmax(280px,360px) minmax(0,1fr);}
.messages-page__details[hidden]{display:none !important;}
.messages-page__drawer-backdrop{display:none;}
.messages-page__drawer-backdrop[hidden]{display:none!important;}
.messages-page__sidebar,.messages-page__thread,.messages-page__details-panel{background:var(--white,#fff);border:0;border-radius:15px;box-shadow:none;}
.messages-page__sidebar{display:flex;flex-direction:column;min-height:0;overflow:hidden;}
.messages-page__header{padding:18px;border-bottom:1px solid var(--border-color,#e6eaf0);}
.messages-page__title-row{display:flex;align-items:center;gap:12px;margin-bottom:14px;}
.messages-page__title-row .messages-page__title-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#eef6ff;color:#2563eb;line-height:0;}
.messages-page__title-icon svg{display:block;width:22px;height:22px;margin:0;}
.messages-page__title-row h1{margin:0;color:var(--text-dark,#111827);font-size:22px;font-weight:800;line-height:1.15;letter-spacing:0;}
.messages-page__title-row span{display:block;margin-top:4px;color:var(--text-muted,#64748b);font-size:13px;font-weight:700;}
.messages-page__search{display:flex;align-items:center;gap:9px;height:42px;padding:0 12px;border:1px solid var(--border-color,#dfe5ec);border-radius:8px;background:var(--body-bg,#f7f8fb);color:var(--text-muted,#64748b);}
.messages-page__search span{display:flex;align-items:center;width:18px;height:18px;flex:0 0 18px;}
.messages-page__search svg{width:18px;height:18px;}
.messages-page__search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text-dark,#111827);font-size:14px;font-weight:650;}
.messages-page__search input::placeholder{color:var(--text-muted,#64748b);}
.messages-page__conversation-list{display:flex;flex-direction:column;gap:6px;min-height:0;padding:10px;overflow:auto;}
.messages-page__group-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 2px 4px;padding:0 4px;color:var(--text-muted,#64748b);font-size:12px;font-weight:850;text-transform:uppercase;}
.messages-page__group-title strong{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:var(--body-bg,#f7f8fb);color:var(--text-muted,#64748b);font-size:11px;font-weight:850;}
.messages-page__conversation{display:grid;grid-template-columns:46px minmax(0,1fr);gap:10px;align-items:center;padding:10px;border-radius:8px;border:1px solid transparent;transition:background .16s ease,border-color .16s ease;}
.messages-page__conversation[hidden]{display:none!important;}
.messages-page__conversation:hover{background:var(--hover-bg-color,#f4f6f8);border-color:var(--border-color,#e6eaf0);}
.messages-page__conversation.is-request{background:#fff8ed;border-color:#fde8bd;}
.messages-page__conversation.is-active,.messages-page__conversation:has(.messages-page__conversation-button.is-active){background:#eef6ff;border-color:#cfe2ff;}
.messages-page__avatar{display:block;width:46px;height:46px;border-radius:50%;overflow:hidden;background:#eef2f7;}
.messages-page__avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.messages-page__conversation-button{display:flex;flex-direction:column;gap:5px;width:100%;min-width:0;padding:0;border:0;background:transparent;text-align:left;cursor:pointer;}
.messages-page__conversation-button.is-active .messages-page__conversation-top strong{color:#1d4ed8;}
.messages-page__conversation-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;}
.messages-page__conversation-top strong{display:flex;align-items:center;gap:5px;min-width:0;color:var(--text-dark,#111827);font-size:15px;font-weight:800;line-height:1.2;}
.messages-page__conversation-top strong:first-letter{text-transform:uppercase;}
.messages-page__conversation-top time{flex:0 0 auto;color:var(--text-muted,#64748b);font-size:12px;font-weight:700;}
.messages-page__verified{display:inline-flex;align-items:center;width:15px;height:15px;color:#2563eb;}
.messages-page__verified svg{width:15px;height:15px;}
.messages-page__preview{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted,#64748b);font-size:13px;font-weight:650;line-height:1.25;}
.messages-page__request-chip{display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:22px;margin-top:2px;padding:0 8px;border-radius:999px;background:#111827;color:#fff;font-size:11px;font-weight:850;line-height:1;}
.messages-page__pin-chip{display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:22px;margin-top:2px;padding:0 8px;border-radius:999px;background:#eef6ff;color:#2563eb;font-size:11px;font-weight:850;line-height:1;}
.messages-page__no-results{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;min-height:180px;padding:18px;text-align:center;color:var(--text-muted,#64748b);}
.messages-page__no-results[hidden]{display:none!important;}
.messages-page__no-results span{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#eef6ff;color:#2563eb;}
.messages-page__no-results svg{width:20px;height:20px;}
.messages-page__no-results strong{color:var(--text-dark,#111827);font-size:15px;font-weight:800;}
.messages-page__empty,.messages-page__thread-empty,.messages-page__details-panel{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;}
.messages-page__empty{min-height:260px;padding:24px;color:var(--text-muted,#64748b);}
.messages-page__empty-icon,.messages-page__thread-icon,.messages-page__details-icon{display:flex;align-items:center;justify-content:center;width:62px;height:62px;margin-bottom:14px;border-radius:50%;background:#eef6ff;color:#2563eb;}
.messages-page__empty-icon svg,.messages-page__thread-icon svg,.messages-page__details-icon svg{width:28px;height:28px;}
.messages-page__empty strong,.messages-page__thread-empty strong,.messages-page__details-panel strong{color:var(--text-dark,#111827);font-size:18px;font-weight:800;line-height:1.2;}
.messages-page__empty p,.messages-page__thread-empty p,.messages-page__details-panel p{max-width:300px;margin:8px 0 0;color:var(--text-muted,#64748b);font-size:14px;font-weight:650;line-height:1.45;}
.messages-page__thread{display:flex;align-items:center;justify-content:center;min-width:0;min-height:620px;padding:24px;overflow:hidden;}
.messages-page__thread.has-chat{display:flex;align-items:stretch;justify-content:stretch;padding:0;}
.messages-page__thread.is-loading{align-items:center;justify-content:center;}
.messages-page__thread-empty{max-width:360px;}
.messages-page__loader{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--text-dark,#111827);font-size:15px;font-weight:800;}
.messages-page__loader span{width:34px;height:34px;border-radius:50%;border:3px solid #dbeafe;border-top-color:#2563eb;animation:messagesPageSpin .75s linear infinite;}
@keyframes messagesPageSpin{to{transform:rotate(360deg);}}
.messages-page__thread.has-chat>.chat_list_header{border-bottom:1px solid var(--border-color,#e6eaf0);}
.messages-page__thread.has-chat>.chat_list_header,.messages-page__thread.has-chat>.chat_list_container{width:100%;}
.messages-page__thread.has-chat{flex-direction:column;}
.messages-page__thread.has-chat .chat_list_header{flex:0 0 auto;padding:14px 16px;}
.messages-page__thread.has-chat .chat_current_user{flex:1 1 auto;min-width:0;}
.messages-page__thread.has-chat .chat_current_user .username{font-size:16px;font-weight:800;color:var(--text-dark,#111827);}
.messages-page__thread.has-chat .back-prev,.messages-page__thread.has-chat .back-prev-chat{width:36px;height:36px;min-width:36px;border-radius:12px;background:var(--body-bg,#f7f8fb);display:flex;align-items:center;justify-content:center;cursor:pointer;line-height:0;}
.messages-page__thread.has-chat .back-prev svg,.messages-page__thread.has-chat .back-prev-chat svg{display:block;margin:0;}
.messages-page__thread.has-chat .chat_list_container{display:flex;flex:1 1 auto;min-height:0;}
.messages-page__thread.has-chat .chat_list_wrapper{flex:1 1 auto;min-height:0;padding:18px;overflow:auto;}
.messages-page__thread.has-chat .chat_input_area{flex:0 0 auto;padding:12px 14px;border-top:1px solid var(--border-color,#e6eaf0);background:var(--white,#fff);}
.messages-page__thread.has-chat .chat_input_area_wrapper{min-height:48px;border:1px solid var(--border-color,#dfe5ec);border-radius:8px;background:var(--body-bg,#f7f8fb);padding:0 8px;}
.messages-page__thread.has-chat .chat_textarea{min-height:34px;max-height:150px;padding:9px 8px;background:transparent;}
.messages-page__thread.has-chat .chat_input_icon{width:38px;height:38px;min-width:38px;flex:0 0 38px;padding:0;margin:0;border:0;border-radius:8px;display:flex;align-items:center;justify-content:center;background:transparent;color:#111827;line-height:0;box-sizing:border-box;appearance:none;-webkit-appearance:none;outline:0;overflow:hidden;transition:background .16s ease,color .16s ease;}
.messages-page__thread.has-chat .chat_input_icon:hover,
.messages-page__thread.has-chat .chat_input_icon:focus-visible,
.messages-page__thread.has-chat .chat_input_icon:active,
.messages-page__thread.has-chat .chat_input_icon.is-active{background:#f6f1ea;color:#111827;}
.messages-page__thread.has-chat .chat_input_icon svg,
.messages-page__thread.has-chat .chat_input_icon img{display:block;width:20px;height:20px;margin:0;flex:0 0 20px;}
.messages-page__thread.has-chat .chat_input_icon span{display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin:0;flex:0 0 20px;font-size:16px;font-weight:900;line-height:1;color:inherit;}
.messages-page__thread.has-chat .chat_input_area.is-locked{opacity:.76;}
.messages-page__thread.has-chat .chat_input_area.is-locked .chat_input_area_wrapper{background:#f1f5f9;}
.messages-page__thread.has-chat .chat_input_icon.is-disabled{pointer-events:none;opacity:.45;}
.chat_list_header{min-width:0;}
.chat_current_user{flex:1 1 auto;min-width:0;overflow:hidden;}
.chat_current_user .username{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.chat_header_actions{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:0 1 auto;min-width:0;margin-left:auto;}
.chat_call_controls{margin-left:0;gap:6px;flex:0 0 auto;}
.chat_call_button,.chat_header_icon_button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;border:0;border-radius:12px;background:#f6f1ea;color:#111827;cursor:pointer;line-height:0;box-sizing:border-box;transition:background .2s ease,color .2s ease;}
.chat_call_button:hover,.chat_header_icon_button:hover,.chat_header_icon_button.is-active,.chat_header_icon_button[aria-expanded="true"]{background:#eee6dc;color:#111827;}
.chat_call_button:disabled{cursor:not-allowed;opacity:.45;transform:none;}
.chat_call_button svg,.chat_call_button img,.chat_header_icon_button svg,.chat_header_icon_button img{display:block;width:19px;height:19px;margin:0;}
.chat_header_more{position:relative;display:flex;flex:0 0 auto;}
.chat_conversation_menu{position:absolute;top:calc(100% + 10px);right:0;z-index:80;width:min(232px,calc(100vw - 32px));padding:8px;border:1px solid #e7ded2;border-radius:15px;background:#fbf7f0;box-shadow:none;box-sizing:border-box;}
.chat_conversation_menu[hidden]{display:none!important;}
.chat_conversation_menu.is-floating{position:fixed;right:auto;top:auto;z-index:10090;}
.chat_conversation_menu:before{content:"";position:absolute;right:13px;top:-6px;width:12px;height:12px;border-left:1px solid #e7ded2;border-top:1px solid #e7ded2;background:#fbf7f0;transform:rotate(45deg);}
.chat_conversation_menu button{position:relative;z-index:1;display:flex;align-items:center;gap:11px;width:100%;min-height:42px;padding:0 11px;border:0;border-radius:10px;background:transparent;color:var(--text-dark,#111827);font-size:14px;font-weight:560;text-align:left;cursor:pointer;}
.chat_conversation_menu button:hover{background:#eee6dc;}
.chat_conversation_menu button.is-danger{color:#b91c1c;}
.chat_conversation_menu button span{display:flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 22px;color:#64748b;font-size:16px;font-style:normal;line-height:1;}
.chat_conversation_menu button span svg,.chat_conversation_menu button span img{display:block;width:18px;height:18px;margin:0;}
.chat_conversation_menu button.is-danger span{color:#b91c1c;}
.chat_conversation_menu button em{font-style:normal;}
.chat_thread_search{display:grid;grid-template-columns:minmax(180px,1fr) auto auto auto auto;align-items:center;gap:12px;width:100%;flex:0 0 auto;padding:12px clamp(14px,3vw,36px);border-bottom:1px solid #e7ded2;background:#fbf7f0;box-sizing:border-box;}
.chat_thread_search[hidden]{display:none!important;}
.chat_thread_search label{display:flex;align-items:center;gap:8px;width:100%;min-width:0;height:48px;padding:0 16px;border:1px solid #e7ded2;border-radius:12px;background:#fffaf4;box-sizing:border-box;}
.chat_thread_search label span,.chat_thread_search label svg{display:flex;width:18px;height:18px;color:#64748b;}
.chat_thread_search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text-dark,#111827);font-size:14px;font-weight:700;}
.chat_thread_search_count{display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:46px;padding:0 14px;border-radius:999px;background:#fffaf4;color:var(--text-muted,#64748b);font-size:13px;font-weight:850;}
.chat_thread_search button{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;min-width:46px;border:0;border-radius:12px;background:#fffaf4;color:var(--text-dark,#111827);font-size:18px;font-weight:850;line-height:1;cursor:pointer;}
.chat_thread_search button:hover{background:#eee6dc;color:#111827;}
@media (max-width:560px){
.chat_thread_search{grid-template-columns:minmax(0,1fr) auto auto auto;gap:8px;padding:10px 12px;}
.chat_thread_search label{grid-column:1/-1;height:44px;}
.chat_thread_search_count{justify-self:start;height:42px;min-width:54px;padding:0 12px;}
.chat_thread_search button{width:42px;height:42px;min-width:42px;}
}
.chat_message_row.chat_search_match .chat_bubble{box-shadow:0 0 0 3px rgba(180,136,82,.16);}
.chat_message_row.chat_search_match.is-current .chat_bubble{box-shadow:0 0 0 4px rgba(180,136,82,.28);}
.messages-page__details-panel.is-focused{animation:messagesDetailsFocus 1.2s ease;}
@keyframes messagesDetailsFocus{0%,100%{box-shadow:none;}25%,78%{box-shadow:inset 0 0 0 3px rgba(37,99,235,.14);}}
.chat_call_modal{position:fixed;inset:0;z-index:10020;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.48);}
.chat_call_modal--active{background:rgba(15,23,42,.18);pointer-events:none;}
.chat_call_modal__panel{width:min(480px,100%);display:flex;flex-direction:column;align-items:center;gap:18px;padding:18px;border-radius:15px;background:var(--white,#fff);box-shadow:0 24px 70px rgba(15,23,42,.24);text-align:center;pointer-events:auto;overflow:hidden;}
.chat_call_modal__orb{display:flex;align-items:center;justify-content:center;width:82px;height:82px;border-radius:50%;background:#eef6ff;color:#2563eb;}
.chat_call_modal__orb span{font-size:13px;font-weight:900;letter-spacing:0;}
.chat_call_modal__content{display:flex;flex-direction:column;align-items:center;gap:6px;}
.chat_call_modal__content span{color:var(--text-muted,#64748b);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:0;}
.chat_call_modal__content strong{color:var(--text-dark,#111827);font-size:22px;font-weight:900;line-height:1.15;}
.chat_call_modal__content p{max-width:280px;margin:0;color:var(--text-muted,#64748b);font-size:14px;font-weight:700;line-height:1.45;}
.chat_call_identity{position:relative;width:100%;min-height:260px;display:flex;align-items:center;justify-content:center;border-radius:15px;overflow:hidden;background:#f8fafc;}
.chat_call_identity__cover{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(12px);transform:scale(1.08);opacity:.42;}
.chat_call_identity__cover.is-empty{filter:none;transform:none;opacity:1;background:radial-gradient(circle at 50% 26%,rgba(37,99,235,.18),transparent 36%),linear-gradient(135deg,#eef6ff,#f8fafc);}
.chat_call_identity:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.74),rgba(255,255,255,.94));}
.chat_call_identity__inner{position:relative;z-index:1;display:flex;align-items:center;flex-direction:column;gap:14px;padding:26px;min-width:0;}
.chat_call_identity__avatar_wrap{position:relative;width:108px;height:108px;display:flex;align-items:center;justify-content:center;}
.chat_call_identity__pulse{position:absolute;inset:-9px;border-radius:50%;background:rgba(37,99,235,.12);animation:chatCallPulse 1.8s ease-out infinite;}
.chat_call_identity__avatar{position:relative;z-index:1;display:block;width:108px;height:108px;border:4px solid #fff;border-radius:50%;object-fit:cover;background:#eef2f7;box-shadow:0 18px 42px rgba(15,23,42,.18);}
.chat_call_identity__meta{display:flex;align-items:center;flex-direction:column;gap:5px;min-width:0;text-align:center;}
.chat_call_identity__type{display:inline-flex;align-items:center;min-height:28px;padding:0 12px;border-radius:999px;background:rgba(37,99,235,.10);color:#2563eb;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:0;}
.chat_call_identity__meta strong{display:flex;align-items:center;justify-content:center;gap:7px;max-width:100%;color:var(--text-dark,#111827);font-size:26px;font-weight:950;line-height:1.12;}
.chat_call_identity__verified{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#2563eb;color:#fff;font-size:12px;font-weight:900;line-height:1;}
.chat_call_identity__meta small{color:var(--text-muted,#64748b);font-size:13px;font-weight:800;}
.chat_call_identity__meta p{max-width:340px;margin:2px 0 0;color:var(--text-dark,#111827);font-size:15px;font-weight:850;line-height:1.35;}
@keyframes chatCallPulse{0%{transform:scale(.88);opacity:.9;}70%{transform:scale(1.24);opacity:0;}100%{transform:scale(1.24);opacity:0;}}
.chat_call_mini_header{display:none;align-items:center;justify-content:space-between;gap:10px;min-width:0;}
.chat_call_mini_header__person{display:flex;align-items:center;gap:8px;min-width:0;}
.chat_call_mini_header__person img{display:block;width:26px;height:26px;border-radius:50%;object-fit:cover;background:#eef2f7;}
.chat_call_mini_header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-dark,#111827);font-size:14px;font-weight:900;}
.chat_call_mini_header span{flex:0 0 auto;color:var(--text-muted,#64748b);font-size:12px;font-weight:800;}
.chat_call_stage{position:relative;width:100%;display:flex;flex-direction:column;gap:10px;}
.chat_call_remote{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:180px;overflow:hidden;border-radius:15px;background:#0f172a;color:#e5e7eb;}
.chat_call_remote span{font-size:13px;font-weight:800;color:#94a3b8;}
.chat_call_remote video{width:100%;height:100%;object-fit:cover;}
.chat_call_audio_surface{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.chat_call_audio_surface__cover{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(14px);transform:scale(1.1);opacity:.36;}
.chat_call_audio_surface__cover.is-empty{filter:none;transform:none;opacity:1;background:radial-gradient(circle at 50% 38%,rgba(37,99,235,.28),transparent 34%),linear-gradient(135deg,#0f172a,#111827);}
.chat_call_audio_surface:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,23,42,.54),rgba(15,23,42,.88));}
.chat_call_audio_surface__content{position:relative;z-index:1;display:flex;align-items:center;flex-direction:column;gap:10px;color:#fff;}
.chat_call_audio_surface__rings{position:absolute;top:6px;width:126px;height:126px;border-radius:50%;border:1px solid rgba(255,255,255,.28);animation:chatCallAudioRing 2s ease-out infinite;}
.chat_call_audio_surface__content img{position:relative;width:106px;height:106px;border-radius:50%;border:3px solid rgba(255,255,255,.92);object-fit:cover;background:#111827;box-shadow:0 18px 48px rgba(0,0,0,.28);}
.chat_call_audio_surface__content strong{font-size:20px;font-weight:950;line-height:1.15;}
.chat_call_audio_surface__content small{color:rgba(255,255,255,.72);font-size:13px;font-weight:850;}
@keyframes chatCallAudioRing{0%{transform:scale(.78);opacity:.9;}100%{transform:scale(1.42);opacity:0;}}
.chat_call_local{position:absolute;right:12px;bottom:34px;width:108px;height:78px;overflow:hidden;border:2px solid #fff;border-radius:12px;background:#111827;box-shadow:0 14px 34px rgba(15,23,42,.28);}
.chat_call_local video{width:100%;height:100%;object-fit:cover;}
.chat_call_local.is-muted:after{content:"Camera off";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.76);color:#fff;font-size:12px;font-weight:850;}
.chat_call_status{min-height:18px;color:var(--text-muted,#64748b);font-size:12px;font-weight:800;text-align:center;}
.chat_call_modal__actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;width:100%;}
.chat_call_action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:112px;min-height:46px;padding:0 16px;border:0;border-radius:999px;font-size:14px;font-weight:900;cursor:pointer;transition:transform .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease;}
.chat_call_action:hover{transform:translateY(-1px);}
.chat_call_action svg,.chat_call_action img{display:block;width:19px;height:19px;flex:0 0 19px;}
.chat_call_action--accept{background:#16a34a;color:#fff;}
.chat_call_action--reject{background:#fee2e2;color:#991b1b;}
.chat_call_action--end{background:#ef4444;color:#fff;box-shadow:0 12px 28px rgba(239,68,68,.22);}
.chat_call_action--end img{filter:brightness(0) invert(1);}
.chat_call_action--secondary{min-width:96px;background:var(--body-bg,#f7f8fb);color:var(--text-dark,#111827);}
.chat_call_action--secondary.is-active{background:#111827;color:#fff;}
.chat_call_action--restore{display:none;}
.chat_call_modal--active .chat_call_identity{min-height:86px;background:transparent;border-radius:0;overflow:visible;}
.chat_call_modal--active .chat_call_identity__cover,.chat_call_modal--active .chat_call_identity:after,.chat_call_modal--active .chat_call_identity__pulse{display:none;}
.chat_call_modal--active .chat_call_identity__inner{flex-direction:row;justify-content:center;width:100%;padding:0;gap:12px;}
.chat_call_modal--active .chat_call_identity__avatar_wrap{width:48px;height:48px;}
.chat_call_modal--active .chat_call_identity__avatar{width:48px;height:48px;border-width:2px;box-shadow:none;}
.chat_call_modal--active .chat_call_identity__meta{align-items:flex-start;text-align:left;gap:2px;}
.chat_call_modal--active .chat_call_identity__type{min-height:22px;padding:0 9px;font-size:10px;}
.chat_call_modal--active .chat_call_identity__meta strong{justify-content:flex-start;font-size:20px;}
.chat_call_modal--active .chat_call_identity__meta small{display:none;}
.chat_call_modal--active .chat_call_identity__meta p{margin:0;font-size:13px;color:var(--text-muted,#64748b);}
.chat_call_modal--active.is-video-call .chat_call_modal__panel{width:min(920px,calc(100vw - 48px));align-items:stretch;gap:14px;padding:16px;text-align:left;}
.chat_call_modal--active.is-video-call .chat_call_modal__content p{max-width:620px;}
.chat_call_modal--active.is-video-call .chat_call_remote{height:min(62vh,620px);min-height:360px;border-radius:15px;}
.chat_call_modal--active.is-video-call .chat_call_local{right:18px;bottom:42px;width:clamp(150px,20vw,230px);height:clamp(96px,12vw,146px);border-radius:15px;border-width:3px;}
.chat_call_modal--active.is-video-call .chat_call_status{font-size:13px;}
.chat_call_modal--active.is-video-call .chat_call_modal__actions{gap:8px;}
.chat_call_modal--active.is-audio-call .chat_call_modal__panel{width:min(560px,calc(100vw - 32px));align-items:stretch;}
.chat_call_modal--active.is-audio-call .chat_call_remote{min-height:300px;background:#0f172a;}
.chat_call_modal.is-minimized{inset:auto 22px 22px auto;width:auto;height:auto;padding:0;background:transparent;align-items:flex-end;justify-content:flex-end;pointer-events:none;}
.chat_call_modal.is-minimized.is-positioned{right:auto;bottom:auto;}
.chat_call_modal.is-minimized.is-dragging,.chat_call_modal.is-minimized.is-resizing{user-select:none;}
.chat_call_modal.is-minimized .chat_call_modal__panel{position:relative;width:min(var(--mini-call-width,320px),calc(100vw - 24px));max-width:calc(100vw - 24px);align-items:stretch;gap:9px;padding:10px 10px 12px;border-radius:15px;text-align:left;box-shadow:0 18px 48px rgba(15,23,42,.26);}
.chat_call_modal.is-minimized .chat_call_modal__orb,.chat_call_modal.is-minimized .chat_call_modal__content,.chat_call_modal.is-minimized .chat_call_identity{display:none;}
.chat_call_modal.is-minimized .chat_call_mini_header{display:flex;cursor:grab;touch-action:none;user-select:none;}
.chat_call_modal.is-minimized.is-dragging .chat_call_mini_header{cursor:grabbing;}
.chat_call_modal.is-minimized.is-dragging .chat_call_modal__panel,.chat_call_modal.is-minimized.is-resizing .chat_call_modal__panel{box-shadow:0 22px 58px rgba(15,23,42,.32);transform:scale(1.01);}
.chat_call_modal.is-minimized .chat_call_remote{min-height:0;height:var(--mini-call-stage-height,168px);border-radius:12px;}
.chat_call_modal.is-minimized .chat_call_local{right:8px;bottom:34px;width:82px;height:58px;border-width:2px;border-radius:10px;}
.chat_call_modal.is-minimized.is-audio-call .chat_call_stage{display:none;}
.chat_call_modal.is-minimized .chat_call_modal__actions{justify-content:space-between;gap:6px;flex-wrap:nowrap;}
.chat_call_modal.is-minimized .chat_call_action{width:42px;min-width:42px;max-width:42px;height:42px;min-height:42px;padding:0;border-radius:50%;font-size:0;white-space:nowrap;}
.chat_call_modal.is-minimized .chat_call_action span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;}
.chat_call_modal.is-minimized .chat_call_action svg,.chat_call_modal.is-minimized .chat_call_action img{width:19px;height:19px;flex-basis:19px;}
.chat_call_modal.is-minimized .chat_call_action--minimize{display:none;}
.chat_call_modal.is-minimized .chat_call_action--restore{display:inline-flex;}
.chat_call_resize_handle{display:none;}
.chat_call_modal.is-minimized .chat_call_resize_handle{position:absolute;right:3px;bottom:3px;display:block;width:18px;height:18px;border-radius:6px;cursor:nwse-resize;touch-action:none;opacity:.72;}
.chat_call_modal.is-minimized .chat_call_resize_handle:before,.chat_call_modal.is-minimized .chat_call_resize_handle:after{content:"";position:absolute;right:4px;bottom:4px;border-right:2px solid rgba(100,116,139,.68);border-bottom:2px solid rgba(100,116,139,.68);border-radius:1px;}
.chat_call_modal.is-minimized .chat_call_resize_handle:before{width:12px;height:12px;}
.chat_call_modal.is-minimized .chat_call_resize_handle:after{width:6px;height:6px;}
@media (max-width:720px){
    .chat_call_modal{padding:12px;}
    .chat_call_modal--active.is-video-call .chat_call_modal__panel{width:100%;padding:12px;}
    .chat_call_modal--active.is-video-call .chat_call_remote{height:52vh;min-height:280px;}
    .chat_call_modal--active.is-video-call .chat_call_local{width:122px;height:86px;right:12px;bottom:40px;}
    .chat_call_modal.is-minimized{right:12px;bottom:12px;}
    .chat_call_modal.is-minimized .chat_call_modal__panel{width:min(var(--mini-call-width,320px),calc(100vw - 24px));}
}
.chat_request_banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 14px 0;padding:14px;border-radius:12px;background:#fff8ed;border:1px solid #fde8bd;}
.chat_request_banner strong{display:block;color:#111827;font-size:14px;font-weight:850;line-height:1.2;}
.chat_request_banner p{margin:4px 0 0;color:#64748b;font-size:13px;font-weight:700;line-height:1.35;}
.chat_request_actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.chat_request_actions button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:0;border-radius:8px;background:#111827;color:#fff;font-size:13px;font-weight:850;cursor:pointer;}
.chat_request_actions button:nth-child(2){background:#f1f5f9;color:#111827;}
.chat_request_actions button:nth-child(3){background:#fee2e2;color:#991b1b;}
.chat_request_banner--quiet{background:#eef6ff;border-color:#cfe2ff;}
.chat_request_banner--blocked{background:#fef2f2;border-color:#fecaca;}
.messages-page__details{display:flex;align-items:stretch;min-width:0;min-height:calc(100vh - 112px);}
.messages-page__details-panel{align-items:stretch;justify-content:flex-start;width:100%;height:100%;min-height:calc(100vh - 112px);padding:0;position:static;top:auto;overflow:hidden;text-align:left;}
.messages-page__details-panel:has(> .messages-page__details-icon){align-items:center;justify-content:center;padding:24px;text-align:center;}
.messages-page__profile-card{display:flex;align-items:center;flex-direction:column;text-align:center;padding:0 0 18px;}
.messages-page__details-cover{display:block;width:100%;height:128px;border-radius:15px 15px 0 0;background:linear-gradient(135deg,#eef6ff,#f7f8fb);overflow:hidden;}
.messages-page__details-cover img{display:block;width:100%;height:100%;object-fit:cover;}
.messages-page__details-cover.is-empty{background:radial-gradient(circle at 24% 18%,rgba(37,99,235,.16),transparent 35%),linear-gradient(135deg,#eef6ff,#f8fafc);}
.messages-page__details-avatar{display:block;width:84px;height:84px;margin:-42px auto 14px;border:4px solid var(--white,#fff);border-radius:50%;overflow:hidden;background:#eef2f7;}
.messages-page__details-avatar img{display:block;width:100%;height:100%;object-fit:cover;}
.messages-page__details-username{margin-top:6px;color:var(--text-muted,#64748b);font-size:14px;font-weight:750;text-decoration:none;}
.messages-page__details-action{display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin-top:16px;padding:0 16px;border-radius:8px;background:#111827;color:#fff;font-size:14px;font-weight:800;text-decoration:none;}
.messages-page__shared-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 16px 16px;}
.messages-page__shared-summary div,.messages-page__detail-tab{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:58px;border:0;border-radius:12px;background:var(--body-bg,#f7f8fb);cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease;}
.messages-page__detail-tab:hover{background:#eef6ff;}
.messages-page__detail-tab.is-active{background:#111827;color:#fff;transform:translateY(-1px);}
.messages-page__shared-summary strong{font-size:16px;font-weight:850;color:var(--text-dark,#111827);}
.messages-page__shared-summary span{margin-top:3px;color:var(--text-muted,#64748b);font-size:12px;font-weight:750;}
.messages-page__detail-tab.is-active strong,.messages-page__detail-tab.is-active span{color:#fff;}
.messages-page__detail-panes{min-height:128px;}
.messages-page__detail-pane[hidden]{display:none!important;}
.messages-page__shared-section{padding:14px 16px;border-top:1px solid var(--border-color,#e6eaf0);}
.messages-page__shared-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
.messages-page__shared-header strong{color:var(--text-dark,#111827);font-size:14px;font-weight:850;}
.messages-page__shared-header span{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--body-bg,#f7f8fb);color:var(--text-muted,#64748b);font-size:12px;font-weight:800;}
.messages-page__shared-header button{margin-left:auto;border:0;background:transparent;color:#2563eb;font-size:12px;font-weight:850;cursor:pointer;}
.messages-page__media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.messages-page__media-item{position:relative;display:block;aspect-ratio:1;border:0;border-radius:12px;overflow:hidden;background:#eef2f7;color:#fff;text-decoration:none;}
.messages-page__media-item img,.messages-page__media-item video{display:block;width:100%;height:100%;object-fit:cover;}
.messages-page__media-item span{position:absolute;left:6px;bottom:6px;display:inline-flex;align-items:center;min-height:22px;padding:0 7px;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;font-size:11px;font-weight:800;}
.messages-page__media-item .messages-page__media-badge+.messages-page__media-badge{right:6px;left:auto;}
.messages-page__media-item--locked{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:9px;background:linear-gradient(135deg,#eef6ff,#f8fafc);color:#111827;cursor:pointer;text-align:center;}
.messages-page__media-item--locked:after{content:"";position:absolute;inset:0;border:1px solid rgba(37,99,235,.14);border-radius:inherit;pointer-events:none;}
.messages-page__media-lock{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#2563eb;color:#fff;font-size:15px;line-height:1;}
.messages-page__media-item--locked strong{color:#111827;font-size:12px;font-weight:850;line-height:1.1;}
.messages-page__media-item--locked small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:10px;font-weight:750;line-height:1.2;}
.messages-page__message-focus .chat_bubble{animation:messagesPageMessageFocus 1.8s ease;}
@keyframes messagesPageMessageFocus{0%,100%{box-shadow:none;}18%,72%{box-shadow:0 0 0 4px rgba(37,99,235,.18);}}
.messages-page__link-list,.messages-page__post-list{display:flex;flex-direction:column;gap:8px;}
.messages-page__link-item,.messages-page__post-item{display:flex;min-width:0;flex-direction:column;gap:3px;padding:10px 11px;border-radius:12px;background:var(--body-bg,#f7f8fb);text-decoration:none;}
.messages-page__link-item span,.messages-page__post-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-dark,#111827);font-size:13px;font-weight:850;}
.messages-page__link-item small,.messages-page__post-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted,#64748b);font-size:12px;font-weight:700;}
.messages-page__shared-empty{display:flex;align-items:center;min-height:42px;color:var(--text-muted,#64748b);font-size:13px;font-weight:700;}
.messages-assets-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(15,23,42,.46);}
.messages-assets-modal__panel{display:flex;flex-direction:column;width:min(760px,100%);max-height:min(760px,calc(100vh - 44px));overflow:hidden;border-radius:15px;background:var(--white,#fff);}
.messages-assets-modal__header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border-bottom:1px solid var(--border-color,#e6eaf0);}
.messages-assets-modal__header strong{display:block;color:var(--text-dark,#111827);font-size:18px;font-weight:850;line-height:1.2;}
.messages-assets-modal__header span{display:block;margin-top:4px;color:var(--text-muted,#64748b);font-size:13px;font-weight:700;}
.messages-assets-modal__close{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;border:0;border-radius:12px;background:var(--body-bg,#f7f8fb);color:var(--text-dark,#111827);font-size:30px;font-weight:500;line-height:1;cursor:pointer;}
.messages-assets-modal__body{min-height:220px;padding:18px;overflow:auto;}
.messages-assets-modal__media{display:grid;grid-template-columns:repeat(auto-fill,minmax(116px,1fr));gap:10px;}
.messages-assets-modal__links,.messages-assets-modal__posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;}
.messages-assets-modal__empty{display:flex;align-items:center;justify-content:center;min-height:220px;color:var(--text-muted,#64748b);font-size:14px;font-weight:750;text-align:center;}
.messages-page__toast{position:fixed;left:50%;bottom:24px;z-index:10050;max-width:min(360px,calc(100vw - 32px));padding:12px 16px;border-radius:999px;background:#111827;color:#fff;font-size:13px;font-weight:850;box-shadow:0 16px 42px rgba(15,23,42,.22);opacity:0;pointer-events:none;transform:translate(-50%,12px);transition:opacity .18s ease,transform .18s ease;}
.messages-page__toast.is-visible{opacity:1;transform:translate(-50%,0);}
.messages-page__toast.is-error{background:#b91c1c;}
.messages-action-modal{position:fixed;inset:0;z-index:10040;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(15,23,42,.42);}
.messages-action-modal__panel{width:min(380px,100%);display:flex;align-items:center;flex-direction:column;gap:11px;padding:22px;border-radius:15px;background:var(--white,#fff);box-shadow:0 24px 70px rgba(15,23,42,.24);text-align:center;}
.messages-action-modal__icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:#fee2e2;color:#991b1b;font-size:22px;font-weight:950;line-height:1;}
.messages-action-modal__panel strong{color:var(--text-dark,#111827);font-size:18px;font-weight:900;line-height:1.2;}
.messages-action-modal__panel p{max-width:310px;margin:0;color:var(--text-muted,#64748b);font-size:13px;font-weight:720;line-height:1.45;}
.messages-action-modal__actions{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:6px;}
.messages-action-modal__actions button{display:inline-flex;align-items:center;justify-content:center;min-width:112px;min-height:42px;padding:0 14px;border:0;border-radius:12px;background:var(--body-bg,#f7f8fb);color:var(--text-dark,#111827);font-size:14px;font-weight:850;cursor:pointer;}
.messages-action-modal__actions button.is-danger{background:#ef4444;color:#fff;}
.messages-action-modal--form .messages-action-modal__panel{align-items:stretch;text-align:left;}
.messages-action-modal--form .messages-action-modal__icon,.messages-action-modal--form .messages-action-modal__panel strong,.messages-action-modal--form .messages-action-modal__panel p{align-self:center;text-align:center;}
.messages-action-modal__field{display:flex;flex-direction:column;gap:7px;width:100%;}
.messages-action-modal__field span{color:var(--text-muted,#64748b);font-size:12px;font-weight:850;}
.messages-action-modal__field select,.messages-action-modal__field textarea{width:100%;border:1px solid var(--border-color,#dfe5ec);border-radius:12px;background:var(--body-bg,#f7f8fb);color:var(--text-dark,#111827);font-size:14px;font-weight:720;outline:0;}
.messages-action-modal__field select{height:42px;padding:0 12px;}
.messages-action-modal__field textarea{min-height:92px;max-height:180px;padding:11px 12px;resize:vertical;line-height:1.4;}
@media (max-width:1180px){
    .messages-page{grid-template-columns:minmax(270px,340px) minmax(0,1fr);}
    .messages-page__details{display:none;}
}
@media (max-width:820px){
    .messages-page-main{padding:12px;}
    .messages-page{grid-template-columns:1fr;min-height:auto;}
    .messages-page__thread{min-height:380px;}
}
@media (max-width:820px){
    html.messages-page-drawer-lock,body.messages-page-drawer-lock{overflow:hidden;}
    .messages-page-main{height:calc(100vh - 96px);height:calc(100dvh - 96px);padding:8px;box-sizing:border-box;}
    .messages-page-content{max-width:none;}
    .messages-page{display:block;position:relative;min-height:0;height:100%;}
    .messages-page__drawer-backdrop{position:fixed;inset:0;z-index:10080;display:block;border:0;background:rgba(17,17,17,.36);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);}
    .messages-page__drawer-backdrop[hidden]{display:none!important;}
    .messages-page__sidebar{position:fixed;top:10px;bottom:10px;left:10px;z-index:10090;width:min(88vw,360px);max-width:calc(100vw - 20px);height:auto;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);box-shadow:0 24px 70px rgba(15,23,42,.22);transform:translateX(calc(-100% - 24px));visibility:hidden;transition:transform .24s ease,visibility .24s ease;}
    .messages-page.messages-page--drawer-open .messages-page__sidebar{transform:translateX(0);visibility:visible;}
    .messages-page__thread{display:flex;min-height:0;height:100%;padding:18px;}
    .messages-page__thread.has-chat{height:100%;}
    .messages-page__thread.has-chat .chat_list_header{padding:10px 12px;}
    .messages-page__thread.has-chat .chat_list_container{flex:1 1 auto;min-height:0;overflow:hidden;}
    .messages-page__thread.has-chat .chat_list_wrapper{padding:12px;overscroll-behavior:contain;}
    .messages-page__thread.has-chat .chat_input_area{padding:10px 12px calc(10px + env(safe-area-inset-bottom));}
    .messages-page__details{display:none!important;}
}
@media (max-width:560px){
    .messages-page-main{padding:8px;}
    .messages-page{gap:10px;}
    .messages-page__header{padding:14px;}
    .messages-page__title-icon{width:40px;height:40px;flex-basis:40px;}
    .messages-page__title-row h1{font-size:20px;}
    .messages-page__conversation-list{padding:8px;}
    .messages-page__conversation{grid-template-columns:42px minmax(0,1fr);padding:8px;}
    .messages-page__avatar{width:42px;height:42px;}
    .messages-page__thread.has-chat .chat_list_header{padding:10px 12px;}
    .messages-page__thread.has-chat .chat_list_wrapper{padding:12px;}
    .messages-assets-modal{padding:12px;}
    .messages-assets-modal__panel{max-height:calc(100vh - 24px);}
    .messages-assets-modal__media{grid-template-columns:repeat(3,minmax(0,1fr));}
    .messages-assets-modal__links,.messages-assets-modal__posts{grid-template-columns:1fr;}
}
:root[data-theme="dark"] .messages-page__sidebar,body.theme-dark .messages-page__sidebar,
:root[data-theme="dark"] .messages-page__thread,body.theme-dark .messages-page__thread,
:root[data-theme="dark"] .messages-page__details-panel,body.theme-dark .messages-page__details-panel{background:#111827;border:0;box-shadow:none;}
:root[data-theme="dark"] .messages-page__header,body.theme-dark .messages-page__header{border-color:#1f2937;}
:root[data-theme="dark"] .messages-page__title-icon,body.theme-dark .messages-page__title-icon,
:root[data-theme="dark"] .messages-page__empty-icon,body.theme-dark .messages-page__empty-icon,
:root[data-theme="dark"] .messages-page__thread-icon,body.theme-dark .messages-page__thread-icon,
:root[data-theme="dark"] .messages-page__details-icon,body.theme-dark .messages-page__details-icon,
:root[data-theme="dark"] .messages-page__no-results span,body.theme-dark .messages-page__no-results span{background:rgba(37,99,235,.18);color:#93c5fd;}
:root[data-theme="dark"] .messages-page__search,body.theme-dark .messages-page__search{background:#0f172a;border-color:#1f2937;color:#94a3b8;}
:root[data-theme="dark"] .messages-page__search input,body.theme-dark .messages-page__search input,
:root[data-theme="dark"] .messages-page__title-row h1,body.theme-dark .messages-page__title-row h1,
:root[data-theme="dark"] .messages-page__conversation-top strong,body.theme-dark .messages-page__conversation-top strong,
:root[data-theme="dark"] .messages-page__empty strong,body.theme-dark .messages-page__empty strong,
:root[data-theme="dark"] .messages-page__thread-empty strong,body.theme-dark .messages-page__thread-empty strong,
:root[data-theme="dark"] .messages-page__details-panel strong,body.theme-dark .messages-page__details-panel strong,
:root[data-theme="dark"] .messages-page__no-results strong,body.theme-dark .messages-page__no-results strong{color:#f8fafc;}
:root[data-theme="dark"] .messages-page__title-row span,body.theme-dark .messages-page__title-row span,
:root[data-theme="dark"] .messages-page__conversation-top time,body.theme-dark .messages-page__conversation-top time,
:root[data-theme="dark"] .messages-page__preview,body.theme-dark .messages-page__preview,
:root[data-theme="dark"] .messages-page__empty,body.theme-dark .messages-page__empty,
:root[data-theme="dark"] .messages-page__empty p,body.theme-dark .messages-page__empty p,
:root[data-theme="dark"] .messages-page__thread-empty p,body.theme-dark .messages-page__thread-empty p,
:root[data-theme="dark"] .messages-page__details-panel p,body.theme-dark .messages-page__details-panel p{color:#94a3b8;}
:root[data-theme="dark"] .messages-page__conversation:hover,body.theme-dark .messages-page__conversation:hover{background:#0f172a;border-color:#263244;}
:root[data-theme="dark"] .messages-page__conversation.is-request,body.theme-dark .messages-page__conversation.is-request{background:#1f1a12;border-color:#43331a;}
:root[data-theme="dark"] .messages-page__conversation.is-active,body.theme-dark .messages-page__conversation.is-active,
:root[data-theme="dark"] .messages-page__conversation:has(.messages-page__conversation-button.is-active),body.theme-dark .messages-page__conversation:has(.messages-page__conversation-button.is-active){background:#0f172a;border-color:#1d4ed8;}
:root[data-theme="dark"] .messages-page__avatar,body.theme-dark .messages-page__avatar{background:#1f2937;}
:root[data-theme="dark"] .messages-page__thread.has-chat>.chat_list_header,body.theme-dark .messages-page__thread.has-chat>.chat_list_header,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_input_area,body.theme-dark .messages-page__thread.has-chat .chat_input_area{border-color:#1f2937;background:#111827;}
:root[data-theme="dark"] .messages-page__thread.has-chat .back-prev,body.theme-dark .messages-page__thread.has-chat .back-prev,
:root[data-theme="dark"] .messages-page__thread.has-chat .back-prev-chat,body.theme-dark .messages-page__thread.has-chat .back-prev-chat,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_input_area_wrapper,body.theme-dark .messages-page__thread.has-chat .chat_input_area_wrapper{background:#0f172a;border-color:#1f2937;}
:root[data-theme="dark"] .chat_call_button,body.theme-dark .chat_call_button,
:root[data-theme="dark"] .chat_header_icon_button,body.theme-dark .chat_header_icon_button{background:#0f172a;color:#e5e7eb;}
:root[data-theme="dark"] .chat_call_button:hover,body.theme-dark .chat_call_button:hover,
:root[data-theme="dark"] .chat_header_icon_button:hover,body.theme-dark .chat_header_icon_button:hover{background:#172554;color:#60a5fa;}
:root[data-theme="dark"] .chat_conversation_menu,body.theme-dark .chat_conversation_menu,
:root[data-theme="dark"] .chat_conversation_menu:before,body.theme-dark .chat_conversation_menu:before{background:#111827;border-color:#1f2937;}
:root[data-theme="dark"] .chat_conversation_menu button,body.theme-dark .chat_conversation_menu button{color:#f8fafc;}
:root[data-theme="dark"] .chat_conversation_menu button:hover,body.theme-dark .chat_conversation_menu button:hover{background:#0f172a;}
:root[data-theme="dark"] .chat_conversation_menu button span,body.theme-dark .chat_conversation_menu button span{color:#94a3b8;}
:root[data-theme="dark"] .chat_conversation_menu button.is-danger,body.theme-dark .chat_conversation_menu button.is-danger,
:root[data-theme="dark"] .chat_conversation_menu button.is-danger span,body.theme-dark .chat_conversation_menu button.is-danger span{color:#fca5a5;}
:root[data-theme="dark"] .chat_thread_search,body.theme-dark .chat_thread_search{background:#111827;border-color:#1f2937;}
:root[data-theme="dark"] .chat_thread_search label,body.theme-dark .chat_thread_search label,
:root[data-theme="dark"] .chat_thread_search_count,body.theme-dark .chat_thread_search_count,
:root[data-theme="dark"] .chat_thread_search button,body.theme-dark .chat_thread_search button{background:#0f172a;border-color:#1f2937;color:#e5e7eb;}
:root[data-theme="dark"] .chat_thread_search input,body.theme-dark .chat_thread_search input{color:#f8fafc;}
:root[data-theme="dark"] .chat_thread_search button:hover,body.theme-dark .chat_thread_search button:hover{background:#172554;color:#93c5fd;}
:root[data-theme="dark"] .chat_call_modal__panel,body.theme-dark .chat_call_modal__panel{background:#111827;box-shadow:0 24px 70px rgba(0,0,0,.44);}
:root[data-theme="dark"] .chat_call_modal__orb,body.theme-dark .chat_call_modal__orb{background:#172554;color:#93c5fd;}
:root[data-theme="dark"] .chat_call_identity,body.theme-dark .chat_call_identity{background:#0f172a;}
:root[data-theme="dark"] .chat_call_identity:after,body.theme-dark .chat_call_identity:after{background:linear-gradient(180deg,rgba(15,23,42,.68),rgba(17,24,39,.94));}
:root[data-theme="dark"] .chat_call_identity__cover.is-empty,body.theme-dark .chat_call_identity__cover.is-empty{background:radial-gradient(circle at 50% 26%,rgba(147,197,253,.16),transparent 36%),linear-gradient(135deg,#0f172a,#111827);}
:root[data-theme="dark"] .chat_call_identity__avatar,body.theme-dark .chat_call_identity__avatar{border-color:#111827;background:#1f2937;}
:root[data-theme="dark"] .chat_call_identity__type,body.theme-dark .chat_call_identity__type{background:rgba(147,197,253,.14);color:#93c5fd;}
:root[data-theme="dark"] .chat_call_identity__meta p,body.theme-dark .chat_call_identity__meta p{color:#e5e7eb;}
:root[data-theme="dark"] .chat_call_modal__content strong,body.theme-dark .chat_call_modal__content strong{color:#f8fafc;}
:root[data-theme="dark"] .chat_call_mini_header strong,body.theme-dark .chat_call_mini_header strong,
:root[data-theme="dark"] .chat_call_identity__meta strong,body.theme-dark .chat_call_identity__meta strong{color:#f8fafc;}
:root[data-theme="dark"] .chat_call_modal__content span,:root[data-theme="dark"] .chat_call_modal__content p,
body.theme-dark .chat_call_modal__content span,body.theme-dark .chat_call_modal__content p,
:root[data-theme="dark"] .chat_call_mini_header span,body.theme-dark .chat_call_mini_header span,
:root[data-theme="dark"] .chat_call_identity__meta small,body.theme-dark .chat_call_identity__meta small{color:#94a3b8;}
:root[data-theme="dark"] .chat_call_action--secondary,body.theme-dark .chat_call_action--secondary{background:#0f172a;color:#e5e7eb;}
:root[data-theme="dark"] .chat_call_action--secondary.is-active,body.theme-dark .chat_call_action--secondary.is-active{background:#e5e7eb;color:#111827;}
:root[data-theme="dark"] .messages-page__group-title,body.theme-dark .messages-page__group-title,
:root[data-theme="dark"] .messages-page__group-title strong,body.theme-dark .messages-page__group-title strong{color:#94a3b8;}
:root[data-theme="dark"] .messages-page__group-title strong,body.theme-dark .messages-page__group-title strong{background:#0f172a;}
:root[data-theme="dark"] .messages-page__pin-chip,body.theme-dark .messages-page__pin-chip{background:#172554;color:#93c5fd;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_input_area.is-locked .chat_input_area_wrapper,body.theme-dark .messages-page__thread.has-chat .chat_input_area.is-locked .chat_input_area_wrapper{background:#111827;}
:root[data-theme="dark"] .chat_request_banner,body.theme-dark .chat_request_banner{background:#1f1a12;border-color:#43331a;}
:root[data-theme="dark"] .chat_request_banner strong,body.theme-dark .chat_request_banner strong{color:#f8fafc;}
:root[data-theme="dark"] .chat_request_banner p,body.theme-dark .chat_request_banner p{color:#94a3b8;}
:root[data-theme="dark"] .chat_request_actions button:nth-child(2),body.theme-dark .chat_request_actions button:nth-child(2){background:#0f172a;color:#f8fafc;}
:root[data-theme="dark"] .chat_request_banner--quiet,body.theme-dark .chat_request_banner--quiet{background:#0f172a;border-color:#1d4ed8;}
:root[data-theme="dark"] .chat_request_banner--blocked,body.theme-dark .chat_request_banner--blocked{background:#2a1313;border-color:#7f1d1d;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_current_user .username,body.theme-dark .messages-page__thread.has-chat .chat_current_user .username,
:root[data-theme="dark"] .messages-page__loader,body.theme-dark .messages-page__loader{color:#f8fafc;}
:root[data-theme="dark"] .messages-page__details-avatar,body.theme-dark .messages-page__details-avatar{background:#1f2937;}
:root[data-theme="dark"] .messages-page__details-action,body.theme-dark .messages-page__details-action{background:#f8fafc;color:#111827;}
:root[data-theme="dark"] .messages-page__details-avatar,body.theme-dark .messages-page__details-avatar{border-color:#111827;}
:root[data-theme="dark"] .messages-page__details-cover.is-empty,body.theme-dark .messages-page__details-cover.is-empty{background:radial-gradient(circle at 24% 18%,rgba(147,197,253,.16),transparent 35%),linear-gradient(135deg,#0f172a,#111827);}
:root[data-theme="dark"] .messages-page__shared-summary div,body.theme-dark .messages-page__shared-summary div,
:root[data-theme="dark"] .messages-page__detail-tab,body.theme-dark .messages-page__detail-tab,
:root[data-theme="dark"] .messages-page__shared-header span,body.theme-dark .messages-page__shared-header span,
:root[data-theme="dark"] .messages-page__link-item,body.theme-dark .messages-page__link-item,
:root[data-theme="dark"] .messages-page__post-item,body.theme-dark .messages-page__post-item{background:#0f172a;}
:root[data-theme="dark"] .messages-page__detail-tab:hover,body.theme-dark .messages-page__detail-tab:hover{background:#172033;}
:root[data-theme="dark"] .messages-page__detail-tab.is-active,body.theme-dark .messages-page__detail-tab.is-active{background:#f8fafc;color:#111827;}
:root[data-theme="dark"] .messages-page__shared-section,body.theme-dark .messages-page__shared-section{border-color:#1f2937;}
:root[data-theme="dark"] .messages-page__shared-header button,body.theme-dark .messages-page__shared-header button{color:#93c5fd;}
:root[data-theme="dark"] .messages-page__shared-summary strong,body.theme-dark .messages-page__shared-summary strong,
:root[data-theme="dark"] .messages-page__shared-header strong,body.theme-dark .messages-page__shared-header strong,
:root[data-theme="dark"] .messages-page__link-item span,body.theme-dark .messages-page__link-item span,
:root[data-theme="dark"] .messages-page__post-item strong,body.theme-dark .messages-page__post-item strong{color:#f8fafc;}
:root[data-theme="dark"] .messages-page__shared-summary span,body.theme-dark .messages-page__shared-summary span,
:root[data-theme="dark"] .messages-page__link-item small,body.theme-dark .messages-page__link-item small,
:root[data-theme="dark"] .messages-page__post-item span,body.theme-dark .messages-page__post-item span,
:root[data-theme="dark"] .messages-page__shared-empty,body.theme-dark .messages-page__shared-empty{color:#94a3b8;}
:root[data-theme="dark"] .messages-page__detail-tab.is-active strong,body.theme-dark .messages-page__detail-tab.is-active strong,
:root[data-theme="dark"] .messages-page__detail-tab.is-active span,body.theme-dark .messages-page__detail-tab.is-active span{color:#111827;}
:root[data-theme="dark"] .messages-page__media-item--locked,body.theme-dark .messages-page__media-item--locked{background:linear-gradient(135deg,#0f172a,#172033);color:#f8fafc;}
:root[data-theme="dark"] .messages-page__media-item--locked strong,body.theme-dark .messages-page__media-item--locked strong{color:#f8fafc;}
:root[data-theme="dark"] .messages-page__media-item--locked small,body.theme-dark .messages-page__media-item--locked small{color:#94a3b8;}
:root[data-theme="dark"] .messages-page__media-item--locked:after,body.theme-dark .messages-page__media-item--locked:after{border-color:rgba(147,197,253,.16);}
:root[data-theme="dark"] .messages-assets-modal,body.theme-dark .messages-assets-modal{background:rgba(2,6,23,.62);}
:root[data-theme="dark"] .messages-assets-modal__panel,body.theme-dark .messages-assets-modal__panel{background:#111827;}
:root[data-theme="dark"] .messages-action-modal,body.theme-dark .messages-action-modal{background:rgba(2,6,23,.62);}
:root[data-theme="dark"] .messages-action-modal__panel,body.theme-dark .messages-action-modal__panel{background:#111827;box-shadow:0 24px 70px rgba(0,0,0,.44);}
:root[data-theme="dark"] .messages-action-modal__panel strong,body.theme-dark .messages-action-modal__panel strong{color:#f8fafc;}
:root[data-theme="dark"] .messages-action-modal__panel p,body.theme-dark .messages-action-modal__panel p{color:#94a3b8;}
:root[data-theme="dark"] .messages-action-modal__actions button,body.theme-dark .messages-action-modal__actions button{background:#0f172a;color:#f8fafc;}
:root[data-theme="dark"] .messages-action-modal__field span,body.theme-dark .messages-action-modal__field span{color:#94a3b8;}
:root[data-theme="dark"] .messages-action-modal__field select,body.theme-dark .messages-action-modal__field select,
:root[data-theme="dark"] .messages-action-modal__field textarea,body.theme-dark .messages-action-modal__field textarea{background:#0f172a;border-color:#1f2937;color:#f8fafc;}
:root[data-theme="dark"] .messages-assets-modal__header,body.theme-dark .messages-assets-modal__header{border-color:#1f2937;}
:root[data-theme="dark"] .messages-assets-modal__header strong,body.theme-dark .messages-assets-modal__header strong,
:root[data-theme="dark"] .messages-assets-modal__close,body.theme-dark .messages-assets-modal__close{color:#f8fafc;}
:root[data-theme="dark"] .messages-assets-modal__header span,body.theme-dark .messages-assets-modal__header span,
:root[data-theme="dark"] .messages-assets-modal__empty,body.theme-dark .messages-assets-modal__empty{color:#94a3b8;}
:root[data-theme="dark"] .messages-assets-modal__close,body.theme-dark .messages-assets-modal__close{background:#0f172a;}

:root[data-theme="dark"] .messages-page__sidebar,body.theme-dark .messages-page__sidebar,
:root[data-theme="dark"] .messages-page__thread,body.theme-dark .messages-page__thread,
:root[data-theme="dark"] .messages-page__details-panel,body.theme-dark .messages-page__details-panel,
:root[data-theme="dark"] .messages-page__thread.has-chat>.chat_list_header,body.theme-dark .messages-page__thread.has-chat>.chat_list_header,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_input_area,body.theme-dark .messages-page__thread.has-chat .chat_input_area{background:#202020;border-color:#303030;color:#f3f4f6;box-shadow:none;}
:root[data-theme="dark"] .messages-page__header,body.theme-dark .messages-page__header,
:root[data-theme="dark"] .messages-page__shared-section,body.theme-dark .messages-page__shared-section,
:root[data-theme="dark"] .messages-page__thread.has-chat>.chat_list_header,body.theme-dark .messages-page__thread.has-chat>.chat_list_header,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_input_area,body.theme-dark .messages-page__thread.has-chat .chat_input_area{border-color:#303030;}
:root[data-theme="dark"] .messages-page__search,body.theme-dark .messages-page__search,
:root[data-theme="dark"] .messages-page__thread.has-chat .back-prev,body.theme-dark .messages-page__thread.has-chat .back-prev,
:root[data-theme="dark"] .messages-page__thread.has-chat .back-prev-chat,body.theme-dark .messages-page__thread.has-chat .back-prev-chat,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_input_area_wrapper,body.theme-dark .messages-page__thread.has-chat .chat_input_area_wrapper,
:root[data-theme="dark"] .chat_call_button,body.theme-dark .chat_call_button,
:root[data-theme="dark"] .chat_header_icon_button,body.theme-dark .chat_header_icon_button,
:root[data-theme="dark"] .chat_thread_search label,body.theme-dark .chat_thread_search label,
:root[data-theme="dark"] .chat_thread_search_count,body.theme-dark .chat_thread_search_count,
:root[data-theme="dark"] .chat_thread_search button,body.theme-dark .chat_thread_search button,
:root[data-theme="dark"] .messages-page__group-title strong,body.theme-dark .messages-page__group-title strong,
:root[data-theme="dark"] .messages-page__shared-summary div,body.theme-dark .messages-page__shared-summary div,
:root[data-theme="dark"] .messages-page__detail-tab,body.theme-dark .messages-page__detail-tab,
:root[data-theme="dark"] .messages-page__shared-header span,body.theme-dark .messages-page__shared-header span,
:root[data-theme="dark"] .messages-page__link-item,body.theme-dark .messages-page__link-item,
:root[data-theme="dark"] .messages-page__post-item,body.theme-dark .messages-page__post-item{background:#151515;border-color:#303030;color:#e5e7eb;}
:root[data-theme="dark"] .messages-page__search input,body.theme-dark .messages-page__search input,
:root[data-theme="dark"] .chat_thread_search input,body.theme-dark .chat_thread_search input,
:root[data-theme="dark"] .messages-page__title-row h1,body.theme-dark .messages-page__title-row h1,
:root[data-theme="dark"] .messages-page__conversation-top strong,body.theme-dark .messages-page__conversation-top strong,
:root[data-theme="dark"] .messages-page__empty strong,body.theme-dark .messages-page__empty strong,
:root[data-theme="dark"] .messages-page__thread-empty strong,body.theme-dark .messages-page__thread-empty strong,
:root[data-theme="dark"] .messages-page__details-panel strong,body.theme-dark .messages-page__details-panel strong,
:root[data-theme="dark"] .messages-page__no-results strong,body.theme-dark .messages-page__no-results strong,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_current_user .username,body.theme-dark .messages-page__thread.has-chat .chat_current_user .username,
:root[data-theme="dark"] .messages-page__shared-summary strong,body.theme-dark .messages-page__shared-summary strong,
:root[data-theme="dark"] .messages-page__shared-header strong,body.theme-dark .messages-page__shared-header strong,
:root[data-theme="dark"] .messages-page__link-item span,body.theme-dark .messages-page__link-item span,
:root[data-theme="dark"] .messages-page__post-item strong,body.theme-dark .messages-page__post-item strong{color:#f5f5f5;}
:root[data-theme="dark"] .messages-page__title-row span,body.theme-dark .messages-page__title-row span,
:root[data-theme="dark"] .messages-page__conversation-top time,body.theme-dark .messages-page__conversation-top time,
:root[data-theme="dark"] .messages-page__preview,body.theme-dark .messages-page__preview,
:root[data-theme="dark"] .messages-page__empty,body.theme-dark .messages-page__empty,
:root[data-theme="dark"] .messages-page__empty p,body.theme-dark .messages-page__empty p,
:root[data-theme="dark"] .messages-page__thread-empty p,body.theme-dark .messages-page__thread-empty p,
:root[data-theme="dark"] .messages-page__details-panel p,body.theme-dark .messages-page__details-panel p,
:root[data-theme="dark"] .messages-page__group-title,body.theme-dark .messages-page__group-title,
:root[data-theme="dark"] .messages-page__group-title strong,body.theme-dark .messages-page__group-title strong,
:root[data-theme="dark"] .messages-page__shared-summary span,body.theme-dark .messages-page__shared-summary span,
:root[data-theme="dark"] .messages-page__link-item small,body.theme-dark .messages-page__link-item small,
:root[data-theme="dark"] .messages-page__post-item span,body.theme-dark .messages-page__post-item span,
:root[data-theme="dark"] .messages-page__shared-empty,body.theme-dark .messages-page__shared-empty{color:#b8bec6;}
:root[data-theme="dark"] .messages-page__conversation:hover,body.theme-dark .messages-page__conversation:hover{background:#242424;border-color:#383838;}
:root[data-theme="dark"] .messages-page__conversation.is-active,body.theme-dark .messages-page__conversation.is-active,
:root[data-theme="dark"] .messages-page__conversation:has(.messages-page__conversation-button.is-active),body.theme-dark .messages-page__conversation:has(.messages-page__conversation-button.is-active){background:#242424;border-color:#3b82f6;}
:root[data-theme="dark"] .messages-page__avatar,body.theme-dark .messages-page__avatar,
:root[data-theme="dark"] .messages-page__details-avatar,body.theme-dark .messages-page__details-avatar{background:#2a2a2a;}
:root[data-theme="dark"] .messages-page__details-avatar,body.theme-dark .messages-page__details-avatar{border-color:#202020;}
:root[data-theme="dark"] .messages-page__details-cover.is-empty,body.theme-dark .messages-page__details-cover.is-empty{background:radial-gradient(circle at 24% 18%,rgba(255,255,255,.08),transparent 35%),linear-gradient(135deg,#2a2a2a,#202020);}
:root[data-theme="dark"] .chat_call_button:hover,body.theme-dark .chat_call_button:hover,
:root[data-theme="dark"] .chat_header_icon_button:hover,body.theme-dark .chat_header_icon_button:hover,
:root[data-theme="dark"] .chat_thread_search button:hover,body.theme-dark .chat_thread_search button:hover,
:root[data-theme="dark"] .messages-page__detail-tab:hover,body.theme-dark .messages-page__detail-tab:hover{background:#2b2b2b;color:#f5f5f5;}
:root[data-theme="dark"] .chat_conversation_menu,body.theme-dark .chat_conversation_menu,
:root[data-theme="dark"] .chat_conversation_menu:before,body.theme-dark .chat_conversation_menu:before,
:root[data-theme="dark"] .chat_thread_search,body.theme-dark .chat_thread_search,
:root[data-theme="dark"] .messages-assets-modal__panel,body.theme-dark .messages-assets-modal__panel,
:root[data-theme="dark"] .messages-action-modal__panel,body.theme-dark .messages-action-modal__panel{background:#202020;border-color:#303030;}
:root[data-theme="dark"] .chat_conversation_menu button,body.theme-dark .chat_conversation_menu button{color:#f5f5f5;}
:root[data-theme="dark"] .chat_conversation_menu button:hover,body.theme-dark .chat_conversation_menu button:hover{background:#2b2b2b;}
:root[data-theme="dark"] .chat_conversation_menu button span,body.theme-dark .chat_conversation_menu button span{color:#b8bec6;}
:root[data-theme="dark"] .messages-page__pin-chip,body.theme-dark .messages-page__pin-chip{background:#2b2b2b;color:#e5e7eb;}
:root[data-theme="dark"] .messages-page__media-item--locked,body.theme-dark .messages-page__media-item--locked{background:linear-gradient(135deg,#242424,#181818);color:#f5f5f5;}
:root[data-theme="dark"] .messages-page__media-item--locked:after,body.theme-dark .messages-page__media-item--locked:after{border-color:rgba(255,255,255,.08);}
:root[data-theme="dark"] .messages-assets-modal,body.theme-dark .messages-assets-modal,
:root[data-theme="dark"] .messages-action-modal,body.theme-dark .messages-action-modal{background:rgba(0,0,0,.62);}
:root[data-theme="dark"] .chat_call_modal__panel,body.theme-dark .chat_call_modal__panel{background:#202020;box-shadow:0 24px 70px rgba(0,0,0,.44);}
:root[data-theme="dark"] .chat_call_modal__orb,body.theme-dark .chat_call_modal__orb,
:root[data-theme="dark"] .chat_call_identity,body.theme-dark .chat_call_identity{background:#2a2a2a;color:#f5f5f5;}
:root[data-theme="dark"] .chat_call_identity:after,body.theme-dark .chat_call_identity:after{background:linear-gradient(180deg,rgba(32,32,32,.68),rgba(24,24,24,.94));}
:root[data-theme="dark"] .chat_call_identity__cover.is-empty,body.theme-dark .chat_call_identity__cover.is-empty{background:radial-gradient(circle at 50% 26%,rgba(255,255,255,.08),transparent 36%),linear-gradient(135deg,#2a2a2a,#202020);}
:root[data-theme="dark"] .chat_call_identity__avatar,body.theme-dark .chat_call_identity__avatar{border-color:#202020;background:#2a2a2a;}
:root[data-theme="dark"] .chat_call_action--secondary,body.theme-dark .chat_call_action--secondary{background:#151515;color:#f5f5f5;}
:root[data-theme="dark"] .chat_call_action--secondary.is-active,body.theme-dark .chat_call_action--secondary.is-active{background:#f5f5f5;color:#151515;}
:root[data-theme="dark"] .messages-page .chat_header_icon_button,body.theme-dark .messages-page .chat_header_icon_button,
:root[data-theme="dark"] .messages-page .chat_call_button,body.theme-dark .messages-page .chat_call_button,
:root[data-theme="dark"] .messages-page .chat_thread_search button,body.theme-dark .messages-page .chat_thread_search button,
:root[data-theme="dark"] .messages-page .chat_thread_search_count,body.theme-dark .messages-page .chat_thread_search_count{background:#151515!important;color:#e5e7eb!important;border-color:#303030!important;}
:root[data-theme="dark"] .messages-page .chat_header_icon_button:hover,body.theme-dark .messages-page .chat_header_icon_button:hover,
:root[data-theme="dark"] .messages-page .chat_header_icon_button.is-active,body.theme-dark .messages-page .chat_header_icon_button.is-active,
:root[data-theme="dark"] .messages-page .chat_header_icon_button[aria-expanded="true"],body.theme-dark .messages-page .chat_header_icon_button[aria-expanded="true"],
:root[data-theme="dark"] .messages-page .chat_call_button:hover,body.theme-dark .messages-page .chat_call_button:hover,
:root[data-theme="dark"] .messages-page .chat_thread_search button:hover,body.theme-dark .messages-page .chat_thread_search button:hover{background:#2b2b2b!important;color:#f5f5f5!important;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_input_icon,body.theme-dark .messages-page__thread.has-chat .chat_input_icon{background:transparent;color:#e5e7eb;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_input_icon:hover,body.theme-dark .messages-page__thread.has-chat .chat_input_icon:hover,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_input_icon:focus-visible,body.theme-dark .messages-page__thread.has-chat .chat_input_icon:focus-visible,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_input_icon:active,body.theme-dark .messages-page__thread.has-chat .chat_input_icon:active,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_input_icon.is-active,body.theme-dark .messages-page__thread.has-chat .chat_input_icon.is-active{background:#2b2b2b;color:#f5f5f5;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_btn span,
body.theme-dark .messages-page__thread.has-chat .chat_tip_btn span{background:#2b2b2b;color:#f5f5f5;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_btn:hover,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_btn:focus-visible,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_btn:active,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_btn.is-active,
body.theme-dark .messages-page__thread.has-chat .chat_tip_btn:hover,
body.theme-dark .messages-page__thread.has-chat .chat_tip_btn:focus-visible,
body.theme-dark .messages-page__thread.has-chat .chat_tip_btn:active,
body.theme-dark .messages-page__thread.has-chat .chat_tip_btn.is-active{background-color:#343434!important;color:#f5f5f5;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_btn:hover span,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_btn:focus-visible span,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_btn:active span,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_btn.is-active span,
body.theme-dark .messages-page__thread.has-chat .chat_tip_btn:hover span,
body.theme-dark .messages-page__thread.has-chat .chat_tip_btn:focus-visible span,
body.theme-dark .messages-page__thread.has-chat .chat_tip_btn:active span,
body.theme-dark .messages-page__thread.has-chat .chat_tip_btn.is-active span{background:#f5f5f5;color:#202020;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel,
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel{background:#2b2b2b;color:#f5f5f5;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel__copy span,
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel__copy span{color:#b8bec6;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel__copy strong,
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel__copy strong{color:#f5f5f5;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel label,
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel label{background:#202020;color:#f5f5f5;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel label span,
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel label span,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel input,
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel input{color:#e5e7eb;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel [data-chat-tip-send],
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel [data-chat-tip-send]{background:#f5f5f5;color:#202020;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel [data-chat-tip-send]:hover,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel [data-chat-tip-send]:focus-visible,
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel [data-chat-tip-send]:hover,
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel [data-chat-tip-send]:focus-visible{background:#ffffff;color:#151515;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel [data-chat-tip-send][disabled],
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel [data-chat-tip-send][disabled]{background:#3a3a3a;color:#8f949b;opacity:1;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel [data-chat-tip-close],
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel [data-chat-tip-close]{background:#202020;color:#f5f5f5;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel [data-chat-tip-close]:hover,
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel [data-chat-tip-close]:hover{background:#151515;color:#ffffff;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel__error,
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel__error{background:rgba(248,113,113,.14);color:#fca5a5;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel__topup,
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel__topup{background:#f5f5f5;color:#202020;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel__topup:hover,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_panel__topup:focus-visible,
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel__topup:hover,
body.theme-dark .messages-page__thread.has-chat .chat_tip_panel__topup:focus-visible{background:#ffffff;color:#151515;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_bubble.chat_bubble--tip,
body.theme-dark .messages-page__thread.has-chat .chat_bubble.chat_bubble--tip{background:linear-gradient(135deg,#12351f,#17452a);border-color:rgba(74,222,128,.22);color:#dcfce7;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_message__icon,
body.theme-dark .messages-page__thread.has-chat .chat_tip_message__icon{background:#22c55e;color:#062412;}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_message__label,
body.theme-dark .messages-page__thread.has-chat .chat_tip_message__label{color:rgba(220,252,231,.7);}
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_tip_message__amount,
body.theme-dark .messages-page__thread.has-chat .chat_tip_message__amount{color:#f0fdf4;}
:root[data-theme="dark"] .messages-page .messages-page__conversation.is-active,body.theme-dark .messages-page .messages-page__conversation.is-active,
:root[data-theme="dark"] .messages-page .messages-page__conversation:has(.messages-page__conversation-button.is-active),body.theme-dark .messages-page .messages-page__conversation:has(.messages-page__conversation-button.is-active){background:#242424!important;border-color:#3b82f6!important;}

.chat_bubble.outgoing.chat_bubble--tip .chat_status,
.chat_bubble.chat_bubble--tip .chat_status {
    color: #166534;
    opacity: 1;
}

.chat_bubble.outgoing.chat_bubble--tip .chat_status .tick_icon,
.chat_bubble.chat_bubble--tip .chat_status .tick_icon,
.chat_bubble.outgoing.chat_bubble--tip .chat_status .tick_icon svg,
.chat_bubble.chat_bubble--tip .chat_status .tick_icon svg {
    color: #166534;
}

:root[data-theme="dark"] .messages-page__thread.has-chat .chat_bubble.chat_bubble--tip .chat_status,
body.theme-dark .messages-page__thread.has-chat .chat_bubble.chat_bubble--tip .chat_status,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_bubble.chat_bubble--tip .chat_status .tick_icon,
body.theme-dark .messages-page__thread.has-chat .chat_bubble.chat_bubble--tip .chat_status .tick_icon,
:root[data-theme="dark"] .messages-page__thread.has-chat .chat_bubble.chat_bubble--tip .chat_status .tick_icon svg,
body.theme-dark .messages-page__thread.has-chat .chat_bubble.chat_bubble--tip .chat_status .tick_icon svg {
    color: #dcfce7;
}

@media (max-width:820px){
    .messages-page-main{height:calc(100vh - 60px);height:calc(100dvh - 60px);}
}

@media (min-width:821px){
    body[data-layout="messages"]{
        overflow:hidden;
    }

    body[data-layout="messages"] .messages-page-main{
        align-items:stretch;
        height:calc(100vh - 75px);
        height:calc(100dvh - 75px);
        min-height:0;
        overflow:hidden;
        box-sizing:border-box;
    }

    body[data-layout="messages"] .messages-page-content,
    body[data-layout="messages"] .messages-page{
        height:100%;
        min-height:0;
        overflow:hidden;
    }

    body[data-layout="messages"] .messages-page__sidebar,
    body[data-layout="messages"] .messages-page__thread,
    body[data-layout="messages"] .messages-page__details,
    body[data-layout="messages"] .messages-page__details-panel{
        height:100%;
        min-height:0;
    }

    body[data-layout="messages"] .messages-page__conversation-list,
    body[data-layout="messages"] .messages-page__details-panel{
        overflow:auto;
    }

    body[data-layout="messages"] .messages-page__thread.has-chat .chat_list_container{
        overflow:hidden;
    }

    body[data-layout="messages"] .messages-page__thread.has-chat .chat_list_wrapper{
        overflow:auto;
        overscroll-behavior:contain;
    }
}

.audio-room-control--chat{position:relative;}
.audio-room-control--chat.is-selected{background:#0f172a;color:#fff;}
.audio-room-control__dot{position:absolute;right:8px;top:7px;width:9px;height:9px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 2px #fff;}
.audio-room-chat-backdrop{position:fixed;inset:0;z-index:9997;background:rgba(15,23,42,.34);}
.audio-room-chat--drawer{position:fixed;right:20px;top:88px;bottom:20px;z-index:9998;width:min(440px,calc(100vw - 32px));margin:0!important;display:flex;flex-direction:column;overflow:hidden;border-radius:15px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.18);}
.audio-room-chat--drawer.none,.audio-room-chat-backdrop.none{display:none!important;}
.audio-room-chat--drawer .audio-room-chat__header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;}
.audio-room-chat__close{width:34px;height:34px;border:0;border-radius:9px;background:#f3f4f6;color:#111827;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;}
.audio-room-chat__close svg{width:18px;height:18px;}
.audio-room-chat--drawer .audio-room-chat__messages{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;}
.audio-room-chat--drawer .audio-room-chat__form{flex:0 0 auto;}
.audio-room-manage-item{grid-template-columns:34px minmax(0,1fr) auto auto;}
.audio-room-manage-item__speaker-indicator{display:none;width:30px;height:30px;border-radius:999px;background:#eaf1ff;color:#2563eb;align-items:center;justify-content:center;}
.audio-room-manage-item__speaker-indicator svg{width:18px;height:18px;display:block;}
.audio-room-manage-item.is-speaking{background:#effaf2;}
.audio-room-manage-item.is-speaking::after{content:none!important;}
.audio-room-manage-item.is-speaking .audio-room-manage-item__speaker-indicator{display:inline-flex;}
.audio-room-manage-item__dropdown{display:none!important;}
.audio-room-action-sheet{position:fixed;inset:0;z-index:10010;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(0,0,0,.34);}
.audio-room-action-sheet.none{display:none!important;}
.audio-room-action-sheet__content{width:min(430px,calc(100vw - 38px));}
.audio-room-action-sheet__panel{overflow:hidden;border-radius:15px;background:#fff;box-shadow:0 20px 55px rgba(15,23,42,.24);}
.audio-room-action-sheet__panel button,.audio-room-action-sheet__cancel{width:100%;min-height:58px;border:0;background:#fff;color:#111827;font-size:17px;font-weight:800;text-align:center;cursor:pointer;}
.audio-room-action-sheet__panel button{border-bottom:1px solid #e5e7eb;}
.audio-room-action-sheet__panel button:last-child{border-bottom:0;}
.audio-room-action-sheet__panel button:hover,.audio-room-action-sheet__cancel:hover{background:#f8fafc;}
.audio-room-action-sheet__panel button.is-danger{color:#dc2626;}
.audio-room-action-sheet__cancel{margin-top:12px;border-radius:15px;box-shadow:0 14px 38px rgba(15,23,42,.14);}
:root[data-theme="dark"] .audio-room-control--chat.is-selected,body.theme-dark .audio-room-control--chat.is-selected{background:#111;color:#f5f5f5;}
:root[data-theme="dark"] .audio-room-control__dot,body.theme-dark .audio-room-control__dot{box-shadow:0 0 0 2px #222;}
:root[data-theme="dark"] .audio-room-chat-backdrop,body.theme-dark .audio-room-chat-backdrop{background:rgba(0,0,0,.46);}
:root[data-theme="dark"] .audio-room-chat--drawer,body.theme-dark .audio-room-chat--drawer{background:#222;border-color:#333;box-shadow:0 24px 70px rgba(0,0,0,.32);}
:root[data-theme="dark"] .audio-room-chat__close,body.theme-dark .audio-room-chat__close{background:#111;color:#f5f5f5;}
:root[data-theme="dark"] .audio-room-manage-item.is-speaking,body.theme-dark .audio-room-manage-item.is-speaking{background:#14251a;}
:root[data-theme="dark"] .audio-room-manage-item__speaker-indicator,body.theme-dark .audio-room-manage-item__speaker-indicator{background:#172033;color:#7aa2ff;}
:root[data-theme="dark"] .audio-room-action-sheet,body.theme-dark .audio-room-action-sheet{background:rgba(0,0,0,.55);}
:root[data-theme="dark"] .audio-room-action-sheet__panel,body.theme-dark .audio-room-action-sheet__panel,
:root[data-theme="dark"] .audio-room-action-sheet__cancel,body.theme-dark .audio-room-action-sheet__cancel{background:#222;box-shadow:0 20px 55px rgba(0,0,0,.36);}
:root[data-theme="dark"] .audio-room-action-sheet__panel button,body.theme-dark .audio-room-action-sheet__panel button{background:#222;color:#f5f5f5;border-color:#333;}
:root[data-theme="dark"] .audio-room-action-sheet__panel button:hover,body.theme-dark .audio-room-action-sheet__panel button:hover,
:root[data-theme="dark"] .audio-room-action-sheet__cancel:hover,body.theme-dark .audio-room-action-sheet__cancel:hover{background:#2b2b2b;}
:root[data-theme="dark"] .audio-room-action-sheet__panel button.is-danger,body.theme-dark .audio-room-action-sheet__panel button.is-danger{color:#f87171;}
@media (max-width:700px){
    .audio-room-chat--drawer{left:10px;right:10px;top:72px;bottom:10px;width:auto;border-radius:15px;}
    .audio-room-action-sheet{align-items:flex-end;padding:16px;}
    .audio-room-action-sheet__content{width:100%;}
}
@media (max-width:640px){
    .audio-room-manage-item{grid-template-columns:34px minmax(0,1fr) auto auto;}
    .audio-room-manage-item__menu{grid-column:auto;justify-self:auto;margin-left:0;}
}

.audio-room-stage__copy h1{font-size:clamp(19px,2vw,24px);font-weight:760;line-height:1.22;margin-top:6px;}
.audio-room-stage__copy p{font-size:13.5px;line-height:1.45;font-weight:500;}
.audio-room-badge{font-weight:760;font-size:11px;}
.audio-room-countdown span{font-weight:780;letter-spacing:0;}
.audio-room-countdown strong{font-size:18px;font-weight:780;}
.audio-room-stage__host span{font-weight:650;}
.audio-room-stage__host a{font-size:15px;font-weight:760;}
.audio-room-meter strong{font-size:21px;font-weight:760;}
.audio-room-meter span{font-size:12px;font-weight:650;}
.audio-room-status-line{font-weight:650;}
.audio-room-control,.audio-room-action{font-weight:720;}
.audio-room-manage__header strong,.audio-room-chat__header strong{font-size:16px;font-weight:760;}
.audio-room-manage__header span{font-weight:700;}
.audio-room-manage__panel h2{font-size:14px;font-weight:760;}
.audio-room-manage-item__copy strong{font-weight:760;}
.audio-room-manage-item__copy small{font-weight:650;}
.audio-room-action-sheet__panel button,.audio-room-action-sheet__cancel{font-weight:720;}

@media (max-width:640px){
    .audio-room-stage{padding:14px;gap:14px;border-radius:12px;}
    .audio-room-stage__header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:flex-start;gap:12px;}
    .audio-room-stage__identity{display:flex;flex-direction:row;align-items:flex-start;gap:12px;min-width:0;}
    .audio-room-stage__pulse{width:46px;height:46px;min-width:46px;flex:0 0 46px;}
    .audio-room-stage__pulse svg{width:23px;height:23px;}
    .audio-room-stage__copy h1{font-size:18px;line-height:1.22;margin-top:5px;}
    .audio-room-stage__copy p{font-size:13px;line-height:1.4;margin-top:6px;}
    .audio-room-stage__badges{gap:6px;}
    .audio-room-badge{min-height:24px;padding:0 9px;font-size:10.5px;}
    .audio-room-stage__actions{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:8px;flex-wrap:nowrap;}
    .audio-room-stage__actions .audio-room-action{min-width:0;min-height:36px;padding:0 12px;font-size:13px;white-space:nowrap;}
    .audio-room-countdown{padding:8px 10px;}
    .audio-room-countdown strong{font-size:17px;}
    .audio-room-stage__host{padding:10px;gap:9px;}
    .audio-room-stage__meters{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
    .audio-room-meter{min-height:76px;padding:10px;}
    .audio-room-meter strong{font-size:21px;}
    .audio-room-meter span{font-size:11.5px;}
    .audio-room-stage__controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
    .audio-room-control{min-height:42px;padding:0 10px;font-size:13px;justify-content:center;}
    .audio-room-control svg{width:17px;height:17px;}
    .audio-room-control span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
    .audio-room-manage__header{padding:0 12px;}
    .audio-room-manage__header strong,.audio-room-chat__header strong{font-size:15px;}
}

@media (max-width:420px){
    .audio-room-stage__header{grid-template-columns:minmax(0,1fr) auto;}
    .audio-room-stage__identity{width:100%;min-width:0;}
    .audio-room-stage__copy{min-width:0;max-width:100%;}
    .audio-room-stage__copy h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .audio-room-stage__copy p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
    .audio-room-stage__actions{grid-column:2;grid-row:1;flex-direction:column;align-items:flex-end;justify-content:flex-start;flex-wrap:nowrap;}
    .audio-room-stage__meters{grid-template-columns:repeat(3,minmax(0,1fr));}
    .audio-room-meter{padding:9px 7px;}
    .audio-room-meter strong{font-size:19px;}
    .audio-room-meter span{font-size:11px;}
    .audio-room-stage__controls{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width: 768px) {
    .site_header_container {
        display: grid !important;
        grid-template-columns: minmax(0, auto) minmax(0, 1fr);
        align-items: center;
        justify-content: stretch;
        gap: 8px;
        flex-wrap: nowrap !important;
    }

    .site_header_container .header_left {
        order: 1;
        min-width: 0;
        flex: 0 1 auto;
    }

    .site_header_container .header_left > a {
        min-width: 0 !important;
        max-width: clamp(86px, 22vw, 138px);
    }

    .site_header_container .logo-image {
        max-width: 100%;
        height: 34px;
    }

    .site_header_container .header_right {
        order: 2;
        min-width: 0;
        width: 100%;
        justify-content: flex-end;
        overflow: hidden;
    }

    .site_header_container .header_icon_group {
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: clamp(6px, 1.8vw, 12px);
        flex-wrap: nowrap;
    }

    .site_header_container .icon_button,
    .site_header_container .user_dropdown,
    .site_header_container .mobile-nav-btn-right {
        flex: 0 0 auto;
    }

    .site_header_container .icon_button {
        width: clamp(38px, 10.5vw, 54px);
        height: clamp(38px, 10.5vw, 54px);
    }

    .site_header_container .user_dropdown {
        width: clamp(38px, 10.5vw, 54px);
        height: clamp(38px, 10.5vw, 54px);
        padding: 0 !important;
        align-items: center;
        justify-content: center;
    }

    .site_header_container .user_dropdown .avatar {
        width: clamp(24px, 6.5vw, 31px);
        height: clamp(24px, 6.5vw, 31px);
    }

    .site_header_container .mobile-nav-btn-right {
        width: clamp(34px, 9vw, 46px);
        height: clamp(34px, 9vw, 46px);
        padding: 4px;
    }

    .site_header_container .header_search_wrapper {
        order: 3;
        grid-column: 1 / -1;
    }

    .site_header_container.search-expanded .header_search_wrapper {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .site_header_container {
        padding: 10px 8px !important;
        gap: 6px;
    }

    .site_header_container .header_left {
        gap: 6px;
    }

    .site_header_container .header_left > a {
        max-width: 82px;
    }

    .site_header_container .header_icon_group {
        gap: 5px;
    }

    .site_header_container .icon_button,
    .site_header_container .user_dropdown {
        width: 34px;
        height: 34px;
    }

    .site_header_container .icon_button svg,
    .site_header_container .icon_button img {
        width: 18px;
        height: 18px;
    }

    .site_header_container .mobile-nav-btn-right {
        width: 32px;
        height: 32px;
    }

    .site_header_container .mobile-nav-btn-left {
        width: 32px;
        height: 32px;
        padding: 4px;
    }

    .site_header_container .logo-image {
        height: 30px;
    }
}

@media (max-width: 360px) {
    .site_header_container .header_left > a {
        max-width: 64px;
    }

    .site_header_container .header_icon_group {
        gap: 4px;
    }

    .site_header_container .icon_button,
    .site_header_container .user_dropdown {
        width: 31px;
        height: 31px;
    }

    .site_header_container .mobile-nav-btn-right,
    .site_header_container .mobile-nav-btn-left {
        width: 30px;
        height: 30px;
    }
}

@media (min-width: 431px) and (max-width: 540px) {
    .site_header_container {
        grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important;
        column-gap: 8px;
    }

    .site_header_container .header_right,
    .site_header_container .header_icon_group {
        min-width: 0;
    }

    .site_header_container .header_icon_group {
        gap: 5px;
    }

    .site_header_container .icon_button,
    .site_header_container .user_dropdown {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .site_header_container .mobile-nav-btn-right {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .site_header_container .icon_button svg,
    .site_header_container .icon_button img,
    .site_header_container .mobile-nav-btn-right svg,
    .site_header_container .mobile-nav-btn-right img {
        width: 19px;
        height: 19px;
    }

    .site_header_container .user_dropdown .avatar {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 430px) {
    .site_header_container {
        grid-template-columns: minmax(0, 108px) minmax(0, 1fr) !important;
        column-gap: 6px;
    }

    .site_header_container .header_left {
        width: 100%;
        max-width: 108px;
        overflow: hidden;
    }

    .site_header_container .header_left > a {
        max-width: 64px;
        overflow: hidden;
    }

    .site_header_container .header_icon_group {
        justify-content: flex-end;
        gap: clamp(4px, 1.35vw, 6px);
    }

    .site_header_container .icon_button,
    .site_header_container .user_dropdown,
    .site_header_container .mobile-nav-btn-right {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .site_header_container .icon_button svg,
    .site_header_container .icon_button img,
    .site_header_container .mobile-nav-btn-right svg,
    .site_header_container .mobile-nav-btn-right img {
        width: 18px;
        height: 18px;
    }

    .site_header_container .user_dropdown .avatar {
        width: 23px;
        height: 23px;
    }
}

.ebooks-publish-actions { display: flex; align-items: center; gap: 8px; }
.ebooks-publish-actions button:first-child { background: var(--cp-soft-bg, #f6f7fb); color: var(--cp-text, #111827); }
.theme-dark .ebooks-publish-actions button:first-child { background: #171717; color: #f5f5f5; }
@media (max-width: 560px) { .ebooks-publish-actions { width: 100%; flex-direction: column; } .ebooks-publish-actions button { width: 100%; } }

@media (max-width: 390px) {
    .site_header_container {
        grid-template-columns: minmax(0, 94px) minmax(0, 1fr) !important;
    }

    .site_header_container .header_left {
        max-width: 94px;
    }

    .site_header_container .header_left > a {
        max-width: 52px;
    }
}

@media (max-width: 360px) {
    .site_header_container {
        grid-template-columns: minmax(0, 76px) minmax(0, 1fr) !important;
        column-gap: 4px;
    }

    .site_header_container .header_left {
        max-width: 76px;
        gap: 4px;
    }

    .site_header_container .header_left > a {
        max-width: 40px;
    }

    .site_header_container .logo-image {
        height: 28px;
    }

    .site_header_container .header_icon_group {
        gap: 4px;
    }

    .site_header_container .icon_button,
    .site_header_container .user_dropdown,
    .site_header_container .mobile-nav-btn-right {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }
}

@media (max-width: 330px) {
    .site_header_container {
        grid-template-columns: minmax(0, 68px) minmax(0, 1fr) !important;
    }

    .site_header_container .header_left {
        max-width: 68px;
    }

    .site_header_container .header_left > a {
        max-width: 34px;
    }

    .site_header_container .header_icon_group {
        gap: 3px;
    }

    .site_header_container .icon_button,
    .site_header_container .user_dropdown,
    .site_header_container .mobile-nav-btn-right {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .site_header_container .icon_button svg,
    .site_header_container .icon_button img,
    .site_header_container .mobile-nav-btn-right svg,
    .site_header_container .mobile-nav-btn-right img {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    .profile-left {
        margin-top: -72px;
    }

    .profile-top-container {
        padding: 14px;
        border-radius: 14px;
    }

    .profile-header {
        gap: 14px;
    }

    .profile-avatar {
        border-width: 3px;
        width: clamp(96px, 28vw, 120px);
        height: clamp(96px, 28vw, 120px);
        overflow: hidden;
        flex: 0 0 auto;
    }

    .profile-avatar img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .profile-meta {
        gap: 14px;
    }

    .profile-username-row {
        gap: 10px;
    }

    .profile-username {
        font-size: 18px;
        line-height: 1.25;
        text-align: center;
        word-break: break-word;
    }

    .profile-fullname {
        font-size: 14px;
        line-height: 1.35;
        text-align: center;
    }

    .profile-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile-stats {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }

    .profile-stats .stat-item {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
        padding: 10px 8px;
        font-size: 13px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .profile-left {
        margin-top: -56px;
    }

    .profile-top-container {
        padding: 12px;
        border-radius: 12px;
    }

    .profile-avatar {
        width: 96px;
        height: 96px;
    }

    .profile-header {
        gap: 12px;
    }

    .profile-meta {
        gap: 12px;
    }

    .profile-stats .stat-item {
        padding: 9px 6px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .profile-avatar {
        width: 88px;
        height: 88px;
    }

    .profile-username {
        font-size: 17px;
    }

    .profile-stats .stat-item {
        font-size: 11.5px;
    }
}

/* Profile grid/feed view switch */
.profile-view-toggle {
    align-self: center;
    gap: 4px;
    padding: 5px;
    margin: 10px 0 4px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
}

.profile-view-toggle__item {
    min-height: 40px;
    gap: 8px;
    padding: 0 14px;
    border-radius: 9px;
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.profile-view-toggle__item:hover {
    background: var(--hover-bg-color);
    color: var(--primary-text);
}

.profile-view-toggle__item.is-active {
    background: var(--black);
    color: var(--white);
}

.profile-view-toggle__icon svg,
.profile-view-toggle__icon img {
    width: 17px;
    height: 17px;
    display: block;
}

.profile-feed-list {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 8px;
}

.profile-feed-list .reel-item,
.profile-feed-list .post-card,
.profile-feed-list .post-item {
    width: 100%;
    max-width: 100%;
}

html.theme-dark .profile-view-toggle,
body.theme-dark .profile-view-toggle,
html[data-theme="dark"] .profile-view-toggle,
body[data-theme="dark"] .profile-view-toggle,
:root[data-theme="dark"] .profile-view-toggle {
    background: var(--bg-elevated);
    border-color: var(--border-color);
}

html.theme-dark .profile-view-toggle__item.is-active,
body.theme-dark .profile-view-toggle__item.is-active,
html[data-theme="dark"] .profile-view-toggle__item.is-active,
body[data-theme="dark"] .profile-view-toggle__item.is-active,
:root[data-theme="dark"] .profile-view-toggle__item.is-active {
    background: var(--white);
    color: var(--black);
}

@media (max-width: 768px) {
    .profile-view-toggle {
        width: 100%;
        justify-content: center;
    }

    .profile-view-toggle__item {
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
        padding: 0 10px;
    }

    .profile-feed-list {
        max-width: 100%;
        padding-top: 6px;
    }
}

.video-wrapper {
    position: relative;
}

.video-ad-overlay {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: inherit;
    background: rgba(0, 0, 0, 0.72);
}

.video-ad-panel {
    width: min(92%, 520px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #fff;
}

.video-ad-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.video-ad-badge {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.video-ad-title {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-ad-media {
    width: 100%;
    max-height: 55vh;
    border-radius: 14px;
    background: #000;
    object-fit: contain;
}

.video-ad-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.video-ad-cta,
.video-ad-skip {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    font-weight: 700;
    cursor: pointer;
}

.video-ad-cta {
    background: #fff;
    color: #111;
}

.video-ad-skip {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.video-ad-skip:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 560px) {
    .video-ad-overlay {
        padding: 10px;
    }

    .video-ad-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .video-ad-cta,
    .video-ad-skip {
        width: 100%;
    }
}
.ebooks-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 22px;
}

.ebooks-hero,
.ebooks-create,
.ebooks-library {
  background: var(--cp-card-bg, #fff);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 15px;
  padding: 22px;
}

.ebooks-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ebooks-hero__copy {
  min-width: 0;
  flex: 1;
}

.ebooks-hero__icon,
.ebooks-empty__icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 16px;
  background: #eef5ff;
  color: #2563eb;
  justify-content: center;
}

.ebooks-hero__icon svg,
.ebooks-empty__icon svg,
.ebook-card__placeholder svg,
.ebooks-create__badge svg {
  width: 26px;
  height: 26px;
}

.ebooks-add-trigger {
  border: 0;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #111827;
  color: #fff;
  font-weight: 760;
  cursor: pointer;
  white-space: nowrap;
}

.ebooks-add-trigger span {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ebooks-add-trigger svg {
  width: 20px;
  height: 20px;
}

.ebooks-hero h1,
.ebooks-section-head h2 {
  margin: 0;
  color: var(--cp-text, #111827);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: 0;
}

.ebooks-hero p,
.ebooks-section-head p {
  margin: 5px 0 0;
  color: var(--cp-muted, #667085);
  font-size: 16px;
  line-height: 1.45;
}

.ebooks-create-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 24px 0;
  overflow-y: auto;
}

body.ebook-modal-open {
  overflow: hidden;
}

body.ebook-purchase-modal-open {
  overflow: hidden;
}

.ebooks-create-modal.is-open {
  display: flex;
}

.ebooks-create-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(3px);
}

.ebooks-create-modal__panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: none;
  overflow: visible;
  margin: 0;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.20);
}

.ebooks-create-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--cp-soft-bg, #f6f7fb);
  color: var(--cp-text, #111827);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ebooks-create-modal__close svg {
  width: 18px;
  height: 18px;
}

.ebooks-purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ebooks-purchase-modal.is-open {
  display: flex;
}

.ebooks-purchase-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(3px);
}

.ebooks-purchase-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 18px;
  background: var(--cp-card-bg, #fff);
  color: var(--cp-text, #111827);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  padding: 20px;
}

.ebooks-purchase-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--cp-soft-bg, #f6f7fb);
  color: var(--cp-text, #111827);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ebooks-purchase-modal__close svg {
  width: 18px;
  height: 18px;
}

.ebooks-purchase-modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 54px;
}

.ebooks-purchase-modal__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5ff;
  color: #2563eb;
}

.ebooks-purchase-modal__icon svg {
  width: 24px;
  height: 24px;
}

.ebooks-purchase-modal__head h2 {
  margin: 0;
  color: var(--cp-text, #111827);
  font-size: 24px;
  font-weight: 760;
}

.ebooks-purchase-modal__head p {
  margin: 3px 0 0;
  color: var(--cp-muted, #667085);
  font-size: 14px;
  line-height: 1.4;
}

.ebooks-purchase-summary {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 12px;
  border-radius: 15px;
  background: var(--cp-soft-bg, #f6f7fb);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.ebooks-purchase-summary__cover {
  width: 78px;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef5ff;
  color: #2563eb;
}

.ebooks-purchase-summary__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ebooks-purchase-summary__cover svg {
  width: 26px;
  height: 26px;
}

.ebooks-purchase-summary__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ebooks-purchase-summary__copy strong {
  overflow: hidden;
  color: var(--cp-text, #111827);
  font-size: 16px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebooks-purchase-summary__copy span {
  color: var(--cp-muted, #667085);
  font-size: 13px;
  font-weight: 650;
}

.ebooks-purchase-summary__price {
  color: var(--cp-text, #111827);
  font-weight: 780;
  white-space: nowrap;
}

.ebooks-payment-form {
  display: grid;
  gap: 14px;
}

.ebooks-payment-methods {
  display: grid;
  gap: 10px;
}

.ebooks-payment-method {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 12px;
  background: var(--cp-soft-bg, #f6f7fb);
  border: 1px solid rgba(17, 24, 39, 0.08);
  color: var(--cp-text, #111827);
  cursor: pointer;
}

.ebooks-payment-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ebooks-payment-method__mark {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 2px solid rgba(17, 24, 39, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ebooks-payment-method__mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111827;
  opacity: 0;
}

.ebooks-payment-method input:checked + .ebooks-payment-method__mark {
  border-color: #111827;
}

.ebooks-payment-method input:checked + .ebooks-payment-method__mark::after {
  opacity: 1;
}

.ebooks-payment-method__label {
  min-width: 0;
  flex: 1;
  font-weight: 720;
  line-height: 1.25;
}

.ebooks-payment-method__meta {
  color: var(--cp-muted, #667085);
  font-size: 12px;
  font-weight: 760;
}

.ebooks-payment-message {
  min-height: 20px;
  color: var(--cp-muted, #667085);
  font-weight: 680;
  line-height: 1.35;
}

.ebooks-payment-message.is-error {
  color: #b42318;
}

.ebooks-payment-message.is-success {
  color: #047857;
}

.ebooks-payment-topup {
  margin-left: 10px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 720;
  cursor: pointer;
}

.ebooks-payment-submit {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-weight: 760;
  cursor: pointer;
}

.ebooks-payment-submit:disabled {
  opacity: .68;
  cursor: wait;
}

.ebooks-create__badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef5ff;
  color: #2563eb;
  margin-bottom: 12px;
}

.ebooks-create-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.ebooks-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ebooks-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--cp-text, #111827);
  font-weight: 650;
}

.ebooks-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ebooks-field__label-row em {
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  color: #667085;
  background: rgba(17, 24, 39, 0.04);
  border-radius: 999px;
  padding: 6px 9px;
  white-space: nowrap;
}

.ebooks-field input,
.ebooks-field textarea,
.ebooks-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(17, 24, 39, 0.11);
  border-radius: 12px;
  background: var(--cp-soft-bg, #f6f7fb);
  color: var(--cp-text, #111827);
  padding: 12px 14px;
  outline: none;
}

.ebooks-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-inline-end: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 14px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.ebooks-field input::placeholder,
.ebooks-field textarea::placeholder {
  color: #98a2b3;
  opacity: 1;
}

.ebooks-field textarea {
  resize: vertical;
  min-height: 92px;
}

.ebooks-field small {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.ebooks-field input:focus,
.ebooks-field textarea:focus,
.ebooks-field select:focus {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.ebooks-price-control {
  position: relative;
  display: block;
}

.ebooks-price-control__symbol {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #667085;
  font-weight: 760;
  font-size: 15px;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
}

.ebooks-price-control input {
  padding-inline-start: 38px;
}

.ebooks-date-control {
  position: relative;
  display: block;
}

.ebooks-date-control input {
  padding-right: 44px;
}

.ebooks-date-control input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset-inline-end: 0;
  width: 44px;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.ebooks-date-control__icon {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--cp-text, #111827);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ebooks-date-control__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

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

.ebooks-file-field {
  position: relative;
  gap: 8px;
}

.ebooks-file-field > label {
  color: var(--cp-text, #111827);
  font-weight: 650;
}

.ebooks-file-control {
  width: 100%;
  min-height: 96px;
  border: 1px solid rgba(17, 24, 39, 0.11);
  border-radius: 15px;
  background: var(--cp-soft-bg, #f6f7fb);
  color: var(--cp-text, #111827);
  padding: 12px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.ebooks-file-control:hover,
.ebooks-file-control:focus-visible {
  border-color: rgba(17, 24, 39, 0.22);
  background: #fff;
}

.ebooks-file-control:focus-visible {
  outline: 3px solid rgba(17, 24, 39, 0.08);
  outline-offset: 2px;
}

.ebooks-file-control.has-file {
  background: #fff;
  border-color: rgba(17, 24, 39, 0.18);
}

.ebooks-file-control__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #eef5ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ebooks-file-control__icon svg {
  width: 24px;
  height: 24px;
}

.ebooks-file-control__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ebooks-file-control__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ebooks-file-control__copy strong {
  color: var(--cp-text, #111827);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
}

.ebooks-file-control__copy small,
.ebooks-file-control__copy em {
  color: var(--cp-muted, #667085);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ebooks-file-control__copy em {
  color: #8a94a6;
}

.ebooks-file-clear {
  border: 0;
  background: transparent;
  color: var(--cp-muted, #667085);
  width: max-content;
  min-height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.ebooks-file-clear[hidden] {
  display: none !important;
}

.ebooks-file-clear svg {
  width: 13px;
  height: 13px;
}

.ebooks-file-clear:hover {
  color: var(--cp-text, #111827);
}

.ebooks-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ebooks-form-actions button,
.ebook-purchase-btn,
.ebook-download-btn,
.ebook-card__topup {
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 720;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ebooks-form-actions button:disabled,
.ebook-purchase-btn:disabled {
  opacity: .65;
  cursor: wait;
}

.ebooks-form-message {
  color: var(--cp-muted, #667085);
  font-weight: 650;
}

.ebooks-form-message.is-error,
.ebook-card__notice {
  color: #b42318;
}

.ebooks-form-message.is-success {
  color: #047857;
}

.ebooks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.ebook-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 15px;
  background: var(--cp-card-bg, #fff);
  display: flex;
  flex-direction: column;
}

.ebook-card__cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f2f4f7;
}

.ebook-card__cover img,
.ebook-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ebook-card__placeholder {
  justify-content: center;
  color: #2563eb;
  background: linear-gradient(135deg, #eef5ff, #f8fafc);
}

.ebook-card__price {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.88);
  color: #fff;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 780;
}

.ebook-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ebook-card__body h3 {
  margin: 0;
  color: var(--cp-text, #111827);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.25;
}

.ebook-card__body p {
  margin: 0;
  color: var(--cp-muted, #667085);
  font-size: 14px;
  line-height: 1.45;
}

.ebook-card__creator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cp-muted, #667085);
  font-weight: 650;
}

.ebook-card__creator img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.ebook-card__actions {
  padding: 0 14px 14px;
}

.ebook-download-btn,
.ebook-purchase-btn {
  width: 100%;
}

.ebook-card__notice {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  padding: 12px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 680;
}

.ebook-card__topup {
  min-height: 36px;
  padding: 0 12px;
  background: #2563eb;
}

.ebooks-empty {
  min-height: 220px;
  justify-content: center;
  gap: 12px;
  color: var(--cp-muted, #667085);
}

.theme-dark .ebooks-hero,
.theme-dark .ebooks-create,
.theme-dark .ebooks-library,
.theme-dark .ebook-card {
  background: #202020;
  border-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .ebooks-field input,
.theme-dark .ebooks-field textarea,
.theme-dark .ebooks-field select {
  background: #171717;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
}

.theme-dark .ebooks-field select {
  background-image:
    linear-gradient(45deg, transparent 50%, #aaa 50%),
    linear-gradient(135deg, #aaa 50%, transparent 50%);
}

.theme-dark .ebooks-field input::placeholder,
.theme-dark .ebooks-field textarea::placeholder {
  color: #777;
}

.theme-dark .ebooks-field__label-row em {
  background: rgba(255, 255, 255, 0.08);
  color: #cfcfcf;
}

.theme-dark .ebooks-field small,
.theme-dark .ebooks-price-control__symbol {
  color: #aaa;
}

.theme-dark .ebooks-date-control__icon {
  color: #f5f5f5;
}

.theme-dark .ebooks-file-control {
  background: #171717;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
}

.theme-dark .ebooks-file-control:hover,
.theme-dark .ebooks-file-control:focus-visible,
.theme-dark .ebooks-file-control.has-file {
  background: #202020;
  border-color: rgba(255, 255, 255, 0.18);
}

.theme-dark .ebooks-file-control:focus-visible {
  outline-color: rgba(255, 255, 255, 0.12);
}

.theme-dark .ebooks-file-control__icon {
  background: #2b2b2b;
  color: #f5f5f5;
}

.theme-dark .ebooks-file-control__copy strong,
.theme-dark .ebooks-file-field > label {
  color: #f5f5f5;
}

.theme-dark .ebooks-file-control__copy small,
.theme-dark .ebooks-file-control__copy em,
.theme-dark .ebooks-file-clear {
  color: #b9b9b9;
}

.theme-dark .ebooks-file-clear:hover {
  color: #f5f5f5;
}

.theme-dark .ebooks-hero h1,
.theme-dark .ebooks-section-head h2,
.theme-dark .ebooks-field,
.theme-dark .ebook-card__body h3 {
  color: #f5f5f5;
}

.theme-dark .ebooks-hero p,
.theme-dark .ebooks-section-head p,
.theme-dark .ebook-card__body p,
.theme-dark .ebook-card__creator {
  color: #b9b9b9;
}

.theme-dark .ebooks-hero__icon,
.theme-dark .ebooks-empty__icon,
.theme-dark .ebook-card__placeholder,
.theme-dark .ebooks-create__badge {
  background: #2b2b2b;
  color: #f5f5f5;
}

.theme-dark .ebooks-form-actions button,
.theme-dark .ebook-purchase-btn,
.theme-dark .ebook-download-btn {
  background: #f5f5f5;
  color: #171717;
}

.theme-dark .ebooks-add-trigger {
  background: #f5f5f5;
  color: #171717;
}

.theme-dark .ebooks-create-modal__backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.theme-dark .ebooks-create-modal__close,
.theme-dark .ebooks-purchase-modal__close {
  background: #171717;
  color: #f5f5f5;
}

.theme-dark .ebooks-purchase-modal__backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.theme-dark .ebooks-purchase-modal__panel {
  background: #202020;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
}

.theme-dark .ebooks-purchase-modal__head h2,
.theme-dark .ebooks-purchase-summary__copy strong,
.theme-dark .ebooks-purchase-summary__price,
.theme-dark .ebooks-payment-method {
  color: #f5f5f5;
}

.theme-dark .ebooks-purchase-modal__head p,
.theme-dark .ebooks-purchase-summary__copy span,
.theme-dark .ebooks-payment-method__meta,
.theme-dark .ebooks-payment-message {
  color: #b9b9b9;
}

.theme-dark .ebooks-purchase-modal__icon,
.theme-dark .ebooks-purchase-summary__cover,
.theme-dark .ebooks-purchase-summary,
.theme-dark .ebooks-payment-method {
  background: #171717;
}

.theme-dark .ebooks-payment-method,
.theme-dark .ebooks-purchase-summary {
  border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .ebooks-payment-method__mark {
  border-color: rgba(245, 245, 245, 0.36);
}

.theme-dark .ebooks-payment-method__mark::after {
  background: #f5f5f5;
}

.theme-dark .ebooks-payment-method input:checked + .ebooks-payment-method__mark {
  border-color: #f5f5f5;
}

.theme-dark .ebooks-payment-submit,
.theme-dark .ebooks-payment-topup {
  background: #f5f5f5;
  color: #171717;
}

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

@media (min-width: 761px) and (max-width: 980px) {
  .ebooks-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ebooks-hero,
  .ebooks-create,
  .ebooks-library {
    border-radius: 12px;
    padding: 16px;
  }
  .ebooks-hero {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .ebooks-add-trigger {
    width: 100%;
  }
  .ebooks-form-grid,
  .ebooks-grid {
    grid-template-columns: 1fr;
  }
  .ebooks-form-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .ebooks-form-actions button {
    width: 100%;
  }
  .ebooks-purchase-modal {
    padding: 14px;
  }
  .ebooks-purchase-modal__panel {
    border-radius: 15px;
    padding: 16px;
  }
  .ebooks-purchase-summary {
    grid-template-columns: 60px minmax(0, 1fr);
  }
  .ebooks-purchase-summary__cover {
    width: 60px;
    height: 60px;
  }
  .ebooks-purchase-summary__price {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .ebooks-create-modal {
    padding: 8px 12px 0;
  }
  .ebooks-create-modal__panel {
    max-height: none;
  }
  .ebooks-file-control {
    min-height: 86px;
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 10px;
  }
  .ebooks-file-control__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .ebooks-file-control__icon svg {
    width: 21px;
    height: 21px;
  }
}

/* Professional eBook catalog */
.ebooks-library {
  container-type: inline-size;
}
.ebooks-library > .ebooks-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.ebooks-results-count {
  flex: 0 0 auto;
  color: var(--cp-muted, #667085);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}
.ebooks-catalog-toolbar {
  display: grid;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  grid-template-columns: minmax(300px, 1.35fr) minmax(150px, .7fr) minmax(135px, .6fr) minmax(170px, .75fr) auto auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: var(--cp-soft-bg, #f6f7fb);
}
.ebooks-catalog-search {
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: 8px;
  background: var(--cp-card-bg, #fff);
  transition: border-color .16s ease, background-color .16s ease;
}
.ebooks-catalog-search__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--cp-muted, #667085);
}
.ebooks-catalog-search__icon svg,
.ebooks-filter-submit svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ebooks-catalog-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cp-text, #111827);
  font: inherit;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.35;
}
.ebooks-catalog-search input::placeholder {
  color: #98a2b3;
  opacity: 1;
}
.ebooks-catalog-search:focus-within {
  border-color: rgba(17, 24, 39, .34);
}
.ebooks-catalog-select {
  min-width: 0;
  position: relative;
  display: grid;
  gap: 6px;
  color: var(--cp-muted, #667085);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.ebooks-catalog-select::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}
.ebooks-catalog-select select {
  width: 100%;
  height: 44px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: 8px;
  padding: 0 38px 0 13px;
  background: var(--cp-card-bg, #fff);
  color: var(--cp-text, #111827);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.35;
  cursor: pointer;
  outline: 0;
  transition: border-color .16s ease, background-color .16s ease;
}
.ebooks-catalog-select select:focus {
  border-color: rgba(17, 24, 39, .34);
}
.ebooks-filter-submit,
.ebooks-filter-reset {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 0 17px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.ebooks-filter-submit {
  background: #111827;
  color: #fff;
}
.ebooks-filter-submit svg {
  width: 16px;
  height: 16px;
}
.ebooks-filter-reset {
  background: var(--cp-card-bg, #fff);
  color: var(--cp-text, #111827);
}
.ebooks-filter-submit:hover {
  background: #2b3443;
}
.ebooks-filter-reset:hover {
  background: #eceff3;
}
.ebooks-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.ebooks-pagination a {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--cp-soft-bg, #f6f7fb);
  color: var(--cp-text, #111827);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.ebooks-pagination a.is-active {
  background: #111827;
  color: #fff;
}
.theme-dark .ebooks-catalog-toolbar {
  background: #171717;
}
.theme-dark .ebooks-catalog-search,
.theme-dark .ebooks-catalog-select select,
.theme-dark .ebooks-filter-reset {
  border-color: rgba(255, 255, 255, .1);
  background: #202020;
  color: #f5f5f5;
}
.theme-dark .ebooks-catalog-search:focus-within,
.theme-dark .ebooks-catalog-select select:focus {
  border-color: rgba(255, 255, 255, .34);
}
.theme-dark .ebooks-catalog-search input::placeholder {
  color: #8f949d;
}
.theme-dark .ebooks-filter-submit,
.theme-dark .ebooks-pagination a.is-active {
  background: #f5f5f5;
  color: #171717;
}
.theme-dark .ebooks-pagination a {
  background: #171717;
  color: #f5f5f5;
}
.theme-dark .ebooks-filter-submit:hover {
  background: #d9d9d9;
}
.theme-dark .ebooks-filter-reset:hover {
  background: #2b2b2b;
}
@media (max-width: 1180px) {
  .ebooks-catalog-toolbar {
    grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(135px, .7fr));
  }
  .ebooks-catalog-search {
    grid-column: span 2;
  }
}
@media (max-width: 760px) {
  .ebooks-library > .ebooks-section-head {
    align-items: flex-start;
  }
  .ebooks-catalog-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .ebooks-catalog-search {
    grid-column: 1 / -1;
  }
  .ebooks-catalog-select:last-of-type {
    grid-column: 1 / -1;
  }
  .ebooks-filter-submit,
  .ebooks-filter-reset {
    width: 100%;
  }
}
@media (max-width: 430px) {
  .ebooks-catalog-toolbar {
    grid-template-columns: 1fr;
  }
  .ebooks-catalog-search,
  .ebooks-catalog-select:last-of-type {
    grid-column: auto;
  }
}
@container (max-width: 1120px) {
  .ebooks-catalog-toolbar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .ebooks-catalog-search {
    grid-column: 1 / -1;
  }
  .ebooks-catalog-select,
  .ebooks-catalog-select:last-of-type {
    grid-column: span 2;
  }
  .ebooks-filter-submit,
  .ebooks-filter-reset {
    grid-column: span 3;
    width: 100%;
  }
}
@container (max-width: 700px) {
  .ebooks-catalog-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ebooks-catalog-search {
    grid-column: 1 / -1;
  }
  .ebooks-catalog-select,
  .ebooks-filter-submit,
  .ebooks-filter-reset {
    grid-column: auto;
  }
  .ebooks-catalog-select:last-of-type {
    grid-column: 1 / -1;
  }
  .ebooks-filter-submit,
  .ebooks-filter-reset {
    width: 100%;
  }
}
@container (max-width: 520px) {
  .ebooks-library > .ebooks-section-head {
    align-items: flex-start;
  }
  .ebooks-catalog-toolbar {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .ebooks-catalog-search,
  .ebooks-catalog-select:last-of-type {
    grid-column: auto;
  }
}

/* eBook detail */
.ebook-card__body h3 a {
  color: inherit;
  text-decoration: none;
}
.ebook-card__body h3 a:hover {
  text-decoration: underline;
}
.ebook-detail-page {
  width: 100%;
}
.ebook-detail-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cp-muted, #667085);
  text-decoration: none;
  font-size: 14px;
  font-weight: 680;
}
.ebook-detail-back svg {
  width: 18px;
  height: 18px;
}
.ebook-detail-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  gap: 28px;
  padding: 22px;
  overflow: visible;
}
.ebook-detail-cover {
  min-height: 360px;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--cp-soft-bg, #f6f7fb);
  color: #2563eb;
}
.ebook-detail-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.ebook-detail-cover svg {
  width: 56px;
  height: 56px;
}
.ebook-detail-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ebook-detail-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.ebook-detail-tags a,
.ebook-detail-tags span {
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--cp-soft-bg, #f6f7fb);
  color: var(--cp-muted, #667085);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.ebook-detail-copy h1 {
  margin: 14px 0 8px;
  color: var(--cp-text, #111827);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}
.ebook-detail-lead {
  margin: 0 0 16px;
  color: var(--cp-muted, #667085);
  font-size: 16px;
  line-height: 1.55;
}
.ebook-detail-creator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cp-text, #111827);
  text-decoration: none;
}
.ebook-detail-creator img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.ebook-detail-creator span {
  display: grid;
  gap: 2px;
}
.ebook-detail-creator small {
  color: var(--cp-muted, #667085);
  font-size: 11px;
}
.ebook-detail-creator strong {
  font-size: 14px;
}
.ebook-detail-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: var(--cp-muted, #667085);
}
.ebook-detail-rating span {
  color: #d59000;
  letter-spacing: 0;
}
.ebook-detail-price {
  margin-top: auto;
  padding-top: 24px;
  color: var(--cp-text, #111827);
  font-size: 30px;
  font-weight: 780;
}
.ebook-detail-actions {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.ebook-detail-actions .ebook-download-btn,
.ebook-detail-actions .ebook-purchase-btn,
.ebook-sample-btn {
  min-width: 150px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 720;
}
.ebook-detail-actions svg {
  width: 18px;
  height: 18px;
}
.ebook-sample-btn {
  background: var(--cp-soft-bg, #f6f7fb);
  color: var(--cp-text, #111827);
}
.ebook-detail-section {
  border-radius: 15px;
  padding: 22px;
  background: var(--cp-card-bg, #fff);
  border: 1px solid rgba(17, 24, 39, .08);
}
.ebook-detail-section h2 {
  margin: 0 0 14px;
  color: var(--cp-text, #111827);
  font-size: 22px;
  letter-spacing: 0;
}
.ebook-detail-description {
  color: var(--cp-muted, #667085);
  font-size: 15px;
  line-height: 1.7;
}
.ebook-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
}
.ebook-detail-facts div {
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--cp-soft-bg, #f6f7fb);
}
.ebook-detail-facts dt {
  color: var(--cp-muted, #667085);
  font-size: 11px;
  font-weight: 700;
}
.ebook-detail-facts dd {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--cp-text, #111827);
  font-size: 14px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ebook-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ebook-related-card {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--cp-text, #111827);
  text-decoration: none;
}
.ebook-related-card > span {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--cp-soft-bg, #f6f7fb);
}
.ebook-related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ebook-related-card svg {
  width: 28px;
  height: 28px;
}
.ebook-related-card strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ebook-related-card small {
  color: var(--cp-muted, #667085);
  font-weight: 700;
}
.ebook-detail-empty {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border-radius: 15px;
  background: var(--cp-card-bg, #fff);
}
.ebook-detail-empty span svg {
  width: 42px;
  height: 42px;
}
.theme-dark .ebook-detail-section,
.theme-dark .ebook-detail-card,
.theme-dark .ebook-detail-empty {
  background: #202020;
  border-color: rgba(255,255,255,.08);
}
.theme-dark .ebook-detail-copy h1,
.theme-dark .ebook-detail-price,
.theme-dark .ebook-detail-section h2,
.theme-dark .ebook-detail-creator,
.theme-dark .ebook-related-card,
.theme-dark .ebook-detail-facts dd {
  color: #f5f5f5;
}
.theme-dark .ebook-detail-cover,
.theme-dark .ebook-detail-tags a,
.theme-dark .ebook-detail-tags span,
.theme-dark .ebook-detail-facts div,
.theme-dark .ebook-related-card > span,
.theme-dark .ebook-sample-btn {
  background: #171717;
  color: #f5f5f5;
}
@media (max-width: 760px) {
  .ebook-detail-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }
  .ebook-detail-cover {
    width: min(100%, 360px);
    min-height: 0;
    margin: 0 auto;
  }
  .ebook-detail-copy h1 {
    font-size: 28px;
  }
  .ebook-detail-price {
    margin-top: 0;
  }
  .ebook-detail-facts,
  .ebook-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 430px) {
  .ebook-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .ebook-detail-actions .ebook-download-btn,
  .ebook-detail-actions .ebook-purchase-btn,
  .ebook-sample-btn {
    width: 100%;
  }
}
.ebook-library-page{display:flex;flex-direction:column;gap:18px}.ebook-library-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:20px;background:var(--white,#fff);border-radius:15px}.ebook-library-header__icon{width:48px;height:48px;display:grid;place-items:center;background:#edf4ff;border-radius:8px}.ebook-library-header__icon svg{width:24px;height:24px}.ebook-library-header h1{font-size:24px;line-height:1.2;margin:0}.ebook-library-header p{margin:4px 0 0;color:#6b7280}.ebook-library-browse,.ebook-library-empty a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:8px;background:#111827;color:#fff;font-weight:700}.ebook-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ebook-library-item{display:grid;grid-template-columns:130px minmax(0,1fr);gap:14px;padding:14px;background:var(--white,#fff);border-radius:15px}.ebook-library-item__cover{aspect-ratio:3/4;border-radius:8px;overflow:hidden;background:#eef2f7;display:grid;place-items:center}.ebook-library-item__cover img{width:100%;height:100%;object-fit:cover}.ebook-library-item__cover svg{width:34px;height:34px}.ebook-library-item__body{min-width:0;display:flex;flex-direction:column;align-items:flex-start}.ebook-library-item__creator{font-size:13px;color:#6b7280}.ebook-library-item h2{font-size:18px;line-height:1.3;margin:5px 0 10px}.ebook-library-item h2 a{color:inherit}.ebook-library-item__meta{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#6b7280;margin-bottom:14px}.ebook-library-item .ebook-download-btn{margin-top:auto;border:0;cursor:pointer}.ebook-library-empty{min-height:380px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;background:var(--white,#fff);border-radius:15px}.ebook-library-empty>div{width:64px;height:64px;display:grid;place-items:center;background:#edf4ff;border-radius:50%}.ebook-library-empty svg{width:28px;height:28px}.ebook-library-empty h2{font-size:22px;margin:16px 0 6px}.ebook-library-empty p{color:#6b7280;margin:0 0 18px}@media(max-width:900px){.ebook-library-grid{grid-template-columns:1fr}}@media(max-width:600px){.ebook-library-header{grid-template-columns:auto minmax(0,1fr);padding:15px}.ebook-library-browse{grid-column:1/-1;width:100%}.ebook-library-item{grid-template-columns:92px minmax(0,1fr);padding:12px}.ebook-library-header h1{font-size:20px}}
.ebook-reviews__head{display:flex;align-items:center;justify-content:space-between;gap:16px}.ebook-reviews__head h2{margin:0}.ebook-reviews__head p{margin:4px 0 0;color:#6b7280}.ebook-reviews__head>span{font-size:20px;font-weight:800}.ebook-review-form{display:grid;gap:12px;margin-top:18px;padding:16px;background:#f7f8fa;border-radius:8px}.ebook-review-form fieldset{border:0;padding:0;margin:0}.ebook-review-form legend{font-weight:700;margin-bottom:6px}.ebook-review-stars{display:flex;flex-direction:row-reverse;justify-content:flex-end}.ebook-review-stars input{position:absolute;opacity:0;pointer-events:none}.ebook-review-stars label{font-size:28px;color:#c7ccd4;cursor:pointer}.ebook-review-stars input:checked~label,.ebook-review-stars label:hover,.ebook-review-stars label:hover~label{color:#f4b400}.ebook-review-form textarea{width:100%;min-height:90px;resize:vertical;border:1px solid #dfe3e8;border-radius:8px;padding:12px;background:#fff;color:inherit}.ebook-review-form>div{display:flex;align-items:center;justify-content:flex-end;gap:12px}.ebook-review-form button{min-height:40px;border:0;border-radius:8px;padding:0 16px;background:#111827;color:#fff;font-weight:700;cursor:pointer}.ebook-review-form [data-ebook-review-message]{margin-right:auto}.ebook-review-form .is-error{color:#b91c1c}.ebook-review-form .is-success{color:#087443}.ebook-review-list{display:grid;gap:12px;margin-top:18px}.ebook-review-item{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;padding-top:14px;border-top:1px solid #edf0f3}.ebook-review-item img{width:42px;height:42px;border-radius:50%;object-fit:cover}.ebook-review-item header{display:flex;align-items:center;justify-content:space-between;gap:12px}.ebook-review-item header span{color:#f4b400}.ebook-review-item small{color:#087443;font-weight:700}.ebook-review-item p{margin:6px 0 0;color:#4b5563}.ebook-review-empty{color:#6b7280}
.ebook-review-stars{flex-direction:row;justify-content:flex-start}.ebook-review-stars input{position:absolute;opacity:0;pointer-events:none}.ebook-review-star{width:34px;height:34px;min-height:0!important;border:0!important;background:transparent!important;color:#c7ccd4!important;font-size:28px!important;line-height:1!important;cursor:pointer;padding:0!important}.ebook-review-star.is-active,.ebook-review-star:hover{color:#f4b400!important}
.ebook-wishlist-btn{display:inline-flex;align-items:center;gap:7px;min-height:42px;border:0;border-radius:8px;padding:0 14px;background:#f1f3f6;color:#111827;font-weight:700;cursor:pointer}.ebook-wishlist-btn svg{width:20px;height:20px}.ebook-wishlist-btn.is-active{background:#efe9df}.ebook-sample>a{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 14px;border-radius:8px;background:#111827;color:#fff;font-weight:700}.ebook-sample>a svg{width:20px;height:20px}.ebook-coupon-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.ebook-coupon-field>span{grid-column:1/-1;font-weight:700}.ebook-coupon-field input{min-height:42px;border:1px solid #dfe3e8;border-radius:8px;padding:0 12px}.ebook-coupon-field button{min-height:42px;border:0;border-radius:8px;padding:0 15px;background:#eceff3;color:#111827;font-weight:700;cursor:pointer}[data-ebook-coupon-message].is-error{color:#b91c1c}[data-ebook-coupon-message].is-success{color:#087443}
.theme-dark .ebook-library-header,.theme-dark .ebook-library-item,.theme-dark .ebook-library-empty,.theme-dark .ebook-review-form{background:#202020;color:#f5f5f5}.theme-dark .ebook-library-header p,.theme-dark .ebook-library-item__creator,.theme-dark .ebook-library-item__meta,.theme-dark .ebook-review-item p,.theme-dark .ebook-reviews__head p,.theme-dark .ebook-review-empty{color:#b7bcc5}.theme-dark .ebook-library-header__icon,.theme-dark .ebook-library-item__cover,.theme-dark .ebook-library-empty>div,.theme-dark .ebook-wishlist-btn,.theme-dark .ebook-coupon-field button{background:#2b2b2b;color:#f5f5f5}.theme-dark .ebook-review-form textarea,.theme-dark .ebook-coupon-field input{background:#181818;border-color:#3b3b3b;color:#f5f5f5}.theme-dark .ebook-review-item{border-color:#343434}.theme-dark .ebook-wishlist-btn.is-active{background:#3a342c}.theme-dark .ebook-sample>a,.theme-dark .ebook-library-browse,.theme-dark .ebook-library-empty a{background:#f5f5f5;color:#171717}
.ebook-library-header__icon>svg,.ebook-library-header__icon>img{display:block;width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;flex:0 0 24px}.ebook-library-item__cover>svg{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important}.ebook-library-empty>div>svg,.ebook-library-empty>div>img{display:block;width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important}.ebook-library-item .ebook-download-btn{width:auto;max-width:100%;min-height:42px;align-self:flex-start;gap:8px;padding:0 14px;overflow:hidden}.ebook-library-item .ebook-download-btn>svg,.ebook-library-item .ebook-download-btn>img{display:block;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;flex:0 0 18px}.ebook-library-item .ebook-download-btn>span{display:block;white-space:nowrap;line-height:1}
.ebooks-owner{margin:18px 0;padding:22px;background:var(--whiteColor,#fff);border-radius:15px}.ebooks-owner__list{display:grid;gap:10px}.ebooks-owner__item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;padding:16px;border:1px solid var(--borderColor,#e4e7ec);border-radius:10px}.ebooks-owner__main{display:flex;align-items:center;gap:10px;min-width:0}.ebooks-owner__main strong{font-size:16px}.ebooks-owner__status{padding:5px 9px;border-radius:7px;background:#eef0f3;color:#525866;font-size:12px;font-weight:650}.ebooks-owner__status--active{background:#dcfce7;color:#166534}.ebooks-owner__status--pending{background:#fff3cd;color:#7a5600}.ebooks-owner__status--rejected{background:#fee2e2;color:#991b1b}.ebooks-owner__meta,.ebooks-owner__actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.ebooks-owner__meta{color:#667085;font-size:13px}.ebooks-owner__note{grid-column:1/-1;margin:0;padding:10px 12px;border-radius:8px;background:#fff5f5;color:#8f1d1d}.ebooks-owner__actions{grid-column:1/-1}.ebooks-owner__actions button{min-height:34px;padding:7px 12px;border:0;border-radius:8px;background:#f2f4f7;color:#101828;font-weight:600;cursor:pointer}.ebooks-owner__actions button:hover{background:#e5e7eb}.ebooks-owner__actions .is-danger{color:#b42318}.ebooks-owner__empty{color:#667085}.ebooks-owner-modal{position:fixed;inset:0;z-index:10015;display:none;align-items:center;justify-content:center;padding:20px}.ebooks-owner-modal.is-open{display:flex}.ebooks-owner-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55)}.ebooks-owner-modal__panel{position:relative;z-index:1;width:min(720px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:24px;background:#fff;border-radius:12px}.ebooks-owner-modal__panel h2{margin:0 44px 18px 0;font-size:23px}.ebooks-owner-modal__close{position:absolute;top:16px;right:16px;width:36px;height:36px;border:0;border-radius:8px;background:#f2f4f7}.ebooks-owner-modal__close svg{width:18px;height:18px}.ebooks-owner-modal__save{margin-top:14px;min-height:42px;padding:10px 18px;border:0;border-radius:8px;background:#101828;color:#fff;font-weight:650}.ebooks-owner-modal__message{margin-top:10px}.ebooks-owner-modal__message.is-error{color:#b42318}.ebooks-owner-modal__message.is-success{color:#067647}@media(max-width:700px){.ebooks-owner{padding:16px}.ebooks-owner__item{grid-template-columns:1fr}.ebooks-owner__meta{justify-content:flex-start}.ebooks-owner__main{align-items:flex-start;flex-direction:column}.ebooks-owner-modal{padding:10px}.ebooks-owner-modal__panel{max-height:calc(100vh - 20px);padding:18px}}

/* Settings > My eBooks */
.settings-dashboard--my-ebooks {
    min-width: 0;
    gap: 18px;
}

.settings-my-ebooks__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 0;
    padding: 0;
}

.settings-my-ebooks__hero>div {
    min-width: 0;
}

.settings-my-ebooks__hero .h1 {
    margin: 0;
    color: var(--text-dark);
    font-size: 26px;
    line-height: 1.18;
    letter-spacing: 0;
}

.settings-my-ebooks__hero .settings-dashboard-intro {
    margin: 4px 0 0;
    max-width: 560px;
}

.settings-my-ebooks__add {
    min-height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 0;
    border-radius: 8px;
    background: var(--text-dark);
    color: var(--bg-elevated);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.settings-my-ebooks__add:hover,
.settings-my-ebooks__add:focus-visible {
    background: var(--color-midnight-800, var(--text-dark));
}

.settings-my-ebooks__add svg,
.settings-my-ebooks__add img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex: 0 0 18px;
}

.settings-my-ebooks__notice {
    margin: 0;
}

.settings-my-ebooks__kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.settings-my-ebooks__kpi-card {
    min-width: 0;
}

.settings-my-ebooks__kpi-card .kpi-icon>img,
.settings-my-ebooks__kpi-card .kpi-icon>svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain;
}

.settings-my-ebooks__tables,
.settings-my-ebooks__table-card {
    width: 100%;
    min-width: 0;
}

.settings-my-ebooks__toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto;
    align-items: end;
    gap: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.settings-my-ebooks__search,
.settings-my-ebooks__filter {
    min-width: 0;
}

.settings-my-ebooks__search {
    display: grid;
    gap: 6px;
}

.settings-my-ebooks__field-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.settings-my-ebooks__control-icon {
    position: absolute;
    left: 13px;
    z-index: 1;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sd-admin-text-muted);
    pointer-events: none;
}

.settings-my-ebooks__control-icon svg,
.settings-my-ebooks__control-icon img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

.settings-my-ebooks__search input,
.settings-my-ebooks__filter select {
    width: 100%;
    height: 42px;
    min-width: 0;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    outline: none;
    background: var(--bg-elevated);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
}

.settings-my-ebooks__search input {
    padding: 0 13px 0 42px;
}

.settings-my-ebooks__filter {
    display: grid;
    gap: 6px;
}

.settings-my-ebooks__control-label {
    color: var(--sd-admin-text-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.settings-my-ebooks__filter select {
    padding: 0 34px 0 12px;
}

.settings-my-ebooks__search input:focus,
.settings-my-ebooks__filter select:focus {
    border-color: var(--text-dark);
}

.settings-my-ebooks__clear {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.settings-my-ebooks__clear:hover:not(:disabled) {
    background: var(--hover-bg-color);
}

.settings-my-ebooks__clear:disabled {
    opacity: .48;
    cursor: default;
}

.settings-my-ebooks__clear[hidden] {
    display: none;
}

.settings-my-ebooks__clear svg,
.settings-my-ebooks__clear img {
    width: 15px !important;
    height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
}

.settings-my-ebooks__results {
    min-height: 18px;
    margin: -5px 0 0;
    color: var(--sd-admin-text-muted);
    font-size: 12px !important;
}

.settings-my-ebooks__table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

:is(.settings-section, .settings-dashboard).settings-dashboard--my-ebooks .table-card__scroll .settings-my-ebooks__table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.settings-my-ebooks__table th,
.settings-my-ebooks__table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-my-ebooks__table th:last-child,
.settings-my-ebooks__table td:last-child {
    width: 68px;
    text-align: right;
}

.settings-my-ebooks__title-cell {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-my-ebooks__book-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.settings-my-ebooks__book-icon {
    width: 40px;
    height: 48px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 7px;
    background: var(--hover-bg-color);
    color: var(--text-dark);
    text-decoration: none;
}

.settings-my-ebooks__book-icon>img.settings-my-ebooks__cover {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
}

.settings-my-ebooks__book-icon>img:not(.settings-my-ebooks__cover),
.settings-my-ebooks__book-icon svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

.settings-my-ebooks__book-copy strong,
.settings-my-ebooks__book-title {
    max-width: 320px;
    overflow: hidden;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-my-ebooks__book-title:hover {
    text-decoration: underline;
}

.settings-my-ebooks__book-copy small {
    max-width: 360px;
    color: var(--danger);
    font-size: 11px;
    line-height: 1.4;
}

.settings-my-ebooks__actions .post-settings-btn-box {
    justify-content: flex-end;
    min-width: 38px;
}

.settings-my-ebooks__actions .post-settings-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.settings-my-ebooks__actions .post-settings-btn:hover {
    background: var(--hover-bg-color);
}

.settings-my-ebooks__empty {
    padding: 34px 16px !important;
    text-align: center !important;
}

.settings-my-ebooks__empty>span,
.settings-my-ebooks__empty>strong,
.settings-my-ebooks__empty>a,
.settings-my-ebooks__empty>button {
    display: block;
    margin: 0 auto;
}

.settings-my-ebooks__empty>span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 8px;
    background: var(--hover-bg-color);
}

.settings-my-ebooks__empty>span svg,
.settings-my-ebooks__empty>span img {
    width: 19px !important;
    height: 19px !important;
    max-width: 19px !important;
    max-height: 19px !important;
}

.settings-my-ebooks__empty>strong {
    font-size: 13px;
    font-weight: 600;
}

.settings-my-ebooks__empty>a,
.settings-my-ebooks__empty>button {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--button-blue-color);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.settings-my-ebooks .ebooks-owner-modal__panel {
    color: var(--text-dark);
    background: var(--bg-elevated);
}

.settings-my-ebooks .ebooks-owner-modal__close {
    color: var(--text-dark);
    background: var(--hover-bg-color);
}

.settings-my-ebooks .ebooks-owner-modal__save {
    background: var(--text-dark);
    color: var(--bg-elevated);
}

.settings-my-ebooks .ebooks-field input,
.settings-my-ebooks .ebooks-field textarea,
.settings-my-ebooks .ebooks-field select {
    color: var(--text-dark);
    background: var(--bg-elevated);
    border-color: var(--border-subtle);
}

.settings-my-ebooks .ebooks-field>span {
    color: var(--text-dark);
}

body.ebook-owner-modal-open {
    overflow: hidden;
}

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

@media (max-width: 820px) {
    .settings-my-ebooks__toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(160px, .65fr);
    }

    .settings-my-ebooks__clear {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 700px) {
    .settings-my-ebooks__hero {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .settings-my-ebooks__add {
        width: 100%;
    }

    .settings-my-ebooks__hero .h1 {
        font-size: 24px;
    }

    .settings-my-ebooks__table {
        min-width: 760px;
        table-layout: auto;
    }

    :is(.settings-section, .settings-dashboard).settings-dashboard--my-ebooks .table-card__scroll .settings-my-ebooks__table {
        width: max-content;
        min-width: 760px;
        table-layout: auto;
    }
}

@media (max-width: 560px) {
    .settings-my-ebooks__kpis,
    .settings-my-ebooks__toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-my-ebooks__clear {
        grid-column: auto;
        width: 100%;
    }
}

/* Feed left sidebar polish */
.sidebar.sidebar--left {
    box-sizing: border-box;
}

.sidebar.sidebar--left .sidebar__inner {
    box-shadow: none;
}

.sidebar.sidebar--left .sidebar__menu_wrapper,
.sidebar.sidebar--left .sidebar__footer {
    width: 100%;
    box-sizing: border-box;
}

.sidebar.sidebar--left .sidebar__menu_wrapper {
    gap: 4px;
    padding: 12px;
}

.sidebar.sidebar--left .sidebar__footer {
    gap: 4px;
    padding: 10px 12px 12px;
}

.sidebar.sidebar--left .sidebar__menu_box {
    display: flex;
    align-items: center;
    min-height: 44px;
    gap: 12px;
    padding: 0 14px;
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 560;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.sidebar--left .sidebar__menu_box:hover,
.sidebar.sidebar--left .sidebar__menu_box[aria-current="page"],
.sidebar.sidebar--left .more_active {
    background-color: #f5f1ea;
    color: #111827;
}

.sidebar.sidebar--left .sidebar__menu_box[aria-current="page"] {
    font-weight: 650;
}

.sidebar.sidebar--left .sidebar__menu_box span {
    margin-right: 0;
}

.sidebar.sidebar--left .sidebar__menu_box > span:has(> svg, > img) {
    width: 26px;
    min-width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: currentColor;
    line-height: 1;
}

.sidebar.sidebar--left .sidebar__menu_box > span:has(> svg, > img) svg,
.sidebar.sidebar--left .sidebar__menu_box > span:has(> svg, > img) img:not(.avatar) {
    display: block;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    object-fit: contain;
    flex: 0 0 22px;
}

.sidebar.sidebar--left .sidebar__menu_box > span .avatar {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar.sidebar--left .sidebar_hide_more_menu_box {
    width: 100%;
    gap: 4px;
    margin: 4px 0;
    padding: 4px 0;
    box-sizing: border-box;
}

.sidebar.sidebar--left .sidebar_mobile_more_only {
    display: none;
}

.sidebar.sidebar--left .arrow {
    height: 1px;
    min-height: 1px;
    margin: 8px 2px;
    background-color: var(--border-subtle, rgba(0, 0, 0, 0.08));
}

:root[data-theme="dark"] .sidebar.sidebar--left .sidebar__inner,
html.theme-dark .sidebar.sidebar--left .sidebar__inner,
body.theme-dark .sidebar.sidebar--left .sidebar__inner {
    background-color: #202020;
    box-shadow: none;
}

:root[data-theme="dark"] .sidebar.sidebar--left .sidebar__footer,
html.theme-dark .sidebar.sidebar--left .sidebar__footer,
body.theme-dark .sidebar.sidebar--left .sidebar__footer {
    background-color: #202020;
}

:root[data-theme="dark"] .sidebar.sidebar--left .sidebar__menu_box,
html.theme-dark .sidebar.sidebar--left .sidebar__menu_box,
body.theme-dark .sidebar.sidebar--left .sidebar__menu_box {
    color: #f5f5f5;
}

:root[data-theme="dark"] .sidebar.sidebar--left .sidebar__menu_box:hover,
:root[data-theme="dark"] .sidebar.sidebar--left .sidebar__menu_box[aria-current="page"],
:root[data-theme="dark"] .sidebar.sidebar--left .more_active,
html.theme-dark .sidebar.sidebar--left .sidebar__menu_box:hover,
html.theme-dark .sidebar.sidebar--left .sidebar__menu_box[aria-current="page"],
html.theme-dark .sidebar.sidebar--left .more_active,
body.theme-dark .sidebar.sidebar--left .sidebar__menu_box:hover,
body.theme-dark .sidebar.sidebar--left .sidebar__menu_box[aria-current="page"],
body.theme-dark .sidebar.sidebar--left .more_active {
    background-color: #2b2b2b;
    color: #ffffff;
}

@media (min-width: 769px) {
    .site_container > .sidebar_container.sidebar_scroll {
        height: auto !important;
        min-height: 0;
        overflow: visible !important;
        overflow-y: visible !important;
    }

    .sidebar.sidebar--left {
        position: sticky;
        top: 12px;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        align-items: flex-start;
    }

    .sidebar.sidebar--left .sidebar__inner.sidebar_scroll {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        scrollbar-width: none;
    }

    .sidebar.sidebar--left .sidebar__inner.sidebar_scroll::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .sidebar.sidebar--left .sidebar__menu_wrapper,
    .sidebar.sidebar--left .sidebar__footer {
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .sidebar.sidebar--left {
        box-shadow: none;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: hidden;
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .sidebar.sidebar--left .sidebar__inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        box-shadow: none;
    }

    .sidebar.sidebar--left .sidebar__menu_wrapper {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 12px 12px 8px;
        scrollbar-width: none;
    }

    .sidebar.sidebar--left .sidebar__menu_wrapper::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .sidebar.sidebar--left .sidebar__footer {
        flex: 0 0 auto;
        padding: 8px 12px 12px;
    }

    .sidebar.sidebar--left .sidebar__menu_wrapper > .ebooks,
    .sidebar.sidebar--left .sidebar__menu_wrapper > .ebook_library,
    .sidebar.sidebar--left .sidebar__menu_wrapper > .addvertisements {
        display: none;
    }

    .sidebar.sidebar--left .sidebar_hide_more_menu_box .sidebar_mobile_more_only {
        display: flex;
    }
}

@media (max-width: 420px) {
    .sidebar.sidebar--left {
        max-width: 292px;
    }

    .sidebar.sidebar--left .sidebar__menu_wrapper {
        padding: 10px;
    }

    .sidebar.sidebar--left .sidebar__footer {
        padding: 8px 10px 10px;
    }

    .sidebar.sidebar--left .sidebar__menu_box {
        min-height: 42px;
        gap: 10px;
        padding: 0 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) and (max-height: 760px) {
    .sidebar.sidebar--left .sidebar__menu_wrapper {
        gap: 2px;
        padding-top: 8px;
        padding-bottom: 6px;
    }

    .sidebar.sidebar--left .sidebar__footer {
        gap: 2px;
        padding-top: 6px;
        padding-bottom: 8px;
    }

    .sidebar.sidebar--left .sidebar__menu_box {
        min-height: 38px;
        gap: 10px;
        font-size: 13px;
    }

    .sidebar.sidebar--left .arrow {
        margin: 5px 2px;
    }
}

@media (min-width: 769px) {
    .site_container > .sidebar_container.sidebar_scroll {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
    }

    .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left,
    .sidebar.sidebar--left {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
    }

    .sidebar.sidebar--left .sidebar__inner.sidebar_scroll,
    .sidebar.sidebar--left .sidebar__menu_wrapper {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
        scrollbar-width: none;
    }

    .sidebar.sidebar--left .sidebar__inner.sidebar_scroll::-webkit-scrollbar,
    .sidebar.sidebar--left .sidebar__menu_wrapper::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }
}

/* Desktop left navigation: show all menus and remove the sidebar-only scroller. */
@media (min-width: 769px) {
    .site_container > .sidebar_container.sidebar_scroll,
    .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left,
    .sidebar.sidebar--left,
    .sidebar.sidebar--left .sidebar__inner.sidebar_scroll,
    .sidebar.sidebar--left .sidebar__menu_wrapper {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
    }

    .site_container > .sidebar_container.sidebar_scroll,
    .sidebar.sidebar--left .sidebar__inner.sidebar_scroll {
        scrollbar-width: none;
    }

    .site_container > .sidebar_container.sidebar_scroll::-webkit-scrollbar,
    .sidebar.sidebar--left .sidebar__inner.sidebar_scroll::-webkit-scrollbar,
    .sidebar.sidebar--left .sidebar__menu_wrapper::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .sidebar.sidebar--left {
        align-items: flex-start;
        padding: 8px 12px 12px;
    }

    .sidebar.sidebar--left .sidebar__inner {
        height: auto !important;
        max-height: none !important;
        padding: 8px 0;
    }

    .sidebar.sidebar--left .sidebar__menu_wrapper {
        gap: 2px;
        padding: 8px 10px 4px;
    }

    .sidebar.sidebar--left .sidebar__footer {
        position: static !important;
        bottom: auto !important;
        gap: 2px;
        margin-top: 0 !important;
        padding: 0 10px 8px;
        background-color: transparent !important;
        overflow: visible !important;
    }

    .sidebar.sidebar--left .more_menu {
        display: none !important;
    }

    .sidebar.sidebar--left .sidebar_hide_more_menu_box,
    .sidebar.sidebar--left .sidebar_hide_more_menu_box.none {
        display: flex !important;
        gap: 2px;
        margin: 0;
        padding: 0;
    }

    .sidebar.sidebar--left .sidebar_hide_more_menu_box > .arrow {
        display: none;
    }

    .sidebar.sidebar--left .sidebar_mobile_more_only {
        display: none !important;
    }

    .sidebar.sidebar--left .sidebar__menu_box {
        min-height: 34px;
        height: 34px;
        gap: 10px;
        padding: 0 10px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 560;
        line-height: 1.2;
    }

    .sidebar.sidebar--left .sidebar__menu_box > span:has(> svg, > img) {
        width: 22px;
        min-width: 22px;
        height: 22px;
    }

    .sidebar.sidebar--left .sidebar__menu_box > span:has(> svg, > img) svg,
    .sidebar.sidebar--left .sidebar__menu_box > span:has(> svg, > img) img:not(.avatar) {
        width: 19px !important;
        min-width: 19px !important;
        height: 19px !important;
        max-height: 19px !important;
    }

    .sidebar.sidebar--left .sidebar__menu_box > span .avatar {
        width: 21px !important;
        min-width: 21px !important;
        height: 21px !important;
        max-height: 21px !important;
    }

    .sidebar.sidebar--left .arrow {
        margin: 5px 2px;
    }
}

@media (min-width: 769px) and (max-height: 850px) {
    .sidebar.sidebar--left .sidebar__menu_wrapper {
        padding-top: 6px;
    }

    .sidebar.sidebar--left .sidebar__menu_box {
        min-height: 32px;
        height: 32px;
        font-size: 12.5px;
    }

    .sidebar.sidebar--left .arrow {
        margin: 4px 2px;
    }
}

/* Desktop left navigation comfort pass: keep full menu visible without crushing spacing. */
@media (min-width: 769px) {
    .site_container > .sidebar_container.sidebar_scroll,
    .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left,
    .sidebar.sidebar--left,
    .sidebar.sidebar--left .sidebar__inner.sidebar_scroll {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
    }

    .site_container > .sidebar_container.sidebar_scroll,
    .sidebar.sidebar--left .sidebar__inner.sidebar_scroll {
        scrollbar-width: none;
    }

    .site_container > .sidebar_container.sidebar_scroll::-webkit-scrollbar,
    .sidebar.sidebar--left .sidebar__inner.sidebar_scroll::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .sidebar.sidebar--left {
        padding: 15px;
    }

    .sidebar.sidebar--left .sidebar__inner {
        padding: 10px 0;
    }

    .sidebar.sidebar--left .sidebar__menu_wrapper {
        gap: 4px;
        padding: 10px 12px 6px;
        overflow: visible !important;
    }

    .sidebar.sidebar--left .sidebar__footer {
        position: static !important;
        bottom: auto !important;
        gap: 4px;
        margin-top: 0 !important;
        padding: 0 12px 10px;
        background-color: transparent !important;
    }

    .sidebar.sidebar--left .more_menu {
        display: none !important;
    }

    .sidebar.sidebar--left .sidebar_hide_more_menu_box,
    .sidebar.sidebar--left .sidebar_hide_more_menu_box.none {
        display: flex !important;
        gap: 4px;
        margin: 0;
        padding: 0;
    }

    .sidebar.sidebar--left .sidebar_hide_more_menu_box > .arrow {
        display: none;
    }

    .sidebar.sidebar--left .sidebar_mobile_more_only {
        display: none !important;
    }

    .sidebar.sidebar--left .sidebar__menu_box {
        min-height: 42px;
        height: 42px;
        gap: 12px;
        padding: 0 14px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 560;
        line-height: 1.2;
    }

    .sidebar.sidebar--left .sidebar__menu_box > span:has(> svg, > img) {
        width: 26px;
        min-width: 26px;
        height: 26px;
    }

    .sidebar.sidebar--left .sidebar__menu_box > span:has(> svg, > img) svg,
    .sidebar.sidebar--left .sidebar__menu_box > span:has(> svg, > img) img:not(.avatar) {
        width: 22px !important;
        min-width: 22px !important;
        height: 22px !important;
        max-height: 22px !important;
    }

    .sidebar.sidebar--left .sidebar__menu_box > span .avatar {
        width: 24px !important;
        min-width: 24px !important;
        height: 24px !important;
        max-height: 24px !important;
    }

    .sidebar.sidebar--left .arrow {
        margin: 7px 2px;
    }
}

/* Desktop sidebar scroll-lock behavior, aligned with Dizzy's scroll-to-fixed model. */
@media (min-width: 769px) {
    .site_container > .site_header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
        padding: 15px 15px 0 !important;
        transition: padding 0.24s ease;
        z-index: 1000 !important;
    }

    .site_container > .site_header .site_header_container {
        transition: border-radius 0.24s ease, box-shadow 0.24s ease, margin 0.24s ease;
    }

    .site_container.cp-header-scrolled > .site_header {
        padding: 0 !important;
    }

    .site_container.cp-header-scrolled > .site_header .site_header_container {
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: var(--box-shadow) !important;
    }

    .site_container > .sidebar_container.sidebar_scroll {
        align-items: flex-start;
        height: auto !important;
        min-height: 0;
        padding-top: 72px;
        box-sizing: border-box;
        overflow: visible !important;
        overflow-y: visible !important;
    }

    .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left {
        position: relative !important;
        top: auto !important;
        align-self: flex-start !important;
        height: auto !important;
        max-height: none !important;
        min-height: var(--cp-ls-space, auto) !important;
        overflow: visible !important;
        padding-bottom: 0;
    }

    .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__inner {
        position: relative !important;
        top: auto;
        left: auto;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        scrollbar-width: none;
    }

    .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__inner.ls-locked {
        position: fixed !important;
        top: auto !important;
        bottom: var(--cp-ls-lock-bottom, 20px) !important;
        left: var(--cp-ls-lock-left, auto) !important;
        width: var(--cp-ls-lock-width, auto) !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        z-index: 11;
    }

    .site_container > .sidebar_container.sidebar_scroll > .main-content {
        align-self: flex-start;
    }

    .site_container > .sidebar_container.sidebar_scroll > .main-content .content-right {
        position: relative !important;
        top: auto !important;
        align-self: flex-start !important;
        height: auto !important;
        max-height: none !important;
        min-height: var(--cp-rs-space, auto) !important;
        padding-bottom: var(--cp-rs-space, 0px);
        overflow: visible !important;
    }

    .site_container > .sidebar_container.sidebar_scroll > .main-content .content-right .content-right-container {
        position: relative !important;
        top: auto;
        left: auto;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .site_container > .sidebar_container.sidebar_scroll > .main-content .content-right .content-right-container.rs-locked {
        position: fixed !important;
        top: var(--cp-rs-lock-top, auto) !important;
        bottom: var(--cp-rs-lock-bottom, 0px) !important;
        left: var(--cp-rs-lock-left, auto) !important;
        width: var(--cp-rs-lock-width, auto) !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        z-index: 11;
    }
}
/* Chat emoji picker: keep the panel attached to the composer and above the message list. */
.chat_input_area {
    position: relative;
    z-index: 20;
}

.chat_input_area > .make-emoji-wrapper {
    left: 12px;
    right: auto;
    bottom: calc(100% + 8px);
    width: min(320px, calc(100% - 24px));
    max-width: calc(100% - 24px);
    pointer-events: auto;
    z-index: 60;
}

.chat_input_area > .make-emoji-wrapper .make-comment-emoji-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.chat_input_area .get_emojis.is-loading {
    opacity: .65;
    pointer-events: none;
}

@media (max-width: 560px) {
    .chat_input_area > .make-emoji-wrapper {
        left: 8px;
        width: min(320px, calc(100% - 16px));
        max-width: calc(100% - 16px);
    }
}

/* Language switcher: only the two settings-menu variants use this layout.
   Icon sizing is handled by the semantic icon wrapper rules above, so the
   language name is never treated as a fixed-width sidebar icon. */
:where(.sidebar__menu_box, .settings_sidebar__menu_box).language_switcher {
    --language-switcher-icon-box: 26px;
    --language-switcher-icon-size: 22px;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible !important;
    white-space: nowrap;
    text-align: left !important;
    color: #111827 !important;
}

:where(.sidebar__menu_box, .settings_sidebar__menu_box).language_switcher > .language_switcher_icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--language-switcher-icon-box);
    width: var(--language-switcher-icon-box);
    min-width: var(--language-switcher-icon-box);
    height: var(--language-switcher-icon-box);
    margin: 0 !important;
    overflow: visible !important;
}

:where(.sidebar__menu_box, .settings_sidebar__menu_box).language_switcher > .language_switcher_icon svg,
:where(.sidebar__menu_box, .settings_sidebar__menu_box).language_switcher > .language_switcher_icon img {
    display: block;
    width: var(--language-switcher-icon-size) !important;
    height: var(--language-switcher-icon-size) !important;
    min-width: var(--language-switcher-icon-size);
    min-height: var(--language-switcher-icon-size);
    object-fit: contain;
}

:where(.sidebar__menu_box, .settings_sidebar__menu_box).language_switcher > .language_switcher_text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    padding: 0;
    overflow: visible !important;
    text-indent: 0 !important;
    text-overflow: clip;
    white-space: nowrap;
    line-height: 1.25;
    text-align: left !important;
    color: #111827 !important;
}

:where(.sidebar__menu_box, .settings_sidebar__menu_box).language_switcher > .sidebar__menu_lang_label {
    flex: 0 0 auto;
    min-width: 32px;
    margin: 0 0 0 auto !important;
    padding-left: 12px;
    text-align: right;
}

:where(body.theme-dark, body[data-theme="dark"], :root[data-theme="dark"], html.theme-dark, html[data-theme="dark"]) :where(.sidebar__menu_box, .settings_sidebar__menu_box).language_switcher,
:where(body.theme-dark, body[data-theme="dark"], :root[data-theme="dark"], html.theme-dark, html[data-theme="dark"]) :where(.sidebar__menu_box, .settings_sidebar__menu_box).language_switcher > .language_switcher_text {
    color: #e5e7eb !important;
}

/* Messages page: keep the global navigation aligned with the conversation
   panels and let only its menu region scroll. */
@media (min-width: 821px) {
    body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll {
        align-items: flex-start !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        padding-top: 72px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left {
        align-self: flex-start !important;
        height: calc(100vh - 75px) !important;
        height: calc(100dvh - 75px) !important;
        min-height: 0 !important;
        max-height: calc(100vh - 75px) !important;
        max-height: calc(100dvh - 75px) !important;
        padding: 18px 15px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__inner.sidebar_scroll {
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }

    body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(100, 116, 139, .42) transparent;
        scrollbar-gutter: stable;
    }

    body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper::-webkit-scrollbar-track {
        background: transparent;
    }

    body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper::-webkit-scrollbar-thumb {
        background: rgba(100, 116, 139, .42);
        border: 1px solid transparent;
        border-radius: 999px;
        background-clip: padding-box;
    }

    body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(71, 85, 105, .68);
        border: 1px solid transparent;
        background-clip: padding-box;
    }

    body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__footer {
        flex: 0 0 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    :root[data-theme="dark"] body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper,
    html.theme-dark body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper,
    body.theme-dark[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper {
        scrollbar-color: rgba(148, 163, 184, .42) transparent;
    }

    :root[data-theme="dark"] body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper::-webkit-scrollbar-thumb,
    html.theme-dark body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper::-webkit-scrollbar-thumb,
    body.theme-dark[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, .42);
    }

    :root[data-theme="dark"] body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper::-webkit-scrollbar-thumb:hover,
    html.theme-dark body[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper::-webkit-scrollbar-thumb:hover,
    body.theme-dark[data-layout="messages"] .site_container > .sidebar_container.sidebar_scroll > .sidebar.sidebar--left .sidebar__menu_wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(203, 213, 225, .68);
    }
}
