/* Base Styles and Variables */
:root {
    --primary-bg: #04111D;
    --secondary-bg: #0A1C2E;
    --text-main: #FFFFFF;
    --text-muted: #8AA4B6;
    --gold-gradient: linear-gradient(135deg, #FFDF7B 0%, #CE9A3B 100%);
    --card-glow: 0 0 15px rgba(206, 154, 59, 0.3);
    --cyan-glow: 0 0 20px rgba(0, 255, 255, 0.4);
    --nav-bg: rgba(4, 17, 29, 0.85);
    --gradient-border: linear-gradient(to bottom right, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 24%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.3) 90%, rgba(255, 255, 255, 0.7) 100%);

    --safe-area-top: var(--native-inset-top, env(safe-area-inset-top, 0px));
    --safe-area-right: var(--native-inset-right, env(safe-area-inset-right, 0px));
    --safe-area-bottom: var(--native-inset-bottom, env(safe-area-inset-bottom, 0px));
    --safe-area-left: var(--native-inset-left, env(safe-area-inset-left, 0px));

    /* Bottom nav geometry. The center button sticks out above the nav. */
    --bottom-nav-height: 82px;
    --bottom-nav-offset: max(0px, calc(var(--safe-area-bottom) - 14px));
    --center-nav-button-size: 72px;
    --center-nav-button-top: 6px;
    /* Distance from the screen bottom to the top of the center nav button. */
    --bottom-nav-clearance: calc(var(--bottom-nav-offset) + var(--bottom-nav-height) + var(--center-nav-button-size) / 2 - var(--center-nav-button-top));
}

/* Interactive cursor — scoped + :has() so wrappers match; !important beats Bootstrap/reboot on desktop */
.app-container a[href],
.app-container button:not(:disabled),
.app-container .btn:not(:disabled):not(.disabled),
.app-container .satsang-card,
.app-container .b-article-slide,
.app-container .nav-item,
.app-container .assistant-banner,
.app-container .banner-btn,
.app-container .offer-btn,
.app-container .main-action-btn,
.app-container .view-all-btn,
.app-container .offer-banner,
.app-container .footer-link-item,
.app-container .footer-link,
.app-container .center-btn-wrapper,
.app-container .center-btn-inner {
    cursor: pointer !important;
}

.app-container .gradient-border-wrapper:has(button),
.app-container .gradient-border-wrapper:has(a[href]),
.app-container .gradient-border-wrapper:has(.btn) {
    cursor: pointer !important;
}

html {
    height: 100%;
    overflow: hidden;
    background-color: var(--primary-bg);
}

body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: none;
    isolation: isolate;
}

.b-app-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("../img/background_sub.png");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    pointer-events: none;
}

body.bg-home .b-app-backdrop {
    background-image: url("../img/bg_mobile.jpg");
}

body.bg-detail,
body.bg-library {
    position: relative;
    background-color: #08161f;
}

body.bg-detail .b-app-backdrop,
body.bg-library .b-app-backdrop {
    background-image: url("../img/bg_detail.jpg");
    background-size: 100% auto;
}

/* Dimming column over the detail background (Figma "Rectangle 17"):
   solid #08161f blurred 60px, so the backdrop stays visible only along
   the soft edges and above the article cover */
body.bg-detail .app-container::before,
body.bg-library .app-container::before {
    content: '';
    position: absolute;
    top: 218px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: #08161f;
    filter: blur(60px);
    pointer-events: none;
}

body.bg-library .app-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: -1;
    height: 851px;
    background:
        linear-gradient(180deg, rgba(8, 22, 31, 0.9) 29.746%, rgba(9, 33, 42, 0) 100%) top / 100% 681px no-repeat,
        rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

body.bg-diary {
    position: relative;
    background-color: #09212b;
}

body.bg-diary .b-app-backdrop {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url("../img/diary_bg.jpg");
    background-size: 100% auto;
}

body.bg-diary .app-container::before {
    content: '';
    position: absolute;
    top: 401px;
    right: 0;
    left: 0;
    z-index: -1;
    height: 588px;
    background: #08161f;
    filter: blur(60px);
    pointer-events: none;
}

body.bg-offline {
    background-color: #09212b;
}

body.bg-offline .b-app-backdrop {
    background-image: url("../img/diary_bg.jpg");
    background-size: 100% auto;
}

body.bg-cabinet {
    background-color: #09212a;
}

body.bg-cabinet .b-app-backdrop {
    background-image: url("../img/bg_cabinet.png");
    background-size: 100% auto;
}

body.bg-cabinet-inner {
    background-color: #09212a;
}

body.bg-cabinet-inner .b-app-backdrop {
    background-image: url("../img/bg_cabinet_inner.png");
    background-size: 100% auto;
}

/* Notifications backdrop (Figma "My notifications BG"). Painted on a
   viewport-pinned layer instead of the scrolling backdrop so it
   stays put while the notification list scrolls over it.
   background-attachment: fixed is unreliable in iOS WKWebView. */
body.bg-notifications {
    background-color: #09212a;
}

body.bg-notifications .b-app-backdrop {
    background-image: none;
}

body.bg-notifications::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("../img/bg_notifications.png");
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
}

/* App Container constraint */
.app-container {
    max-width: 100%;
    min-height: calc(100% + 1px);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: var(--safe-area-top);
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
}

body.bg-player .app-container {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Welcome screens fill the viewport and never scroll: no +1px of the app shell. */
body.welcome-body {
    overflow-y: hidden;
}

body.welcome-body .app-container {
    min-height: 100%;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Page-level horizontal padding for top-level sections */
.app-header,
.app-main {
    padding-left: 12px;
    padding-right: 12px;
}

/* Detail pages render edge-to-edge; the body block adds its own 12px inset. */
.app-main.app-main--flush {
    padding-left: 0;
    padding-right: 0;
}

/* Header Top Row */
.header-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.header-trial {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #f6f6f6;
    letter-spacing: 0.5px;
    line-height: 18px;
}
/* Subscription status neon glow, colored per plan type (1:1 with Figma);
   shared by the home header badge and the player status label */
.header-trial.is-trial,
.header-trial.is-paused,
.b-player .e-player-status-label.is-trial,
.b-player .e-player-status-label.is-paused {
    color: #f6f6f6;
    text-shadow:
        0 0 2px rgba(209, 135, 31, 0.6),
        0 0 2px rgba(209, 135, 31, 0.6),
        0 0 2px rgba(209, 135, 31, 0.6),
        0 0 2px rgba(209, 135, 31, 0.6),
        0 0 2px rgba(209, 135, 31, 0.6),
        0 0 2px rgba(209, 135, 31, 0.6),
        0 0 2px rgba(209, 135, 31, 0.6),
        0 0 2px rgba(209, 135, 31, 0.6),
        0 4px 4px rgba(0, 0, 0, 0.25);
}
.header-trial.is-active,
.b-player .e-player-status-label.is-active {
    color: #ffffff;
    text-shadow:
        0 0 4px rgba(0, 255, 247, 0.1),
        0 0 4px rgba(0, 255, 247, 0.19),
        0 0 4px rgba(0, 255, 247, 0.1),
        0 0 4px rgba(0, 255, 247, 0.1),
        0 0 4px rgba(34, 207, 238, 0.1),
        0 0 4px rgba(42, 228, 212, 0.26),
        0 0 4px rgba(42, 228, 212, 0.26),
        0 0 4px rgba(0, 122, 83, 0.03),
        0 4px 4px rgba(0, 0, 0, 0.125);
}
.header-trial.is-free,
.b-player .e-player-status-label.is-free {
    color: #ffffff;
    text-shadow:
        0 0 4px rgba(238, 34, 146, 0.08),
        0 0 4px rgba(238, 34, 146, 0.152),
        0 0 4px rgba(238, 34, 146, 0.08),
        0 0 4px rgba(238, 34, 146, 0.08),
        0 0 4px rgba(238, 34, 146, 0.08),
        0 0 4px rgba(234, 194, 246, 0.208),
        0 0 4px rgba(196, 116, 220, 0.208),
        0 0 4px rgba(234, 194, 246, 0.8),
        0 4px 4px rgba(0, 0, 0, 0.25);
}
.header-date {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #f6f6f6;
    opacity: 0.8;
    line-height: 14px;
}

/* Status Bar */
.status-bar {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Header & Banner */
.assistant-banner {
    position: relative;
}

.assistant-banner-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 56px;
    min-height: 98px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 12px 122px 12px 24px;
}
.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
}
.banner-content .banner-title {
    margin-bottom: -4px;
}
.banner-title {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #f6f6f6;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.banner-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #c7cacb;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.banner-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    height: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #f6f6f6;
    background: rgba(34, 211, 238, 0.01);
    border: none;
    border-radius: 56px;
    transition: background 0.2s ease;
}
.banner-btn:hover {
    background: rgba(34, 211, 238, 0.12);
    color: #f6f6f6;
}
.banner-avatar {
    position: absolute;
    top: 0;
    right: 24px;
    bottom: 0;
    width: 98px;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}
.banner-avatar img {
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    transform: scaleX(-1);
    margin-top: 4px;
}
/* MARK banner close: 12px icon flush with the banner's top-right corner
   (per Figma); the button box is larger only to keep a usable tap target */
.banner-close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Universal gradient border wrapper — uses ::before so inner bg/blur stays intact */
.gradient-border-wrapper {
    --gradient-border-radius: 56px;
    position: relative;
    overflow: hidden;
    border-radius: var(--gradient-border-radius);
}
.gradient-border-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--gradient-border-radius);
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* Circle variant */
.gradient-border-wrapper--circle {
    position: relative;
}
.gradient-border-wrapper--circle::before {
    border-radius: 50%;
}

/* Close button wrapper - keeps absolute positioning */
/* Satsang play button wrapper */
.satsang-card-play-wrapper {
    width: 64px;
    height: 64px;
    transition: transform 0.2s ease;
}
.satsang-card-play-wrapper .satsang-card-play {
    width: 100%;
    height: 100%;
}

.banner-glow {
    position: absolute;
    top: 50%;
    right: 5%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    filter: blur(20px);
    pointer-events: none;
}

/* Energy Slider wrapper — spaces the bordered container from following sections */
.energy-slider-wrapper {
    margin-bottom: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Assistant banner: spacing under the main bordered card */
.assistant-banner > .gradient-border-wrapper {
    margin-bottom: 12px;
}

/* Section header row above sliders */
.slider-header-row {
    padding-left: 8px;
    margin-bottom: 12px;
}

/* Stats section icon image */
.stat-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Offline mode: layout-neutral wrapper for online-only blocks */
.offline-hide-wrapper {
    display: contents;
}
.offline-mode [data-offline-hide] {
    display: none !important;
}

/* Offline mode without a downloaded audio: hide every entry into the player
   (has-offline-audio is set on <html> by offline_mode.js) */
.offline-mode:not(.has-offline-audio) [data-offline-player-hide] {
    display: none !important;
}
.offline-mode:not(.has-offline-audio) .center-btn-inner {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
    filter: grayscale(1);
}

/* Tempo-rhythm CSS sphere inside .earth-container */
.tempo-earth-sphere {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: radial-gradient(
        circle at 35% 30%,
        #1d4b74 0%,
        #0f243c 55%,
        #081625 100%
    );
    box-shadow:
        inset -12px -18px 40px rgba(0, 0, 0, 0.55),
        inset 10px 12px 30px rgba(13, 202, 240, 0.18);
}

/* Tempo-rhythm background animation replaces the CSS globe when a video is set */
.earth-container.has-video .tempo-earth-sphere {
    width: 100%;
    height: 100%;
    background: none;
    box-shadow: none;
}
/* the animation ships with a real alpha channel (WebM VP9-alpha for Chrome,
   HEVC-alpha MOV for Safari), so the transparent background shows the
   decorative slide backdrop around the globe */
.tempo-earth-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* hidden until it plays: when iOS refuses autoplay (Low Power Mode) the globe
   area stays empty instead of showing the native Play button; video_playback.js
   adds m-video-playing on the first playing event */
.tempo-earth-video:not(.m-video-playing) {
    opacity: 0;
}
.tempo-earth-video.m-video-playing {
    opacity: 1;
    transition: opacity 0.3s ease;
}
.tempo-earth-video::-webkit-media-controls-start-playback-button,
.welcome-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}
.tempo-earth-video::-webkit-media-controls,
.welcome-video::-webkit-media-controls {
    display: none !important;
}

