/* ========================================
   ALADIN — Dashboard Styles
   ======================================== */

/* --- CSS Variables --- */
:root {
    --color-bg-primary: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #171717;
    --color-bg-card: #0d0d0d;
    --color-bg-card-hover: #141414;
    --color-bg-input: #0a0a0a;
    --color-border: #262626;
    --color-border-focus: #ffffff;
    --color-border-subtle: #1a1a1a;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a3a3a3;
    --color-text-muted: #525252;
    --color-accent: #ffffff;
    --color-positive: #22c55e;
    --color-negative: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --sidebar-width: 260px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-glow: 0 0 60px rgba(255, 255, 255, 0.03);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: var(--color-text-primary);
    text-decoration: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    padding: 28px 24px 24px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--color-text-primary);
}

.logo-sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-top: 1px;
}

/* --- Sidebar Navigation --- */

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background var(--transition-fast);
    border-radius: var(--radius-sm);
}

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

.nav-item:hover::before {
    background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
    color: var(--color-bg-primary);
    background: var(--color-text-primary);
    font-weight: 600;
}

.nav-item.active svg {
    stroke: var(--color-bg-primary);
}

.nav-item.active:hover::before {
    background: transparent;
}

.nav-item svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.nav-item:hover svg,
.nav-item.active svg {
    opacity: 1;
}

/* --- Sidebar Footer --- */

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

.sidebar-version {
    font-size: 11px;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    letter-spacing: 0.05em;
}

/* ========================================
   HAMBURGER (Mobile)
   ======================================== */

.hamburger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.hamburger:hover {
    background: var(--color-bg-card-hover);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 90;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    margin-left: var(--sidebar-width);
    padding: 32px 40px;
    min-height: 100vh;
}

/* --- Section Transition --- */

.content-section {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    animation: none;
}

.content-section.active {
    display: block;
    animation: fadeInSection 0.4s ease forwards;
}

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

/* --- Section Header --- */

.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* ========================================
   STAT CARDS
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

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

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon {
    width: 36px;
    height: 36px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.stat-positive {
    color: var(--color-positive);
}

.stat-negative {
    color: var(--color-negative);
}

.stat-change {
    font-size: 12px;
    font-weight: 500;
}

.stat-change.positive {
    color: var(--color-positive);
}

.stat-change.negative {
    color: var(--color-negative);
}

.stat-change.neutral {
    color: var(--color-text-muted);
}

/* ========================================
   OVERVIEW ROW (Bot Status + Mini Chart)
   ======================================== */

.overview-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    margin-bottom: 24px;
}

.bot-status-card,
.mini-chart-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.bot-status-card::before,
.mini-chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.bot-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bot-status-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.bot-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
    transition: background var(--transition-normal);
}

.bot-status-indicator.active .status-dot {
    background: var(--color-positive);
    box-shadow: 0 0 8px var(--color-positive);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 8px var(--color-positive); }
    50% { box-shadow: 0 0 16px var(--color-positive), 0 0 32px rgba(34, 197, 94, 0.3); }
}

.status-text {
    color: var(--color-text-muted);
}

.bot-status-indicator.active .status-text {
    color: var(--color-positive);
}

.bot-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.toggle-label {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.bot-info-row {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-subtle);
}

.bot-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bot-info-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.bot-info-value {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
}

.mini-chart-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ========================================
   TOGGLE SWITCH
   ======================================== */

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch.large {
    width: 56px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    transition: all var(--transition-normal);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 50%;
    transform: translateY(50%);
    background: var(--color-text-primary);
    border-radius: 50%;
    transition: all var(--transition-normal);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-switch.large .toggle-slider::before {
    height: 22px;
    width: 22px;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--color-text-primary);
    border-color: var(--color-text-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    background: var(--color-bg-primary);
    transform: translateX(22px) translateY(50%);
}

.toggle-switch.large input:checked + .toggle-slider::before {
    transform: translateX(26px) translateY(50%);
}

/* ========================================
   TRADES TABLE
   ======================================== */

.table-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    z-index: 1;
}

.table-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.table-card-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.table-wrapper {
    overflow-x: auto;
}

.trades-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.trades-table thead {
    background: var(--color-bg-tertiary);
}

.trades-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    white-space: nowrap;
    border-bottom: 1px solid var(--color-border-subtle);
}

.trades-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border-subtle);
    white-space: nowrap;
    color: var(--color-text-secondary);
}

.trades-table tbody tr {
    transition: background var(--transition-fast);
}

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

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

