/* ========================================
   Bybit P2P Scanner - ULTRA DARK Premium
   Deep Black Theme with Neon Accents
   ======================================== */

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

:root {
    --bg-primary: #000000;
    --bg-secondary: #050508;
    --bg-tertiary: #080810;
    --glass-bg: rgba(8, 8, 15, 0.85);
    --glass-border: rgba(255, 255, 255, 0.04);
    --glass-shadow: rgba(0, 0, 0, 0.9);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent-green: #00ff88;
    --accent-green-glow: rgba(0, 255, 136, 0.5);
    --accent-yellow: #ffcc00;
    --accent-yellow-glow: rgba(255, 204, 0, 0.5);
    --accent-red: #ff3355;
    --accent-red-glow: rgba(255, 51, 85, 0.5);
    --accent-cyan: #00e5ff;
    --accent-cyan-glow: rgba(0, 229, 255, 0.5);
    --accent-gold: #ffd700;
    --gradient-dark-1: #0a0a12;
    --gradient-dark-2: #0f0f1a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== SNOWFALL TEXT Animation ========== */
.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snow-text {
    position: absolute;
    top: -50px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    text-shadow: 
        0 0 10px rgba(0, 229, 255, 0.3),
        0 0 20px rgba(0, 229, 255, 0.2);
    animation: snowfall linear infinite;
    user-select: none;
}

.snow-text.rally {
    font-size: 14px;
    color: rgba(0, 255, 136, 0.2);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.snow-text.sila {
    font-size: 16px;
    font-weight: 800;
    color: rgba(255, 204, 0, 0.25);
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

@keyframes snowfall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ========== Deep Dark Background ========== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #000000;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 15% 15%, rgba(0, 229, 255, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 85%, rgba(0, 255, 136, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 204, 0, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, #000000 0%, #050508 50%, #080810 100%);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: float 30s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3), transparent 70%);
    top: -300px;
    left: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.25), transparent 70%);
    bottom: -200px;
    right: -150px;
    animation-delay: -10s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.2), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -20s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, 40px) scale(1.05); }
    50% { transform: translate(0, 80px) scale(0.95); }
    75% { transform: translate(-40px, 40px) scale(1.02); }
}

/* ========== Premium Glass Cards ========== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px var(--glass-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

/* ========== Snow Toggle ========== */
.snow-toggle-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.snow-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.snow-toggle input {
    display: none;
}

.toggle-slider {
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.snow-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    border-color: transparent;
}

.snow-toggle input:checked + .toggle-slider::before {
    transform: translateX(23px);
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ========== Logo Badge ========== */
.logo-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: #000;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(247, 147, 26, 0.4);
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

/* ========== Header ========== */
.header {
    padding: 48px;
    margin-bottom: 32px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(0, 0, 0, 0.5) 100%);
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 14px;
}

.logo .material-icons-round {
    font-size: 60px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--accent-cyan-glow));
}

.logo h1 {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 400;
}

/* ========== Search Panel ========== */
.search-panel {
    padding: 36px;
    margin-bottom: 32px;
    border: 1px solid rgba(0, 229, 255, 0.08);
}

.search-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    margin-bottom: 32px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group label .material-icons-round {
    font-size: 22px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 8px var(--accent-cyan-glow));
}

.input-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2300e5ff' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 28px;
}

.input-group select:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.2);
}

.input-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.15), 0 0 30px rgba(0, 229, 255, 0.1);
}

.input-group select option {
    background: #0a0a12;
    color: var(--text-primary);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 800;
    color: #000;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    border: none;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 40px rgba(0, 229, 255, 0.4),
        0 0 60px rgba(0, 229, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 16px 60px rgba(0, 229, 255, 0.5),
        0 0 80px rgba(0, 229, 255, 0.3);
}

.search-btn:active {
    transform: translateY(-2px);
}

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.search-btn .material-icons-round {
    font-size: 26px;
}

.spinning {
    animation: spin 0.8s linear infinite;
}

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

/* ========== Stats Panel ========== */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin-bottom: 36px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.05);
}

.stat-card .material-icons-round {
    font-size: 40px;
}

.stat-green { 
    border-left: 5px solid var(--accent-green);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), transparent);
}
.stat-green .material-icons-round { 
    color: var(--accent-green); 
    filter: drop-shadow(0 0 20px var(--accent-green-glow));
}

.stat-yellow { 
    border-left: 5px solid var(--accent-yellow);
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.08), transparent);
}
.stat-yellow .material-icons-round { 
    color: var(--accent-yellow); 
    filter: drop-shadow(0 0 20px var(--accent-yellow-glow));
}