/* Energy Slider */
.energy-slider {
    display: block;
    overflow: hidden;
    touch-action: pan-y;
    border-radius: 56px;
    width: 100%;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}
.energy-slider-track {
    display: flex;
    align-items: stretch;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}
.gradient-border-wrapper > .energy-slider {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.energy-slide {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px 12px;
    cursor: default;
}
.energy-slide--text {
    justify-content: space-between;
}

/* TinyMCE-rendered content inside text slide — mirrors .energy-info / .energy-tempo look */
.energy-slide--text .energy-content {
    width: 100%;
    text-align: center;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    contain: size;
}
.energy-slide--text .energy-content > * {
    margin: 0;
}
.energy-slide--text .energy-content > * + * {
    margin-top: 8px;
}
.energy-slide--text .energy-content h1,
.energy-slide--text .energy-content h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: #f6f6f6;
}
.energy-slide--text .energy-content h3,
.energy-slide--text .energy-content h4,
.energy-slide--text .energy-content h5,
.energy-slide--text .energy-content h6 {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #b0b5b7;
    text-transform: uppercase;
    line-height: 20px;
}
.energy-slide--text .energy-content p {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #c7cacb;
    line-height: 18px;
    text-align: left;
}
.energy-slide--text .energy-content h1 + p,
.energy-slide--text .energy-content h2 + p,
.energy-slide--text .energy-content h3 + p,
.energy-slide--text .energy-content h4 + p {
    text-align: center;
}

.energy-section {
    background-color: transparent;
    border-radius: 56px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.energy-section.energy-slide--text {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Slide meta row */
.energy-slide-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.energy-meta-date {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #c7cacb;
    line-height: 14px;
}
.energy-meta-icon {
    font-size: 14px;
    color: #c7cacb;
}
.energy-meta-duration {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #c7cacb;
    line-height: 14px;
}

.energy-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    text-align: center;
    margin-top: 12px;
}

/* Energy info text */
.energy-info-overline {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #b0b5b7;
    text-transform: uppercase;
    line-height: 20px;
    margin: 0;
}
.energy-info-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: #f6f6f6;
    margin: 0;
}
.energy-info-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #c7cacb;
    line-height: 18px;
    margin: 0;
}
.energy-info-desc--long {
    text-align: left;
}

/* Tempo rhythm sub-section (page 2) */
.energy-tempo {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    text-align: center;
}
.energy-tempo .energy-info-overline {
    margin-bottom: 0;
}
.energy-tempo .energy-info-title {
    margin-bottom: 0;
}

/* Pagination dots */
.energy-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}
.energy-dot {
    width: 6px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease, background 0.3s ease;
}
.energy-dot.active {
    width: 8px;
    background: rgba(255, 255, 255, 0.9);
}

/* Globe */
.earth-container {
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 234px;
    height: 234px;
}
.earth-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.earth-ring-1 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(13, 202, 240, 0.5);
}
.earth-ring-2 {
    width: 115%;
    height: 115%;
    border-radius: 50%;
    border: 1px solid rgba(13, 202, 240, 0.25);
}
.earth-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 185, 230, 0.2) 0%, rgba(206, 154, 59, 0.15) 50%, transparent 70%);
    filter: blur(25px);
    z-index: 1;
    pointer-events: none;
}

.btn.main-action-btn {
    padding: 0;
    line-height: 1;
}
.main-action-btn {
    --main-action-h: 50px;
    --main-action-text-inset: 24px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    max-width: 400px;
    margin-top: 8px;
    height: var(--main-action-h);
    min-height: var(--main-action-h);
    padding: 0;
    border-radius: 9999px;
    border: 1px solid rgba(246, 246, 246, 0.7);
    box-shadow:
        4px 0 12px 0 rgba(255, 220, 95, 0.3),
        0 4px 12px 0 rgba(255, 220, 95, 0.3);
    background-color: #c9a035;
    background-image: linear-gradient(
        144.31deg,
        #ffc08c 0%,
        #fff4a9 44.66%,
        #ffa458 96.22%
    );
    background-repeat: no-repeat;
    background-origin: border-box;
    background-clip: border-box;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.main-action-btn::before,
.main-action-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}
.main-action-btn::before {
    background-image: url("../img/gold_texture.png");
    background-repeat: no-repeat;
    background-size: 146.94% 365.89%;
    background-position: 0% 81%;
}
.main-action-btn::after {
    background-image: radial-gradient(
        ellipse closest-side at center,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 243, 202, 1) 25%,
        rgba(255, 232, 149, 1) 50%,
        rgba(255, 220, 96, 1) 75%,
        rgba(255, 215, 69, 1) 87.5%,
        rgba(255, 209, 43, 1) 100%
    );
}
.main-action-btn:has(.play-icon-wrapper) {
    --main-action-text-inset: 56px;
}
.main-action-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: calc(100% - var(--main-action-text-inset));
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #3f3925;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-align: center;
    white-space: normal;
}
.btn.main-action-btn:active,
.btn.main-action-btn:first-child:active,
:not(.btn-check) + .btn.main-action-btn:active {
    color: inherit;
    background-color: #c9a035;
    border-color: rgba(246, 246, 246, 0.7);
}
.main-action-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        4px 0 16px rgba(255, 220, 95, 0.4),
        0 6px 16px rgba(255, 220, 95, 0.4);
}
.play-icon-wrapper {
    --gradient-border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.play-icon-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(180deg, #F2BD44 0%, #F9C452 30%, #FECF5E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-icon-adjust {
    font-size: 1.5rem;
    color: #3f3925;
    margin-left: 3px;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(34, 211, 238, 0.01);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 56px;
    padding: 10px !important;
    min-height: 70px;
    height: 100%;
    gap: 8px;
}

.stat-card .b-info-hint {
    margin-left: 0;
    position: absolute;
    right: 20px;
    top: 12px;
}

.stat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(246, 246, 246, 0.1);
    border-radius: 50%;
}
.stat-text {
    flex: 1;
    min-width: 0;
    container-type: inline-size;
    text-align: left;
}
.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 22px;
    color: #f6f6f6;
    letter-spacing: 1.1px;
    margin-bottom: 0;
}
.stat-label {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(9px, 11.4cqi, 11px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    color: #c7cacb;
    line-height: 18px;
    margin-top: 2px;
    margin-bottom: 0;
}
:lang(ru) .stat-label {
    font-size: clamp(8px, 10.2cqi, 11px);
}

/* Section Headings */
.section-heading {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #f6f6f6;
    line-height: 20px;
}

/* Offer Banner */
.offer-banner {
    position: relative;
    overflow: hidden;
    background-color: #fceafd;
    border-radius: 24px;
    min-height: 114px;
    padding: 12px 12px 12px 0;
}
.promotions-scroll {
    scroll-snap-type: x mandatory;
}
.offer-slide {
    flex: 0 0 calc(100% - 14px);
    min-width: calc(100% - 14px);
    scroll-snap-align: start;
    color: inherit;
    display: block;
    text-decoration: none;
}
.offer-slide:hover {
    text-decoration: none;
    color: inherit;
}
.offer-bg-img {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: right center;
    pointer-events: none;
}
.offer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 0 0 12px;
    width: 247px;
    gap: 8px;
}
.offer-content .offer-title,
.offer-content .offer-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.offer-content .offer-title {
    margin: 0 0 6px 0;
}
.offer-content .offer-desc {
    margin: 0;
}
.offer-content .gradient-border-wrapper {
    margin: 0;
}
.offer-content .offer-btn {
    height: 30px;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 23, 32, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.offer-title {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #091720;
    line-height: 16px;
}
.offer-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #515151;
    line-height: 18px;
}
.offer-btn {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #091720;
    background: transparent;
    line-height: 14px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.offer-btn:hover {
    transform: translateY(-2px);
}
.mask-img {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

/* Scroll Containers */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Satsang Cards */
.scroll-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 32px;
    gap: 7px;
}
.scroll-container.m-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
    user-select: none;
}
.scroll-container.m-dragging * {
    cursor: grabbing !important;
}
.satsang-card {
    position: relative;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
    text-decoration: none;
    width: 170px;
    height: 170px;
    padding: 4px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.satsang-card-img {
    position: absolute;
    inset: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    object-fit: cover;
    border-radius: 22px;
}
.satsang-card-gradient {
    position: absolute;
    inset: 4px;
    border-radius: 22px;
    background: linear-gradient(to bottom, rgba(253, 230, 138, 0) 63.3%, rgba(200, 148, 46, 0.5) 78.3%);
}
.satsang-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.satsang-card-play {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F6F6F61A;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 2.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.satsang-card-play i {
    margin-left: 4px;
}
.satsang-card:hover .satsang-card-play-wrapper {
    transform: scale(1.05);
}
.satsang-card:hover .satsang-card-play-wrapper .satsang-card-play {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.satsang-card-title {
    position: absolute;
    bottom: 12px;
    left: 4px;
    right: 4px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #f6f6f6;
    text-align: center;
    line-height: 16px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    background: transparent !important;
    border: none !important;
    color: #f6f6f6 !important;
    padding: 4px 12px;
    height: 30px;
    border-radius: 56px;
    transition: background 0.2s ease;
}
.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #f6f6f6 !important;
}

/* Article Cards */
.articles-container {
    gap: 7px;
}
.b-article-slide {
    display: flex;
    flex-shrink: 0;
    width: 336px;
    min-width: 336px;

    align-items: stretch;
    background: #edf3f4 !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 12px !important;
    text-decoration: none;
    color: inherit;
}
.b-article-slide .e-img {
    width: 94px;
    height: 94px;
    flex-shrink: 0;
    border-radius: 22px;
    object-fit: cover;
    align-self: center;
}
.b-article-slide .e-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-left: 12px;

}
.b-article-slide .e-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}
.b-article-slide .e-category {
    display: inline-block;
    padding: 0 6px;
    font-family: 'Manrope', 'Work Sans', sans-serif;
    font-size: 9px;
    font-weight: 400;
    color: #515151;
    background: #f6f6f6;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    line-height: 20px;
}
.b-article-slide .e-title {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #515151;
    line-height: 14px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}
.b-article-slide .e-date {
    font-family: 'Work Sans', 'Noto Sans', sans-serif;
    font-size: 9px;
    color: #b4b3b3;
    margin: 0;
    text-align: right;
    flex-shrink: 0;
    line-height: 12px;
}

/* Footer Links */
.footer-links {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 3rem;
    margin-bottom: 1.5rem;
}
.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}
.footer-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 32px;
}
.footer-link-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.footer-link {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #f6f6f6;
    line-height: 20px;
    text-decoration: none;
}
.footer-link:hover {
    color: #fff;
}
.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1000;
    padding-bottom: var(--bottom-nav-offset) !important;
    border: none !important;
    max-width: 448px;
    transition: transform 0.2s ease, visibility 0.2s ease;
}
.is-keyboard-open .bottom-nav {
    transform: translate(-50%, 100%);
    visibility: hidden;
    pointer-events: none;
}
.bottom-nav-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    height: calc(var(--bottom-nav-height) + var(--bottom-nav-offset));
    background-color: rgba(246, 246, 246, 0.25);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), inset 0 2px 4px 0 #ffffff;
    border-top-left-radius: 56px;
    border-top-right-radius: 56px;
}
.bottom-nav-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: var(--bottom-nav-height);
    padding: 0 20px 14px;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    width: 58px;
    flex-shrink: 0;
    gap: 4px;
    padding-bottom: 0;
    transition: opacity 0.3s ease, transform 0.1s ease;
}
.nav-item.center-nav-item {
    width: 72px;
    align-items: center;
    padding-bottom: 0;
}
.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.nav-label {
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 0.18px;
    text-transform: uppercase;
    line-height: 15px;
    white-space: nowrap;
}
.nav-item.center-nav-item .nav-label,
.nav-label-center {
    color: #FFFFFF;
    opacity: 0.5;
}
.nav-item.active .nav-label {
    font-weight: 700;
    letter-spacing: 0.18px;
}
.nav-item.is-disabled {
    pointer-events: none;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav a.nav-item:active {
    transform: scale(0.96);
}
.op-50 {
    opacity: 0.5;
}
.op-100 {
    opacity: 1;
}

.center-btn-wrapper {
    position: absolute;
    top: var(--center-nav-button-top);
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--center-nav-button-size);
    height: var(--center-nav-button-size);
    background: transparent;
    padding: 0 !important;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}
