/* AI Interface V2 - Expandable Left Navigation with Theme System */

/**
 * ===========================================
 * THEME SYSTEM - CSS VARIABLES
 * ===========================================
 */

/* Dark Mode (Default) */
:root {
    /* Background Colors */
    --bg-primary: #0e0e0e;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #757575;
    --bg-panel: rgba(14, 14, 14, 0.95);
    --bg-panel-secondary: rgba(31, 31, 31, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --bg-glass-active: rgba(255, 255, 255, 0.12);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #dfdfdf;
    --text-tertiary: #ccc;
    --text-muted: #aaa;
    --text-disabled: #888;
    --text-subtle: #666;
    
    /* Accent Colors */
    --accent-primary: #009E82;
    --accent-secondary: #00C49F;
    --accent-hover: #008A70;
    --accent-active: #00A085;
    
    /* Border Colors */
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(0, 158, 130, 0.2);
    --border-accent-hover: rgba(0, 158, 130, 0.3);
    --border-accent-active: rgba(0, 158, 130, 0.4);
    
    /* Shadow Colors */
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-heavy: rgba(0, 0, 0, 0.7);
    --shadow-accent: rgba(0, 158, 130, 0.3);
    
    /* Status Colors */
    --status-success: #10b981;
    --status-error: #ef4444;
    --status-warning: #f59e0b;
    --status-info: #3b82f6;
    
    /* Scrollbar Colors */
    --scrollbar-track: rgba(255, 255, 255, 0.05);
    --scrollbar-thumb: rgba(0, 158, 130, 0.3);
    --scrollbar-thumb-hover: rgba(0, 158, 130, 0.5);
}

/* Light Mode */
.light-mode {
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #979797;
    --bg-panel: rgba(255, 255, 255, 0.95);
    --bg-panel-secondary: rgba(248, 249, 250, 0.8);
    --bg-glass: rgba(0, 0, 0, 0.05);
    --bg-glass-hover: rgba(0, 0, 0, 0.08);
    --bg-glass-active: rgba(0, 0, 0, 0.12);
    
    /* Text Colors */
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-tertiary: #6c757d;
    --text-muted: #6c757d;
    --text-disabled: #adb5bd;
    --text-subtle: #ced4da;
    
    /* Accent Colors (Keep same but adjust contrast) */
    --accent-primary: #009E82;
    --accent-secondary: #00C49F;
    --accent-hover: #008A70;
    --accent-active: #00A085;
    
    /* Border Colors */
    --border-primary: rgba(0, 0, 0, 0.1);
    --border-secondary: rgba(0, 0, 0, 0.15);
    --border-accent: rgba(0, 158, 130, 0.2);
    --border-accent-hover: rgba(0, 158, 130, 0.3);
    --border-accent-active: rgba(0, 158, 130, 0.4);
    
    /* Shadow Colors */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.25);
    --shadow-accent: rgba(0, 158, 130, 0.2);
    
    /* Status Colors (Keep same for consistency) */
    --status-success: #10b981;
    --status-error: #ef4444;
    --status-warning: #f59e0b;
    --status-info: #3b82f6;
    
    /* Scrollbar Colors */
    --scrollbar-track: rgba(0, 0, 0, 0.05);
    --scrollbar-thumb: rgba(0, 158, 130, 0.3);
    --scrollbar-thumb-hover: rgba(0, 158, 130, 0.5);
}

.dark-mode-ele{
    display: block !important;
}

.light-mode-ele{
    display: none !important;
}

.light-mode .light-mode-ele{
    display: block !important;
}

.light-mode .dark-mode-ele{
    display: none !important;
}

/* Theme Transition Animation */
.theme-transitioning * {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease !important;
}

/* Light Mode Specific Adjustments */
.light-mode .video-noise {
    opacity: 0.1 !important;
    filter: invert(1);
}

.light-mode .bg-static-circle {
    /* filter: invert(1) opacity(0.3); */
}

.light-mode .image-noise {
    opacity: 0.1 !important;
    filter: invert(1);
}


#menuToggle{
    background-color: transparent !important;
    border: none !important;
}

/* SWAL */

.swal-subscribe-msg {
	color: rgba(255, 255, 255, 0.812);
	font-size: 1.125rem;
}

body.light .swal-subscribe-msg {
	color: rgba(0, 0, 0, 0.812);
	font-size: 1.125rem;
}

.swal2-popup {
	width: fit-content;
	padding: 1.25rem 3.125rem 1.875rem 3.125rem;
	max-width: 37.5rem;
    background-color: #1c2d2a !important;
}

.light-mode .swal2-popup{
    background-color: #88e7d6 !important;
}

.swal2-content {
    color: #9f9f9f !important;
} 

