/* =========================================
   CSS Variables & Theming
   ========================================= */
   :root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --bg-sidebar: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    
    --signal-buy: #10b981;  /* Emerald */
    --signal-buy-bg: rgba(16, 185, 129, 0.1);
    
    --signal-sell: #ef4444; /* Red */
    --signal-sell-bg: rgba(239, 68, 68, 0.1);
    
    --signal-neutral: #64748b; /* Slate */
    --signal-neutral-bg: rgba(100, 116, 139, 0.1);
    
    --border-color: #334155;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-darker);
}

/* =========================================
   Layout
   ========================================= */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.05);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.sidebar-top {
    padding: 2.5rem 1.5rem 1rem 1.5rem;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.logo {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    display: block;
}

.search-container {
    margin-bottom: 1rem;
}

#search-input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s;
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-section {
    margin-bottom: 1rem;
}

.sidebar-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0 1.5rem 0;
}

.accordion-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    padding: 0.8rem 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
    user-select: none;
}

.accordion-header:hover {
    color: var(--text-primary);
}

.result-count {
    font-size: 0.75rem;
    color: var(--accent-blue);
    margin-left: 0.5rem;
    font-weight: 700;
}

.accordion-header.active .result-count {
    color: var(--accent-blue);
}

.accordion-header .arrow {
    transition: transform 0.3s ease;
}

.accordion-header.active .arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.asset-list {
    list-style: none;
}

.asset-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asset-list li:hover {
    background-color: var(--bg-card);
}

.asset-list li.active {
    background-color: var(--accent-blue);
    color: white;
}

.sidebar-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.asset-list li .symbol {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.asset-list li .fullname {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    letter-spacing: 0.2px;
}

.asset-list li.active .fullname, .asset-list li:hover .fullname {
    color: rgba(255, 255, 255, 0.6);
}

.asset-list li .price-change {
    font-size: 0.85rem;
    font-weight: 600;
}

.change-positive { color: var(--signal-buy); }
.change-negative { color: var(--signal-sell); }

.asset-list li.active .change-positive,
.asset-list li.active .change-negative {
    color: rgba(255, 255, 255, 0.9);
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top right, #1e293b 0%, #020617 100%);
    overflow: hidden;
}

.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 1; /* Keep content area below the topbar to allow absolute dropdown menus to display on top */
}