.center-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    margin: 0;
    overflow: hidden;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgb(253, 230, 138) 0%, rgb(212, 175, 55) 50%, rgb(184, 134, 11) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: inset 0 2px 2px 1px rgba(255, 255, 255, 0.6);
}
.center-btn-inner.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
    filter: grayscale(1);
}
.center-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* ------------------------------------------------------------- */
/* RESPONSIVE DESIGN (Tablets and Desktops) */
/* ------------------------------------------------------------- */
@media (min-width: 768px) {
    :root {
        --bottom-nav-height: 72px;
        --bottom-nav-offset: calc(var(--safe-area-bottom) + 16px);
    }

    .app-container {
        max-width: 768px;
        margin: 0 auto;
        padding-top: 2rem;
    }

    .status-bar {
        display: none !important;
    }

    .energy-section .earth-container {
        width: 350px;
        height: 350px;
    }

    .energy-section .earth-glow {
        width: 380px;
        height: 380px;
    }

    .offer-slide {
        flex-basis: min(480px, calc(100% - 14px));
        min-width: min(480px, calc(100% - 14px));
    }

    /* Bottom nav as centered pill on desktop */
    .bottom-nav {
        left: 50%;
        transform: translateX(-50%);
        max-width: 500px;
        min-height: auto;
    }
    .bottom-nav-bg {
        border-radius: 56px;
        height: var(--bottom-nav-height);
        bottom: var(--bottom-nav-offset);
    }
    .bottom-nav-inner {
        padding: 0 24px 12px;
        justify-content: space-between;
    }
    .nav-item {
        flex: 1 1 0;
        min-width: 0;
    }
    .nav-item.center-nav-item {
        width: auto;
    }

    .footer-links {
        display: block;
        text-align: center;
    }
    .footer-links ul {
        flex-direction: row !important;
        justify-content: center;
        gap: 2rem !important;
    }
}

@media (min-width: 1024px) {
    .app-container {
        max-width: 1000px;
    }
}

/* =============================================
   SIGNIN PAGE
   ============================================= */
