:root {
    --primary-color: #0097e2;
    --primary-hover: #33a9e8;
    --primary-active: #0086c9;
    --secondary-color: #9370DB;
    --destructive-color: #FF3B30;
    --win-color: #34C759;
    --loss-color: var(--destructive-color);
    --primary-color-rgb: 0, 151, 226;
    --secondary-color-rgb: 147, 112, 219;
    --win-color-rgb: 52, 199, 89;
    --loss-color-rgb: 255, 59, 48;
    --background-dark-theme: #000000;
    --header-bg-dark-theme: rgba(0, 0, 0, 0.5);
    --text-light-theme: #E6EDF3;
    --text-dark-theme-buttons: #010409;
    --text-muted-dark-theme: #8B949E;
    --card-background-dark-theme: #000000;
    --border-color-dark-theme: rgba(255, 255, 255, 0.1);
    --input-bg-dark-theme: #0D1117;
    --input-border-dark-theme: rgba(255, 255, 255, 0.1);
    --chart-grid-color-dark-theme: rgba(var(--primary-color-rgb), 0.1);
    --chart-tick-color-dark-theme: var(--text-muted-dark-theme);
    --chart-line-color-dark-theme: var(--primary-color);
    --chart-line-fill-dark-theme: rgba(var(--primary-color-rgb), 0.1);
    --chart-historical-signal-point-color: #1c1c1c;
    --chart-historical-signal-point-border-color: #1c1c1c;
    --current-background: var(--background-dark-theme);
    --current-header-bg: var(--header-bg-dark-theme);
    --current-text: var(--text-light-theme);
    --current-text-buttons: var(--text-dark-theme-buttons);
    --current-text-muted: var(--text-muted-dark-theme);
    --current-card-background: var(--card-background-dark-theme);
    --current-border-color: var(--border-color-dark-theme);
    --current-input-bg: var(--input-bg-dark-theme);
    --current-input-border: var(--input-border-dark-theme);
    --current-chart-grid-color: var(--chart-grid-color-dark-theme);
    --current-chart-tick-color: var(--chart-tick-color-dark-theme);
    --current-chart-line-color: var(--chart-line-color-dark-theme);
    --current-chart-line-fill: var(--chart-line-fill-dark-theme);
    --current-chart-historical-signal-point-color: var(--chart-historical-signal-point-color);
    --current-chart-historical-signal-point-border-color: var(--chart-historical-signal-point-border-color);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-glow: rgba(var(--primary-color-rgb), 0.3);
    --shadow-glow-hover: rgba(var(--primary-color-rgb), 0.5);
    --candle-no-signal: #8B949E;
    --candle-buy-signal: var(--win-color);
    --candle-sell-signal: var(--loss-color);
    --progress-bar-bg: rgba(var(--primary-color-rgb), 0.1);
    --mouse-x: 50%;
    --mouse-y: 50%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--current-background);
    color: var(--current-text);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}


.crypto-icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.2em;
    margin-right: 0.4em;
    border-radius: 50%;
}


.asset-label-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#sidebar {
    width: 260px;
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%), var(--current-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--current-border-color);
    display: flex;
    flex-direction: column;
    padding: 25px 15px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1001;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

body.no-sidebar #sidebar {
    display: none;
}

body.sidebar-closed #sidebar {
    transform: translateX(-100%);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    padding: 10px 0;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    transition: transform 0.3s ease;
    letter-spacing: -1px;
}

.logo-cypher {
    color: var(--current-text);
}

.logo-x {
    color: var(--primary-color);
    animation: pulse-glow 2s infinite ease-in-out;
    font-weight: 800;
}

@keyframes pulse-glow {
    0% {
        text-shadow: 0 0 8px var(--shadow-glow);
    }

    50% {
        text-shadow: 0 0 20px var(--shadow-glow-hover), 0 0 30px var(--shadow-glow);
    }

    100% {
        text-shadow: 0 0 8px var(--shadow-glow);
    }
}

#sidebar nav {
    flex-grow: 1;
}

#sidebar nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#sidebar nav ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--current-text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

#sidebar nav ul li a:hover,
#sidebar nav ul li a.active {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.2);
}


#sidebar nav ul li a i {
    display: none;
}

#sidebar nav ul li a .nav-link-text {
    padding-left: 15px;
}

.sidebar-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--current-border-color);
}

#user-cypherx-id-sidebar {
    font-size: 1.0rem;
    font-weight: 500;
    color: var(--current-text-muted);
    padding: 8px;
    text-align: center;
    border-radius: 6px;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    display: none;
    opacity: 0.9;
    word-break: break-all;
}

#theme-toggle-button,
#logout-button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--current-border-color);
    color: var(--current-text-muted);
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#theme-toggle-button:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

#logout-button:hover {
    color: var(--destructive-color);
    border-color: var(--destructive-color);
    background-color: rgba(var(--loss-color-rgb), 0.1);
}

#app-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.5s, opacity 0.5s ease, margin-left 0.3s ease;
    overflow-y: auto;
    height: 100vh;
    margin-left: 260px;
}

body.no-sidebar #app-content-wrapper,
body.sidebar-closed #app-content-wrapper {
    margin-left: 0;
}

main#app-content {
    flex-grow: 1;
    padding: 40px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

#app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--current-background);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transition: opacity 0.5s ease;
}

.spinner {
    border: 4px solid rgba(var(--primary-color-rgb), 0.2);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#app-loader p {
    font-weight: 500;
    color: var(--current-text-muted);
}

#app-content-wrapper.loaded {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#sidebar-toggle {
    display: none;

    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1002;
    width: 44px;
    height: 44px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid var(--current-border-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
}

body:not(.sidebar-closed) #sidebar-toggle {
    left: 275px;

}

#interactive-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    background-color: var(--current-background);
    overflow: hidden;
    transition: background-color 0.4s ease;
}

#interactive-background::before {
    display: none;
}

#interactive-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle 500px at var(--mouse-x) var(--mouse-y), rgba(var(--primary-color-rgb), 0.1), transparent 70%);
    transition: background 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) scale(1.05) rotate(-5deg);
    }

    100% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.glass-card {
    background: var(--current-card-background);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--current-border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 30px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    height: 100%;
}

body.dark-theme .glass-card {
    backdrop-filter: none;
}

.glass-card:last-child {
    margin-bottom: 0;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

button {
    background: var(--primary-color);
    color: var(--current-text-buttons);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.2);
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px var(--shadow-glow-hover);
}

button:active {
    transform: translateY(0px) scale(1);
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.2);
}

button.secondary {
    background: transparent;
    border: 2px solid var(--current-border-color);
    color: var(--current-text);
    box-shadow: none;
}

