/* DollarSign Design System - Complete Bootstrap-Compatible Styling */

/* CSS Variables */
:root {
    --ds-gold: #F3BA2F;
    --ds-gold-hover: #e6a820;
    --ds-gold-light: #fef3cd;
    --ds-dark: #0d1117;
    --ds-dark-secondary: #161b22;
    --ds-text-primary: #f0f6fc;
    --ds-text-muted: #8b949e;
    --ds-success: #238636;
    --ds-danger: #da3633;
}

/* DollarSign Custom Classes */
.text-gold {
    color: var(--ds-gold) !important;
}

.bg-gold {
    background-color: var(--ds-gold) !important;
    color: #000 !important;
}

.btn-gold {
    background-color: var(--ds-gold);
    border-color: var(--ds-gold);
    color: #000;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-gold:hover {
    background-color: var(--ds-gold-hover);
    border-color: var(--ds-gold-hover);
    color: #000;
    transform: translateY(-1px);
}

.btn-dollarsign {
    background-color: var(--ds-gold);
    border-color: var(--ds-gold);
    color: #000;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.btn-dollarsign:hover {
    background-color: var(--ds-gold-hover);
    border-color: var(--ds-gold-hover);
    color: #000;
    transform: translateY(-1px);
}

/* Shimmer Effect for V5 Buttons */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* V5 Bot GUI Styling - Prototype Matched */
#portfolio-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 1rem; 
    background: linear-gradient(135deg, var(--ds-dark-secondary), var(--ds-dark));
    border: 1px solid var(--ds-gold);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(243, 186, 47, 0.1);
}

#balance-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#balance-display { 
    font-size: 2rem; 
    color: white; 
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ds-text-primary);
}

.balance-amount.flash-green { 
    animation: flash-green 0.5s ease-in-out; 
}

@keyframes flash-green { 
    from { background: limegreen; } 
    to { background: none; } 
}

/* V5 Prototype Specific Styling */
#ai-avatar img { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
}

.speech-bubble { 
    background: #222; 
    color: white; 
    padding: 0.5rem; 
    border-radius: 10px; 
    margin-top: 0.5rem; 
}

#ai-avatar input[type="text"] { 
    width: 100%; 
    padding: 0.5rem; 
    border-radius: 5px; 
    margin-top: 0.5rem; 
    background: var(--ds-dark-secondary);
    border: 1px solid #30363d;
    color: var(--ds-text-primary);
}