.signin-page {
    position: relative;

    min-height: calc(100vh - var(--safe-area-top));
    min-height: calc(100dvh - var(--safe-area-top));
    width: 100%;
    padding: 24px 0 calc(24px + var(--safe-area-bottom));
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The sign-in page fits the viewport, so drop the global 1px scroll */
.app-container:has(.signin-page) {
    min-height: 100%;
}

.app-main:has(> .signin-page) {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Fade overlay (matches Figma "Fade" group) — full-viewport, sits above bg, below content */
.signin-fade {
    position: fixed;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
}

.signin-fade--bg {
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.signin-fade--top {
    top: 0;
    height: 143px;
    background: linear-gradient(to bottom, rgba(9, 33, 42, 0.9) 29.746%, rgba(9, 33, 42, 0) 100%);
}

.signin-fade--bottom {
    bottom: 0;
    height: 162px;
    background: linear-gradient(to top, rgba(10, 33, 42, 0.01), rgba(9, 33, 41, 0));
}

/* Stronger bottom shadow (Figma "Bottom Bg shadow") — dark band under the CTA that fades upwards */
.signin-fade--bottom-shadow {
    bottom: 0;
    height: 548px;
    background: linear-gradient(to top, rgba(10, 33, 42, 0.7) 26.171%, rgba(9, 33, 41, 0) 100%);
    filter: blur(1px);
}

/* Blurred dark ellipses behind the content (Figma "Bg shadow" group), anchored to the 393px frame centre */
.signin-fade--shadow {
    top: 84px;
    left: calc(50% - 304.5px);
    right: auto;
    width: 726px;
    height: 808px;
    background-image: url("../img/bg_shadow.svg");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* Logo area */
.signin-logo-area {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.signin-logo-wrap {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.signin-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.signin-brand {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    background: linear-gradient(99.5deg, rgb(202, 173, 95) 8.76%, rgb(250, 229, 156) 39.81%, rgb(202, 173, 95) 124.95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0;
    white-space: nowrap;
}

/* Step panels */
.signin-step {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 369px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    margin-bottom: auto;
    box-sizing: border-box;
}

.signin-step--hidden {
    display: none;
}

/* Card block (the rounded translucent container around step contents) */
.signin-card {
    position: relative;
    width: 100%;
    max-width: 369px;
    backdrop-filter: blur(4px);
    padding: 32px 24px 24px 24px;
    border-radius: 56px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(90deg, rgba(34, 211, 238, 0.02) 0%, rgba(34, 211, 238, 0.02) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

/* Soft white gradient border around the card (matches Figma highlight edge) */
.signin-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 56px;
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* Step header */
.signin-step-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.signin-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: #f6f6f6;
    margin: 0;
    width: 100%;
}

.signin-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #c7cacb;
    margin: 0;
    text-align: center;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.signin-subtitle-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

/* Fields container */
.signin-fields {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

/* Pull the error message close (12px) to its preceding sibling */
.signin-fields > .signin-otp-error:not(.signin-hidden) {
    margin-top: -20px;
}

/* Input group */
.signin-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.signin-input-label {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #b4b3b3;
    opacity: 0.7;
}

.signin-input {
    width: 100%;
    height: 56px;
    padding: 18px 16px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #f6f6f6;
    background: transparent;
    border: 1px solid rgba(246, 246, 246, 0.9);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.signin-input::placeholder {
    color: #b4b3b3;
    opacity: 0.7;
}

.signin-input:focus,
.signin-input:not(:placeholder-shown) {
    box-shadow:
        0 0 4px 0 rgba(245, 163, 48, 0.9),
        inset 0 0 4px 0 rgba(245, 163, 48, 0.9);
}

.signin-btn {
    margin-top: 0;
    max-width: none;
}

.main-action-btn.m-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.main-action-btn.m-disabled .main-action-text {
    opacity: 0.5;
}

.main-action-btn.m-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Links */
.signin-link {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    color: #f6f6f6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.signin-link:hover {
    color: #ffffff;
}

/* "Use another email" — sits inside subtitle group, inherits subtitle color */
#signin-back-link {
    color: #c7cacb;
}

#signin-back-link:hover {
    color: #f6f6f6;
}

/* OTP step uses a wider gap between header and fields than the email step */
#signin-step-code .signin-card {
    gap: 24px;
}

/* Blocked (limit reached) step — centered message + "Use another email" link */
#signin-step-blocked .signin-card {
    gap: 24px;
}

#signin-blocked-message {
    color: #c7cacb;
}

#signin-step-blocked .signin-fields {
    align-items: center;
}

#signin-blocked-back {
    color: #c7cacb;
    text-align: center;
}

#signin-blocked-back:hover {
    color: #f6f6f6;
}

/* OTP row */
.signin-otp-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.signin-otp-box {
    width: 56px;
    height: 56px;
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: #b0b5b7;
    text-align: center;
    background: transparent;
    border: 1px solid #f6f6f6;
    border-radius: 12px;
    outline: none;
    opacity: 0.5;
    caret-color: #f6f6f6;
    box-shadow: none;
    transition: opacity 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.signin-otp-box:focus,
.signin-otp-box.signin-otp-box--active {
    color: #f6f6f6;
    opacity: 0.9;
    box-shadow: 0 0 6px 0 rgba(245, 163, 48, 0.9);
}

.signin-otp-box--error {
    border-color: #ff8181 !important;
    color: rgba(246, 246, 246, 0.7);
    opacity: 0.9;
    box-shadow: 0 0 4px 0 rgba(230, 70, 70, 0.85) !important;
}

/* OTP error message */
.signin-otp-error {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #ff9d9d;
    opacity: 0.8;
    text-align: center;
    margin: 0;
    width: 100%;
}

/* Code actions group */
.signin-code-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

/* Countdown timer */
.signin-timer {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #ffffff;
    opacity: 0.7;
    text-align: center;
    margin: 0;
}

.signin-footer-link {
    display: none;
    position: relative;
    z-index: 2;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #f6f6f6;
    text-decoration: none;
    text-align: center;
    margin-top: 24px;
    padding-bottom: 16px;
}

.signin-footer-link:hover {
    color: #ffffff;
}

/* Footer link only shows on the OTP step */
#signin-step-code:not(.signin-step--hidden) ~ .signin-footer-link {
    display: block;
}

/* Top spacer as tall as the footer link block, so the OTP card stays centred on screen */
.signin-page:has(#signin-step-code:not(.signin-step--hidden))::before {
    content: '';
    flex: 0 0 58px;
}

/* Utility */
.signin-hidden {
    display: none !important;
}

.b-email-suggestion .e-action {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.b-email-suggestion .e-action + .e-action {
    margin-left: 12px;
}

.b-email-suggestion.m-soft {
    color: #c7cacb;
    opacity: 1;
}

/* =============================================
   SUBSCRIPTION PAGES
   ============================================= */
.subscription-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: 73px 0 calc(24px + var(--safe-area-bottom)) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    background-color: #09212a;
    background-image: url("../img/background_sub.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.subscription-page:has(> .subscription-top-bar:not(.subscription-top-bar--back)) {
    padding-top: 32px;
}

.subscription-page > *:not(.signin-fade):not(.subscription-top-bar) {
    position: relative;
    z-index: 2;
}

/* Top bar with close button */
.subscription-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: calc(4px + var(--safe-area-top)) 11px 4px;
    z-index: 20;
    background: linear-gradient(180deg, rgb(8, 22, 31) 0%, rgba(8, 22, 31, 0) 100%);
}

.subscription-close-btn {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #d8dada;
    opacity: 0.7;
    -webkit-mask: url("../img/icon_close.svg") center / contain no-repeat;
    mask: url("../img/icon_close.svg") center / contain no-repeat;
    transition: opacity 0.2s ease;
}

.subscription-close-btn:hover {
    opacity: 1;
}

/* Title */
.subscription-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: #f6f6f6;
    text-align: center;
    margin: 0 0 12px;
}

.b-subscription-notice {
    width: 100%;
    max-width: 371px;
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
}

.e-subscription-notice-text {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    color: #fff;
}

/* Intro */
.subscription-intro {
    width: 100%;
    max-width: 371px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.subscription-intro-text {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #d8dada;
    text-align: center;
    margin: 0;
}

.subscription-intro-list {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    align-items: flex-start;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.subscription-intro-bullet {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
}

.subscription-intro-check {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: #d8dada;
    -webkit-mask: url("../img/icon_check.svg") center / contain no-repeat;
    mask: url("../img/icon_check.svg") center / contain no-repeat;
}

.subscription-intro-bullet-text {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #d8dada;
    opacity: 0.8;
}

/* Plans form */
.subscription-plans {
    width: 100%;
    max-width: 369px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Type card */
.subscription-type-card {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 18px;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gradient-border-wrapper > div {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.subscription-type-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: var(--gradient-border);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.subscription-type-card--accent {
    background-color: transparent;
    background-image:
        linear-gradient(90deg, rgba(0, 224, 255, 0.1) 0%, rgba(0, 224, 255, 0.1) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.subscription-type-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subscription-type-title {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #f6f6f6;
    margin: 0;
}

.subscription-type-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    color: #c7cacb;
    margin: 0;
}

.subscription-type-long-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 14px;
    color: #c7cacb;
    margin: 0;
}

.subscription-plan-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Plan option (radio row) */
.subscription-plan-option {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.subscription-plan-option::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: var(--gradient-border);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    transition: background 0.2s ease;
    z-index: 0;
}

.subscription-type-card--accent .subscription-plan-option {
    background: rgba(0, 0, 0, 0.2);
}

.subscription-plan-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.subscription-plan-indicator {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid #b3b3b3;
    border-radius: 50%;
    transition: border-color 0.2s ease;
}

.subscription-plan-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #00e0ff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.subscription-plan-option--selected,
.subscription-plan-option:has(.subscription-plan-radio:checked) {
    box-shadow:
        0 0 7px rgba(0, 224, 255, 0.8),
        0 0 5px rgba(0, 224, 255, 0.7),
        inset 0 0 7px rgba(0, 224, 255, 0.75),
        inset 0 0 5px rgba(0, 224, 255, 0.7),
        0 4px 4px rgba(0, 0, 0, 0.25);
}

.subscription-plan-option--selected::before,
.subscription-plan-option:has(.subscription-plan-radio:checked)::before {
    background: #00e0ff;
}

.subscription-plan-radio:checked ~ .subscription-plan-indicator,
.subscription-plan-radio:focus-visible ~ .subscription-plan-indicator {
    border-color: #00e0ff;
}

.subscription-plan-radio:checked ~ .subscription-plan-indicator::after {
    transform: translate(-50%, -50%) scale(1);
}

.subscription-plan-caption {
    flex: 1;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #f6f6f6;
}

.subscription-plan-price {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 22px;
    color: #f6f6f6;
    letter-spacing: 1.1px;
    white-space: nowrap;
}

.subscription-plan-option .e-plan-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.subscription-plan-option .e-plan-prices {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

/* "Choose your subscription" screen: Inter Medium prices (Figma AS 4635:19056) */
.subscription-plans .subscription-plan-price {
    font-weight: 500;
}

/* Paywall: a 28px price line gives the 64px plan of Figma 4635:19289; a campaign plan is 60px */
.subscription-page .subscription-plan-price {
    line-height: 28px;
}

.subscription-page .subscription-plan-option.m-campaign {
    padding-top: 16px;
    padding-bottom: 16px;
}

.subscription-page .subscription-plan-price-regular {
    bottom: calc(100% - 2px);
}

/* Campaign badge hangs from the top edge of the plan, inside the plan */
.subscription-plan-campaign {
    position: absolute;
    top: 0;
    left: calc(50% - 9.5px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 16px;
    padding: 0 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    color: #091720;
    background-color: #f6b85f;
    background-image:
        url("../img/recommended_badge_sheen.svg"),
        linear-gradient(106.8deg, #ffc08c 2.56%, #fff4a9 46.07%, #ffa458 96.31%),
        url("../img/recommended_badge_bg.png");
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: 100% 100%, cover, cover;
    background-position: center, center, center;
    border-radius: 0 0 46px 46px;
    white-space: nowrap;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

/* The regular price sits above the campaign price and does not change the plan height */
.subscription-plan-price-regular {
    position: absolute;
    right: 0;
    bottom: calc(100% + 1px);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    color: #b4b3b3;
    white-space: nowrap;
}

.subscription-plan-price-regular .e-regular-amount {
    text-decoration: line-through;
}

.subscription-plan-option:not(.m-campaign) .subscription-plan-campaign,
.subscription-plan-option:not(.m-campaign) .subscription-plan-price-regular {
    display: none;
}

.subscription-plan-option.m-campaign .subscription-plan-badge:not(.m-current) {
    display: none;
}

/* The asterisk on a campaign plan points to the campaign terms */
.subscription-plan-option.m-campaign .subscription-plan-caption::after {
    content: "*";
}

/* Campaign terms under the plans */
.b-campaign-note {
    --gradient-border-radius: 54px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 24px;
    border-radius: 54px;
    background: rgba(245, 209, 80, 0.2);
}

.b-campaign-note .e-campaign-note-title {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    color: #f6f6f6;
}

.b-campaign-note .e-campaign-note-text {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: rgba(246, 246, 246, 0.8);
}

.b-campaign-note.m-hidden {
    display: none;
}

.subscription-plan-badge {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 30px;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    color: #091720;
    background-color: #f6b85f;
    background-image:
        url("../img/recommended_badge_sheen.svg"),
        linear-gradient(121.79deg, rgba(255, 192, 140, 0.45) 2.56%, rgba(255, 244, 169, 0.6) 46.07%, rgba(255, 164, 88, 0.45) 96.31%),
        url("../img/recommended_badge_bg.png");
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: 100% 100%, cover, cover;
    background-position: center, center, center;
    border-radius: 0 0 24px 24px;
    border-bottom-left-radius: 46px;
    border-bottom-right-radius: 46px;
    white-space: nowrap;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

/* Plan the user is already subscribed to: not selectable in change mode */
.subscription-plan-badge.m-current {
    background-image: none;
    background-color: rgba(246, 246, 246, 0.7);
    color: #091720;
}

.subscription-plan-option.m-current {
    pointer-events: none;
}

.subscription-plan-option.m-current .subscription-plan-indicator,
.subscription-plan-option.m-current .subscription-plan-badge {
    display: none;
}

/* Alt link */
.subscription-alt-link {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    color: #f6f6f6;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-top: 4px;
}

.subscription-alt-link:hover {
    color: #ffffff;
}

/* IAP purchase status message (native Google Billing flow) */
.b-iap-status {
    width: 100%;
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #ffffff;
    text-align: center;
}

.b-iap-status.m-hidden {
    display: none;
}

/* CTA (inline at the end of the form) */
.subscription-cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.subscription-cta .main-action-btn {
    width: 100%;
    max-width: none;
    margin-top: 0;
}

.subscription-legal {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 14px;
    color: #d8dada;
    text-align: center;
    margin: 0;
}

.subscription-legal a {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: #d8dada;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.subscription-legal a:hover {
    color: #f6f6f6;
}

/* Terms consent above the plan selection button */
.b-subscription-consent {
    width: 100%;
}

.b-subscription-consent.m-cabinet {
    margin-top: 16px;
}

.b-subscription-consent .e-consent-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.b-subscription-consent .e-consent-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.b-subscription-consent .e-consent-mark {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #00e0ff;
    border-radius: 4px;
    box-sizing: border-box;
    background: transparent;
    transition: background-color 0.15s ease;
}

.b-subscription-consent .e-consent-input:focus-visible + .e-consent-mark {
    outline: 2px solid #00e0ff;
    outline-offset: 2px;
}

.b-subscription-consent .e-consent-input:checked + .e-consent-mark {
    background: #00e0ff;
    box-shadow: 0 0 5px rgba(0, 224, 255, 0.6);
}

.b-subscription-consent .e-consent-input:checked + .e-consent-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -55%);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'><path d='M3.75 9L7.5 12.75L14.25 5.25' stroke='%2309212a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.b-subscription-consent .e-consent-text {
    text-align: left;
}

.b-subscription-consent.m-native .e-consent-label {
    cursor: default;
}

.b-subscription-consent.m-native .e-consent-mark {
    display: none;
}

.b-subscription-consent.m-native .e-consent-text {
    text-align: center;
}

/* Thank-you page */
.subscription-thanks {
    justify-content: center;
    padding: 72px 24px 60px;
    gap: 32px;
}

.subscription-thanks-orb {
    position: relative;
    width: 272px;
    height: 272px;
    flex-shrink: 0;
}

.subscription-thanks-orb-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.subscription-thanks-orb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    clip-path: circle(48% at 50% 50%);
}

.subscription-thanks-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    width: 100%;
    max-width: 339px;
    text-align: center;
}

.subscription-thanks-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: #f6f6f6;
    margin: 0;
}

.subscription-thanks-lead {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #ffffff;
    margin: 0;
}

.subscription-thanks-hint {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #ffffff;
    opacity: 0.8;
    margin: 0;
}

.subscription-thanks-cta {
    width: 100%;
    max-width: 335px;
}

.subscription-thanks-cta .main-action-btn {
    width: 100%;
    max-width: none;
    margin-top: 0;
}

/* Free-access request page */
.subscription-free-access {
    padding-bottom: 40px;
    padding-top: 60px;
    gap: 20px;
}

.subscription-top-bar--back {
    justify-content: flex-start;
    padding: calc(24px + var(--safe-area-top)) 24px 24px;
    background: linear-gradient(180deg, rgb(8, 22, 31) 0%, rgb(8, 22, 31) calc(100% - 24px), rgba(8, 22, 31, 0) 100%);
}

.subscription-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.7;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.subscription-back-btn:hover {
    opacity: 1;
}

.subscription-back-btn-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'><path d='M11 4L6 9L11 14' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
}

.subscription-free-access .subscription-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: #f6f6f6;
    text-align: center;
    margin: 0;
    padding: 0 36px;
}

.subscription-free-intro {
    width: 100%;
    max-width: 339px;
    color: #ffffff;
}

.subscription-free-intro > * {
    margin: 0;
}

.subscription-free-intro > * + * {
    margin-top: 6px;
}

.subscription-free-intro > * + h3 {
    margin-top: 24px;
}

.subscription-free-intro-lead,
.subscription-free-intro p {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #ffffff;
    opacity: 0.8;
}

.subscription-free-intro h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #ffffff;
}

.subscription-warning-block {
    position: relative;
    width: 100%;
    max-width: 369px;
    background: rgba(210, 33, 33, 0.2);
    border-radius: 54px;
    padding: 24px;
    color: #ffffff;
}

.subscription-warning-block > * {
    margin: 0;
}

.subscription-warning-block > * + * {
    margin-top: 6px;
}

.subscription-warning-block::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 54px;
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.subscription-warning-title {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #ffffff;
    text-align: center;
}

.subscription-warning-block p {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #ffffff;
    opacity: 0.8;
}

.subscription-request-form {
    position: relative;
    width: 100%;
    max-width: 369px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 56px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.subscription-request-form::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 56px;
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.subscription-request-title {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #ffffff;
    text-align: center;
    margin: 0;
    width: 100%;
    max-width: 339px;
}

.subscription-request-categories {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscription-request-label {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #f6f6f6;
    opacity: 0.7;
    margin: 0 0 12px;
}

/* Radio option (military / oncology) */
.subscription-request-radio {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    margin-bottom: 24px;
}

.subscription-request-radio:last-of-type {
    margin-bottom: 0;
}

.subscription-request-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.subscription-request-radio-mark {
    width: 20px;
    height: 20px;
    margin: 2px;
    border: 1.5px solid #b3b3b3;
    border-radius: 50%;
    box-sizing: border-box;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
}

.subscription-request-radio input[type="radio"]:checked
+ .subscription-request-radio-mark {
    border-color: #00e0ff;
}

.subscription-request-radio input[type="radio"]:checked
+ .subscription-request-radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #00e0ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.subscription-request-radio-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.subscription-request-radio-title {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    color: #f6f6f6;
}

.subscription-request-radio-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #f6f6f6;
    opacity: 0.8;
}

.subscription-request-checkboxes {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscription-request-checkbox-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subscription-request-error {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #ff9d9d;
    opacity: 0.9;
    margin: 0;
    padding-left: 36px;
}

.subscription-request-categories > .subscription-request-error {
    padding-left: 0;
}

.subscription-request-error--hidden {
    display: none !important;
}

/* Checkbox (disclaimer) */
.subscription-request-checkbox {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    padding-top: 4px;
}

.subscription-request-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.subscription-request-checkbox-mark {
    width: 24px;
    height: 24px;
    border: 1px solid #00e0ff;
    border-radius: 4px;
    box-sizing: border-box;
    background: transparent;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.subscription-request-checkbox input[type="checkbox"]:checked
+ .subscription-request-checkbox-mark {
    background: #00e0ff;
    box-shadow: 0 0 5px rgba(0, 224, 255, 0.6);
}

.subscription-request-checkbox input[type="checkbox"]:checked
+ .subscription-request-checkbox-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -55%) rotate(0deg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'><path d='M3.75 9L7.5 12.75L14.25 5.25' stroke='%2309212a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.subscription-request-checkbox-text {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #f6f6f6;
    opacity: 0.8;
}

.subscription-request-form .main-action-btn {
    width: 100%;
    max-width: 335px;
    margin-top: 0;
}

/* Tablet / desktop */
@media (min-width: 768px) {
    .subscription-page {
        max-width: 448px;
        margin: 0 auto;
    }

    .subscription-top-bar {
        left: 50%;
        right: auto;
        width: 100%;
        max-width: 448px;
        box-sizing: border-box;
        transform: translateX(-50%);
    }
}

/* ------------------------------------------------------------------ */
/* Welcome Screens (anonymous onboarding carousel)                      */
/* Uses the global body background_sub.png — same as signin page        */
/* ------------------------------------------------------------------ */
.welcome-main {
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.20);
}

.welcome-screens {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    color: #f6f6f6;
    background-color: rgba(0, 0, 0, 0.20);
    background-image: url("../img/background_sub.png");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.welcome-bg-fade,
.signin-fade--welcome {
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(0deg, #05141b 0%, rgba(9, 33, 41, 0) 100%),
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        radial-gradient(
            ellipse 98% 44% at 49% 51.4%,
            rgba(7, 29, 37, 0.65) 0%,
            rgba(7, 29, 37, 0) 72%
        ),
        linear-gradient(
            180deg,
            #09212a 0%,
            #09212a 29.75%,
            rgba(9, 33, 42, 0) 100%
        );
    background-size:
        100% 43.44%,
        100% 100%,
        100% 100%,
        100% 7.49%;
    background-position:
        bottom center,
        top center,
        top center,
        top center;
    background-repeat: no-repeat;
}

.welcome-bg-fade {
    position: absolute;
    inset: 0;
}

.signin-fade--welcome {
    position: fixed;
    inset: 0;
}

.welcome-track {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
    z-index: 2;
}

.welcome-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;

    padding: calc(84px + var(--safe-area-top)) calc(36px + var(--safe-area-right)) 62px calc(36px + var(--safe-area-left));
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow-y: auto;
}

.welcome-slide-media {
    position: relative;

    width: 100%;
    max-width: 321px;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;

    padding-bottom: 24px;
}

.welcome-slide-media::before {
    content: '';
    position: absolute;
    inset: -13px;
    pointer-events: none;
}

.welcome-video {

    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.welcome-slide-body {
    margin-top: auto;
    width: 100%;
    max-width: 321px;
    height: 270px;

    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.welcome-text-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.welcome-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: #f6f6f6;
    margin: 0;
    letter-spacing: 0;
}

.welcome-description {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #c7cacb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-description p {
    margin: 0;
}

.welcome-bullets {
    list-style: disc;
    padding-left: 24px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.welcome-next-wrapper {
    --gradient-border-radius: 56px;
    width: 100%;
    height: 50px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    background-color: rgba(246, 246, 246, 0.04);
}

.welcome-next-btn {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: transparent;
    border: 0;
    color: #f6f6f6 !important;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
}

.welcome-next-btn:hover,
.welcome-next-btn:focus {
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}

.welcome-cta {
    width: 100%;
    margin-top: 0;
}

/* --- Sign-up flow ------------------------------------------------------ */
.signup-page {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--safe-area-top));
    min-height: calc(100dvh - var(--safe-area-top));
    color: #f6f6f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;

    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

.signup-body {
    margin: 0;
    background-color: #09212a;
}

.signup-step {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 321px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    box-sizing: border-box;
}

.signup-step--hidden {
    display: none !important;
}

.signup-step--welcome {
    flex: 1;
    align-items: center;
    justify-content: center;
    max-width: 369px;
    margin-top: 0;
    padding: 24px 0 calc(24px + var(--safe-area-bottom));
    gap: 36px;
}

.signup-step--question {
    flex: 1;
    max-width: none;
    margin-top: 92px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 36px;
    gap: 0;
}

.signup-step--question .signup-question-title,
.signup-step--profile .signup-question-title {
    margin-top: 50px;
    margin-left: -7px;
    margin-right: -7px;
}

.signup-step--question .signup-question-title {
    margin-bottom: 50px;
}

.signup-step--question .signup-options {
    margin-top: auto;
    margin-bottom: auto;
}

.signup-step--question .signup-actions {
    margin-top: 0;
    padding-top: 50px;
}

/* Profile step: same top spacing as question step (progress bar at y=92) */
.signup-step--profile {
    flex: 1;
    max-width: none;
    margin-top: 92px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 36px;
    gap: 0;
}

.signup-step--profile .signup-question-title {
    margin-bottom: 30px;
}

.signup-step--profile .signup-form {
    flex: 1;
}

.signup-step--profile .signup-actions {
    padding-top: 18px;
}

.signup-logo-area {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.signup-logo-wrap {
    width: 80px;
    height: 80px;
}

.signup-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.signup-brand {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    margin: 0;
    background: linear-gradient(99.5deg, #caad5f 8.76%, #fae59c 39.81%, #caad5f 125%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.signup-welcome-card {
    position: relative;
    width: 100%;
    max-width: 369px;
    padding: 32px 24px 24px;
    border-radius: 56px;
    backdrop-filter: blur(4px);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%),
        linear-gradient(90deg, rgba(34, 211, 238, 0.02) 0%, rgba(34, 211, 238, 0.02) 100%);
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    box-sizing: border-box;
}

/* Soft white gradient border around the card (matches signin-card highlight edge) */
.signup-welcome-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 56px;
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.signup-welcome-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.signup-welcome-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: #f6f6f6;
    text-align: center;
    margin: 0;
}

.signup-welcome-description {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
    text-align: center;
    color: #c7cacb;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    opacity: 0.9;
}

.signup-welcome-description p {
    margin: 0;
}

.signup-welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: center;
}

.signup-welcome-actions .main-action-btn {
    margin-top: 0;
}

.signup-progress {
    position: relative;
    width: 200px;
    height: 4px;
    border-radius: 24px;
    margin: 0 auto;
}

.signup-progress-track {
    position: absolute;
    inset: 0;
    background: rgba(217, 217, 217, 0.2);
    border-radius: inherit;
}

.signup-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,
        #fffcf1 0%,
        #fff4ca 25%,
        #ffeba2 50%,
        #ffe37b 75%,
        #ffda53 100%);
    transition: width 0.3s ease;
}

.signup-question-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    text-align: center;
    color: #f6f6f6;
    margin: 0;
}

.signup-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.signup-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 50px;
    padding: 4px 4px 4px 12px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

/* Soft white gradient border around each option (matches Figma highlight edge) */
.signup-option::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.signup-option:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.signup-option-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.signup-option-indicator {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid #b3b3b3;
    transition: border-color 0.15s ease;
    position: relative;
}

.signup-page .signup-option-indicator {
    margin: 2px;
}

.signup-option-indicator--checkbox {
    border-radius: 3px;
}

.signup-option-indicator--radio {
    border-radius: 10px;
}

.signup-option-input:checked + .signup-option-indicator {
    border-color: #00e0ff;
}

.signup-option-input:checked + .signup-option-indicator--radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #00e0ff;
    transform: translate(-50%, -50%);
}

.signup-option-input:checked + .signup-option-indicator--checkbox {
    background-color: #00e0ff;
}

.signup-option-input:checked + .signup-option-indicator--checkbox::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 6px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: translate(-50%, -65%) rotate(-45deg);
}

.signup-option-text {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #c7cacb;
}

.signup-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: auto;
    padding-top: 24px;
    width: 100%;
}

.signup-actions .main-action-btn {
    margin-top: 0;
}

.signup-skip-link {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    color: #f6f6f6;
    text-decoration: underline;
    text-align: center;
    opacity: 0.8;
}

.signup-skip-link:hover {
    opacity: 1;
    color: #f6f6f6;
}

.b-signup-exit {
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 3;
    width: 24px;
    height: 24px;
    background-color: #d8dada;
    opacity: 0.7;
    -webkit-mask: url("../img/icon_close.svg") center / contain no-repeat;
    mask: url("../img/icon_close.svg") center / contain no-repeat;
    transition: opacity 0.2s ease;
}

.b-signup-exit:hover {
    opacity: 1;
}

.b-signup-other {
    width: 100%;
}

.b-signup-other.m-hidden {
    display: none;
}

.b-signup-other .e-input {
    display: block;
    height: auto;
    min-height: 96px;
    padding: 14px 16px;
    resize: none;
}

.b-signup-other .e-input:not(:placeholder-shown) {
    box-shadow:
        0 0 4px 0 rgba(245, 163, 48, 0.9),
        inset 0 0 4px 0 rgba(245, 163, 48, 0.9);
}

.signup-next-btn--disabled,
.signup-submit-btn.signup-next-btn--disabled,
.signup-verify-btn.signup-next-btn--disabled {
    background-image:
        linear-gradient(rgba(44, 44, 44, 0.6), rgba(44, 44, 44, 0.6)),
        url("../img/gold_button_bg_1.png");
    background-repeat: no-repeat, no-repeat;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none;
}

.signup-next-btn--disabled .main-action-text,
.signup-submit-btn.signup-next-btn--disabled .main-action-text,
.signup-verify-btn.signup-next-btn--disabled .main-action-text {
    color: #091720;
    opacity: 0.5;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.signup-field-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signup-field-label {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #c7cacb;
    margin: 0;
}

.signup-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.signup-field-hint {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #b0b5b7;
}

.signup-input {
    width: 100%;
    height: 56px;
    padding: 18px 16px;
    border: 1px solid #f6f6f6;
    border-radius: 12px;
    background-color: transparent;
    box-sizing: border-box;
    color: #f6f6f6;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    opacity: 0.9;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.signup-input::placeholder {
    color: #b0b5b7;
    font-weight: 400;
}

.signup-input:focus,
input.signup-input:not([type="date"]):not(:placeholder-shown),
.signup-input--date.signup-input--has-value,
.signup-input--picker:has(.signup-input-value:not(.signup-input-value--placeholder)) {
    box-shadow:
        0 0 4px 0 rgba(245, 163, 48, 0.9),
        inset 0 0 4px 0 rgba(245, 163, 48, 0.9);
}

/* Prevent Chrome/Safari yellow autofill — keep design colors when browser autofills */
.signup-input:-webkit-autofill,
.signup-input:-webkit-autofill:hover,
.signup-input:-webkit-autofill:focus,
.signup-input:-webkit-autofill:active {
    -webkit-text-fill-color: #f6f6f6;
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 9999s ease-in-out 0s;
    caret-color: #f6f6f6;
}

/* Picker field: a button styled as an input that opens the country bottom sheet */
.signup-input--picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-right: 16px;
    text-align: left;
    cursor: pointer;
}

.signup-input-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f6f6f6;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.signup-input-value--placeholder {
    color: #b0b5b7;
    font-weight: 400;
}

.signup-input-chevron {
    flex-shrink: 0;
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("../img/signup_chevron.svg");
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-90deg);
    pointer-events: none;
}