.light-mode .swal2-content {
    color: #313131 !important;
} 

.swal2-title {
    color: #a9a9a9 !important;
}

.light-mode .swal2-title {
    color: #1f1f1f !important;
}

/* .swal2-success-circular-line-left {
	background-color: black !important;
}

.swal2-success-circular-line-right {
	background-color: black !important;
}

.swal2-success-fix {
	background-color: black !important;
} */

.swal2-modal {
	border: 0.0625rem solid rgba(255, 255, 255, 0.171);
}

/* Theme Toggle Button Styles */
.theme-toggle {
    border-top: 1px solid var(--border-primary);
    margin-top: 10px;
    padding-top: 10px;
}

.theme-toggle:hover {
    background: var(--bg-glass-hover);
}

.theme-icon {
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: scale(1.1) rotate(180deg);
}

/* Left section navigation states */
.left-section {
    transition: width 0.3s ease;
    overflow: hidden;
    position: relative;
}

.left-section.nav-expanded {
    width: calc(350px - 25px) !important;
}


.video-noise{
    position: absolute;
    opacity: 0.5 !important;
    width: 100%;
}

.bg-static-circle{
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -10%);
    filter: blur(100px);
}

.light-mode .bg-static-circle{
    opacity: 0.5;
}

.image-noise{
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -30%);
    width: 100%;
    opacity: 0.3;
}

/* Navigation container */
.nav-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px 8px;
    gap: 5px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.nav-expanded #unexpanded-menu-icon{
    display: none;
}

.nav-expanded #expanded-menu-icon{
    display: block;
}

#unexpanded-menu-icon{
    display: block;
}

#expanded-menu-icon{
    display: none;
}

/* Navigation toggle button */
.nav-toggle {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    margin-bottom: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
}

.nav-toggle:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-secondary);
}

/* Navigation items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    margin: 2px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-glass-hover);
}

.nav-item.active {
    background: var(--border-accent);
    /* border-left: 3px solid var(--accent-primary); */
}

.nav-item.active i {
    color: var(--accent-primary) !important;
}

.nav-item.active .nav-label {
    color: var(--accent-primary) !important;
}

/* Navigation icons */
.nav-item i,
.nav-toggle i {
    width: 20px;
    text-align: center;
    color: var(--text-disabled);
    font-size: 21px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.nav-item:hover i,
.nav-toggle:hover i {
    color: var(--text-tertiary);
}

/* Navigation labels */
.nav-label {
    margin-left: 12px;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    white-space: nowrap;
    overflow: hidden;
}

.left-section.nav-expanded .nav-label {
    opacity: 1;
    transform: translateX(0);
}

/* Tooltip for collapsed state */
.nav-tooltip {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-panel);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.nav-tooltip::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--bg-panel);
}

.nav-item:hover .nav-tooltip {
    opacity: 1;
}

.left-section.nav-expanded .nav-tooltip {
    display: none;
}

