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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1117;
    color: #e6edf3;
    line-height: 1.4;
    font-size: 12px;
    overflow: hidden;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Controls - Top Left - Fixed order and spacing */
.header-controls-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* API Status Styles - Fixed identical dimensions for both states */
.api-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background-color: #da3633;
    color: white;
    min-width: 150px;
    max-width: 150px;
    width: 150px;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    order: 1;
}

.api-status.configured {
    background-color: #3fb950;
    color: white;
    font-size: 10px;
    letter-spacing: 0.2px;
}

/* Settings Button */
.settings-btn {
    background: none;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 8px;
    color: #7d8590;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    order: 3;
}

.settings-btn:hover {
    background-color: #161b22;
    color: #58a6ff;
    border-color: #58a6ff;
}

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

/* Connection button: force to be leftmost in the top row */
.connection-btn {
    order: 1;
}

/* Toggle connected/disconnected icon */
.connection-btn .icon-conn-connected {
    display: none;
}

.connection-btn.connected .icon-conn-connected {
    display: block;
}

.connection-btn.connected .icon-conn-disconnected {
    display: none;
}

/* Connection icon color: red when disconnected, green when connected */
.connection-btn {
    color: #d9534f; /* red */
}

.connection-btn.connected {
    color: #28a745; /* green */
}

/* Orders & Positions Button - Always second */
.orders-positions-btn {
    padding: 8px;
    border: 1px solid #58a6ff;
    background-color: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    height: 34px;
    width: 34px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
}

.orders-positions-btn:hover {
    background-color: rgba(88, 166, 255, 0.25);
    border-color: #79c0ff;
    transform: scale(1.05);
}

.orders-positions-btn:active {
    background-color: rgba(88, 166, 255, 0.35);
    transform: scale(0.95);
}

.orders-positions-btn svg {
    flex-shrink: 0;
}

.main-content {
    display: block;
    flex: 1;
    min-height: 0;
    height: calc(100vh - 60px);
}

/* DOM Container - Exact 480px width (FIXED - no responsive shrinking) */
.dom-container {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', monospace;
    cursor: default;
    user-select: none;
    height: calc(100vh - 100px);
    min-height: 300px;
    max-height: 90vh;
    width: 480px;
    min-width: 480px;
    max-width: 480px;
    margin: 0;
}

/* DOM Header - Fixed 480px total: 80+80+80+80+160 */
.dom-header {
    display: grid;
    grid-template-columns: 80px 80px 80px 80px 160px;
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
    flex-shrink: 0;
    align-items: center;
    min-height: 50px;
    height: 50px;
    width: 100%;
}

.dom-column {
    padding: 6px 2px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    height: 100%;
    min-width: 0;
}

/* Order Panel Header (no text) */
.order-panel-header {
    color: #7d8590;
    background-color: #1c2128;
    border-left: 1px solid #30363d;
}

/* Consistent header styling for all columns */
.work-header {
    color: #7d8590;
    background-color: #1c2128;
}

.bids-header {
    color: #3fb950;
    background-color: #13221a;
}

.price-header {
    color: #e6edf3;
    background-color: #161b22;
}

.asks-header {
    color: #da3633;
    background-color: #2d1c1c;
}

/* Add invisible placeholder to ALL headers to maintain alignment */
.dom-column::after {
    content: '';
    display: block;
    height: 14px;
    visibility: hidden;
}

/* CONSISTENT: Position Size and PnL Display Styles */
.position-size-header, .positions-header {
    font-family: 'Courier New', monospace !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
    min-height: 14px !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    height: 14px !important;
}

.price-header .positions-header.positive {
    color: #3fb950 !important;
}

.price-header .positions-header.negative {
    color: #da3633 !important;
}

/* When there's no position, show empty space to maintain alignment */
.position-size-header:empty::before, 
.positions-header:empty::before {
    content: '';
    display: inline-block;
    height: 14px;
}

/* Ensure all header content has consistent vertical spacing */
.dom-column > div:first-child {
    margin-bottom: 2px;
}