button.secondary:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.2);
}

button.win-button,
button.loss-btn,
.win-btn,
.loss-btn,
#message-box-buttons button,
#scanner-lock-overlay .win-button {
    color: var(--text-dark-theme-buttons) !important;
}

#save-settings-btn,
#confirm-action-btn,
#cancel-action-btn {
    color: var(--text-dark-theme-buttons) !important;
}

.win-btn,
button.win-button {
    background-color: var(--win-color) !important;
    box-shadow: 0 4px 15px rgba(var(--win-color-rgb), 0.3) !important;
}

.win-btn:hover,
button.win-button:hover {
    background-color: #2ca54c !important;
    box-shadow: 0 6px 20px rgba(var(--win-color-rgb), 0.4) !important;
}

.loss-btn {
    background: var(--loss-color) !important;
    box-shadow: 0 4px 15px rgba(var(--loss-color-rgb), 0.3) !important;
}

.loss-btn:hover {
    background-color: #e53228 !important;
    box-shadow: 0 6px 20px rgba(var(--loss-color-rgb), 0.4) !important;
}

button:disabled,
button.secondary:disabled {
    background: var(--current-input-bg) !important;
    color: var(--text-muted-dark-theme) !important;
    border-color: var(--current-input-border) !important;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

input,
select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--current-input-border);
    border-radius: 8px;
    background-color: var(--current-input-bg);
    color: var(--current-text);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.3);
}

.password-wrapper {
    position: relative;
}

.password-toggle,
.email-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-60%);
    cursor: pointer;
    color: var(--current-text-muted);
    transition: color 0.3s ease;
}

.password-toggle:hover,
.email-toggle:hover {
    color: var(--primary-color);
}

.email-blurred {
    filter: blur(4px) !important;
    transition: filter 0.3s ease;
}


.profile-photo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.3);
}

.profile-photo-circle.has-image {
    background: transparent !important;
}

.bot-selection-item {
    text-align: center;
    padding: 15px;
    border: 2px solid var(--current-border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--current-card-background);
}

.bot-selection-item:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-3px);
}

.bot-selection-item.selected {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.2);
}

.bot-selection-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

.bot-selection-item h4 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--current-text);
}


.sidebar-user-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-user-photo i {
    font-size: 1.2rem;
    color: var(--current-text-buttons);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: rgba(var(--primary-color-rgb), 0.05);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.sidebar-user-details {
    flex-grow: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--current-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-id {
    font-size: 0.8rem;
    color: var(--current-text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--current-text-muted);
}

h1,
h2,
h3,
h4 {
    color: var(--current-text);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.1rem;
    color: var(--current-text-muted);
}

h1,
h2,
#start-now-button {
    text-shadow: 0 0 15px var(--shadow-glow);
}

p {
    color: var(--current-text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page-section {
    display: none;
    animation: fadeIn 0.6s ease-out forwards;
}

.page-section.active {
    display: block;
}

.welcome-section {
    padding: 60px 0;
}

.text-muted-item {
    color: var(--current-text-muted);
}

#welcome-page .hero-section {
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
}

#welcome-page .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(var(--primary-color-rgb), 0.1) 0%, transparent 70%);
    z-index: -1;
}

#welcome-page .hero-section h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--current-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease-in-out infinite;
    font-weight: 900;
    letter-spacing: -2px;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

#welcome-page .hero-section p.hero-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--current-text);
    font-weight: 400;
    line-height: 1.6;
}

.hero-cta-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-cta-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--current-text-buttons);
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(var(--primary-color-rgb), 0.4);
}

.hero-cta-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-2px);
}

.welcome-features-section {
    padding: 80px 20px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--current-text-muted);
}

.welcome-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(145deg, rgba(var(--primary-color-rgb), 0.03), rgba(var(--secondary-color-rgb), 0.03));
    border: 1px solid var(--current-border-color);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--secondary-color-rgb), 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(var(--primary-color-rgb), 0.2);
}

.feature-item-content {
    position: relative;
    z-index: 1;
}

.feature-item img {
    height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 25px;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-item:hover img {
    transform: scale(1.05) rotate(2deg);
}

.feature-item img[src*="painelscanner.png"] {
    transform: scale(1.2);
}

.feature-item:hover img[src*="painelscanner.png"] {
    transform: scale(1.25) rotate(2deg);
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--current-text);
    font-weight: 700;
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--current-text-muted);
    margin-bottom: 0;
}

.welcome-stats-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.02), rgba(var(--secondary-color-rgb), 0.02));
    position: relative;
}

.welcome-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,151,226,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.welcome-stats-bar {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.dynamic-stat-item {
    padding: 40px 30px;
    background: linear-gradient(145deg, rgba(var(--primary-color-rgb), 0.05), rgba(var(--secondary-color-rgb), 0.05));
    border: 1px solid var(--current-border-color);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.dynamic-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--secondary-color-rgb), 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.dynamic-stat-item:hover::before {
    opacity: 1;
}

.dynamic-stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(var(--primary-color-rgb), 0.2);
}

.dynamic-stat-item-content {
    position: relative;
    z-index: 1;
}

.dynamic-stat-item i {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: block;
    transition: color 0.3s, transform 0.4s;
}

.dynamic-stat-item:hover i {
    transform: scale(1.15) rotate(5deg);
}

.dynamic-stat-item .stat-value {
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 0 15px var(--shadow-glow);
    margin-bottom: 10px;
    display: block;
}

.dynamic-stat-item .stat-label {
    font-size: 1.1rem;
    color: var(--current-text-muted);
    font-weight: 500;
}


.platform-features-section {
    padding: 80px 20px;
    position: relative;
    background: linear-gradient(135deg, rgba(var(--secondary-color-rgb), 0.02), rgba(var(--primary-color-rgb), 0.02));
}

.platform-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(147,112,219,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
    z-index: 0;
}

.platform-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.platform-feature-item {
    background: linear-gradient(145deg, rgba(var(--secondary-color-rgb), 0.03), rgba(var(--primary-color-rgb), 0.03));
    border: 1px solid var(--current-border-color);
    border-radius: 16px;
    padding: 30px 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.platform-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--secondary-color-rgb), 0.08), rgba(var(--primary-color-rgb), 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.platform-feature-item:hover::before {
    opacity: 1;
}

.platform-feature-item:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(var(--secondary-color-rgb), 0.2);
}

.platform-feature-content {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.platform-feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(var(--secondary-color-rgb), 0.4);
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--current-text-buttons);
}

.platform-feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--current-text);
    font-weight: 700;
}

