/*
 * Myst4r Global Skin
 * Front-end visual layer for the Myst4r blog, pages, post templates, and account blocks.
 */

:root {
    --sakura-black: #030303;
    --sakura-ink: #090909;
    --sakura-panel: #111111;
    --sakura-panel-soft: #161616;
    --sakura-line: rgba(255,255,255,0.095);
    --sakura-line-strong: rgba(255,255,255,0.16);
    --sakura-text: #f6f1ed;
    --sakura-muted: #b7cacc;
    --sakura-soft: #7f9699;
    --sakura-red: #5CE1E6;
    --sakura-red-soft: #9AF6FF;
    --sakura-gold: #eafcff;
    --sakura-jade: #b7fbff;
    --sakura-radius: 8px;
    --sakura-shadow: 0 22px 65px rgba(0,0,0,0.42);
    --sakura-shadow-soft: 0 14px 34px rgba(0,0,0,0.32);
}

html {
    background: var(--sakura-black);
}

body {
    background:
        radial-gradient(circle at 14% 22%, rgba(92,225,230,0.16) 0 0.6%, rgba(92,225,230,0.08) 7%, rgba(92,225,230,0.018) 18%, transparent 33%),
        radial-gradient(circle at 84% 70%, rgba(154,246,255,0.13) 0 0.65%, rgba(154,246,255,0.065) 8%, rgba(92,225,230,0.015) 20%, transparent 35%),
        linear-gradient(115deg, rgba(92,225,230,0.08), transparent 24%),
        linear-gradient(245deg, rgba(234,252,255,0.04), transparent 20%),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,0.014) 18px 19px, transparent 19px 64px),
        linear-gradient(180deg, rgba(3,3,3,0.96) 0%, rgba(8,8,8,1) 42%, rgba(2,2,2,1) 100%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 84px);
    background-attachment: fixed;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat, repeat;
    background-size: 42rem 42rem, 48rem 48rem, auto, auto, auto, auto, auto;
    color: var(--sakura-text);
    font-feature-settings: "kern" 1;
    animation: myst4r-star-dance 64s ease-in-out infinite alternate;
    text-rendering: geometricPrecision;
}

@keyframes myst4r-star-dance {
    0% {
        background-position: 12% 21%, 86% 72%, 0 0, 0 0, 0 0, 0 0, 0 0;
    }
    50% {
        background-position: 18% 27%, 78% 65%, 0 0, 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 15% 34%, 88% 59%, 0 0, 0 0, 0 0, 0 0, 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
    }
}

body,
button,
input,
textarea,
select {
    letter-spacing: 0;
}

a {
    color: var(--sakura-text);
}

a:hover {
    color: var(--sakura-red-soft);
}

::selection {
    background: rgba(92,225,230,0.72);
    color: #031013;
}

.site,
.site-content,
.elementor,
.elementor-section,
.elementor-widget-container {
    color: var(--sakura-text);
}

.elementor-widget-container > h1,
.elementor-widget-container > h2,
.elementor-widget-container > h3,
.entry-title,
.page-title {
    color: var(--sakura-text);
}

body .cf-page-wrap,
body .cf-single-wrap,
body .cf-blog-archive,
body .cf-home-shell,
body .ipc4m-latest-wrap {
    color: var(--sakura-text);
}

body .cf-page-hero,
body .cf-single-hero,
body .cf-blog-hero,
body .cf-sakura-feature,
body .cf-sso-bar,
body .cf-coins-container,
body .cf-premium-box,
body .cf-text-panel,
body .cf-page-card,
body .cf-blog-card,
body .cf-blog-side-panel,
body .cf-blog-search,
body .cf-cat-sidebar,
body .cf-home-card,
body .cf-home-panel,
body .cf-sakura-trend-card,
body .cf-single-actions,
body .cf-single-section,
body .ipc4m-latest-card,
body .cf-single-nav-card,
body .cf-single-related-card {
    background:
        linear-gradient(180deg, rgba(22,22,22,0.96), rgba(8,8,8,0.985)) !important;
    border: 1px solid var(--sakura-line) !important;
    border-radius: var(--sakura-radius) !important;
    box-shadow: var(--sakura-shadow-soft);
}

body .cf-page-hero,
body .cf-single-hero,
body .cf-blog-hero,
body .cf-sakura-feature {
    position: relative;
    overflow: hidden;
    box-shadow: var(--sakura-shadow);
}