.dom-column > div:last-child {
    margin-top: 0;
}

/* DOM Body - Fixed 480px total: 80+80+80+80+160 */
.dom-body {
    display: grid;
    grid-template-columns: 80px 80px 80px 80px 160px;
    flex: 1;
    min-height: 0;
    height: calc(100% - 50px - 32px);
    position: relative;
    width: 100%;
}

/* RESPONSIVE: Add scroll wrapper for synchronized scrolling */
.dom-scroll-wrapper {
    display: contents;
}

/* Ensure all column containers have proper scrolling and hide individual scrollbars */
#workColumn, #bidsColumn, #priceLevels, #asksColumn {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: hidden !important;
    scrollbar-width: none;
}

/* RESPONSIVE: Hide scrollbars for Chrome/Safari */
#workColumn::-webkit-scrollbar,
#bidsColumn::-webkit-scrollbar,
#priceLevels::-webkit-scrollbar,
#asksColumn::-webkit-scrollbar {
    display: none;
}

/* RESPONSIVE: Ensure price rows maintain consistent height */
.price-row, .bid-row, .ask-row, .work-row {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    flex-shrink: 0;
}

/* Ensure all columns have the same height and proper structure */
.work-column, .bids-column, .price-column, .asks-column, .order-panel-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Work Column - Fixed 80px */
.work-column {
    background-color: #1c2128;
    min-width: 80px;
    width: 80px;
}

.work-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px 1px;
    border-bottom: 1px solid #30363d;
    font-size: 11px;
    color: #7d8590;
    flex-shrink: 0;
    position: relative;
    width: 100%;
    min-width: 80px;
}

.work-row:empty::before {
    content: '\00a0';
    visibility: hidden;
}

/* Resting Order Styles - Compact */
.resting-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 3px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 45px;
    width: 45px;
    margin: 1px 0;
}

.resting-order.buy {
    background-color: #3fb950;
    border: 1px solid #2ea043;
}

.resting-order.sell {
    background-color: #da3633;
    border: 1px solid #c92a2a;
}

.resting-order:hover {
    opacity: 0.8;
}

.resting-order:hover .cancel-order {
    opacity: 1;
}

.order-quantity {
    flex: 1;
    text-align: center;
    font-size: 9px;
    min-width: 25px;
    display: block;
}

.cancel-order {
    opacity: 0;
    font-size: 12px;
    font-weight: bold;
    transition: opacity 0.2s;
    margin-left: 2px;
}

