* {
    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);
}

.timestamp {
    text-align: left;
    color: #6a88cc;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(80, 120, 200, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid rgba(80, 120, 200, 0.2);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
}

.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-wrapper thead th:nth-child(7) { width: 11%; font-size: 0.7rem; }

.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 {
    display: table-row-group;
}

.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;
}

.table-body-wrapper tbody td:nth-child(1) { width: 20%; }
.table-body-wrapper tbody td:nth-child(2) { width: 9%; }
.table-body-wrapper tbody td:nth-child(3) { width: 11%; }
.table-body-wrapper tbody td:nth-child(4) { width: 15%; }
.table-body-wrapper tbody td:nth-child(5) { width: 17%; }
.table-body-wrapper tbody td:nth-child(6) { width: 17%; }
.table-body-wrapper tbody td:nth-child(7) {
    width: 11%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #6a88cc;
    word-break: break-all;
}

.buy {
    color: #6a88cc;
    font-weight: 700;
}

.sell {
    color: #ff6b8b;
    font-weight: 700;
}

.table-body-wrapper tbody:empty::before {
    content: "Warte auf Whale-Transaktionen...";
    display: block;
    text-align: center;
    color: #666;
    padding: 3rem 1rem;
    font-style: italic;
    font-size: 0.9rem;
}

.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);
}

/* MOBILE OPTIMIERUNG */
@media (max-width: 1100px) {
    .tables-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@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;
    }

    .stats-card {
        padding: 1rem;
    }

    .container {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .tables-container {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .table-section h2 {
        font-size: 1.1rem;
    }

    .table-section h2::before {
        width: 8px;
        height: 8px;
    }

    .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;
        letter-spacing: 0.5px;
    }

    .table-body-wrapper {
        max-height: 400px;
    }

    .table-body-wrapper tbody td {
        padding: 0.6rem 0.4rem;
    }

    .table-body-wrapper tbody td:nth-child(7) {
        font-size: 0.65rem;
    }

    .server-status {
        font-size: 0.85rem;
        padding: 0.8rem 1.2rem;
        margin: 1.5rem 1rem;
    }

    /* Verbesserte Touch-Targets */
    .table-body-wrapper tbody tr {
        min-height: 44px;
    }

    /* Horizontales Scrollen für Tabelle falls nötig */
    .table-wrapper {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .navbar .brand span {
        font-size: 1rem;
    }

    .crypto-logos {
        gap: 0.8rem;
    }

    .crypto-logo img {
        width: 32px;
        height: 32px;
    }

    .table-wrapper table {
        font-size: 0.65rem;
    }

    .table-wrapper thead th {
        padding: 0.5rem 0.3rem;
        font-size: 0.6rem;
    }

    .table-body-wrapper tbody td {
        padding: 0.5rem 0.3rem;
    }
}
