:root {
    --rm-bg: #0b0e14;
    --rm-bg-soft: #121824;
    --rm-surface: rgba(30, 41, 59, 0.55);
    --rm-border: rgba(255, 255, 255, 0.08);
    --rm-text: #e2e8f0;
    --rm-muted: #94a3b8;
    --rm-accent: #00d4ff;
    --rm-accent-2: #4facfe;
    --rm-success: #10b981;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        font-size: 14px;
    }

    .navbar-rm {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.1rem !important;
    }

    .navbar-brand i {
        font-size: 1.25rem !important;
    }

    .lang-switch {
        margin-bottom: 1rem !important;
        width: 100%;
        justify-content: center;
    }

    .lang-switch .btn {
        min-width: 3.5rem;
        font-size: 0.8rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }

    .navbar-nav .nav-link i {
        font-size: 1rem;
    }

    .hero-section {
        padding: 3rem 0 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-card,
    .feature-card,
    .bot-card,
    .glass-card {
        margin-bottom: 1rem;
    }

    .bot-card .card-img-top {
        height: 180px;
    }

    .bot-gallery-frame {
        min-height: 250px;
        max-height: 300px;
    }

    .bot-thumbnail {
        width: 65px;
        height: 65px;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .btn-gradient,
    .btn-outline-rm {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .site-footer {
        padding: 1.5rem 0;
        font-size: 0.85rem;
    }

    .form-control-modern {
        padding: 0.6rem 0.85rem;
        font-size: 0.95rem;
    }

    .star-rating-picker {
        padding: 0.5rem 0.7rem;
    }

    .star-picker-btn {
        font-size: 1.5rem;
    }
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0;
    background: radial-gradient(circle at 20% 20%, #152035 0%, var(--rm-bg) 45%, #07090f 100%);
    color: var(--rm-text);
    overflow-x: hidden;
}

.navbar-rm {
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rm-border);
    padding: 0.85rem 0;
}

.navbar-rm .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff !important;
}

.navbar-rm .brand-accent {
    color: var(--rm-accent);
}

.navbar-rm .nav-link {
    color: var(--rm-muted) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-rm .nav-link:hover,
.navbar-rm .nav-link.active {
    color: #fff !important;
}

.lang-switch .btn {
    border-color: var(--rm-border);
    color: var(--rm-muted);
    min-width: 4.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(15, 23, 42, 0.45);
    transition: all 0.2s ease-in-out;
}

.lang-switch .btn:hover {
    color: #fff;
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.25);
}

.lang-switch .btn.active {
    background: linear-gradient(135deg, var(--rm-accent) 0%, var(--rm-accent-2) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--rm-accent) 0%, var(--rm-accent-2) 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 18px rgba(79, 172, 254, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.45);
    color: #fff;
}

.btn-outline-rm {
    border: 1px solid rgba(0, 212, 255, 0.45);
    color: #fff;
    background: transparent;
}

.btn-outline-rm:hover {
    background: rgba(0, 212, 255, 0.12);
    color: #fff;
    border-color: var(--rm-accent);
}

.hero-section {
    position: relative;
    padding: 4.5rem 0 3rem;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: -30% auto auto 50%;
    width: 600px;
    height: 600px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.08);
    color: var(--rm-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero-title span {
    background: linear-gradient(135deg, var(--rm-accent), var(--rm-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 640px;
    margin: 1.25rem auto 0;
    color: var(--rm-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.stat-card,
.feature-card,
.bot-card,
.glass-card {
    background: var(--rm-surface);
    border: 1px solid var(--rm-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
}

.stat-card {
    padding: 1.25rem 1rem;
    text-align: center;
    height: 100%;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
}

.stat-card .stat-label {
    color: var(--rm-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.feature-card {
    padding: 1.75rem;
    height: 100%;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(0, 212, 255, 0.35);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.12);
    color: var(--rm-accent);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.section-heading {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.section-subheading {
    color: var(--rm-muted);
    max-width: 560px;
}

.bot-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
}

.bot-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 212, 255, 0.12);
}

.badge-price {
    background: rgba(16, 185, 129, 0.18);
    color: var(--rm-success);
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.badge-free {
    background: rgba(0, 212, 255, 0.16);
    color: var(--rm-accent);
    border: 1px solid rgba(0, 212, 255, 0.35);
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.glass-card {
    padding: 2rem;
}

.form-control-modern {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid var(--rm-border) !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.form-control-modern:focus {
    border-color: var(--rm-accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.15) !important;
}

.form-control-modern::placeholder {
    color: #64748b;
}

.site-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--rm-border);
    color: var(--rm-muted);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--rm-accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.detail-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rm-border);
    border-radius: 16px;
}

.detail-panel .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--rm-text);
    margin-bottom: 0;
}

.detail-panel .table td {
    border-color: var(--rm-border);
    padding: 0.85rem 1rem;
}

.profile-sidebar,
.profile-main {
    background: var(--rm-surface);
    border: 1px solid var(--rm-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.profile-sidebar h4,
.profile-main h4 {
    color: #fff;
}

.profile-sidebar .text-muted,
.profile-main .text-muted {
    color: var(--rm-muted) !important;
}

.profile-sidebar .bg-light {
    background: rgba(15, 23, 42, 0.55) !important;
    border: 1px solid var(--rm-border);
}

.profile-main .table-light {
    --bs-table-bg: rgba(15, 23, 42, 0.65);
    --bs-table-color: var(--rm-muted);
}

.profile-main .table-hover tbody tr:hover {
    background: rgba(0, 212, 255, 0.06);
}

.btn:focus,
.btn:active:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.2);
}

/* Bot detail gallery */
.bot-gallery {
    position: relative;
    overflow: hidden;
}

.bot-gallery::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.bot-gallery > * {
    position: relative;
    z-index: 1;
}

.bot-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.gallery-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rm-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--rm-border);
    background: rgba(15, 23, 42, 0.55);
}

.bot-carousel {
    border-radius: 14px;
}

.bot-gallery-frame {
    position: relative;
    min-height: 320px;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--rm-border);
    border-radius: 14px;
    overflow: hidden;
}

.bot-gallery-main {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    transition: transform 0.45s ease, opacity 0.35s ease;
    animation: galleryFadeIn 0.55s ease;
}

.carousel-item.active .bot-gallery-main {
    transform: scale(1);
}

.bot-carousel-control {
    width: 12%;
    opacity: 1;
}

.bot-carousel-control .carousel-control-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: #fff;
    font-size: 1.1rem;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.bot-carousel-control:hover .carousel-control-icon {
    transform: scale(1.08);
    background: rgba(0, 212, 255, 0.18);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.25);
}

.bot-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.bot-thumbnail {
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.bot-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bot-thumbnail:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.35);
}

