:root {
    --bg-dark: #070913;
    --bg-sidebar: #0c0e1e;
    --bg-panel: rgba(18, 22, 47, 0.45);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-emerald: #10b981;
    --color-emerald-glow: rgba(16, 185, 129, 0.15);
    --color-rose: #f43f5e;
    --color-rose-glow: rgba(244, 63, 94, 0.15);
    --color-amber: #f59e0b;
    --color-amber-glow: rgba(245, 158, 11, 0.15);
    --color-violet: #8b5cf6;
    --color-violet-glow: rgba(139, 92, 246, 0.15);
    --color-cyan: #06b6d4;
    --color-cyan-glow: rgba(6, 182, 212, 0.15);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 10% 20%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
}

/* App Structure */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-violet), var(--color-cyan));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.logo-glow {
    color: #fff;
    animation: rotateLogo 8s linear infinite;
}

@keyframes rotateLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-name {
    display: flex;
    flex-direction: column;
}

.brand-name span:first-child {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tag {
    font-family: 'Satisfy', cursive;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--color-cyan);
    text-transform: none;
    margin-top: -3px;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.nav-menu {
    flex: 1;
    overflow-y: auto;
    padding: 24px 16px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin: 24px 0 8px 12px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.05));
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: inset 0 0 12px rgba(139, 92, 246, 0.1);
}