/* Navigation divider */
.nav-divider {
    height: 1px;
    background: var(--border-primary);
    margin: 10px 8px;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.left-section.nav-expanded .nav-divider {
    opacity: 1;
    transform: scaleX(1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {


    .left-section.nav-expanded {
        width: calc(250px) !important;
    }
    
    .nav-label {
        font-size: 12px;
    }
    
    .nav-item {
        padding: 10px 6px;
    }
}

/* Animation for smooth expansion */
@keyframes expandNav {
    from {
        width: calc(85px - 25px);
    }
    to {
        width: calc(200px - 25px);
    }
}

@keyframes collapseNav {
    from {
        width: calc(200px - 25px);
    }
    to {
        width: calc(85px - 25px);
    }
}

/* Additional visual enhancements */
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    /* top: 0; */
    /* bottom: 0; */
    width: 4px;
    /* background: #009E82; */
    border-radius: 50%;
    height: 4px;
}

/* Subtle glow effect for active item */
.nav-item.active {
    box-shadow: 0 0 15px #009e8131;
}

/* Chat History Section */
.chat-history-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: 5px;
}

.chat-history-header {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    margin: 2px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.chat-history-header:hover {
    background: var(--bg-glass-hover);
}

.chat-history-header i {
    width: 20px;
    text-align: center;
    color: var(--text-disabled);
    font-size: 21px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.chat-history-header:hover i {
    color: var(--text-tertiary);
}

.chat-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    opacity: 0;
    max-height: 0;
    transition: all 0.3s ease 0.1s;
    margin-top: 5px;
}

.ai-user-logo{
    position: absolute;
    right: calc(100% + 10px);
    top: 10px;
    width: 50px;
    height: 50px;
    background: #161616;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.light-mode .ai-user-logo{
    background: #00ff8026;
}

.ai-user-logo img{
    width: 50%;
}

.left-section.nav-expanded .chat-history-list {
    opacity: 1;
    max-height: calc(100vh - 720px);
    /* height: 100px; */
    padding: 5px 0;
}

.chat-history-item {
    padding: 8px 12px;
    margin: 2px 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    position: relative;
}

.chat-history-item:hover {
    background: var(--bg-glass);
    border-left-color: var(--border-secondary);
}

.chat-history-item.active {
    background: var(--border-accent);
    border-left-color: var(--accent-primary);
}

.chat-preview {
    font-size: 11px;
    color: var(--text-tertiary);
    line-height: 1.3;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-history-item.active .chat-preview {
    color: var(--accent-primary);
    font-weight: 500;
}

.chat-timestamp {
    font-size: 9px;
    color: var(--text-subtle);
    opacity: 0.8;
}

.chat-history-item.active .chat-timestamp {
    color: var(--accent-primary);
    opacity: 0.7;
}

/* Empty state for chat history */
.chat-history-empty {
    padding: 15px 12px;
    text-align: center;
    color: var(--text-subtle);
    font-size: 10px;
    font-style: italic;
}

/* Custom scrollbar for chat history */
.chat-history-list::-webkit-scrollbar {
    width: 3px;
}

.chat-history-list::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 3px;
}

.chat-history-list::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

.chat-history-list::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Animation for new chat items */
@keyframes slideInChat {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-history-item.new-chat {
    animation: slideInChat 0.3s ease forwards;
}

/* Bottom section for additional items */
.nav-bottom {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-primary);
}

/* Right Section Summary Panel */
.summary-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 18px 14px;
    overflow-y: auto;
}

.summary-section {
    /* flex: 1; */
    padding: 0 4px;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 158, 130, 0.4), transparent);
    margin: 20px 0;
    position: relative;
}

.summary-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(0, 158, 130);
    border-radius: 50%;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 8px;
}

.section-header i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.section-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Dashboard Section - Row Layout */
.dashboard-section .section-header i {
    color: var(--accent-primary);
}

.section-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 158, 130, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 158, 130, 0.1);
}

.metric-row:hover {
    background: rgba(0, 158, 130, 0.12);
    border-color: rgba(0, 158, 130, 0.2);
}

.metric-row.primary-metric {
    background: rgba(0, 158, 130, 0.15);
    border: 1px solid rgba(0, 158, 130, 0.3);
}

.metric-row-group {
    display: flex;
    gap: 8px;
}

.metric-row-group .metric-row {
    flex: 1;
    font-size: 12px;
}

/* Strategies Section - Grid Layout */
.strategies-section .section-header i {
    color: #00C49F;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.metric-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: rgba(0, 196, 159, 0.08);
    border: 1px solid rgba(0, 196, 159, 0.18);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.metric-box:hover {
    background: rgba(0, 196, 159, 0.15);
    border-color: rgba(0, 196, 159, 0.3);
    transform: translateY(-2px);
}

.metric-box.wide {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* Trades Section - List Layout */
.trades-section .section-header i {
    color: #007A66;
}

.metric-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 122, 102, 0.08);
    border-left: 3px solid rgba(0, 122, 102, 0.4);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(0, 122, 102, 0.15);
    border-left-color: rgba(0, 122, 102, 0.7);
}

.metric-item.highlight {
    background: rgba(0, 122, 102, 0.15);
    border-left-color: rgba(0, 122, 102, 0.7);
}

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

.metric-sublabel {
    color: #666;
    font-size: 10px;
    margin-top: 2px;
}

