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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #3b82f6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.navbar-brand .logo {
    height: 40px;
    width: auto;
    display: block;
    margin: 0;
    object-fit: contain;
}

.navbar-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    transform: translateY(-1px);
}

.nav-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Navbar User Section */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
}

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

.username {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 0.25rem;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-logout .icon {
    font-size: 1.1rem;
}

.btn-nav.btn-login {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav.btn-login:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Dashboard Styles */
.dashboard {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.stat-icon {
    font-size: 3rem;
    line-height: 1;
    opacity: 0.9;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-content .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
    line-height: 1.2;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 1.5rem;
    color: #f1f5f9;
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

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

.trades-table table {
    width: 100%;
    border-collapse: collapse;
}

.trades-table thead {
    background-color: rgba(59, 130, 246, 0.1);
}

.trades-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #334155;
}

.trades-table td {
    padding: 1rem;
    color: #cbd5e1;
    border-bottom: 1px solid #334155;
}

.trades-table tbody tr {
    transition: background-color 0.2s;
}

.trades-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.badge-warning {
    background-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

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

.badge-secondary {
    background-color: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border: 1px solid #94a3b8;
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-details p {
    margin: 0;
    display: flex;
    align-items: center;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.status-details strong {
    color: #f1f5f9;
    margin-right: 0.5rem;
    min-width: 120px;
}

.empty-message {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
}

@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Main content */
main {
    flex: 1;
    padding: 2rem;
}

/* Home page */
.home {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.home h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}

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

.feature {
    background-color: #1e293b;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
}

.feature h3 {
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

/* Login page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-container {
    background-color: #1e293b;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    width: 100%;
    max-width: 400px;
}

.login-container h1 {
    margin-bottom: 1.5rem;
    color: #3b82f6;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.25rem;
    color: #e2e8f0;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

/* TradeView */
.tradeview {
    max-width: 1400px;
    margin: 0 auto;
}

.tradeview h1 {
    margin-bottom: 1.5rem;
    color: #3b82f6;
}

.tradeview-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 1rem;
    min-height: 600px;
}

.product-search, .chart-area, .watchlist {
    background-color: #1e293b;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
}

.product-search input {
    width: 100%;
    padding: 0.75rem;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.25rem;
    color: #e2e8f0;
}

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

/* Product search dropdown styles */
.product-search-container {
    position: relative;
}

.product-dropdown-item {
    transition: background-color 0.2s;
}

.product-dropdown-item:hover {
    background-color: #f5f5f5 !important;
}

.product-dropdown-item:last-child {
    border-bottom: none;
}

/* New Trade Screen Styles */
.trade-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #f8f9fa;
}

.trade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

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

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

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

.product-name {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.product-symbol {
    font-size: 14px;
    color: #6b7280;
}

.market-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.stat-value.price-large {
    font-size: 24px;
}

.stat-value.positive {
    color: #10b981;
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.btn-buy, .btn-sell, .btn-request {
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-buy {
    background: #10b981;
    color: white;
}

.btn-buy:hover {
    background: #059669;
}

.btn-sell {
    background: #ef4444;
    color: white;
}

.btn-sell:hover {
    background: #dc2626;
}

.btn-request {
    background: #f59e0b;
    color: white;
}

.btn-request:hover {
    background: #d97706;
}

.trade-main-content {
    display: flex;
    flex: 1;
    gap: 16px;
    padding: 16px;
    overflow: hidden;
}

.chart-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.search-bar-container {
    position: relative;
    background: white;
    padding: 12px;
    border-radius: 8px;
}

.product-search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    margin-top: 4px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.search-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.search-dropdown-item:hover {
    background: #f9fafb;
}

.dropdown-symbol {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.dropdown-name {
    font-size: 13px;
    color: #6b7280;
}

.timeframe-selector {
    display: flex;
    gap: 8px;
    background: white;
    padding: 12px;
    border-radius: 8px;
}

.timeframe-btn {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
    transition: all 0.2s;
}

.timeframe-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.timeframe-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.timeframe-dropdown-btn, .fullscreen-btn {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
}

.chart-area {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.chart-ohlc {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
}

.ohlc-label {
    color: #6b7280;
    font-weight: 600;
}

.ohlc-value {
    color: #111827;
    margin-right: 8px;
}

.ohlc-value.green {
    color: #10b981;
}

.chart-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 4px;
    color: #6b7280;
}

.open-orders-section {
    background: white;
    border-radius: 8px;
    padding: 16px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table-container {
    overflow-x: auto;
}

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

.orders-table thead {
    background: #f9fafb;
}

.orders-table th {
    text-align: left;
    padding: 10px 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.orders-table td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
}

.side-buy {
    color: #10b981;
    font-weight: 600;
}

.side-sell {
    color: #ef4444;
    font-weight: 600;
}

.status-open {
    color: #10b981;
    font-weight: 500;
}

.cancel-btn {
    padding: 4px 8px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #ef4444;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.sidebar-section {
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-tabs {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    border-radius: 6px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #f3f4f6;
    color: #111827;
}

.contracts-list {
    background: white;
    border-radius: 8px;
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.contract-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.contract-item:hover {
    background: #f9fafb;
}

.contract-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.contract-icon.blue {
    background: #3b82f6;
}

.contract-icon.yellow {
    background: #f59e0b;
}

.contract-icon.orange {
    background: #f97316;
}

.contract-icon.green {
    background: #10b981;
}

.contract-info {
    flex: 1;
}

.contract-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.contract-code {
    font-size: 12px;
    color: #6b7280;
}

.contract-amount {
    text-align: right;
}

.amount-value {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.amount-price {
    font-size: 11px;
    color: #6b7280;
}

.contract-actions {
    display: flex;
    gap: 4px;
}

.icon-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

.news-feeds-section {
    background: white;
    border-radius: 8px;
    padding: 16px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.news-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-list {
    overflow-y: auto;
    flex: 1;
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #f3f4f6;
    transition: all 0.2s;
}

.news-item:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.news-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.news-icon.orange {
    background: #f97316;
}

.news-icon.blue {
    background: #3b82f6;
}

.news-icon.red {
    background: #ef4444;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.news-date {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.news-excerpt {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.news-score {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.score-icon {
    font-size: 14px;
    color: #9ca3af;
}

.score-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #9ca3af;
}

/* ============================================================================ */
/* Workflow Management Styles */
/* ============================================================================ */

.workflows-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.workflows-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.workflows-header h1 {
    font-size: 2rem;
    color: #f1f5f9;
}

.view-tabs {
    display: flex;
    gap: 0.5rem;
}

.view-tabs .tab-btn {
    padding: 0.75rem 1.5rem;
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.view-tabs .tab-btn:hover {
    background: #334155;
    color: #f1f5f9;
}

.view-tabs .tab-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Workflows List */
.workflows-content {
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.workflows-filters {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.workflows-filters label {
    color: #cbd5e1;
    font-weight: 500;
}

.workflows-filters select {
    padding: 0.5rem 1rem;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    cursor: pointer;
}

.workflows-table {
    width: 100%;
    border-collapse: collapse;
}

.workflows-table thead {
    background: #334155;
}

.workflows-table th {
    padding: 1rem;
    text-align: left;
    color: #f1f5f9;
    font-weight: 600;
}

.workflows-table td {
    padding: 1rem;
    border-bottom: 1px solid #334155;
}

.workflows-table tbody tr:hover {
    background: #334155;
}

.step-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #1e40af;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.priority-low {
    background: #64748b;
    color: white;
}

.priority-medium {
    background: #3b82f6;
    color: white;
}

.priority-high {
    background: #f59e0b;
    color: white;
}

.priority-urgent {
    background: #ef4444;
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background: #10b981;
    color: white;
}

.status-completed {
    background: #6b7280;
    color: white;
}

.status-cancelled {
    background: #ef4444;
    color: white;
}

.status-paused {
    background: #f59e0b;
    color: white;
}

.status-failed {
    background: #dc2626;
    color: white;
}

.progress-container {
    width: 100%;
    height: 1.5rem;
    background: #0f172a;
    border-radius: 0.375rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    transition: width 0.3s ease;
}

.btn-view {
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Workflow Details */
.workflow-details {
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.details-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-back {
    padding: 0.5rem 1rem;
    background: #334155;
    color: #cbd5e1;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-back:hover {
    background: #475569;
}

.details-header h2 {
    font-size: 1.75rem;
    color: #f1f5f9;
}

.info-card, .actions-card, .history-card {
    background: #0f172a;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card h3, .actions-card h3, .history-card h3 {
    font-size: 1.25rem;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

.info-item span {
    color: #e2e8f0;
    font-size: 1rem;
}

.step-badge-large {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #1e40af;
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
}

.progress-container-large {
    width: 100%;
    height: 2rem;
    background: #1e293b;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.action-btn-green {
    background: #10b981;
    color: white;
}

.action-btn-green:hover {
    background: #059669;
}

.action-btn-red {
    background: #ef4444;
    color: white;
}

.action-btn-red:hover {
    background: #dc2626;
}

.action-btn-blue {
    background: #3b82f6;
    color: white;
}

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

.action-btn-orange {
    background: #f59e0b;
    color: white;
}

.action-btn-orange:hover {
    background: #d97706;
}

.no-actions {
    color: #94a3b8;
    font-style: italic;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-event {
    display: flex;
    gap: 1rem;
    position: relative;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.timeline-marker.outcome-success {
    background: #10b981;
}

.timeline-marker.outcome-failure {
    background: #ef4444;
}

.timeline-marker.outcome-cancelled {
    background: #f59e0b;
}

.timeline-marker.outcome-default {
    background: #64748b;
}

.timeline-event:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5.5px;
    top: 24px;
    bottom: -16px;
    width: 1px;
    background: #334155;
}

.timeline-content {
    flex: 1;
    padding-bottom: 1rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-action {
    color: #f1f5f9;
    font-weight: 600;
}

.timeline-date {
    color: #94a3b8;
    font-size: 0.875rem;
}

.timeline-details {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.step-badge-small {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: #1e40af;
    color: white;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.timeline-actor {
    color: #94a3b8;
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.timeline-comments {
    color: #cbd5e1;
    padding: 0.75rem;
    background: #1e293b;
    border-radius: 0.375rem;
    border-left: 3px solid #3b82f6;
    margin-top: 0.5rem;
}

/* Workflow Definitions Grid */
.definitions-content {
    padding: 1rem;
}

.definitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.definition-card {
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #334155;
    transition: all 0.2s;
}

.definition-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.definition-category {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.category-approval {
    background: #10b981;
    color: white;
}

.category-settlement {
    background: #3b82f6;
    color: white;
}

.category-compliance {
    background: #8b5cf6;
    color: white;
}

.category-payment {
    background: #f59e0b;
    color: white;
}

.category-delivery {
    background: #06b6d4;
    color: white;
}

.category-custom {
    background: #64748b;
    color: white;
}

.definition-card h3 {
    font-size: 1.25rem;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
}

.definition-description {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.definition-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #334155;
}

.definition-version {
    color: #cbd5e1;
    font-size: 0.875rem;
}

.definition-active {
    color: #10b981;
    font-weight: 600;
}

.definition-inactive {
    color: #ef4444;
    font-weight: 600;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
    font-style: italic;
}

/* Trade-Workflow Integration Styles */
.workflow-section {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.workflow-section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-text {
    color: #cbd5e1;
    user-select: none;
}

.help-text {
    margin-top: 0.5rem;
    margin-left: 2rem;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.4;
}

.success-banner {
    background-color: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

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

.success-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.success-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Trade Form Enhancements */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary.btn-lg {
    flex: 2;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-secondary {
    flex: 1;
}

/* Workflow Status Badge for Trade Lists */
.trade-workflow-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.trade-workflow-status.active {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.trade-workflow-status.completed {
    background-color: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.trade-workflow-status.pending {
    background-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* Workflow Quick Actions on Trade */
.trade-workflow-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.workflow-action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #334155;
    background-color: #1e293b;
    color: #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.workflow-action-btn:hover {
    background-color: #334155;
    border-color: #3b82f6;
    color: #3b82f6;
}

.workflow-action-btn.primary {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.workflow-action-btn.primary:hover {
    background-color: #2563eb;
}

/* ============================================================================ */
/* News & Services Pages - Enhanced Styling */
/* ============================================================================ */

.news-page, .services-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 2rem;
    color: #f1f5f9;
    margin: 0;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    color: #cbd5e1;
    font-weight: 500;
}

.form-control {
    padding: 0.5rem 1rem;
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-control:hover {
    border-color: #475569;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.news-header {
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.25rem;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #3b82f6;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-summary {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
}

.news-source, .news-date, .news-views {
    color: #94a3b8;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #334155;
    color: #cbd5e1;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-sm.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
}

.btn-sm.btn-primary:hover {
    background: #2563eb;
    transform: translateX(2px);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.service-name {
    font-size: 1.25rem;
    color: #f1f5f9;
    margin: 0 0 0.5rem 0;
}

.service-type {
    padding: 0.25rem 0.75rem;
    background: #0ea5e9;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.service-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-specializations {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #0f172a;
    border-radius: 0.5rem;
}

.service-specializations strong {
    color: #f1f5f9;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.service-specializations .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-details {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #0f172a;
    border-radius: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #334155;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

.detail-value {
    color: #f1f5f9;
    font-size: 0.875rem;
    font-weight: 600;
}

.detail-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
}

.detail-link:hover {
    text-decoration: underline;
}

.service-contact {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #0f172a;
    border-radius: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.contact-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.contact-info {
    color: #f1f5f9;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #334155;
}

.service-status {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-secondary {
    background: #64748b;
    color: white;
}

.badge-primary {
    background: #3b82f6;
    color: white;
}

.badge-info {
    background: #0ea5e9;
    color: white;
}

/* Empty & Loading States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: #1e293b;
    border: 2px dashed #334155;
    border-radius: 0.75rem;
    grid-column: 1 / -1;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #94a3b8;
    font-size: 1rem;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    grid-column: 1 / -1;
}

.loading-state p {
    color: #cbd5e1;
    font-size: 1.125rem;
    margin-top: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #334155;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-message {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
    font-size: 1rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .form-control {
        width: 100%;
    }
}

/* ============================================================================ */
/* Admin Panel Styles */
/* ============================================================================ */

.admin-panel {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #334155;
}

.header-content {
    flex: 1;
}

.admin-title {
    font-size: 2rem;
    color: #f1f5f9;
    margin: 0 0 0.5rem 0;
}

.admin-subtitle {
    color: #94a3b8;
    margin: 0;
    font-size: 1rem;
}

.btn-refresh {
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-refresh:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #334155;
}

.tab-button {
    padding: 1rem 2rem;
    background: transparent;
    color: #94a3b8;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    bottom: -2px;
}

.tab-button:hover {
    color: #f1f5f9;
    background: rgba(59, 130, 246, 0.1);
}

.tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

/* System Health Table */
.system-health-table {
    width: 100%;
}

.cell-component-name strong {
    color: #f1f5f9;
    font-size: 1rem;
}

.cell-response-time,
.cell-uptime {
    text-align: center;
}

.response-fast {
    color: #10b981;
    font-weight: 600;
}

.response-ok {
    color: #f59e0b;
    font-weight: 600;
}

.response-slow {
    color: #ef4444;
    font-weight: 600;
}

.uptime-excellent {
    color: #10b981;
    font-weight: 600;
}

.uptime-good {
    color: #3b82f6;
    font-weight: 600;
}

.uptime-poor {
    color: #ef4444;
    font-weight: 600;
}

.status-online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-left: 3px solid #10b981;
}

.status-offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-left: 3px solid #ef4444;
}

.status-degraded {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-left: 3px solid #f59e0b;
}

.cell-details small {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stat-card.total {
    border-left: 4px solid #3b82f6;
}

.stat-card.active {
    border-left: 4px solid #10b981;
}

.stat-card.inactive {
    border-left: 4px solid #64748b;
}

.stat-card.types {
    border-left: 4px solid #f59e0b;
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    border-radius: 0.5rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filters Section */
.filters-section {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-item.search {
    grid-column: span 1;
}

.filter-item label {
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 600;
}

.search-input {
    padding: 0.75rem 1rem;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.filter-select {
    padding: 0.75rem 1rem;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:hover {
    border-color: #475569;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.btn-clear-filters {
    padding: 0.75rem 1.5rem;
    background: #475569;
    color: #e2e8f0;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-clear-filters:hover {
    background: #64748b;
}

/* Admin Content */
.admin-content {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead {
    background: #0f172a;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    color: #f1f5f9;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #334155;
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid #334155;
    transition: background 0.2s;
}

.admin-table tbody tr:hover {
    background: #334155;
}

.admin-table td {
    padding: 1rem;
    color: #cbd5e1;
    vertical-align: top;
}

.cell-id {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.875rem;
}

.cell-provider {
    min-width: 200px;
}

.provider-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.provider-info strong {
    color: #f1f5f9;
    font-size: 0.95rem;
}

.provider-info small {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge-type {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #1e40af;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #10b981;
    color: white;
}

.status-inactive {
    background: #64748b;
    color: white;
}

.status-suspended {
    background: #ef4444;
    color: white;
}

.status-pending {
    background: #f59e0b;
    color: white;
}

.status-unknown {
    background: #334155;
    color: #94a3b8;
}

.cell-rating {
    white-space: nowrap;
}

.rating {
    color: #fbbf24;
    font-weight: 600;
}

.no-rating {
    color: #64748b;
    font-style: italic;
}

.cell-areas, .cell-specs {
    min-width: 150px;
}

.area-tags, .spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.area-tag, .spec-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: #334155;
    color: #cbd5e1;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
}

.more-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: #475569;
    color: #94a3b8;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.text-muted {
    color: #64748b;
    font-style: italic;
}

.cell-contact {
    white-space: nowrap;
}

.contact-links {
    display: flex;
    gap: 0.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #334155;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
}

.contact-link:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.cell-date {
    color: #94a3b8;
    white-space: nowrap;
}

.cell-actions {
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #334155;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    transform: translateY(-2px);
}

.btn-view:hover {
    background: #3b82f6;
}

.btn-edit:hover {
    background: #f59e0b;
}

.btn-toggle:hover {
    background: #10b981;
}

/* Responsive Admin Panel */
@media (max-width: 1400px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .filter-item.search {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .admin-panel {
        padding: 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-refresh {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: scroll;
    }
}

/* Modern Trades Page */
.trades-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.trades-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.trades-header h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #f1f5f9;
}

/* Product Search */
.search-section-modern {
    position: relative;
    margin-bottom: 2rem;
}

.search-input-modern {
    width: 100%;
    max-width: 500px;
    padding: 0.75rem 1rem;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 1rem;
}

.search-input-modern:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-dropdown-modern {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 500px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.search-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #334155;
    transition: background-color 0.2s;
}

.search-dropdown-item:hover {
    background-color: #334155;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-item-modern {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #334155;
    transition: background-color 0.2s;
}

.search-item-modern:hover {
    background-color: #334155;
}

.search-item-modern:last-child {
    border-bottom: none;
}

.item-symbol {
    font-weight: bold;
    color: #3b82f6;
    margin-bottom: 0.25rem;
}

.item-name {
    font-size: 0.875rem;
    color: #cbd5e1;
    margin-bottom: 0.25rem;
}

.item-category {
    font-size: 0.75rem;
    color: #64748b;
}

.product-symbol-modern {
    font-weight: bold;
    color: #3b82f6;
}

.product-name-modern {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Product Title Section */
.product-title-section {
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 2rem;
    font-weight: bold;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.product-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.product-category {
    font-size: 0.875rem;
    color: #94a3b8;
    padding: 0.25rem 0.75rem;
    background-color: #1e293b;
    border-radius: 0.25rem;
}

/* Price Stats Section */
.price-stats-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #1e293b;
    border-radius: 0.75rem;
    border: 1px solid #334155;
}

.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card-modern {
    padding: 1rem;
    background-color: #0f172a;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card-modern:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f1f5f9;
}

.stat-value-large {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f1f5f9;
}

.stat-change {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.stat-value.positive {
    color: #10b981;
}

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

/* Loading and Welcome States */
.loading-price {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.no-product-selected {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    min-height: 300px;
}

.welcome-message {
    text-align: center;
    color: #94a3b8;
}

/* Price Unavailable Message */
.price-unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: 12px;
    margin: 2rem 0;
}

.price-unavailable .info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.price-unavailable h3 {
    color: #60a5fa;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.price-unavailable p {
    color: #94a3b8;
    margin: 0.25rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.welcome-message h3 {
    font-size: 1.5rem;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    font-size: 1rem;
    color: #64748b;
}

/* Trading Actions */
.trading-actions-section {
    margin-top: 2rem;
}

/* Action Buttons */
.action-buttons-modern {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: bold;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.buy {
    background-color: #10b981;
    color: white;
}

.action-btn.buy:hover:not(:disabled) {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.action-btn.sell {
    background-color: #ef4444;
    color: white;
}

.action-btn.sell:hover:not(:disabled) {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

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

.action-btn.active {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-text {
    margin-left: 0.5rem;
}

/* Trade Form Section */
.trade-form-section {
    background-color: #1e293b;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #334155;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-header h2 {
    font-size: 1.5rem;
    color: #f1f5f9;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #f1f5f9;
}

.trade-form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
}

.trade-form-section h2.buy {
    color: #10b981;
}

.trade-form-section h2.sell {
    color: #ef4444;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.trade-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-modern label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}

.form-input-modern {
    padding: 0.75rem;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    color: #e2e8f0;
    font-size: 1rem;
}

.form-input-modern:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-total {
    font-size: 1.25rem;
    font-weight: bold;
    color: #3b82f6;
    text-align: right;
    margin-bottom: 1.5rem;
}

.submit-btn-modern {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: bold;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn-modern.buy {
    background-color: #10b981;
    color: white;
}

.submit-btn-modern.buy:hover:not(:disabled) {
    background-color: #059669;
}

.submit-btn-modern.sell {
    background-color: #ef4444;
    color: white;
}

.submit-btn-modern.sell:hover:not(:disabled) {
    background-color: #dc2626;
}

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

/* Alert Messages */
.alert-modern {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-modern.success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

.alert-modern.error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid #334155;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .trades-page {
        padding: 1rem;
    }
    
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .trade-form-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons-modern {
        flex-direction: column;
    }
    
    .trades-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Auth Pages (Login & Signup) */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background-color: #1e293b;
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid #334155;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #94a3b8;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}

.auth-form .form-input {
    padding: 0.875rem 1rem;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-form .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-form .form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-auth {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.btn-auth.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-auth.btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

.auth-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.alert-icon {
    font-size: 1.25rem;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 2rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
}


/* ============================================
   PROFESSIONAL TRADE VIEW STYLES
   ============================================ */

.trade-view-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Progress Bar */
.trade-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 2rem;
}

.trade-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(to right, #4caf50 0%, #4caf50 33%, #ddd 33%, #ddd 100%);
    z-index: 0;
}

.trade-progress .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.trade-progress .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.trade-progress .step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

.trade-progress .step.completed .step-number {
    background: #4caf50;
    color: white;
}

.trade-progress .step-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.trade-progress .step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

/* Step Content */
.step-content {
    background: #1e293b;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    min-height: 500px;
}

.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 2rem;
    text-align: center;
}

/* Product Selection Step */
.product-selection-step .product-search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
}

.product-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.product-search:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.product-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
}

.product-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #334155;
    transition: all 0.2s ease;
}

.product-item:hover {
    background: #334155;
    transform: translateX(4px);
}

.product-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.product-symbol {
    font-weight: 700;
    color: #667eea;
    font-size: 1rem;
}

.product-category {
    font-size: 0.75rem;
    background: #334155;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    color: #cbd5e1;
}

.product-name {
    font-size: 0.875rem;
    color: #cbd5e1;
    margin-bottom: 0.25rem;
}

.product-unit {
    font-size: 0.75rem;
    color: #94a3b8;
}

.selected-product-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
}

.selected-product-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.selected-product-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.clear-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-row .label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.detail-row .value {
    font-weight: 600;
    font-size: 1rem;
}

.detail-row .value.symbol {
    font-size: 1.25rem;
    letter-spacing: 1px;
}

/* Order Details Step */
.trade-mode-section {
    margin-bottom: 2rem;
}

.trade-mode-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
    text-align: center;
}

.mode-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border: 2px solid #334155;
    border-radius: 12px;
    background: #0f172a;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.mode-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mode-btn.buy.active {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-color: #4caf50;
}

.mode-btn.sell.active {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    border-color: #f44336;
}

.mode-btn.request.active {
    background: linear-gradient(135deg, #ff9800 0%, #fb8c00 100%);
    border-color: #ff9800;
}

.mode-icon {
    font-size: 2rem;
}

.mode-label {
    font-size: 1.125rem;
    font-weight: 600;
}

.mode-desc {
    font-size: 0.75rem;
    opacity: 0.7;
}

.product-info-bar {
    display: flex;
    justify-content: space-around;
    background: #0f172a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #334155;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
}

.info-value.positive {
    color: #4caf50;
}

.info-value.negative {
    color: #f44336;
}

.order-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #334155;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
}

.form-group label.required::after {
    content: ' *';
    color: #f44336;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-control:disabled {
    background: #1e293b;
    cursor: not-allowed;
    opacity: 0.6;
}

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

.total-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    margin-top: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.summary-row.total {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.summary-label {
    font-size: 1rem;
    opacity: 0.9;
}

.summary-row.total .summary-label {
    font-size: 1.25rem;
    font-weight: 700;
}

.summary-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.summary-row.total .summary-value {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Review Step */
.review-card {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #334155;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
}

.review-card.buy {
    border-color: #4caf50;
}

.review-card.sell {
    border-color: #f44336;
}

.review-card.request {
    border-color: #ff9800;
}

.review-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-card.buy .review-header {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.review-card.sell .review-header {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
}

.review-card.request .review-header {
    background: linear-gradient(135deg, #ff9800 0%, #fb8c00 100%);
}

.review-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.review-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.review-section {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.review-section:last-of-type {
    border-bottom: none;
}

.review-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-item.highlight {
    background: #1e293b;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.item-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-value {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.item-value.symbol {
    color: #667eea;
    font-size: 1.125rem;
}

.notes-box {
    background: #1e293b;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.review-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.25rem;
    font-weight: 600;
}

.total-value {
    font-size: 2rem;
    font-weight: 700;
}

.terms-acceptance {
    padding: 2rem;
    background: #fffbeb;
    border-top: 2px solid #fbbf24;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #4a5568;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
}

.terms-link {
    color: #667eea;
    text-decoration: underline;
}

/* Confirmation Step */
.confirmation-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.confirmation-success h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.action-link {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.action-link.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-link.secondary {
    background: #1e293b;
    color: #cbd5e1;
    border: 2px solid #334155;
}

.action-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.next-steps {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.next-steps h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #cbd5e1;
}

.next-steps li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.confirmation-error {
    text-align: center;
    padding: 3rem 2rem;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
}

.error-message {
    font-size: 1.125rem;
    color: #f44336;
    margin-bottom: 2rem;
}

/* Navigation */
.trade-navigation {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 0 2rem;
}

.nav-spacer {
    flex: 1;
}

.nav-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn {
    background: #334155;
    color: #cbd5e1;
}

.back-btn:hover:not(:disabled) {
    background: #475569;
}

.next-btn, .submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.next-btn:hover:not(:disabled), .submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

/* Trading Chart Styles */
.trading-chart-section {
    margin-top: 2rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.trading-chart-container {
    width: 100%;
}

.chart-controls {
    margin-bottom: 1.5rem;
}

.time-period-selector {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.period-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #334155;
    background: #0f172a;
    color: #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.period-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.chart-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.price-chart {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.chart-info {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
}

.price-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
}

.volume {
    font-size: 0.875rem;
    color: #94a3b8;
}

.no-data {
    text-align: center;
    color: #94a3b8;
    padding: 2rem;
}

.chart-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.chart-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.chart-loading p {
    font-size: 1rem;
    color: #94a3b8;
}

/* Loading & Empty States */
.loading-state, .empty-state, .select-mode-message {
    text-align: center;
    padding: 3rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #334155;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-icon, .message-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3, .select-mode-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.empty-state p, .select-mode-message p {
    font-size: 1rem;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .trade-view-container {
        padding: 1rem;
    }
    
    .trade-progress {
        padding: 0 1rem;
    }
    
    .trade-progress .step-label {
        font-size: 0.75rem;
    }
    
    .mode-buttons {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .product-info-bar {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Workflow Tab Styles */
.workflows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.workflow-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.workflow-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.workflow-healthy {
    border-left: 4px solid #10b981;
}

.workflow-warning {
    border-left: 4px solid #f59e0b;
}

.workflow-critical {
    border-left: 4px solid #ef4444;
}

.workflow-inactive {
    border-left: 4px solid #6b7280;
    opacity: 0.7;
}

.workflow-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.workflow-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.workflow-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-active {
    color: #3b82f6;
}

.stat-completed {
    color: #10b981;
}

.stat-failed {
    color: #ef4444;
}

.workflow-metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.metric-icon {
    font-size: 1.25rem;
}

.metric-text {
    color: #4b5563;
}

.workflow-issues {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem;
    margin: 1rem 0;
}

.workflow-issues strong {
    color: #dc2626;
    display: block;
    margin-bottom: 0.5rem;
}

.workflow-issues ul {
    margin: 0;
    padding-left: 1.5rem;
}

.workflow-issues li {
    color: #991b1b;
    margin-bottom: 0.25rem;
}

.workflow-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.btn-test-workflow {
    width: 100%;
    padding: 0.75rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-test-workflow:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-test-workflow:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.test-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

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

.test-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.test-failure {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.test-result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.result-icon {
    font-size: 1.25rem;
}

.test-result-header strong {
    color: #1f2937;
}

.test-result-details p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: #4b5563;
}

.test-result-details strong {
    color: #1f2937;
    margin-right: 0.5rem;
}

.test-result-errors ul {
    margin: 0;
    padding-left: 1.5rem;
}

.test-result-errors li {
    color: #991b1b;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

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

/* Workflow Monitor Styles */
.workflows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.workflow-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.workflow-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.workflow-healthy {
    border-color: #48bb78;
}

.workflow-warning {
    border-color: #ed8936;
}

.workflow-critical {
    border-color: #f56565;
}

.workflow-inactive {
    border-color: #a0aec0;
    opacity: 0.7;
}

.workflow-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.workflow-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.workflow-category {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 12px;
    font-weight: 500;
}

.workflow-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-active {
    color: #4299e1;
}

.stat-completed {
    color: #48bb78;
}

.stat-failed {
    color: #f56565;
}

.workflow-metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    font-size: 0.875rem;
    color: #4a5568;
}

.metric-icon {
    font-size: 1.25rem;
}

.workflow-issues {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.workflow-issues strong {
    color: #c53030;
    display: block;
    margin-bottom: 0.5rem;
}

.workflow-issues ul {
    margin: 0;
    padding-left: 1.5rem;
}

.workflow-issues li {
    color: #742a2a;
    margin: 0.25rem 0;
}

.workflow-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.btn-test-workflow {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-test-workflow:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-test-workflow:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.test-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    animation: slideIn 0.3s ease;
}

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

.test-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
}

.test-failure {
    background: #fff5f5;
    border: 1px solid #feb2b2;
}

.test-result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.result-icon {
    font-size: 1.5rem;
}

.test-result-details p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: #2d3748;
}

.test-result-errors ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.test-result-errors li {
    color: #742a2a;
    margin: 0.25rem 0;
}

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

/* ============================================================================ */
/* SERVICES PORTAL STYLES */
/* ============================================================================ */

.services-portal {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

.portal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.portal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #334155;
    border-radius: 1rem;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-featured {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #1e293b 0%, #78350f 100%);
}

.service-card-featured::before {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
    text-align: center;
}

.service-description {
    color: #cbd5e1;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1rem;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.service-arrow {
    text-align: center;
    font-size: 2rem;
    color: #3b82f6;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-arrow {
    transform: translateX(8px);
}

/* Module Styles */
.vessels-module,
.service-module {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 2rem;
}

.module-header {
    margin-bottom: 2rem;
}

.module-header h2 {
    font-size: 2rem;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
}

.module-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: #0f172a;
    color: #cbd5e1;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.tab-btn:hover {
    background: #334155;
    color: #f1f5f9;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.module-content {
    margin-top: 2rem;
}

/* Vessel Map View */
.vessel-map-container {
    padding: 1.5rem;
}

.map-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-group label {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.625rem 1rem;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.map-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.live-map-container {
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid #334155;
}

.live-map-container iframe {
    display: block;
}

.map-legend {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.map-legend h4 {
    color: #f1f5f9;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.legend-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.legend-marker.available {
    background: #10b981;
}

.legend-marker.chartered {
    background: #3b82f6;
}

.legend-marker.sailing {
    background: #f59e0b;
}

.legend-marker.loading {
    background: #ef4444;
}

/* Real-time Stats */
.realtime-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Vessel Offers View */
.vessel-offers-view,
.vessel-requests-view,
.fleet-status-view,
.vessel-bookings-view {
    padding: 1.5rem;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-header h3 {
    font-size: 1.75rem;
    color: #f1f5f9;
    margin: 0;
}

.view-description {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Vessel Offer Card */
.vessel-offer-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vessel-offer-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.vessel-offer-card .card-header {
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid #334155;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vessel-offer-card .card-header h4 {
    color: #f1f5f9;
    font-size: 1.25rem;
    margin: 0;
}

.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-available {
    background: #10b981;
    color: white;
}

.status-chartered {
    background: #6b7280;
    color: white;
}

.status-pending {
    background: #f59e0b;
    color: white;
}

.status-matched {
    background: #3b82f6;
    color: white;
}

.status-confirmed {
    background: #10b981;
    color: white;
}

.vessel-offer-card .card-body {
    padding: 1.25rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #334155;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 600;
}

.info-row .value {
    color: #f1f5f9;
    font-weight: 600;
}

.rate-display {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.rate-label {
    color: #94a3b8;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.rate-value {
    color: #60a5fa;
    font-size: 1.75rem;
    font-weight: 700;
}

.vessel-offer-card .card-actions {
    padding: 1.25rem;
    border-top: 1px solid #334155;
    display: flex;
    gap: 0.75rem;
}

.btn-secondary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: #334155;
    color: #cbd5e1;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #475569;
    color: #f1f5f9;
}

.btn-primary {
    flex: 2;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Data Tables */
.requests-table-container,
.fleet-table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table thead {
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 2px solid #334155;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    color: #f1f5f9;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.data-table td strong {
    color: #f1f5f9;
    font-weight: 700;
}

.btn-icon {
    padding: 0.5rem;
    background: #334155;
    color: #cbd5e1;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.125rem;
}

.btn-icon:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* Fleet Summary */
.fleet-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.summary-card h4 {
    color: #94a3b8;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem 0;
}

.summary-value {
    font-size: 3rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.summary-label {
    color: #94a3b8;
    font-size: 0.875rem;
}

.status-sailing {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-loading {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Vessel Bookings View */
.bookings-calendar {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.calendar-header h4 {
    color: #f1f5f9;
    font-size: 1.5rem;
    margin: 0;
}

.info-text {
    color: #94a3b8;
    font-size: 0.95rem;
}

.upcoming-bookings {
    margin-top: 2rem;
}

.upcoming-bookings h4 {
    color: #f1f5f9;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.booking-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-left: 4px solid #3b82f6;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.booking-header h5 {
    color: #f1f5f9;
    font-size: 1.125rem;
    margin: 0;
}

.booking-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
}

.detail-item .icon {
    font-size: 1.25rem;
}

/* Service Module Placeholder */
.service-module {
    padding: 3rem;
    text-align: center;
}

.service-module h2 {
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.service-module p {
    color: #94a3b8;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.coming-soon {
    display: inline-block;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 2rem;
    padding: 1rem 2rem;
    color: #60a5fa;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-back {
    padding: 0.75rem 1.5rem;
    background: #334155;
    color: #cbd5e1;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: #475569;
    color: #f1f5f9;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .services-portal {
        padding: 1rem;
    }
    
    .portal-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .module-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .map-controls {
        flex-direction: column;
    }
    
    .control-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .realtime-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .fleet-summary {
        grid-template-columns: 1fr;
    }
    
    .booking-details {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
}


/* Professional Vessels Banner */
.professional-link-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.banner-text p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.professional-link-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    display: inline-block;
}

.professional-link-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==============================================
   ICON GENERATOR STYLES
   ============================================== */

.icon-generator {
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
}

.icon-generator-header {
    margin-bottom: 2rem;
}

.header-content {
    text-align: center;
}

.icon-generator .title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.icon-generator .subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
}

/* Tabs */
.icon-generator .tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #1e293b;
}

.icon-generator .tab-button {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.icon-generator .tab-button:hover {
    color: #e2e8f0;
    background: rgba(59, 130, 246, 0.1);
}

.icon-generator .tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

/* Status Message */
.status-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

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

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

.status-message .close-btn {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

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

/* Composer Grid Layout */
.composer-grid {
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    gap: 1.5rem;
    min-height: 600px;
}

/* Layer Library Panel */
.layer-library-panel {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 800px;
}

.layer-library-panel h3 {
    color: #3b82f6;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.panel-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.layer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.layer-card {
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.layer-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.layer-type-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.65rem;
    background: #3b82f6;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.layer-icon {
    margin-bottom: 0.5rem;
}

.svg-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-preview svg {
    max-width: 100%;
    max-height: 100%;
}

.layer-name {
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
}

.layer-category {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Composer Center */
.composer-center {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Preview Panel */
.preview-panel {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
}

.preview-panel h3 {
    color: #3b82f6;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.preview-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px dashed #334155;
}

.preview-svg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-svg svg {
    max-width: 280px;
    max-height: 280px;
}

.preview-empty {
    color: #64748b;
    font-style: italic;
}

/* Layer Stack Panel */
.layer-stack-panel {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1;
}

.layer-stack-panel h3 {
    color: #3b82f6;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.layer-stack-panel .count {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: normal;
}

.empty-stack {
    color: #64748b;
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

.layer-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.layer-stack-item {
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.layer-stack-item:hover {
    border-color: #475569;
}

.layer-stack-item.selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.layer-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex: 1;
}

.layer-preview-small {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.layer-details {
    flex: 1;
}

.layer-stack-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.layer-stack-props {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2px;
}

.layer-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-icon-sm {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-icon-sm:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

.btn-icon-sm:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-icon-sm.btn-delete {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.btn-icon-sm.btn-delete:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2);
}

/* Controls Panel */
.controls-panel {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 800px;
}

.controls-panel h3 {
    color: #3b82f6;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.controls-panel h4 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.no-selection {
    color: #64748b;
    text-align: center;
    padding: 2rem 1rem;
    font-style: italic;
}

.layer-controls,
.icon-settings,
.save-section {
    margin-bottom: 2rem;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.control-group input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #334155;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
}

.control-group input[type="text"].color-text {
    width: calc(100% - 70px);
    margin-left: 10px;
    padding: 0.5rem;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.product-select {
    width: 100%;
    padding: 0.75rem;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 1rem;
    cursor: pointer;
}

.product-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-save {
    margin-top: 1rem;
}

/* Templates Panel */
.templates-panel {
    padding: 2rem;
}

.templates-panel h3 {
    color: #3b82f6;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.templates-panel > p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.warning-banner {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.template-card {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.template-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.template-header h4 {
    color: #e2e8f0;
    font-size: 1.2rem;
}

.template-category {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.template-description {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.template-stats {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.btn-apply-template {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 0.75rem;
    border-radius: 6px;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply-template:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.btn-apply-template:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Library Panel */
.library-panel {
    padding: 2rem;
}

.library-panel h3 {
    color: #3b82f6;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.library-panel > p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.library-filters {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

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

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem;
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 1rem;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.library-item {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.library-item:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.library-preview {
    background: #0f172a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.library-info h4 {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.library-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.type-badge {
    background: #3b82f6;
    color: white;
}

.cat-badge {
    background: #8b5cf6;
    color: white;
}

.library-description {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.library-meta {
    display: flex;
    gap: 1rem;
    color: #64748b;
    font-size: 0.85rem;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1400px) {
    .composer-grid {
        grid-template-columns: 250px 1fr 300px;
    }
}

@media (max-width: 1200px) {
    .composer-grid {
        grid-template-columns: 1fr;
    }
    
    .layer-library-panel,
    .controls-panel {
        max-height: 400px;
    }
}

/* ========================================
   PROFESSIONAL TRADING VIEW STYLES
   ======================================== */

.trade-screen {
    background: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
}

/* Top Navigation Bar */
.trade-nav-bar {
    background: #1a1a1a;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    font-size: 11px;
}

.nav-left, .nav-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-item {
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
}

.nav-item.active {
    color: #fff;
    background: #333;
    border-radius: 3px;
}

.nav-item:hover {
    color: #fff;
}

.sell-indicator {
    background: #d32f2f;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
}

.buying-power {
    color: #4caf50;
    font-weight: bold;
}

/* Product Header */
.product-header {
    background: #0d0d0d;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.product-main-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.product-search {
    position: relative;
}

.symbol-search {
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    padding: 6px 12px;
    width: 120px;
    border-radius: 3px;
}

.symbol-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    border: 1px solid #444;
    width: 300px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px;
}

.dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.dropdown-item:hover {
    background: #333;
}

.dropdown-symbol {
    color: #4caf50;
    font-weight: bold;
}

.dropdown-name {
    color: #aaa;
    font-size: 11px;
}

.product-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-symbol-large {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.product-name-small {
    font-size: 11px;
    color: #888;
}

.product-stats {
    display: flex;
    gap: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-label {
    font-size: 10px;
    color: #888;
}

.stat-value {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.stat-value.lng {
    color: #4caf50;
}

/* Main Trading Layout */
.trade-main-layout {
    display: grid;
    grid-template-columns: 150px 1fr 300px;
    flex: 1;
    overflow: hidden;
}

/* Watchlist Panel (Left) */
.watchlist-panel {
    background: #0d0d0d;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.panel-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 8px 6px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    font-size: 10px;
    color: #888;
}

.panel-title {
    text-align: center;
}

.watchlist-items {
    flex: 1;
    overflow-y: auto;
}

.watchlist-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 6px;
    border-bottom: 1px solid #222;
    cursor: pointer;
    align-items: center;
}

.watchlist-item:hover {
    background: #1a1a1a;
}

.watchlist-item.selected {
    background: #2a2a2a;
    border-left: 3px solid #2196f3;
}

.item-symbol {
    display: flex;
    align-items: center;
    gap: 4px;
}

.symbol-bullet {
    font-size: 8px;
}

.symbol-bullet.green {
    color: #4caf50;
}

.symbol-bullet.red {
    color: #f44336;
}

.item-change {
    text-align: center;
    font-size: 10px;
}

.item-change.positive {
    color: #4caf50;
}

.item-change.negative {
    color: #f44336;
}

.item-price {
    text-align: right;
    font-size: 11px;
}

/* Chart Section (Center) */
.chart-section {
    background: #000;
    display: flex;
    flex-direction: column;
}

.chart-toolbar {
    background: #0d0d0d;
    padding: 6px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

.toolbar-left, .toolbar-center, .toolbar-right {
    display: flex;
    gap: 4px;
}

.tool-btn {
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 3px;
}

.tool-btn:hover {
    background: #333;
}

.chart-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
}

.chart-symbol {
    color: #888;
}

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

.price-label {
    color: #888;
    font-size: 10px;
}

.price-value {
    font-weight: bold;
    color: #fff;
}

.price-value.green {
    color: #4caf50;
}

.price-value.negative {
    color: #f44336;
}

.chart-canvas {
    flex: 1;
    display: flex;
    position: relative;
    background: #000;
}

.price-axis {
    width: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 10px 5px;
    background: #0d0d0d;
    border-right: 1px solid #333;
}

.price-tick {
    text-align: right;
    font-size: 10px;
    color: #666;
    padding: 2px 5px;
}

.price-tick.current-price {
    color: #4caf50;
    font-weight: bold;
}

.chart-grid {
    flex: 1;
    position: relative;
    background: linear-gradient(to bottom, #0a0a0a 0%, #000 100%);
}

.chart-display {
    width: 100%;
    height: 100%;
    position: relative;
}

.price-chart {
    display: block;
}

.current-price-line {
    position: absolute;
    top: 50%;
    right: 0;
    left: 60px;
    height: 1px;
    background: #4caf50;
    z-index: 10;
}

.current-price-line .price-label {
    position: absolute;
    right: 5px;
    top: -10px;
    background: #4caf50;
    color: #000;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
}

.volume-chart {
    height: 40px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 5px;
    background: #0d0d0d;
    border-top: 1px solid #333;
}

.volume-bar {
    flex: 1;
    background: #2196f3;
    opacity: 0.6;
    min-height: 5px;
}

.time-axis {
    display: flex;
    justify-content: space-around;
    padding: 5px;
    background: #0d0d0d;
    border-top: 1px solid #333;
    font-size: 10px;
    color: #666;
}

/* Market Depth Section */
.market-depth-section {
    background: #0d0d0d;
    border-top: 1px solid #333;
    max-height: 350px;
    display: flex;
    flex-direction: column;
}

.depth-tabs {
    display: flex;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.depth-tab {
    flex: 1;
    padding: 8px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 11px;
}

.depth-tab.active {
    color: #fff;
    background: #0d0d0d;
    border-bottom: 2px solid #2196f3;
}

.order-book {
    flex: 1;
    overflow-y: auto;
}

.book-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 8px;
    background: #1a1a1a;
    font-size: 10px;
    color: #888;
    border-bottom: 1px solid #333;
}

.col-price, .col-qty, .col-total {
    text-align: center;
}

.asks-list, .bids-list {
    display: flex;
    flex-direction: column;
}

.order-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 4px 8px;
    position: relative;
    font-size: 11px;
}

.order-row.ask {
    color: #f44336;
}

.order-row.bid {
    color: #4caf50;
}

.order-price {
    font-weight: bold;
}

.order-qty, .order-total {
    text-align: center;
    color: #888;
}

.order-bar {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0.15;
    z-index: 0;
}

.ask-bar {
    background: #f44336;
}

.bid-bar {
    background: #4caf50;
}

.spread-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    margin: 4px 0;
}

.spread-price {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.spread-arrow {
    color: #4caf50;
    font-size: 16px;
}

.spread-value {
    font-size: 12px;
}

.spread-value.green {
    color: #4caf50;
}

/* Options Panel (Right) */
.options-panel {
    background: #0d0d0d;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.options-tabs {
    display: flex;
    gap: 4px;
}

.opt-tab {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #444;
    color: #888;
    cursor: pointer;
    font-size: 11px;
    border-radius: 3px;
}

.opt-tab.active {
    background: #333;
    color: #fff;
    border-color: #2196f3;
}

.settings-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.settings-btn:hover {
    color: #fff;
    border-color: #666;
}

.options-chain {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.options-controls {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.strike-select, .date-select {
    background: #0d0d0d;
    border: 1px solid #444;
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    flex: 1;
}

.scan-btn {
    background: #2196f3;
    border: none;
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 3px;
}

.options-table-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 6px 4px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    font-size: 10px;
    color: #888;
    text-align: center;
}

.options-rows {
    flex: 1;
    overflow-y: auto;
}

.option-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 6px 4px;
    font-size: 11px;
    border-bottom: 1px solid #222;
    text-align: center;
    align-items: center;
}

.option-row.highlight {
    background: #1a1a1a;
    border-left: 3px solid #2196f3;
}

.opt-bid.call {
    color: #4caf50;
    font-weight: bold;
}

.opt-ask.call {
    color: #66bb6a;
}

.opt-bid.put {
    color: #f44336;
    font-weight: bold;
}

.opt-ask.put {
    color: #ef5350;
}

.opt-vol {
    color: #888;
    font-size: 10px;
}

.strike-price {
    font-weight: bold;
    color: #fff;
    background: #1a1a1a;
    padding: 4px;
}

.strike-price.current {
    background: #2196f3;
    color: #fff;
}

.expiration-selector {
    background: #0d0d0d;
    border-top: 1px solid #333;
    max-height: 150px;
    overflow-y: auto;
}

.exp-date {
    display: block;
    width: 100%;
    padding: 8px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #222;
    color: #888;
    text-align: left;
    cursor: pointer;
    font-size: 10px;
}

.exp-date:hover {
    background: #1a1a1a;
    color: #fff;
}

.exp-date.active {
    background: #2196f3;
    color: #fff;
}

/* Bottom Panel */
.bottom-panel {
    background: #0d0d0d;
    border-top: 2px solid #333;
    max-height: 250px;
    display: flex;
    flex-direction: column;
}

.bottom-tabs {
    display: flex;
    gap: 2px;
    background: #1a1a1a;
    padding: 4px;
}

.bottom-tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 11px;
    border-radius: 3px;
}

.bottom-tab.active {
    background: #0d0d0d;
    color: #fff;
}

.bottom-tab:hover {
    background: #333;
    color: #fff;
}

.bottom-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.orders-grid, .positions-grid, .history-grid {
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.data-table thead {
    background: #1a1a1a;
    position: sticky;
    top: 0;
}

.data-table th {
    padding: 8px;
    text-align: left;
    color: #888;
    font-weight: normal;
    border-bottom: 1px solid #333;
}

.data-table td {
    padding: 8px;
    border-bottom: 1px solid #222;
}

.symbol-cell {
    color: #2196f3;
    font-weight: bold;
}

.side-buy {
    color: #4caf50;
    font-weight: bold;
}

.side-sell {
    color: #f44336;
    font-weight: bold;
}

.status-working {
    color: #ff9800;
    font-size: 10px;
}

.action-btn {
    padding: 4px 10px;
    font-size: 10px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
    margin-right: 4px;
}

.action-btn:hover {
    background: #333;
}

.action-btn.cancel {
    border-color: #f44336;
    color: #f44336;
}

.action-btn.modify {
    border-color: #2196f3;
    color: #2196f3;
}

.action-btn.sell {
    background: #f44336;
    border-color: #f44336;
    color: #fff;
}

.positive {
    color: #4caf50 !important;
}

.negative {
    color: #f44336 !important;
}

.empty-cell {
    text-align: center;
    color: #666;
    padding: 20px;
}

.account-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
}

.summary-card {
    background: #1a1a1a;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-label {
    font-size: 11px;
    color: #888;
}

.summary-value {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.summary-value.positive {
    color: #4caf50;
}

/* =====================================================
   ENHANCED TRADING INTERFACE STYLES
   ===================================================== */

/* Enhanced Product Header */
.product-header-enhanced {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 16px 20px;
    border-bottom: 1px solid #00d4ff;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

.search-section {
    position: relative;
    margin-bottom: 12px;
}

.product-search-enhanced {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.product-search-enhanced:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.enhanced-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border: 1px solid #00d4ff;
    border-radius: 8px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.enhanced-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.enhanced-dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.dropdown-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00d4ff, #4caf50);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-right: 12px;
}

.dropdown-info {
    flex: 1;
}

.dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.dropdown-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.dropdown-symbol {
    color: #00d4ff;
    font-weight: 600;
}

.dropdown-category {
    color: #888;
}

.product-info-full {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 24px;
    align-items: center;
}

.product-icon-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-icon-large {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #00d4ff, #4caf50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.product-name-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-name-large {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.product-identifiers {
    display: flex;
    gap: 8px;
}

.product-symbol-badge,
.sp-symbol-badge,
.category-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.product-symbol-badge {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid #00d4ff;
}

.sp-symbol-badge {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.category-badge {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.product-price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.price-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.price-change-info {
    font-size: 14px;
}

.price-change-info .change {
    font-weight: 600;
}

.price-change-info .positive {
    color: #4caf50;
}

.price-change-info .negative {
    color: #f44336;
}

.product-stats-section {
    display: flex;
    gap: 16px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.product-actions-section {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn.favorite {
    background: rgba(233, 30, 99, 0.2);
    color: #e91e63;
    border: 1px solid #e91e63;
}

.action-btn.favorite:hover {
    background: rgba(233, 30, 99, 0.3);
}

.action-btn.portfolio {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.action-btn.portfolio:hover {
    background: rgba(255, 193, 7, 0.3);
}

.action-btn.watch {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.action-btn.watch:hover {
    background: rgba(76, 175, 80, 0.3);
}

.action-btn.alert {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid #9c27b0;
}

.action-btn.alert:hover {
    background: rgba(156, 39, 176, 0.3);
}

/* Chart Toolbar Enhanced */
.chart-toolbar-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #1a1a2e;
    border-bottom: 1px solid #333;
}

.chart-type-selector,
.timeframe-selector {
    display: flex;
    gap: 4px;
}

.chart-btn,
.tf-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 4px;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-btn:hover,
.tf-btn:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.chart-btn.active,
.tf-btn.active {
    background: #00d4ff;
    border-color: #00d4ff;
    color: #0a0a0f;
}

.toolbar-actions {
    display: flex;
    gap: 8px;
}

.tool-btn.buy-btn {
    padding: 6px 16px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    border-radius: 4px;
    color: #4caf50;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-btn.buy-btn:hover {
    background: rgba(76, 175, 80, 0.3);
}

.tool-btn.sell-btn {
    padding: 6px 16px;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    border-radius: 4px;
    color: #f44336;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-btn.sell-btn:hover {
    background: rgba(244, 67, 54, 0.3);
}

/* Chart Container Enhanced */
.chart-container-enhanced {
    flex: 1;
    background: #0f0f1a;
    padding: 16px;
}

.candlestick-chart,
.line-chart,
.area-chart {
    width: 100%;
    height: 100%;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

/* Market Depth Section */
.market-depth-section {
    background: #1a1a2e;
    border-top: 1px solid #333;
}

.depth-tabs {
    display: flex;
    border-bottom: 1px solid #333;
}

.depth-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.depth-tab:hover {
    color: #00d4ff;
}

.depth-tab.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

/* Open Offers Panel */
.offers-panel {
    height: 100%;
    overflow-y: auto;
    background: #0f0f1a;
}

.offers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #1a1a2e;
    border-bottom: 1px solid #333;
}

.offers-header h4 {
    margin: 0;
    font-size: 14px;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offers-filter {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 12px;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.offer-card {
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.offer-card:hover {
    border-color: #00d4ff;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

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

.offer-seller {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.offer-price-badge {
    padding: 6px 12px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    border-radius: 4px;
    color: #4caf50;
    font-size: 14px;
    font-weight: 700;
}

.offer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.offer-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.offer-row .label {
    color: #888;
    font-weight: 500;
}

.offer-row .value {
    color: #e0e0e0;
    font-weight: 600;
}

.offer-actions {
    display: flex;
    gap: 8px;
}

.btn-primary-offer {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, #00d4ff, #4caf50);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-offer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.btn-secondary-offer {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #00d4ff;
    border-radius: 6px;
    color: #00d4ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-offer:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* Specifications Panel */
.specifications-panel {
    height: 100%;
    overflow-y: auto;
    padding: 16px;
    background: #0f0f1a;
}

.specifications-panel h4 {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-section {
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.spec-section h5 {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.spec-value {
    font-size: 12px;
    color: #e0e0e0;
    font-weight: 600;
}

.spec-value.highlight {
    color: #00d4ff;
    font-size: 14px;
}

.spec-value.positive {
    color: #4caf50;
}

.spec-value.negative {
    color: #f44336;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 20px;
    font-size: 13px;
}

/* Options Tabs */
.options-tabs {
    display: flex;
    gap: 2px;
    padding: 0;
    background: #1a1a2e;
    border-bottom: 1px solid #333;
}

.opt-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.opt-tab:hover {
    color: #00d4ff;
}

.opt-tab.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

/* Watchlist Item Enhanced */
.watchlist-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.watchlist-item:hover {
    background: rgba(0, 212, 255, 0.05);
}

.item-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00d4ff, #4caf50);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

/* Bottom Panel Enhancements */
.bottom-tab {
    transition: all 0.2s ease;
}

.bottom-tab:hover {
    background: rgba(0, 212, 255, 0.05);
}

.data-table {
    background: #0f0f1a;
}

.symbol-cell {
    padding: 4px 8px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid #00d4ff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.position-long {
    padding: 4px 8px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    border-radius: 4px;
    color: #4caf50;
    font-size: 11px;
    font-weight: 600;
}

.position-short {
    padding: 4px 8px;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    border-radius: 4px;
    color: #f44336;
    font-size: 11px;
    font-weight: 600;
}

.status-open {
    padding: 4px 8px;
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.status-working {
    padding: 4px 8px;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.side-buy {
    color: #4caf50;
    font-weight: 600;
}

.side-sell {
    color: #f44336;
    font-weight: 600;
}

.action-btn.close {
    padding: 4px 12px;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn.close:hover {
    background: rgba(244, 67, 54, 0.3);
}

.action-btn.modify,
.action-btn.cancel {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid #00d4ff;
    color: #00d4ff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn.modify:hover,
.action-btn.cancel:hover {
    background: rgba(0, 212, 255, 0.1);
}

.summary-icon {
    font-size: 24px;
}

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

/* =====================================================
   PROFESSIONAL TRADING INTERFACE STYLES
   ===================================================== */

.professional-trade-screen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #0a0a0f;
    color: #e0e0e0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

/* Top Navigation Bar */
.trade-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 50px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 2px solid #00d4ff;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

.trade-top-nav .nav-left,
.trade-top-nav .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trade-top-nav .nav-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #b0b0c0;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.trade-top-nav .nav-item:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.trade-top-nav .nav-item.active {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.2);
    font-weight: 600;
}

.trade-top-nav .account-status,
.trade-top-nav .account-balance {
    font-size: 13px;
    color: #00ff88;
    font-weight: 500;
}

/* Enhanced Product Search Header */
.product-search-header {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    padding: 20px;
    border-bottom: 1px solid #2a2a3e;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin-bottom: 15px;
}

.product-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    font-size: 15px;
    background: #0d0d1a;
    border: 2px solid #2a2a3e;
    border-radius: 8px;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.product-search-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #00d4ff;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: #00ff88;
}

.product-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #16213e;
    border: 1px solid #00d4ff;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.product-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #2a2a3e;
}

.product-dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.product-icon-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #0a0a0f;
    margin-right: 12px;
}

.product-dropdown-info {
    flex: 1;
}

.product-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.product-dropdown-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
}

.product-dropdown-symbol {
    color: #00d4ff;
    font-weight: 600;
}

.product-dropdown-category {
    color: #8e8ea0;
}

/* Selected Product Info Display */
.selected-product-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid #2a2a3e;
    border-radius: 10px;
}

.product-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.icon-placeholder-large {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: #0a0a0f;
}

.product-main-info {
    flex: 1;
}

.product-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.action-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #2a2a3e;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    transform: scale(1.1);
}

.favorite-btn:hover { color: #ff4081; border-color: #ff4081; }
.portfolio-btn:hover { color: #ffd700; border-color: #ffd700; }
.watch-btn:hover { color: #00ff88; border-color: #00ff88; }
.alert-btn:hover { color: #ff9800; border-color: #ff9800; }

.product-symbols {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.product-symbol {
    font-size: 18px;
    font-weight: 700;
    color: #00d4ff;
}

.sp-symbol {
    font-size: 14px;
    color: #00ff88;
    font-weight: 500;
}

.product-category {
    font-size: 14px;
    color: #8e8ea0;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 15px;
}

.product-price-info {
    text-align: right;
}

.current-price-large {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.price-label {
    font-size: 12px;
    color: #8e8ea0;
    margin-bottom: 4px;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: #00ff88;
}

.price-change .change-positive {
    color: #00ff88;
    font-size: 16px;
    font-weight: 600;
}

.price-change .change-negative {
    color: #ff4081;
    font-size: 16px;
    font-weight: 600;
}

.product-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

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

.stat-label {
    font-size: 12px;
    color: #8e8ea0;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
}

/* Main Trading Content Area */
.trade-main-content {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 1px;
    flex: 1;
    overflow: hidden;
    background: #2a2a3e;
}

/* Products Sidebar (Left) */
.products-sidebar {
    background: #16213e;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #1a1a2e;
    border-bottom: 1px solid #2a2a3e;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #00d4ff;
}

.view-mode-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #2a2a3e;
    background: transparent;
    color: #8e8ea0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.view-btn:hover {
    color: #00d4ff;
    border-color: #00d4ff;
}

.view-btn.active {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border-color: #00d4ff;
}

.products-filters {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #1a1a2e;
    border-bottom: 1px solid #2a2a3e;
}

.filter-select {
    padding: 8px 12px;
    background: #0d0d1a;
    border: 1px solid #2a2a3e;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 13px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #00d4ff;
}

.products-grid,
.products-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

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

.product-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    transform: translateX(5px);
}

.product-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #0a0a0f;
    margin-right: 12px;
}

.product-card-info {
    flex: 1;
}

.product-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-symbol {
    font-size: 11px;
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-card-price {
    font-size: 14px;
    color: #00ff88;
    font-weight: 600;
    margin-bottom: 2px;
}

.product-card-change {
    font-size: 11px;
    font-weight: 600;
}

.product-card-change.positive {
    color: #00ff88;
}

.product-card-change.negative {
    color: #ff4081;
}

.loading-products {
    text-align: center;
    padding: 40px 20px;
    color: #8e8ea0;
}

/* Chart Area (Center) */
.chart-area {
    background: #0d0d1a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #16213e;
    border-bottom: 1px solid #2a2a3e;
}

.chart-type-selector,
.chart-timeframe-selector {
    display: flex;
    gap: 8px;
}

.chart-type-btn,
.timeframe-btn {
    padding: 8px 16px;
    border: 1px solid #2a2a3e;
    background: transparent;
    color: #8e8ea0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chart-type-btn:hover,
.timeframe-btn:hover {
    color: #00d4ff;
    border-color: #00d4ff;
}

.chart-type-btn.active,
.timeframe-btn.active {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border-color: #00d4ff;
    font-weight: 600;
}

.chart-canvas-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.candlestick-chart,
.line-chart,
.area-chart {
    width: 100%;
    height: 100%;
    padding: 20px;
}

.chart-svg {
    width: 100%;
    height: calc(100% - 60px);
}

.volume-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 50px;
    padding: 0 50px;
    gap: 5px;
}

.volume-bar {
    flex: 1;
    background: rgba(0, 212, 255, 0.3);
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
}

.volume-bar:hover {
    background: rgba(0, 212, 255, 0.6);
}

/* Right Sidebar (Offers/Specifications) */
.right-sidebar {
    background: #16213e;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-tabs {
    display: flex;
    background: #1a1a2e;
    border-bottom: 2px solid #2a2a3e;
}

.sidebar-tab {
    flex: 1;
    padding: 12px 10px;
    border: none;
    background: transparent;
    color: #8e8ea0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.sidebar-tab:hover {
    color: #00d4ff;
}

.sidebar-tab.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
    font-weight: 600;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Open Offers Panel */
.open-offers-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.offers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.offers-header h4 {
    margin: 0;
    font-size: 16px;
    color: #00d4ff;
    font-weight: 600;
}

.offers-filter {
    padding: 6px 12px;
    background: #0d0d1a;
    border: 1px solid #2a2a3e;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 12px;
    cursor: pointer;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.offer-card {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.offer-card:hover {
    border-color: #00d4ff;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a3e;
}

.offer-seller {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
}

.offer-price-badge {
    padding: 6px 12px;
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    color: #0a0a0f;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.offer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.offer-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.detail-label {
    color: #8e8ea0;
    font-weight: 500;
}

.detail-value {
    color: #e0e0e0;
    font-weight: 600;
    text-align: right;
}

.offer-actions {
    display: flex;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    color: #0a0a0f;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 1px solid #00d4ff;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* Specifications Panel */
.specifications-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.specifications-panel h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #00d4ff;
    font-weight: 600;
}

.spec-section {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 8px;
    padding: 15px;
}

.spec-section h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #00ff88;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: #8e8ea0;
    font-size: 13px;
    font-weight: 500;
}

.spec-value {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.spec-value.highlight {
    color: #00ff88;
    font-size: 16px;
}

.spec-value.positive {
    color: #00ff88;
}

.spec-value.negative {
    color: #ff4081;
}

.no-product-selected {
    text-align: center;
    padding: 40px 20px;
    color: #8e8ea0;
}

/* Bottom Trading Panel */
.bottom-trading-panel {
    background: #16213e;
    border-top: 2px solid #00d4ff;
    display: flex;
    flex-direction: column;
    max-height: 350px;
}

.bottom-panel-tabs {
    display: flex;
    background: #1a1a2e;
    border-bottom: 1px solid #2a2a3e;
}

.bottom-tab {
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #8e8ea0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.bottom-tab:hover {
    color: #00d4ff;
}

.bottom-tab.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
    font-weight: 600;
}

.bottom-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Trading Tables */
.positions-table-container,
.orders-table-container,
.history-table-container {
    overflow-x: auto;
}

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

.trading-table thead {
    background: #1a1a2e;
    position: sticky;
    top: 0;
    z-index: 10;
}

.trading-table th {
    padding: 12px 15px;
    text-align: left;
    color: #00d4ff;
    font-weight: 600;
    border-bottom: 2px solid #2a2a3e;
}

.trading-table td {
    padding: 12px 15px;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trading-table tbody tr {
    transition: all 0.2s ease;
}

.trading-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.symbol-badge {
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.position-long {
    color: #00ff88;
    font-weight: 600;
}

.position-short {
    color: #ff4081;
    font-weight: 600;
}

.positive-pl {
    color: #00ff88 !important;
    font-weight: 600;
}

.negative-pl {
    color: #ff4081 !important;
    font-weight: 600;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-open {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.status-working {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.side-buy {
    color: #00ff88;
    font-weight: 600;
}

.side-sell {
    color: #ff4081;
    font-weight: 600;
}

.table-action-btn {
    padding: 6px 12px;
    border: 1px solid #2a2a3e;
    background: transparent;
    color: #8e8ea0;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.table-action-btn:hover {
    color: #00d4ff;
    border-color: #00d4ff;
}

.close-btn:hover {
    color: #ff4081;
    border-color: #ff4081;
}

.cancel-btn:hover {
    color: #ff4081;
    border-color: #ff4081;
}

.modify-btn:hover {
    color: #ff9800;
    border-color: #ff9800;
}

.note-btn:hover {
    color: #00ff88;
    border-color: #00ff88;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #8e8ea0;
    font-style: italic;
}

/* Account Info Panel */
.account-info-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.account-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.account-stat-card {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.account-stat-card:hover {
    border-color: #00d4ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.account-stat-card.positive-card {
    border-color: #00ff88;
}

.account-stat-card .stat-icon {
    font-size: 36px;
}

.account-stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.account-stat-card .stat-label {
    font-size: 12px;
    color: #8e8ea0;
    margin-bottom: 5px;
}

.account-stat-card .stat-value-large {
    font-size: 20px;
    font-weight: 700;
    color: #e0e0e0;
}

.account-stat-card .stat-value-large.positive {
    color: #00ff88;
}

.account-details-section {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 10px;
    padding: 20px;
}

.account-details-section h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #00d4ff;
    font-weight: 600;
}

.account-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row .detail-label {
    color: #8e8ea0;
    font-size: 13px;
    font-weight: 500;
}

.detail-row .detail-value {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
}

/* Scrollbar Styling */
.professional-trade-screen ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.professional-trade-screen ::-webkit-scrollbar-track {
    background: #0d0d1a;
}

.professional-trade-screen ::-webkit-scrollbar-thumb {
    background: #2a2a3e;
    border-radius: 4px;
}

.professional-trade-screen ::-webkit-scrollbar-thumb:hover {
    background: #00d4ff;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .trade-main-content {
        grid-template-columns: 250px 1fr 300px;
    }
    
    .account-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .trade-main-content {
        grid-template-columns: 1fr 280px;
    }
    
    .products-sidebar {
        display: none;
    }
}

@media (max-width: 900px) {
    .trade-main-content {
        grid-template-columns: 1fr;
    }
    
    .right-sidebar {
        display: none;
    }
    
    .account-details-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   MODAL AND TOAST STYLES
   ===================================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content {
    background: #1a1a2e;
    border: 2px solid #00d4ff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-content.small {
    max-width: 400px;
}

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

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #2a2a3e;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #00d4ff;
}

.modal-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* Modal Body */
.modal-body {
    padding: 24px;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #2a2a3e;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Styles */
.btn-primary,
.btn-secondary {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #4caf50);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-primary.buy {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
}

.btn-primary.sell {
    background: linear-gradient(135deg, #f44336, #ef5350);
}

.btn-primary.danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* Order Summary */
.order-summary,
.quote-info,
.alert-info {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.summary-row,
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.summary-row span:first-child,
.info-row span:first-child {
    color: #888;
    font-weight: 500;
}

.summary-row span:last-child,
.info-row span:last-child {
    color: #e0e0e0;
    font-weight: 600;
}

.summary-row .green,
.info-row .green {
    color: #4caf50;
}

.summary-row .red,
.info-row .red {
    color: #f44336;
}

.info-row .bold {
    color: #fff;
    font-weight: 700;
}

/* Alert Info */
.alert-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.info-icon {
    font-size: 24px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s ease, slideOutRight 0.3s ease 2.7s;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-success {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: 2px solid #81c784;
}

.toast-error {
    background: linear-gradient(135deg, #f44336, #ef5350);
    border: 2px solid #e57373;
}

.toast-warning {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    border: 2px solid #ffcc80;
}

.toast-info {
    background: linear-gradient(135deg, #00d4ff, #29b6f6);
    border: 2px solid #4fc3f7;
}

.toast-icon {
    font-size: 20px;
    font-weight: bold;
}

.toast-message {
    flex: 1;
    color: #fff;
}

/* Active State for Action Buttons */
.action-btn.active {
    opacity: 1 !important;
    background: rgba(76, 175, 80, 0.3) !important;
}

.action-btn.favorite.active {
    background: rgba(233, 30, 99, 0.3) !important;
    border-color: #e91e63 !important;
}

.action-btn.portfolio.active {
    background: rgba(255, 193, 7, 0.3) !important;
    border-color: #ffc107 !important;
}

.action-btn.watch.active {
    background: rgba(76, 175, 80, 0.3) !important;
    border-color: #4caf50 !important;
}

/* Disabled Button State */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Scrollbar Styling for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #0f0f1a;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #4caf50;
}

/* ============================================================================
   PRODUCTS & PRICES PANEL - Professional Trading View
   ============================================================================ */

.products-prices-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #0d0d0d;
    overflow: hidden;
}

.panel-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 2px solid #2196f3;
}

.panel-header-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.update-indicator {
    font-size: 11px;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.prices-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.prices-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
}

.prices-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #1a1a1a;
}

.prices-table thead th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #333;
    white-space: nowrap;
}

.prices-table tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid #1a1a1a;
}

.prices-table tbody tr:hover {
    background: rgba(33, 150, 243, 0.05);
}

.prices-table tbody tr:active {
    background: rgba(33, 150, 243, 0.1);
}

.prices-table tbody td {
    padding: 10px 8px;
    vertical-align: middle;
    color: #cbd5e1;
}

/* Symbol Column */
.symbol-col {
    width: 80px;
}

.symbol-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 4px;
    color: #60a5fa;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Column */
.product-col {
    min-width: 180px;
    max-width: 200px;
}

.product-name-cell {
    font-weight: 500;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-category {
    font-size: 10px;
    color: #64748b;
    text-transform: capitalize;
}

/* Price Column */
.price-col {
    width: 100px;
    text-align: right;
}

.price-value {
    font-weight: 600;
    color: #fff;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.price-col.loading {
    color: #444;
    font-style: italic;
}

/* Change Column */
.change-col {
    width: 110px;
    text-align: right;
}

.change-positive {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.change-negative {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.change-positive .change-value {
    color: #4caf50;
    font-weight: 600;
    font-size: 12px;
}

.change-positive .change-percent {
    color: #66bb6a;
    font-size: 10px;
}

.change-negative .change-value {
    color: #f44336;
    font-weight: 600;
    font-size: 12px;
}

.change-negative .change-percent {
    color: #ef5350;
    font-size: 10px;
}

.change-col.loading {
    color: #444;
    font-style: italic;
}

/* Volume Column */
.volume-col {
    width: 80px;
    text-align: right;
    color: #94a3b8;
    font-size: 11px;
}

.volume-col.loading {
    color: #444;
    font-style: italic;
}

/* Loading State */
.loading-cell {
    text-align: center;
    padding: 40px 20px !important;
    color: #64748b;
    font-size: 13px;
}

/* Scrollbar Styling for Prices Table */
.prices-table-container::-webkit-scrollbar {
    width: 8px;
}

.prices-table-container::-webkit-scrollbar-track {
    background: #0d0d0d;
}

.prices-table-container::-webkit-scrollbar-thumb {
    background: #2196f3;
    border-radius: 4px;
}

.prices-table-container::-webkit-scrollbar-thumb:hover {
    background: #1976d2;
}

/* Responsive Adjustments */
@media (max-width: 1600px) {
    .prices-table {
        font-size: 11px;
    }
    
    .product-name-cell {
        font-size: 11px;
    }
    
    .symbol-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Row Hover Effects with Price Highlighting */
.prices-table tbody tr:hover .price-value {
    color: #2196f3;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.prices-table tbody tr:hover .symbol-badge {
    background: rgba(33, 150, 243, 0.25);
    border-color: rgba(33, 150, 243, 0.5);
}

/* Active Row (Selected Product) */
.prices-table tbody tr.active-row {
    background: rgba(33, 150, 243, 0.15);
    border-left: 3px solid #2196f3;
}

.prices-table tbody tr.active-row .symbol-badge {
    background: #2196f3;
    color: #fff;
    border-color: #1976d2;
}

/* Price Update Animation */
@keyframes priceUpdate {
    0% {
        background: rgba(76, 175, 80, 0.3);
    }
    100% {
        background: transparent;
    }
}

.price-updated {
    animation: priceUpdate 1s ease;
}