.platform-feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--current-text-muted);
    margin-bottom: 0;
}


@media (max-width: 768px) {
    #welcome-page .hero-section {
        padding: 60px 15px 50px;
    }

    #welcome-page .hero-section h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
        margin-bottom: 20px;
    }

    #welcome-page .hero-section p.hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-cta-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .welcome-features-section {
        padding: 60px 15px;
    }

    .welcome-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .feature-item {
        padding: 30px 20px;
    }

    .feature-item img {
        height: 140px;
    }

    .welcome-stats-section {
        padding: 60px 15px;
    }

    .welcome-stats-bar {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .dynamic-stat-item {
        padding: 30px 20px;
    }

    .dynamic-stat-item i {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .dynamic-stat-item .stat-value {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .platform-features-section {
        padding: 60px 15px;
    }

    .platform-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .platform-feature-item {
        padding: 25px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .platform-feature-item h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .platform-feature-item p {
        font-size: 0.9rem;
    }
}


.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--primary-hover);
    transform: translateX(-50%) scale(1.1);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


.parallax-element {
    transition: transform 0.1s ease-out;
}


.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation {
    transition-delay: 0.1s;
}

.stagger-animation:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-animation:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-animation:nth-child(4) {
    transition-delay: 0.4s;
}

.dynamic-stat-item .stat-label {
    font-weight: 500;
}

.dynamic-stat-item .stat-value.color-primary {
    color: var(--primary-color);
}

.dynamic-stat-item .stat-value.color-win {
    color: var(--win-color);
}

.dynamic-stat-item .stat-value.color-secondary {
    color: var(--secondary-color);
}


.dynamic-stat-item .stat-value.color-text {
    color: #FFFFFF;
}

.dynamic-stat-item .stat-label {
    color: #FFFFFF;
}

.dynamic-stat-item i.color-primary {
    color: var(--primary-color);
}

.dynamic-stat-item i.color-win {
    color: var(--win-color);
}

.dynamic-stat-item i.color-secondary {
    color: var(--secondary-color);
}

.dynamic-stat-item i.color-text {
    color: #FFFFFF;
}


.guide-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.guide-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--current-border-color);
    border-radius: 12px;
    color: var(--current-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.guide-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
}

.guide-tab.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.15);
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.2);
}

.guide-tab i {
    font-size: 1.2rem;
}

.guide-content {
    position: relative;
}

.guide-tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.guide-tab-content.active {
    display: block;
}

.guide-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.guide-card {
    background: var(--current-card-background);
    border: 1px solid var(--current-border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.15);
}

.guide-card.full-width {
    grid-column: 1 / -1;
}

.guide-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--current-border-color);
}

.guide-card-header i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.guide-card-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--current-text);
}

.guide-card-content {
    color: var(--current-text-muted);
    line-height: 1.6;
}

.guide-card-content p {
    margin-bottom: 15px;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guide-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: var(--current-text-buttons);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--current-text);
}

.step-content p {
    font-size: 0.9rem;
    margin: 0;
}

.guide-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--primary-color);
    width: 16px;
}

.support-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.support-button:hover {
    background: rgba(var(--primary-color-rgb), 0.2);
    transform: translateY(-2px);
}

.guide-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(var(--loss-color-rgb), 0.1);
    border: 1px solid rgba(var(--loss-color-rgb), 0.3);
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.guide-warning i {
    color: var(--loss-color);
    flex-shrink: 0;
}

.characteristics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.char-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 8px;
}

.char-item strong {
    color: var(--current-text);
    font-size: 0.9rem;
}

.char-item span {
    font-size: 0.8rem;
    color: var(--current-text-muted);
}

.direction-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.direction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 8px;
}

.direction-item i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.direction-item div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.direction-item strong {
    color: var(--current-text);
    font-size: 0.9rem;
}

.direction-item span {
    font-size: 0.8rem;
    color: var(--current-text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-explanation {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 8px;
}

.stat-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-info strong {
    color: var(--current-text);
    font-size: 0.9rem;
}

.stat-info span {
    font-size: 0.8rem;
    color: var(--current-text-muted);
}

.glossary-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--current-border-color);
    font-size: 0.9rem;
}

.glossary-item:last-child {
    border-bottom: none;
}

.glossary-item strong {
    color: var(--current-text);
}

.protocol-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.protocol-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.protocol-item i {
    color: var(--primary-color);
    width: 16px;
    flex-shrink: 0;
}

.sharing-rules {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
}

.rule-item.allowed {
    background: rgba(var(--win-color-rgb), 0.1);
    border: 1px solid rgba(var(--win-color-rgb), 0.3);
}

.rule-item.forbidden {
    background: rgba(var(--loss-color-rgb), 0.1);
    border: 1px solid rgba(var(--loss-color-rgb), 0.3);
}

.rule-item i {
    flex-shrink: 0;
    margin-top: 2px;
}

.rule-item.allowed i {
    color: var(--win-color);
}

.rule-item.forbidden i {
    color: var(--loss-color);
}

.rule-item div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rule-item strong {
    color: var(--current-text);
    font-size: 0.9rem;
}

.rule-item span {
    font-size: 0.85rem;
    color: var(--current-text-muted);
}


@media (max-width: 768px) {
    .guide-cards-grid {
        grid-template-columns: 1fr;
    }

    .guide-tabs {
        gap: 5px;
    }

    .guide-tab {
        min-width: 80px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .characteristics-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}


.welcome-testimonials {
    display: block;
}

#testimonial-ticker-container {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin-top: 25px;
}

#testimonial-ticker-container .ticker-wrap {
    display: flex;
    width: fit-content;
    animation: ticker-scroll 120s linear infinite;
}

#testimonial-ticker-container:before,
#testimonial-ticker-container:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
}

#testimonial-ticker-container:before {
    left: 0;
    background: linear-gradient(to right, var(--current-background), transparent);
}

#testimonial-ticker-container:after {
    right: 0;
    background: linear-gradient(to left, var(--current-background), transparent);
}

.testimonial-ticker-content {
    display: flex;
    flex-shrink: 0;
    gap: 25px;
    padding: 0 12.5px;
}

.testimonial-ticker-content .testimonial-card {
    display: inline-flex;
    flex-direction: column;
    width: 380px;
    flex-shrink: 0;
    white-space: normal;
    margin-bottom: 0;
    padding: 25px;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border: 1px solid var(--current-border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-ticker-content .testimonial-card:hover {
    transform: translateY(-5px) !important;

    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}


.testimonial-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.testimonial-card p {
    font-style: italic;
    position: relative;
    padding-left: 30px;
    flex-grow: 1;
}

.testimonial-card p::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.testimonial-author {
    margin-top: 15px;
    font-weight: 700;
    text-align: right;
    color: var(--current-text);
}

#start-now-button {
    font-size: 1.2rem;
    padding: 15px 40px;
}

#welcome-page-main-grid {
    display: grid;
    grid-template-columns: minmax(450px, 1fr) 1.5fr;
    gap: 40px;
    align-items: start;
}