.signup-date-wrapper .signup-input-chevron {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%) rotate(-90deg);
}

/* Native date input — darken native picker, restyle calendar indicator */
.signup-input--date {
    position: relative;
    color-scheme: dark;
    padding-right: 48px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23b0b5b7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 6 15 12 9 18"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    min-height: 56px;
}

.signup-date-wrapper:has(.signup-input-chevron) .signup-input--date {
    background-image: none;
}

.signup-input--date::-webkit-date-and-time-value {
    text-align: left;
    line-height: 20px;
    min-height: 20px;
    margin: 0;
    padding: 0;
}

.signup-input--date::-webkit-datetime-edit {
    padding: 0;
    line-height: 20px;
}

.signup-input--date::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.signup-date-wrapper {
    position: relative;
    width: 100%;
}

.signup-date-placeholder {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b5b7;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    pointer-events: none;
}

.signup-input--date.signup-input--has-value ~ .signup-date-placeholder {
    display: none;
}

.signup-input--date:not(.signup-input--has-value)::-webkit-datetime-edit,
.signup-input--date:not(.signup-input--has-value)::-webkit-datetime-edit-fields-wrapper,
.signup-input--date:not(.signup-input--has-value)::-webkit-datetime-edit-text,
.signup-input--date:not(.signup-input--has-value)::-webkit-datetime-edit-year-field,
.signup-input--date:not(.signup-input--has-value)::-webkit-datetime-edit-month-field,
.signup-input--date:not(.signup-input--has-value)::-webkit-datetime-edit-day-field {
    color: transparent;
}

.signup-input--date:not(.signup-input--has-value) {
    color: transparent;
}

.signup-input--date.signup-input--has-value {
    color: #f6f6f6;
}

.signup-field--radio-group .signup-radio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 6px;
}

.signup-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.signup-radio-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.signup-radio-input:checked + .signup-option-indicator--radio {
    border-color: #00e0ff;
}

.signup-radio-input:checked + .signup-option-indicator--radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #00e0ff;
    transform: translate(-50%, -50%);
}

.signup-radio-text {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #f6f6f6;
}

.signup-step--profile .signup-radio-text {
    font-size: 16px;
    line-height: 20px;
}

.signup-error {
    color: #ff7a7a;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    margin: 0;
}

.signup-hidden {
    display: none !important;
}

