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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    color: #fff;
}

/* Login */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-box {
    background: rgba(255,255,255,0.03);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-icon { font-size: 4rem; margin-bottom: 20px; }
.login-box h1 { font-size: 2rem; margin-bottom: 10px; color: #ff6b6b; }
.login-box p { color: #8892b0; margin-bottom: 20px; }
.login-box input {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
}
.login-box input:focus { outline: none; border-color: #ff6b6b; }
.login-box .error { color: #ff6b6b; margin-top: 10px; }

/* Main */
.main-content { max-width: 1400px; margin: 0 auto; padding: 20px; }

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 30px;
}

.logo { display: flex; align-items: center; gap: 15px; }
.logo .icon { font-size: 2rem; }
.logo h1 { font-size: 1.5rem; color: #ff6b6b; }

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.online { background: #4ade80; animation: pulse 2s infinite; }
.status-dot.offline { background: #ef4444; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon { font-size: 2rem; }
.stat-number { font-size: 1.8rem; font-weight: bold; }
.stat-label { font-size: 0.8rem; color: #8892b0; }

/* Cards */
.card {
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 20px;
}

.card h2 { font-size: 1.1rem; margin-bottom: 15px; }

/* Action Section */
.action-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.input-group input:focus { outline: none; border-color: #ff6b6b; }

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn:hover { transform: scale(1.02); }

.btn-primary { background: linear-gradient(45deg, #ff6b6b, #ee5a24); color: #fff; }
.btn-danger { background: linear-gradient(45deg, #ef4444, #dc2626); color: #fff; }
.btn-success { background: linear-gradient(45deg, #22c55e, #16a34a); color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.1); }

/* User Result */
.user-result.hidden { display: none; }
.user-result {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-phone { font-weight: bold; font-size: 1.1rem; }
.user-status { font-size: 0.8rem; }
.user-details-text { font-size: 0.7rem; color: #8892b0; }

.user-actions { display: flex; gap: 10px; }

/* Reviews List */
.reviews-list {
    max-height: 300px;
    overflow-y: auto;
}

.review-item {
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #f59e0b;
}

.review-item .review-phone { font-weight: bold; }
.review-item .review-date { font-size: 0.7rem; color: #8892b0; }
.review-actions { margin-top: 8px; display: flex; gap: 8px; }
.review-actions .btn { padding: 5px 12px; font-size: 0.8rem; }

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    color: #8892b0;
    cursor: pointer;
    transition: all 0.3s;
}
.tab.active { background: rgba(255,107,107,0.1); color: #ff6b6b; border-color: #ff6b6b; }
.tab:hover { background: rgba(255,255,255,0.05); }

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

/* Table */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left;
    padding: 12px 15px;
    color: #8892b0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.empty-state { text-align: center; color: #8892b0; padding: 30px 0; }

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 25px;
    border: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    transition: all 0.3s;
}
.toast.hidden { transform: translateX(100%); opacity: 0; }
.toast-content { display: flex; align-items: center; gap: 10px; }

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .action-section { grid-template-columns: 1fr; }
    .login-box { padding: 30px; margin: 20px; }
    header { flex-direction: column; text-align: center; gap: 10px; }
    .input-group { flex-direction: column; }
}