#subscription-info-card {
    margin: 0 !important;
    align-self: stretch;
}

.faq-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
}

#app-header-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    background: var(--current-header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--current-border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-mobile {
    text-decoration: none;
}

.logo-mobile .logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-mobile .logo-cypher {
    color: var(--current-text);
}

.logo-mobile .logo-x {
    color: var(--primary-color);
    animation: pulse-glow 2s infinite ease-in-out;
    font-weight: 800;
}

@media (max-width: 1200px) {
    #welcome-page-main-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    #subscription-info-card {
        max-width: 600px;
        margin: 0 auto !important;
    }
}

@media (max-width: 992px) {
    body {
        flex-direction: column;
    }

    #app-content-wrapper {
        margin-left: 0;
    }

    main#app-content {
        padding: 20px;
    }

    #app-header-mobile {
        display: flex;
    }

    #bots-page-grid,
    #welcome-page-main-grid,
    #inicio-page>div {
        grid-template-columns: 1fr;
    }

    #price-ticker-container .ticker-wrap {
        animation-duration: 60s;

    }

    .ticker-content,
    .ticker-content-clone {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

.accordion-item {
    border-radius: 12px;
    border-color: var(--current-border-color);
    background: transparent;
    overflow: hidden;
    margin-bottom: 0;
}

.accordion-header {
    background: rgba(var(--primary-color-rgb), 0.05);
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.accordion-header.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: rgba(var(--primary-color-rgb), 0.02);
}

.accordion-content.active {
    padding: 20px;
}

.accordion-content ul {
    list-style-type: none;
    padding-left: 5px;
}

.accordion-content ul li {
    margin-bottom: 10px;
}

.accordion-content ul li strong {
    color: var(--current-text);
}

.accordion-content h4 {
    font-size: 1.05rem;
    margin-top: 10px;
    margin-bottom: 8px;
    color: var(--current-text);
}

#auth-page .auth-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 40px 30px 30px 30px;
    position: relative;
}

#auth-page .auth-container .form-toggle {
    margin-top: 25px;
    text-align: center;
}

.login-form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -5px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.login-form-extras label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    color: var(--current-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
}

.login-form-extras input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.1);
}

.login-form-extras a {
    font-size: 0.9rem;
}

#inicio-status-message.status-success {
    background-color: rgba(var(--win-color-rgb), 0.1);
    border-color: var(--win-color);
    color: var(--win-color);
}

#inicio-status-message.status-error {
    background-color: rgba(var(--loss-color-rgb), 0.1);
    border-color: var(--loss-color);
    color: var(--loss-color);
}

#inicio-status-message a {
    font-weight: bold;
    text-decoration: underline;
}

#inicio-status-message a:hover {
    color: var(--current-text);
}

.currency-converter-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.converter-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.converter-select-wrapper img {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.converter-select-wrapper select {
    padding-left: 40px;
    margin-bottom: 0;
}

.currency-converter-grid i {
    font-size: 1.2rem;
}

#converter-result {
    margin-top: 15px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    min-height: 28px;
}

#fear-and-greed-widget {
    text-align: center;
}

#fear-and-greed-widget .value-span {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

#fear-and-greed-widget .classification-span {
    font-weight: 500;
    font-size: 1rem;
}


#bots-page-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: flex-start;
}

.bot-list-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-list-item {
    padding: 12px 15px;
    border: 1px solid var(--current-border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bot-list-item:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border-color: var(--primary-color);
}

.bot-list-item.active {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.2);
}

.bot-list-item-emoji {
    font-size: 1.5rem;
}

.bot-list-item-name {
    font-weight: 600;
}

.bot-details-panel .glass-card {
    margin-bottom: 0;
}

.bot-details-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

#bot-profile-emoji {
    height: 9rem;
    width: auto;
    max-height: 12rem;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    margin-left: 20px;
}

.bot-details-title-group h3 {
    margin-bottom: 0.25rem;
    font-size: 2.2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--shadow-glow);
}

#bot-profile-description .keyword-support,
#bot-profile-description .keyword-lta,
#bot-profile-description .keyword-pullback-win {
    font-weight: 700;
    color: var(--win-color);
    text-shadow: 0 0 8px rgba(var(--win-color-rgb), 0.7);
}

#bot-profile-description .keyword-resistance,
#bot-profile-description .keyword-ltb,
#bot-profile-description .keyword-throwback-loss {
    font-weight: 700;
    color: var(--loss-color);
    text-shadow: 0 0 8px rgba(var(--loss-color-rgb), 0.7);
}

#bot-profile-description .keyword-fluxo {
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(var(--secondary-color-rgb), 0.7);
}

#bot-profile-description .keyword-primary {
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.7);
}

#bot-profile-description .keyword-lateral {
    font-weight: 700;
    color: var(--current-text);
    text-shadow: 0 0 6px var(--current-text);
}


#bot-radar-chart-container {
    position: relative;
    height: 350px;
    margin-top: 20px;
}

#risk-management-page .risk-management-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--current-border-color);
    justify-content: center;
    flex-wrap: wrap;
}

#risk-management-page .risk-management-tab-btn {
    padding: 12px 22px;
    font-size: 1rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--current-text-muted);
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    font-weight: 500;
}

#risk-management-page .risk-management-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

#risk-management-page .risk-management-tab-btn:hover {
    color: var(--primary-hover);
}

#risk-management-page .risk-management-sub-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

#risk-management-page .risk-management-sub-section.active {
    display: block;
}

.management-panel .data-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.management-panel .data-item {
    padding: 15px;
    background-color: var(--current-input-bg);
    border-radius: 10px;
    border: 1px solid var(--current-input-border);
    text-align: center;
}