body .cf-page-hero::after,
body .cf-single-hero::after,
body .cf-blog-hero::after,
body .cf-sakura-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(92,225,230,0.18), transparent 34%),
        repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,0.035) 22px 23px, transparent 23px 88px);
    opacity: 0.48;
}

body .cf-page-hero > *,
body .cf-single-hero > *,
body .cf-blog-hero > *,
body .cf-sakura-feature > * {
    position: relative;
    z-index: 1;
}

body .cf-page-kicker,
body .cf-single-kicker,
body .cf-blog-kicker,
body .cf-sakura-section-kicker,
body .cf-home-kicker {
    color: var(--sakura-red-soft) !important;
    font-weight: 900 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
}

body .cf-page-title,
body .cf-single-title,
body .cf-blog-title,
body .cf-sakura-feature-title,
body .cf-home-title,
body .ipc4m-latest-title {
    color: var(--sakura-text) !important;
    font-weight: 900 !important;
    text-wrap: balance;
}

body .cf-page-intro,
body .cf-single-excerpt,
body .cf-blog-intro,
body .cf-page-card p,
body .cf-text-panel p,
body .cf-text-panel li,
body .cf-card-meta,
body .ipc4m-latest-excerpt,
body .cf-post-content-area {
    color: var(--sakura-muted) !important;
}

body .cf-page-card h3,
body .cf-text-panel h2,
body .cf-card-title,
body .cf-blog-card-title,
body .cf-single-section-title,
body .cf-single-related-title,
body .cf-single-nav-title,
body .cf-sakura-trend-title,
body .ipc4m-latest-post-title,
body .ipc4m-latest-card-title {
    color: var(--sakura-text) !important;
}

body .cf-page-card,
body .cf-blog-card,
body .cf-blog-side-panel,
body .cf-home-card,
body .cf-sakura-trend-card,
body .ipc4m-latest-card,
body .cf-single-related-card,
body .cf-single-nav-card,
body .cf-pay-method,
body .cf-pack-card,
body .cf-coin-pack {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body .cf-page-card:hover,
body .cf-blog-card:hover,
body .cf-blog-side-panel:hover,
body .cf-home-card:hover,
body .cf-sakura-trend-card:hover,
body .ipc4m-latest-card:hover,
body .cf-single-related-card:hover,
body .cf-single-nav-card:hover,
body .cf-pay-method:hover,
body .cf-pack-card:hover,
body .cf-coin-pack:hover {
    transform: translateY(-3px);
    border-color: rgba(92,225,230,0.62) !important;
    box-shadow: 0 22px 48px rgba(0,0,0,0.46), 0 0 0 1px rgba(214,173,99,0.08);
}

body .cf-card-thumb,
body .cf-home-card-media,
body .cf-blog-card-thumb,
body .ipc4m-latest-thumb,
body .cf-single-related-thumb,
body .cf-gallery-container {
    background: #050505 !important;
    border-radius: var(--sakura-radius) var(--sakura-radius) 0 0 !important;
    overflow: hidden;
}

body .cf-card-thumb img,
body .cf-home-card-media img,
body .cf-blog-card-thumb img,
body .ipc4m-latest-thumb img,
body .cf-single-related-thumb img,
body .cf-gallery-slide img,
body .cf-single-hero img,
body .cf-blog-hero img {
    filter: saturate(0.92) contrast(1.05);
}

body .cf-card-badge,
body .ipc4m-latest-badge,
body .cf-single-cost,
body .cf-single-pill,
body .cf-home-badge {
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    background: rgba(3,3,3,0.72) !important;
    color: var(--sakura-gold) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.32);
    backdrop-filter: blur(10px);
}

body .cf-card-badge.free,
body .ipc4m-latest-badge.free,
body .cf-home-badge.free {
    background: rgba(92,225,230,0.9) !important;
    color: #031013 !important;
}

body .cf-page-btn,
body .cf-btn-topup-raw,
body .cf-btn-buy-raw,
body .cf-btn-buy,
body .cf-dl-btn-raw,
body .cf-coin-pay,
body .cf-pack-btn,
body .cf-btn-redeem,
body .cf-btn-action,
body .cf-btn-download,
body .cf-btn-logout,
body .cf-single-btn,
body .ipc4m-latest-readmore {
    border-radius: 999px !important;
    border: 1px solid rgba(92,225,230,0.74) !important;
    background: linear-gradient(180deg, var(--sakura-red-soft), var(--sakura-red)) !important;
    color: #031013 !important;
    box-shadow: 0 12px 26px rgba(92,225,230,0.23);
    text-decoration: none !important;
    font-weight: 850 !important;
}

