* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
}

body {
    background: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    position: relative;
    overflow-x: hidden;
    touch-action: manipulation;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: #111;
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(120vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.2;
    }
    95% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.container {
    width: 100%;
    max-width: 95%;
    background: #fff;
    border-radius: 24px;
    padding: 25px;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    margin: 10px;
}

@media (min-width: 768px) {
    .container {
        max-width: 450px;
        padding: 35px;
    }
}

.logo {
    font-size: 32px;
    font-weight: 900;
    color: #111;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.5px;
}

.logo::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #111;
    margin: 12px auto 20px;
    border-radius: 2px;
}

.subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 400;
}

.message {
    padding: 18px;
    border-radius: 16px;
    margin: 20px 0;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
    border: 1px solid;
    font-size: 15px;
    line-height: 1.6;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.error {
    background: rgba(0,0,0,0.03);
    border-color: #111;
    color: #111;
}

.message.success {
    background: rgba(0,0,0,0.03);
    border-color: #111;
    color: #111;
}

.message.warning {
    background: rgba(255,152,0,0.05);
    border-color: #ff9800;
    color: #f57c00;
}

.message.info {
    background: rgba(33,150,243,0.05);
    border-color: #2196f3;
    color: #1976d2;
}

.user-info {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    color: #111;
    font-size: 15px;
    font-weight: 600;
    direction: ltr;
    text-align: left;
    word-break: break-all;
    max-width: 60%;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    text-align: right;
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    font-size: 16px;
    transition: all 0.2s ease;
    outline: none;
    color: #111;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: #111;
    background: #fff;
}

.btn {
    width: 100%;
    padding: 18px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    user-select: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn:disabled {
    background: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn:active::after {
    width: 200px;
    height: 200px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: #111;
    color: white;
}

.action-btn.secondary {
    background: #f8f9fa;
    color: #111;
    border: 1px solid #ddd;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.footer {
    margin-top: 25px;
    color: #888;
    font-size: 13px;
    border-top: 1px solid #eee;
    padding-top: 18px;
    text-align: center;
}

.server-ip {
    display: inline-block;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 8px;
    color: #555;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

@media (max-width: 480px) {
    .container {
        padding: 22px;
        border-radius: 20px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .btn {
        padding: 16px;
        font-size: 15px;
    }
    
    .info-value {
        font-size: 14px;
    }
    
    .info-label {
        font-size: 13px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* استایل‌های اضافی برای صفحات خاص */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.stat-box {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.admin-table th {
    background: #111;
    color: white;
    padding: 14px;
    text-align: right;
    font-weight: 600;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.admin-btn.edit {
    background: #4cc9f0;
    color: white;
}

.admin-btn.delete {
    background: #ef4444;
    color: white;
}

.admin-btn.ban {
    background: #f59e0b;
    color: white;
}

/* رنگ‌های اضافی برای رتبه‌ها */
.rank-vip {
    color: #f59e0b !important;
    font-weight: 800;
}

.rank-premium {
    color: #4cc9f0 !important;
    font-weight: 800;
}

.rank-admin {
    color: #ef4444 !important;
    font-weight: 800;
}

/* انیمیشن‌های اضافی */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.online-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    margin-left: 5px;
    animation: pulse 2s infinite;
}