.management-panel .data-item .label {
    font-size: 0.9rem;
    color: var(--current-text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.management-panel .data-item .value {
    font-size: 1.6rem;
    font-weight: 700;
}

.management-panel .data-item .value.profit {
    color: var(--win-color);
}

.management-panel .data-item .value.loss {
    color: var(--loss-color);
}

#op-proxima-entrada {
    color: var(--primary-color);
    font-size: 2.5rem !important;
    text-shadow: 0 0 10px var(--shadow-glow);
}

.management-panel .progress-bar-container {
    background-color: var(--progress-bar-bg);
    border-radius: 8px;
    height: 12px;
    margin-top: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.management-panel .progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    transition: width 0.5s ease-out;
}

.management-panel .history-list {
    min-height: 50px;
    max-height: 150px;
    overflow-y: auto;
    padding: 10px;
    margin-top: 15px;
    background-color: var(--current-input-bg);
    border-radius: 8px;
    border: 1px solid var(--current-input-border);
}

.management-panel .history-item {
    padding: 8px 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--current-border-color);
    display: flex;
    justify-content: space-between;
}

.management-panel .history-item:last-child {
    border-bottom: none;
}

.management-panel .history-item .result.win {
    color: var(--win-color);
    font-weight: 600;
}

.management-panel .history-item .result.loss {
    color: var(--loss-color);
    font-weight: 600;
}

.management-panel .action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.management-panel .action-buttons button {
    padding: 12px 20px;
    font-size: 1rem;
    flex-grow: 1;
}

.management-panel .management-footer-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.management-panel .management-footer-actions button {
    flex-grow: 1;
    max-width: 220px;
}

.gradient-blue-message {
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.risk-plan-legend {
    font-size: 0.85rem;
    color: var(--current-text-muted);
    margin-top: -10px;
    margin-bottom: 15px;
    padding: 8px 12px;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 4px 4px 0;
    min-height: 40px;
}

#scanner-page {
    position: relative;
}

#scanner-grid-container {
    display: flex;
    flex-direction: column;
}

.scanner-page-chart-panel-wrapper {
    position: relative;
    background: linear-gradient(145deg, rgba(var(--primary-color-rgb), 0.02), rgba(var(--primary-color-rgb), 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(var(--primary-color-rgb), 0.1);
    transition: all 0.4s ease;
    margin-bottom: 20px;
    width: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scanner-page-chart-panel-wrapper::before {
    content: attr(data-user-id);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(var(--primary-color-rgb), 0.02);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    font-family: 'Inter', monospace;
    letter-spacing: 2px;
}

.scanner-page-chart-panel-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(var(--primary-color-rgb), 0.3);
    border-color: rgba(var(--primary-color-rgb), 0.4);
}

.chart-container {
    border-radius: 8px;
    border: 1px solid var(--current-border-color);
    position: relative;
    flex-grow: 1;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Chart container removido - não é mais necessário */

/* User ID Watermarks */
.user-watermark {
    position: absolute;
    color: rgba(var(--primary-color-rgb), 0.08);
    font-weight: 700;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    transform: rotate(-15deg);
    font-family: 'Inter', monospace;
    letter-spacing: 1px;
}

.user-watermark-large {
    font-size: 2.5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    opacity: 0.03;
}

.user-watermark-medium {
    font-size: 1.8rem;
    opacity: 0.05;
}

.user-watermark-small {
    font-size: 1.2rem;
    opacity: 0.06;
}

.user-watermark-tiny {
    font-size: 0.9rem;
    opacity: 0.08;
}

.user-watermark-1 {
    top: 15%;
    right: 10%;
    transform: rotate(25deg);
}

.user-watermark-2 {
    bottom: 20%;
    left: 8%;
    transform: rotate(-35deg);
}

.user-watermark-3 {
    top: 30%;
    left: 15%;
    transform: rotate(45deg);
}

.user-watermark-4 {
    bottom: 35%;
    right: 12%;
    transform: rotate(-25deg);
}

.user-watermark-5 {
    top: 60%;
    right: 20%;
    transform: rotate(15deg);
}

.user-watermark-6 {
    bottom: 10%;
    left: 40%;
    transform: rotate(-45deg);
}

/* Signal Path Styles */
.signal-path-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(var(--primary-color-rgb), 0.02);
    border-radius: 12px;
    border: 1px solid var(--current-border-color);
    gap: 0;
    position: relative;
    overflow: hidden;
}

.signal-path-container::before {
    content: attr(data-user-id);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(var(--primary-color-rgb), 0.03);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    font-family: 'Inter', monospace;
    letter-spacing: 1px;
}

.signal-path-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    opacity: 0.3;
    transition: all 0.4s ease;
}

.signal-path-step.active {
    opacity: 1;
    transform: scale(1.1);
}

.signal-path-step.completed {
    opacity: 0.8;
}

.signal-path-step.waiting {
    opacity: 0.6;
}

.signal-path-step.waiting .signal-path-icon {
    background: rgba(var(--secondary-color-rgb), 0.2);
    border-color: var(--secondary-color);
    animation: waitingPulse 1.5s infinite;
}

.signal-path-step.waiting .signal-path-icon i {
    color: var(--secondary-color);
}

.signal-path-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--current-text-muted-rgb), 0.1);
    border: 2px solid var(--current-border-color);
    transition: all 0.4s ease;
}

.signal-path-step.active .signal-path-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px rgba(var(--primary-color-rgb), 0.5);
    animation: neonPulse 2s infinite;
}

.signal-path-step.completed .signal-path-icon {
    background: rgba(var(--win-color-rgb), 0.2);
    border-color: var(--win-color);
    box-shadow: 0 0 10px rgba(var(--win-color-rgb), 0.3);
}

.signal-path-step[data-step="signal"].active .signal-path-icon {
    background: var(--win-color);
    border-color: var(--win-color);
    box-shadow: 0 0 20px var(--win-color), 0 0 40px rgba(var(--win-color-rgb), 0.5);
}

.signal-path-step[data-step="signal"].active.sell .signal-path-icon {
    background: var(--loss-color);
    border-color: var(--loss-color);
    box-shadow: 0 0 20px var(--loss-color), 0 0 40px rgba(var(--loss-color-rgb), 0.5);
}

.signal-path-step[data-step="outcome1"].completed.win .signal-path-icon,
.signal-path-step[data-step="outcome2"].completed.win .signal-path-icon {
    background: var(--win-color);
    border-color: var(--win-color);
    box-shadow: 0 0 15px var(--win-color), 0 0 30px rgba(var(--win-color-rgb), 0.4);
}

.signal-path-step[data-step="outcome1"].completed.loss .signal-path-icon,
.signal-path-step[data-step="outcome2"].completed.loss .signal-path-icon {
    background: var(--loss-color);
    border-color: var(--loss-color);
    box-shadow: 0 0 15px var(--loss-color), 0 0 30px rgba(var(--loss-color-rgb), 0.4);
}

.signal-path-icon i {
    font-size: 1.2rem;
    color: var(--current-text-muted);
    transition: color 0.4s ease;
}