/* Bids Column - Fixed 80px */
.bids-column {
    background: linear-gradient(90deg, #13221a 0%, #0d1117 100%);
    min-width: 80px;
    width: 80px;
}

.bid-row {
    display: flex;
    justify-content: center; /* Changed from flex-end to center */
    padding: 2px 4px;
    border-bottom: 1px solid #1c2128;
    background: linear-gradient(90deg, rgba(63, 185, 80, 0.1) 0%, transparent 100%);
    cursor: pointer;
    transition: background-color 0.1s;
    font-size: 11px;
    font-weight: 500;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    min-width: 80px;
}

.bid-row:hover {
    background-color: rgba(63, 185, 80, 0.3);
}

.bid-size {
    color: #3fb950;
    min-width: 50px;
    width: 50px;
    text-align: right;
    font-size: 10px;
    display: block;
    visibility: visible;
}

/* FIX: Empty bid rows should maintain same layout */
.bid-row:empty::before {
    content: '\00a0';
    visibility: hidden;
}

/* Price Column - Fixed 80px */
.price-column {
    background-color: #0d1117;
    border-left: 1px solid #30363d;
    border-right: 1px solid #30363d;
    min-width: 80px;
    width: 80px;
}

.price-row {
    padding: 2px 1px;
    text-align: center;
    border-bottom: 1px solid #1c2128;
    font-size: 10px;
    color: #e6edf3;
    cursor: pointer;
    transition: background-color 0.1s;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    min-width: 80px;
}

.price-row:hover {
    background-color: rgba(88, 166, 255, 0.2);
}

.price-row.current-price-level {
    background: linear-gradient(90deg, rgba(88, 166, 255, 0.3) 0%, rgba(88, 166, 255, 0.1) 100%);
    color: #58a6ff;
    font-weight: 700;
    border-left: 3px solid #58a6ff;
    border-right: 3px solid #58a6ff;
    position: relative;
}

/* Price Level Execution Highlight */
.price-row.executed {
    background: linear-gradient(90deg, rgba(88, 166, 255, 0.4) 0%, rgba(88, 166, 255, 0.2) 100%);
    color: #58a6ff;
    font-weight: 700;
}

/* Asks Column - Fixed 80px */
.asks-column {
    background: linear-gradient(90deg, #0d1117 0%, #2d1c1c 100%);
    min-width: 80px;
    width: 80px;
}

.ask-row {
    display: flex;
    justify-content: center; /* Changed from flex-start to center */
    padding: 2px 4px;
    border-bottom: 1px solid #1c2128;
    background: linear-gradient(90deg, transparent 0%, rgba(218, 54, 51, 0.1) 100%);
    cursor: pointer;
    transition: background-color 0.1s;
    font-size: 11px;
    font-weight: 500;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    min-width: 80px;
}

.ask-row:hover {
    background-color: rgba(218, 54, 51, 0.3);
}

.ask-size {
    color: #da3633;
    min-width: 50px;
    width: 50px;
    text-align: left;
    font-size: 10px;
    display: block;
    visibility: visible;
}

/* FIX: Empty ask rows should maintain same layout */
.ask-row:empty::before {
    content: '\00a0';
    visibility: hidden;
}

/* Order Panel Column - Fixed 160px */
.order-panel-column {
    background-color: #161b22;
    border-left: 1px solid #30363d;
    min-width: 160px;
    max-width: 160px;
    width: 160px;
}

.order-panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    gap: 10px;
    overflow-y: auto;
}

.order-panel-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-panel-group label {
    font-size: 10px;
    font-weight: 600;
    color: #7d8590;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-panel-select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #30363d;
    background-color: #0d1117;
    color: #e6edf3;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.order-panel-select:focus {
    outline: none;
    border-color: #58a6ff;
}

.quantity-input-group-order {
    display: flex;
    align-items: center;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    padding: 0;
    width: 100%;
}

.order-panel-input {
    width: 100%;
    padding: 6px 8px;
    border: none;
    background-color: transparent;
    color: #e6edf3;
    border-radius: 3px;
    font-size: 11px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
    line-height: 1.4;
}

.order-panel-input:focus {
    outline: none;
    background-color: #161b22;
}

.order-panel-input::placeholder {
    color: #7d8590;
    font-size: 12px;
}

/* Price Step Buttons */
.price-step-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 2px;
}

.step-btn {
    padding: 5px 6px;
    border: 1px solid #30363d;
    background-color: #0d1117;
    color: #7d8590;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.step-btn:hover {
    background-color: #161b22;
    border-color: #58a6ff;
    color: #58a6ff;
}

.step-btn.active {
    background-color: #58a6ff;
    border-color: #58a6ff;
    color: white;
}

/* Multiplier Buttons */
.multiplier-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin-top: 2px;
}

.multiplier-btn {
    padding: 5px 6px;
    border: 1px solid #30363d;
    background-color: #0d1117;
    color: #7d8590;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.multiplier-btn:hover {
    background-color: #161b22;
    border-color: #58a6ff;
    color: #58a6ff;
}

.multiplier-btn.active {
    background-color: #58a6ff;
    border-color: #58a6ff;
    color: white;
}

/* Flatten Button in Order Panel */
.flatten-btn-order-panel {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #da3633;
    background-color: rgba(218, 54, 51, 0.15);
    color: #da3633;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1.4;
    margin-top: 5px;
}

.flatten-btn-order-panel:hover {
    background-color: rgba(218, 54, 51, 0.25);
    border-color: #f85149;
}

