/**
 * Eclipse-RO — ธีมสดใสตาม logo (pink / lavender / sky blue)
 */
:root {
    --deep-void: #f8f4ff;
    --royal-purple: #6B5B95;
    --neon-light: #FF9EC7;
    --text-purple: #5B4B8A;
    --deep-purple: #5B4B8A;
    --cute-purple: #C4A8FF;
    --pink-coral: #FFB7D5;
    --sky-blue: #A6D8FF;
    --eclipse-pink: #FF9EC7;
    --eclipse-lavender: #C4A8FF;
    --eclipse-blue: #7EC8E3;
    --eclipse-outline: #5B4B8A;
}

body {
    background: #F0F4FF !important;
    color: var(--eclipse-outline);
}

body::before {
    background: linear-gradient(
        180deg,
        rgba(255, 245, 250, 0.25) 0%,
        rgba(240, 244, 255, 0.15) 40%,
        rgba(232, 244, 252, 0.3) 100%
    ) !important;
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
    box-shadow: none !important;
}

#master-bg-parallax {
    background: transparent !important;
}

#bg-image-layer {
    background: url('../images/eclipse-bg.png') no-repeat center center !important;
    background-size: cover !important;
    opacity: 1 !important;
    filter: saturate(1.05) brightness(1.02);
}

.copy-text .text-white {
    color: var(--eclipse-pink) !important;
}

#aura-glow {
    background: radial-gradient(circle,
        rgba(255, 158, 199, 0.35) 0%,
        rgba(196, 168, 255, 0.2) 45%,
        transparent 70%) !important;
}

.nebula-bg {
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 183, 213, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(166, 216, 255, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(196, 168, 255, 0.25) 0%, transparent 50%) !important;
}

.star-field {
    opacity: 0.25;
}

.snow-container {
    display: none;
}

.space-bg,
#preloader {
    background: linear-gradient(160deg, #FFF5FA, #E8F4FC) !important;
}

.nebula {
    background: radial-gradient(circle at 50% 50%, rgba(255, 158, 199, 0.2) 0%, transparent 60%) !important;
}

#stars, #stars2 {
    opacity: 0.15;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 2px solid rgba(255, 158, 199, 0.35) !important;
    box-shadow: 0 4px 24px rgba(91, 75, 138, 0.08) !important;
    min-height: 56px;
    padding: 2px 0 !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 6px 30px rgba(255, 158, 199, 0.15) !important;
    padding: 2px 0 !important;
}

.navbar .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.nav-link-cute,
.navbar.scrolled .nav-link-cute {
    color: var(--eclipse-outline) !important;
    text-shadow: none !important;
}

.nav-link-cute:hover {
    color: var(--eclipse-pink) !important;
}

.hamburger-icon span,
.navbar.scrolled .hamburger-icon span {
    background-color: var(--eclipse-outline) !important;
}

.nav-logo-img {
    max-height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255, 158, 199, 0.4));
}

.main-logo {
    width: clamp(430px, 52vw, 700px) !important;
    max-width: 88vw !important;
    filter: drop-shadow(0 8px 24px rgba(255, 158, 199, 0.45))
            drop-shadow(0 4px 12px rgba(126, 200, 227, 0.3)) !important;
}

.premium-logo {
    filter: drop-shadow(0 4px 16px rgba(255, 158, 199, 0.5));
}

/* Announcement bar — แถวที่ 2 แยกจาก navbar */
.hero-header {
    position: relative;
}