.signal-path-step.active .signal-path-icon i,
.signal-path-step.completed .signal-path-icon i {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.signal-path-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--current-text-muted);
    text-align: center;
    transition: color 0.4s ease;
}

.signal-path-step.active .signal-path-label {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.6);
}

.signal-path-step.completed .signal-path-label {
    color: var(--current-text);
}

.signal-path-time {
    font-size: 0.7rem;
    color: var(--current-text-muted);
    font-weight: 500;
    transition: color 0.4s ease;
}

.signal-path-step.active .signal-path-time,
.signal-path-step.completed .signal-path-time {
    color: var(--current-text);
    font-weight: 600;
}

.signal-path-connector {
    width: 40px;
    height: 2px;
    background: var(--current-border-color);
    position: relative;
    transition: all 0.4s ease;
}

.signal-path-connector.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.6);
}

@keyframes neonPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--primary-color), 0 0 40px rgba(var(--primary-color-rgb), 0.5);
    }

    50% {
        box-shadow: 0 0 30px var(--primary-color), 0 0 60px rgba(var(--primary-color-rgb), 0.8);
    }
}

@keyframes waitingPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .signal-path-container {
        gap: 0;
        padding: 10px;
    }

    .signal-path-step {
        min-width: 60px;
    }

    .signal-path-icon {
        width: 32px;
        height: 32px;
    }

    .signal-path-icon i {
        font-size: 1rem;
    }

    .signal-path-connector {
        width: 25px;
    }

    .signal-path-label {
        font-size: 0.7rem;
    }

    .signal-path-time {
        font-size: 0.6rem;
    }
}

.scanner-page-chart-canvas {
    background-color: transparent;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
}

#price-ticker-container {
    background: var(--current-card-background);
    border: 1px solid var(--current-border-color);
    border-radius: 12px;
    padding: 10px 0;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    display: none;

}

#price-ticker-container:before,
#price-ticker-container:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
}

#price-ticker-container:before {
    left: 0;
    background: linear-gradient(to right, var(--current-card-background), transparent);
}

#price-ticker-container:after {
    right: 0;
    background: linear-gradient(to left, var(--current-card-background), transparent);
}

.ticker-wrap {
    display: flex;
    width: 200%;
    animation: ticker-scroll 100s linear infinite;
}

.ticker-content,
.ticker-content-clone {
    display: flex;
    width: 50%;
    justify-content: space-around;
    align-items: center;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.95rem;
}

.ticker-item .symbol {
    font-weight: 700;
    color: var(--current-text);
}

.ticker-item .price {
    font-weight: 500;
    transition: color 0.2s ease-out;
}

.ticker-item .price.up {
    color: var(--win-color);
    text-shadow: 0 0 5px var(--win-color);
}

.ticker-item .price.down {
    color: var(--loss-color);
    text-shadow: 0 0 5px var(--loss-color);
}


footer {
    width: 100%;
    text-align: center;
    padding: 20px 40px;
    margin-top: auto;
    border-top: 1px solid var(--current-border-color);
    color: var(--current-text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    background-color: transparent;
}

footer p {
    margin: 0;
}

#toast-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.toast-notification {
    position: relative;
    background-color: var(--current-card-background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    color: var(--current-text);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border-left-width: 5px;
    border-left-style: solid;
    opacity: 0;
    transform: translateX(120%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-width: 280px;
    padding: 15px 40px 15px 15px;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.success {
    border-left-color: var(--win-color);
}

.toast-notification.error {
    border-left-color: var(--destructive-color);
}

.toast-notification.info {
    border-left-color: var(--primary-color);
}

.toast-notification.signal-buy {
    border-left-color: var(--candle-buy-signal);
}

.toast-notification.signal-sell {
    border-left-color: var(--candle-sell-signal);
}

.toast-notification.golden-signal {
    background: linear-gradient(145deg, #FFD700, #F0C400);
    border-left-color: #B8860B;
    color: #000;
}

.toast-notification.golden-signal h4 {
    color: #000;
}

.toast-notification.golden-signal p {
    color: #333;
}

.toast-notification h4 {
    color: var(--current-text);
    margin: 0 0 5px 0;
    font-size: 1em;
}

.toast-notification p {
    color: var(--current-text-muted);
    margin: 0;
    font-size: 0.9em;
}

.toast-notification .toast-icon {
    font-size: 1.3em;
    margin-right: 10px;
}

.toast-close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: var(--current-text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
}

.toast-notification.golden-signal .toast-close-btn {
    color: #333;
}

.toast-user-id {
    position: absolute;
    bottom: 4px;
    right: 8px;
    font-size: 0.7rem;
    color: rgba(var(--current-text-muted-rgb), 0.6);
    font-weight: 500;
    font-family: 'Inter', monospace;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.toast-notification.golden-signal .toast-user-id {
    color: rgba(0, 0, 0, 0.4);
}

.toast-close-btn:hover {
    color: var(--current-text);
}

#message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 380px;
    width: 90%;
    padding: 20px;
    min-height: auto;
    max-height: 70vh;
    overflow-y: auto;
}

#message-box-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
    width: 100%;
}

#message-box-buttons .button-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

#message-box-buttons .back-to-last-order {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: 1px solid var(--current-border-color) !important;
}

#message-box-buttons .back-to-last-order:hover {
    background: #F0F0F0 !important;
    color: #000000 !important;
}


#message-box h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

#message-box p {
    margin-bottom: 15px;
    line-height: 1.4;
}

#message-box-buttons {
    margin-top: 15px;
}

#message-box-buttons button {
    padding: 10px 20px;
    font-size: 0.9rem;
}


#message-box.compact {
    padding: 12px 18px;
    max-width: 320px;
    min-height: auto;
}

#message-box.compact h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

#message-box.compact p {
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

#message-box.compact #message-box-buttons {
    margin-top: 8px;
}


#message-box.compact.simple-confirm #message-box-buttons {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 12px !important;
    align-items: center !important;
}

#message-box.compact.simple-confirm .button-row {
    width: auto !important;
}

#message-box.simple-confirm #message-box-buttons {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 12px !important;
    align-items: center !important;
}


.glass-card.compact.simple-confirm #message-box-buttons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
}

.glass-card.compact.simple-confirm #message-box-buttons button {
    flex: 0 0 auto !important;
    margin: 0 !important;
}


.glass-card.simple-confirm #message-box-buttons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

.glass-card.simple-confirm #message-box-buttons button {
    display: inline-block !important;
    width: auto !important;
    min-width: 80px !important;
}

#risk-level-selector {
    margin: 15px 0;
    text-align: left;
    width: 100%;
}