.stat-red { 
    border-left: 5px solid var(--accent-red);
    background: linear-gradient(135deg, rgba(255, 51, 85, 0.08), transparent);
}
.stat-red .material-icons-round { 
    color: var(--accent-red); 
    filter: drop-shadow(0 0 20px var(--accent-red-glow));
}

.stat-total { 
    border-left: 5px solid var(--accent-cyan);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent);
}
.stat-total .material-icons-round { 
    color: var(--accent-cyan); 
    filter: drop-shadow(0 0 20px var(--accent-cyan-glow));
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ========== Loading ========== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px;
    gap: 28px;
}

.loading-spinner {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    box-shadow: 0 0 30px var(--accent-cyan-glow);
}

.loading p {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 600;
}

/* ========== Results ========== */
.results {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ========== PREMIUM Trader Card ========== */
.trader-card {
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.trader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    border-radius: 6px 0 0 6px;
}

.status-green::before { 
    background: linear-gradient(180deg, var(--accent-green), #00cc6a);
    box-shadow: 0 0 30px var(--accent-green-glow);
}
.status-yellow::before { 
    background: linear-gradient(180deg, var(--accent-yellow), #cc9900);
    box-shadow: 0 0 30px var(--accent-yellow-glow);
}
.status-red::before { 
    background: linear-gradient(180deg, var(--accent-red), #cc2244);
    box-shadow: 0 0 30px var(--accent-red-glow);
}

.trader-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 30px 80px var(--glass-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    border-color: rgba(255, 255, 255, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.card-number {
    font-size: 14px;
    font-weight: 900;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 10px 16px;
    border-radius: 12px;
}

.trader-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.trader-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
}

.trader-name .material-icons-round {
    font-size: 28px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 12px var(--accent-cyan-glow));
}

.online-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 136, 0.25);
}

.online-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px var(--accent-green);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 20px var(--accent-green); }
    50% { opacity: 0.5; transform: scale(0.85); box-shadow: 0 0 10px var(--accent-green); }
}

.offline-badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 16px;
    border-radius: 30px;
}

.status-badge {
    font-size: 15px;
    font-weight: 800;
    padding: 12px 22px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.green {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 200, 100, 0.1));
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

.status-badge.yellow {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.15), rgba(200, 150, 0, 0.1));
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 204, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.2);
}

.status-badge.red {
    background: linear-gradient(135deg, rgba(255, 51, 85, 0.15), rgba(200, 40, 70, 0.1));
    color: var(--accent-red);
    border: 1px solid rgba(255, 51, 85, 0.3);
    box-shadow: 0 0 30px rgba(255, 51, 85, 0.2);
}

/* ========== Price Section ========== */
.price-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .price-section { grid-template-columns: 1fr; }
}

.price-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 28px;
}

.price-card.buy {
    border-left: 5px solid var(--accent-green);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.04), transparent);
}

.price-card.sell {
    border-left: 5px solid var(--accent-red);
    background: linear-gradient(135deg, rgba(255, 51, 85, 0.04), transparent);
}

.price-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-label .material-icons-round { font-size: 22px; }
.buy .price-label .material-icons-round { color: var(--accent-green); }
.sell .price-label .material-icons-round { color: var(--accent-red); }

.price-value {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-limits {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.price-limits .material-icons-round { font-size: 20px; }

.payments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 12px;
    color: var(--accent-cyan);
}

/* ========== Order Remarks (Description) ========== */
.order-remarks {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
}

.order-remarks .material-icons-round {
    font-size: 18px;
    color: var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 2px;
}

.spread-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px;
}

.spread-indicator .material-icons-round {
    font-size: 40px;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.spread-value {
    font-size: 24px;
    font-weight: 900;
}

.spread-percent {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
    padding: 8px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* ========== Stats Row ========== */
.stats-row {
    display: flex;
    gap: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-item .material-icons-round {
    font-size: 24px;
    color: var(--accent-cyan);
}

/* ========== Bybit Link Button ========== */
.bybit-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: #000;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(247, 147, 26, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bybit-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(247, 147, 26, 0.5);
}

.bybit-link .material-icons-round { font-size: 22px; }

/* Order Links - Two buttons */
.buy-order-link {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    margin-bottom: 12px;
}

.buy-order-link:hover {
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.5);
}

.sell-order-link {
    background: linear-gradient(135deg, #ff3355, #cc2244);
}

.sell-order-link:hover {
    box-shadow: 0 12px 40px rgba(255, 51, 85, 0.5);
}

/* ========== Empty State ========== */
.empty-state, .no-results, .error-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    text-align: center;
}

.empty-state .material-icons-round,
.no-results .material-icons-round,
.error-card .material-icons-round {
    font-size: 120px;
    margin-bottom: 28px;
    opacity: 0.2;
}

.empty-state h3, .no-results h3, .error-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 14px;
}