.flatten-btn-order-panel:active {
    background-color: rgba(218, 54, 51, 0.35);
    transform: scale(0.98);
}

.flatten-btn-order-panel:disabled {
    background-color: rgba(218, 54, 51, 0.1);
    border-color: #484f58;
    color: #7d8590;
    cursor: not-allowed;
}

/* =========================
   DOM inline error banner
   (Under FLATTEN button)
   ========================= */
.dom-error-banner {
    width: 100%;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 6px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;

    /* Hidden by default (fade out) */
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 350ms ease, transform 350ms ease;

    /* Don’t steal clicks */
    pointer-events: none;

    /* Default colors (will be applied when shown too) */
    color: #ff5a5a;
    background: rgba(255, 90, 90, 0.18);
    border: 1px solid rgba(255, 90, 90, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.12) inset;
}

.dom-error-banner.dom-error-banner--show {
    opacity: 1;
    transform: translateY(0);
}

.dom-error-banner.dom-error-banner--flash {
    animation: domErrorPulse 1.0s ease-in-out 0s 2;
}

@keyframes domErrorPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.35);
    }
}

/* Order Panel Filler */
.order-panel-filler {
    flex: 1;
    min-height: 20px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 17, 23, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #30363d;
}

.modal-header h3 {
    color: #58a6ff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #7d8590;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: #da3633;
    color: white;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.modal-body p {
    color: #7d8590;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Settings Form Styles */
.settings-form {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 15px;
}

.settings-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #30363d;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-section h4 {
    color: #58a6ff;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.settings-form label {
    display: block;
    color: #e6edf3;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
}

.setting-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #30363d;
    background-color: #161b22;
    color: #e6edf3;
    border-radius: 4px;
    font-size: 14px;
}

.setting-input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

.setting-description {
    display: block;
    color: #7d8590;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #e6edf3;
    margin-bottom: 5px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #30363d;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    background-color: #161b22;
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #1f6feb;
    border-color: #1f6feb;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Radio button styles */
.checkbox-label input[type="radio"] {
    display: none;
}

.checkmark.radio {
    border-radius: 50%;
}

.checkbox-label input[type="radio"]:checked + .checkmark.radio {
    background-color: #1f6feb;
    border-color: #1f6feb;
}

.checkbox-label input[type="radio"]:checked + .checkmark.radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

/* API Info Box */
.api-info {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid #58a6ff;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    font-size: 12px;
}

.api-info strong {
    color: #58a6ff;
    display: block;
    margin-bottom: 8px;
}

.api-info ul {
    margin: 8px 0;
    padding-left: 20px;
}

.api-info li {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Security Warning */
.security-warning {
    background: rgba(218, 54, 51, 0.1);
    border: 1px solid #da3633;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    font-size: 12px;
}

.security-warning strong {
    color: #da3633;
}

/* Order ID styling */
.order-id {
    color: #7d8590;
    font-size: 9px;
    font-family: 'Courier New', monospace;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #30363d;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #1f6feb;
    color: white;
}

.btn-primary:hover {
    background-color: #2c83f3;
}

.btn-secondary {
    background-color: #484f58;
    color: white;
}

.btn-secondary:hover {
    background-color: #57606a;
}

/* Mode-specific sections */
#liveTradingSection, #simulationSection {
    transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* Bid/Ask Row Click Enhancements */
.bid-row, .ask-row {
    cursor: pointer;
    transition: background-color 0.1s;
}

.bid-row:hover, .ask-row:hover {
    background-color: rgba(88, 166, 255, 0.2);
}

/* Enhanced Average Price Level Highlighting */
.price-row.avg-price-level {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.4) 0%, rgba(255, 215, 0, 0.2) 100%) !important;
    color: #ffd700 !important;
    font-weight: 700;
    border-left: 3px solid #ffd700 !important;
    border-right: 3px solid #ffd700 !important;
    position: relative;
}

.price-row.avg-price-level::before {
    content: '⦿';
    position: absolute;
    left: 4px;
    color: #ffd700 !important;
    font-size: 12px;
    font-weight: bold;
}