body .cf-page-btn.secondary,
body .cf-single-btn,
body .cf-coin-pay {
    background: rgba(255,255,255,0.055) !important;
    color: var(--sakura-text) !important;
}

body .cf-page-btn:hover,
body .cf-btn-topup-raw:hover,
body .cf-btn-buy-raw:hover,
body .cf-btn-buy:hover,
body .cf-dl-btn-raw:hover,
body .cf-coin-pay:hover,
body .cf-pack-btn:hover,
body .cf-btn-redeem:hover,
body .cf-btn-action:hover,
body .cf-btn-download:hover,
body .cf-btn-logout:hover,
body .cf-single-btn:hover,
body .ipc4m-latest-readmore:hover {
    transform: translateY(-2px);
    border-color: rgba(214,173,99,0.82) !important;
    box-shadow: 0 16px 34px rgba(92,225,230,0.32);
}

body .cf-gallery-container {
    border: 1px solid var(--sakura-line) !important;
    border-radius: var(--sakura-radius) !important;
    box-shadow: var(--sakura-shadow) !important;
}

body .cf-gal-btn,
body .cf-home-hero-prev,
body .cf-home-hero-next {
    background: rgba(8,8,8,0.74) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

body .cf-gal-btn:hover,
body .cf-home-hero-prev:hover,
body .cf-home-hero-next:hover {
    background: var(--sakura-red) !important;
    border-color: rgba(255,255,255,0.26) !important;
    color: #031013 !important;
}

body .cf-gal-dot {
    background: rgba(255,255,255,0.32) !important;
}

body .cf-gal-dot.active {
    background: var(--sakura-red-soft) !important;
}

body .cf-post-content-area {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 28px;
    background: rgba(12,12,12,0.74);
    border: 1px solid var(--sakura-line);
    border-radius: var(--sakura-radius);
}

body .cf-post-content-area h2,
body .cf-post-content-area h3,
body .cf-post-content-area strong {
    color: var(--sakura-text) !important;
}

body .cf-single-meta,
body .cf-single-tags,
body .cf-card-meta,
body .ipc4m-latest-meta {
    color: var(--sakura-soft) !important;
}

body .cf-single-tags a,
body .cf-blog-tag,
body .cf-blog-cat,
body .cf-legal-nav a,
body .cf-cat-link {
    border-radius: 999px !important;
    border: 1px solid var(--sakura-line) !important;
    background: rgba(255,255,255,0.045) !important;
    color: var(--sakura-muted) !important;
}

body .cf-single-tags a:hover,
body .cf-blog-tag:hover,
body .cf-blog-cat:hover,
body .cf-legal-nav a:hover,
body .cf-cat-link:hover {
    color: #fff !important;
    border-color: rgba(92,225,230,0.7) !important;
    background: rgba(92,225,230,0.13) !important;
}

body .cf-cat-count,
body .cf-blog-count,
body .cf-pack-bonus,
body .cf-coin-bonus {
    background: rgba(125,215,201,0.12) !important;
    color: var(--sakura-jade) !important;
}

body .cf-coin-amount,
body .cf-pack-amount,
body .cf-balance-big,
body #cf-profile-balance {
    color: var(--sakura-gold) !important;
}

body .cf-auth-shell,
body .cf-profile-container,
body .cf-profile-box,
body .cf-user-header,
body .cf-redeem-box,
body .cf-tab-content,
body .cf-pay-method,
body .cf-pack-card,
body .cf-history-table,
body .cf-downloads-table,
body .cf-table,
body .cf-login-modal,
body .cf-modal-content {
    background: linear-gradient(180deg, rgba(19,19,19,0.98), rgba(7,7,7,0.99)) !important;
    border: 1px solid var(--sakura-line) !important;
    border-radius: var(--sakura-radius) !important;
    color: var(--sakura-text) !important;
    box-shadow: var(--sakura-shadow);
}

body input,
body textarea,
body select {
    background: rgba(255,255,255,0.055) !important;
    border: 1px solid var(--sakura-line) !important;
    color: var(--sakura-text) !important;
    border-radius: 6px !important;
}

body input:focus,
body textarea:focus,
body select:focus {
    outline: 0 !important;
    border-color: rgba(92,225,230,0.72) !important;
    box-shadow: 0 0 0 3px rgba(92,225,230,0.16) !important;
}