/* Navigation Tabs in Topbar */
.topbar-nav {
    display: none !important; /* Hide navigation tabs on desktop in favor of the dropdown */
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.topbar-nav .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.topbar-nav .nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.topbar-nav .nav-link.active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Navigation Selector Dropdown (visible in center on desktop and mobile) */
.mobile-nav-selector {
    display: block;
    width: 100%;
    max-width: 300px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1000;
}

.mobile-dropdown-btn {
    width: 100%;
    padding: 0.65rem 1.25rem;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(8px);
}

.mobile-dropdown-btn:hover, .mobile-dropdown-btn:focus {
    border-color: var(--accent-blue);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.mobile-dropdown-btn .arrow {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.mobile-nav-selector.open .mobile-dropdown-btn .arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-selector.open .mobile-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-dropdown-menu .dropdown-item {
    padding: 0.8rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    text-align: left;
}

.mobile-dropdown-menu .dropdown-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-menu .dropdown-item.active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.15);
    border-left-color: var(--accent-blue);
}

.topbar {
    height: 70px;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    margin-top: 2px; /* Pequeña separación del ticker */
    position: relative;
    z-index: 100; /* Ensure dropdown menu is drawn on top of the content area */
}

.topbar-logo-link {
    display: none;
}

.btn-news {
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-news:hover {
    background: #2563eb;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar h2 {
    display: none !important; /* Hide to prevent collision with the centered dropdown nav */
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--signal-buy);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Welcome Dashboard Premium */
.welcome-dashboard {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 1rem;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.4) 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.header-badges {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.premium-badge {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.welcome-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.market-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.market-overview-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.market-overview-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.market-overview-card .card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.market-overview-card .region {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

.market-overview-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.market-overview-card .card-body {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.market-overview-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.market-overview-card .change-tag {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
}

.market-overview-card .change-tag.change-positive { background: rgba(16, 185, 129, 0.15); }
.market-overview-card .change-tag.change-negative { background: rgba(239, 68, 68, 0.15); }

.market-overview-card .card-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.market-overview-card .view-btn {
    color: var(--accent-blue);
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.2);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h4 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* Asset Detail View */
.asset-detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.asset-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.asset-info h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.asset-fullname {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.asset-price-box {
    text-align: right;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.price-change-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Analysis Grid */
.analysis-signals-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.analysis-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.analysis-card .card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.analysis-card.consensus {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: var(--accent-blue);
}

.chart-box {
    height: 500px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.signal-card:hover {
    transform: translateY(-5px);
}

.signal-card h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.badge.buy {
    background-color: var(--signal-buy-bg);
    color: var(--signal-buy);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.sell {
    background-color: var(--signal-sell-bg);
    color: var(--signal-sell);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge.neutral, .badge.hold, .badge.none {
    background-color: var(--signal-neutral-bg);
    color: var(--text-secondary);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.signal-card.consensus-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
}

.signal-card.consensus-card h4 {
    color: var(--text-primary);
}

.signal-card.consensus-card .badge.buy {
    background-color: var(--signal-buy);
    color: white;
}

.signal-card.consensus-card .badge.sell {
    background-color: var(--signal-sell);
    color: white;
}

/* Chart Container */
.chart-container {
    height: 500px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding: 1rem;
}

/* =========================================
   News Ticker
   ========================================= */
.news-ticker-container {
    display: flex;
    background-color: var(--accent-blue);
    color: white;
    height: 40px;
    align-items: center;
    overflow: hidden;
    width: 100%;
    flex-shrink: 0;
}

.ticker-label {
    background-color: #1e3a8a; /* Darker blue */
    padding: 0 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    min-width: 0;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 300s linear infinite;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.ticker-item:hover {
    text-decoration: underline;
}

.news-source {
    font-weight: 700;
    margin-right: 0.5rem;
    color: #cbd5e1;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   Modal
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--signal-sell);
}

#modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    padding-right: 2rem;
}

.modal-meta {
    font-size: 0.85rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

#modal-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-read-more {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-read-more:hover {
    background-color: #2563eb;
}

/* User Actions & Profile Button */
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 8px 16px;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.user-profile-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.user-icon {
    font-size: 1.1rem;
}

/* Signal Subscription Button */
.btn-signal-sub {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-subscribe {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
}

.btn-subscribed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--signal-buy);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

@media (min-width: 769px) {
    .btn-subscribed:hover {
        background: rgba(239, 68, 68, 0.1);
        color: var(--signal-sell);
        border-color: rgba(239, 68, 68, 0.3);
    }

    .btn-subscribed:hover::after {
        content: 'Cancelar suscripción';
    }

    .btn-subscribed:hover span, 
    .btn-subscribed:hover {
        font-size: 0;
    }

    .btn-subscribed:hover::after {
        font-size: 0.9rem;
    }
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Updated Button Styles */
.btn-news-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-blue);
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-news-outline:hover {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* =========================================
   Language Switcher (Sidebar Version)
   ========================================= */
.lang-switcher {
    display: flex;
    background: rgba(2, 6, 23, 0.4);
    border-radius: 12px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    width: 100%;
}

.lang-btn {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
}

.lang-btn img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}


/* =========================================
   Error Overlay (Global Failure Page)
   ========================================= */
.error-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.error-overlay.show {
    display: flex;
    opacity: 1;
}

.error-card {
    background: var(--bg-card);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.error-overlay.show .error-card {
    transform: scale(1);
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.error-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #f87171;
    text-align: left;
    display: none; /* Se muestra solo si hay detalles */
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-retry {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-retry:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-home {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-home:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    margin-right: 1rem;
    padding: 0;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .app-container, .admin-layout {
        flex-direction: column;
    }
    
    .topbar {
        height: auto !important;
        min-height: 60px;
        padding: 0.75rem 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        position: relative !important;
    }

    .topbar-left {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 36px !important;
    }

    .topbar h2 {
        display: none !important;
    }

    .topbar-logo-link {
        position: static !important;
        transform: none !important;
        display: flex !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    .topbar-logo {
        height: 36px;
        width: auto;
        display: block;
    }

    .mobile-menu-btn {
        display: block !important;
        position: absolute !important;
        left: 1rem !important;
        top: 0.75rem !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
    }

    .topbar-actions {
        display: flex !important;
        position: absolute !important;
        right: 1rem !important;
        top: 0.75rem !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 36px !important;
        align-items: center !important;
    }

    .topbar-nav {
        display: none !important;
    }

    .mobile-nav-selector {
        display: block !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0.25rem auto 0 auto !important;
        width: 100% !important;
        max-width: 300px !important;
    }

    .status-indicator {
        display: none !important; /* Hide on mobile to save space */
    }
    
    .topbar-actions .btn-news-outline, .topbar-actions .user-name-label, #user-name-label {
        display: none !important; /* Hide on mobile to save space */
    }

    .user-profile-btn {
        padding: 0.5rem !important;
    }

    .sidebar, .admin-sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        bottom: 0;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        background-color: var(--bg-dark);
        z-index: 1200;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.8);
    }

    .sidebar.open, .admin-sidebar.open {
        left: 0;
    }

    .main-content, .admin-content {
        width: 100%;
    }

    .market-overview-grid, .features-grid, .analysis-signals-grid, .stats-grid, .grid-layout {
        grid-template-columns: 1fr !important;
    }

    .content-area, .admin-content {
        padding: 1rem;
    }
    
    .welcome-header {
        padding: 1.5rem 1rem;
    }
    
    .welcome-header h2 {
        font-size: 1.6rem;
    }

    .price-value {
        font-size: 2rem;
    }

    .asset-info h1 {
        font-size: 1.8rem;
    }

    .btn-signal-sub {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 0;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        gap: 0;
    }

    .btn-signal-sub .btn-text {
        display: none;
    }

    /* Fix horizontal scroll and alignment on mobile for FAQ and legal pages */
    .legal-container {
        padding: 1.5rem !important;
        margin: 1.5rem auto !important;
        border-radius: 16px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .legal-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .faq-header {
        padding: 1rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    .faq-answer {
        padding: 0 1.25rem 1.25rem 1.25rem !important;
    }
    
    .steps-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .content-area .site-footer {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        margin-bottom: -1rem !important;
        width: calc(100% + 2rem) !important;
        padding: 2rem 1rem !important;
    }
    
    .chart-box, .chart-container {
        height: 350px;
    }

    .auth-card {
        padding: 24px;
        margin: 1rem;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-table-container {
        padding: 1rem;
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }
}


/* --- New Asset Dashboard Redesign --- */
.asset-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.consensus-hero-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.consensus-hero-card h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.consensus-hero-card .hero-status {
    font-size: 2.5rem;
    padding: 0.5rem 2rem;
    border-radius: 12px;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.analysis-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.analysis-group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.group-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}



.analysis-subgrid {
    display: grid;
    gap: 1rem;
}

.analysis-subgrid.technical {
    grid-template-columns: repeat(3, 1fr);
}

.analysis-subgrid.fundamental {
    grid-template-columns: 1fr;
}

.analysis-card.fundamental-card {
    background: rgba(30, 41, 59, 0.4);
    height: 100%;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .analysis-breakdown {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .analysis-subgrid.technical {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .analysis-subgrid.technical .analysis-card {
        padding: 0.75rem 0.5rem;
    }
    
    .analysis-subgrid.technical .card-label {
        font-size: 0.65rem;
    }
    
    .analysis-subgrid.technical .card-status {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Dashboard New Layout */
.top-signals-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.daily-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--accent-blue);
    border-radius: 16px;
    padding: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    overflow: hidden;
}

.summary-content {
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-paragraph {
    margin: 0;
    word-break: break-word;
}

.summary-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.highlight-section {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.highlight-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.highlight-list li {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.highlight-topic {
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.highlight-detail {
    font-style: italic;
    color: var(--text-primary);
}

.summary-table, .summary-content pre {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 0.8rem !important;
    background: rgba(0, 0, 0, 0.25) !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    white-space: pre !important;
    margin: 0.5rem 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--text-primary) !important;
    scrollbar-width: thin !important;
    -webkit-overflow-scrolling: touch !important;
}

.summary-table::-webkit-scrollbar, .summary-content pre::-webkit-scrollbar {
    height: 6px !important;
}

.summary-table::-webkit-scrollbar-thumb, .summary-content pre::-webkit-scrollbar-thumb {
    background: var(--border-color) !important;
    border-radius: 3px !important;
}

.summary-table::-webkit-scrollbar-thumb:hover, .summary-content pre::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue) !important;
}

.top-signals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-signal-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-signal-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.buy-title::before { background: var(--signal-buy) !important; }
.buy-title { color: var(--text-primary); }

.sell-title::before { background: var(--signal-sell) !important; }
.sell-title { color: var(--text-primary); }

@media (max-width: 768px) {
    .top-signals-wrapper {
        grid-template-columns: 1fr;
    }
    .desktop-only-logo {
        display: none !important;
    }
}

/* Main Navigation */
.main-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.main-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.main-nav .nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.main-nav .nav-link.active {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

/* Pricing Page */
.pricing-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
}

.pricing-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-price-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.price-crossed {
    font-size: 1.5rem;
    color: #ef4444;
    text-decoration: line-through;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.price-current {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.price-period {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.pricing-features {
    text-align: left;
    margin: 2.5rem 0;
    padding: 0;
    list-style: none;
}

.pricing-features li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.pricing-features li::before {
    content: "✓";
    color: #4ade80;
    font-weight: bold;
    font-size: 1.4rem;
}

.no-cc-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* =========================================
   Site Footer
   ========================================= */
.site-footer {
    background: #090f1d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 2rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    width: 100%;
}

.content-area .site-footer {
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: -2rem;
    margin-top: auto;
    width: calc(100% + 4rem);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-disclaimer {
    line-height: 1.6;
    text-align: justify;
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.68rem;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-nav a:hover {
    color: #f8fafc;
    text-decoration: none;
}

.footer-contact {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: rgba(148, 163, 184, 0.6);
}

.footer-contact a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #f8fafc;
    text-decoration: none;
}

/* Legal Pages (Privacy / Terms) */
.legal-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.legal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.legal-content {
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1rem;
}

.legal-content h2 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

/* =========================================
   FAQ Accordion & Mockup Steps
   ========================================= */
.faq-section {
    margin-top: 2rem;
    animation: fadeIn 0.8s ease;
}

.faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open {
    border-color: var(--accent-blue);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}

.faq-header {
    width: 100%;
    padding: 1.25rem 1.75rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
    transition: color 0.2s;
}

.faq-header:hover {
    color: var(--accent-blue);
}

.faq-arrow {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-arrow {
    color: var(--accent-blue);
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-content {
    max-height: 1200px;
}

.faq-answer {
    padding: 0 1.75rem 1.75rem 1.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1.25rem;
}

/* Steps Grid & Device Mockups */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.step-card {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
}

.step-num {
    width: 26px;
    height: 26px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.step-card h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.step-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.mockup-frame {
    background: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mockup-header {
    background: #1e293b;
    padding: 6px 12px;
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
}

.telegram-mockup .msg {
    max-width: 85%;
    padding: 6px 10px;
    border-radius: 8px;
    line-height: 1.35;
    font-size: 0.72rem;
}

.telegram-mockup .msg.sent {
    background: #2b5278;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.telegram-mockup .msg.received {
    background: #182533;
    color: #f8fafc;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.portal-mockup .form-group-mock {
    display: flex;
    gap: 6px;
}

.portal-mockup .input-mock {
    flex: 1;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 5px;
    color: white;
    font-weight: 500;
    text-align: center;
    font-size: 0.7rem;
}

.portal-mockup .btn-mock {
    background: var(--accent-blue);
    color: white;
    padding: 5px 9px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.7rem;
    cursor: default;
}

.portal-mockup .badge-mock {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
    padding: 5px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    margin-top: 4px;
}

.alert-mockup .alert-msg {
    background: #1a2333;
    border-left: 3px solid var(--accent-blue);
    padding: 8px;
    border-radius: 4px;
    color: #f8fafc;
    line-height: 1.4;
    font-size: 0.7rem;
}

.alert-mockup .buy-tag {
    color: #10b981;
    font-weight: 700;
}

/* =========================================
   News Page Grid & Cards
   ========================================= */
.news-list-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0 3rem 0;
    width: 100%;
}

.news-page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
    background: linear-gradient(to right, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.news-card .news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.news-card .news-card-date {
    color: var(--text-secondary);
    font-weight: 500;
}

.news-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .news-card-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s;
}

.news-card:hover .news-card-more {
    transform: translateX(4px);
}


