body { background-color: #121212; color: #fff; font-family: sans-serif; text-align: center; margin: 0; }
.grid-container { display: flex; justify-content: center; gap: 20px; padding: 50px; flex-wrap: wrap; }

.search-container {
    margin: 0 auto 20px auto;
    width: 80%;
    max-width: 400px;
}

#search-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #333;
    background: #1e1e1e;
    color: white;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

#search-input:focus { border-color: #ff9900; }

.crosshair-card { 
    background: #1e1e1e; padding: 20px; border-radius: 10px; width: 220px;
    display: flex; flex-direction: column; align-items: center; border: 2px solid #333;
    position: relative;
}

/* === СТИЛЬ ДЛЯ ВРЕМЕНИ ОБНОВЛЕНИЯ === */
.updated-at {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
    margin-bottom: -10px;
    font-style: italic;
    z-index: 2;
}

.pin-btn {
    position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 24px;
    cursor: pointer; color: #444; display: none; transition: color 0.2s; padding: 0;
}

.pin-btn:hover { color: #888; }
.pin-btn.active { color: #ffd700; }
.pin-btn.active:hover { color: #ffea00; }

.crosshair-preview-container {
    width: 120px; height: 120px; background: #2a2a2a; border-radius: 5px;
    display: flex; justify-content: center; align-items: center; margin-bottom: 20px; overflow: hidden;
}

.crosshair-preview {
    width: 64px; height: 64px; transform: scaleX(1.33333333333); image-rendering: pixelated; 
}

.login-btn { position: absolute; top: 20px; left: 20px; background: #333; color: white; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; }

.lang-selector { position: absolute; top: 20px; right: 20px; z-index: 100; }
.lang-btn { background: #333; border: none; border-radius: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; height: 50px; width: 50px; box-sizing: border-box; transition: background 0.2s; }
.lang-btn:hover { background: #444; }
.lang-btn img { width: 24px; border-radius: 2px; }
.lang-menu { display: none; position: absolute; top: 55px; right: 0; background: #1e1e1e; border: 2px solid #333; border-radius: 8px; overflow: hidden; flex-direction: column; min-width: 130px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.lang-menu.show { display: flex; }
.lang-option { padding: 12px 15px; display: flex; align-items: center; gap: 12px; cursor: pointer; color: white; font-weight: bold; transition: background 0.2s; }
.lang-option:hover { background: #333; }
.lang-option img { width: 20px; border-radius: 2px; }

.add-btn { position: absolute; top: 20px; right: 90px; width: 50px; height: 50px; font-size: 30px; background: #ff9900; color: #000; border: none; border-radius: 50%; cursor: pointer; font-weight: bold; }
.modal { display: none; position: fixed; z-index: 10; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); }
.modal-content { background: #1e1e1e; margin: 10% auto; padding: 20px; border: 2px solid #333; border-radius: 10px; width: 300px; text-align: center; position: relative; }
.close { color: #aaa; position: absolute; top: 5px; right: 15px; font-size: 28px; font-weight: bold; cursor: pointer; }
input { width: 90%; padding: 10px; margin: 10px 0; border-radius: 5px; border: 1px solid #555; background: #333; color: white; }
.copy-btn { background: #ff9900; color: #000; border: none; padding: 10px 15px; margin: 5px; border-radius: 5px; cursor: pointer; font-weight: bold; }

#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #2a2a2a; color: #fff; padding: 15px 20px; border-radius: 8px; border: 1px solid #444; position: relative; overflow: hidden; animation: slideIn 0.3s ease forwards; min-width: 250px; text-align: left; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.fade-out { animation: fadeOut 0.3s ease forwards; }
@keyframes fadeOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 4px; background: #ff9900; width: 100%; animation: progress 3s linear forwards; }
@keyframes progress { from { width: 100%; } to { width: 0%; } }