/*
 * Sakura Global Skin
 * Front-end visual layer for the Sakura 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: #aaa4a0;
    --sakura-soft: #756f6a;
    --sakura-red: #f13223;
    --sakura-red-soft: #ff6357;
    --sakura-gold: #d6ad63;
    --sakura-jade: #7dd7c9;
    --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:
        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);
    color: var(--sakura-text);
    font-feature-settings: "kern" 1;
    text-rendering: geometricPrecision;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(115deg, rgba(241,50,35,0.10), transparent 24%),
        linear-gradient(245deg, rgba(214,173,99,0.055), transparent 20%),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,0.018) 18px 19px, transparent 19px 64px);
    opacity: 0.9;
}

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

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

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

::selection {
    background: rgba(241,50,35,0.72);
    color: #fff;
}

.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(241,50,35,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(241,50,35,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(241,50,35,0.9) !important;
    color: #fff !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(241,50,35,0.74) !important;
    background: linear-gradient(180deg, var(--sakura-red-soft), var(--sakura-red)) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(241,50,35,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(241,50,35,0.32);
}

body .cf-gallery-container {
    border: 1px solid var(--sakura-line) !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;
}

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(241,50,35,0.7) !important;
    background: rgba(241,50,35,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(241,50,35,0.72) !important;
    box-shadow: 0 0 0 3px rgba(241,50,35,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(241,50,35,0.16) !important;
    border-color: rgba(241,50,35,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(241,50,35,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: #fff !important;
}

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

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;
    }
}