body input::placeholder,
body textarea::placeholder {
    color: rgba(246,241,237,0.42) !important;
}

body table {
    border-color: var(--sakura-line) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    border-radius: var(--sakura-radius);
}

body th,
body td {
    border-color: rgba(255,255,255,0.07) !important;
}

body th {
    color: var(--sakura-text) !important;
    background: rgba(255,255,255,0.04) !important;
}

body td {
    color: var(--sakura-muted) !important;
}

body .cf-title {
    color: var(--sakura-text) !important;
    font-weight: 900 !important;
}

body .cf-redeem-area,
body .cf-methods-container,
body .cf-packages-grid,
body .cf-tabs-nav {
    gap: 12px !important;
}

body .cf-tab-btn {
    border: 1px solid var(--sakura-line) !important;
    background: rgba(255,255,255,0.045) !important;
    color: var(--sakura-muted) !important;
    border-radius: 999px !important;
    font-weight: 820 !important;
}

body .cf-tab-btn:hover,
body .cf-tab-btn.active {
    background: rgba(92,225,230,0.16) !important;
    border-color: rgba(92,225,230,0.72) !important;
    color: #fff !important;
}

body .cf-pay-method {
    text-decoration: none !important;
    color: var(--sakura-text) !important;
}

body .cf-pay-method small,
body .cf-pack-price,
body .cf-coin-price,
body .cf-balance-status {
    color: var(--sakura-muted) !important;
}

body .cf-pack-popular {
    background: linear-gradient(180deg, var(--sakura-gold), #9f7331) !important;
    color: #090909 !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
}

body .cf-auth-status-btn,
body .cf-auth-status-btn-global {
    border-radius: 999px !important;
    border: 1px solid rgba(92,225,230,0.72) !important;
    background: rgba(8,8,8,0.74) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.32);
}

body .cf-auth-status-btn:hover,
body .cf-auth-status-btn-global:hover {
    background: var(--sakura-red) !important;
    color: #031013 !important;
}

body .cf-btn-icon {
    filter: saturate(0.9);
}

body .cf-myst4r-visual-download,
body .cf-myst4r-linked-section {
    margin: 32px 0;
}

body .cf-myst4r-buy-hero {
    position: relative;
    min-height: clamp(460px, 62vw, 760px);
    overflow: hidden;
    border-radius: var(--sakura-radius);
    border: 1px solid rgba(92,225,230,0.22);
    background: #020303;
    box-shadow: var(--sakura-shadow);
}

body .cf-myst4r-buy-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    filter: saturate(1.02) contrast(1.08);
    transform: scale(1.01);
    transition: opacity 220ms ease, transform 520ms ease;
}

body .cf-myst4r-buy-hero:hover img {
    opacity: 0.96;
    transform: scale(1.035);
}

body .cf-myst4r-buy-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.72) 72%, rgba(0,0,0,0.92)),
        linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.16) 48%, rgba(0,0,0,0.68));
    pointer-events: none;
}

body .cf-myst4r-buy-overlay {
    position: absolute;
    left: clamp(20px, 5vw, 56px);
    right: clamp(20px, 5vw, 56px);
    bottom: clamp(22px, 6vw, 60px);
    z-index: 1;
    max-width: 760px;
}

body .cf-myst4r-buy-kicker,
body .cf-myst4r-linked-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sakura-red-soft);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body .cf-myst4r-buy-overlay h2 {
    margin: 10px 0 12px;
    color: #fff;
    font-size: clamp(34px, 7vw, 76px);
    line-height: 0.98;
    font-weight: 930;
    text-wrap: balance;
}

body .cf-myst4r-buy-overlay p {
    max-width: 620px;
    margin: 0 0 22px;
    color: rgba(246,251,252,0.78);
    font-size: 15px;
    line-height: 1.65;
}

body .cf-myst4r-buy-now,
body .cf-myst4r-unlock,
body .cf-myst4r-view {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 900;
}

body .cf-myst4r-buy-now,
body .cf-myst4r-unlock {
    border: 1px solid rgba(92,225,230,0.88);
    background: linear-gradient(180deg, #9AF6FF, #5CE1E6);
    color: #031013 !important;
    padding: 12px 22px;
    box-shadow: 0 16px 36px rgba(92,225,230,0.28);
    cursor: pointer;
}

body .cf-myst4r-view {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.055);
    color: #f6f1ed !important;
    padding: 10px 15px;
}