.empty-row td {
    text-align: center;
    padding: 40px 16px;
    color: var(--color-text-muted);
}

.pnl-positive {
    color: var(--color-positive) !important;
    font-weight: 600;
}

.pnl-negative {
    color: var(--color-negative) !important;
    font-weight: 600;
}

.side-buy {
    color: var(--color-positive) !important;
    font-weight: 600;
}

.side-sell {
    color: var(--color-negative) !important;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge.closed {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-secondary);
}

.status-badge.open {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-positive);
}

/* ========================================
   CHARTS
   ======================================== */

.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.chart-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.chart-container {
    width: 100%;
    height: 300px;
    position: relative;
}

.chart-container.mini {
    height: 180px;
}

.chart-container.pie {
    height: 220px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: var(--radius-sm);
}

/* --- Pie Legend --- */

.pie-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-subtle);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

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

.legend-color.win {
    background: var(--color-text-primary);
}

.legend-color.loss {
    background: var(--color-text-muted);
}

/* ========================================
   SETTINGS CARDS / FORMS
   ======================================== */

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.settings-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.settings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.settings-card.wide {
    grid-column: 1 / -1;
}

.settings-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-divider {
    height: 1px;
    background: var(--color-border-subtle);
    margin: 24px 0;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Form Elements --- */

.form-group {
    margin-bottom: 20px;
}

.settings-form-grid .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input:focus,
.form-select:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23525252' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

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

/* --- Input with toggle (password visibility) --- */

.input-with-toggle {
    position: relative;
}

.input-with-toggle .form-input {
    padding-right: 48px;
}

.input-toggle-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-toggle-btn:hover {
    color: var(--color-text-primary);
}

/* --- Radio Group --- */

.radio-group {
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-secondary);
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    flex: 1;
    justify-content: center;
}

.radio-label:hover {
    border-color: var(--color-text-muted);
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-text-primary);
    transition: transform var(--transition-fast);
}

.radio-label input:checked ~ .radio-custom {
    border-color: var(--color-text-primary);
}

.radio-label input:checked ~ .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-label input:checked ~ span:last-child {
    color: var(--color-text-primary);
}

/* --- Range Slider --- */

.range-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-text-primary);
    cursor: pointer;
    border: 3px solid var(--color-bg-primary);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 2px 6px rgba(0,0,0,0.4);
    transition: box-shadow var(--transition-fast);
}

.form-range::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.4), 0 2px 10px rgba(0,0,0,0.5);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-text-primary);
    cursor: pointer;
    border: 3px solid var(--color-bg-primary);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 2px 6px rgba(0,0,0,0.4);
}

.range-value {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    min-width: 48px;
    text-align: right;
    color: var(--color-text-primary);
}

/* --- Bot Master Toggle --- */

.bot-master-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 4px;
}

.master-toggle-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.master-toggle-info p {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* --- Connection Status --- */

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
    flex-shrink: 0;
}

.connection-status.connected .connection-dot {
    background: var(--color-positive);
    box-shadow: 0 0 6px var(--color-positive);
}

.connection-status.error .connection-dot {
    background: var(--color-negative);
    box-shadow: 0 0 6px var(--color-negative);
}

.connection-text {
    color: var(--color-text-secondary);
}

/* ========================================
   INFO CARD
   ======================================== */

.info-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.info-card-icon {
    width: 44px;
    height: 44px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.info-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-card p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.info-card ol {
    margin: 0 0 20px 18px;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.info-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity var(--transition-fast);
}

.info-link:hover {
    opacity: 0.7;
}

/* ========================================
   ACCOUNT
   ======================================== */

.account-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.account-avatar {
    width: 64px;
    height: 64px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.account-email {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.account-date {
    font-size: 13px;
    color: var(--color-text-muted);
}

.text-muted {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
}

.btn-primary:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-danger {
    background: transparent;
    color: var(--color-negative);
    border: 1px solid var(--color-negative);
}

.btn-danger:hover {
    background: var(--color-negative);
    color: var(--color-text-primary);
}

.form-actions {
    margin-top: 4px;
}

.exchange-switch-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.saved-exchanges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.saved-exchange-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-secondary);
}

.saved-exchange-pill.active {
    border-color: rgba(255,255,255,0.16);
    color: var(--color-text-primary);
}

.saved-exchange-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
}

.saved-exchange-pill.active .saved-exchange-dot {
    background: var(--color-positive);
}