/* Text Styling */
.metric-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.metric-value {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.metric-value.large {
    font-size: 16px;
    font-weight: 700;
}

/* Value color coding */
.metric-value.positive {
    color: #4ade80;
}

.metric-value.negative {
    color: #ef4444;
}

.metric-value.neutral {
    color: #94a3b8;
}

/* Loading state */
.metric-value.loading {
    opacity: 0.5;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Custom scrollbar for summary panel */
.summary-panel::-webkit-scrollbar {
    width: 4px;
}

.summary-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.summary-panel::-webkit-scrollbar-thumb {
    background: rgba(226, 148, 31, 0.3);
    border-radius: 4px;
}

.summary-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(226, 148, 31, 0.5);
}

/* Center Section Content Management */
.center-section-nav-content {
    width: 100%;
    height: 100%;
}

/* Data Tables Styling */
.data-table-container {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0;
    position: relative;
    z-index: 10;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #009e8233;
}

.table-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-title i {
    color: #009e813d;
    font-size: 22px;
}

.table-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.table-filter {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-filter:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(226, 148, 31, 0.4);
}

.table-filter:focus {
    outline: none;
    border-color: #009E82;
    box-shadow: 0 0 10px rgba(226, 148, 31, 0.3);
}

.refresh-btn {
    background: #009e8131;
    border: 1px solid rgba(226, 148, 31, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: #009E82;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #009e8233;
    border-color: rgba(226, 148, 31, 0.6);
    transform: translateY(-2px);
}

/* Table Styling */
.table-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.sortable-table thead {
    background: rgba(0, 0, 0, 0.7);
}

.sortable-table th {
    padding: 15px 12px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #009e8233;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sortable-table th.sortable:hover {
    background: #009e8233;
}

.sortable-table th i {
    margin-left: 8px;
    color: #888;
    transition: all 0.3s ease;
}

.sortable-table th.sorting-asc i::before {
    content: "\f0de";
    color: #009E82;
}

.sortable-table th.sorting-desc i::before {
    content: "\f0dd";
    color: #009E82;
}

.sortable-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

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

.sortable-table td {
    padding: 12px;
    color: #ccc;
    vertical-align: middle;
}

.sortable-table .actions-column {
    width: 120px;
    text-align: center;
}

/* Status and Value Styling */
.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-inactive {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.status-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pnl-positive {
    color: #22c55e;
    font-weight: 600;
}

.pnl-negative {
    color: #ef4444;
    font-weight: 600;
}

.pnl-neutral {
    color: #9ca3af;
}

/* Action Buttons */
.action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 5px 8px;
    color: #ccc;
    cursor: pointer;
    font-size: 11px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #009e8233;
    border-color: rgba(226, 148, 31, 0.4);
    color: #009E82;
}

.action-btn.edit-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.action-btn.view-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #8b5cf6;
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.table-info {
    color: #888;
    font-size: 13px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 8px 12px;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #009e8233;
    border-color: rgba(226, 148, 31, 0.4);
    color: #009E82;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #888;
    font-size: 13px;
}

/* Custom scrollbar for data tables */
.data-table-container::-webkit-scrollbar {
    width: 6px;
}

.data-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.data-table-container::-webkit-scrollbar-thumb {
    background: #009E82;
    border-radius: 6px;
}

.data-table-container::-webkit-scrollbar-thumb:hover {
    background: #009E82;
}

/* Mobile responsiveness for tables */
@media (max-width: 768px) {
    .data-table-container {
        padding: 15px;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .table-title {
        font-size: 20px;
    }
    
    .table-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .table-filter {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .table-wrapper {
        overflow-x: auto;
    }
    
    .sortable-table {
        min-width: 880px;
    }
    
    .sortable-table th,
    .sortable-table td {
        padding: 8px;
        font-size: 12px;
    }
    
    .table-footer {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Profile Section Styles */
.profile-container {
    padding: 25px;
    height: 100%;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
}

.profile-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 158, 130, 0.3);
}

.profile-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-title i {
    color: #009E82;
    font-size: 24px;
}

/* Profile Content Grid */
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Profile Avatar Section */
.profile-avatar-section {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: rgba(0, 158, 130, 0.08);
    border: 1px solid rgba(0, 158, 130, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.profile-avatar-section:hover {
    background: rgba(0, 158, 130, 0.12);
    border-color: rgba(0, 158, 130, 0.3);
    transform: translateY(-2px);
}

.avatar-container {
    position: relative;
    margin-bottom: 15px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #009E82;
    transition: all 0.3s ease;
}


.profile-display-info {
    text-align: center;
}

.profile-display-name {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.profile-display-username {
    color: #009E82;
    font-size: 14px;
    margin: 0;
}

/* Profile Cards */
.profile-info-card,
.profile-membership-card,
.profile-upload-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.profile-info-card:hover,
.profile-membership-card:hover,
.profile-upload-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 158, 130, 0.3);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 158, 130, 0.2);
}

.profile-card-header i {
    color: #009E82;
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.profile-card-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Profile Information Grid */
.profile-info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
}

.profile-label i {
    color: #009E82;
    font-size: 11px;
    width: 12px;
    text-align: center;
}

.profile-value {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(0, 158, 130, 0.05);
    border: 1px solid rgba(0, 158, 130, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-value:hover {
    background: rgba(0, 158, 130, 0.1);
    border-color: rgba(0, 158, 130, 0.3);
}

/* Membership Information */
.membership-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.membership-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 158, 130, 0.08);
    border-left: 3px solid #009E82;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.membership-metric:hover {
    background: rgba(0, 158, 130, 0.15);
    transform: translateX(3px);
}

.membership-label {
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
}

.membership-value {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}


/* Loading states */
.profile-value.loading,
.membership-value.loading {
    opacity: 0.6;
    animation: profilePulse 1.5s ease-in-out infinite;
}

@keyframes profilePulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.9;
    }
}

/* Custom scrollbar for profile */
.profile-container::-webkit-scrollbar {
    width: 6px;
}

.profile-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.profile-container::-webkit-scrollbar-thumb {
    background: rgba(0, 158, 130, 0.3);
    border-radius: 6px;
}

.profile-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 158, 130, 0.5);
}