.signup-step--otp {
    align-items: center;
    max-width: 369px;
    margin-top: 0;
    padding: 0;
    gap: 50px;
}

/* OTP variant pulls the logo down to roughly y=162 (signin OTP parity) */
.signup-logo-area--otp {
    margin-top: calc(50vh - 260px);
}

/* OTP card uses the wider header→fields gap (24px) like signin OTP */
.signup-otp-card {
    gap: 24px;
}

/* "Use another email" sits inside subtitle group, inherits subtitle color */
.signup-otp-back {
    color: #c7cacb;
}

.signup-otp-back:hover {
    color: #f6f6f6;
}

/* Reset main-action-btn default margin so it sits flush at the top of code actions */
.signin-code-actions .main-action-btn {
    margin-top: 0;
}

.signin-signup-prompt {
    position: relative;
    z-index: 2;
    margin: auto 0 40px;
    text-align: center;
    color: #c7cacb;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

/* "Don't have an account?" prompt only belongs to the email step */
#signin-step-code:not(.signin-step--hidden) ~ .signin-signup-prompt {
    display: none;
}

.signin-signup-link {
    margin-left: 4px;
}

@media (min-width: 768px) {
    .signup-page {
        max-width: 393px;
        margin: 0 auto;
    }
}

@media (max-height: 720px) {
    .signup-step--question {
        margin-top: 32px;
        padding-bottom: 16px;
    }
    .signup-step--question .signup-question-title {
        margin-top: 16px;
        margin-bottom: 12px;
    }
    .signup-step--profile {
        margin-top: 32px;
        padding-bottom: 16px;
    }
    .signup-step--profile .signup-question-title {
        margin-top: 16px;
        margin-bottom: 16px;
    }
    .signup-options {
        gap: 8px;
    }
    .signup-option {
        height: 44px;
    }
    .signup-actions,
    .signup-step--profile .signup-actions {
        gap: 12px;
        padding-top: 12px;
    }
    .signup-step--question .signup-actions {
        padding-top: 12px;
    }
    .signup-step--welcome {
        gap: 24px;
    }
    .signin-step {
        margin-top: 32px;
    }
    .signin-page:has(#signin-step-code:not(.signin-step--hidden))::before {
        flex-basis: 0;
    }
    .signin-footer-link {
        padding-bottom: 0;
    }
}

@media (min-width: 768px) {
    .welcome-screens {
        max-width: 393px;
        margin: 0 auto;
    }
}

.b-library {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    color: #f6f6f6;
    font-family: 'Manrope', sans-serif;
    padding-bottom: 120px;
}

/* Library page only: let the section own the leftover viewport height so the
   empty-state can sit in the vertical centre of the feed area. */
.app-container:has(.b-library) > .app-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.b-filter-tabs {
    --gradient-border-radius: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin: 12px 0;
    padding: 6px;
    height: 50px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.b-filter-tabs .e-tab {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 0;
    background: transparent;
    color: #f6f6f6;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    border-radius: 9999px;
    cursor: pointer;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b-filter-tabs .e-tab.m-active {
    color: #091720;
    border: 1px solid rgba(246, 246, 246, 0.7);
    overflow: hidden;
    isolation: isolate;
    background-color: #c9a035;
    background-image: linear-gradient(
        123deg,
        #ffc08c 0%,
        #fff4a9 44.66%,
        #ffa458 96.22%
    );
    box-shadow:
        4px 0 6px rgba(255, 220, 95, 0.3),
        0 4px 6px rgba(255, 220, 95, 0.3);
}

.b-filter-tabs .e-tab.m-active::before,
.b-filter-tabs .e-tab.m-active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

.b-filter-tabs .e-tab.m-active::before {
    background-image: url("../img/gold_texture.png");
    background-repeat: no-repeat;
    background-size: 146.94% 365.89%;
    background-position: 0% 81%;
}

.b-filter-tabs .e-tab.m-active::after {
    background-image: radial-gradient(
        ellipse closest-side at center,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 243, 202, 1) 25%,
        rgba(255, 232, 149, 1) 50%,
        rgba(255, 220, 96, 1) 75%,
        rgba(255, 215, 69, 1) 87.5%,
        rgba(255, 209, 43, 1) 100%
    );
}

.b-filter-tabs.m-small {
    --gradient-border-radius: 9999px;
    width: fit-content;
    max-width: 100%;
    height: 34px;
    gap: 3px;
    padding: 3px;
    margin: 0 auto 16px;
}

.b-filter-tabs.m-small .e-tab {
    flex: 0 0 auto;
    min-width: 64px;
    height: 28px;
    padding: 0 16px;
    font-size: 13px;
    line-height: 16px;
}

/* Payment currency choice below the plans: a label over the EUR / UAH toggle. */
.subscription-currency-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
}

.subscription-currency-choice .e-currency-choice-label {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #d8dada;
    text-align: center;
    margin: 0;
}

.subscription-currency-choice .b-filter-tabs.m-small {
    margin-bottom: 4px;
}

/* A currency the selected plan cannot be paid in. */
.subscription-currency-choice .subscription-currency-option:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Web-only currency choice: hidden inside the native iOS/Android app. */
.subscription-currency-choice.m-hidden {
    display: none;
}

/* Plans / type cards that cannot be paid on the web are hidden. */
.subscription-plan-option.m-hidden,
.subscription-type-card.m-hidden {
    display: none;
}

.b-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 12px 0;
}

.b-filter-chips .e-chip {
    flex: 0 0 auto;
    height: 30px;
    padding: 0 16px;
    border: 0;
    border-radius: 24px;
    background: rgba(246, 246, 246, 0.2);
    color: #f6f6f6;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.b-filter-chips .e-chip.m-active {
    background: #f6f6f6;
    color: #091720;
}

.b-filter-chips .e-chip.m-with-icon {
    gap: 6px;
}

.b-filter-chips .e-chip-plus-icon {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    display: inline-block;
    background-color: #d8dada;
    -webkit-mask: url("../img/icon_chip_plus.svg") center / contain no-repeat;
    mask: url("../img/icon_chip_plus.svg") center / contain no-repeat;
}

.b-filter-chips .e-chip-plus-icon::before {
    content: none;
}

.b-favorites-toggle {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 12px 0;
}

.b-favorites-toggle .e-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 100px;
    background: #b4b3b3;
    border: 0;
    cursor: pointer;
    padding: 0 2px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.b-favorites-toggle .e-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease;
}

.b-favorites-toggle .e-toggle.m-active {
    background: #22d3ee;
}

.b-favorites-toggle .e-toggle.m-active .e-knob {
    transform: translateX(20px);
}

.b-favorites-toggle .e-label {
    color: #f6f6f6;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
}

.b-library .e-feed-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    padding: 24px 0 0;
}

.b-library .e-feed-wrapper > * {
    transition: opacity 0.2s ease;
}

.b-library.m-loading .e-feed-wrapper > * {
    opacity: 0.5;
}

.b-loader {
    position: relative;
    display: inline-block;
    flex: none;
    width: 58px;
    height: 58px;
}

.b-loader::before {
    content: '';
    position: absolute;
    inset: 9px;
    background: url("../img/logo.png") center / contain no-repeat;
}

.b-loader::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(206, 154, 59, 0) 0deg, rgba(206, 154, 59, 0) 200deg, #ce9a3b 300deg, #ffdf7b 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
    filter: drop-shadow(0 0 5px rgba(255, 223, 123, 0.5));
    animation: b-loader-orbit 1.1s linear infinite;
}

.b-loader.m-small {
    width: 24px;
    height: 24px;
}

.b-loader.m-small::before {
    inset: 4px;
}

@keyframes b-loader-orbit {
    to {
        transform: rotate(360deg);
    }
}

.b-page-loader {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 17, 29, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.b-page-loader.m-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.b-library .e-feed-loader {
    position: relative;
    z-index: 2;
    height: 0;
}

.b-library .e-feed-loader .b-loader {
    position: absolute;
    top: 24px;
    left: 50%;
    display: none;
    margin-left: -29px;
}

.b-library .e-title-loader {
    display: none;
    margin-left: 8px;
    vertical-align: -6px;
}

.b-library.m-loading .e-feed-loader .b-loader,
.b-library.m-loading .e-title-loader {
    display: inline-block;
}

.b-library-feed {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 20px;
}

/* Vertically centre the empty-state copy; card lists keep their top alignment. */
.b-library-feed:has(> .e-empty) {
    justify-content: center;
}

.b-library-feed .e-empty {
    margin: 0;
    color: #d8dada;
    text-align: center;
    padding: 0 24px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    line-height: 18px;
}

.b-library-feed .scroll-container {
    margin-bottom: 0;
    padding-bottom: 0;
}

.b-library-feed .e-loader {
    text-align: center;
    padding: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.b-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #032738;
    border-radius: 24px;
    overflow: hidden;
    color: #f6f6f6;
    text-decoration: none;
}

.b-card.m-practice {
    background-image:
        linear-gradient(90deg, rgba(34, 211, 238, 0.2) 0%, rgba(34, 211, 238, 0.2) 100%),
        linear-gradient(90deg, #032738 0%, #032738 100%);
}

.b-card .e-cover {
    position: relative;
    width: 100%;
    height: 173px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    overflow: hidden;
}

.b-card .e-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.b-card .e-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-card .e-cover-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(3, 39, 56, 0) 69.88%,
        rgba(3, 39, 56, 0.5) 100%
    );
    pointer-events: none;
}

.b-card .e-cover-fade.m-practice {
    background: linear-gradient(
        180deg,
        rgba(8, 22, 31, 0.7) 0%,
        rgba(8, 22, 31, 0) 21.05%
    ),
    linear-gradient(
        180deg,
        rgba(8, 22, 31, 0) 69.88%,
        rgba(8, 22, 31, 0.7) 100%
    );
}

.b-card .e-play-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.b-card .e-duration {
    position: absolute;
    left: 12px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d8dada;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    z-index: 1;
}

.b-card .e-duration-icon,
.b-card .e-likes .bi,
.b-card .e-action .bi {
    display: inline-block;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.b-card .e-duration-icon::before,
.b-card .e-likes .bi::before,
.b-card .e-action .bi::before {
    content: none;
}

.b-card .e-duration-icon.bi-file-text {
    width: 16px;
    height: 16px;
    -webkit-mask-image: url("../img/icon_card_article.svg");
    mask-image: url("../img/icon_card_article.svg");
    -webkit-mask-size: 12.5px 15px;
    mask-size: 12.5px 15px;
}

.b-card .e-duration-icon.bi-headphones {
    width: 14px;
    height: 14px;
    -webkit-mask-image: url("../img/icon_card_headphones.svg");
    mask-image: url("../img/icon_card_headphones.svg");
}

.b-card .e-duration-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    opacity: 0.8;
}

.b-card .e-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

.b-card .e-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #f6f6f6;
}

.b-card .e-title {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #f6f6f6;
}

.b-card .e-description {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #f6f6f6;
}

.b-card .e-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.b-card .e-date {
    margin: 0;
    color: #f6f6f6;
    opacity: 0.9;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 14px;
}

.b-card .e-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 12px;
}

/* Read-only likes counter on list cards; liking happens on detail pages */
.b-card .e-likes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f6f6f6;
    opacity: 0.9;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
}

.b-card .e-likes .bi {
    width: 18px;
    height: 18px;
    -webkit-mask-image: url("../img/icon_card_heart.svg");
    mask-image: url("../img/icon_card_heart.svg");
    -webkit-mask-size: 18px 16.8px;
    mask-size: 18px 16.8px;
}

.b-card .e-likes .bi-heart-fill {
    -webkit-mask-image: url("../img/icon_card_heart_fill.svg");
    mask-image: url("../img/icon_card_heart_fill.svg");
}

.b-card .e-likes.m-active .bi-heart-fill {
    color: #e64646;
}

.b-card .e-likes-count {
    font-variant-numeric: tabular-nums;
}