.bot-library-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.bot-library-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bot-library-card:hover,
.bot-library-card.active {
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.bot-library-card.active {
    background: rgba(255,255,255,0.06);
}

.bot-library-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.bot-library-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
}

.bot-library-style {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bot-library-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.bot-library-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bot-meta-pill {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    color: var(--color-text-secondary);
}

.bot-selected-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.bot-selected-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bot-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-text-secondary);
}

.bot-custom-settings-block h3 {
    margin-bottom: 16px;
}

.bot-custom-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bot-last-status {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.bot-last-status.overview {
    margin-top: 16px;
}

.overview-bot-select-row {
    margin-bottom: 16px;
}

.overview-bot-select-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    pointer-events: auto;
    animation: toastIn 0.35s ease forwards;
    backdrop-filter: blur(16px);
    border: 1px solid;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
    color: var(--color-positive);
}

.toast.error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--color-negative);
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
}

/* ========================================
   WALLET SECTION
   ======================================== */

/* --- Wallet Balance Hero --- */

.wallet-balance-hero {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.wallet-balance-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.wallet-balance-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
    pointer-events: none;
}

.wallet-balance-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.wallet-balance-amount {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wallet-balance-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.wallet-balance-change.positive {
    color: var(--color-positive);
}

.wallet-balance-change.negative {
    color: var(--color-negative);
}

.wallet-balance-actions {
    display: flex;
    gap: 12px;
}

.wallet-action-btn {
    min-width: 130px;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-text-muted);
    transform: translateY(-1px);
}

/* --- Wallet Stats --- */

.wallet-stats {
    margin-bottom: 24px;
}

/* --- Wallet Section Row (Assets + Networks) --- */

.wallet-section-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.wallet-assets-card,
.wallet-networks-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.wallet-assets-card::before,
.wallet-networks-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.wallet-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.wallet-card-header h3 {
    font-size: 15px;
    font-weight: 600;
}

/* --- Wallet Filter Tabs --- */

.wallet-filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.wallet-tab {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-heading);
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
}

.wallet-tab:hover {
    color: var(--color-text-secondary);
}

.wallet-tab.active {
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
}

/* --- Wallet Asset Item --- */