/* Mobile responsiveness for profile */
@media (max-width: 768px) {
    .profile-container {
        padding: 15px;
    }
    
    .profile-content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .profile-avatar-section {
        padding: 20px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-title {
        font-size: 22px;
    }
    
    .profile-info-card,
    .profile-membership-card,
    .profile-upload-card {
        padding: 15px;
    }
    
    .profile-upload-area {
        padding: 20px;
    }
    
    .upload-icon i {
        font-size: 24px;
    }
    
    .upload-text h4 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .md-paragraph {
        font-size: 12px;
    }

    .video-noise {
        height: 100%;
    }

    .chat_templates_container {
        width: 100%; 
    }

    .chat_template>p {
        text-align: left;
    }

    .sec-1-container{
        padding-top: 80px;
    }

    .sec-1-text-1{
        font-size: 1.2rem;
    }

    .tradezee_main_logo{
        width: 150px;
    }

    .custom_input_1 {
        padding: 0;
        position: fixed;
        bottom: 120px;
        left: 50%;
        transform: translate(-50%, 0%) !important;
    }

    .left-section.nav-expanded {
        width: 100% !important;
    }

    .profile-content-grid {
        gap: 12px;
    }
    
    .membership-metric {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .membership-value {
        align-self: flex-end;
    }
}

/* ==========================================
   ACCOUNTS SECTION STYLES
========================================== */

/* Accounts Container */
.accounts-container {
    padding: 25px;
    height: 100%;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
}

.accounts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 158, 130, 0.3);
}

.accounts-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.accounts-title i {
    color: #009E82;
    font-size: 24px;
}

.add-account-btn {
    background: linear-gradient(135deg, #009E82, #00C49F);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 158, 130, 0.4);
}

.add-account-btn i {
    font-size: 23px;
}

/* Exchange Cards Container */
.accounts-content-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exchange-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Loading State */
.accounts-loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 158, 130, 0.3);
    border-top: 3px solid #009E82;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.accounts-loading-state p {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

/* Exchange Cards */
.exchange-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.exchange-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 158, 130, 0.3);
    transform: translateY(-2px);
}

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

