/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #22d3ee;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-lighter: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --sidebar-width: 260px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark);
    color: var(--white);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--dark-light);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.875rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-light);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 32px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.header-left p {
    color: var(--gray);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-email {
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* Dongles Container */
.dongles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 24px;
}

/* Buy Dongle Card */
.buy-dongle-card {
    background: var(--dark-light);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    transition: all 0.3s;
}

.buy-dongle-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.buy-dongle-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.buy-dongle-icon svg {
    width: 32px;
    height: 32px;
}

.buy-dongle-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.buy-dongle-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 280px;
}

.buy-dongle-card .btn {
    gap: 8px;
}

.buy-dongle-card .btn svg {
    width: 18px;
    height: 18px;
}

/* Dongle Card */
.dongle-card {
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dongle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dongle-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray);
}

.dongle-status.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.dongle-status.offline {
    background: var(--danger);
}

.dongle-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.dongle-ip {
    font-size: 0.85rem;
    color: var(--gray);
    font-family: monospace;
}

.dongle-actions {
    display: flex;
    gap: 8px;
}

.dongle-meta {
    display: flex;
    gap: 32px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-weight: 600;
    color: var(--white);
}

/* Traffic Stats */
.traffic-stats {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.traffic-summary {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}

.traffic-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.traffic-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.traffic-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.traffic-value small {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-light);
}

/* Traffic Chart */
.traffic-chart {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    padding: 16px;
}

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

.chart-title {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    gap: 8px;
    padding-bottom: 24px;
    position: relative;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}

.chart-bar::before {
    content: '';
    width: 100%;
    max-width: 32px;
    height: var(--bar-height, 0%);
    min-height: 4px;
    background: var(--gradient);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.bar-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    position: absolute;
    bottom: -20px;
}

.chart-bar.today::before {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}

.chart-bar:hover::before {
    opacity: 0.8;
}

.chart-bar.today .bar-label {
    color: var(--accent);
    font-weight: 600;
}

/* Chart Tooltip */
.chart-tooltip {
    position: fixed;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%);
    transition: opacity 0.15s ease;
    z-index: 100;
    white-space: nowrap;
}

.chart-tooltip.visible {
    opacity: 1;
}

.chart-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--dark);
}

/* Tabs */
.dongle-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    background: none;
    border: none;
    color: var(--gray-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    padding: 20px 24px;
}

.tab-content.active {
    display: block;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--gray-light);
    border: 1px solid var(--dark-lighter);
}

.btn-outline:hover {
    border-color: var(--gray);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--gray-light);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.btn-icon.rotate-ip:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-color: var(--primary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-light);
    cursor: pointer;
    font-size: inherit;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary);
}

/* Peers List */
.peers-list, .proxies-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.peer-item, .proxy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.peer-info, .proxy-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.peer-name {
    font-weight: 500;
}

.peer-ip {
    font-size: 0.85rem;
    color: var(--gray);
    font-family: monospace;
}

.peer-actions, .proxy-actions {
    display: flex;
    gap: 6px;
}

.peer-actions .btn-icon, .proxy-actions .btn-icon {
    width: 32px;
    height: 32px;
}

.peer-actions .btn-icon svg, .proxy-actions .btn-icon svg {
    width: 16px;
    height: 16px;
}

.peer-actions .delete-peer:hover,
.proxy-actions .delete-proxy:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

/* Proxy Item */
.proxy-address {
    display: flex;
    align-items: center;
    gap: 8px;
}

.proxy-address code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9rem;
    color: var(--white);
}

.btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.2s;
}

.btn-copy:hover {
    color: var(--primary-light);
}

.btn-copy svg {
    width: 14px;
    height: 14px;
}

.proxy-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.auth-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.auth-badge.auth-userpass {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

.auth-badge.auth-ip {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.auth-value {
    color: var(--gray);
    font-family: monospace;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 32px;
    color: var(--gray);
    font-size: 0.9rem;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    position: relative;
    animation: modalSlide 0.3s ease;
}

.modal-content.modal-sm {
    max-width: 360px;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--white);
}

.modal-content h2 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

/* Modal Location Select (Admin) */
.modal-location-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.select-group:last-child {
    margin-bottom: 0;
}

.select-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-select {
    position: relative;
}

.custom-select select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    background: var(--dark);
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s;
}

.custom-select select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.custom-select select:focus {
    outline: none;
    border-color: var(--primary);
}

.custom-select select option {
    background: var(--dark);
    color: var(--white);
    padding: 12px;
}

.custom-select select option:disabled {
    color: var(--gray);
}

.custom-select::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--gray-light);
    pointer-events: none;
}

/* Quantity Controls in Modal */
.quantity-controls-modal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-controls-modal .qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-controls-modal .qty-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.quantity-controls-modal .qty-input {
    width: 80px;
    padding: 10px 16px;
    background: var(--dark);
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1rem;
    text-align: center;
    font-family: inherit;
}

.quantity-controls-modal .qty-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Order Summary in Modal */
.modal-order-summary {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0;
}

.order-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: var(--gray-light);
}

.order-line span:last-child {
    color: var(--white);
    font-weight: 500;
}

.order-line.total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.1rem;
}

.order-line.total span:last-child {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-btn svg {
    width: 22px;
    height: 22px;
}

.payment-btn.stripe {
    background: #635bff;
    color: white;
}

.payment-btn.stripe:hover {
    background: #5147e5;
}

.payment-btn.paypal {
    background: #ffc439;
    color: #003087;
}

.payment-btn.paypal:hover {
    background: #f0b62d;
}

.payment-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .modal-location-select {
        grid-template-columns: 1fr;
    }
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-light);
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark);
    border: 1px solid var(--dark-lighter);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: var(--gray);
}

.password-field {
    display: flex;
    gap: 8px;
}

.password-field input {
    flex: 1;
}

.password-field .btn-icon {
    flex-shrink: 0;
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.5;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Auth Toggle */
.auth-toggle {
    display: flex;
    background: var(--dark);
    border-radius: var(--radius);
    padding: 4px;
}

.auth-option {
    flex: 1;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.auth-option:hover {
    color: var(--white);
}

.auth-option.active {
    background: var(--dark-lighter);
    color: var(--white);
}

.auth-fields {
    margin-top: 20px;
}

/* QR Code */
.qr-container {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-demo {
    width: 160px;
    height: 160px;
    color: var(--dark);
}

.qr-hint {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 16px 24px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.toast-success {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, var(--dark-light) 100%);
}

.toast.toast-error {
    border-color: var(--danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, var(--dark-light) 100%);
}

.toast.toast-info {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, var(--dark-light) 100%);
}

.toast-message {
    font-size: 0.9rem;
}

/* Rotating Animation for IP Rotation Button */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.btn-icon.rotating svg {
    animation: spin 1s linear infinite;
}

.btn-icon.rotating {
    pointer-events: none;
    opacity: 0.7;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .dongles-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .dongle-meta {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .traffic-summary {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .traffic-item {
        min-width: 80px;
    }
    
    .peer-item, .proxy-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .peer-actions, .proxy-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