.wallet-assets-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wallet-asset-item {
    display: grid;
    grid-template-columns: 2fr 1.5fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.wallet-asset-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.asset-icon-image {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.asset-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.asset-icon.btc {
    background: rgba(247, 147, 26, 0.12);
    color: #f7931a;
}

.asset-icon.eth {
    background: rgba(98, 126, 234, 0.12);
    color: #627eea;
}

.asset-icon.sol {
    background: rgba(156, 106, 222, 0.12);
    color: #9c6ade;
}

.asset-icon.usdt {
    background: rgba(38, 161, 123, 0.12);
    color: #26a17b;
}

.asset-icon.bnb {
    background: rgba(243, 186, 47, 0.12);
    color: #f3ba2f;
}

.asset-icon.tron {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.asset-icon.polygon {
    background: rgba(130, 71, 229, 0.12);
    color: #8247e5;
}

.asset-icon.ton {
    background: rgba(0, 152, 234, 0.12);
    color: #0098ea;
}

.asset-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.asset-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
}

.asset-symbol {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.asset-balance {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.asset-amount {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
}

.asset-usd {
    font-size: 12px;
    color: var(--color-text-muted);
}

.asset-change {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    min-width: 60px;
}

.asset-change.positive {
    color: var(--color-positive);
}

.asset-change.negative {
    color: var(--color-negative);
}

.asset-change.neutral {
    color: var(--color-text-muted);
}

.asset-network-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--color-bg-tertiary);
    border-radius: 999px;
    color: var(--color-text-secondary);
    text-align: center;
    min-width: 70px;
}

/* --- Wallet Networks List --- */

.wallet-networks-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.network-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.network-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.network-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

.network-dot.ethereum {
    background: #627eea;
    box-shadow: 0 0 8px rgba(98, 126, 234, 0.4);
}

.network-dot.eth {
    background: #627eea;
    box-shadow: 0 0 8px rgba(98, 126, 234, 0.4);
}

.network-dot.bsc {
    background: #f3ba2f;
    box-shadow: 0 0 8px rgba(243, 186, 47, 0.4);
}

.network-dot.bnb {
    background: #f3ba2f;
    box-shadow: 0 0 8px rgba(243, 186, 47, 0.4);
}

.network-dot.solana {
    background: #9c6ade;
    box-shadow: 0 0 8px rgba(156, 106, 222, 0.4);
}

.network-dot.sol {
    background: #9c6ade;
    box-shadow: 0 0 8px rgba(156, 106, 222, 0.4);
}

.network-dot.tron {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.network-dot.btc {
    background: #f7931a;
    box-shadow: 0 0 8px rgba(247, 147, 26, 0.4);
}

.network-dot.arbitrum {
    background: #28a0f0;
    box-shadow: 0 0 8px rgba(40, 160, 240, 0.4);
}

.network-dot.polygon {
    background: #8247e5;
    box-shadow: 0 0 8px rgba(130, 71, 229, 0.4);
}

.network-dot.ton {
    background: #0098ea;
    box-shadow: 0 0 8px rgba(0, 152, 234, 0.4);
}

.network-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.network-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.network-address {
    font-size: 12px;
    color: var(--color-text-muted);
    font-family: 'Inter', monospace;
    letter-spacing: 0.03em;
}

.network-copy-btn {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.network-copy-btn:hover {
    background: var(--color-bg-card-hover);
    color: var(--color-text-primary);
    border-color: var(--color-text-muted);
}

.network-copy-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* --- Wallet Allocation --- */

.wallet-allocation {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-subtle);
}

.wallet-receive-note {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.wallet-selected-network-card {
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-subtle);
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selected-network-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.selected-network-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.selected-network-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

.selected-network-value {
    font-size: 12px;
    color: var(--color-text-primary);
    text-align: right;
    font-weight: 500;
}

.selected-network-value.mono {
    font-family: 'Inter', monospace;
    word-break: break-all;
}

.wallet-selected-link {
    margin-top: 4px;
    color: var(--color-text-primary);
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
    width: fit-content;
}

.wallet-selected-link:hover {
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.wallet-allocation h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--color-text-secondary);
}

.wallet-withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wallet-withdraw-form .form-group {
    margin-bottom: 0;
}

.wallet-withdraw-source {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border-subtle);
    word-break: break-all;
}

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

.allocation-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    gap: 2px;
    margin-bottom: 14px;
}

.alloc-segment {
    border-radius: 4px;
    transition: opacity var(--transition-fast);
}

.alloc-segment:hover {
    opacity: 0.8;
}

.alloc-segment.btc { background: #f7931a; }
.alloc-segment.eth { background: #627eea; }
.alloc-segment.sol { background: #9c6ade; }
.alloc-segment.usdt { background: #26a17b; }
.alloc-segment.bnb { background: #f3ba2f; }

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

.alloc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.alloc-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.alloc-dot.btc { background: #f7931a; }
.alloc-dot.eth { background: #627eea; }
.alloc-dot.sol { background: #9c6ade; }
.alloc-dot.usdt { background: #26a17b; }
.alloc-dot.bnb { background: #f3ba2f; }

/* --- Transaction Type Badge --- */

.tx-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tx-type.deposit {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-positive);
}

.tx-type.withdraw {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-negative);
}

.tx-network {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px;
    background: var(--color-bg-tertiary);
    border-radius: 999px;
    color: var(--color-text-secondary);
}

.tx-address {
    font-family: 'Inter', monospace;
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--color-text-muted) !important;
}

/* ========================================
   SUBSCRIPTIONS & WORKSHOP
   ======================================== */

.nav-item.locked {
    opacity: 0.55;
}

.nav-access-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--color-border-subtle);
    background: var(--color-bg-tertiary);
    color: var(--color-text-muted);
}

.nav-access-badge.free {
    color: var(--color-positive);
    border-color: rgba(34, 197, 94, 0.22);
    background: rgba(34, 197, 94, 0.08);
}

.nav-access-badge.paid {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.08);
}

.nav-access-badge.premium {
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.22);
    background: rgba(139, 92, 246, 0.08);
}

.subscription-grid {
    margin-bottom: 24px;
}

.subscription-current-plan,
.subscription-wallet-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.subscription-level-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.subscription-level-pill.active {
    color: var(--color-positive);
    border-color: rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.08);
}

.subscription-plan-title {
    font-size: 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.subscription-access-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.subscription-access-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-subtle);
    background: var(--color-bg-tertiary);
    gap: 12px;
}

.subscription-access-item.enabled strong {
    color: var(--color-positive);
}

.subscription-access-item.disabled strong {
    color: var(--color-text-muted);
}

.subscription-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.subscription-plan-card,
.workshop-library-card,
.workshop-bot-card,
.invoice-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
}

.subscription-plan-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subscription-plan-card.active {
    border-color: rgba(34, 197, 94, 0.25);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12) inset;
}