.b-card .e-action {
    position: relative;
    z-index: 2;
    background: transparent;
    border: 0;
    padding: 0;
    color: #f6f6f6;
    opacity: 0.8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.b-card .e-action .bi-share {
    width: 18px;
    height: 18px;
    -webkit-mask-image: url("../img/icon_card_share.svg");
    mask-image: url("../img/icon_card_share.svg");
}

.b-card .e-action .bi-bookmark,
.b-card .e-action .bi-bookmark-fill {
    width: 20px;
    height: 20px;
    -webkit-mask-image: url("../img/icon_card_bookmark.svg");
    mask-image: url("../img/icon_card_bookmark.svg");
    -webkit-mask-size: auto 19px;
    mask-size: auto 19px;
}

.b-card .e-action .bi-bookmark-fill {
    -webkit-mask-image: url("../img/icon_card_bookmark_fill.svg");
    mask-image: url("../img/icon_card_bookmark_fill.svg");
}

.b-card .e-action:hover {
    opacity: 1;
}

.b-card .e-action.m-save.m-active {
    color: #f6f6f6;
    opacity: 1;
}

.library-promo-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.library-promo-heading {
    margin: 0;
    padding-left: 8px;
    color: #f6f6f6;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
}

.library-promo-banner {
    position: relative;
    display: flex;
    align-items: center;
    background: #fceafd;
    border-radius: 24px;
    overflow: hidden;
    padding: 12px;
    color: #091720;
}

.library-promo-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 65%;
}

.library-promo-title {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #091720;
}

.library-promo-text {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #515151;
}

.library-promo-button {
    align-self: flex-start;
    background: transparent;
    border: 0;
    border-radius: 56px;
    padding: 4px 12px;
    height: 30px;
    color: #112831;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 14px;
    cursor: pointer;
}

.library-promo-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 35%;
}

.library-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-library .e-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 22, 31, 0.6);
    z-index: 1040;
    display: none;
}

.b-library .e-modal-backdrop.m-open {
    display: block;
}

body.m-modal-open {
    overflow: hidden;
    touch-action: none;
}

/* Reusable bottom sheet — templates/components/bottom_sheet.phtml */
.b-bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 1050;
    visibility: hidden;
    pointer-events: none;
}

.b-bottom-sheet.m-open {
    visibility: visible;
    pointer-events: auto;
}

.b-bottom-sheet .e-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 22, 31, 0.64) 0%,
        rgba(8, 22, 31, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.b-bottom-sheet.m-open .e-backdrop {
    opacity: 1;
}

.b-bottom-sheet .e-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-width: 448px;
    margin: 0 auto;
    padding-bottom: calc(12px + var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)));
    background-color: #09161e;
    background-image: linear-gradient(
        180deg,
        rgba(33, 61, 86, 0.2) 31.18%,
        rgba(8, 26, 35, 0.2) 100%
    );
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -4px 4px rgba(0, 0, 0, 0.25);
    color: #f6f6f6;
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

.b-bottom-sheet.m-open .e-panel {
    transform: translateY(0);
}

.b-bottom-sheet .e-handle {
    flex-shrink: 0;
    width: 100%;
    height: 20px;
    padding-top: 8px;
    cursor: grab;
    touch-action: none;
}

.b-bottom-sheet .e-handle::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    margin: 0 auto;
    background: rgba(127, 127, 127, 0.4);
    border-radius: 2.5px;
}

.b-bottom-sheet .e-handle:active {
    cursor: grabbing;
}

.b-bottom-sheet .e-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(246, 246, 246, 0.2);
    cursor: grab;
    touch-action: none;
}

.b-bottom-sheet .e-head:active {
    cursor: grabbing;
}

.b-bottom-sheet .e-title {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #f6f6f6;
}

.b-bottom-sheet .e-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 1000px;
    background: transparent;
}

.b-bottom-sheet .e-close img {
    display: block;
    width: 11px;
    height: 11px;
}

.b-bottom-sheet .e-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 20px;
    opacity: 0.8;
    color: #c7cacb;
    font-family: 'Manrope', sans-serif;
}

.b-bottom-sheet .e-body .e-text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
}

.b-bottom-sheet .e-body .e-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    opacity: 0.8;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
}

.b-bottom-sheet .e-actions {
    display: flex;
    justify-content: center;
    padding: 12px 20px;
}

.b-bottom-sheet .e-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 8px 12px;
    border: 0;
    border-radius: 56px;
    background: rgba(246, 246, 246, 0);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #f6f6f6;
    white-space: nowrap;
}

.b-bottom-sheet .e-action-btn:disabled {
    opacity: 0.6;
}

.b-bottom-sheet.m-no-code .e-actions {
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.b-bottom-sheet.m-no-code .e-action-link {
    padding: 12px 10px;
    border: 0;
    background: transparent;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    color: #f6f6f6;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

/* Country picker sheet (onboarding profile step) — near full-height list with search */
.b-bottom-sheet.m-country .e-panel {
    top: 89px;
    padding-bottom: 0;
}

.b-bottom-sheet.m-country .e-handle {
    height: 13px;
}

.b-bottom-sheet.m-country .e-body {
    flex: 1;
    min-height: 0;
    gap: 20px;
    padding: 19px 30px 0;
    opacity: 1;
    color: #f6f6f6;
    overflow: hidden;
}

.b-bottom-sheet.m-country .e-search {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #f6f6f6;
    border-radius: 12px;
    box-sizing: border-box;
    opacity: 0.9;
}

.b-bottom-sheet.m-country .e-search-icon {
    flex-shrink: 0;
    display: block;
    width: 18px;
    height: 18px;
}

.b-bottom-sheet.m-country .e-search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    outline: none;
    color: #f6f6f6;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    -webkit-appearance: none;
    appearance: none;
}

.b-bottom-sheet.m-country .e-search-input::-webkit-search-decoration,
.b-bottom-sheet.m-country .e-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.b-bottom-sheet.m-country .e-country-list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0 0 calc(20px + var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)));
    list-style: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.b-bottom-sheet.m-country .e-country-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: #f6f6f6;
}

.b-bottom-sheet.m-country .e-country-item.m-selected {
    color: #00e0ff;
}

.b-bottom-sheet.m-country .e-country-flag {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 20px;
    line-height: 1;
}

.b-phone-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.b-phone-field .e-control {
    display: flex;
    align-items: center;
    width: 100%;
    height: 56px;
    border: 1px solid #f6f6f6;
    border-radius: 12px;
    box-sizing: border-box;
    opacity: 0.9;
}

.b-phone-field .e-control:focus-within,
.b-phone-field:has(.e-number:not(:placeholder-shown)) .e-control {
    box-shadow:
        0 0 4px 0 rgba(245, 163, 48, 0.9),
        inset 0 0 4px 0 rgba(245, 163, 48, 0.9);
}

.b-phone-field.m-invalid .e-control {
    border-color: #ff6b6b;
}

.b-phone-field .e-code {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 10px 0 16px;
    border: 0;
    border-right: 1px solid rgba(246, 246, 246, 0.4);
    background: transparent;
    color: #f6f6f6;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
}

.b-phone-field .e-code.m-empty .e-code-dial {
    color: #b0b5b7;
    font-weight: 400;
}

.b-phone-field .e-code-flag {
    font-size: 20px;
    line-height: 1;
}

.b-phone-field .e-code-flag:empty {
    display: none;
}

.b-phone-field .e-code-chevron {
    width: 0;
    height: 0;
    margin-left: 2px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #f6f6f6;
}

.b-phone-field .e-number {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 16px;
    border: 0;
    background: transparent;
    outline: none;
    color: #f6f6f6;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    -webkit-appearance: none;
    appearance: none;
}

.b-phone-field .e-number::placeholder {
    color: #b0b5b7;
    font-weight: 400;
}

.b-phone-field .e-error {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    line-height: 14px;
    color: #ff6b6b;
}

.b-phone-field .e-error.m-hidden {
    display: none;
}

.b-bottom-sheet.m-country .e-country-dial {
    flex-shrink: 0;
    min-width: 52px;
    font-weight: 600;
}

.b-bottom-sheet.m-country .e-country-name {
    color: #b0b5b7;
}

.b-bottom-sheet.m-country .e-country-item.m-selected .e-country-name {
    color: inherit;
}

.b-library-modal {
    --gradient-border-radius: 24px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 90px;
    display: flex;
    flex-direction: column;
    background-color: #09161e;
    background-image: linear-gradient(
        180deg,
        rgba(33, 61, 86, 0.2) 31.18%,
        rgba(8, 26, 35, 0.2) 100%
    );
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 0;
    z-index: 1050;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.25s ease;
    color: #f6f6f6;
    box-shadow: 0 -4px 4px rgba(0, 0, 0, 0.25);
}

.b-library .e-modal-backdrop.m-open + .b-library-modal,
.b-library-modal.m-open {
    transform: translateY(0);
}

.b-library-modal .e-handle {
    flex-shrink: 0;
    position: relative;
    width: 100%;
    height: 20px;
    padding-top: 8px;
    cursor: grab;
    touch-action: none;
}

.b-library-modal .e-handle::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    margin: 0 auto;
    background: rgba(127, 127, 127, 0.4);
    border-radius: 2.5px;
}

.b-library-modal .e-handle:active {
    cursor: grabbing;
}

.b-library-modal .e-header[data-library-modal-header] {
    touch-action: none;
    cursor: grab;
}

.b-library-modal .e-header[data-library-modal-header]:active {
    cursor: grabbing;
}

.b-library-modal .e-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    margin-top: 5px;
    border-bottom: 1px solid rgba(246, 246, 246, 0.2);
}

.b-library-modal .e-title {
    margin: 0;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
}

.b-library-modal .e-close {
    width: 30px;
    height: 30px;
    border-radius: 1000px;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.b-library-modal .e-close .bi {
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
}

.b-library-modal .e-clear {
    --gradient-border-radius: 56px;
    flex-shrink: 0;
    display: block;
    width: max-content;
    margin: 24px auto 0;
    padding: 8px 12px;
    height: 30px;
    background: rgba(34, 211, 238, 0.01);
    border: 0;
    border-radius: 56px;
    color: #f6f6f6;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.b-library-modal .e-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    list-style: none;
    margin: 24px 0 0;
    padding: 0 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.b-library-modal .e-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    cursor: pointer;
    color: #f6f6f6;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    background: transparent;
    border-radius: 0;
}

.b-library-modal .e-item-check {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f6f6f6;
    flex-shrink: 0;
}

.b-library-modal .e-item-check .bi {
    visibility: hidden;
    font-size: 18px;
    line-height: 1;
}

.b-library-modal .e-item.m-selected .e-item-check .bi {
    visibility: visible;
}

/* ==========================================================================
   Article & Practice detail pages (IP-126)
   ========================================================================== */
.b-detail {
    display: block;
}

.b-detail-topbar {
    display: flex;
    align-items: center;
    padding: 16px 12px 12px;
}

.e-detail-back {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

.e-detail-back .e-detail-back-icon {
    display: block;
    width: 24px;
    height: 24px;
}

.b-detail-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 393 / 210;
    overflow: hidden;
}

.b-detail-cover .e-detail-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-detail-cover .e-detail-cover-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(4, 17, 29, 0.35) 0%,
        rgba(4, 17, 29, 0) 30%,
        rgba(4, 17, 29, 0) 60%,
        rgba(4, 17, 29, 0.85) 100%
    );
    pointer-events: none;
}

.b-detail-cover .e-detail-cover-fade.m-practice {
    background: linear-gradient(
        180deg,
        rgba(8, 22, 31, 0.55) 0%,
        rgba(8, 22, 31, 0) 35%
    ),
    linear-gradient(
        180deg,
        rgba(8, 22, 31, 0) 55%,
        rgba(8, 22, 31, 0.85) 100%
    );
}