.bot-thumbnail.active {
    border-color: var(--rm-accent);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
}

.bot-gallery-placeholder {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--rm-muted);
    border: 1px dashed var(--rm-border);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.35);
}

.bot-gallery-placeholder i {
    font-size: 2.5rem;
    color: rgba(0, 212, 255, 0.45);
}

.bot-card-image-wrap {
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.55);
}

.bot-card-image-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(11, 14, 20, 0.65), transparent);
    pointer-events: none;
}

.bot-card .card-img-top {
    height: 210px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.35s ease;
}

.bot-card:hover .card-img-top {
    transform: scale(1.06);
    filter: brightness(1.05);
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.review-summary {
    min-width: 140px;
}

.review-score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--rm-accent);
    line-height: 1;
}

.review-stars {
    color: #fbbf24;
    letter-spacing: 0.1rem;
}

.review-card,
.support-card {
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.review-card:hover,
.support-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.review-list,
.support-list {
    max-height: 620px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.form-select.form-control-modern {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--rm-border);
    color: #fff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.form-select.form-control-modern:focus {
    border-color: var(--rm-accent);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.15);
}

.star-rating-picker {
    display: inline-flex;
    gap: 0.4rem;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--rm-border);
}

.star-picker-btn {
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    font-size: 1.85rem;
    color: rgba(148, 163, 184, 0.35);
    transition: transform 0.2s ease, color 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.star-picker-btn:hover,
.star-picker-btn.preview {
    transform: scale(1.12);
    color: rgba(251, 191, 36, 0.75);
}

.star-picker-btn.active {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.45));
    transform: scale(1.08);
}

.star-picker-btn.active:hover {
    transform: scale(1.16);
}

/* Preloader / Splash Screen */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0e14;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

/* Candlestick / Stock Chart CSS Animation */
.chart-preloader {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 70px;
    margin-bottom: 25px;
    position: relative;
}

.chart-candle {
    width: 10px;
    background: rgba(0, 212, 255, 0.2);
    position: relative;
    border-radius: 2px;
    animation: candleGrow 1.5s infinite ease-in-out alternate;
}

.chart-candle::before {
    content: "";
    position: absolute;
    left: 4px;
    width: 2px;
    background: inherit;
}

/* Candle 1 (Green) */
.candle-1 {
    height: 30px;
    background: var(--rm-success);
    animation-delay: 0.1s;
}
.candle-1::before {
    top: -10px;
    height: 50px;
    background: var(--rm-success);
}

/* Candle 2 (Red) */
.candle-2 {
    height: 45px;
    background: #ef4444;
    animation-delay: 0.3s;
}
.candle-2::before {
    top: -15px;
    height: 70px;
    background: #ef4444;
}

/* Candle 3 (Green) */
.candle-3 {
    height: 25px;
    background: var(--rm-success);
    animation-delay: 0.5s;
}
.candle-3::before {
    top: -8px;
    height: 40px;
    background: var(--rm-success);
}

/* Candle 4 (Green / Tall) */
.candle-4 {
    height: 55px;
    background: var(--rm-accent);
    animation-delay: 0.7s;
}
.candle-4::before {
    top: -12px;
    height: 80px;
    background: var(--rm-accent);
}

/* Candle 5 (Red) */
.candle-5 {
    height: 35px;
    background: #ef4444;
    animation-delay: 0.9s;
}
.candle-5::before {
    top: -10px;
    height: 55px;
    background: #ef4444;
}

@keyframes candleGrow {
    0% {
        transform: scaleY(0.7);
    }
    100% {
        transform: scaleY(1.1);
    }
}

.preloader-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 8px;
    animation: pulseLogo 1.5s infinite alternate;
}

.preloader-logo span {
    color: var(--rm-accent);
}

.preloader-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--rm-accent);
    border-radius: 50%;
    margin: 15px auto 0;
    animation: spinLoader 0.8s infinite linear;
}

@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseLogo {
    0% {
        opacity: 0.7;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1.02);
    }
}