.subscription-plan-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.subscription-plan-top h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
}

.subscription-plan-price {
    font-size: 34px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.subscription-plan-perks,
.workshop-library-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subscription-perk,
.bot-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-tertiary);
    font-size: 12px;
    color: var(--color-text-secondary);
}

.subscription-invoices-list,
.workshop-user-bots-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invoice-card,
.workshop-bot-card {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.invoice-card.paid {
    border-color: rgba(34, 197, 94, 0.22);
}

.invoice-card.expired {
    border-color: rgba(239, 68, 68, 0.2);
    opacity: 0.82;
}

.invoice-title,
.bot-library-name {
    font-size: 16px;
    font-weight: 700;
}

.invoice-meta,
.bot-library-style {
    color: var(--color-text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.invoice-actions,
.workshop-bot-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workshop-library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.workshop-hero-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 35%),
        radial-gradient(circle at left bottom, rgba(34, 197, 94, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border: 1px solid var(--color-border-subtle);
    margin-bottom: 24px;
}

.workshop-hero-card h2 {
    font-size: 28px;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.workshop-hero-card p {
    color: var(--color-text-muted);
    max-width: 820px;
}

.workshop-hero-badges,
.workshop-hero-actions,
.workshop-actions-panel {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.workshop-hero-actions {
    align-items: flex-start;
    justify-content: flex-end;
}

.workshop-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.workshop-summary-card {
    min-height: 140px;
}

.workshop-main-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 16px;
}

.workshop-library-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.workshop-library-card:hover,
.workshop-library-card.selected {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}

.bot-library-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.workshop-performance-bar {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}

.workshop-performance-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5cf6 0%, #22c55e 100%);
}

.workshop-selected-bot-card {
    min-height: 100%;
}

.workshop-selected-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.workshop-selected-title {
    font-size: 26px;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

.workshop-selected-meta,
.workshop-selected-description {
    color: var(--color-text-muted);
}

.workshop-selected-description {
    margin-bottom: 18px;
    line-height: 1.65;
}

.workshop-selected-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.workshop-metric-card {
    padding: 14px;
    border-radius: 16px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-subtle);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.workshop-metric-card span,
.workshop-breakdown-item span {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.workshop-metric-card strong,
.workshop-breakdown-item strong {
    font-size: 20px;
    font-weight: 700;
}

.workshop-selected-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.workshop-breakdown-item {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--color-border-subtle);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.workshop-builder-shell {
    border-style: solid;
}

.workshop-actions-panel {
    flex-direction: column;
    align-items: flex-start;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.mono {
    font-family: 'Inter', monospace;
    letter-spacing: 0.02em;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .wallet-asset-item {
        grid-template-columns: 1.5fr 1fr auto auto;
    }

    .subscription-plans-grid,
    .workshop-library-grid,
    .workshop-summary-grid,
    .workshop-main-grid {
        grid-template-columns: 1fr;
    }
}

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

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .wallet-section-row {
        grid-template-columns: 1fr;
    }

    .wallet-balance-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .wallet-balance-actions {
        width: 100%;
    }

    .selected-network-row {
        flex-direction: column;
        gap: 6px;
    }

    .selected-network-value {
        text-align: left;
    }


    .wallet-action-btn {
        flex: 1;
    }

    .exchange-switch-row,
    .bot-custom-settings-grid {
        grid-template-columns: 1fr;
    }

    .invoice-card,
    .workshop-bot-card,
    .subscription-plan-top,
    .bot-library-top,
    .workshop-selected-header,
    .workshop-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .workshop-selected-stats-grid,
    .workshop-selected-breakdown {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.visible {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 80px 20px 32px;
    }

    .section-title {
        font-size: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-value {
        font-size: 22px;
    }

    .bot-master-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .radio-group {
        flex-direction: column;
    }

    .bot-selected-header {
        flex-direction: column;
    }

    .wallet-balance-amount {
        font-size: 32px;
    }

    .wallet-asset-item {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .asset-change,
    .asset-network-badge {
        display: none;
    }
}

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

    .main-content {
        padding: 72px 16px 24px;
    }

    .pie-legend {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .wallet-balance-amount {
        font-size: 28px;
    }

    .wallet-balance-actions {
        flex-direction: column;
    }

    .allocation-legend {
        flex-direction: column;
        gap: 6px;
    }
}