#risk-level-selector label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.2s;
    border: 1px solid var(--current-input-border);
    display: flex;
    align-items: center;
}

#risk-level-selector label:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-color: var(--primary-color);
}

#risk-level-selector input[type="radio"] {
    margin-right: 12px;
    width: auto;
    margin-bottom: 0;
    transform: scale(1.2);
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1999;
    display: none;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

body.scanner-locked #overlay {
    background-color: rgba(0, 0, 0, 1);
    backdrop-filter: none;
}


.chart-bottom-notification {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 700;
    text-shadow: 0 0 8px currentColor, 0 0 12px currentColor;
    z-index: 10;
    opacity: 0;
    transition: opacity .3s ease-in-out, transform .3s ease-in-out;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: .5px
}

.chart-bottom-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px)
}

.chart-bottom-notification-buy {
    background-color: rgba(var(--win-color-rgb), .15);
    color: var(--win-color);
    border: 1.5px solid var(--win-color);
    box-shadow: 0 0 10px var(--win-color), 0 0 15px rgba(var(--win-color-rgb), .7)
}

.chart-bottom-notification-sell {
    background-color: rgba(var(--loss-color-rgb), .15);
    color: var(--loss-color);
    border: 1.5px solid var(--loss-color);
    box-shadow: 0 0 10px var(--loss-color), 0 0 15px rgba(var(--loss-color-rgb), .7)
}

.chart-background-watermark,
.stats-watermark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--current-chart-grid-color);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    text-transform: uppercase;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

.chart-background-watermark {
    font-size: clamp(4rem, 12vw, 8rem);
    transform: rotate(-30deg) scale(1.2);
    display: none;
}

.stats-watermark {
    font-size: clamp(2.5rem, 10vw, 5rem);
    transform: rotate(-25deg) scale(1.1);
    opacity: 0.4;
    display: flex;
}

.scanner-page-chart-loading-message {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--current-text);
    font-size: 1rem;
    text-align: center;
    background-color: rgba(13, 17, 23, .9);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 10;
    gap: 8px
}

.chart-controls-common {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: rgba(var(--primary-color-rgb), 0.03);
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.chart-controls-common .selector-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(var(--current-card-background), 0.8);
    border-radius: 8px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    transition: all 0.3s ease;
}

.chart-controls-common .selector-group:hover {
    background: rgba(var(--primary-color-rgb), 0.05);
    border-color: rgba(var(--primary-color-rgb), 0.2);
}

.chart-controls-common label {
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(var(--primary-color-rgb), 0.3);
}

.chart-controls-common select,
.chart-controls-common button {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
    border-radius: 8px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    background: rgba(var(--current-card-background), 0.9);
    color: var(--current-text);
    transition: all 0.3s ease;
}

.chart-controls-common select:hover,
.chart-controls-common button:hover {
    border-color: rgba(var(--primary-color-rgb), 0.4);
    background: rgba(var(--primary-color-rgb), 0.05);
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.2);
}

.backtest-stats {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.08), rgba(var(--primary-color-rgb), 0.03));
    border-radius: 10px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.15);
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.4);
}

.backtest-stats .accuracy.good {
    color: var(--win-color);
    font-weight: 700;
}

.backtest-stats .accuracy.bad {
    color: var(--loss-color);
    font-weight: 700;
}

.backtest-stats .accuracy.medium {
    color: var(--current-text);
}


.detailed-stats-container {
    margin: 15px auto;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05), rgba(var(--primary-color-rgb), 0.02));
    border: 1px solid rgba(var(--primary-color-rgb), 0.15);
    max-width: 1100px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    flex-grow: 1;
    min-height: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stats-main-content {
    grid-column: 1 / 2;
}

.detailed-bot-stats,
.pos-start-stats-wrapper,
.signal-history-string,
.user-id-in-chart-panel {
    position: relative;
    z-index: 1;
}

.detailed-bot-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.stat-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
    justify-content: center;
    padding: 15px;
    background: rgba(var(--primary-color-rgb), 0.03);
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    transition: all 0.3s ease;
}

.stat-block:hover {
    background: rgba(var(--primary-color-rgb), 0.05);
    border-color: rgba(var(--primary-color-rgb), 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.05);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item .stat-label {
    color: var(--current-text-muted);
    margin-right: 5px;
    white-space: nowrap;
}

.stat-item .stat-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(var(--primary-color-rgb), 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-item .stat-value.good {
    color: var(--win-color);
}

.stat-item .stat-value.bad {
    color: var(--loss-color);
}

.stat-item .stat-value.medium {
    color: var(--current-text);
}

.win-text {
    color: var(--win-color);
}

.loss-text {
    color: var(--loss-color);
}

.stat-item .fa-arrow-up {
    color: var(--win-color);
    margin-left: 4px;
}

.stat-item .fa-arrow-down {
    color: var(--loss-color);
    margin-left: 4px;
}

.pos-start-stats-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(var(--secondary-color-rgb), 0.05), rgba(var(--secondary-color-rgb), 0.02));
    border-radius: 12px;
    border: 1px solid rgba(var(--secondary-color-rgb), 0.15);
}

.pos-start-stats-wrapper .stat-item {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 10px;
    background: rgba(var(--current-card-background), 0.5);
    border-radius: 8px;
    border: 1px solid rgba(var(--secondary-color-rgb), 0.1);
    transition: all 0.3s ease;
}

.pos-start-stats-wrapper .stat-item:hover {
    background: rgba(var(--secondary-color-rgb), 0.05);
    border-color: rgba(var(--secondary-color-rgb), 0.2);
    transform: translateY(-1px);
}

.pos-start-stats-wrapper .stat-label {
    font-size: 0.8rem;
}

.pos-start-stats-wrapper .stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(var(--secondary-color-rgb), 0.3);
}

.signal-history-string {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--current-border-color);
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    min-height: 55px;
    max-height: none;
}

.history-item-wrapper {
    position: relative;
    font-size: 1.2rem;
    line-height: 1;
    width: 40px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin: 2px;
}

.history-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    line-height: 1;
}

.history-arrow.up {
    bottom: 5px;
    color: var(--win-color);
}

.history-arrow.down {
    top: 5px;
    color: var(--loss-color);
}

.history-timestamp {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--current-text-muted);
    white-space: nowrap;
}

.history-timestamp.up {
    bottom: -10px;
}

.history-timestamp.down {
    top: -10px;
}

.user-id-in-chart-panel {
    font-size: 0.75rem;
    text-align: center;
    color: var(--current-text-muted);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--current-border-color);
    margin-bottom: 0;
}

.scanner-panel-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.6);
    position: relative;
    padding-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.scanner-panel-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
}