.nav-item.active i {
    color: var(--color-violet);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.updated-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 32px;
    max-width: calc(100vw - 280px);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.header-title h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Form Styles */
.add-ticker-form {
    display: flex;
    gap: 10px;
    background: rgba(18, 22, 47, 0.6);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.add-ticker-form input[type="text"] {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    width: 140px;
    outline: none;
}

.add-ticker-form select {
    background: rgba(7, 9, 19, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.add-ticker-form select:focus {
    border-color: var(--color-violet);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-violet), #7c3aed);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

/* Tabs Panel Content */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: fadeIn 0.4s ease-out;
}

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

/* Metrics Dashboard Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1-fraction));
    gap: 20px;
}

.metric-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.metric-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.metric-card.glow-emerald {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.05);
}
.metric-card.glow-emerald:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
}

.metric-card.glow-violet {
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.05);
}
.metric-card.glow-violet:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.1);
}

.metric-card.glow-amber {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.05);
}
.metric-card.glow-amber:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.1);
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.metric-card.glow-emerald .metric-icon { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.15); }
.metric-card.glow-violet .metric-icon { background: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.15); }
.metric-card.glow-amber .metric-icon { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.15); }

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.metric-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.text-emerald { color: var(--color-emerald) !important; }
.text-rose { color: var(--color-rose) !important; }
.text-amber { color: var(--color-amber) !important; }
.text-violet { color: var(--color-violet) !important; }
.text-cyan { color: var(--color-cyan) !important; }

/* Double Row Panel Grid */
.dashboard-double-row {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 32px;
}

@media (max-width: 1200px) {
    .dashboard-double-row {
        grid-template-columns: 1fr;
    }
}

/* Panel Design */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-content {
    padding: 24px;
    flex: 1;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Tables styling */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.stock-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.stock-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    vertical-align: middle;
}

.stock-table tbody tr {
    transition: var(--transition-smooth);
}

.stock-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.stock-table tbody tr:last-child td {
    border-bottom: none;
}

/* Stock Identification Info cell */
.stock-info-cell {
    display: flex;
    flex-direction: column;
}

.stock-ticker-badge {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.stock-fullname {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Badges styling */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-strongbuy { background-color: var(--color-emerald-glow); color: var(--color-emerald); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-buy { background-color: rgba(16, 185, 129, 0.08); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.1); }
.badge-hold { background-color: var(--color-amber-glow); color: var(--color-amber); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-underperform { background-color: var(--color-rose-glow); color: var(--color-rose); border: 1px solid rgba(244, 63, 94, 0.2); }

/* Score displays */
.score-indicator-badge {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
}

/* Sparklines inside tables */
.sparkline-canvas {
    width: 100px;
    height: 30px;
    vertical-align: middle;
}

/* Color definitions for tables */
.price-change-positive {
    color: var(--color-emerald);
    font-weight: 600;
}

.price-change-negative {
    color: var(--color-rose);
    font-weight: 600;
}

.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center !important; }

/* Filter Controls Header */
.filter-controls {
    display: flex;
    gap: 12px;
}

.filter-controls input[type="text"] {
    background: rgba(7, 9, 19, 0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}

.filter-controls input[type="text"]:focus {
    border-color: var(--color-violet);
}

.filter-controls select {
    background: rgba(7, 9, 19, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-controls select:focus {
    border-color: var(--color-violet);
}

/* Sentiment Heatmap Layout */
.heatmap-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.heatmap-tile {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.heatmap-tile:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.heatmap-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 13px;
}

.heatmap-bar-wrapper {
    flex: 1;
    margin: 0 20px;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.heatmap-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-emerald { background: var(--color-emerald); box-shadow: 0 0 10px var(--color-emerald); }
.bg-rose { background: var(--color-rose); box-shadow: 0 0 10px var(--color-rose); }
.bg-amber { background: var(--color-amber); box-shadow: 0 0 10px var(--color-amber); }
.bg-violet { background: var(--color-violet); box-shadow: 0 0 10px var(--color-violet); }

.heatmap-val {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 12px;
    width: 32px;
    text-align: right;
}

/* Modal Overlay Panel */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 5, 11, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    animation: fadeIn 0.2s ease-out;
}

.modal-box {
    background: #0d1024;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: var(--border-hover);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    gap: 20px;
}

.modal-title-block {
    display: flex;
    flex-direction: column;
}

.modal-title-block h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}

.modal-title-block span {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.tag-category {
    display: inline-flex;
    margin-top: 8px;
    padding: 2px 8px;
    background-color: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: #c084fc;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
}

.modal-score-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.score-radial {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e1b4b, #120e3a);
    border: 2px solid var(--color-violet);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
}

.score-radial span {
    font-size: 22px;
    color: #fff;
}

.score-radial small {
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: 1px;
    margin-top: 6px;
}

.score-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.price-display {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
}

/* Modal Grid */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

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

.modal-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.details-section h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verdict-summary-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 12px;
}

/* Indicators Scorecard */
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checklist-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.checklist-item span:first-child {
    color: var(--text-secondary);
}

.checklist-val {
    font-family: var(--font-mono);
    font-weight: 600;
}

.check-pass { color: var(--color-emerald); }
.check-fail { color: var(--color-rose); }
.check-warn { color: var(--color-amber); }

/* Chart Styling inside Modals */
.modal-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chart-wrapper {
    background: rgba(7, 9, 19, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 16px;
}

.chart-legend {
    display: flex;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 10px;
    height: 4px;
    border-radius: 2px;
}

.color-price { background-color: var(--color-violet); }
.color-sma50 { background-color: var(--color-cyan); }
.color-sma200 { background-color: var(--color-amber); }

.canvas-container {
    position: relative;
    height: 220px;
    width: 100%;
}

.sub-chart .canvas-container {
    height: 140px;
}

/* Custom details cells */
.delete-btn-cell {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-smooth);
    padding: 6px;
    border-radius: 6px;
}

.delete-btn-cell:hover {
    color: var(--color-rose);
    background-color: rgba(244, 63, 94, 0.08);
}

/* Create Cluster Sidebar Form */
.create-cluster-sidebar {
    padding: 0 12px;
    margin-top: 10px;
}

.create-cluster-sidebar input {
    width: 100%;
    background: rgba(7, 9, 19, 0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}

.create-cluster-sidebar input:focus {
    border-color: var(--color-violet);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    font-size: 12px;
}

/* Region Selector Styles */
.region-selector-container {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.region-selector-container label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.region-select {
    width: 100%;
    background: rgba(18, 22, 47, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.region-select:focus {
    border-color: var(--color-violet);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.region-select option {
    background-color: var(--bg-sidebar);
    color: var(--text-primary);
}

/* User Profile Card */
.user-profile-card {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.auth-logged-out {
    display: flex;
    justify-content: center;
}

.btn-google {
    width: 100%;
    justify-content: center;
}

.auth-logged-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.user-avatar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 80%;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-violet), var(--color-cyan));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-email {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role-badge {
    font-size: 8px;
    font-weight: 800;
    color: var(--color-cyan);
    letter-spacing: 0.5px;
    margin-top: 1px;
}

.btn-icon-logout {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-smooth);
    padding: 4px;
    display: flex;
    align-items: center;
}

.btn-icon-logout:hover {
    color: var(--color-rose);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.news-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.news-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.news-card h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.news-source {
    font-weight: 600;
    color: var(--color-cyan);
}

/* Subscription Wall */
.subscription-wall-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
    min-height: 50vh;
    animation: fadeIn 0.4s ease-out;
}

.subscription-card {
    background: rgba(12, 14, 30, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.35);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(139, 92, 246, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.subscription-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c084fc;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subscription-card h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.subscription-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.subscription-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin: 10px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-primary);
}

.btn-subscribe {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 14px;
    border-radius: 12px;
}

.subscription-subtext {
    font-size: 11px;
    color: var(--text-muted);
}

/* Admin UI Controls */
.btn-delete-ticker, .btn-delete-category {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-smooth);
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-ticker:hover, .btn-delete-category:hover {
    color: var(--color-rose);
    background: rgba(244, 63, 94, 0.1);
}

.btn-delete-category {
    font-size: 12px;
    margin-left: 6px;
}

.flex-align-center {
    display: flex;
    align-items: center;
}

/* Blur overlay for unsubscribed tabs */
.blurred-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

/* Tweets Grid and Cards Styling */
.tweets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.tweet-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
    cursor: default;
}

.tweet-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
}

.tweet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.tweet-author-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
}

.tweet-author {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tweet-verified-badge {
    color: #1d9bf0;
    font-size: 11px;
}

.tweet-handle {
    font-size: 11.5px;
    color: var(--text-muted);
}

.tweet-time {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-left: auto;
    flex-shrink: 0;
}

.tweet-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: left;
}

.tweet-tag {
    display: inline-block;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 11.5px;
    color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin: 2px 2px;
}

.tweet-tag:hover {
    color: #fff;
    background: var(--color-cyan);
    border-color: var(--color-cyan);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.tweet-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: auto;
    font-size: 11px;
    color: var(--text-muted);
}

.tweet-action-item {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.tweet-action-item:hover {
    color: var(--text-primary);
}

.tweet-action-item.action-like:hover {
    color: #f91880;
}

.tweet-action-item.action-retweet:hover {
    color: #00ba7c;
}

/* AI Chatbot Widget Styling */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.3);
}

.chat-badge-lock {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-darker);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.15);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
}

.chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    padding: 16px 20px;
    background: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-title h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-status {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.chat-close-btn:hover {
    color: #ef4444;
}

/* Gated Overlay styles */
.chat-lock-overlay {
    position: absolute;
    top: 60px; /* underneath header */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.chat-lock-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lock-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.lock-icon {
    font-size: 40px;
    color: var(--color-purple);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    margin-bottom: 10px;
}

.lock-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.lock-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-unlock-chat {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
    border: none;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-unlock-chat:hover {
    transform: scale(1.05);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.message.system {
    align-self: center;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    text-align: center;
    max-width: 95%;
    font-size: 12px;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text-primary);
    border-bottom-right-radius: 2px;
}

.message.ai {
    align-self: flex-start;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

/* Markdown formatting inside chat bubbles */
.message.ai p {
    margin: 0 0 8px 0;
}
.message.ai p:last-child {
    margin-bottom: 0;
}
.message.ai ul, .message.ai ol {
    margin: 4px 0 8px 16px;
    padding: 0;
}
.message.ai li {
    margin-bottom: 4px;
}
.message.ai pre {
    background: #090d16;
    padding: 8px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 8px 0;
}
.message.ai code {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: var(--color-cyan);
}

/* Chat Input */
.chat-input-area {
    padding: 16px 20px;
    background: rgba(30, 41, 59, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

#chat-input:focus {
    border-color: var(--color-cyan);
}

#chat-send-btn {
    background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s, opacity 0.2s;
}

#chat-send-btn:hover {
    transform: scale(1.05);
}

#chat-send-btn:active {
    transform: scale(0.95);
}

/* Typing pulse animation */
.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 12px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Sidebar Add Stock Form Styles */
.add-ticker-form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.add-ticker-form-sidebar input[type="text"] {
    width: 100%;
    background: rgba(7, 9, 19, 0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}

.add-ticker-form-sidebar input[type="text"]:focus {
    border-color: var(--color-violet);
}

.add-ticker-form-sidebar select {
    width: 100%;
    background: rgba(7, 9, 19, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.add-ticker-form-sidebar select:focus {
    border-color: var(--color-violet);
}

/* Header Search Stock Form Styles */
.search-ticker-form {
    display: flex;
    gap: 8px;
    background: rgba(18, 22, 47, 0.6);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    align-items: center;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
}

.search-input-wrapper i {
    color: var(--text-secondary);
    font-size: 13px;
}

.search-ticker-form input[type="text"] {
    background: transparent;
    border: none;
    color: #fff;
    padding: 6px 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    width: 160px;
    outline: none;
}

/* =====================================================================
   EMAIL OTP AUTH MODAL AND DEV MAILBOX STYLES
   ===================================================================== */

.auth-tabs {
    display: flex;
    background: rgba(7, 9, 19, 0.4);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-smooth);
    outline: none;
}

.auth-tab.active {
    background: rgba(6, 182, 212, 0.12);
    color: var(--color-cyan);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.otp-digit-input {
    width: 44px;
    height: 48px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    background: rgba(7, 9, 19, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: var(--transition-smooth);
}

.otp-digit-input:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Floating simulated inbox style */
.dev-mail-sim {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 320px;
    background: rgba(18, 22, 47, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.15);
    backdrop-filter: blur(16px);
    z-index: 10000;
    overflow: hidden;
    animation: slideInUp 0.3s ease-out;
}

.dev-mail-header {
    background: rgba(6, 182, 212, 0.08);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
}

.dev-mail-body {
    padding: 16px;
}

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

/* =====================================================================
   MYSPACE PREMIUM PORTFOLIO & WATCHLISTS STYLES
   ===================================================================== */
.myspace-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: start;
    margin-top: 10px;
    width: 100%;
}

@media (max-width: 1100px) {
    .myspace-grid {
        grid-template-columns: 1fr;
    }
}

.myspace-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.portfolio-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .portfolio-metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.portfolio-metric-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition-smooth);
}

.portfolio-metric-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.portfolio-metric-lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.portfolio-metric-val {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.watchlist-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
}

.watchlist-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.watchlist-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.watchlist-tab.active {
    color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.watchlist-tab-rename-input {
    background: rgba(7, 9, 19, 0.8);
    border: 1px solid var(--color-cyan);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    font-family: var(--font-body);
}

.btn-delete-holding {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 13px;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.btn-delete-holding:hover {
    color: var(--color-rose);
    background: var(--color-rose-glow);
}

.btn-view-watchlist-stock {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 13px;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.btn-view-watchlist-stock:hover {
    color: var(--color-cyan);
    background: var(--color-cyan-glow);
}

.badge-underperform {
    background-color: var(--color-rose-glow);
    color: var(--color-rose);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

/* =====================================================================
   ADMIN SPACE USER MANAGEMENT STYLES
   ===================================================================== */
.badge-admin {
    background-color: var(--color-rose-glow);
    color: var(--color-rose);
    border: 1px solid rgba(244, 63, 94, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-user {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-premium {
    background-color: var(--color-cyan-glow);
    color: var(--color-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-free {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-admin-action {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-admin-action:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-admin-action-active {
    background: var(--color-cyan-glow);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--color-cyan);
}

.btn-admin-action-active:hover {
    background: rgba(6, 182, 212, 0.25);
    color: #fff;
}

.admin-cluster-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    transition: var(--transition-smooth);
}

.admin-cluster-box:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.admin-cluster-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.admin-tickers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-ticker-tag {
    background: rgba(7, 9, 19, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.admin-ticker-tag:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-delete-ticker-tag {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.btn-delete-ticker-tag:hover {
    color: var(--color-rose);
    background: var(--color-rose-glow);
}

/* Custom Scrollbar for Broadcast Target List */
#broadcast-users-list::-webkit-scrollbar {
    width: 6px;
}
#broadcast-users-list::-webkit-scrollbar-track {
    background: rgba(7, 9, 19, 0.2);
    border-radius: 4px;
}
#broadcast-users-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
#broadcast-users-list::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.3);
}

/* Inline Mobile Editing Layout adjustments */
.mobile-text {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
}