/* Debug Section Styles */
.debug-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%) !important;
    border: 1px solid #ff6b35 !important;
}

.debug-section h4 {
    color: #ff6b35 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.debug-section button {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e35 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    width: 100% !important;
}

.debug-section button:hover {
    background: linear-gradient(135deg, #ff8e35 0%, #ffa535 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3) !important;
}

.debug-section div {
    text-align: center !important;
    font-size: 10px !important;
    color: #ffa535 !important;
    margin-top: 6px !important;
}

/* Add these styles to your existing CSS */

/* Filled order styling */
.open-order.filled {
    opacity: 0.7;
    background: rgba(104, 211, 145, 0.1) !important;
    border-left: 3px solid #68d391 !important;
}

.open-order.filled .order-id {
    color: #68d391;
}

/* Status badges */
.open-order .status-badge {
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.status-badge.filled {
    background-color: #68d391;
    color: white;
}

.status-badge.open {
    background-color: #f6ad55;
    color: white;
}

.status-badge.resting {
    background-color: #4299e1;
    color: white;
}

/* Order type indicators */
.order-type {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    background: #2d3748;
    color: #e2e8f0;
    margin-left: 4px;
}

/* Enhanced order display */
.open-order {
    transition: all 0.2s ease;
}

.open-order:hover {
    background: rgba(66, 153, 225, 0.05) !important;
}

/* Position Highlight Styles */
.price-row.long-position-level {
    background: linear-gradient(90deg, rgba(63, 185, 80, 0.4) 0%, rgba(63, 185, 80, 0.2) 100%) !important;
    color: #3fb950 !important;
    font-weight: 700;
    border-left: 3px solid #3fb950 !important;
    border-right: 3px solid #3fb950 !important;
    position: relative;
}

.price-row.short-position-level {
    background: linear-gradient(90deg, rgba(218, 54, 51, 0.4) 0%, rgba(218, 54, 51, 0.2) 100%) !important;
    color: #da3633 !important;
    font-weight: 700;
    border-left: 3px solid #da3633 !important;
    border-right: 3px solid #da3633 !important;
    position: relative;
}

/* Remove the old avg-price-level styles if they exist */
.price-row.avg-price-level {
    /* Remove any existing styles that might conflict */
    background: none !important;
    border: none !important;
}

/* Connection Status in Settings */
.connection-status-settings {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.status-info span {
    font-size: 13px;
    font-weight: 500;
    color: #e6edf3;
}

.status-description {
    color: #7d8590;
    font-size: 11px;
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #e6edf3;
    font-size: 11px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #30363d;
    background-color: #0d1117;
    color: #e6edf3;
    border-radius: 4px;
    font-size: 11px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #58a6ff;
}

.side-selector {
    display: flex;
    gap: 8px;
}

.side-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.side-btn.buy {
    background-color: #238636;
    color: white;
}

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

.side-btn.active {
    opacity: 1;
    transform: scale(1.02);
}

.side-btn:not(.active) {
    opacity: 0.6;
}

.place-order-btn {
    width: 100%;
    padding: 10px;
    background-color: #1f6feb;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    font-size: 12px;
    transition: background-color 0.2s;
}

.place-order-btn:hover {
    background-color: #2c83f3;
}

.place-order-btn:disabled {
    background-color: #484f58;
    cursor: not-allowed;
}

/* Instructions for ladder controls */
.ladder-instructions {
    text-align: center;
    padding: 8px;
    background-color: #161b22;
    border-top: 1px solid #30363d;
    font-size: 10px;
    color: #7d8590;
    flex-shrink: 0;
    height: 32px;
}

/* Debug Tools in Settings Modal */
.debug-toggle-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8e35 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.debug-toggle-btn:hover {
    background: linear-gradient(135deg, #ff8e35 0%, #ffa535 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.debug-tools-panel {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a1a 100%);
    border: 1px solid #ff6b35;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    animation: slideDown 0.3s ease-out;
}

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

.debug-buttons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.debug-btn {
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.debug-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Debug button color variants */
.debug-danger { background: linear-gradient(135deg, #ff35a8 0%, #ff357a 100%); color: white; }
.debug-warning { background: linear-gradient(135deg, #ff6b35 0%, #ff8e35 100%); color: white; }
.debug-info { background: linear-gradient(135deg, #357aff 0%, #35a2ff 100%); color: white; }
.debug-success { background: linear-gradient(135deg, #35ff6b 0%, #35ffa5 100%); color: black; }
.debug-purple { background: linear-gradient(135deg, #9d35ff 0%, #d535ff 100%); color: white; }
.debug-pink { background: linear-gradient(135deg, #ff35e6 0%, #ff35a8 100%); color: white; }
.debug-critical { background: linear-gradient(135deg, #ff3535 0%, #ff6b35 100%); color: white; }

.debug-status {
    border-top: 1px solid #444;
    padding-top: 10px;
    margin-top: 10px;
}

/* Responsive adjustments - Fixed widths and consistent order */
@media (max-width: 768px) {
    .app-container {
        padding: 8px;
    }
    
    /* Keep DOM container at fixed 480px */
    .dom-container {
        max-width: 480px !important;
        min-width: 480px !important;
        width: 480px !important;
    }
    
    /* Keep grid templates fixed */
    .dom-header {
        grid-template-columns: 80px 80px 80px 80px 160px !important;
    }
    
    .dom-body {
        grid-template-columns: 80px 80px 80px 80px 160px !important;
    }
    
    /* Keep order panel fixed */
    .order-panel-column {
        min-width: 160px !important;
        max-width: 160px !important;
        width: 160px !important;
    }
    
    .order-panel-content {
        padding: 12px;
        gap: 10px;
    }
    
    .header-controls-top {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Keep consistent order */
    .api-status {
        order: 1 !important;
    }
    
    .orders-positions-btn {
        order: 2 !important;
    }
    
    .settings-btn {
        order: 3 !important;
    }

    .connection-btn { 
        order: 1 !important; 
    }
    
    /* Price step buttons responsive */
    .price-step-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
    }
    
    .step-btn {
        padding: 4px 5px;
        font-size: 9px;
    }
    
    .debug-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .debug-btn {
        font-size: 11px;
        padding: 8px 10px;
    }
}

/* Additional breakpoint for very small screens */
@media (max-width: 480px) {
    /* Keep DOM container at fixed 480px */
    .dom-container {
        max-width: 480px !important;
        min-width: 480px !important;
        width: 480px !important;
    }
    
    /* Keep grid templates fixed */
    .dom-header {
        grid-template-columns: 80px 80px 80px 80px 160px !important;
    }
    
    .dom-body {
        grid-template-columns: 80px 80px 80px 80px 160px !important;
    }
    
    /* Keep order panel fixed */
    .order-panel-column {
        min-width: 160px !important;
        max-width: 160px !important;
        width: 160px !important;
    }
    
    /* Keep original padding */
    .order-panel-content {
        padding: 12px;
        gap: 10px;
    }
    
    /* Keep consistent order */
    .api-status {
        order: 1 !important;
    }
    
    .orders-positions-btn {
        order: 2 !important;
    }
    
    .settings-btn {
        order: 3 !important;
    }
    
    /* Price step buttons */
    .price-step-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
    }
    
    .step-btn {
        padding: 3px 4px;
        font-size: 8px;
    }
    
    /* Keep button layouts */
    .multiplier-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    
    .multiplier-btn {
        padding: 5px 6px;
        font-size: 10px;
    }
    
    .order-panel-group label {
        font-size: 10px;
    }
    
    .order-panel-select, .order-panel-input {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .flatten-btn-order-panel {
        padding: 8px 10px;
        font-size: 11px;
    }
    
}

@media (max-width: 1200px) {
    .header-controls-top {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Keep consistent order at all sizes */
    .api-status {
        order: 1 !important;
    }
    
    .orders-positions-btn {
        order: 2 !important;
    }
    
    .settings-btn {
        order: 3 !important;
    }
}

/* Connect to Rithmic Button */

.connect-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: inherit;
  font-size: 12px;
  letter-spacing: 0.4px;
  cursor: pointer;
  margin-right: 8px;
}

.connect-btn:hover {
  background: rgba(255,255,255,0.10);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.small-help {
  font-size: 12px;
  line-height: 1.3;
}

/* ----------------------------
   Auth (Login) page styles
   ---------------------------- */
.auth-page {
    min-height: 100vh;
    margin: 0;
    color: inherit;
    background:
        radial-gradient(900px 500px at 50% -10%, rgba(31, 111, 235, 0.25), transparent 55%),
        radial-gradient(700px 450px at 10% 20%, rgba(255, 215, 0, 0.10), transparent 60%),
        #0d1117;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.auth-card {
    width: min(440px, 92vw);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(13, 17, 23, 0.78);
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    padding: 22px;
}

.auth-header {
    margin-bottom: 14px;
}

/* Login logo */
.auth-header {
  text-align: center;
}

.auth-logo {
  display: block;
  margin: 0 auto 42px auto;
  max-width: 260px;
  width: 70%;
  height: auto;
}

.auth-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
}

.auth-subtitle {
    display: none;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-field {
    display: grid;
    gap: 6px;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.auth-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.25);
    color: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input--with-icon {
    padding-right: 42px;
}

.auth-input:focus {
    border-color: rgba(31, 111, 235, 0.75);
    box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.18);
    background: rgba(0,0,0,0.35);
}

.auth-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.15);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-icon-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    user-select: none;
}

.auth-check input {
    width: 14px;
    height: 14px;
}

.auth-link {
    font-size: 12px;
    color: rgba(31, 111, 235, 0.95);
    text-decoration: none;
}

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

.auth-btn {
    width: 100%;
    border-radius: 10px;
    padding: 11px 14px;
    font-weight: 700;
    border: none; /* btn-primary already sets background */
    cursor: pointer;
}

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

.auth-msg {
    min-height: 18px;
    font-size: 12px;
    color: #ff4d4f;
    text-align: center;
    margin-top: 6px;
}

.auth-btn.is-loading {
    position: relative;
}

/* ============================
   Admin Panel (User Management)
   ============================ */

.admin-page {
    overflow: auto;
}

.admin-shell {
    height: 100vh;
    display: grid;
    grid-template-columns: 170px 1fr;
}

.admin-sidebar {
    border-right: 1px solid #30363d;
    background: #0d1117;
    padding: 18px 14px;
}

.admin-brand {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
    color: #e6edf3;
}

.admin-nav {
    display: grid;
    gap: 6px;
}

.admin-nav-item {
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255,255,255,0.85);
    text-align: left;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
}

.admin-nav-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.10);
}

.admin-nav-item.is-active {
    background: rgba(88, 166, 255, 0.12);
    border-color: rgba(88, 166, 255, 0.35);
    color: #e6edf3;
}

.admin-main {
    padding: 20px 22px;
    overflow: auto;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.admin-title {
    font-size: 16px;
    font-weight: 800;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.25);
    color: #fff;
    outline: none;
    min-width: 240px;
}

#search.admin-input {
    min-width: 420px;
}

select.admin-input {
    appearance: none;
    background: rgba(0,0,0,0.25);
    color: #fff;
}

select.admin-input option {
    background: #000;
    color: #fff;
}

select.admin-input option:checked {
    background: #000;
    color: #fff;
}

.admin-input:focus {
    border-color: rgba(31, 111, 235, 0.75);
    box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.18);
    background: rgba(0,0,0,0.25);
}

.admin-input[type="date"] {
    color-scheme: dark;
}

.admin-msg {
    min-height: 18px;
    font-size: 12px;
    color: #ff4d4f;
}

.admin-msg--center {
    text-align: center;
    margin-top: 10px;
}

.admin-table-wrap {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
}

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

.admin-table thead {
    background: #161b22;
}

.admin-table th,
.admin-table td {
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    text-align: left;
    font-size: 12px;
    white-space: nowrap;
}

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

.admin-table .col-check {
    width: 42px;
    text-align: center;
}

.admin-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.admin-placeholder {
    margin-top: 18px;
    opacity: 0.85;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.modal.is-open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.modal-card {
    position: relative;
    width: min(720px, 92vw);
    margin: 6vh auto 0 auto;
    background: rgba(13, 17, 23, 0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.60);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.modal-title {
    font-size: 16px;
    font-weight: 800;
}

.modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.20);
    color: rgba(255,255,255,0.90);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255,255,255,0.08);
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,0.10);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

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

.form-field {
    display: grid;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    color: rgba(255,255,255,0.90);
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.form-hint {
    font-size: 11px;
    color: rgba(88, 166, 255, 0.85);
}

.form-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.90);
}

.btn-small {
    padding: 6px 10px;
    font-size: 12px;
}

@media (min-width: 820px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 14px;
    }

    #sendNotifField,
    #statusField,
    #lockUserField {
        grid-column: 1 / -1;
    }
}

/* Rithmic Connect modal - layout only (no theme overrides) */
#rithmicConnectModal .rithmic-connect-modal {
    /* slightly wider to match the sketch proportions */
    max-width: 640px;
}

#rithmicConnectModal .rithmic-connect-header {
    /* center logo; keep close button available */
    justify-content: center;
    position: relative;
}

#rithmicConnectModal .rithmic-connect-logo {
    display: block;
    width: min(520px, 92%);
    height: auto;
    margin: 0 auto;
}

#rithmicConnectModal .rithmic-connect-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#rithmicConnectModal .rithmic-connect-form {
    width: min(260px, 92%);   
    margin: 0 auto;
    padding-top: 24px;        
}

#rithmicConnectModal .rithmic-check-row {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* force left aligned */
    gap: 8px;
    margin-top: 6px;
}

/* CRITICAL: stop the global `.form-group input { width:100% }` from stretching the checkbox */
#rithmicConnectModal .rithmic-check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;          /* don't grow */
}

/* Override global `.form-group label { display:block }` so it sits inline next to the checkbox */
#rithmicConnectModal .rithmic-check-row label {
    display: inline-block;
    margin: 0;
    white-space: nowrap;     /* keep "Use RTrader" on one line */
}

/* Override global `.form-group label { display:block; }` just for this row */
#rithmicConnectModal .rithmic-check-row label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    white-space: nowrap; /* keeps "Use RTrader" on one line */
}