.candle-countdown {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(var(--secondary-color-rgb), 0.08), rgba(var(--secondary-color-rgb), 0.03));
    border-radius: 20px;
    border: 1px solid rgba(var(--secondary-color-rgb), 0.2);
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(var(--secondary-color-rgb), 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.scanner-panel-title .floating-emoji {
    display: inline-block;
    font-size: 1.6rem;
}

.chart-panel-ticker-info {
    text-align: center;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    min-height: 28px;
}

.signal-arrows {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.03), rgba(var(--primary-color-rgb), 0.01));
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.signal-arrow {
    font-size: 4rem;
    color: var(--current-text-muted);
    opacity: 0.3;
    transition: all 0.4s ease;
    padding: 15px;
    border-radius: 50%;
    background: rgba(var(--current-card-background), 0.5);
    border: 2px solid rgba(var(--current-text-muted-rgb), 0.1);
}

.signal-arrow.active-buy {
    color: var(--win-color);
    text-shadow: 0 0 25px var(--win-color);
    opacity: 1;
    transform: scale(1.1);
    background: rgba(var(--win-color-rgb), 0.1);
    border-color: var(--win-color);
    box-shadow: 0 0 30px rgba(var(--win-color-rgb), 0.4);
    animation: neonPulse 2s infinite;
}

.signal-arrow.active-sell {
    color: var(--loss-color);
    text-shadow: 0 0 25px var(--loss-color);
    opacity: 1;
    transform: scale(1.1);
    background: rgba(var(--loss-color-rgb), 0.1);
    border-color: var(--loss-color);
    box-shadow: 0 0 30px rgba(var(--loss-color-rgb), 0.4);
    animation: neonPulse 2s infinite;
}

@media (max-width: 992px) {
    .detailed-stats-container {
        grid-template-columns: 1fr;
    }

    .signal-arrows {
        display: none;
    }

    .signal-history-string {
        gap: 10px;
        justify-content: flex-start;
    }

    .history-item-wrapper {
        width: 35px;
        height: 45px;
        font-size: 1.1rem;
    }
}

.promo-label-tag {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--destructive-color);
    color: white;
    padding: 6px 16px;
    font-weight: bold;
    font-size: 0.9em;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

#scanner-grid-container.scanner-content-blurred,
#scanner-page-title.scanner-content-blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.3s ease;
}

#scanner-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 20px;
}

#scanner-lock-overlay .glass-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 550px;
    padding: 40px;
    margin: 0;
}

#scanner-lock-overlay .lock-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

#scanner-lock-overlay h2 {
    margin-bottom: 0;
    font-size: 2.2rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--shadow-glow);
}

#scanner-lock-overlay .lock-title-group i {
    font-size: 2.2rem;
    color: var(--primary-color);
}

#scanner-lock-overlay p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

#scanner-lock-overlay .lock-overlay-notice {
    color: var(--destructive-color);
    font-size: 0.9rem;
    margin-top: -15px;
    margin-bottom: 20px;
    font-weight: 500;
}

#scanner-lock-overlay .lock-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

#scanner-lock-overlay .win-button {
    color: var(--text-dark-theme-buttons) !important;
}

body.dark-theme #back-to-welcome-btn {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-theme #back-to-welcome-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.faq-category {
    margin-bottom: 2rem;
}

.faq-category h3 {
    border-bottom: 2px solid var(--current-border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

#mini-rm-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--current-text-buttons);
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: grab;
    box-shadow: 0 5px 15px var(--shadow-color);
    z-index: 1050;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#mini-rm-toggle-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-hover);
}

#mini-rm-widget {
    position: fixed;
    top: 150px;
    left: 150px;
    width: 280px;
    min-width: 240px;
    height: auto;
    min-height: 220px;
    z-index: 1051;
    display: none;
    flex-direction: column;
    padding: 0;
    resize: both;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

#mini-rm-widget-header {
    padding: 10px 15px;
    background-color: rgba(var(--primary-color-rgb), 0.15);
    cursor: grab;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--current-border-color);
    user-select: none;
}

#mini-rm-widget-header i.fa-arrows-alt {
    margin-right: 10px;
    color: var(--current-text-muted);
}

#mini-rm-widget-close-btn {
    background: none;
    border: none;
    color: var(--current-text-muted);
    font-size: 1.5rem;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

#mini-rm-widget-close-btn:hover {
    color: var(--current-text);
}

#mini-rm-widget-content {
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    flex-grow: 1;
    transition: font-size 0.1s linear;
}

.mini-rm-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8em;
}

.mini-rm-data-item {
    text-align: center;
    background-color: var(--current-input-bg);
    border-radius: 8px;
    padding: 0.8em;
}

.mini-rm-data-item .label {
    font-size: 0.7em;
    color: var(--current-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.4em;
}

.mini-rm-data-item .value {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--primary-color);
}

.mini-rm-data-item .value.profit {
    color: var(--win-color);
}

.mini-rm-data-item .value.loss {
    color: var(--loss-color);
}

.mini-rm-action-buttons {
    display: flex;
    gap: 0.8em;
}

.mini-rm-action-buttons button {
    flex-grow: 1;
    font-size: 1em;
    padding: 0.8em;
}

#mini-op-delete-btn {
    width: 100%;
    font-size: 0.9em;
    padding: 0.6em;
    border-radius: 6px;
}

#mini-op-delete-btn i {
    margin-right: 0.5em;
}


@keyframes pulse-border-buy {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--win-color-rgb), 0.7), inset 0 0 10px rgba(var(--win-color-rgb), 0.1);
    }

    70% {
        box-shadow: 0 0 15px 10px rgba(var(--win-color-rgb), 0), inset 0 0 15px rgba(var(--win-color-rgb), 0.3);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--win-color-rgb), 0), inset 0 0 10px rgba(var(--win-color-rgb), 0.1);
    }
}

@keyframes pulse-border-sell {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--loss-color-rgb), 0.7), inset 0 0 10px rgba(var(--loss-color-rgb), 0.1);
    }

    70% {
        box-shadow: 0 0 15px 10px rgba(var(--loss-color-rgb), 0), inset 0 0 15px rgba(var(--loss-color-rgb), 0.3);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--loss-color-rgb), 0), inset 0 0 10px rgba(var(--loss-color-rgb), 0.1);
    }
}

.scanner-page-chart-panel-wrapper.pulsing-buy {
    border-color: var(--win-color);
    animation: pulse-border-buy 2s infinite;
}

.scanner-page-chart-panel-wrapper.pulsing-sell {
    border-color: var(--loss-color);
    animation: pulse-border-sell 2s infinite;
}