body .cf-myst4r-buy-now:hover,
body .cf-myst4r-unlock:hover,
body .cf-myst4r-view:hover {
    transform: translateY(-2px);
    border-color: rgba(234,252,255,0.9);
}

body .cf-myst4r-unlocked {
    padding: 28px;
    border: 1px solid rgba(92,225,230,0.32);
    border-radius: var(--sakura-radius);
    background: linear-gradient(180deg, rgba(16,26,27,0.96), rgba(4,7,8,0.98));
    text-align: center;
}

body .cf-myst4r-unlocked h3 {
    color: var(--sakura-red-soft);
    margin: 0 0 14px;
}

body .cf-myst4r-linked-section {
    position: relative;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid var(--sakura-line);
    border-radius: var(--sakura-radius);
    background: linear-gradient(180deg, rgba(14,17,18,0.92), rgba(5,6,7,0.96));
    box-shadow: var(--sakura-shadow-soft);
}

body .cf-myst4r-linked-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

body .cf-myst4r-linked-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

body .cf-myst4r-linked-nav {
    position: absolute;
    top: 58%;
    width: 44px;
    height: 58px;
    border-radius: 999px;
    border: 1px solid rgba(92,225,230,0.34);
    background: rgba(0,0,0,0.68);
    color: var(--sakura-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    box-shadow: 0 14px 34px rgba(0,0,0,0.48), 0 0 24px rgba(92,225,230,0.10);
    backdrop-filter: blur(10px);
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    transform: translateY(-50%);
}

body .cf-myst4r-linked-nav[data-dir="-1"] {
    left: 8px;
}

body .cf-myst4r-linked-nav[data-dir="1"] {
    right: 8px;
}

body .cf-myst4r-linked-nav:hover {
    background: var(--sakura-red);
    border-color: var(--sakura-red);
    color: #031013;
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 16px 38px rgba(0,0,0,0.54), 0 0 34px rgba(92,225,230,0.24);
}

body .cf-myst4r-linked-head h2 {
    color: var(--sakura-text);
    font-size: clamp(24px, 4vw, 42px);
    margin: 0;
    font-weight: 930;
}

body .cf-myst4r-linked-carousel {
    overflow: hidden;
    padding: 0 42px;
}

body .cf-myst4r-linked-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px 2px 10px;
}

body .cf-myst4r-linked-track::-webkit-scrollbar {
    display: none;
}

body .cf-myst4r-linked-card {
    position: relative;
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 240px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--sakura-radius);
    background: rgba(255,255,255,0.035);
    box-shadow: 0 14px 32px rgba(0,0,0,0.30);
    scroll-snap-align: start;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body .cf-myst4r-linked-card:hover {
    transform: translateY(-4px);
    border-color: rgba(92,225,230,0.68);
    box-shadow: 0 22px 44px rgba(0,0,0,0.42), 0 0 30px rgba(92,225,230,0.08);
}

body .cf-myst4r-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #020303;
}

body .cf-myst4r-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: transform 480ms ease, opacity 180ms ease;
}

body .cf-myst4r-linked-card:hover img {
    transform: scale(1.055);
    opacity: 1;
}

body .cf-myst4r-card-price {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 1;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.64);
    border: 1px solid rgba(92,225,230,0.28);
    color: var(--sakura-red-soft);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

body .cf-myst4r-card-body {
    padding: 14px;
}

body .cf-myst4r-card-body h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 15px;
    line-height: 1.22;
    font-weight: 880;
}

body .cf-myst4r-card-body p {
    margin: 0 0 12px;
    color: var(--sakura-muted);
    font-size: 12px;
    line-height: 1.5;
}

body .cf-myst4r-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

body .cf-myst4r-card-actions button,
body .cf-myst4r-card-actions a {
    width: 100%;
    font-size: 12px;
    padding: 0 10px;
}

body .cf-rel-card-visual {
    border-left-width: 1px !important;
}

body .cf-pack-thumb-link {
    width: 116px;
    aspect-ratio: 4 / 5;
    flex: 0 0 116px;
    display: block;
    overflow: hidden;
    border-radius: var(--sakura-radius);
    border: 1px solid rgba(92,225,230,0.22);
    background: #020303;
}

body .cf-pack-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 420ms ease;
}

body .cf-pack-thumb-link:hover img {
    transform: scale(1.06);
}

@media (min-width: 1500px) {
    body .cf-myst4r-linked-card {
        flex-basis: calc((100% - 64px) / 5);
    }
}

