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

body {
    background: #f2f7fc;
    color: #172b4d;
    font-family: Arial, sans-serif;
}

.requests-header {
    background: #ffffff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #e5edf5;
}

.back-button {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf4ff;
    color: #1877d2;
    border-radius: 50%;
    text-decoration: none;
    font-size: 28px;
}

.requests-header h2 {
    font-size: 19px;
}

.requests-header p {
    font-size: 12px;
    color: #7a8da5;
    margin-top: 4px;
}

.requests-container {
    max-width: 750px;
    width: 94%;
    margin: 25px auto;
}

.requests-intro {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 22px;
    border: 1px solid #e5edf5;
}

.requests-intro h2 {
    font-size: 19px;
    margin-bottom: 7px;
}

.requests-intro p {
    color: #7a8da5;
    font-size: 13px;
    line-height: 1.5;
}

.requests-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.requests-heading h3 {
    font-size: 16px;
}

.requests-heading span {
    font-size: 12px;
    color: #1877d2;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-card {
    background: #ffffff;
    border: 1px solid #e5edf5;
    border-radius: 13px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.request-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    background: #eaf4ff;
    flex-shrink: 0;
}

.request-details {
    flex: 1;
    min-width: 0;
}

.request-name {
    font-size: 14px;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.request-username {
    color: #8192a8;
    font-size: 12px;
    margin-top: 5px;
}

.request-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 105px;
}

.accept-request,
.reject-request {
    border: none;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.accept-request {
    background: #1877d2;
    color: white;
}

.reject-request {
    background: #f1f4f8;
    color: #e04444;
}

.accept-request:disabled,
.reject-request:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-message,
.empty-requests {
    background: white;
    padding: 35px 15px;
    text-align: center;
    border-radius: 12px;
    color: #8293a8;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 420px) {
    .request-card {
        padding: 11px;
        gap: 9px;
    }

    .request-avatar {
        width: 43px;
        height: 43px;
    }

    .request-actions {
        min-width: 88px;
    }

    .accept-request,
    .reject-request {
        padding: 8px 7px;
        font-size: 11px;
    }

    .request-name {
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .request-card {
        flex-wrap: wrap;
    }

    .request-actions {
        width: 100%;
        flex-direction: row;
    }

    .request-actions button {
        flex: 1;
    }
}