.bot-card { 
    background: #111; 
    border-radius: 10px; 
    padding: 1rem; 
    margin-bottom: 0.5rem; 
    color: white; 
    position: relative; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.bot-card:hover {
    border: 1px solid var(--ds-gold);
    box-shadow: 0 2px 8px rgba(243, 186, 47, 0.1);
}

.remove-bot { 
    position: absolute; 
    top: 5px; 
    right: 10px; 
    background: transparent; 
    color: red; 
    border: none; 
    font-weight: bold; 
    cursor: pointer;
    font-size: 1rem;
}

.bot-pnl.up { 
    color: limegreen; 
}

.bot-pnl.down { 
    color: red; 
}

.risk-meter { 
    margin-top: 1rem; 
    color: white; 
}

.roi-tag { 
    font-size: 1.2rem; 
    color: limegreen; 
    margin-left: 0.5rem; 
    display: inline-block; 
    background: var(--ds-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.strategy-icons { 
    margin-top: 0.5rem; 
    display: flex; 
    gap: 0.5rem; 
}

.add-bot-controls input { 
    width: 80px; 
    padding: 0.25rem; 
    background: var(--ds-dark);
    border: 1px solid #30363d;
    color: var(--ds-text-primary);
    border-radius: 6px;
}

.add-bot, .run-bots { 
    padding: 0.5rem 1rem; 
    background: gold; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    color: #000;
    font-weight: 600;
    transition: all 0.2s ease;
}

.add-bot:hover, .run-bots:hover {
    background: var(--ds-gold-hover);
    transform: translateY(-1px);
}

.run-bots.shimmer { 
    animation: shimmer 1s infinite alternate; 
}

@keyframes shimmer { 
    from { opacity: 1; } 
    to { opacity: 0.5; } 
}

.upgrade-notice { 
    margin-top: 1rem; 
    text-align: center; 
    color: white; 
    background: linear-gradient(135deg, var(--ds-gold), #e6a820);
    color: #000;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.upgrade-notice a { 
    color: gold; 
    font-weight: bold; 
    text-decoration: underline;
}

.change-indicator {
    font-size: 1rem;
    font-weight: 600;
}

.change-indicator.up {
    color: var(--ds-success);
}

.change-indicator.down {
    color: var(--ds-danger);
}

.mini-graph {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.graph-toggle {
    background: var(--ds-dark-secondary);
    border: 1px solid #30363d;
    color: var(--ds-text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.graph-toggle.active,
.graph-toggle:hover {
    background: var(--ds-gold);
    color: #000;
    border-color: var(--ds-gold);
}

#ai-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#ai-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--ds-gold);
}

.speech-bubble {
    background: var(--ds-dark-secondary);
    border: 1px solid var(--ds-gold);
    border-radius: 12px;
    padding: 1rem;
    max-width: 300px;
    position: relative;
    color: var(--ds-text-primary);
    font-style: italic;
}

.ai-chat-input {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
}

.ai-chat-input input {
    flex: 1;
    background: var(--ds-dark-secondary);
    border: 1px solid #30363d;
    color: var(--ds-text-primary);
    padding: 0.5rem;
    border-radius: 6px;
}

.ai-chat-input button {
    background: var(--ds-gold);
    border: none;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-chat-input button:hover {
    background: var(--ds-gold-hover);
    transform: translateY(-1px);
}

#bot-control-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

#bot-stack-left {
    background: var(--ds-dark-secondary);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
}

#bot-stack-left h3 {
    color: var(--ds-gold);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.bot-slot {
    background: var(--ds-dark);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.bot-slot:hover {
    border-color: var(--ds-gold);
    box-shadow: 0 2px 8px rgba(243, 186, 47, 0.1);
}

.bot-name {
    font-weight: 600;
    color: var(--ds-text-primary);
}

.bot-value {
    color: var(--ds-text-muted);
    font-size: 0.875rem;
}

.pnl-stat.up {
    color: var(--ds-success);
    font-weight: 600;
}

.pnl-stat.down {
    color: var(--ds-danger);
    font-weight: 600;
}

.remove-bot {
    background: var(--ds-danger);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
}

#risk-panel-right {
    background: var(--ds-dark-secondary);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
}

.risk-slider {
    margin-bottom: 1.5rem;
}

.risk-slider label {
    display: block;
    color: var(--ds-text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.risk-slider input[type="range"] {
    width: 100%;
    margin: 1rem 0;
}

.roi-estimate {
    background: var(--ds-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.strategy-icons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.risk-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-dark);
    border: 2px solid #30363d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
}

.risk-icon.active {
    border-color: var(--ds-gold);
    background: var(--ds-gold);
    color: #000;
}

.risk-icon:hover {
    border-color: var(--ds-gold);
    box-shadow: 0 2px 8px rgba(243, 186, 47, 0.2);
}

.add-bot-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.add-bot-controls input {
    flex: 1;
    background: var(--ds-dark);
    border: 1px solid #30363d;
    color: var(--ds-text-primary);
    padding: 0.75rem;
    border-radius: 6px;
}

.add-bot {
    background: var(--ds-gold);
    border: none;
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-bot:hover {
    background: var(--ds-gold-hover);
    transform: translateY(-1px);
}

.run-bots {
    width: 100%;
    background: linear-gradient(135deg, var(--ds-success), #2ea043);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.run-bots:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(46, 160, 67, 0.3);
}

.upgrade-notice {
    background: linear-gradient(135deg, var(--ds-gold), #e6a820);
    color: #000;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin: 1rem 0;
}

.upgrade-notice a {
    color: #000;
    text-decoration: underline;
    font-weight: 700;
}

.empty-slots {
    text-align: center;
    color: var(--ds-text-muted);
    padding: 2rem;
    border: 2px dashed #30363d;
    border-radius: 8px;
}

/* Bot Commander V4 Styling */
.bot-commander-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: var(--ds-text-primary);
}

.bot-commander-container .title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--ds-gold);
    text-shadow: 0 0 10px rgba(243, 186, 47, 0.3);
}

.portfolio-summary {
    background: linear-gradient(135deg, var(--ds-dark-secondary), #1a1f2e);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid #30363d;
}

.portfolio-summary .balance {
    font-size: 3rem;
    font-weight: 700;
    color: var(--ds-success);
    margin-bottom: 0.5rem;
}

.portfolio-summary .change {
    font-size: 1.2rem;
    color: var(--ds-success);
    font-weight: 600;
}

.risk-level-selector {
    background: var(--ds-dark-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #30363d;
}

.risk-level-selector label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ds-gold);
    margin-bottom: 1rem;
    display: block;
}

.risk-level-selector .slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #30363d;
    outline: none;
    -webkit-appearance: none;
}

.risk-level-selector .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--ds-gold);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(243, 186, 47, 0.5);
}

.risk-level-selector .slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--ds-gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(243, 186, 47, 0.5);
}

.chat-box {
    background: var(--ds-dark-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #30363d;
}

.chat-box .chat-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ds-gold);
    margin-bottom: 1rem;
    text-align: center;
}

.chat-box .chat-history {
    background: #0d1117;
    border-radius: 0.5rem;
    padding: 1rem;
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-box input {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 0.375rem;
    color: var(--ds-text-primary);
    padding: 0.5rem 1rem;
    width: calc(100% - 80px);
    margin-right: 0.5rem;
}

.chat-box input:focus {
    outline: none;
    border-color: var(--ds-gold);
    box-shadow: 0 0 0 2px rgba(243, 186, 47, 0.2);
}

.chat-box button {
    background: var(--ds-gold);
    border: none;
    border-radius: 0.375rem;
    color: #000;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-box button:hover {
    background: var(--ds-gold-hover);
    transform: translateY(-1px);
}

.chat-message-ari {
    color: var(--ds-text-primary);
    margin-bottom: 0.5rem;
}

.chat-message-user {
    color: var(--ds-gold);
    margin-bottom: 0.5rem;
    text-align: right;
}

.bot-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.bot-card {
    background: linear-gradient(135deg, var(--ds-dark-secondary), #1a1f2e);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
}

.bot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(243, 186, 47, 0.1);
    border-color: var(--ds-gold);
}

.bot-card h3 {
    color: var(--ds-gold);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.bot-card p {
    color: var(--ds-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.bot-card .bot-amount {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 0.375rem;
    color: var(--ds-text-primary);
    padding: 0.5rem 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.bot-card .bot-amount:focus {
    outline: none;
    border-color: var(--ds-gold);
    box-shadow: 0 0 0 2px rgba(243, 186, 47, 0.2);
}

.bot-card .add-bot-btn {
    background: var(--ds-gold);
    border: none;
    border-radius: 0.375rem;
    color: #000;
    padding: 0.75rem 1.5rem;
    width: 100%;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bot-card .add-bot-btn:hover {
    background: var(--ds-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(243, 186, 47, 0.3);
}

.bot-card .add-bot-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.active-bots {
    background: var(--ds-dark-secondary);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #30363d;
}

.active-bots h2 {
    color: var(--ds-gold);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.active-bot-slot {
    background: linear-gradient(135deg, #1a1f2e, var(--ds-dark-secondary));
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--ds-success);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.active-bot-slot .bot-info h4 {
    color: var(--ds-success);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.active-bot-slot .bot-info p {
    color: var(--ds-text-muted);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.active-bot-slot .remove-bot-btn {
    background: var(--ds-danger);
    border: none;
    border-radius: 0.375rem;
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.active-bot-slot .remove-bot-btn:hover {
    background: #c5282f;
    transform: translateY(-1px);
}

.active-bot-slot .remove-bot-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Bot Commander V5 Styling */
#portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--ds-dark-secondary), #1a1f2e);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #30363d;
}

#balance-display {
    flex: 1;
}

.balance-amount {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--ds-success);
    margin-bottom: 0.5rem;
}

.change-indicator {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.change-indicator.up {
    color: var(--ds-success);
}

.change-indicator.down {
    color: var(--ds-danger);
}

.mini-graph {
    display: flex;
    gap: 0.5rem;
}

.graph-toggle {
    background: #30363d;
    border: 1px solid #444c56;
    border-radius: 0.375rem;
    color: var(--ds-text-muted);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.graph-toggle.active,
.graph-toggle:hover {
    background: var(--ds-gold);
    color: #000;
    border-color: var(--ds-gold);
}

#ai-avatar {
    flex: 1;
    text-align: center;
    max-width: 400px;
}

#ai-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--ds-gold);
    margin-bottom: 1rem;
}

.speech-bubble {
    background: var(--ds-gold);
    color: #000;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    position: relative;
    font-style: italic;
    font-weight: 500;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--ds-gold);
}

.ai-chat-input {
    display: flex;
    gap: 0.5rem;
    max-width: 300px;
    margin: 0 auto;
}

.ai-chat-input input {
    flex: 1;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 0.375rem;
    color: var(--ds-text-primary);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.ai-chat-input input:focus {
    outline: none;
    border-color: var(--ds-gold);
    box-shadow: 0 0 0 2px rgba(243, 186, 47, 0.2);
}

.ai-chat-input button {
    background: var(--ds-gold);
    border: none;
    border-radius: 0.375rem;
    color: #000;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-chat-input button:hover {
    background: var(--ds-gold-hover);
}

#bot-control-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

#bot-stack-left {
    background: var(--ds-dark-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #30363d;
}

#bot-stack-left h3 {
    color: var(--ds-gold);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.bot-slot {
    background: linear-gradient(135deg, #1a1f2e, var(--ds-dark-secondary));
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--ds-success);
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
}

.bot-slot .bot-name {
    font-weight: 600;
    color: var(--ds-success);
}

.bot-slot .bot-value {
    font-weight: 600;
    color: var(--ds-text-primary);
    text-align: center;
}

.bot-slot .pnl-stat {
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
}

.bot-slot .pnl-stat.up {
    color: var(--ds-success);
}

.bot-slot .pnl-stat.down {
    color: var(--ds-danger);
}

.bot-slot .remove-bot {
    background: var(--ds-danger);
    border: none;
    border-radius: 50%;
    color: white;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bot-slot .remove-bot:hover {
    background: #c5282f;
    transform: scale(1.1);
}

.empty-slots {
    text-align: center;
    padding: 2rem;
    color: var(--ds-text-muted);
}

#risk-panel-right {
    background: var(--ds-dark-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #30363d;
}

.risk-slider {
    margin-bottom: 2rem;
}

.risk-slider label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ds-gold);
    margin-bottom: 1rem;
}

.risk-slider input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #30363d;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 1rem;
}

.risk-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--ds-gold);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(243, 186, 47, 0.5);
}

.risk-slider input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--ds-gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(243, 186, 47, 0.5);
}

.roi-estimate {
    display: block;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ds-success);
}

.strategy-icons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #0d1117;
    border-radius: 0.75rem;
}

.risk-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #30363d;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.risk-icon:hover {
    transform: scale(1.1);
    background: var(--ds-gold);
}

.risk-icon.active {
    border-color: var(--ds-gold);
    background: var(--ds-gold);
    box-shadow: 0 0 15px rgba(243, 186, 47, 0.4);
}

.risk-icon span {
    font-size: 1.5rem;
}

.risk-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ds-dark);
    color: var(--ds-text-primary);
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    max-width: 200px;
    text-align: center;
}

.available-bots {
    margin-bottom: 1.5rem;
}

.available-bots h4 {
    color: var(--ds-gold);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bot-option {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.bot-option:hover {
    border-color: var(--ds-gold);
    background: rgba(243, 186, 47, 0.1);
}

.bot-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-emoji {
    font-size: 1.2rem;
}

.bot-name {
    flex: 1;
    margin-left: 0.5rem;
    font-weight: 600;
    color: var(--ds-text-primary);
}

.bot-roi {
    color: var(--ds-success);
    font-weight: 600;
    font-size: 0.875rem;
}

.add-bot-section {
    display: flex;
    gap: 0.75rem;
}

.add-bot-section input {
    flex: 1;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 0.375rem;
    color: var(--ds-text-primary);
    padding: 0.75rem;
    font-weight: 600;
}

.add-bot-section input:focus {
    outline: none;
    border-color: var(--ds-gold);
    box-shadow: 0 0 0 2px rgba(243, 186, 47, 0.2);
}

.add-bot {
    background: var(--ds-gold);
    border: none;
    border-radius: 0.375rem;
    color: #000;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.add-bot:hover {
    background: var(--ds-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(243, 186, 47, 0.3);
}

.add-bot:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.upgrade-banner {
    background: linear-gradient(135deg, var(--ds-danger), #8b1538);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.upgrade-banner a {
    color: var(--ds-gold);
    text-decoration: none;
    font-weight: 700;
}

.upgrade-banner a:hover {
    text-decoration: underline;
}

.feature-toggles {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.feature-toggle {
    background: #30363d;
    border: 1px solid #444c56;
    border-radius: 0.375rem;
    color: var(--ds-text-primary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-toggle:hover {
    background: var(--ds-gold);
    color: #000;
    border-color: var(--ds-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    #portfolio-header {
        flex-direction: column;
        gap: 2rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    #bot-control-area {
        grid-template-columns: 1fr;
    }
    
    .strategy-icons {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }
    
    .risk-icon {
        width: 40px;
        height: 40px;
    }
    
    .risk-icon span {
        font-size: 1.2rem;
    }
    
    .feature-toggles {
        flex-direction: column;
        align-items: center;
    }
    
    .ai-chat-input {
        max-width: 100%;
    }
    
    .bot-slot {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }
}

.chat-message.coach {
    text-align: left;
}

.chat-bubble {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-bubble.user {
    background-color: var(--ds-gold);
    color: #000;
}

.chat-bubble.coach {
    background-color: #424549;
    color: var(--ds-text-primary);
}

/* Enhanced Card Styling */
.card {
    background-color: var(--ds-dark-secondary);
    border: 1px solid #30363d;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.card-body {
    padding: 1.5rem;
}

/* Bot Card Enhancements */
.bot-card {
    transition: all 0.2s ease;
}

.bot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.4);
    border-color: var(--ds-gold);
}

/* Form Enhancements */
.form-control {
    background-color: var(--ds-dark);
    border: 1px solid #30363d;
    color: var(--ds-text-primary);
}

.form-control:focus {
    background-color: var(--ds-dark);
    border-color: var(--ds-gold);
    box-shadow: 0 0 0 0.2rem rgba(243, 186, 47, 0.25);
    color: var(--ds-text-primary);
}

.form-range::-webkit-slider-thumb {
    background-color: var(--ds-gold);
}

.form-range::-moz-range-thumb {
    background-color: var(--ds-gold);
    border: none;
}

/* Utility Classes */
.glow-gold {
    box-shadow: 0 0 20px rgba(243, 186, 47, 0.3);
}

.border-gold {
    border-color: var(--ds-gold) !important;
}

.border-dashed {
    border: 2px dashed #6c757d !important;
}

.chat-box {
    height: 320px;
    overflow-y: auto;
    border: 1px solid #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .chat-window {
        min-height: 200px;
        max-height: 250px;
    }
}