#rithmicConnectModal .rithmic-check-row input[type="checkbox"] {
    margin: 0;
}

#rithmicConnectModal .rithmic-connect-actions {
    justify-content: center !important;
    margin-top: 12px;
    margin-bottom: 48px; 
}

/* If you want only the Connect button like the sketch, hide Cancel visually (JS still works) */
#rithmicConnectModal #rithmicCancelBtn {
    display: none;
}

#rithmicConnectModal #rithmicConnectSubmit {
    width: 100%;              /* same width as inputs */
    min-width: 0;
}

/* Password eye positioning (no colors) */
#rithmicConnectModal .rithmic-pass-wrap {
    position: relative;
}

#rithmicConnectModal .rithmic-pass-input {
    padding-right: 44px; /* room for eye icon */
}

#rithmicConnectModal .rithmic-pass-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    opacity: 0.85;
}

#rithmicConnectModal .rithmic-pass-toggle:hover {
    opacity: 1;
}

/* Footer alignment like the sketch */
#rithmicConnectModal .rithmic-copyright {
    width: min(720px, 94%);
    margin: 14px auto 0 auto;
    text-align: center;
}

#rithmicConnectModal .rithmic-omne-inline {
    display: inline-block;
    height: 14px;          /* slightly smaller, matches text line */
    width: auto;
    vertical-align: -2px;  /* baseline alignment */
    margin: 0 6px;
}



