* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}
body {
    background: #0a0a0f;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    color: #e0e0e5;
    min-height: 100vh;
    line-height: 1.5;
    font-size: 0.85rem;
    overflow-x: hidden;
}
.navbar {
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(80, 120, 200, 0.12);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 2rem;
}
.navbar .brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.navbar .brand img.brand-logo {
    height: 52px;
    border-radius: 50%;
    border: 2px solid #6a88cc;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(106, 136, 204, 0.3);
}
.navbar .brand span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6a88cc;
    letter-spacing: -0.5px;
}
.crypto-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.crypto-logo {
    position: relative;
}
.crypto-logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1a22;
    padding: 6px;
    border: 1px solid rgba(80, 120, 200, 0.2);
    transition: transform 0.2s ease;
}
.crypto-logo img:hover {
    transform: scale(1.05);
}
.stats-container {
    max-width: 1600px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(80, 120, 200, 0.15);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.stats-card {
    padding: 1.5rem;
    position: relative;
    z-index: 10;
    height: 100%;
}
.container {
    max-width: 1600px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}
.tables-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.table-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.table-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.table-section h2::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #6a88cc;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(106, 136, 204, 0.5);
}

/* === 15-MIN-SUMME WEITER RECHTS === */
.timestamp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(80, 120, 200, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(80, 120, 200, 0.2);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
    gap: 30px;
    flex-wrap: wrap;
}
.time-info {
    white-space: nowrap;
    min-width: 0;
    color: #6a88cc;
}
.btc-15min-summary,
.eth-15min-summary {
    margin-left: auto;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(30, 30, 50, 0.7);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 8px currentColor;
    min-width: 130px;
    text-align: center;
}
.buy-15min { color: #4a9eff; }
.sell-15min { color: #ff4a6b; }

.table-wrapper {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(80, 120, 200, 0.15);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
}
.table-wrapper:hover {
    border-color: #6a88cc;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}
.table-wrapper table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.table-wrapper thead {
    background: rgba(20, 20, 35, 0.95);
    display: table;
    width: 100%;
    table-layout: fixed;
}
.table-wrapper thead th {
    padding: 0.8rem 0.6rem;
    text-align: right;
    font-weight: 600;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6a88cc;
    border-bottom: 2px solid rgba(80, 120, 200, 0.2);
}
.table-wrapper thead th:first-child {
    text-align: left;
}
.table-wrapper thead th:nth-child(1) { width: 20%; }
.table-wrapper thead th:nth-child(2) { width: 9%; }
.table-wrapper thead th:nth-child(3) { width: 11%; }
.table-wrapper thead th:nth-child(4) { width: 15%; }
.table-wrapper thead th:nth-child(5) { width: 17%; }
.table-wrapper thead th:nth-child(6) { width: 17%; }
.table-body-wrapper {
    display: block;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.table-body-wrapper::-webkit-scrollbar {
    width: 10px;
}
.table-body-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    margin: 4px 0;
}
.table-body-wrapper::-webkit-scrollbar-thumb {
    background: #6a88cc;
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}
.table-body-wrapper::-webkit-scrollbar-thumb:hover {
    background: #5577bb;
}
.table-body-wrapper table {
    display: table;
    width: 100%;
}
.table-body-wrapper tbody tr {
    display: table-row;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}
.table-body-wrapper tbody tr:hover {
    background: rgba(80, 120, 200, 0.08);
}
.table-body-wrapper tbody td {
    display: table-cell;
    padding: 0.7rem 0.6rem;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table-body-wrapper tbody td:first-child {
    text-align: left;
}
.buy { color: #6a88cc; font-weight: 700; }
.sell { color: #ff6b8b; font-weight: 700; }

.server-status {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 500px;
    background: rgba(15, 15, 25, 0.9);
    border: 1px solid rgba(80, 120, 200, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.server-status.green {
    color: #6a88cc;
    border-color: #6a88cc;
    box-shadow: 0 4px 16px rgba(106, 136, 204, 0.2);
}
.server-status.red {
    color: #ff6b8b;
    border-color: #ff6b8b;
    box-shadow: 0 4px 16px rgba(255, 107, 139, 0.2);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .tables-container { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
    .timestamp {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .btc-15min-summary,
    .eth-15min-summary {
        margin-left: 0;
        align-self: flex-end;
    }
}
@media (max-width: 768px) {
    body { font-size: 0.8rem; }
    .navbar { padding: 0.8rem 1rem; margin-bottom: 1.5rem; }
    .navbar .brand img.brand-logo { height: 40px; }
    .navbar .brand span { font-size: 1.2rem; }
    .crypto-logos { gap: 1rem; }
    .crypto-logo img { width: 36px; height: 36px; padding: 4px; }
    .stats-container { height: 250px; margin: 0 1rem 2rem; padding: 0 1rem; border-radius: 14px; }
    .container { padding: 0 1rem; margin-bottom: 2rem; }
    .table-section h2 { font-size: 1.1rem; }
    .timestamp { font-size: 0.7rem; padding: 0.4rem 0.8rem; }
    .table-wrapper { border-radius: 14px; }
    .table-wrapper:hover { transform: none; }
    .table-wrapper table { font-size: 0.7rem; }
    .table-wrapper thead th { padding: 0.6rem 0.4rem; font-size: 0.65rem; }
    .table-body-wrapper { max-height: 400px; }
    .table-body-wrapper tbody td { padding: 0.6rem 0.4rem; }
    .server-status { font-size: 0.85rem; padding: 0.8rem 1.2rem; margin: 1.5rem 1rem; }
}

/* === LIVE & AKTIV DROPDOWN PANEL === */
.live-status-container { margin: 2rem auto; max-width: 1600px; padding: 0 2rem; text-align: center; }
.server-status.clickable { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; background: linear-gradient(135deg, #00ff88, #00cc66); color: #000; font-weight: 700; font-size: 1rem; border-radius: 16px; box-shadow: 0 6px 20px rgba(0, 255, 136, 0.3); transition: all 0.3s ease; user-select: none; backdrop-filter: blur(8px); border: 1px solid rgba(0, 255, 136, 0.4); }
.server-status.clickable:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 255, 136, 0.4); background: linear-gradient(135deg, #00ff99, #00dd77); }
.server-status.clickable .arrow { font-size: 1.1rem; transition: transform 0.3s ease; }
.server-status.clickable .arrow.open { transform: rotate(180deg); }
.server-status.clickable.active { background: linear-gradient(135deg, #00cc66, #00ff88); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 255, 136, 0.5); }

.live-orders-panel { margin-top: 1.5rem; background: rgba(15, 15, 25, 0.95); border: 1px solid rgba(80, 120, 200, 0.2); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); max-height: 600px; transition: max-height 0.4s ease, opacity 0.3s ease; animation: slideDown 0.4s ease-out; }
.live-orders-panel.collapsed { max-height: 0; opacity: 0; overflow: hidden; animation: slideUp 0.4s ease-in; }
@keyframes slideDown { from { max-height: 0; opacity: 0; } to { max-height: 600px; opacity: 1; } }
@keyframes slideUp { from { max-height: 600px; opacity: 1; } to { max-height: 0; opacity: 0; } }

.panel-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: rgba(20, 20, 35, 0.8); border-bottom: 1px solid rgba(80, 120, 200, 0.2); }
.panel-header h3 { font-size: 1.1rem; font-weight: 700; color: #6a88cc; margin: 0; }
.close-btn { background: none; border: none; color: #ff6b8b; font-size: 1.4rem; cursor: pointer; padding: 4px 8px; border-radius: 8px; transition: all 0.2s ease; }
.close-btn:hover { background: rgba(255, 107, 139, 0.2); transform: scale(1.1); }

.grouped-orders-wrapper { max-height: 500px; overflow-y: auto; }
.grouped-orders-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.78rem; }
.grouped-orders-table thead { background: rgba(20, 20, 35, 0.95); position: sticky; top: 0; z-index: 10; }
.grouped-orders-table thead th { padding: 0.9rem 0.6rem; text-align: right; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.8px; color: #6a88cc; border-bottom: 2px solid rgba(80, 120, 200, 0.2); }
.grouped-orders-table thead th:first-child { text-align: left; }
.grouped-orders-table thead th:nth-child(6),
.grouped-orders-table tbody td:nth-child(6) {
    font-weight: 700;
    color: #00ff88;
    text-align: right;
}
.grouped-orders-table tbody tr { background: rgba(255, 255, 255, 0.02); transition: background 0.2s ease; }
.grouped-orders-table tbody tr:hover { background: rgba(80, 120, 200, 0.1); }
.grouped-orders-table tbody td { padding: 0.75rem 0.6rem; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, 0.06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grouped-orders-table tbody td:first-child { text-align: left; font-family: 'JetBrains Mono', monospace; color: #ffffff; }
.grouped-orders-table .buy { color: #4a9eff; font-weight: 700; }
.grouped-orders-table .sell { color: #ff4a6b; font-weight: 700; }
.no-orders { padding: 2rem; color: #888; font-style: italic; text-align: center; }