@media (max-width: 860px) {
    body .cf-myst4r-linked-card {
        flex-basis: calc((100% - 32px) / 3);
        min-width: 220px;
    }
}

@media (max-width: 640px) {
    body .cf-myst4r-linked-head {
        display: block;
    }

    body .cf-myst4r-linked-head h2 {
        margin-top: 6px;
    }

    body .cf-myst4r-linked-carousel {
        padding: 0 34px;
    }

    body .cf-myst4r-linked-track {
        gap: 10px;
    }

    body .cf-myst4r-linked-card {
        flex-basis: calc((100% - 10px) / 2);
        min-width: 168px;
    }

    body .cf-myst4r-linked-nav {
        top: 60%;
        width: 34px;
        height: 48px;
    }

    body .cf-myst4r-card-actions {
        grid-template-columns: 1fr;
    }
}

body .cf-home-empty,
body .cf-single-empty,
body .cf-blog-empty,
body .ipc4m-empty {
    color: var(--sakura-muted) !important;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.14);
    border-radius: var(--sakura-radius);
    padding: 18px;
}

@media (max-width: 782px) {
    body .cf-page-hero,
    body .cf-single-hero,
    body .cf-blog-hero,
    body .cf-post-content-area,
    body .cf-text-panel,
    body .cf-page-card {
        padding: 22px !important;
    }

    body .cf-page-title,
    body .cf-single-title,
    body .cf-blog-title {
        font-size: clamp(30px, 9vw, 42px) !important;
    }

    body .cf-sso-bar {
        align-items: flex-start !important;
    }
}