/* Top + bottom shadows that keep the in-cover controls legible while playing. */
.b-detail-cover .e-detail-cover-shadow {
    position: absolute;
    left: 0;
    right: 0;
    height: 48px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.b-detail-cover .e-detail-cover-shadow.m-top {
    top: 0;
    background: linear-gradient(180deg, #08161f 0%, rgba(8, 22, 31, 0) 100%);
}

.b-detail-cover .e-detail-cover-shadow.m-bottom {
    bottom: 0;
    background: linear-gradient(180deg, rgba(8, 22, 31, 0) 0%, #08161f 100%);
}

.b-detail-cover.is-playing .e-detail-cover-shadow {
    opacity: 1;
}

.b-detail-cover .e-detail-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(246, 246, 246, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: opacity 0.25s ease;
}

.b-detail-cover.is-playing.m-controls-hidden .e-detail-play {
    opacity: 0;
    pointer-events: none;
}

.b-detail-cover .e-detail-play::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.b-detail-cover .e-detail-pause-icon {
    display: none;
}

.b-detail-cover.is-playing .e-detail-play-icon {
    display: none;
}

.b-detail-cover.is-playing .e-detail-pause-icon {
    display: block;
}

.b-detail-cover .e-detail-fullscreen {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.b-detail-cover.is-playing .e-detail-fullscreen {
    display: inline-flex;
}

.b-detail-cover .e-detail-duration {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d8dada;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    z-index: 1;
}

.b-detail-cover .e-detail-progress {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
}

.b-detail-cover.is-playing .e-detail-progress {
    display: flex;
}

.b-detail-cover .e-detail-times {
    display: flex;
    justify-content: space-between;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    color: #f6f6f6;
}

.b-detail-cover .e-detail-track {
    position: relative;
    height: 6px;
    border-radius: 56px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    touch-action: none;
}

.b-detail-cover .e-detail-track::before {
    content: '';
    position: absolute;
    top: -12px;
    right: 0;
    bottom: -12px;
    left: 0;
}

.b-detail-cover .e-detail-track-fill {
    width: 0;
    min-width: 7px;
    height: 6px;
    border-radius: 56px;
    background: url("../img/tempo-progress-fill.svg") center / 100% 100% no-repeat;
}

.b-detail-cover .e-detail-media {
    opacity: 0;
    pointer-events: none;
}

.b-detail-cover .e-detail-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #04111d;
    z-index: 2;
}

.b-detail-cover .e-detail-audio {
    position: absolute;
    width: 1px;
    height: 1px;
}

.b-detail-cover.is-playing .e-detail-video {
    opacity: 1;
    pointer-events: auto;
}

.b-detail-cover.m-video.is-playing .e-detail-cover-img,
.b-detail-cover.m-video.is-playing .e-detail-cover-fade,
.b-detail-cover.m-video.is-playing .e-detail-duration {
    opacity: 0;
}

.b-detail-cover.is-playing .e-detail-duration {
    display: none;
}

.b-detail-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    padding-bottom: calc(var(--bottom-nav-clearance) + 24px);
}

.b-detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.b-detail-chips .e-detail-chip {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 8px;
    background: #f6f6f6;
    color: #545659;
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    line-height: 20px;
    text-decoration: none;
}

.b-detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.b-detail-actions .e-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.b-detail-actions .e-likes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: #f6f6f6;
    opacity: 0.9;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
}

.b-detail-actions .e-likes .bi {
    font-size: 18px;
}

.b-detail-actions .e-likes.m-active .bi-heart-fill {
    color: #ef4444;
}

.b-detail-actions .e-likes-count {
    font-variant-numeric: tabular-nums;
}

.b-detail-actions .e-action {
    background: transparent;
    border: 0;
    padding: 0;
    color: #f6f6f6;
    opacity: 0.8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
}

.b-detail-actions .e-action.m-save.m-active {
    opacity: 1;
}

.b-detail-title {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
    color: #f6f6f6;
}

.b-detail-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.b-detail-content {
    color: #f6f6f6;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 22px;
}

/* 12px vertical rhythm inside editor content (overrides the bootstrap 1rem) */
.b-detail-content p {
    margin: 0 0 12px;
}

.b-detail-content > :last-child {
    margin-bottom: 0;
}

/* Editor-inserted inline images only (component images carry their own class). */
.b-detail-content img:not([class]) {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.b-detail-content .scroll-container {
    margin-bottom: 0;
}

.b-detail-content .offer-banner {
    height: 120px;
    min-height: 120px;
}

.b-detail-content iframe,
.b-detail-content video,
.b-detail-content audio {
    max-width: 100%;
    border-radius: 16px;
}

/* Editor-inserted video fills the content column regardless of the
   width/height attributes the editor writes on the tag */
.b-detail-content video {
    display: block;
    width: 100%;
    height: auto;
}

.e-detail-section-title {
    margin: 0 0 12px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #f6f6f6;
}

.b-detail-duration-block .e-detail-duration-text {
    margin: 0;
    color: #f6f6f6;
    opacity: 0.9;
    font-family: 'Manrope', sans-serif;
    font-style: italic;
    font-size: 13px;
    line-height: 20px;
}

.b-detail-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.b-detail-author .e-detail-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.b-detail-author .e-detail-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--secondary-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.b-detail-author .e-detail-author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-detail-author .e-detail-author-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    color: #f6f6f6;
    opacity: 0.9;
}

.b-detail-author .e-detail-author-date {
    color: #f6f6f6;
    opacity: 0.9;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    line-height: 14px;
}

.b-detail-locked {
    padding: 24px;
    border-radius: 24px;
    background: rgba(206, 154, 59, 0.12);
    border: 1px solid rgba(255, 223, 123, 0.35);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.b-detail-locked .e-detail-locked-title {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #f6f6f6;
}

.b-detail-locked .e-detail-locked-text {
    margin: 0;
    color: var(--text-muted);
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    line-height: 20px;
}

.b-detail-locked .e-detail-locked-cta {
    color: #112831;
    background: var(--gold-gradient);
    border: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 20px;
}

.b-detail-disclaimer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
}

.b-detail-warning-wrapper {
    --gradient-border-radius: 54px;
    width: 100%;
}

.b-detail-warning {
    padding: 24px;
    border-radius: 54px;
    background: rgba(210, 33, 33, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.b-detail-warning .e-detail-warning-title {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #f6f6f6;
    opacity: 0.9;
    text-align: center;
}

.b-detail-warning .e-detail-warning-text {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #f6f6f6;
    opacity: 0.9;
}

.b-detail-nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.b-detail-nav .e-detail-nav-link {
    flex: 1 1 0;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
}

.b-detail-nav .e-detail-nav-link.m-next {
    align-items: flex-end;
    text-align: right;
}

.b-detail-nav .e-detail-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f6f6f6;
    opacity: 0.9;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    line-height: 14px;
    white-space: nowrap;
}

.b-detail-nav .e-detail-nav-label .bi {
    font-size: 18px;
}

.b-detail-nav .e-detail-nav-title {
    color: #f6f6f6;
    opacity: 0.9;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    line-height: 14px;
    text-decoration: underline;
}

/* --- Shortcode blocks ---------------------------------------------------- */
.b-quote {
    position: relative;
    margin: 0;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.b-quote .e-quote-mark {
    display: block;
    width: 16px;
    height: 13px;
    flex-shrink: 0;
}

.b-quote .e-quote-mark .e-quote-mark-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.b-quote .e-quote-mark.m-open {
    transform: rotate(180deg);
}

.b-quote .e-quote-mark.m-close {
    align-self: flex-end;
}

.b-quote .e-quote-body {
    margin: 0;
    padding-left: 31px;
    color: #f6f6f6;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    text-align: justify;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.b-quote .e-quote-author {
    margin: 0;
    color: #b4b3b3;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    line-height: 14px;
    text-align: right;
}

.b-text-block {
    position: relative;
    isolation: isolate;
    padding: 24px;
    border-radius: 56px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.b-text-block::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: var(--gradient-border);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.b-text-block .e-text-block-body {
    margin: 0;
    color: #f6f6f6;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

/* Tempo rhythm player */
.b-player {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #09212a;
    color: #f6f6f6;
}

.b-player .e-player-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.b-player .e-player-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-player .e-player-bg-fade {
    position: absolute;
    left: 0;
    right: 0;
}

.b-player .e-player-bg-fade.m-top {
    top: 0;
    height: 150px;
    background: linear-gradient(180deg, #05141b 0%, rgba(5, 20, 27, 0) 100%);
}

.b-player .e-player-bg-fade.m-bottom {
    bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(5, 20, 27, 0) 0%, rgba(5, 20, 27, 0.85) 70%, #05141b 100%);
}

.b-player-top {
    position: relative;
    z-index: 2;
    padding: calc(var(--safe-area-top) + 18px) 24px 0;
}

.b-player-status {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.b-player .e-player-status-label {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 18px;
    color: #f6f6f6;
}

.b-player .e-player-status-date {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    color: #d8dada;
    opacity: 0.8;
}

.b-player-access-notice {
    --gradient-border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 12px 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.55);
    text-align: center;
}

.b-player-access-notice[hidden] {
    display: none;
}

.b-player .e-player-access-notice-title {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    color: #f6f6f6;
}

.b-player .e-player-access-notice-text {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 18px;
    color: #d8dada;
}

.b-player .e-player-access-cta-wrapper {
    align-self: center;
    margin-top: 4px;
}

.b-player .e-player-access-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 80px;
    padding: 8px 12px;
    border: 0;
    border-radius: 56px;
    background: rgba(34, 211, 238, 0.01);
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #f6f6f6;
}

.b-player-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.b-player-nav-side {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.b-player .e-player-access-timer {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: 0.2px;
    color: #d8dada;
    min-width: 0;
}

.b-player .e-player-access-timer.m-urgent {
    color: #ffb4a2;
}

.b-player .e-player-back,
.b-player .e-player-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.b-player .e-player-saved-icon {
    display: none;
}

.b-player .e-player-download {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.b-player.is-saved .e-player-download {
    cursor: default;
}

.b-player.is-saved .e-player-download-icon {
    display: none;
}

.b-player.is-saved .e-player-saved-icon {
    display: block;
}

.b-player.is-downloading .e-player-download {
    opacity: 0.5;
    pointer-events: none;
}

/* Offline mode: hide like/share but keep their boxes so the
   play/loop controls stay in place (grid columns unchanged) */
.offline-mode .b-player .e-player-like,
.offline-mode .b-player .e-player-share {
    visibility: hidden;
    pointer-events: none;
}

.b-player-bottom {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 0 12px calc(var(--safe-area-bottom) + 26px);
}

.b-player-heading {
    padding: 0 19px;
    margin-bottom: 12px;
    text-align: left;
}

.b-player .e-player-overline {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-transform: uppercase;
    color: #b0b5b7;
}

.b-player .e-player-title {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: #f6f6f6;
}

.b-player-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 24px 24px;
}

.b-player-times {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    color: #b4b3b3;
    opacity: 0.8;
}

.b-player .e-player-track {
    position: relative;
    height: 6px;
    border-radius: 56px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    touch-action: none;
}

.b-player .e-player-track::before {
    content: '';
    position: absolute;
    top: -12px;
    right: 0;
    bottom: -12px;
    left: 0;
}

.b-player .e-player-track-fill {
    width: 0;
    min-width: 7px;
    height: 6px;
    border-radius: 56px;
    background: url("../img/tempo-progress-fill.svg") center / 100% 100% no-repeat;
}

.b-player-controls {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 4px;
}

.b-player .e-player-like {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.b-player .e-player-like-icon.m-default {
    opacity: 0.8;
}

.b-player .e-player-like-icon.m-active {
    display: none;
}

.b-player .e-player-like.is-active .e-player-like-icon.m-default {
    display: none;
}

.b-player .e-player-like.is-active .e-player-like-icon.m-active {
    display: block;
}

.b-player .e-player-like-count {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    color: #b3b3b3;
}

.b-player .e-player-play {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(246, 246, 246, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.b-player .e-player-play::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.b-player .e-player-pause-icon {
    display: none;
}

.b-player.is-playing .e-player-play-icon {
    display: none;
}

.b-player.is-playing .e-player-pause-icon {
    display: block;
}

.b-player-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 24px;
}

.b-player .e-player-share,
.b-player .e-player-loop {
    display: inline-flex;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.8;
}

.b-player .e-player-loop.is-active {
    opacity: 1;
}

.b-player .e-player-loop-icon.m-active {
    display: none;
}

.b-player .e-player-loop.is-active .e-player-loop-icon.m-default {
    display: none;
}

.b-player .e-player-loop.is-active .e-player-loop-icon.m-active {
    display: block;
}

.b-player-paywall {
    position: fixed;
    inset: 0;
    z-index: 1050;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.b-player-paywall[hidden] {
    display: none;
}

.b-player-paywall [data-subscription-panel][hidden] {
    display: none;
}

.b-player-paywall .subscription-page:has(> .subscription-top-bar:not(.subscription-top-bar--back)) {
    padding-top: calc(32px + var(--safe-area-top));
}

.b-player-paywall .subscription-free-access {
    padding-top: calc(60px + var(--safe-area-top));
}