.empty-state p, .no-results p, .error-card p {
    color: var(--text-muted);
    max-width: 450px;
    font-size: 17px;
}

.error-card .material-icons-round { color: var(--accent-red); opacity: 0.4; }

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.01); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ========== Responsive - Full Mobile Support ========== */

/* Tablet landscape */
@media (max-width: 1024px) {
    .container { padding: 30px 20px; }
    .header { padding: 36px 24px; }
    .search-panel { padding: 28px 20px; }
    .trader-card { padding: 24px; }
    .price-card { padding: 20px; }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .container { padding: 20px 16px; }
    
    .header { padding: 28px 16px; border-radius: 18px; }
    .logo { flex-wrap: wrap; gap: 12px; }
    .logo h1 { font-size: 32px; }
    .logo .material-icons-round { font-size: 48px; }
    .logo-badge { font-size: 10px; padding: 5px 10px; }
    .subtitle { font-size: 14px; }
    
    .search-panel { padding: 20px 16px; border-radius: 18px; }
    .search-inputs { gap: 16px; margin-bottom: 20px; }
    .input-group select { padding: 14px 18px; font-size: 15px; border-radius: 12px; }
    .search-btn { padding: 16px 24px; font-size: 15px; border-radius: 14px; }
    .search-btn .material-icons-round { font-size: 22px; }
    
    .stats-panel { gap: 12px; }
    .stat-card { padding: 16px; gap: 12px; border-radius: 16px; }
    .stat-card .material-icons-round { font-size: 28px; }
    .stat-value { font-size: 24px; }
    .stat-label { font-size: 9px; }
    
    .price-section { 
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .spread-indicator { 
        flex-direction: row; 
        justify-content: center;
        padding: 16px;
        gap: 16px;
    }
    .spread-indicator .material-icons-round { font-size: 28px; }
    .spread-value { font-size: 18px; }
    .spread-percent { font-size: 14px; padding: 6px 12px; }
    
    .trader-card { padding: 20px 16px; border-radius: 18px; }
    .card-header { gap: 12px; margin-bottom: 20px; }
    .card-number { padding: 8px 12px; font-size: 12px; }
    .trader-name { font-size: 18px; gap: 8px; }
    .trader-name .material-icons-round { font-size: 22px; }
    .status-badge { padding: 8px 14px; font-size: 12px; }
    
    .price-card { padding: 16px; border-radius: 14px; }
    .price-value { font-size: 28px; }
    .price-label { font-size: 11px; }
    .price-limits { font-size: 12px; }
    .payment-tag { font-size: 10px; padding: 6px 10px; }
    
    .stats-row { gap: 20px; flex-wrap: wrap; }
    .stat-item { font-size: 14px; }
    .stat-item .material-icons-round { font-size: 20px; }
    
    .bybit-link { padding: 14px 20px; font-size: 14px; border-radius: 12px; }
    .bybit-link .material-icons-round { font-size: 18px; }
    
    .empty-state, .no-results, .error-card { padding: 60px 20px; }
    .empty-state .material-icons-round,
    .no-results .material-icons-round,
    .error-card .material-icons-round { font-size: 80px; }
    .empty-state h3, .no-results h3, .error-card h3 { font-size: 22px; }
    .empty-state p, .no-results p, .error-card p { font-size: 14px; }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container { padding: 12px 10px; }
    
    .snow-toggle-container { margin-bottom: 10px; }
    .toggle-slider { width: 44px; height: 24px; }
    .toggle-slider::before { width: 18px; height: 18px; }
    .snow-toggle input:checked + .toggle-slider::before { transform: translateX(19px); }
    .toggle-label { font-size: 12px; }
    
    .header { padding: 20px 14px; border-radius: 16px; margin-bottom: 16px; }
    .logo { gap: 10px; }
    .logo h1 { font-size: 24px; }
    .logo .material-icons-round { font-size: 36px; }
    .logo-badge { font-size: 9px; padding: 4px 8px; }
    .subtitle { font-size: 12px; margin-top: 8px; }
    
    .search-panel { padding: 16px 12px; border-radius: 16px; margin-bottom: 16px; }
    .search-inputs { gap: 12px; margin-bottom: 16px; }
    .input-group { gap: 8px; }
    .input-group label { font-size: 11px; gap: 6px; }
    .input-group label .material-icons-round { font-size: 18px; }
    .input-group select { 
        padding: 12px 14px; 
        font-size: 14px; 
        border-radius: 10px;
        background-size: 22px;
        background-position: right 12px center;
    }
    .search-btn { 
        padding: 14px 20px; 
        font-size: 14px; 
        border-radius: 12px;
        gap: 10px;
    }
    .search-btn .material-icons-round { font-size: 20px; }
    
    .stats-panel { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px;
        margin-bottom: 16px;
    }
    .stat-card { 
        padding: 12px; 
        gap: 8px; 
        border-radius: 12px;
        flex-direction: column;
        text-align: center;
    }
    .stat-card .material-icons-round { font-size: 24px; }
    .stat-value { font-size: 20px; }
    .stat-label { font-size: 8px; }
    
    .results { gap: 16px; }
    
    .trader-card { 
        padding: 16px 12px; 
        border-radius: 14px;
    }
    .trader-card::before { width: 4px; }
    .trader-card:hover { transform: none; }
    
    .card-header { 
        flex-direction: column; 
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
    }
    .card-number { padding: 6px 10px; font-size: 11px; border-radius: 8px; }
    .trader-info { 
        flex-direction: column; 
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    .trader-name { font-size: 16px; gap: 6px; }
    .trader-name .material-icons-round { font-size: 20px; }
    .online-badge, .offline-badge { 
        font-size: 11px; 
        padding: 6px 12px;
    }
    .online-dot { width: 8px; height: 8px; }
    .status-badge { 
        padding: 8px 12px; 
        font-size: 11px;
        border-radius: 10px;
        width: 100%;
        text-align: center;
    }
    
    .price-section { gap: 12px; margin-bottom: 16px; }
    .price-card { 
        padding: 14px 12px; 
        border-radius: 12px;
        border-left-width: 4px;
    }
    .price-label { 
        font-size: 10px; 
        gap: 6px;
        margin-bottom: 8px;
    }
    .price-label .material-icons-round { font-size: 18px; }
    .price-value { font-size: 24px; margin-bottom: 10px; }
    .price-limits { 
        font-size: 11px; 
        gap: 6px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }
    .price-limits .material-icons-round { font-size: 16px; }
    .payments { gap: 6px; }
    .payment-tag { 
        font-size: 9px; 
        padding: 5px 8px;
        border-radius: 8px;
    }
    
    .spread-indicator { 
        flex-direction: row; 
        justify-content: center;
        padding: 12px;
        gap: 12px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
    }
    .spread-indicator .material-icons-round { font-size: 24px; }
    .spread-value { font-size: 16px; }
    .spread-percent { font-size: 12px; padding: 5px 10px; border-radius: 8px; }
    
    .stats-row { 
        flex-direction: column; 
        gap: 10px;
        padding-top: 16px;
        margin-bottom: 16px;
    }
    .stat-item { font-size: 13px; gap: 8px; }
    .stat-item .material-icons-round { font-size: 18px; }
    
    .bybit-link { 
        padding: 12px 16px; 
        font-size: 13px; 
        border-radius: 10px;
        gap: 8px;
    }
    .bybit-link .material-icons-round { font-size: 16px; }
    
    .loading { padding: 60px 20px; gap: 20px; }
    .loading-spinner { width: 48px; height: 48px; border-width: 4px; }
    .loading p { font-size: 14px; }
    
    .empty-state, .no-results, .error-card { padding: 40px 16px; }
    .empty-state .material-icons-round,
    .no-results .material-icons-round,
    .error-card .material-icons-round { font-size: 60px; margin-bottom: 16px; }
    .empty-state h3, .no-results h3, .error-card h3 { font-size: 18px; margin-bottom: 10px; }
    .empty-state p, .no-results p, .error-card p { font-size: 13px; }
    
    .glass-card { border-radius: 14px; }
}

/* Very small phones */
@media (max-width: 360px) {
    .container { padding: 10px 8px; }
    .header { padding: 16px 12px; }
    .logo h1 { font-size: 20px; }
    .logo .material-icons-round { font-size: 30px; }
    .subtitle { font-size: 11px; }
    
    .search-panel { padding: 14px 10px; }
    .input-group select { padding: 10px 12px; font-size: 13px; }
    .search-btn { padding: 12px 16px; font-size: 13px; }
    
    .stats-panel { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .stat-card { padding: 10px 8px; }
    .stat-value { font-size: 18px; }
    
    .trader-card { padding: 14px 10px; }
    .trader-name { font-size: 14px; }
    .price-value { font-size: 20px; }
    .status-badge { font-size: 10px; padding: 6px 10px; }
}