/*
 * Myst4r responsive polish
 * Mobile/tablet layer for Elementor header plus all custom shortcode surfaces.
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

body .cf-page-wrap,
body .cf-single-wrap,
body .cf-blog-archive,
body .cf-home-shell,
body .ipc4m-latest-wrap,
body .cf-auth-shell,
body .cf-profile-container,
body .cf-coins-container {
    width: min(100%, 1240px);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1180px) {
    body .cf-page-wrap,
    body .cf-single-wrap,
    body .cf-blog-archive,
    body .cf-home-shell,
    body .ipc4m-latest-wrap,
    body .cf-auth-shell,
    body .cf-profile-container,
    body .cf-coins-container,
    body .elementor-section .elementor-container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body .cf-blog-layout,
    body .cf-home-layout,
    body .cf-single-layout,
    body .cf-page-grid,
    body .cf-sakura-feature-grid,
    body .cf-methods-container,
    body .cf-packages-grid,
    body .cf-redeem-area {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body .cf-home-grid,
    body .cf-blog-grid,
    body .ipc4m-latest-grid,
    body .cf-single-related-grid,
    body .cf-sakura-trend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    body .cf-blog-sidebar,
    body .cf-cat-sidebar,
    body .cf-single-sidebar {
        grid-column: 1 / -1 !important;
    }

    body .cf-gallery-container {
        min-height: 520px !important;
    }
}

@media (max-width: 900px) {
    body .elementor-location-header,
    body header.site-header,
    body .site-header {
        position: relative;
        z-index: 80;
        overflow: visible;
    }

    body .elementor-location-header .elementor-section,
    body .elementor-location-header .elementor-container,
    body .elementor-location-header .elementor-row,
    body header.site-header .ast-container,
    body .site-header .ast-container {
        min-height: 0 !important;
    }

    body .elementor-location-header .elementor-container,
    body .elementor-location-header .elementor-row,
    body header.site-header .ast-container,
    body .site-header .ast-container {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px 14px !important;
        padding: 12px 14px !important;
    }

    body .elementor-location-header .elementor-column,
    body .elementor-location-header .elementor-widget,
    body .elementor-location-header .elementor-widget-wrap {
        width: auto !important;
        max-width: 100% !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }

    body .elementor-location-header .elementor-widget-image,
    body .elementor-location-header .elementor-widget-theme-site-logo,
    body .elementor-location-header .custom-logo-link {
        order: 2;
        flex: 1 1 110px !important;
        text-align: center !important;
    }

    body .elementor-location-header .elementor-widget-image img,
    body .elementor-location-header .custom-logo,
    body .elementor-location-header .custom-logo-link img {
        width: auto !important;
        max-width: 132px !important;
        max-height: 58px !important;
        object-fit: contain;
    }

    body .cf-lang-switcher {
        order: 1;
        flex: 0 0 auto;
        padding: 3px !important;
        gap: 3px !important;
    }

    body .cf-lang-switcher a {
        min-width: 34px !important;
        min-height: 30px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
    }

    body .elementor-location-header .elementor-widget-nav-menu,
    body .elementor-location-header .main-navigation,
    body .elementor-location-header .wp-block-navigation {
        order: 3;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    body .elementor-location-header .elementor-nav-menu--main,
    body header.site-header .main-navigation ul,
    body .site-header .main-navigation ul,
    body .wp-block-navigation__container {
        display: none !important;
    }

    body .elementor-location-header .elementor-menu-toggle,
    body header.site-header .menu-toggle,
    body .site-header .menu-toggle,
    body .wp-block-navigation__responsive-container-open {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        border: 1px solid rgba(92,225,230,0.28) !important;
        border-radius: 8px !important;
        background: rgba(255,255,255,0.035) !important;
        color: var(--sakura-text) !important;
        box-shadow: 0 12px 28px rgba(0,0,0,0.34);
    }

    body .elementor-location-header .elementor-button-wrapper,
    body .elementor-location-header .elementor-widget-button {
        order: 4;
        flex: 1 1 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    body .elementor-location-header .elementor-button {
        min-height: 42px !important;
        max-width: 260px !important;
        width: auto !important;
        padding: 10px 18px !important;
        border-radius: 999px !important;
        font-size: 14px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    body .elementor-location-header .elementor-icon,
    body header.site-header .elementor-icon,
    body .site-header .elementor-icon {
        font-size: 28px !important;
        line-height: 1 !important;
    }
}

@media (max-width: 767px) {
    body {
        background-size: 32rem 32rem, 34rem 34rem, auto, auto, auto, auto, auto;
    }

    body .cf-page-wrap,
    body .cf-single-wrap,
    body .cf-blog-archive,
    body .cf-home-shell,
    body .ipc4m-latest-wrap,
    body .cf-auth-shell,
    body .cf-profile-container,
    body .cf-coins-container,
    body .elementor-section .elementor-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body .cf-page-hero,
    body .cf-single-hero,
    body .cf-blog-hero,
    body .cf-sakura-feature,
    body .cf-post-content-area,
    body .cf-text-panel,
    body .cf-page-card,
    body .cf-blog-card,
    body .cf-blog-side-panel,
    body .cf-home-panel,
    body .cf-single-actions,
    body .cf-single-section,
    body .cf-auth-shell,
    body .cf-profile-box,
    body .cf-user-header,
    body .cf-redeem-box,
    body .cf-tab-content,
    body .cf-coins-container,
    body .cf-myst4r-linked-section {
        padding: 18px !important;
        border-radius: 8px !important;
    }

    body .cf-page-title,
    body .cf-single-title,
    body .cf-blog-title,
    body .cf-sakura-feature-title,
    body .cf-home-title,
    body .ipc4m-latest-title {
        font-size: clamp(28px, 9vw, 40px) !important;
        line-height: 1.05 !important;
    }

    body .cf-page-intro,
    body .cf-single-excerpt,
    body .cf-blog-intro,
    body .cf-post-content-area,
    body .cf-text-panel p,
    body .cf-text-panel li {
        font-size: 14px !important;
        line-height: 1.62 !important;
    }

    body .cf-blog-layout,
    body .cf-home-layout,
    body .cf-single-layout,
    body .cf-page-grid,
    body .cf-sakura-feature-grid,
    body .cf-methods-container,
    body .cf-packages-grid,
    body .cf-redeem-area,
    body .cf-home-grid,
    body .cf-blog-grid,
    body .ipc4m-latest-grid,
    body .cf-single-related-grid,
    body .cf-sakura-trend-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    body .cf-card-thumb,
    body .cf-home-card-media,
    body .cf-blog-card-thumb,
    body .ipc4m-latest-thumb,
    body .cf-single-related-thumb {
        aspect-ratio: 16 / 10 !important;
        min-height: 0 !important;
    }

    body .cf-gallery-container {
        min-height: clamp(360px, 78vh, 620px) !important;
        border-radius: 8px !important;
    }

    body .cf-gallery-slide,
    body .cf-gallery-slide img {
        min-height: 0 !important;
    }

    body .cf-gal-btn {
        width: 38px !important;
        height: 44px !important;
        border-radius: 8px !important;
    }

    body .cf-gallery-thumbs,
    body .cf-gallery-dots {
        gap: 8px !important;
        padding: 10px !important;
        overflow-x: auto !important;
        scrollbar-width: none;
    }

    body .cf-gallery-thumbs::-webkit-scrollbar,
    body .cf-gallery-dots::-webkit-scrollbar {
        display: none;
    }

    body .cf-gallery-thumb,
    body .cf-gal-dot {
        flex: 0 0 auto !important;
    }

    body .cf-myst4r-buy-hero {
        min-height: 440px !important;
    }

    body .cf-myst4r-buy-overlay {
        left: 18px !important;
        right: 18px !important;
        bottom: 20px !important;
    }

    body .cf-myst4r-buy-overlay h2 {
        font-size: clamp(30px, 12vw, 46px) !important;
    }

    body .cf-myst4r-linked-head {
        margin-bottom: 14px !important;
    }

    body .cf-myst4r-linked-carousel {
        padding: 0 30px !important;
    }

    body .cf-myst4r-linked-card {
        flex-basis: min(82vw, 280px) !important;
        min-width: min(82vw, 280px) !important;
    }

    body .cf-myst4r-linked-nav {
        width: 34px !important;
        height: 48px !important;
    }

    body .cf-tabs-nav,
    body .cf-single-tags,
    body .cf-blog-tags,
    body .cf-legal-nav,
    body .cf-card-actions,
    body .cf-sso-bar {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    body .cf-tab-btn,
    body .cf-page-btn,
    body .cf-btn-topup-raw,
    body .cf-btn-buy-raw,
    body .cf-btn-buy,
    body .cf-dl-btn-raw,
    body .cf-coin-pay,
    body .cf-pack-btn,
    body .cf-btn-redeem,
    body .cf-btn-action,
    body .cf-btn-download,
    body .cf-btn-logout,
    body .cf-single-btn,
    body .ipc4m-latest-readmore,
    body .cf-myst4r-buy-now,
    body .cf-myst4r-unlock,
    body .cf-myst4r-view {
        min-height: 42px !important;
        max-width: 100%;
        white-space: normal !important;
        text-align: center !important;
    }

    body .cf-downloads-table,
    body .cf-history-table,
    body .cf-table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body table {
        min-width: 640px;
    }
}

@media (max-width: 480px) {
    body .elementor-location-header .elementor-container,
    body .elementor-location-header .elementor-row,
    body header.site-header .ast-container,
    body .site-header .ast-container {
        gap: 8px 10px !important;
        padding: 10px !important;
    }

    body .elementor-location-header .elementor-widget-image img,
    body .elementor-location-header .custom-logo,
    body .elementor-location-header .custom-logo-link img {
        max-width: 104px !important;
        max-height: 48px !important;
    }

    body .cf-lang-switcher a {
        min-width: 31px !important;
        min-height: 28px !important;
        padding: 0 7px !important;
        font-size: 10px !important;
    }

    body .elementor-location-header .elementor-menu-toggle,
    body header.site-header .menu-toggle,
    body .site-header .menu-toggle,
    body .wp-block-navigation__responsive-container-open {
        width: 40px !important;
        height: 40px !important;
    }

    body .elementor-location-header .elementor-button {
        max-width: 230px !important;
        min-height: 40px !important;
        padding: 9px 16px !important;
        font-size: 13px !important;
    }

    body .cf-page-hero,
    body .cf-single-hero,
    body .cf-blog-hero,
    body .cf-sakura-feature,
    body .cf-post-content-area,
    body .cf-text-panel,
    body .cf-page-card,
    body .cf-blog-card,
    body .cf-blog-side-panel,
    body .cf-home-panel,
    body .cf-single-actions,
    body .cf-single-section,
    body .cf-auth-shell,
    body .cf-profile-box,
    body .cf-user-header,
    body .cf-redeem-box,
    body .cf-tab-content,
    body .cf-coins-container,
    body .cf-myst4r-linked-section {
        padding: 14px !important;
    }

    body .cf-gallery-container {
        min-height: 340px !important;
    }

    body .cf-gal-btn {
        width: 34px !important;
        height: 40px !important;
    }

    body .cf-pack-thumb-link {
        width: 88px !important;
        flex-basis: 88px !important;
    }

    body .cf-myst4r-linked-carousel {
        padding: 0 24px !important;
    }

    body .cf-myst4r-linked-card {
        flex-basis: 78vw !important;
        min-width: 78vw !important;
    }
}