.hero-announcement-bar {
    position: absolute;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: min(860px, 90vw);
    height: 40px;
    margin: 0;
    z-index: 10;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(91, 75, 138, 0.16), 0 2px 8px rgba(255, 158, 199, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-announcement-bar .announcement-label {
    background: rgba(255, 255, 255, 0.25) !important;
    clip-path: none;
    border-radius: 999px 0 0 999px;
    padding: 0 18px;
}

.hero-announcement-bar .btn-top-join {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.hero-announcement-bar .marquee-content {
    display: flex;
    width: max-content;
    min-width: max-content;
    animation: eclipseMarquee 42s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.hero-announcement-bar .marquee-track-group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: max-content;
}

.hero-announcement-bar:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes eclipseMarquee {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 991.98px) {
    .navbar {
        min-height: 52px;
    }

    .nav-logo-img {
        max-height: 38px;
    }

    .hero-announcement-bar {
        top: 62px;
        width: calc(100vw - 24px);
        height: 38px;
    }

    .main-logo {
        width: min(620px, 92vw) !important;
    }
}

.top-announcement-bar {
    background: linear-gradient(90deg, #FFB7D5, #C4A8FF, #A6D8FF) !important;
    border-bottom: none !important;
}

.announcement-label,
.marquee-item,
.btn-top-join {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(91, 75, 138, 0.3);
}

.topbar-bottom-line {
    background: linear-gradient(90deg, transparent, #FF9EC7, #C4A8FF, transparent) !important;
}

/* Hero text */
.hero-header h1,
.hero-header p,
.subtitle-content .text-white,
.subtitle-content .text-glow-silver,
.hero-header .text-white {
    color: var(--eclipse-outline) !important;
    text-shadow: 0 2px 0 #fff, 0 0 20px rgba(255, 183, 213, 0.5) !important;
}

.text-glow-silver {
    color: #493A78 !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #493A78 !important;
    font-weight: 700 !important;
    text-shadow:
        0 1px 0 #fff,
        0 0 5px #fff,
        0 2px 8px rgba(91, 75, 138, 0.45) !important;
    filter: none !important;
}

.glowing-bar {
    background: linear-gradient(90deg, transparent, #FF9EC7, #C4A8FF, #A6D8FF, transparent) !important;
}

.visual-divider {
    background: linear-gradient(180deg, #FF9EC7, #C4A8FF) !important;
}

/* Cards */
.ethereal-card {
    background: rgba(255, 255, 255, 0.82) !important;
    border: 2px solid rgba(255, 158, 199, 0.35) !important;
    box-shadow: 0 12px 40px rgba(196, 168, 255, 0.15), 0 4px 12px rgba(255, 158, 199, 0.1) !important;
}

.ethereal-card:hover {
    border-color: var(--eclipse-pink) !important;
    box-shadow: 0 16px 48px rgba(255, 158, 199, 0.25) !important;
}

.side-panel-card {
    position: relative;
    border: 2px solid transparent !important;
    background:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(250, 247, 255, 0.86)) padding-box,
        linear-gradient(145deg, #FF9EC7 0%, #FFFFFF 28%, #C4A8FF 58%, #A6D8FF 100%) border-box !important;
    box-shadow:
        0 14px 38px rgba(91, 75, 138, 0.16),
        0 0 22px rgba(255, 158, 199, 0.18),
        inset 0 0 22px rgba(196, 168, 255, 0.1) !important;
}

.side-panel-card::before,
.side-panel-card::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    z-index: 3;
    pointer-events: none;
}

.side-panel-card::before {
    top: 8px;
    left: 8px;
    border-top: 3px solid #FF9EC7;
    border-left: 3px solid #FF9EC7;
    border-radius: 14px 0 0;
}

.side-panel-card::after {
    right: 8px;
    bottom: 8px;
    border-right: 3px solid #A6D8FF;
    border-bottom: 3px solid #A6D8FF;
    border-radius: 0 0 14px;
}

.side-panel-card .neon-line {
    height: 4px;
    background: linear-gradient(90deg, transparent, #FF9EC7, #C4A8FF, #A6D8FF, transparent) !important;
    box-shadow: 0 2px 12px rgba(255, 158, 199, 0.5);
}

.card-inner,
.card-inner-locked {
    background: transparent !important;
}

.neon-line {
    background: linear-gradient(90deg, #FF9EC7, #C4A8FF, #A6D8FF) !important;
}

.premium-title {
    margin-bottom: 10px;
    background: linear-gradient(90deg, #493A78, #735CA5, #E26BA5) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #493A78 !important;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1.25;
    text-shadow: none !important;
    filter: none;
}

.ultra-sub-glow {
    margin: 0;
    padding: 5px 16px;
    border: 1px solid rgba(255, 158, 199, 0.55);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 183, 213, 0.32), rgba(196, 168, 255, 0.3)) !important;
    box-shadow: 0 5px 15px rgba(196, 168, 255, 0.18);
}

.ultra-sub-glow::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
}

.ultra-sub-glow::after {
    display: none;
}

.ultra-sub-glow .sub-text-neon {
    color: #5B4B8A !important;
    opacity: 1 !important;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: none;
}

.member-panel-header {
    position: relative;
    padding: 4px 0 18px;
}

.member-panel-header::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 76%;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #FF9EC7, #C4A8FF, #A6D8FF, transparent);
    box-shadow: 0 2px 10px rgba(196, 168, 255, 0.35);
}

.member-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: linear-gradient(135deg, #FF9EC7, #C4A8FF, #A6D8FF);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 7px 18px rgba(196, 168, 255, 0.35);
}

.member-panel-header .premium-title {
    margin: 0 0 10px;
    background: linear-gradient(90deg, #493A78, #735CA5, #E26BA5) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #493A78 !important;
    font-size: clamp(1.15rem, 1.55vw, 1.5rem);
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1.25;
    text-shadow: none !important;
    filter: none;
}

.member-panel-header .ultra-sub-glow {
    min-width: 118px;
    margin: 0;
    padding: 5px 16px;
    border: 1px solid rgba(255, 158, 199, 0.55);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 183, 213, 0.3), rgba(196, 168, 255, 0.28)) !important;
    box-shadow: 0 5px 15px rgba(196, 168, 255, 0.18);
}

.member-panel-header .ultra-sub-glow::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
}

.member-panel-header .ultra-sub-glow::after {
    display: none;
}

.member-panel-header .sub-text-neon {
    color: #5B4B8A !important;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: none;
}

.sub-text-neon,
.subtitle-small-blue {
    color: var(--eclipse-pink) !important;
}

.neon-text-purple {
    color: var(--eclipse-lavender) !important;
}

.text-castle-neon {
    color: var(--eclipse-blue) !important;
}

.g-name,
.rank-node-modern .text-white {
    color: var(--eclipse-outline) !important;
}

/* Buttons */
.btn-lunaris-glass,
.btn-galactic-primary {
    background: linear-gradient(135deg, #FF9EC7, #C4A8FF) !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(255, 158, 199, 0.4) !important;
}

.btn-lunaris-glass:hover,
.btn-galactic-primary:hover {
    background: linear-gradient(135deg, #FFB7D5, #A6D8FF) !important;
    box-shadow: 0 8px 28px rgba(196, 168, 255, 0.5) !important;
}

.btn-contact-lunaris-outline,
.btn-premium-reg {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid var(--eclipse-pink) !important;
    color: var(--eclipse-outline) !important;
}

.btn-contact-lunaris-outline:hover,
.btn-premium-reg:hover {
    background: rgba(255, 183, 213, 0.2) !important;
    color: var(--eclipse-outline) !important;
}

.btn-topup-glass {
    background: linear-gradient(135deg, #C4A8FF, #A6D8FF) !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

.btn-premium-neon {
    background: linear-gradient(135deg, #FF9EC7, #C4A8FF) !important;
    color: #fff !important;
    border: none !important;
}

.btn-click-effect .text-white {
    color: #5B4B8A !important;
    text-shadow: none !important;
}

.btn-click-effect:hover {
    background: linear-gradient(90deg, rgba(255, 183, 213, 0.18), rgba(196, 168, 255, 0.16)) !important;
}

.btn-click-effect:hover .text-white {
    color: #E26BA5 !important;
}

/* Login */
.galactic-input {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(196, 168, 255, 0.5) !important;
    color: var(--eclipse-outline) !important;
}

.galactic-input:focus {
    border-color: var(--eclipse-pink) !important;
    box-shadow: 0 0 0 3px rgba(255, 158, 199, 0.25) !important;
}

.input-glow-wrapper label {
    color: var(--eclipse-outline) !important;
}

.login-box {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 10px;
}

.user-profile-header {
    background: linear-gradient(135deg, rgba(255, 183, 213, 0.2), rgba(196, 168, 255, 0.18)) !important;
    border: 1px solid rgba(196, 168, 255, 0.45) !important;
    box-shadow: 0 6px 18px rgba(91, 75, 138, 0.08);
}

.user-profile-header .text-white {
    color: #493A78 !important;
    text-shadow: none !important;
}

.user-badge-id {
    color: #E26BA5 !important;
}

.menu-action-item {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(196, 168, 255, 0.28);
    border-left: 3px solid transparent;
    color: #5B4B8A !important;
}

.menu-action-item:hover {
    background: linear-gradient(90deg, rgba(255, 183, 213, 0.22), rgba(196, 168, 255, 0.2)) !important;
    border-left-color: #FF9EC7;
    color: #493A78 !important;
}

/* Stats & server info */
.stats-text-main,
.stat-row-mini .label {
    color: var(--eclipse-outline) !important;
}

.stat-row-mini .val,
.modern-text-sub {
    color: var(--eclipse-pink) !important;
}

.stat-row-mini {
    align-items: center;
    min-height: 54px;
    padding: 8px 5px !important;
}

.stat-row-mini .val.modern-text-sub {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 34px;
    padding: 6px 13px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    background: linear-gradient(135deg, #FF9EC7, #B79AF4) !important;
    color: #fff !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    line-height: 1;
    letter-spacing: 0.6px !important;
    text-align: center;
    text-shadow: 0 1px 3px rgba(91, 75, 138, 0.3);
    box-shadow:
        0 5px 13px rgba(196, 168, 255, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: none !important;
}

.stat-row-mini .val.modern-text-sub::after {
    display: none !important;
}

.stat-row-mini:hover .val.modern-text-sub {
    background: linear-gradient(135deg, #F78FBE, #9E83E8) !important;
    box-shadow: 0 7px 18px rgba(196, 168, 255, 0.42);
    transform: translateY(-1px);
}

.stats-card-modern {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 158, 199, 0.3) !important;
}

.icon-box-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 3px;
    border: 1px solid rgba(196, 168, 255, 0.45);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    filter: none !important;
    animation: none !important;
    box-shadow: 0 5px 13px rgba(196, 168, 255, 0.2);
    overflow: hidden;
}

.ro-game-icon {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    object-fit: cover;
}

.ro-menu-icon {
    display: block;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 2px;
    border: 1px solid rgba(196, 168, 255, 0.42);
    border-radius: 14px;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 5px 13px rgba(196, 168, 255, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-click-effect:hover .ro-menu-icon {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 18px rgba(255, 158, 199, 0.3);
}

/* News */
.news-item-premium {
    position: relative;
    min-height: 76px;
    padding: 12px 14px 12px 18px !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(250, 247, 255, 0.82)) !important;
    border: 1px solid rgba(196, 168, 255, 0.38) !important;
    border-radius: 16px !important;
    box-shadow: 0 5px 14px rgba(91, 75, 138, 0.07);
    overflow: hidden;
}

.news-item-premium::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 4px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, #FF9EC7, #C4A8FF);
}

.news-item-premium:hover {
    border-color: rgba(255, 158, 199, 0.65) !important;
    box-shadow: 0 8px 20px rgba(196, 168, 255, 0.18) !important;
    transform: translateY(-2px) !important;
}

.news-item-premium.highlight {
    border-color: var(--eclipse-pink) !important;
    background: linear-gradient(90deg, rgba(255, 231, 241, 0.92), rgba(247, 242, 255, 0.86)) !important;
}

.news-tag {
    background: linear-gradient(135deg, #FF9EC7, #C4A8FF) !important;
    color: #fff !important;
    min-width: 58px;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    text-align: center;
    font-size: 0.66rem !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 158, 199, 0.24);
}

.news-info {
    min-width: 0;
}

.news-info .coral-subtext {
    margin-bottom: 3px;
    color: #493A78 !important;
    font-size: 0.92rem;
    font-weight: 700;
}

.news-info p {
    margin: 0 !important;
    color: #74699A !important;
    font-size: 0.78rem;
}

.coral-subtext {
    color: var(--eclipse-outline) !important;
}

.news-item-premium p {
    color: #6B5B95 !important;
}

.news-item-premium .news-date {
    width: auto !important;
    height: auto !important;
    margin: 0 0 0 16px !important;
    padding: 0 !important;
    flex: 0 0 auto;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #8A80A8 !important;
    font-family: 'Mitr', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 500;
    opacity: 1 !important;
    box-shadow: none !important;
    white-space: nowrap;
}

#news-pagination .btn {
    min-width: 30px;
    border-radius: 10px;
}

#news-pagination .btn-primary {
    background: linear-gradient(135deg, #FF9EC7, #C4A8FF) !important;
    border-color: transparent !important;
}

#news-pagination .btn-outline-light {
    color: #6B5B95 !important;
    border-color: rgba(196, 168, 255, 0.5) !important;
}

@media (max-width: 575.98px) {
    .news-tag {
        display: none;
    }

    .news-item-premium .news-date {
        width: auto !important;
        flex-basis: auto;
        margin-left: 8px !important;
        font-size: 0.68rem !important;
    }
}

/* Footer */
.grand-cosmic-footer {
    background: linear-gradient(180deg, rgba(255, 245, 250, 0.5), rgba(240, 244, 255, 0.95)) !important;
    border-top: 3px solid rgba(255, 158, 199, 0.3);
}

.footer-heading-neon,
.m-f-link,
.copy-text,
.tech-text {
    color: var(--eclipse-outline) !important;
}

.grand-cosmic-footer .text-purple-light,
.grand-cosmic-footer p {
    color: #5B4B8A !important;
    opacity: 1 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.grand-cosmic-footer .text-white {
    color: #E26BA5 !important;
}

.copy-text,
.tech-text {
    opacity: 0.85 !important;
    font-weight: 500;
}

.designer-name {
    color: #E26BA5 !important;
    font-weight: 700;
}

.m-f-link:hover {
    color: var(--eclipse-pink) !important;
}

.btn-cosmic-icon {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(196, 168, 255, 0.5) !important;
    color: var(--eclipse-outline) !important;
}

.btn-cosmic-icon:hover {
    background: var(--eclipse-pink) !important;
    color: #fff !important;
}

.cosmic-divider,
.void-glow-top,
.void-glow-bottom {
    opacity: 0.3;
}

/* Side menu */
.capsule-menu .menu-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(255, 158, 199, 0.4) !important;
    color: var(--eclipse-outline) !important;
}

.capsule-menu .menu-item.active,
.capsule-menu .menu-item:hover {
    background: linear-gradient(135deg, #FF9EC7, #C4A8FF) !important;
    color: #fff !important;
}

.menu-trigger {
    background: linear-gradient(135deg, #C4A8FF, #A6D8FF) !important;
    color: #fff !important;
}

/* Modal */
.modal-purple-dark .modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 158, 199, 0.4) !important;
    color: var(--eclipse-outline) !important;
}

.modal-purple-dark .modal-header {
    border-bottom-color: rgba(255, 158, 199, 0.3) !important;
}

.modal-purple-dark .modal-title {
    color: var(--eclipse-outline) !important;
}

.modal-container {
    background: rgba(255, 255, 255, 0.97) !important;
    border: 2px solid rgba(255, 158, 199, 0.4) !important;
    box-shadow: 0 20px 60px rgba(196, 168, 255, 0.25) !important;
    width: min(1180px, 94vw) !important;
    max-width: 1180px !important;
    height: min(900px, 90vh) !important;
    border-radius: 26px !important;
}

#customModal .modal-header {
    min-height: 42px;
    padding: 0 !important;
    background: linear-gradient(90deg, #FFF5FA, #F4EFFF, #EDF8FF) !important;
    border-bottom: 1px solid rgba(196, 168, 255, 0.3) !important;
}

#customModal .modal-body {
    margin: 0 !important;
    border-radius: 0 0 24px 24px !important;
    background: #f8f5ff !important;
}

#customModal .close-btn {
    top: 3px !important;
    right: 14px !important;
    color: #5B4B8A !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

#customModal .close-btn:hover {
    color: #E26BA5 !important;
}

@media (max-width: 767.98px) {
    .modal-container {
        width: 96vw !important;
        height: 94vh !important;
        border-radius: 20px !important;
    }
}

/* Preloader */
.main-progress-bar {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 2px solid rgba(196, 168, 255, 0.4);
}

#fill {
    background: linear-gradient(90deg, #FF9EC7, #C4A8FF, #A6D8FF) !important;
}

.loading-status,
#percent-count {
    color: var(--eclipse-outline) !important;
}

/* Badge carousel */
.badge-neon {
    background: linear-gradient(135deg, #FF9EC7, #C4A8FF) !important;
    color: #fff !important;
}

.glow-text {
    color: var(--eclipse-outline) !important;
    text-shadow: 0 2px 0 #fff !important;
}

.carousel-caption {
    background: rgba(255, 255, 255, 0.85) !important;
    color: var(--eclipse-outline) !important;
}

.carousel-caption p {
    color: #6B5B95 !important;
}

/* สไลด์หลัก: ไม่ใช้กล่องทึบบังภาพ */
.slider-locked-container .carousel-caption {
    width: auto !important;
    max-width: min(580px, 82%) !important;
    padding: 0 !important;
    background: transparent !important;
    color: #493A78 !important;
    text-shadow:
        0 1px 0 #fff,
        0 0 7px #fff,
        0 3px 14px rgba(45, 36, 91, 0.4) !important;
}

.slider-locked-container .carousel-caption p {
    color: #493A78 !important;
    font-weight: 500;
    opacity: 1 !important;
}