.exchange-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.exchange-logo {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exchange-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.exchange-card-body {
    margin-bottom: 15px;
}

.exchange-login {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exchange-login i {
    color: #009E82;
    font-size: 12px;
    width: 14px;
}

.exchange-password {
    color: #aaa;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.password-display {
    font-family: monospace;
    letter-spacing: 2px;
}

.password-toggle {
    color: #009E82;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.password-toggle:hover {
    color: #00C49F;
    transform: scale(1.1);
}

.exchange-date {
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.exchange-date i {
    color: #009E82;
    font-size: 10px;
}

/* Exchange Card Actions */
.exchange-card-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.exchange-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0, 158, 130, 0.1);
    border: 1px solid rgba(0, 158, 130, 0.3);
    color: #009E82;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.exchange-action-btn:hover {
    background: rgba(0, 158, 130, 0.2);
    border-color: #009E82;
    transform: scale(1.1);
}

.exchange-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* Empty State */
.accounts-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed rgba(0, 158, 130, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.accounts-empty-state:hover {
    border-color: #009E82;
    background: rgba(0, 158, 130, 0.1);
    transform: translateY(-2px);
}

.empty-state-icon {
    font-size: 48px;
    color: #009E82;
    margin-bottom: 20px;
}

.empty-state-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.empty-state-description {
    color: #aaa;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

#coupon-validation-message>div{
    border: 1px solid;
    border-radius: 50px;
    text-align: center;
    padding: 7px 0;
    margin-top: 15px;
}

/* ==========================================
   ACCOUNTS MODAL STYLES
========================================== */

/* Modal Content */
.accounts-modal-content {
    background: rgba(14, 14, 14, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 158, 130, 0.3);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.accounts-modal-header {
    background: rgba(0, 158, 130, 0.1);
    border-bottom: 1px solid rgba(0, 158, 130, 0.2);
    border-radius: 16px 16px 0 0;
}

.accounts-modal-header .modal-title {
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accounts-modal-header .modal-title i {
    color: #009E82;
}

.accounts-btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.accounts-btn-close:hover {
    opacity: 1;
}

.accounts-modal-body {
    color: #ffffff;
    padding: 25px;
}

.accounts-modal-footer {
    border-top: 1px solid rgba(0, 158, 130, 0.2);
}

.accounts-modal-description {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 25px;
    text-align: center;
}

/* Exchange Category */
.exchange-category-title {
    color: #009E82;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Exchange Options Grid */
.exchange-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.exchange-option {
    background: rgba(31, 31, 31, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exchange-option:hover {
    border-color: rgba(0, 158, 130, 0.5);
    background: rgba(0, 158, 130, 0.1);
    transform: translateY(-2px);
}

.exchange-option.selected {
    border-color: #009E82;
    background: rgba(0, 158, 130, 0.15);
}

.exchange-option .exchange-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    margin-bottom: 12px;
}

.exchange-option .exchange-logo img {
    height: 45px;
    max-width: 100px;
    object-fit: contain;
}

.exchange-option .exchange-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* Credentials Step */
.credentials-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 158, 130, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 158, 130, 0.2);
}

.selected-exchange-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #009E82, #00C49F);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
}

.selected-exchange-info h6 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.selected-exchange-info p {
    color: #aaa;
    font-size: 12px;
    margin: 0;
}

/* Form Styles */
.accounts-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accounts-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accounts-form .form-label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accounts-form .form-label i {
    color: #009E82;
    font-size: 12px;
    width: 14px;
}

.accounts-input {
    background: rgba(31, 31, 31, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.accounts-input:focus {
    outline: none !important;
    border-color: #009E82 !important;
    box-shadow: 0 0 15px rgba(0, 158, 130, 0.3) !important;
    background: rgba(31, 31, 31, 0.8) !important;
}

.accounts-input::placeholder {
    color: #666 !important;
}

.accounts-input:read-only {
    background: rgba(31, 31, 31, 0.4) !important;
    cursor: default;
}

/* Form Check */
.form-check-container {
    margin-top: 10px;
}

.accounts-form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(31, 31, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.accounts-form-check:hover {
    border-color: rgba(0, 158, 130, 0.3);
}

.accounts-form-check .form-check-input {
    margin: 0;
    accent-color: #009E82;
}

.accounts-form-check .form-check-label {
    color: #fff;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.accounts-form-check .form-check-label i {
    color: #009E82;
    font-size: 12px;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.accounts-btn-primary {
    background: linear-gradient(135deg, #009E82, #00C49F) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.accounts-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 158, 130, 0.4) !important;
}

.accounts-btn-secondary {
    background: rgba(31, 31, 31, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.accounts-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}

.accounts-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.accounts-btn-danger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4) !important;
}

/* Input Groups */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .accounts-input {
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
}

.input-group .btn {
    border-radius: 0 8px 8px 0 !important;
    border-left: none !important;
}

.input-group .btn:not(:last-child) {
    border-radius: 0 !important;
    border-right: none !important;
}

.input-group .btn:last-child {
    border-radius: 0 8px 8px 0 !important;
}

/* Credential Items */
.credential-item {
    margin-bottom: 20px;
}

.credential-item:last-child {
    margin-bottom: 0;
}

/* Delete Warning */
.delete-warning-icon {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 15px;
}

.delete-warning-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.delete-warning-text {
    color: #aaa;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.delete-exchange-name {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 20px 0;
}

.delete-exchange-name strong {
    color: #ef4444;
    font-weight: 600;
}

/* Custom scrollbar for accounts */
.accounts-container::-webkit-scrollbar {
    width: 6px;
}

.accounts-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.accounts-container::-webkit-scrollbar-thumb {
    background: rgba(0, 158, 130, 0.3);
    border-radius: 6px;
}

.accounts-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 158, 130, 0.5);
}

/* Mobile responsiveness for accounts */
@media (max-width: 768px) {
    .accounts-container {
        padding: 15px;
    }
    
    .accounts-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .accounts-title {
        font-size: 22px;
        text-align: center;
    }
    
    .exchange-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .exchange-options-grid {
        grid-template-columns: 1fr;
    }
    
    .credentials-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .accounts-title {
        font-size: 20px;
    }
    
    .add-account-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .exchange-card {
        padding: 15px;
    }
    
    .accounts-modal-body {
        padding: 20px;
    }
}

/* Right section mobile responsiveness */
@media (max-width: 768px) {
    .summary-panel {
        padding: 12px 10px;
    }
    
    .metric-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-box.wide {
        grid-column: 1;
    }
    
    .section-title {
        font-size: 13px;
    }
    
    .metric-label {
        font-size: 11px;
    }
    
    .metric-value {
        font-size: 12px;
    }
    
    .metric-value.large {
        font-size: 14px;
    }
}

/* ===============================================
   MOBILE RESPONSIVENESS ENHANCEMENTS
   =============================================== */

/* Mobile Navigation Triggers */
/* OLD MOBILE TRIGGERS - REPLACED WITH BOTTOM NAV */
/*
.mobile-nav-triggers {
    display: none;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1055;
    pointer-events: none;
    width: 100%;
    height: auto;
}

.mobile-trigger-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 158, 130, 0.3);
    border-radius: 12px;
    color: #009E82;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1056;
}

.mobile-trigger-btn:hover {
    background: rgba(0, 158, 130, 0.1);
    border-color: rgba(0, 158, 130, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

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

.mobile-left-trigger {
    left: 15px;
}

.mobile-right-trigger {
    right: 15px;
}

.trigger-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-trigger-btn:hover .trigger-tooltip {
    opacity: 1;
}
*/

/* Mobile Close Buttons */
.mobile-close-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    /* display: flex; */
    align-items: center;
    justify-content: center;
}

.mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.mobile-close-btn:active {
    transform: scale(0.95);
}


/* Mobile Layout Breakpoints */
@media (max-width: 767px) {
    /* Show mobile close buttons */
    .mobile-close-btn {
        display: flex !important;
    }
    
    /* Left Section Mobile Overlay */
    .left-section {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0;
        border-radius: 0;
        background: rgba(14, 14, 14, 0.98);
        backdrop-filter: blur(25px);
        border: none;
        border-right: 1px solid rgba(0, 158, 130, 0.2);
    }
    
    /* Force left-section to always be expanded on mobile */
    .left-section {
        width: 100vw !important;
    }
    
    /* Always show nav labels on mobile */
    .left-section .nav-label {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    
    .left-section.mobile-active {
        transform: translateX(0);
    }
    
    /* Right Section Mobile Overlay */
    .right-section {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1050;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0;
        border-radius: 0;
        background: rgba(14, 14, 14, 0.98);
        backdrop-filter: blur(25px);
        border: none;
        border-left: 1px solid rgba(0, 158, 130, 0.2);
        overflow-y: auto;
    }
    
    .right-section.mobile-active {
        transform: translateX(0);
    }
    
    /* Center Section Mobile Optimization */
    .center-section {
        /* width: calc(100% - 30px); */
        /* margin: 0 15px; */
        border-radius: 15px;
    }
    
    /* Mobile Navigation Items Enhancement */
    .nav-item {
        padding: 15px 12px;
        margin: 5px 0;
        border-radius: 12px;
        font-size: 16px;
    }
    
    .nav-item i,
    .nav-toggle i {
        font-size: 24px;
        width: 24px;
    }
    
    .nav-label {
        font-size: 16px;
        margin-left: 15px;
    }
    
    /* Mobile Chat History */
    .chat-history-item {
        padding: 12px;
        margin: 3px 0;
        border-radius: 8px;
    }
    
    .chat-preview {
        font-size: 13px;
    }
    
    .chat-timestamp {
        font-size: 11px;
    }
    
    /* Mobile Summary Panel */
    .summary-panel {
        padding: 20px;
        padding-top: 80px; /* Account for close button */
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .metric-value {
        font-size: 16px;
    }
    
    .metric-value.large {
        font-size: 20px;
    }
    
    /* Mobile Content Tables */
    .data-table-container {
        padding: 15px;
    }
    
    .table-wrapper {
        overflow-x: auto;
        border-radius: 8px;
    }
    
    .sortable-table {
        
    }
    
    .sortable-table th,
    .sortable-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    /* Mobile Pagination */
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pagination-btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* Mobile Profile Section */
    .profile-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-avatar-section {
        text-align: center;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Accounts Section */
    .accounts-content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .exchange-card {
        margin-bottom: 15px;
    }
    
    /* Prevent body scroll when overlays are active */
    body.mobile-overlay-active {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    /* Old mobile triggers removed - using bottom nav now */
    
    .left-section {
        width: calc(80px - 25px);
    }
    
    .left-section.nav-expanded {
        width: calc(280px - 25px) !important;
    }
    
    .right-section {
        width: calc(240px - 25px);
    }
    
    .center-section {
        width: 100%;
    }
}

.nav-mobile-element{
    display: none;
}

/* Small Mobile Portrait (≤480px) */
@media (max-width: 480px) {

    .trades-section{
        padding-bottom: 130px;
    }

    .nav-mobile-element{
        display: flex;
    }

    .chat-history-section{
        display: none;
    }

    .full-panel {
        height: 100vh;
        background-color: black;
    }
    .bg-static-circle {
        width: 150%;
    }
    .image-noise {
        top: 0;
        left: 0;
        transform: translate(0, 0);
    }
    /* Old mobile trigger styles removed - using bottom nav now */
    
    .center-section {
        width: calc(100% - 20px);
        margin: 0 10px;
    }
    
    .nav-item {
        padding: 18px 15px;
    }
    
    .summary-panel {
        padding: 15px;
        padding-top: 70px;
    }
    
    .data-table-container {
        padding: 10px;
    }
    
    .sortable-table th,
    .sortable-table td {
        padding: 6px 4px;
        font-size: 11px;
    }
}

/* Mobile Animation Enhancements */
@media (max-width: 767px) {
    /* Smooth overlay animations */
    .left-section,
    .right-section {
        will-change: transform;
    }
    
    /* Touch feedback for mobile buttons */
    .mobile-nav-btn:active,
    .mobile-close-btn:active {
        background: rgba(0, 158, 130, 0.2);
    }
    
    .nav-item:active {
        background: rgba(0, 158, 130, 0.15);
        transform: scale(0.98);
    }
    
    /* Enhanced mobile touch targets */
    .nav-item,
    .chat-history-item,
    .mobile-nav-btn,
    .mobile-close-btn {
        min-height: 44px; /* Apple's recommended touch target size */
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .left-section,
    .right-section,
    .mobile-nav-btn,
    .mobile-close-btn {
        transition: none;
    }
    
    .left-section.mobile-active,
    .right-section.mobile-active {
        transition: none;
    }
}

/* Mobile Bottom Navigation */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    padding: 12px 20px 30px 20px;
    z-index: 1060;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.1);
}

.light-mode .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.1);
}



.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 12px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
    position: relative;
}

.mobile-nav-btn i {
    font-size: 24px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-btn-label {
    font-size: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-btn:hover {
    /* color: #009E82; */
    transform: translateY(-2px);
}

.mobile-nav-btn.nav-btn-active {
    background: rgba(0, 158, 130, 0.1);
    color: #009E82;
    font-weight: 600;
}

.mobile-nav-btn.nav-btn-active i {
    color: #009E82;
    transform: scale(1.1);
}

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

/* Dark theme support for bottom nav */
[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(14, 14, 14, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mobile-nav-btn {
    color: #888;
}

[data-theme="dark"] .mobile-nav-btn:hover {
    color: #009E82;
}

[data-theme="dark"] .mobile-nav-btn.nav-btn-active {
    background: rgba(0, 158, 130, 0.15);
    color: #009E82;
}

/* Show bottom nav on mobile */
@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add bottom padding to body to account for fixed bottom nav */
    body {
        padding-bottom: 100px;
    }
    
    /* Adjust center section for bottom nav */
    .center-section {
        margin-bottom: 100px;
    }
    
    /* Hide the old mobile nav triggers container completely */
    .mobile-nav-triggers {
        display: none !important;
    }
}

/* Enhanced safe area support for notched devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 767px) {
        .mobile-bottom-nav {
            padding-bottom: calc(30px + env(safe-area-inset-bottom));
        }
        
        body {
            padding-bottom: calc(100px + env(safe-area-inset-bottom));
        }
        
        .center-section {
            margin-bottom: calc(100px + env(safe-area-inset-bottom));
        }
    }
}

/* ===============================================
   COUNTDOWN POPUP STYLES
   =============================================== */

.countdown-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.countdown-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.countdown-popup {
    background: linear-gradient(135deg, #001a16 0%, #004d40 50%, #009E82 100%);
    border: 1px solid rgba(0, 158, 130, 0.3);
    /* border-radius: 20px; */
    padding: 60px 80px;
    text-align: center;
    position: relative;
    /* max-width: 600px; */
    width: 100%;
    height: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.countdown-popup-overlay.active .countdown-popup {
    transform: scale(1);
}

.countdown-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.countdown-header {
    margin-bottom: 40px;
}

.countdown-title {
    font-size: 24px;
    font-weight: 700;
    color: #009E82;
    letter-spacing: 4px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.countdown-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-number {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 10px rgba(0, 158, 130, 0.3);
}

.time-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

.time-separator {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    margin: 0 10px;
}

/* Mobile responsiveness for countdown popup */
@media (max-width: 768px) {
    .nav-bottom{
        padding-bottom: 100px;
    }
        
    .countdown-popup {
        padding: 40px 30px;
        /* margin: 20px; */
    }
    
    .countdown-title {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .countdown-subtitle {
        font-size: 12px;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    .time-block {
        min-width: 60px;
    }
    
    .time-number {
        font-size: 36px;
    }
    
    .time-separator {
        font-size: 24px;
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .countdown-popup {
        padding: 30px 20px;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .time-block {
        min-width: 50px;
    }
    
    .time-number {
        font-size: 28px;
    }
    
    .time-label {
        font-size: 10px;
    }
    
    .time-separator {
        font-size: 20px;
    }
}